stencil.min.js 4.5 MB

1234
  1. /*!
  2. Stencil Compiler v2.18.1 | MIT Licensed | https://stenciljs.com
  3. */
  4. !function(e){"use strict";"undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof global&&(global.globalThis=global));const t=globalThis.Buffer||{},r=globalThis.process||{};r.argv||(r.argv=[""]);let n="/";if(r.cwd||(r.cwd=()=>n),r.chdir||(r.chdir=e=>n=e),!r.nextTick){const e=Promise.resolve();r.nextTick=t=>e.then(t)}r.platform||(r.platform="stencil"),r.version||(r.version="v12.0.0"),r.browser=!!globalThis.location;const i=!("undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),a=!("win32"===(i?r.platform:"")),o="undefined"!=typeof location&&"undefined"!=typeof navigator&&"undefined"!=typeof XMLHttpRequest,s=o&&"undefined"!=typeof self&&"function"==typeof self.importScripts,c=o&&"function"==typeof Worker,l="function"==typeof fetch,u=i?require:()=>{},d=i?r.cwd:()=>"/";r.browser=!i;const p={};var _,f=(void 0,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}),m=(void 0,function(){return(m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}),g=(void 0,(e,t)=>(Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e)),h=(void 0,function(e,t){var r,n,i,a,o={label:0,sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return s=>(a=>{if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}})([a,s])}}),y=(void 0,(e,t)=>{var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}),v=(void 0,_=(e,t)=>(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&((e,t)=>{e.__proto__=t})||((e,t)=>{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=((e,t)=>({key:e,value:t,next:void 0,prev:void 0}))(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function u(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function d(e,t){return{current:e.head,selector:t}}function p(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var _;(_=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(e=>{var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},_.createSetShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(e=>n.add(e)))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(p),(e=>{var t,r;function n(r,n,i){var a,o=null!==(a=t[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](e.getIterator);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(r," implementation."))}e.versionMajorMinor="4.7",e.version="4.7.4",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",(e=>{var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;e.tryGetNativeMap=()=>{var e=null==t?void 0:t.Map;return void 0!==e&&"entries"in e.prototype&&1===new e([[0,0]]).size?e:void 0},e.tryGetNativeSet=()=>{var e=null==t?void 0:t.Set;return void 0!==e&&"entries"in e.prototype&&1===new e([0]).size?e:void 0}})(t||(t={})),e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim")})(p),function(e){function t(e,t,r){if(void 0===r&&(r=I),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function r(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function n(e,t){return r(t)?r(e)?f(f([],e,!0),t,!0):t:e}function i(e,t){return t}function a(e){return e.map(i)}function o(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function s(e,t){return t<0?e.length+t:t}function c(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:s(t,r),n=void 0===n?t.length:s(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function l(e,r,n){return!t(e,r,n)&&(e.push(r),!0)}function u(e,t,r){t.sort(((t,n)=>r(e[t],e[n])||M(t,n)))}function d(e,t){return 0===e.length?e:e.slice().sort(t)}function p(e){var t=0;return{next:()=>t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}function _(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,n,i,a){if(!r(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function g(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.getIterator=t=>{if(t){if(C(t))return p(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=e=>e?e.length:0,e.forEach=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=(e,t)=>{if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=(e,t)=>{if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=(e,t)=>{for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=(e,t,r)=>{var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=(t,r,n)=>{var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=(t,r)=>{e.Debug.assertEqual(t.length,r.length);var n=0;return{next:()=>n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}},e.zipToMap=(t,r)=>{e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=(e,t)=>{if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=(e,t)=>{for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=(e,t)=>{for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=(e,t,r)=>{for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=(e,t,r)=>{for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=(t,r)=>{for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=t,e.arraysEqual=(e,t,r)=>(void 0===r&&(r=I),e.length===t.length&&e.every(((e,n)=>r(e,t[n])))),e.indexOfAnyCharCode=(e,r,n)=>{for(var i=n||0;i<e.length;i++)if(t(r,e.charCodeAt(i)))return i;return-1},e.countWhere=(e,t)=>{var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=(e,t)=>{if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=(e,t)=>{for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=e=>{e.length=0},e.map=(e,t)=>{var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=(e,t)=>({next(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}),e.sameMap=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=e=>{for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(C(i)?c(t,i):t.push(i))}return t},e.flatMap=(t,r)=>{var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=C(a)?c(n,a):o(n,a))}return n||e.emptyArray},e.flatMapToMutable=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(C(i)?c(r,i):r.push(i))}return r},e.flatMapIterator=(t,r)=>{var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:C(n)?p(n):n}},e.sameFlatMap=(e,t)=>{var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||C(a))&&(r||(r=e.slice(0,n)),C(a)?c(r,a):r.push(a))}return r||e},e.mapAllOrFail=(e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=(e,t)=>({next(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}),e.mapDefinedEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=(t,r)=>{if(t){var n=new e.Set;return t.forEach((e=>{var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=(e,t,r)=>{if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=(e,t)=>!e.has(t)&&(e.add(t),!0),e.emptyIterator={next:()=>({value:void 0,done:!0})},e.singleIterator=e=>{var t=!1;return{next(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=(e,t,r)=>{var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=r,e.getRangesWhere=(e,t,r)=>{for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=n,e.indicesOf=a,e.deduplicate=(e,t,r)=>0===e.length?[]:1===e.length?e.slice():r?((e,t,r)=>{var n=a(e);u(e,n,r);for(var i=e[n[0]],o=[n[0]],s=1;s<n.length;s++){var c=n[s],l=e[c];t(i,l)||(o.push(c),i=l)}return o.sort(),o.map((t=>e[t]))})(e,t,r):((e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++)l(r,i[n],t);return r})(e,t),e.createSortedArray=()=>[],e.insertSorted=(e,t,r,n)=>{if(0!==e.length){var i=_(e,t,A,r);i<0?e.splice(~i,0,t):n&&e.splice(i,0,t)}else e.push(t)},e.sortAndDeduplicate=(t,r,n)=>((t,r)=>{if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i})(d(t,r),n||r||L),e.arrayIsSorted=(e,t)=>{if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=(e,t,r)=>{if(void 0===r&&(r=I),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=e=>{var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=(t,r,n)=>{if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=(e,t)=>{for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=o,e.combine=(e,t)=>void 0===e?t:void 0===t?e:C(e)?C(t)?n(e,t):o(e,t):C(t)?o(t,e):[e,t],e.addRange=c,e.pushIfUnique=l,e.appendIfUnique=(e,t,r)=>e?(l(e,t,r),e):[t],e.sort=d,e.arrayIterator=p,e.arrayReverseIterator=e=>{var t=e.length;return{next:()=>0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}},e.stableSort=(e,t)=>{var r=a(e);return u(e,r,t),r.map((t=>e[t]))},e.rangeEquals=(e,t,r,n)=>{for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=(e,t)=>{if(e&&(t=s(e,t))<e.length)return e[t]},e.firstOrUndefined=e=>0===e.length?void 0:e[0],e.first=t=>(e.Debug.assert(0!==t.length),t[0]),e.lastOrUndefined=e=>0===e.length?void 0:e[e.length-1],e.last=t=>(e.Debug.assert(0!==t.length),t[t.length-1]),e.singleOrUndefined=e=>e&&1===e.length?e[0]:void 0,e.singleOrMany=e=>e&&1===e.length?e[0]:e,e.replaceElement=(e,t,r)=>{var n=e.slice(0);return n[t]=r,n},e.binarySearch=_,e.binarySearchKey=m,e.reduceLeft=g;var h=Object.prototype.hasOwnProperty;function y(e,t){return h.call(e,t)}function v(e){var t=[];for(var r in e)h.call(e,r)&&t.push(r);return t}e.hasProperty=y,e.getProperty=(e,t)=>h.call(e,t)?e[t]:void 0,e.getOwnKeys=v,e.getAllKeys=e=>{var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)l(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=e=>{var t=[];for(var r in e)h.call(e,r)&&t.push(e[r]);return t};var b=Object.entries||(e=>{for(var t=v(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r});function x(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function E(e,t,r){void 0===r&&(r=A);for(var n=S(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function S(){var t=new e.Map;return t.add=D,t.remove=T,t}function D(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function T(e,t){var r=this.get(e);r&&(J(r,t),r.length||this.delete(e))}function C(e){return Array.isArray?Array.isArray(e):e instanceof Array}function k(e){}function A(e){return e}function N(e){return e.toLowerCase()}e.getEntries=e=>e?b(e):[],e.arrayOf=(e,t)=>{for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=x,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)y(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=(e,t,r)=>{if(void 0===r&&(r=I),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(h.call(e,n)){if(!h.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(h.call(t,n)&&!h.call(e,n))return!1;return!0},e.arrayToMap=(t,r,n)=>{void 0===n&&(n=A);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=(e,t,r)=>{void 0===r&&(r=A);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=E,e.group=(e,t,r)=>(void 0===r&&(r=A),x(E(e,t).values(),r)),e.clone=e=>{var t={};for(var r in e)h.call(e,r)&&(t[r]=e[r]);return t},e.extend=(e,t)=>{var r={};for(var n in t)h.call(t,n)&&(r[n]=t[n]);for(var n in e)h.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=(e,t)=>{for(var r in t)h.call(t,r)&&(e[r]=t[r])},e.maybeBind=(e,t)=>t?t.bind(e):void 0,e.createMultiMap=S,e.createUnderscoreEscapedMultiMap=()=>S(),e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!C(r.value))return{value:r.value};e=p(r.value)}}}}return{has(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!C(a))return n(a,e);for(var o=0,s=a;o<s.length;o++){var c=s[o];if(n(c,e))return!0}return!1},add(e){var o=r(e);if(i.has(o)){var s=i.get(o);if(C(s))t(s,e,n)||(s.push(e),a++);else{var c=s;n(c,e)||(i.set(o,[c,e]),a++)}}else i.set(o,e),a++;return this},delete(e){var t=r(e);if(!i.has(t))return!1;var o=i.get(t);if(C(o)){for(var s=0;s<o.length;s++)if(n(o[s],e))return 1===o.length?i.delete(t):2===o.length?i.set(t,o[1-s]):W(o,s),a--,!0}else if(n(o,e))return i.delete(t),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(e){for(var t=0,r=x(i.values());t<r.length;t++){var n=r[t];if(C(n))for(var a=0,o=n;a<o.length;a++){var s;e(s=o[a],s)}else e(s=n,s)}},keys:()=>o(),values:()=>o(),entries(){var e=o();return{next(){var t=e.next();return t.done?t:{value:[t.value,t.value]}}}}}},e.isArray=C,e.toArray=e=>C(e)?e:[e],e.isString=e=>"string"==typeof e,e.isNumber=e=>"number"==typeof e,e.tryCast=(e,t)=>void 0!==e&&t(e)?e:void 0,e.cast=(t,r)=>void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value ".concat(t," did not pass the test '").concat(e.Debug.getFunctionName(r),"'.")),e.noop=k,e.returnFalse=()=>!1,e.returnTrue=()=>!0,e.returnUndefined=()=>{},e.identity=A,e.toLowerCase=N;var w,F=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function P(e){return F.test(e)?e.replace(F,N):e}function I(e,t){return e===t}function O(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function M(e,t){return O(e,t)}function R(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function L(e,t){return O(e,t)}e.toFileNameLowerCase=P,e.notImplemented=()=>{throw new Error("Not implemented")},e.memoize=e=>{var t;return()=>(e&&(t=e(),e=void 0),t)},e.memoizeOne=t=>{var r=new e.Map;return e=>{var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return e=>g(a,((e,t)=>t(e)),e)}return n?i=>n(r(t(e(i)))):r?n=>r(t(e(n))):t?r=>t(e(r)):e?t=>e(t):e=>e},(w=e.AssertionLevel||(e.AssertionLevel={}))[w.None=0]="None",w[w.Normal=1]="Normal",w[w.Aggressive=2]="Aggressive",w[w.VeryAggressive=3]="VeryAggressive",e.equateValues=I,e.equateStringsCaseInsensitive=(e,t)=>e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase(),e.equateStringsCaseSensitive=(e,t)=>I(e,t),e.compareValues=M,e.compareTextSpans=(e,t)=>M(null==e?void 0:e.start,null==t?void 0:t.start)||M(null==e?void 0:e.length,null==t?void 0:t.length),e.min=(e,t,r)=>-1===r(e,t)?e:t,e.compareStringsCaseInsensitive=R,e.compareStringsCaseSensitive=L,e.getStringComparer=e=>e?R:L;var B,j,U=(()=>{var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?e=>{var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,r)=>n(e,r,t)}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?e=>{return void 0!==e?i():(e,r)=>n(e,r,t);function t(e,t){return e.localeCompare(t)}}:i;return n=>void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n);function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(){return(t,r)=>n(t,r,e);function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}})();function V(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=l;d++){var p=e[o-1].toLowerCase()===t[d-1].toLowerCase()?n[d-1]+.1:n[d-1]+2,_=s===t.charCodeAt(d-1)?n[d-1]:Math.min(n[d]+1,i[d-1]+1,p);i[d]=_,u=Math.min(u,_)}for(d=l+1;d<=t.length;d++)i[d]=a;if(u>r)return;var f=n;n=i,i=f}var m=n[t.length];return m>r?void 0:m}function K(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function W(e,t){e[t]=e[e.length-1],e.pop()}function J(e,t){return((e,r)=>{for(var n=0;n<e.length;n++)if(e[n]===t)return W(e,n),!0;return!1})(e)}function H(e,t){return 0===e.lastIndexOf(t,0)}function $(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&H(t,r)&&K(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):G(e,t,s,n+1)}}e.getUILocale=()=>j,e.setUILocale=e=>{j!==e&&(j=e,B=void 0)},e.compareStringsCaseSensitiveUI=(e,t)=>(B||(B=U(j)))(e,t),e.compareProperties=(e,t,r,n)=>e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r]),e.compareBooleans=(e,t)=>M(e?1:0,t?1:0),e.getSpellingSuggestion=(t,r,n)=>{for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],u=n(l);if(void 0!==u&&Math.abs(u.length-t.length)<=a){if(u===t)continue;if(u.length<3&&u.toLowerCase()!==t.toLowerCase())continue;var d=V(t,u,o-.1);if(void 0===d)continue;e.Debug.assert(d<o),o=d,i=l}}return i},e.endsWith=K,e.removeSuffix=(e,t)=>K(e,t)?e.slice(0,e.length-t.length):e,e.tryRemoveSuffix=(e,t)=>K(e,t)?e.slice(0,e.length-t.length):void 0,e.stringContains=(e,t)=>-1!==e.indexOf(t),e.removeMinAndVersionNumbers=e=>{for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=(e,t)=>{for(var r=0;r<e.length;r++)if(e[r]===t)return z(e,r),!0;return!1},e.orderedRemoveItemAt=z,e.unorderedRemoveItemAt=W,e.unorderedRemoveItem=J,e.createGetCanonicalFileName=e=>e?A:P,e.patternText=e=>{var t=e.prefix,r=e.suffix;return"".concat(t,"*").concat(r)},e.matchedText=(t,r)=>(e.Debug.assert($(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)),e.findBestPatternMatch=(e,t,r)=>{for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);$(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=(e,t)=>H(e,t)?e.substr(t.length):e,e.tryRemovePrefix=(e,t,r)=>(void 0===r&&(r=A),H(r(e),r(t))?e.substring(t.length):void 0),e.and=(e,t)=>r=>e(r)&&t(r),e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var i=0,a=e;i<a.length;i++){var o=a[i];if(t=o.apply(void 0,r))return t}return t}},e.not=e=>function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)},e.assertType=e=>{},e.singleElementArray=e=>void 0===e?void 0:[e],e.enumerateInsertsAndDeletes=(e,t,r,n,i,a)=>{a=a||k;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var d=e[o],p=t[s],_=r(d,p);-1===_?(n(d),o++,u=!0):1===_?(i(p),s++,u=!0):(a(p,d),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},e.fill=(e,t)=>{for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=e=>{var t=[];return G(e,t,void 0,0),t},e.padLeft=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e),e.padRight=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)),e.takeWhile=(e,t)=>{for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?e=>e.trim():t=>e.trimStringEnd(e.trimStringStart(t)),e.trimStringEnd=String.prototype.trimEnd?e=>e.trimEnd():t=>{for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}(p),function(e){var t;!(e=>{e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"})(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=e=>{c(t.Error,e)},i.warn=e=>{c(t.Warning,e)},i.log=e=>{c(t.Info,e)},i.trace=e=>{c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function m(e,t,r){null==e&&_(t,r||m)}function g(e,t,r){for(var n=0,i=e;n<i.length;n++)m(i[n],t,r||g)}function h(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function y(t,r,n){void 0===t&&(t=0);var i=(t=>{var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,((t,r)=>e.compareValues(t[0],r[0])))})(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(u>t)break;0!==u&&u&t&&(a="".concat(a).concat(a?"|":"").concat(d),o&=~u)}if(0===o)return a}else for(var p=0,_=i;p<_.length;p++){var f=_[p];if(u=f[0],d=f[1],u===t)return d}return t.toString()}function v(t){return y(t,e.SyntaxKind,!1)}function b(t){return y(t,e.NodeFlags,!0)}function x(t){return y(t,e.ModifierFlags,!0)}function E(t){return y(t,e.TransformFlags,!0)}function S(t){return y(t,e.EmitFlags,!0)}function D(t){return y(t,e.SymbolFlags,!0)}function T(t){return y(t,e.TypeFlags,!0)}function C(t){return y(t,e.SignatureFlags,!0)}function k(t){return y(t,e.ObjectFlags,!0)}function A(t){return y(t,e.FlowFlags,!0)}r.getAssertionLevel=()=>a,r.setAssertionLevel=t=>{var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(v(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&_("Expected ".concat(t," >= ").concat(r),n||e)},r.assertIsDefined=m,r.checkDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertEachIsDefined=g,r.checkEachDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertNever=function t(r,n,i){void 0===n&&(n="Illegal value:");var a="object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")?"SyntaxKind: "+v(r.kind):JSON.stringify(r);return _("".concat(n," ").concat(a),i||t)},r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(()=>"Node array did not pass test '".concat(h(n),"'.")),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(()=>"Node ".concat(v(null==t?void 0:t.kind)," did not pass test '").concat(h(r),"'.")),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(()=>"Node ".concat(v(t.kind)," should not have passed test '").concat(h(r),"'.")),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(()=>"Node ".concat(v(null==t?void 0:t.kind)," did not pass test '").concat(h(r),"'.")),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(()=>"Node ".concat(v(null==t?void 0:t.kind)," was not a '").concat(v(r),"' token.")),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(()=>"Node ".concat(v(t.kind)," was unexpected'.")),n||e)},r.type=e=>{},r.getFunctionName=h,r.formatSymbol=t=>"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(D(t.flags),"; declarations: ").concat(e.map(t.declarations,(e=>v(e.kind)))," }"),r.formatEnum=y,r.formatSyntaxKind=v,r.formatSnippetKind=t=>y(t,e.SnippetKind,!1),r.formatNodeFlags=b,r.formatModifierFlags=x,r.formatTransformFlags=E,r.formatEmitFlags=S,r.formatSymbolFlags=D,r.formatTypeFlags=T,r.formatSignatureFlags=C,r.formatObjectFlags=k,r.formatFlowFlags=A;var N,w,F,P=!1;function I(e){return(()=>{if(R(),!N)throw new Error("Debugging helpers could not be loaded.");return N})().formatControlFlowGraph(e)}function O(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(A(t),")"):"")}},__debugFlowFlags:{get(){return y(this.flags,e.FlowFlags,!0)}},__debugToString:{value(){return I(this)}}})}function M(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e))}})}function R(){if(!P){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(D(r),")"):"")}},__debugFlags:{get(){return D(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(k(r),")"):"")}},__debugFlags:{get(){return T(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?k(this.objectFlags):""}},__debugTypeToString:{value(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get(){return C(this.flags)}},__debugSignatureToString:{value(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value(){var t=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":v(this.kind);return"".concat(t).concat(this.flags?" (".concat(b(this.flags),")"):"")}},__debugKind:{get(){return v(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return x(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get(){return S(e.getEmitFlags(this))}},__debugGetText:{value(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),N=s.module)}}catch(e){}P=!0}}function L(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'".concat(t,"' "),o+=i?"has been deprecated since v".concat(i):"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v".concat(n,"."):".")+(a?" ".concat(e.formatStringFromArgs(a,[t],0)):"")}r.printControlFlowGraph=e=>console.log(I(e)),r.formatControlFlowGraph=I,r.attachFlowNodeDebugInfo=e=>{P&&("function"==typeof Object.setPrototypeOf?(w||O(w=Object.create(Object.prototype)),Object.setPrototypeOf(e,w)):O(e))},r.attachNodeArrayDebugInfo=e=>{P&&("function"==typeof Object.setPrototypeOf?(F||M(F=Object.create(Array.prototype)),Object.setPrototypeOf(e,F)):M(e))},r.enableDebugInfo=R,r.deprecate=function(t,r){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(((t,r)=>{var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,u="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,d=r.error||s&&a.compareTo(s)<=0,p=!c||a.compareTo(c)>=0;return d?((e,t,r,n)=>{var i=L(e,!0,t,r,n);return()=>{throw new TypeError(i)}})(t,s,u,r.message):p?((e,t,r,n)=>{var i=!1;return()=>{i||(l.warn(L(e,!1,t,r,n)),i=!0)}})(t,s,u,r.message):e.noop})(h(t),r),t)}}(e.Debug||(e.Debug={}))}(p),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=e=>{var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||((t,r)=>{if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(t.length,r.length)})(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(t+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(t+="+".concat(this.build.join("."))),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],d=void 0===u?"":u,p=i[5],_=void 0===p?"":p;if((!d||r.test(d))&&(!_||n.test(_)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:_}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(_(t),"Invalid range spec."):e.emptyArray}return t.tryParse=e=>{var r=_(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),((e,t)=>{if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(v(e,n[r]))return!0;return!1})(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function _(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=d.exec(a);if(s){if(!m(s[1],s[2],o))return}else for(var u=0,_=a.split(l);u<_.length;u++){var f=_[u],h=p.exec(e.trimString(f));if(!h||!g(h[1],h[2],o))return}r.push(o)}}return r}function f(e){var t=u.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function m(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(h(n.major)||r.push(y(">=",n.version)),h(i.major)||r.push(h(i.minor)?y("<",i.version.increment("major")):h(i.patch)?y("<",i.version.increment("minor")):y("<=",i.version)),!0)}function g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(h(o))"<"!==e&&">"!==e||r.push(y("<",a.zero));else switch(e){case"~":r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")));break;case"^":r.push(y(">=",i)),r.push(y("<",i.increment(i.major>0||h(s)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":r.push(y(e,i));break;case"<=":case">":r.push(h(s)?y("<="===e?"<":">=",i.increment("major")):h(c)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(s)||h(c)?(r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")))):r.push(y("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function y(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,E).join(" ")}function E(e){return"".concat(e.operator).concat(e.operand)}}(p),(e=>{function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=(()=>{if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}})()||(()=>{if(void 0!==r&&r.nextTick&&!r.browser&&"object"==typeof module&&"function"==typeof require)try{var n,i=require("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(r.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:()=>a.now(),mark:e=>a.mark(e),measure(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}})(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=()=>n,e.timestamp=i?()=>i.now():Date.now?Date.now:()=>+new Date})(p),(e=>{!(t=>{var r,n;function i(t,r,n){var i=0;return{enter(){1==++i&&u(r)},exit(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=(e,r,n,a)=>e?i(r,n,a):t.nullTimer,t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,_=l.get(t)||0;l.set(t,_+(d-p)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=e=>c.get(e)||0,t.getDuration=e=>l.get(e)||0,t.forEachMeasure=e=>{l.forEach(((t,r)=>e(r,t)))},t.isEnabled=()=>a,t.enable=t=>{var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=()=>{a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}})(e.performance||(e.performance={}))})(p),(e=>{var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=r.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=require(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i})(p),(e=>{var t;!(t=>{var n,i,a,o,s=0,c=0,l=[],u=[];t.startTracing=(o,d,p)=>{if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=o,l.length=0,void 0===a&&(a=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var _="build"===i?".".concat(r.pid,"-").concat(++s):"server"===i?".".concat(r.pid):"",f=e.combinePaths(d,"trace".concat(_,".json")),g=e.combinePaths(d,"types".concat(_,".json"));u.push({configFilePath:p,tracePath:f,typesPath:g}),c=n.openSync(f,"w"),e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[m({name:"process_name",args:{name:"tsc"}},h),m({name:"thread_name",args:{name:"Main"}},h),m(m({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map((e=>JSON.stringify(e))).join(",\n"))},t.stopTracing=()=>{e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?(t=>{var r,i,a,o,s,c,l,d,p,_,g,h,y,v,b,x,E,S,D,T,C,k;e.performance.mark("beginDumpTypes");var A=u[u.length-1].typesPath,N=n.openSync(A,"w"),w=new e.Map;n.writeSync(N,"[");for(var F=t.length,P=0;P<F;P++){var I=t[P],O=I.objectFlags,M=null!==(r=I.aliasSymbol)&&void 0!==r?r:I.symbol,R=void 0;if(16&O|2944&I.flags)try{R=null===(i=I.checker)||void 0===i?void 0:i.typeToString(I)}catch(e){R=void 0}var L={};if(8388608&I.flags){var B=I;L={indexedAccessObjectType:null===(a=B.objectType)||void 0===a?void 0:a.id,indexedAccessIndexType:null===(o=B.indexType)||void 0===o?void 0:o.id}}var j={};if(4&O){var U=I;j={instantiatedType:null===(s=U.target)||void 0===s?void 0:s.id,typeArguments:null===(c=U.resolvedTypeArguments)||void 0===c?void 0:c.map((e=>e.id)),referenceLocation:f(U.node)}}var V={};if(16777216&I.flags){var K=I;V={conditionalCheckType:null===(l=K.checkType)||void 0===l?void 0:l.id,conditionalExtendsType:null===(d=K.extendsType)||void 0===d?void 0:d.id,conditionalTrueType:null!==(_=null===(p=K.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==_?_:-1,conditionalFalseType:null!==(h=null===(g=K.resolvedFalseType)||void 0===g?void 0:g.id)&&void 0!==h?h:-1}}var z={};if(33554432&I.flags){var W=I;z={substitutionBaseType:null===(y=W.baseType)||void 0===y?void 0:y.id,substituteType:null===(v=W.substitute)||void 0===v?void 0:v.id}}var J={};if(1024&O){var H=I;J={reverseMappedSourceType:null===(b=H.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(x=H.mappedType)||void 0===x?void 0:x.id,reverseMappedConstraintType:null===(E=H.constraintType)||void 0===E?void 0:E.id}}var $={};if(256&O){var G=I;$={evolvingArrayElementType:G.elementType.id,evolvingArrayFinalType:null===(S=G.finalArrayType)||void 0===S?void 0:S.id}}var q=void 0,X=I.checker.getRecursionIdentity(I);X&&((q=w.get(X))||(q=w.size,w.set(X,q)));var Y=m(m(m(m(m(m(m({id:I.id,intrinsicName:I.intrinsicName,symbolName:(null==M?void 0:M.escapedName)&&e.unescapeLeadingUnderscores(M.escapedName),recursionId:q,isTuple:!!(8&O)||void 0,unionTypes:1048576&I.flags?null===(D=I.types)||void 0===D?void 0:D.map((e=>e.id)):void 0,intersectionTypes:2097152&I.flags?I.types.map((e=>e.id)):void 0,aliasTypeArguments:null===(T=I.aliasTypeArguments)||void 0===T?void 0:T.map((e=>e.id)),keyofType:4194304&I.flags?null===(C=I.type)||void 0===C?void 0:C.id:void 0},L),j),V),z),J),$),{destructuringPattern:f(I.pattern),firstDeclaration:f(null===(k=null==M?void 0:M.declarations)||void 0===k?void 0:k[0]),flags:e.Debug.formatTypeFlags(I.flags).split("|"),display:R});n.writeSync(N,JSON.stringify(Y)),P<F-1&&n.writeSync(N,",\n")}n.writeSync(N,"]\n"),n.closeSync(N),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")})(l):u[u.length-1].typesPath=void 0},t.recordType=e=>{"server"!==i&&l.push(e)},(o=t.Phase||(t.Phase={})).Parse="parse",o.Program="program",o.Bind="bind",o.Check="check",o.CheckTypes="checkTypes",o.Emit="emit",o.Session="session",t.instant=(e,t,r)=>{_("I",e,t,r,'"s":"g"')};var d=[];function p(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?_("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&_("X",n,i,a,'"dur":'.concat(t-o),o)}function _(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=(t,r,n,i)=>{void 0===i&&(i=!1),i&&_("B",t,r,n),d.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=()=>{e.Debug.assert(d.length>0),p(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=()=>{for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)p(r,t);d.length=0},t.dumpLegend=()=>{a&&n.writeFileSync(a,JSON.stringify(u))}})(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend})(p),(e=>{var t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x,E,S,D,T,C,k,A,N,w,F,P,I,O,M,R,L,B,j,U,V,K,z,W,J,H,$,G,q,X,Y,Q,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,pe,_e,fe;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AssertKeyword=129]="AssertKeyword",l[l.AnyKeyword=130]="AnyKeyword",l[l.AsyncKeyword=131]="AsyncKeyword",l[l.AwaitKeyword=132]="AwaitKeyword",l[l.BooleanKeyword=133]="BooleanKeyword",l[l.ConstructorKeyword=134]="ConstructorKeyword",l[l.DeclareKeyword=135]="DeclareKeyword",l[l.GetKeyword=136]="GetKeyword",l[l.InferKeyword=137]="InferKeyword",l[l.IntrinsicKeyword=138]="IntrinsicKeyword",l[l.IsKeyword=139]="IsKeyword",l[l.KeyOfKeyword=140]="KeyOfKeyword",l[l.ModuleKeyword=141]="ModuleKeyword",l[l.NamespaceKeyword=142]="NamespaceKeyword",l[l.NeverKeyword=143]="NeverKeyword",l[l.OutKeyword=144]="OutKeyword",l[l.ReadonlyKeyword=145]="ReadonlyKeyword",l[l.RequireKeyword=146]="RequireKeyword",l[l.NumberKeyword=147]="NumberKeyword",l[l.ObjectKeyword=148]="ObjectKeyword",l[l.SetKeyword=149]="SetKeyword",l[l.StringKeyword=150]="StringKeyword",l[l.SymbolKeyword=151]="SymbolKeyword",l[l.TypeKeyword=152]="TypeKeyword",l[l.UndefinedKeyword=153]="UndefinedKeyword",l[l.UniqueKeyword=154]="UniqueKeyword",l[l.UnknownKeyword=155]="UnknownKeyword",l[l.FromKeyword=156]="FromKeyword",l[l.GlobalKeyword=157]="GlobalKeyword",l[l.BigIntKeyword=158]="BigIntKeyword",l[l.OverrideKeyword=159]="OverrideKeyword",l[l.OfKeyword=160]="OfKeyword",l[l.QualifiedName=161]="QualifiedName",l[l.ComputedPropertyName=162]="ComputedPropertyName",l[l.TypeParameter=163]="TypeParameter",l[l.Parameter=164]="Parameter",l[l.Decorator=165]="Decorator",l[l.PropertySignature=166]="PropertySignature",l[l.PropertyDeclaration=167]="PropertyDeclaration",l[l.MethodSignature=168]="MethodSignature",l[l.MethodDeclaration=169]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=170]="ClassStaticBlockDeclaration",l[l.Constructor=171]="Constructor",l[l.GetAccessor=172]="GetAccessor",l[l.SetAccessor=173]="SetAccessor",l[l.CallSignature=174]="CallSignature",l[l.ConstructSignature=175]="ConstructSignature",l[l.IndexSignature=176]="IndexSignature",l[l.TypePredicate=177]="TypePredicate",l[l.TypeReference=178]="TypeReference",l[l.FunctionType=179]="FunctionType",l[l.ConstructorType=180]="ConstructorType",l[l.TypeQuery=181]="TypeQuery",l[l.TypeLiteral=182]="TypeLiteral",l[l.ArrayType=183]="ArrayType",l[l.TupleType=184]="TupleType",l[l.OptionalType=185]="OptionalType",l[l.RestType=186]="RestType",l[l.UnionType=187]="UnionType",l[l.IntersectionType=188]="IntersectionType",l[l.ConditionalType=189]="ConditionalType",l[l.InferType=190]="InferType",l[l.ParenthesizedType=191]="ParenthesizedType",l[l.ThisType=192]="ThisType",l[l.TypeOperator=193]="TypeOperator",l[l.IndexedAccessType=194]="IndexedAccessType",l[l.MappedType=195]="MappedType",l[l.LiteralType=196]="LiteralType",l[l.NamedTupleMember=197]="NamedTupleMember",l[l.TemplateLiteralType=198]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=199]="TemplateLiteralTypeSpan",l[l.ImportType=200]="ImportType",l[l.ObjectBindingPattern=201]="ObjectBindingPattern",l[l.ArrayBindingPattern=202]="ArrayBindingPattern",l[l.BindingElement=203]="BindingElement",l[l.ArrayLiteralExpression=204]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=205]="ObjectLiteralExpression",l[l.PropertyAccessExpression=206]="PropertyAccessExpression",l[l.ElementAccessExpression=207]="ElementAccessExpression",l[l.CallExpression=208]="CallExpression",l[l.NewExpression=209]="NewExpression",l[l.TaggedTemplateExpression=210]="TaggedTemplateExpression",l[l.TypeAssertionExpression=211]="TypeAssertionExpression",l[l.ParenthesizedExpression=212]="ParenthesizedExpression",l[l.FunctionExpression=213]="FunctionExpression",l[l.ArrowFunction=214]="ArrowFunction",l[l.DeleteExpression=215]="DeleteExpression",l[l.TypeOfExpression=216]="TypeOfExpression",l[l.VoidExpression=217]="VoidExpression",l[l.AwaitExpression=218]="AwaitExpression",l[l.PrefixUnaryExpression=219]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=220]="PostfixUnaryExpression",l[l.BinaryExpression=221]="BinaryExpression",l[l.ConditionalExpression=222]="ConditionalExpression",l[l.TemplateExpression=223]="TemplateExpression",l[l.YieldExpression=224]="YieldExpression",l[l.SpreadElement=225]="SpreadElement",l[l.ClassExpression=226]="ClassExpression",l[l.OmittedExpression=227]="OmittedExpression",l[l.ExpressionWithTypeArguments=228]="ExpressionWithTypeArguments",l[l.AsExpression=229]="AsExpression",l[l.NonNullExpression=230]="NonNullExpression",l[l.MetaProperty=231]="MetaProperty",l[l.SyntheticExpression=232]="SyntheticExpression",l[l.TemplateSpan=233]="TemplateSpan",l[l.SemicolonClassElement=234]="SemicolonClassElement",l[l.Block=235]="Block",l[l.EmptyStatement=236]="EmptyStatement",l[l.VariableStatement=237]="VariableStatement",l[l.ExpressionStatement=238]="ExpressionStatement",l[l.IfStatement=239]="IfStatement",l[l.DoStatement=240]="DoStatement",l[l.WhileStatement=241]="WhileStatement",l[l.ForStatement=242]="ForStatement",l[l.ForInStatement=243]="ForInStatement",l[l.ForOfStatement=244]="ForOfStatement",l[l.ContinueStatement=245]="ContinueStatement",l[l.BreakStatement=246]="BreakStatement",l[l.ReturnStatement=247]="ReturnStatement",l[l.WithStatement=248]="WithStatement",l[l.SwitchStatement=249]="SwitchStatement",l[l.LabeledStatement=250]="LabeledStatement",l[l.ThrowStatement=251]="ThrowStatement",l[l.TryStatement=252]="TryStatement",l[l.DebuggerStatement=253]="DebuggerStatement",l[l.VariableDeclaration=254]="VariableDeclaration",l[l.VariableDeclarationList=255]="VariableDeclarationList",l[l.FunctionDeclaration=256]="FunctionDeclaration",l[l.ClassDeclaration=257]="ClassDeclaration",l[l.InterfaceDeclaration=258]="InterfaceDeclaration",l[l.TypeAliasDeclaration=259]="TypeAliasDeclaration",l[l.EnumDeclaration=260]="EnumDeclaration",l[l.ModuleDeclaration=261]="ModuleDeclaration",l[l.ModuleBlock=262]="ModuleBlock",l[l.CaseBlock=263]="CaseBlock",l[l.NamespaceExportDeclaration=264]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=265]="ImportEqualsDeclaration",l[l.ImportDeclaration=266]="ImportDeclaration",l[l.ImportClause=267]="ImportClause",l[l.NamespaceImport=268]="NamespaceImport",l[l.NamedImports=269]="NamedImports",l[l.ImportSpecifier=270]="ImportSpecifier",l[l.ExportAssignment=271]="ExportAssignment",l[l.ExportDeclaration=272]="ExportDeclaration",l[l.NamedExports=273]="NamedExports",l[l.NamespaceExport=274]="NamespaceExport",l[l.ExportSpecifier=275]="ExportSpecifier",l[l.MissingDeclaration=276]="MissingDeclaration",l[l.ExternalModuleReference=277]="ExternalModuleReference",l[l.JsxElement=278]="JsxElement",l[l.JsxSelfClosingElement=279]="JsxSelfClosingElement",l[l.JsxOpeningElement=280]="JsxOpeningElement",l[l.JsxClosingElement=281]="JsxClosingElement",l[l.JsxFragment=282]="JsxFragment",l[l.JsxOpeningFragment=283]="JsxOpeningFragment",l[l.JsxClosingFragment=284]="JsxClosingFragment",l[l.JsxAttribute=285]="JsxAttribute",l[l.JsxAttributes=286]="JsxAttributes",l[l.JsxSpreadAttribute=287]="JsxSpreadAttribute",l[l.JsxExpression=288]="JsxExpression",l[l.CaseClause=289]="CaseClause",l[l.DefaultClause=290]="DefaultClause",l[l.HeritageClause=291]="HeritageClause",l[l.CatchClause=292]="CatchClause",l[l.AssertClause=293]="AssertClause",l[l.AssertEntry=294]="AssertEntry",l[l.ImportTypeAssertionContainer=295]="ImportTypeAssertionContainer",l[l.PropertyAssignment=296]="PropertyAssignment",l[l.ShorthandPropertyAssignment=297]="ShorthandPropertyAssignment",l[l.SpreadAssignment=298]="SpreadAssignment",l[l.EnumMember=299]="EnumMember",l[l.UnparsedPrologue=300]="UnparsedPrologue",l[l.UnparsedPrepend=301]="UnparsedPrepend",l[l.UnparsedText=302]="UnparsedText",l[l.UnparsedInternalText=303]="UnparsedInternalText",l[l.UnparsedSyntheticReference=304]="UnparsedSyntheticReference",l[l.SourceFile=305]="SourceFile",l[l.Bundle=306]="Bundle",l[l.UnparsedSource=307]="UnparsedSource",l[l.InputFiles=308]="InputFiles",l[l.JSDocTypeExpression=309]="JSDocTypeExpression",l[l.JSDocNameReference=310]="JSDocNameReference",l[l.JSDocMemberName=311]="JSDocMemberName",l[l.JSDocAllType=312]="JSDocAllType",l[l.JSDocUnknownType=313]="JSDocUnknownType",l[l.JSDocNullableType=314]="JSDocNullableType",l[l.JSDocNonNullableType=315]="JSDocNonNullableType",l[l.JSDocOptionalType=316]="JSDocOptionalType",l[l.JSDocFunctionType=317]="JSDocFunctionType",l[l.JSDocVariadicType=318]="JSDocVariadicType",l[l.JSDocNamepathType=319]="JSDocNamepathType",l[l.JSDocComment=320]="JSDocComment",l[l.JSDocText=321]="JSDocText",l[l.JSDocTypeLiteral=322]="JSDocTypeLiteral",l[l.JSDocSignature=323]="JSDocSignature",l[l.JSDocLink=324]="JSDocLink",l[l.JSDocLinkCode=325]="JSDocLinkCode",l[l.JSDocLinkPlain=326]="JSDocLinkPlain",l[l.JSDocTag=327]="JSDocTag",l[l.JSDocAugmentsTag=328]="JSDocAugmentsTag",l[l.JSDocImplementsTag=329]="JSDocImplementsTag",l[l.JSDocAuthorTag=330]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",l[l.JSDocClassTag=332]="JSDocClassTag",l[l.JSDocPublicTag=333]="JSDocPublicTag",l[l.JSDocPrivateTag=334]="JSDocPrivateTag",l[l.JSDocProtectedTag=335]="JSDocProtectedTag",l[l.JSDocReadonlyTag=336]="JSDocReadonlyTag",l[l.JSDocOverrideTag=337]="JSDocOverrideTag",l[l.JSDocCallbackTag=338]="JSDocCallbackTag",l[l.JSDocEnumTag=339]="JSDocEnumTag",l[l.JSDocParameterTag=340]="JSDocParameterTag",l[l.JSDocReturnTag=341]="JSDocReturnTag",l[l.JSDocThisTag=342]="JSDocThisTag",l[l.JSDocTypeTag=343]="JSDocTypeTag",l[l.JSDocTemplateTag=344]="JSDocTemplateTag",l[l.JSDocTypedefTag=345]="JSDocTypedefTag",l[l.JSDocSeeTag=346]="JSDocSeeTag",l[l.JSDocPropertyTag=347]="JSDocPropertyTag",l[l.SyntaxList=348]="SyntaxList",l[l.NotEmittedStatement=349]="NotEmittedStatement",l[l.PartiallyEmittedExpression=350]="PartiallyEmittedExpression",l[l.CommaListExpression=351]="CommaListExpression",l[l.MergeDeclarationMarker=352]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=353]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=354]="SyntheticReferenceExpression",l[l.Count=355]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=160]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=177]="FirstTypeNode",l[l.LastTypeNode=200]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=160]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=237]="FirstStatement",l[l.LastStatement=253]="LastStatement",l[l.FirstNode=161]="FirstNode",l[l.FirstJSDocNode=309]="FirstJSDocNode",l[l.LastJSDocNode=347]="LastJSDocNode",l[l.FirstJSDocTagNode=327]="FirstJSDocTagNode",l[l.LastJSDocTagNode=347]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=160]="LastContextualKeyword",l[l.JSDoc=320]="JSDoc",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",c[c.ThisNodeHasError=131072]="ThisNodeHasError",c[c.JavaScriptFile=262144]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=1048576]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",c[c.JSDoc=8388608]="JSDoc",c[c.Ambient=16777216]="Ambient",c[c.InWithStatement=33554432]="InWithStatement",c[c.JsonFile=67108864]="JsonFile",c[c.TypeCached=134217728]="TypeCached",c[c.Deprecated=268435456]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=50720768]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.In=32768]="In",s[s.Out=65536]="Out",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=116958]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=125951]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",e.OperationCanceledException=()=>{},(fe=e.FileIncludeKind||(e.FileIncludeKind={}))[fe.RootFile=0]="RootFile",fe[fe.SourceFromProjectReference=1]="SourceFromProjectReference",fe[fe.OutputFromProjectReference=2]="OutputFromProjectReference",fe[fe.Import=3]="Import",fe[fe.ReferenceFile=4]="ReferenceFile",fe[fe.TypeReferenceDirective=5]="TypeReferenceDirective",fe[fe.LibFile=6]="LibFile",fe[fe.LibReferenceDirective=7]="LibReferenceDirective",fe[fe.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(_e=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[_e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",_e[_e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(pe=e.StructureIsReused||(e.StructureIsReused={}))[pe.Not=0]="Not",pe[pe.SafeModules=1]="SafeModules",pe[pe.Completely=2]="Completely",(de=e.ExitStatus||(e.ExitStatus={}))[de.Success=0]="Success",de[de.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",de[de.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",de[de.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(ue=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[ue.Ok=0]="Ok",ue[ue.NeedsOverride=1]="NeedsOverride",ue[ue.HasInvalidOverride=2]="HasInvalidOverride",(le=e.UnionReduction||(e.UnionReduction={}))[le.None=0]="None",le[le.Literal=1]="Literal",le[le.Subtype=2]="Subtype",(ce=e.ContextFlags||(e.ContextFlags={}))[ce.None=0]="None",ce[ce.Signature=1]="Signature",ce[ce.NoConstraints=2]="NoConstraints",ce[ce.Completions=4]="Completions",ce[ce.SkipBindingPatterns=8]="SkipBindingPatterns",(se=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[se.None=0]="None",se[se.NoTruncation=1]="NoTruncation",se[se.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",se[se.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",se[se.UseStructuralFallback=8]="UseStructuralFallback",se[se.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",se[se.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",se[se.UseFullyQualifiedType=64]="UseFullyQualifiedType",se[se.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",se[se.SuppressAnyReturnType=256]="SuppressAnyReturnType",se[se.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",se[se.MultilineObjectLiterals=1024]="MultilineObjectLiterals",se[se.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",se[se.UseTypeOfFunction=4096]="UseTypeOfFunction",se[se.OmitParameterModifiers=8192]="OmitParameterModifiers",se[se.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",se[se.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",se[se.NoTypeReduction=536870912]="NoTypeReduction",se[se.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",se[se.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",se[se.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",se[se.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",se[se.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",se[se.AllowEmptyTuple=524288]="AllowEmptyTuple",se[se.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",se[se.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",se[se.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",se[se.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",se[se.IgnoreErrors=70221824]="IgnoreErrors",se[se.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",se[se.InTypeAlias=8388608]="InTypeAlias",se[se.InInitialEntityName=16777216]="InInitialEntityName",(oe=e.TypeFormatFlags||(e.TypeFormatFlags={}))[oe.None=0]="None",oe[oe.NoTruncation=1]="NoTruncation",oe[oe.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",oe[oe.UseStructuralFallback=8]="UseStructuralFallback",oe[oe.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",oe[oe.UseFullyQualifiedType=64]="UseFullyQualifiedType",oe[oe.SuppressAnyReturnType=256]="SuppressAnyReturnType",oe[oe.MultilineObjectLiterals=1024]="MultilineObjectLiterals",oe[oe.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",oe[oe.UseTypeOfFunction=4096]="UseTypeOfFunction",oe[oe.OmitParameterModifiers=8192]="OmitParameterModifiers",oe[oe.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",oe[oe.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",oe[oe.NoTypeReduction=536870912]="NoTypeReduction",oe[oe.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",oe[oe.AddUndefined=131072]="AddUndefined",oe[oe.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",oe[oe.InArrayType=524288]="InArrayType",oe[oe.InElementType=2097152]="InElementType",oe[oe.InFirstTypeArgument=4194304]="InFirstTypeArgument",oe[oe.InTypeAlias=8388608]="InTypeAlias",oe[oe.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",oe[oe.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ae=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ae.None=0]="None",ae[ae.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ae[ae.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ae[ae.AllowAnyNodeKind=4]="AllowAnyNodeKind",ae[ae.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ae[ae.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(ie=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ie.Accessible=0]="Accessible",ie[ie.NotAccessible=1]="NotAccessible",ie[ie.CannotBeNamed=2]="CannotBeNamed",(ne=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[ne.UnionOrIntersection=0]="UnionOrIntersection",ne[ne.Spread=1]="Spread",(re=e.TypePredicateKind||(e.TypePredicateKind={}))[re.This=0]="This",re[re.Identifier=1]="Identifier",re[re.AssertsThis=2]="AssertsThis",re[re.AssertsIdentifier=3]="AssertsIdentifier",(te=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[te.Unknown=0]="Unknown",te[te.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",te[te.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",te[te.NumberLikeType=3]="NumberLikeType",te[te.BigIntLikeType=4]="BigIntLikeType",te[te.StringLikeType=5]="StringLikeType",te[te.BooleanType=6]="BooleanType",te[te.ArrayLikeType=7]="ArrayLikeType",te[te.ESSymbolType=8]="ESSymbolType",te[te.Promise=9]="Promise",te[te.TypeWithCallSignature=10]="TypeWithCallSignature",te[te.ObjectType=11]="ObjectType",(ee=e.SymbolFlags||(e.SymbolFlags={}))[ee.None=0]="None",ee[ee.FunctionScopedVariable=1]="FunctionScopedVariable",ee[ee.BlockScopedVariable=2]="BlockScopedVariable",ee[ee.Property=4]="Property",ee[ee.EnumMember=8]="EnumMember",ee[ee.Function=16]="Function",ee[ee.Class=32]="Class",ee[ee.Interface=64]="Interface",ee[ee.ConstEnum=128]="ConstEnum",ee[ee.RegularEnum=256]="RegularEnum",ee[ee.ValueModule=512]="ValueModule",ee[ee.NamespaceModule=1024]="NamespaceModule",ee[ee.TypeLiteral=2048]="TypeLiteral",ee[ee.ObjectLiteral=4096]="ObjectLiteral",ee[ee.Method=8192]="Method",ee[ee.Constructor=16384]="Constructor",ee[ee.GetAccessor=32768]="GetAccessor",ee[ee.SetAccessor=65536]="SetAccessor",ee[ee.Signature=131072]="Signature",ee[ee.TypeParameter=262144]="TypeParameter",ee[ee.TypeAlias=524288]="TypeAlias",ee[ee.ExportValue=1048576]="ExportValue",ee[ee.Alias=2097152]="Alias",ee[ee.Prototype=4194304]="Prototype",ee[ee.ExportStar=8388608]="ExportStar",ee[ee.Optional=16777216]="Optional",ee[ee.Transient=33554432]="Transient",ee[ee.Assignment=67108864]="Assignment",ee[ee.ModuleExports=134217728]="ModuleExports",ee[ee.All=67108863]="All",ee[ee.Enum=384]="Enum",ee[ee.Variable=3]="Variable",ee[ee.Value=111551]="Value",ee[ee.Type=788968]="Type",ee[ee.Namespace=1920]="Namespace",ee[ee.Module=1536]="Module",ee[ee.Accessor=98304]="Accessor",ee[ee.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",ee[ee.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",ee[ee.ParameterExcludes=111551]="ParameterExcludes",ee[ee.PropertyExcludes=0]="PropertyExcludes",ee[ee.EnumMemberExcludes=900095]="EnumMemberExcludes",ee[ee.FunctionExcludes=110991]="FunctionExcludes",ee[ee.ClassExcludes=899503]="ClassExcludes",ee[ee.InterfaceExcludes=788872]="InterfaceExcludes",ee[ee.RegularEnumExcludes=899327]="RegularEnumExcludes",ee[ee.ConstEnumExcludes=899967]="ConstEnumExcludes",ee[ee.ValueModuleExcludes=110735]="ValueModuleExcludes",ee[ee.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",ee[ee.MethodExcludes=103359]="MethodExcludes",ee[ee.GetAccessorExcludes=46015]="GetAccessorExcludes",ee[ee.SetAccessorExcludes=78783]="SetAccessorExcludes",ee[ee.TypeParameterExcludes=526824]="TypeParameterExcludes",ee[ee.TypeAliasExcludes=788968]="TypeAliasExcludes",ee[ee.AliasExcludes=2097152]="AliasExcludes",ee[ee.ModuleMember=2623475]="ModuleMember",ee[ee.ExportHasLocal=944]="ExportHasLocal",ee[ee.BlockScoped=418]="BlockScoped",ee[ee.PropertyOrAccessor=98308]="PropertyOrAccessor",ee[ee.ClassMember=106500]="ClassMember",ee[ee.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",ee[ee.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",ee[ee.Classifiable=2885600]="Classifiable",ee[ee.LateBindingContainer=6256]="LateBindingContainer",(Z=e.EnumKind||(e.EnumKind={}))[Z.Numeric=0]="Numeric",Z[Z.Literal=1]="Literal",(Q=e.CheckFlags||(e.CheckFlags={}))[Q.Instantiated=1]="Instantiated",Q[Q.SyntheticProperty=2]="SyntheticProperty",Q[Q.SyntheticMethod=4]="SyntheticMethod",Q[Q.Readonly=8]="Readonly",Q[Q.ReadPartial=16]="ReadPartial",Q[Q.WritePartial=32]="WritePartial",Q[Q.HasNonUniformType=64]="HasNonUniformType",Q[Q.HasLiteralType=128]="HasLiteralType",Q[Q.ContainsPublic=256]="ContainsPublic",Q[Q.ContainsProtected=512]="ContainsProtected",Q[Q.ContainsPrivate=1024]="ContainsPrivate",Q[Q.ContainsStatic=2048]="ContainsStatic",Q[Q.Late=4096]="Late",Q[Q.ReverseMapped=8192]="ReverseMapped",Q[Q.OptionalParameter=16384]="OptionalParameter",Q[Q.RestParameter=32768]="RestParameter",Q[Q.DeferredType=65536]="DeferredType",Q[Q.HasNeverType=131072]="HasNeverType",Q[Q.Mapped=262144]="Mapped",Q[Q.StripOptional=524288]="StripOptional",Q[Q.Unresolved=1048576]="Unresolved",Q[Q.Synthetic=6]="Synthetic",Q[Q.Discriminant=192]="Discriminant",Q[Q.Partial=48]="Partial",(Y=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Y.Constructor="__constructor",Y.New="__new",Y.Index="__index",Y.ExportStar="__export",Y.Global="__global",Y.Missing="__missing",Y.Type="__type",Y.Object="__object",Y.JSXAttributes="__jsxAttributes",Y.Class="__class",Y.Function="__function",Y.Computed="__computed",Y.Resolving="__resolving__",Y.ExportEquals="export=",Y.Default="default",Y.This="this",(X=e.NodeCheckFlags||(e.NodeCheckFlags={}))[X.TypeChecked=1]="TypeChecked",X[X.LexicalThis=2]="LexicalThis",X[X.CaptureThis=4]="CaptureThis",X[X.CaptureNewTarget=8]="CaptureNewTarget",X[X.SuperInstance=256]="SuperInstance",X[X.SuperStatic=512]="SuperStatic",X[X.ContextChecked=1024]="ContextChecked",X[X.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",X[X.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",X[X.CaptureArguments=8192]="CaptureArguments",X[X.EnumValuesComputed=16384]="EnumValuesComputed",X[X.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",X[X.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",X[X.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",X[X.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",X[X.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",X[X.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",X[X.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",X[X.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",X[X.AssignmentsMarked=8388608]="AssignmentsMarked",X[X.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",X[X.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",X[X.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",X[X.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",X[X.InCheckIdentifier=268435456]="InCheckIdentifier",(q=e.TypeFlags||(e.TypeFlags={}))[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.String=4]="String",q[q.Number=8]="Number",q[q.Boolean=16]="Boolean",q[q.Enum=32]="Enum",q[q.BigInt=64]="BigInt",q[q.StringLiteral=128]="StringLiteral",q[q.NumberLiteral=256]="NumberLiteral",q[q.BooleanLiteral=512]="BooleanLiteral",q[q.EnumLiteral=1024]="EnumLiteral",q[q.BigIntLiteral=2048]="BigIntLiteral",q[q.ESSymbol=4096]="ESSymbol",q[q.UniqueESSymbol=8192]="UniqueESSymbol",q[q.Void=16384]="Void",q[q.Undefined=32768]="Undefined",q[q.Null=65536]="Null",q[q.Never=131072]="Never",q[q.TypeParameter=262144]="TypeParameter",q[q.Object=524288]="Object",q[q.Union=1048576]="Union",q[q.Intersection=2097152]="Intersection",q[q.Index=4194304]="Index",q[q.IndexedAccess=8388608]="IndexedAccess",q[q.Conditional=16777216]="Conditional",q[q.Substitution=33554432]="Substitution",q[q.NonPrimitive=67108864]="NonPrimitive",q[q.TemplateLiteral=134217728]="TemplateLiteral",q[q.StringMapping=268435456]="StringMapping",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=98304]="Nullable",q[q.Literal=2944]="Literal",q[q.Unit=109440]="Unit",q[q.StringOrNumberLiteral=384]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=117632]="DefinitelyFalsy",q[q.PossiblyFalsy=117724]="PossiblyFalsy",q[q.Intrinsic=67359327]="Intrinsic",q[q.Primitive=131068]="Primitive",q[q.StringLike=402653316]="StringLike",q[q.NumberLike=296]="NumberLike",q[q.BigIntLike=2112]="BigIntLike",q[q.BooleanLike=528]="BooleanLike",q[q.EnumLike=1056]="EnumLike",q[q.ESSymbolLike=12288]="ESSymbolLike",q[q.VoidLike=49152]="VoidLike",q[q.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",q[q.DisjointDomains=469892092]="DisjointDomains",q[q.UnionOrIntersection=3145728]="UnionOrIntersection",q[q.StructuredType=3670016]="StructuredType",q[q.TypeVariable=8650752]="TypeVariable",q[q.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=406847488]="InstantiablePrimitive",q[q.Instantiable=465829888]="Instantiable",q[q.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",q[q.ObjectFlagsType=3899393]="ObjectFlagsType",q[q.Simplifiable=25165824]="Simplifiable",q[q.Singleton=67358815]="Singleton",q[q.Narrowable=536624127]="Narrowable",q[q.IncludesMask=205258751]="IncludesMask",q[q.IncludesMissingType=262144]="IncludesMissingType",q[q.IncludesNonWideningType=4194304]="IncludesNonWideningType",q[q.IncludesWildcard=8388608]="IncludesWildcard",q[q.IncludesEmptyObject=16777216]="IncludesEmptyObject",q[q.IncludesInstantiable=33554432]="IncludesInstantiable",q[q.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(G=e.ObjectFlags||(e.ObjectFlags={}))[G.Class=1]="Class",G[G.Interface=2]="Interface",G[G.Reference=4]="Reference",G[G.Tuple=8]="Tuple",G[G.Anonymous=16]="Anonymous",G[G.Mapped=32]="Mapped",G[G.Instantiated=64]="Instantiated",G[G.ObjectLiteral=128]="ObjectLiteral",G[G.EvolvingArray=256]="EvolvingArray",G[G.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",G[G.ReverseMapped=1024]="ReverseMapped",G[G.JsxAttributes=2048]="JsxAttributes",G[G.JSLiteral=4096]="JSLiteral",G[G.FreshLiteral=8192]="FreshLiteral",G[G.ArrayLiteral=16384]="ArrayLiteral",G[G.PrimitiveUnion=32768]="PrimitiveUnion",G[G.ContainsWideningType=65536]="ContainsWideningType",G[G.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",G[G.NonInferrableType=262144]="NonInferrableType",G[G.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",G[G.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",G[G.ClassOrInterface=3]="ClassOrInterface",G[G.RequiresWidening=196608]="RequiresWidening",G[G.PropagatingFlags=458752]="PropagatingFlags",G[G.ObjectTypeKindMask=1343]="ObjectTypeKindMask",G[G.ContainsSpread=2097152]="ContainsSpread",G[G.ObjectRestType=4194304]="ObjectRestType",G[G.InstantiationExpressionType=8388608]="InstantiationExpressionType",G[G.IsClassInstanceClone=16777216]="IsClassInstanceClone",G[G.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",G[G.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",G[G.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",G[G.IsGenericObjectType=4194304]="IsGenericObjectType",G[G.IsGenericIndexType=8388608]="IsGenericIndexType",G[G.IsGenericType=12582912]="IsGenericType",G[G.ContainsIntersections=16777216]="ContainsIntersections",G[G.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",G[G.IsNeverIntersection=33554432]="IsNeverIntersection",($=e.VarianceFlags||(e.VarianceFlags={}))[$.Invariant=0]="Invariant",$[$.Covariant=1]="Covariant",$[$.Contravariant=2]="Contravariant",$[$.Bivariant=3]="Bivariant",$[$.Independent=4]="Independent",$[$.VarianceMask=7]="VarianceMask",$[$.Unmeasurable=8]="Unmeasurable",$[$.Unreliable=16]="Unreliable",$[$.AllowsStructuralFallback=24]="AllowsStructuralFallback",(H=e.ElementFlags||(e.ElementFlags={}))[H.Required=1]="Required",H[H.Optional=2]="Optional",H[H.Rest=4]="Rest",H[H.Variadic=8]="Variadic",H[H.Fixed=3]="Fixed",H[H.Variable=12]="Variable",H[H.NonRequired=14]="NonRequired",H[H.NonRest=11]="NonRest",(J=e.AccessFlags||(e.AccessFlags={}))[J.None=0]="None",J[J.IncludeUndefined=1]="IncludeUndefined",J[J.NoIndexSignatures=2]="NoIndexSignatures",J[J.Writing=4]="Writing",J[J.CacheSymbol=8]="CacheSymbol",J[J.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",J[J.ExpressionPosition=32]="ExpressionPosition",J[J.ReportDeprecated=64]="ReportDeprecated",J[J.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",J[J.Contextual=256]="Contextual",J[J.Persistent=1]="Persistent",(W=e.JsxReferenceKind||(e.JsxReferenceKind={}))[W.Component=0]="Component",W[W.Function=1]="Function",W[W.Mixed=2]="Mixed",(z=e.SignatureKind||(e.SignatureKind={}))[z.Call=0]="Call",z[z.Construct=1]="Construct",(K=e.SignatureFlags||(e.SignatureFlags={}))[K.None=0]="None",K[K.HasRestParameter=1]="HasRestParameter",K[K.HasLiteralTypes=2]="HasLiteralTypes",K[K.Abstract=4]="Abstract",K[K.IsInnerCallChain=8]="IsInnerCallChain",K[K.IsOuterCallChain=16]="IsOuterCallChain",K[K.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",K[K.PropagatingFlags=39]="PropagatingFlags",K[K.CallChainFlags=24]="CallChainFlags",(V=e.IndexKind||(e.IndexKind={}))[V.String=0]="String",V[V.Number=1]="Number",(U=e.TypeMapKind||(e.TypeMapKind={}))[U.Simple=0]="Simple",U[U.Array=1]="Array",U[U.Function=2]="Function",U[U.Composite=3]="Composite",U[U.Merged=4]="Merged",(j=e.InferencePriority||(e.InferencePriority={}))[j.NakedTypeVariable=1]="NakedTypeVariable",j[j.SpeculativeTuple=2]="SpeculativeTuple",j[j.SubstituteSource=4]="SubstituteSource",j[j.HomomorphicMappedType=8]="HomomorphicMappedType",j[j.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",j[j.MappedTypeConstraint=32]="MappedTypeConstraint",j[j.ContravariantConditional=64]="ContravariantConditional",j[j.ReturnType=128]="ReturnType",j[j.LiteralKeyof=256]="LiteralKeyof",j[j.NoConstraints=512]="NoConstraints",j[j.AlwaysStrict=1024]="AlwaysStrict",j[j.MaxValue=2048]="MaxValue",j[j.PriorityImpliesCombination=416]="PriorityImpliesCombination",j[j.Circularity=-1]="Circularity",(B=e.InferenceFlags||(e.InferenceFlags={}))[B.None=0]="None",B[B.NoDefault=1]="NoDefault",B[B.AnyDefault=2]="AnyDefault",B[B.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(R=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[R.None=0]="None",R[R.ExportsProperty=1]="ExportsProperty",R[R.ModuleExports=2]="ModuleExports",R[R.PrototypeProperty=3]="PrototypeProperty",R[R.ThisProperty=4]="ThisProperty",R[R.Property=5]="Property",R[R.Prototype=6]="Prototype",R[R.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",R[R.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",R[R.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(e=>{e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"})(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=(e,t)=>{void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(M=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[M.Classic=1]="Classic",M[M.NodeJs=2]="NodeJs",M[M.Node16=3]="Node16",M[M.NodeNext=99]="NodeNext",(O=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[O.Legacy=1]="Legacy",O[O.Auto=2]="Auto",O[O.Force=3]="Force",(I=e.WatchFileKind||(e.WatchFileKind={}))[I.FixedPollingInterval=0]="FixedPollingInterval",I[I.PriorityPollingInterval=1]="PriorityPollingInterval",I[I.DynamicPriorityPolling=2]="DynamicPriorityPolling",I[I.FixedChunkSizePolling=3]="FixedChunkSizePolling",I[I.UseFsEvents=4]="UseFsEvents",I[I.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(P=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[P.UseFsEvents=0]="UseFsEvents",P[P.FixedPollingInterval=1]="FixedPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(w=e.ModuleKind||(e.ModuleKind={}))[w.None=0]="None",w[w.CommonJS=1]="CommonJS",w[w.AMD=2]="AMD",w[w.UMD=3]="UMD",w[w.System=4]="System",w[w.ES2015=5]="ES2015",w[w.ES2020=6]="ES2020",w[w.ES2022=7]="ES2022",w[w.ESNext=99]="ESNext",w[w.Node16=100]="Node16",w[w.NodeNext=199]="NodeNext",(N=e.JsxEmit||(e.JsxEmit={}))[N.None=0]="None",N[N.Preserve=1]="Preserve",N[N.React=2]="React",N[N.ReactNative=3]="ReactNative",N[N.ReactJSX=4]="ReactJSX",N[N.ReactJSXDev=5]="ReactJSXDev",(A=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[A.Remove=0]="Remove",A[A.Preserve=1]="Preserve",A[A.Error=2]="Error",(k=e.NewLineKind||(e.NewLineKind={}))[k.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",k[k.LineFeed=1]="LineFeed",(C=e.ScriptKind||(e.ScriptKind={}))[C.Unknown=0]="Unknown",C[C.JS=1]="JS",C[C.JSX=2]="JSX",C[C.TS=3]="TS",C[C.TSX=4]="TSX",C[C.External=5]="External",C[C.JSON=6]="JSON",C[C.Deferred=7]="Deferred",(T=e.ScriptTarget||(e.ScriptTarget={}))[T.ES3=0]="ES3",T[T.ES5=1]="ES5",T[T.ES2015=2]="ES2015",T[T.ES2016=3]="ES2016",T[T.ES2017=4]="ES2017",T[T.ES2018=5]="ES2018",T[T.ES2019=6]="ES2019",T[T.ES2020=7]="ES2020",T[T.ES2021=8]="ES2021",T[T.ES2022=9]="ES2022",T[T.ESNext=99]="ESNext",T[T.JSON=100]="JSON",T[T.Latest=99]="Latest",(D=e.LanguageVariant||(e.LanguageVariant={}))[D.Standard=0]="Standard",D[D.JSX=1]="JSX",(S=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[S.None=0]="None",S[S.Recursive=1]="Recursive",(E=e.CharacterCodes||(e.CharacterCodes={}))[E.nullCharacter=0]="nullCharacter",E[E.maxAsciiCharacter=127]="maxAsciiCharacter",E[E.lineFeed=10]="lineFeed",E[E.carriageReturn=13]="carriageReturn",E[E.lineSeparator=8232]="lineSeparator",E[E.paragraphSeparator=8233]="paragraphSeparator",E[E.nextLine=133]="nextLine",E[E.space=32]="space",E[E.nonBreakingSpace=160]="nonBreakingSpace",E[E.enQuad=8192]="enQuad",E[E.emQuad=8193]="emQuad",E[E.enSpace=8194]="enSpace",E[E.emSpace=8195]="emSpace",E[E.threePerEmSpace=8196]="threePerEmSpace",E[E.fourPerEmSpace=8197]="fourPerEmSpace",E[E.sixPerEmSpace=8198]="sixPerEmSpace",E[E.figureSpace=8199]="figureSpace",E[E.punctuationSpace=8200]="punctuationSpace",E[E.thinSpace=8201]="thinSpace",E[E.hairSpace=8202]="hairSpace",E[E.zeroWidthSpace=8203]="zeroWidthSpace",E[E.narrowNoBreakSpace=8239]="narrowNoBreakSpace",E[E.ideographicSpace=12288]="ideographicSpace",E[E.mathematicalSpace=8287]="mathematicalSpace",E[E.ogham=5760]="ogham",E[E._=95]="_",E[E.$=36]="$",E[E._0=48]="_0",E[E._1=49]="_1",E[E._2=50]="_2",E[E._3=51]="_3",E[E._4=52]="_4",E[E._5=53]="_5",E[E._6=54]="_6",E[E._7=55]="_7",E[E._8=56]="_8",E[E._9=57]="_9",E[E.a=97]="a",E[E.b=98]="b",E[E.c=99]="c",E[E.d=100]="d",E[E.e=101]="e",E[E.f=102]="f",E[E.g=103]="g",E[E.h=104]="h",E[E.i=105]="i",E[E.j=106]="j",E[E.k=107]="k",E[E.l=108]="l",E[E.m=109]="m",E[E.n=110]="n",E[E.o=111]="o",E[E.p=112]="p",E[E.q=113]="q",E[E.r=114]="r",E[E.s=115]="s",E[E.t=116]="t",E[E.u=117]="u",E[E.v=118]="v",E[E.w=119]="w",E[E.x=120]="x",E[E.y=121]="y",E[E.z=122]="z",E[E.A=65]="A",E[E.B=66]="B",E[E.C=67]="C",E[E.D=68]="D",E[E.E=69]="E",E[E.F=70]="F",E[E.G=71]="G",E[E.H=72]="H",E[E.I=73]="I",E[E.J=74]="J",E[E.K=75]="K",E[E.L=76]="L",E[E.M=77]="M",E[E.N=78]="N",E[E.O=79]="O",E[E.P=80]="P",E[E.Q=81]="Q",E[E.R=82]="R",E[E.S=83]="S",E[E.T=84]="T",E[E.U=85]="U",E[E.V=86]="V",E[E.W=87]="W",E[E.X=88]="X",E[E.Y=89]="Y",E[E.Z=90]="Z",E[E.ampersand=38]="ampersand",E[E.asterisk=42]="asterisk",E[E.at=64]="at",E[E.backslash=92]="backslash",E[E.backtick=96]="backtick",E[E.bar=124]="bar",E[E.caret=94]="caret",E[E.closeBrace=125]="closeBrace",E[E.closeBracket=93]="closeBracket",E[E.closeParen=41]="closeParen",E[E.colon=58]="colon",E[E.comma=44]="comma",E[E.dot=46]="dot",E[E.doubleQuote=34]="doubleQuote",E[E.equals=61]="equals",E[E.exclamation=33]="exclamation",E[E.greaterThan=62]="greaterThan",E[E.hash=35]="hash",E[E.lessThan=60]="lessThan",E[E.minus=45]="minus",E[E.openBrace=123]="openBrace",E[E.openBracket=91]="openBracket",E[E.openParen=40]="openParen",E[E.percent=37]="percent",E[E.plus=43]="plus",E[E.question=63]="question",E[E.semicolon=59]="semicolon",E[E.singleQuote=39]="singleQuote",E[E.slash=47]="slash",E[E.tilde=126]="tilde",E[E.backspace=8]="backspace",E[E.formFeed=12]="formFeed",E[E.byteOrderMark=65279]="byteOrderMark",E[E.tab=9]="tab",E[E.verticalTab=11]="verticalTab",(x=e.Extension||(e.Extension={})).Ts=".ts",x.Tsx=".tsx",x.Dts=".d.ts",x.Js=".js",x.Jsx=".jsx",x.Json=".json",x.TsBuildInfo=".tsbuildinfo",x.Mjs=".mjs",x.Mts=".mts",x.Dmts=".d.mts",x.Cjs=".cjs",x.Cts=".cts",x.Dcts=".d.cts",(b=e.TransformFlags||(e.TransformFlags={}))[b.None=0]="None",b[b.ContainsTypeScript=1]="ContainsTypeScript",b[b.ContainsJsx=2]="ContainsJsx",b[b.ContainsESNext=4]="ContainsESNext",b[b.ContainsES2022=8]="ContainsES2022",b[b.ContainsES2021=16]="ContainsES2021",b[b.ContainsES2020=32]="ContainsES2020",b[b.ContainsES2019=64]="ContainsES2019",b[b.ContainsES2018=128]="ContainsES2018",b[b.ContainsES2017=256]="ContainsES2017",b[b.ContainsES2016=512]="ContainsES2016",b[b.ContainsES2015=1024]="ContainsES2015",b[b.ContainsGenerator=2048]="ContainsGenerator",b[b.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",b[b.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",b[b.ContainsLexicalThis=8192]="ContainsLexicalThis",b[b.ContainsRestOrSpread=16384]="ContainsRestOrSpread",b[b.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",b[b.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",b[b.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",b[b.ContainsBindingPattern=262144]="ContainsBindingPattern",b[b.ContainsYield=524288]="ContainsYield",b[b.ContainsAwait=1048576]="ContainsAwait",b[b.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",b[b.ContainsDynamicImport=4194304]="ContainsDynamicImport",b[b.ContainsClassFields=8388608]="ContainsClassFields",b[b.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",b[b.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",b[b.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",b[b.HasComputedFlags=536870912]="HasComputedFlags",b[b.AssertTypeScript=1]="AssertTypeScript",b[b.AssertJsx=2]="AssertJsx",b[b.AssertESNext=4]="AssertESNext",b[b.AssertES2022=8]="AssertES2022",b[b.AssertES2021=16]="AssertES2021",b[b.AssertES2020=32]="AssertES2020",b[b.AssertES2019=64]="AssertES2019",b[b.AssertES2018=128]="AssertES2018",b[b.AssertES2017=256]="AssertES2017",b[b.AssertES2016=512]="AssertES2016",b[b.AssertES2015=1024]="AssertES2015",b[b.AssertGenerator=2048]="AssertGenerator",b[b.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",b[b.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",b[b.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",b[b.NodeExcludes=536870912]="NodeExcludes",b[b.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",b[b.FunctionExcludes=591310848]="FunctionExcludes",b[b.ConstructorExcludes=591306752]="ConstructorExcludes",b[b.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",b[b.PropertyExcludes=570433536]="PropertyExcludes",b[b.ClassExcludes=536940544]="ClassExcludes",b[b.ModuleExcludes=589443072]="ModuleExcludes",b[b.TypeExcludes=-2]="TypeExcludes",b[b.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",b[b.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",b[b.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",b[b.ParameterExcludes=536870912]="ParameterExcludes",b[b.CatchClauseExcludes=536903680]="CatchClauseExcludes",b[b.BindingPatternExcludes=536887296]="BindingPatternExcludes",b[b.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",b[b.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(v=e.SnippetKind||(e.SnippetKind={}))[v.TabStop=0]="TabStop",v[v.Placeholder=1]="Placeholder",v[v.Choice=2]="Choice",v[v.Variable=3]="Variable",(y=e.EmitFlags||(e.EmitFlags={}))[y.None=0]="None",y[y.SingleLine=1]="SingleLine",y[y.AdviseOnEmitNode=2]="AdviseOnEmitNode",y[y.NoSubstitution=4]="NoSubstitution",y[y.CapturesThis=8]="CapturesThis",y[y.NoLeadingSourceMap=16]="NoLeadingSourceMap",y[y.NoTrailingSourceMap=32]="NoTrailingSourceMap",y[y.NoSourceMap=48]="NoSourceMap",y[y.NoNestedSourceMaps=64]="NoNestedSourceMaps",y[y.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",y[y.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",y[y.NoTokenSourceMaps=384]="NoTokenSourceMaps",y[y.NoLeadingComments=512]="NoLeadingComments",y[y.NoTrailingComments=1024]="NoTrailingComments",y[y.NoComments=1536]="NoComments",y[y.NoNestedComments=2048]="NoNestedComments",y[y.HelperName=4096]="HelperName",y[y.ExportName=8192]="ExportName",y[y.LocalName=16384]="LocalName",y[y.InternalName=32768]="InternalName",y[y.Indented=65536]="Indented",y[y.NoIndentation=131072]="NoIndentation",y[y.AsyncFunctionBody=262144]="AsyncFunctionBody",y[y.ReuseTempVariableScope=524288]="ReuseTempVariableScope",y[y.CustomPrologue=1048576]="CustomPrologue",y[y.NoHoisting=2097152]="NoHoisting",y[y.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",y[y.Iterator=8388608]="Iterator",y[y.NoAsciiEscaping=16777216]="NoAsciiEscaping",y[y.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",y[y.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",y[y.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",y[y.Immutable=268435456]="Immutable",y[y.IndirectCall=536870912]="IndirectCall",(h=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[h.Extends=1]="Extends",h[h.Assign=2]="Assign",h[h.Rest=4]="Rest",h[h.Decorate=8]="Decorate",h[h.Metadata=16]="Metadata",h[h.Param=32]="Param",h[h.Awaiter=64]="Awaiter",h[h.Generator=128]="Generator",h[h.Values=256]="Values",h[h.Read=512]="Read",h[h.SpreadArray=1024]="SpreadArray",h[h.Await=2048]="Await",h[h.AsyncGenerator=4096]="AsyncGenerator",h[h.AsyncDelegator=8192]="AsyncDelegator",h[h.AsyncValues=16384]="AsyncValues",h[h.ExportStar=32768]="ExportStar",h[h.ImportStar=65536]="ImportStar",h[h.ImportDefault=131072]="ImportDefault",h[h.MakeTemplateObject=262144]="MakeTemplateObject",h[h.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",h[h.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",h[h.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",h[h.CreateBinding=4194304]="CreateBinding",h[h.FirstEmitHelper=1]="FirstEmitHelper",h[h.LastEmitHelper=4194304]="LastEmitHelper",h[h.ForOfIncludes=256]="ForOfIncludes",h[h.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",h[h.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",h[h.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",h[h.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(m=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[m.Parentheses=1]="Parentheses",m[m.TypeAssertions=2]="TypeAssertions",m[m.NonNullAssertions=4]="NonNullAssertions",m[m.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",m[m.Assertions=6]="Assertions",m[m.All=15]="All",m[m.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(_=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",_.EmitHelpers="emitHelpers",_.NoDefaultLib="no-default-lib",_.Reference="reference",_.Type="type",_.TypeResolutionModeRequire="type-require",_.TypeResolutionModeImport="type-import",_.Lib="lib",_.Prepend="prepend",_.Text="text",_.Internal="internal",(p=e.ListFormat||(e.ListFormat={}))[p.None=0]="None",p[p.SingleLine=0]="SingleLine",p[p.MultiLine=1]="MultiLine",p[p.PreserveLines=2]="PreserveLines",p[p.LinesMask=3]="LinesMask",p[p.NotDelimited=0]="NotDelimited",p[p.BarDelimited=4]="BarDelimited",p[p.AmpersandDelimited=8]="AmpersandDelimited",p[p.CommaDelimited=16]="CommaDelimited",p[p.AsteriskDelimited=32]="AsteriskDelimited",p[p.DelimitersMask=60]="DelimitersMask",p[p.AllowTrailingComma=64]="AllowTrailingComma",p[p.Indented=128]="Indented",p[p.SpaceBetweenBraces=256]="SpaceBetweenBraces",p[p.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",p[p.Braces=1024]="Braces",p[p.Parenthesis=2048]="Parenthesis",p[p.AngleBrackets=4096]="AngleBrackets",p[p.SquareBrackets=8192]="SquareBrackets",p[p.BracketsMask=15360]="BracketsMask",p[p.OptionalIfUndefined=16384]="OptionalIfUndefined",p[p.OptionalIfEmpty=32768]="OptionalIfEmpty",p[p.Optional=49152]="Optional",p[p.PreferNewLine=65536]="PreferNewLine",p[p.NoTrailingNewLine=131072]="NoTrailingNewLine",p[p.NoInterveningComments=262144]="NoInterveningComments",p[p.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",p[p.SingleElement=1048576]="SingleElement",p[p.SpaceAfterList=2097152]="SpaceAfterList",p[p.Modifiers=262656]="Modifiers",p[p.HeritageClauses=512]="HeritageClauses",p[p.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",p[p.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",p[p.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",p[p.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",p[p.UnionTypeConstituents=516]="UnionTypeConstituents",p[p.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",p[p.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",p[p.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",p[p.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",p[p.ImportClauseEntries=526226]="ImportClauseEntries",p[p.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",p[p.CommaListElements=528]="CommaListElements",p[p.CallExpressionArguments=2576]="CallExpressionArguments",p[p.NewExpressionArguments=18960]="NewExpressionArguments",p[p.TemplateExpressionSpans=262144]="TemplateExpressionSpans",p[p.SingleLineBlockStatements=768]="SingleLineBlockStatements",p[p.MultiLineBlockStatements=129]="MultiLineBlockStatements",p[p.VariableDeclarationList=528]="VariableDeclarationList",p[p.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",p[p.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",p[p.ClassHeritageClauses=0]="ClassHeritageClauses",p[p.ClassMembers=129]="ClassMembers",p[p.InterfaceMembers=129]="InterfaceMembers",p[p.EnumMembers=145]="EnumMembers",p[p.CaseBlockClauses=129]="CaseBlockClauses",p[p.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",p[p.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",p[p.JsxElementAttributes=262656]="JsxElementAttributes",p[p.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",p[p.HeritageClauseTypes=528]="HeritageClauseTypes",p[p.SourceFileStatements=131073]="SourceFileStatements",p[p.Decorators=2146305]="Decorators",p[p.TypeArguments=53776]="TypeArguments",p[p.TypeParameters=53776]="TypeParameters",p[p.Parameters=2576]="Parameters",p[p.IndexSignatureParameters=8848]="IndexSignatureParameters",p[p.JSDocComment=33]="JSDocComment",(d=e.PragmaKindFlags||(e.PragmaKindFlags={}))[d.None=0]="None",d[d.TripleSlashXML=1]="TripleSlashXML",d[d.SingleLine=2]="SingleLine",d[d.MultiLine=4]="MultiLine",d[d.All=7]="All",d[d.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(p),(e=>{function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function a(t,r){return t.getModifiedTime(r)||e.missingFileModifiedTime}function o(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=()=>{Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=>{e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"})(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),(e=>{e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"})(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=a;var s={Low:32,Medium:64,High:256},c=o(s);function l(t){if(t.getEnvironmentVariable){var r=((e,t)=>{var r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}})(0,i);c=a("TSC_WATCH_POLLINGCHUNKSIZE",s)||c,e.unchangedPollThresholds=a("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=((e,r)=>t.getEnvironmentVariable("".concat(e,"_").concat(r.toUpperCase())))(e,n);i&&((r||(r={}))[n]=Number(i))}}function a(e,t){var i=n(e);return(r||i)&&o(i?m(m({},t),i):t)}}function u(e,t,r,n,i){for(var o=r,s=t.length;n&&s;++r===t.length&&(o<r&&(t.length=o),r=0,o=0),s--){var c=t[r];if(c)if(c.isClosed)t[r]=void 0;else{n--;var l=f(c,a(e,c.fileName));c.isClosed?t[r]=void 0:(null==i||i(c,r,l),t[r]&&(o<r&&(t[o]=c,t[r]=void 0),o++))}}return r}function d(t){var r=[],n=[],o=d(i.Low),s=d(i.Medium),l=d(i.High);return(n,i,o)=>{var s={fileName:n,callback:i,unchangedPolls:0,mtime:a(t,n)};return r.push(s),g(s,o),{close(){s.isClosed=!0,e.unorderedRemoveItem(r,s)}}};function d(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function p(t){t.pollIndex=f(t,t.pollingInterval,t.pollIndex,c[t.pollingInterval]),t.length?y(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){f(n,i.Low,0,n.length),p(e),!e.pollScheduled&&n.length&&y(i.Low)}function f(r,a,o,s){return u(t,r,o,s,((t,o,s)=>{var c;s?(t.unchangedPolls=0,r!==n&&(r[o]=void 0,c=t,n.push(c),h(i.Low))):t.unchangedPolls!==e.unchangedPollThresholds[a]?t.unchangedPolls++:r===n?(t.unchangedPolls=1,r[o]=void 0,g(t,i.Low)):a!==i.High&&(t.unchangedPolls++,r[o]=void 0,g(t,a===i.Low?i.Medium:i.High))}))}function m(e){switch(e){case i.Low:return o;case i.Medium:return s;case i.High:return l}}function g(e,t){m(t).push(e),h(t)}function h(e){m(e).pollScheduled||y(e)}function y(e){m(e).pollScheduled=t.setTimeout(e===i.Low?_:p,e,m(e))}}function p(t){var r,n=[],o=0;return(r,i)=>{var o={fileName:r,callback:i,mtime:a(t,r)};return n.push(o),l(),{close(){o.isClosed=!0,e.unorderedRemoveItem(n,o)}}};function s(){r=void 0,o=u(t,n,o,c[i.Low]),l()}function l(){n.length&&!r&&(r=t.setTimeout(s,i.High))}}function _(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return(r,o,s,c)=>{var l=a(r),u=n.get(l);return u?u.refCount++:n.set(l,{watcher:t(r,((t,r)=>e.forEach(i.get(l),(e=>e(t,r)))),s,c),refCount:1}),i.add(l,o),{close(){var t=e.Debug.checkDefined(n.get(l));i.remove(l,o),t.refCount--,t.refCount||(n.delete(l),e.closeFileWatcherOf(t))}}}}function f(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,g(r,n)),!0)}function g(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}e.unchangedPollThresholds=o(s),e.setCustomPollingValues=l,e.createDynamicPriorityPollingWatchFile=d,e.createSingleFileWatcherPerName=_,e.onWatchedFileStat=f,e.getFileWatcherEventKind=g,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var h,y,v=e.noop;function b(e){return v(e)}function x(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.directoryExists,c=t.realpath,l=t.setTimeout,u=t.clearTimeout,d=new e.Map,p=e.createMultiMap(),_=new e.Map,f=e.getStringComparer(!i),m=e.createGetCanonicalFileName(i);return(e,t,r,i)=>r?g(e,i,t):n(e,t,r,i);function g(t,i,a){var o=m(t),c=d.get(o);c?c.refCount++:(c={watcher:n(t,(e=>{E(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(h(o,e),x(t,o,i)):((e,t,n,i)=>{var a=d.get(t);a&&s(e)?((e,t,n,i)=>{var a=_.get(t);a?a.fileNames.push(n):_.set(t,{dirName:e,options:i,fileNames:[n]}),r&&(u(r),r=void 0),r=l(y,1e3)})(e,t,n,i):(h(t,n),v(a))})(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},d.set(o,c),x(t,o,i));var f=a&&{dirName:t,callback:a};return f&&p.add(o,f),{dirName:t,close(){var t=e.Debug.checkDefined(d.get(o));f&&p.remove(o,f),t.refCount--,t.refCount||(d.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function h(t,r,n){var i,a;e.isString(r)?i=r:a=r,p.forEach(((r,o)=>{var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((e=>(0,e.callback)(i)))}))}function y(){r=void 0,b("sysLog:: onTimerToUpdateChildWatches:: ".concat(_.size));for(var t=e.timestamp(),n=new e.Map;!r&&_.size;){var i=_.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,u=s.fileNames;_.delete(o);var d=x(c,o,l);h(o,n,d?void 0:u)}b("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-t,"ms:: ").concat(_.size)),p.forEach(((t,r)=>{var i=n.get(r);i&&t.forEach((t=>{var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;b("sysLog:: Elapsed:: ".concat(f,"ms:: onTimerToUpdateChildWatches:: ").concat(_.size," ").concat(r))}function v(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),v(d.get(m(a.dirName)))}}}function x(t,r,n){var i,a=d.get(r);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(t)?e.mapDefined(o(t),(r=>{var i=e.getNormalizedAbsolutePath(r,t);return E(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,((e,t)=>f(e,t.dirName)),(e=>{u(g(e,n))}),e.closeFileWatcher,u);return a.childWatches=i||e.emptyArray,l;function u(e){(i||(i=[])).push(e)}}function E(t,r){return e.some(e.ignoredPaths,(r=>((t,r)=>!!e.stringContains(t,r)||!i&&e.stringContains(m(t),r))(t,r)))||S(t,r,i,a)}}function E(e){return(t,r)=>e(r===n.Changed?"change":"rename","")}function S(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function D(t,r,n,i,a){return(o,s)=>{if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&S(c,n,i,a)||r(c)}}}function T(t){var r,a,o,s,c=t.pollingWatchFile,l=t.getModifiedTime,u=t.setTimeout,_=t.clearTimeout,f=t.fsWatch,m=t.fileExists,g=t.useCaseSensitiveFileNames,h=t.getCurrentDirectory,y=t.fsSupportsRecursiveFsWatch,v=t.directoryExists,b=t.getAccessibleSortedChildDirectories,E=t.realpath,S=t.tscWatchFile,T=t.useNonPollingWatchers,C=t.tscWatchDirectory,k=t.defaultWatchFileKind;return{watchFile(t,r,a,s){s=((t,r)=>{if(t&&void 0!==t.watchFile)return t;switch(S){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return w(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return w(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?w(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:(null==k?void 0:k())||e.WatchFileKind.FixedPollingInterval}}})(s,T);var l=e.Debug.checkDefined(s.watchFile);switch(l){case e.WatchFileKind.FixedPollingInterval:return c(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(t,r,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return A()(t,r,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return N()(t,r,void 0,void 0);case e.WatchFileKind.UseFsEvents:return f(t,0,((e,t,r)=>i=>{t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)})(t,r,m),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=((t,r)=>{var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(r);return(r,c,l,u)=>{var d=s(r);a.add(d,c);var p=e.getDirectoryPath(d)||".",_=o.get(p)||((r,c,l)=>{var u=t(r,1,((t,i)=>{if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,r),c=o&&a.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++)(0,u[l])(o,n.Changed)}}),!1,i.Medium,l);return u.referenceCount=0,o.set(c,u),u})(e.getDirectoryPath(r)||".",p,u);return _.referenceCount++,{close(){1===_.referenceCount?(_.close(),o.delete(p)):_.referenceCount--,a.remove(d,c)}}}})(f,g)),o(t,r,a,e.getFallbackOptions(s));default:e.Debug.assertNever(l)}},watchDirectory:(t,r,n,a)=>y?f(t,1,D(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(a)):(s||(s=x({useCaseSensitiveFileNames:g,getCurrentDirectory:h,directoryExists:v,getAccessibleSortedChildDirectories:b,watchDirectory:F,realpath:E,setTimeout:u,clearTimeout:_})),s(t,r,n,a))};function A(){return r||(r=d({getModifiedTime:l,setTimeout:u}))}function N(){return a||(a=p({getModifiedTime:l,setTimeout:u}))}function w(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function F(t,r,n,a){e.Debug.assert(!n);var o=(t=>{if(t&&void 0!==t.watchDirectory)return t;switch(C){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}})(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return A()(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return N()(t,(()=>r(t)),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return f(t,1,D(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}}function C(t){var r=t.writeFile;t.writeFile=(n,i,a)=>e.writeFileEnsuringDirectories(n,i,!!a,((e,n,i)=>r.call(t,e,n,i)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e)))}function k(){if(void 0!==r){var e=r.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.sysLog=b,e.setSysLog=e=>{v=e},e.createDirectoryWatcherSupportingRecursive=x,(y=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[y.File=0]="File",y[y.Directory=1]="Directory",e.createFileWatcherCallback=E,e.createSystemWatchFunctions=T,e.patchWriteFileEnsuringDirectory=C,e.getNodeMajorVersion=k,e.sys=(void 0!==r&&r.nextTick&&!r.browser&&"undefined"!=typeof require&&(h=(()=>{var i,a,o=require("fs"),s=require("path"),c=require("os");try{a=require("crypto")}catch(e){a=void 0}var l,u=!1,d=require("buffer").Buffer,p=k()>=4,f="linux"===r.platform||"darwin"===r.platform,m=c.platform(),g="win32"!==m&&"win64"!==m&&!I((l=__filename,l.replace(/\w/g,(e=>{var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),y=null!==(i=o.realpathSync.native)&&void 0!==i?i:o.realpathSync,v=p&&("win32"===r.platform||"darwin"===r.platform),x=e.memoize((()=>r.cwd())),S=T({pollingWatchFile:_(((e,t,r)=>{var i;return o.watchFile(e,{persistent:!0,interval:r},a),{close:()=>o.unwatchFile(e,a)};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}}),g),getModifiedTime:R,setTimeout,clearTimeout,fsWatch(t,r,i,a,s,c){var l,d,p;f&&(d=t.substr(t.lastIndexOf(e.directorySeparator)),p=d.slice(e.directorySeparator.length));var _=P(t,r)?g():x();return{close(){_.close(),_=void 0}};function m(e){b("sysLog:: ".concat(t,":: Changing watcher to ").concat(e===g?"Present":"Missing","FileSystemEntryWatcher")),i("rename",""),_&&(_.close(),_=e())}function g(){if(void 0===l&&(l=v?{persistent:!0,recursive:!!a}:{persistent:!0}),u)return b("sysLog:: ".concat(t,":: Defaulting to fsWatchFile")),y();try{var e=o.watch(t,l,f?h:i);return e.on("error",(()=>m(x))),e}catch(e){return u||(u="ENOSPC"===e.code),b("sysLog:: ".concat(t,":: Changing to fsWatchFile")),y()}}function h(e,n){return"rename"!==e||n&&n!==p&&(-1===n.lastIndexOf(d)||n.lastIndexOf(d)!==n.length-d.length)||P(t,r)?i(e,n):m(x)}function y(){return D(t,E(i),s,c)}function x(){return D(t,((e,i)=>{i===n.Created&&P(t,r)&&m(g)}),s,c)}},useCaseSensitiveFileNames:g,getCurrentDirectory:x,fileExists:I,fsSupportsRecursiveFsWatch:v,directoryExists:O,getAccessibleSortedChildDirectories:e=>F(e).directories,realpath:M,tscWatchFile:r.env.TSC_WATCHFILE,useNonPollingWatchers:r.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:r.env.TSC_WATCHDIRECTORY,defaultWatchFileKind(){var e,t;return null===(t=(e=h).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),D=S.watchFile,C=S.watchDirectory,A={args:r.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:g,write(e){r.stdout.write(e)},getWidthOfTerminal:()=>r.stdout.columns,writeOutputIsTTY:()=>r.stdout.isTTY,readFile(t,r){e.perfLogger.logStartReadFile(t);var n=((e,t)=>{var r;try{r=o.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")})(t);return e.perfLogger.logStopReadFile(),n},writeFile(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=o.openSync(t,"w"),o.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&o.closeSync(i)}},watchFile:D,watchDirectory:C,resolvePath:e=>s.resolve(e),fileExists:I,directoryExists:O,createDirectory(e){if(!A.directoryExists(e))try{o.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>__filename,getCurrentDirectory:x,getDirectories:e=>F(e).directories.slice(),getEnvironmentVariable:e=>r.env[e]||"",readDirectory:(t,n,i,a,o)=>e.matchFiles(t,n,i,a,g,r.cwd(),o,F,M),getModifiedTime:R,setModifiedTime(e,t){try{o.utimesSync(e,t,t)}catch(e){return}},deleteFile(e){try{return o.unlinkSync(e)}catch(e){return}},createHash:a?L:t,createSHA256Hash:a?L:void 0,getMemoryUsage:()=>(global.gc&&global.gc(),r.memoryUsage().heapUsed),getFileSize(e){try{var t=N(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit(e){!(e=>{e()})((()=>r.exit(e)))},cpuProfilingEnabled:()=>e.contains(r.execArgv,"--cpu-prof")||e.contains(r.execArgv,"--prof"),realpath:M,debugMode:!!r.env.NODE_INSPECTOR_IPC||!!r.env.VSCODE_INSPECTOR_OPTIONS||e.some(r.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))),tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch(e){}},setTimeout,clearTimeout,clearScreen(){r.stdout.write("c")},setBlocking(){r.stdout&&r.stdout._handle&&r.stdout._handle.setBlocking&&r.stdout._handle.setBlocking(!0)},bufferFrom:w,base64decode:e=>w(e,"base64").toString("utf8"),base64encode:e=>w(e).toString("base64"),require(t,r){try{var n=e.resolveJSModule(r,t,A);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return A;function N(e){return o.statSync(e,{throwIfNoEntry:!1})}function w(e,t){return d.from&&d.from!==Int8Array.from?d.from(e,t):new d(e,t)}function F(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=o.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],a=0,s=r;a<s.length;a++){var c=s[a],l="string"==typeof c?c:c.name;if("."!==l&&".."!==l){var u=void 0;if("string"==typeof c||c.isSymbolicLink()){var d=e.combinePaths(t,l);try{if(!(u=N(d)))continue}catch(e){continue}}else u=c;u.isFile()?n.push(l):u.isDirectory()&&i.push(l)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function P(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=N(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function I(e){return P(e,0)}function O(e){return P(e,1)}function M(e){try{return y(e)}catch(t){return e}}function R(e){var t;try{return null===(t=N(e))||void 0===t?void 0:t.mtime}catch(e){return}}function L(e){var t=a.createHash("sha256");return t.update(e),t.digest("hex")}})()),h&&C(h),h),e.setSys=t=>{e.sys=t},e.sys&&e.sys.getEnvironmentVariable&&(l(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(p),(e=>{e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return l(e)>0}function i(e){return 0!==l(e)}function a(e){return/^\.\.?($|[\\/])/.test(e)}function o(t,r){return t.length>r.length&&e.endsWith(t,r)}function s(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(c(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var l=t.slice(0,a),u=t.slice(o,s);if("file"===l&&(""===u||"localhost"===u)&&c(t.charCodeAt(s+1))){var d=((e,t)=>{var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1})(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function u(e){var t=l(e);return t<0?~t:t}function d(t){var r=u(t=y(t));return r===t.length?t:(t=T(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(u(t=y(t))===t.length)return"";var i=(t=T(t)).slice(Math.max(u(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function _(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function m(t,r,n){if(r)return((e,t,r)=>{if("string"==typeof t)return _(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=_(e,i[n],r);if(a)return a}return""})(T(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function g(t,r){return void 0===r&&(r=""),((t,r)=>{var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),f([n],i,!0)})(t=b(r,t),u(t))}function h(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function y(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=y(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=y(a),e=e&&0===u(a)?C(e)+a:a)}return e}function x(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return D(e.some(r)?b.apply(void 0,f([t],r,!1)):y(t))}function E(e,t){return v(g(e,t))}function S(e,t){return h(E(e,t))}function D(e){if(e=y(e),!A.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!A.test(e)))return e;var r=h(v(g(e)));return r&&s(e)?C(r):r}function T(e){return s(e)?e.substr(0,e.length-1):e}function C(t){return s(t)?t:t+e.directorySeparator}function k(e){return i(e)||a(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=e=>l(e)<0,e.isRootedDiskPath=n,e.isDiskPathRoot=e=>{var t=l(e);return t>0&&t===e.length},e.pathIsAbsolute=i,e.pathIsRelative=a,e.pathIsBareSpecifier=e=>!i(e)&&!a(e),e.hasExtension=t=>e.stringContains(p(t),"."),e.fileExtensionIs=o,e.fileExtensionIsOneOf=(e,t)=>{for(var r=0,n=t;r<n.length;r++)if(o(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=s,e.getRootLength=u,e.getDirectoryPath=d,e.getBaseFileName=p,e.getAnyExtensionFromPath=m,e.getPathComponents=g,e.getPathFromPathComponents=h,e.normalizeSlashes=y,e.reducePathComponents=v,e.combinePaths=b,e.resolvePath=x,e.getNormalizedPathComponents=E,e.getNormalizedAbsolutePath=S,e.normalizePath=D,e.getNormalizedAbsolutePathWithoutRoot=(t,r)=>{return 0===(n=E(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=(e,t,r)=>r(n(e)?D(e):S(e,t)),e.removeTrailingDirectorySeparator=T,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=k,e.changeAnyExtension=(t,r,n,i)=>{var a=void 0!==n&&void 0!==i?m(t,n,i):m(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var A=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function N(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,u(t)),a=r.substring(0,u(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!A.test(s)&&!A.test(c))return n(s,c);for(var l=v(g(t)),d=v(g(r)),p=Math.min(l.length,d.length),_=1;_<p;_++){var f=n(l[_],d[_]);if(0!==f)return f}return e.compareValues(l.length,d.length)}function w(t,r,n,i){var a,o=v(g(t)),s=v(g(r));for(a=0;a<o.length&&a<s.length;a++){var c=i(o[a]),l=i(s[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(c,l))break}if(0===a)return s;for(var u=s.slice(a),d=[];a<o.length;a++)d.push("..");return f(f([""],d,!0),u,!0)}function F(t,r,n){e.Debug.assert(u(t)>0==u(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return h(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=w(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return h(s)}e.comparePathsCaseSensitive=(t,r)=>N(t,r,e.compareStringsCaseSensitive),e.comparePathsCaseInsensitive=(t,r)=>N(t,r,e.compareStringsCaseInsensitive),e.comparePaths=(t,r,n,i)=>("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),N(t,r,e.getStringComparer(i))),e.containsPath=(t,r,n,i)=>{if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(g(t)),o=v(g(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=(t,r,n)=>{var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=w,e.getRelativePathFromDirectory=F,e.convertToRelativePath=(e,t,r)=>n(e)?P(t,e,t,r,!1):e,e.getRelativePathFromFile=(e,t,r)=>k(F(d(e),t,r)),e.getRelativePathToDirectoryOrUrl=P,e.forEachAncestorDirectory=(e,t)=>{for(;;){var r=t(e);if(void 0!==r)return r;var n=d(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=t=>e.endsWith(t,"/node_modules")})(p),(e=>{function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(p),(e=>{var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=e=>31===e||r(e),e.textToKeywordObj=((t={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:158,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,t.debugger=87,t.declare=135,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=156,t.function=98,t.get=136,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=137,t.instanceof=102,t.interface=118,t.intrinsic=138,t.is=139,t.keyof=140,t.let=119,t.module=141,t.namespace=142,t.never=143,t.new=103,t.null=104,t.number=147,t.object=148,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=159,t.out=144,t.readonly=145,t.require=146,t.global=157,t.return=105,t.set=149,t.static=124,t.string=150,t.super=106,t.switch=107,t.symbol=151,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=152,t.typeof=112,t.undefined=153,t.unique=154,t.unknown=155,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=131,t.await=132,t.of=160,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(m(m({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),a=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],u=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],d=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function _(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function f(e,t){return _(e,t>=2?l:1===t?s:a)}e.isUnicodeIdentifierStart=f;var g,h=(g=[],i.forEach(((e,t)=>{g[e]=t})),g);function y(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&T(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,y(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=y(e.text))}function x(e,t){var r=E(e,t);return{line:r,character:t-e[r]}}function E(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function S(e){return D(e)||T(e)}function D(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function T(e){return 10===e||13===e||8232===e||8233===e}function C(e){return e>=48&&e<=57}function k(e){return C(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=e=>h[e],e.stringToToken=e=>i.get(e),e.computeLineStarts=y,e.getPositionOfLineAndCharacter=(e,t,r,n)=>e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n),e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=E,e.getLinesBetweenPositions=(e,t,r)=>{if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=E(n,i),c=E(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=(e,t)=>x(b(e),t),e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=D,e.isLineBreak=T,e.isOctalDigit=A,e.couldStartTrivia=(e,t)=>{var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=(t,r,n,i,a)=>{if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!T(t.charCodeAt(r));)r++;o=!1;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(w(t,r)){r=F(t,r),o=!1;continue}break;case 35:if(0===r&&I(t,r)){r=O(t,r),o=!1;continue}break;case 42:if(o){r++,o=!1;continue}break;default:if(s>127&&S(s)){r++;continue}}return r}};var N="<<<<<<<".length;function w(t,r){if(e.Debug.assert(r>=0),0===r||T(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N<t.length){for(var i=0;i<N;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+N)}}return!1}function F(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,N);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!T(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&w(t,r))break;r++}return r}var P=/^#!.*/;function I(t,r){return e.Debug.assert(0===r),P.test(t)}function O(e,t){return t+P.exec(e)[0].length}function M(e,t,r,n,i,a,o){var s,c,l,u,d=!1,p=n,_=o;if(0===r){p=!0;var f=j(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),h=!1;if(47===g||42===g){var y=47===g?2:3,v=r;if(r+=2,47===g)for(;r<t.length;){if(T(t.charCodeAt(r))){h=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(p){if(d&&(_=i(s,c,l,u,a,_),!e&&_))return _;s=v,c=r,l=y,u=h,d=!0}continue}break e;default:if(m>127&&S(m)){d&&T(m)&&(u=!0),r++;continue}break e}}return d&&(_=i(s,c,l,u,a,_)),_}function R(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function L(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=P.exec(e);if(t)return t[0]}function U(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&f(e,t)}function V(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&((e,t)=>_(e,t>=2?u:1===t?c:o))(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=(e,t,r,n)=>M(!1,e,t,!1,r,n),e.forEachTrailingCommentRange=(e,t,r,n)=>M(!1,e,t,!0,r,n),e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=L,e.getLeadingCommentRanges=(e,t)=>R(e,t,B,void 0,void 0),e.getTrailingCommentRanges=(e,t)=>L(e,t,B,void 0,void 0),e.getShebang=j,e.isIdentifierStart=U,e.isIdentifierPart=V,e.isIdentifierText=(e,t,r)=>{var n=K(e,0);if(!U(n,t))return!1;for(var i=z(n);i<e.length;i+=z(n))if(!V(n=K(e,i),t,r))return!1;return!0},e.createScanner=(t,i,a,o,s,c,l)=>{void 0===a&&(a=0);var u,_,f,m,g,h,y,v,b=o,x=0;le(b,c,l);var E={getStartPos:()=>f,getTextPos:()=>u,getToken:()=>g,getTokenPos:()=>m,getTokenText:()=>b.substring(m,u),getTokenValue:()=>h,hasUnicodeEscape:()=>0!=(1024&y),hasExtendedUnicodeEscape:()=>0!=(8&y),hasPrecedingLineBreak:()=>0!=(1&y),hasPrecedingJSDocComment:()=>0!=(2&y),isIdentifier:()=>79===g||g>116,isReservedWord:()=>g>=81&&g<=116,isUnterminated:()=>0!=(4&y),getCommentDirectives:()=>v,getNumericLiteralFlags:()=>1008&y,getTokenFlags:()=>y,reScanGreaterToken(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:()=>(e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=m+1,g=63),reScanSlashToken(){if(43===g||68===g){for(var r=m+1,n=!1,i=!1;;){if(r>=_){y|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(T(a)){y|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&V(b.charCodeAt(r),t);)r++;u=r,h=b.substring(m,u),g=13}return g},reScanTemplateToken:t=>(e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),u=m,g=$(t)),reScanTemplateHeadOrNoSubstitutionTemplate:()=>(u=m,g=$(!0)),scanJsxIdentifier(){if(r(g)){for(var e=!1;u<_;){var t=b.charCodeAt(u);if(45!==t)if(58!==t||e){var n=u;if(h+=Z(),u===n)break}else h+=":",u++,e=!0,g=79;else h+="-",u++}return":"===h.slice(-1)&&(h=h.slice(0,-1),u--),ee()}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:()=>(u=m=f,se()),reScanJsxToken:e=>(void 0===e&&(e=!0),u=m=f,g=oe(e)),reScanLessThanToken:()=>47===g?(u=m+1,g=29):g,reScanHashToken:()=>80===g?(u=m+1,g=62):g,reScanQuestionToken:()=>(e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),u=m+1,g=57),reScanInvalidIdentifier(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=m=f,y=0;var t=K(b,u),r=ie(t,99);return r?g=r:(u+=z(t),g)},scanJsxToken:oe,scanJsDocToken(){if(f=m=u,y=0,u>=_)return g=1;var e=K(b,u);switch(u+=z(e),e){case 9:case 11:case 12:case 32:for(;u<_&&D(b.charCodeAt(u));)u++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return y|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:u--;var r=Q();if(r>=0&&U(r,t))return u+=3,y|=8,h=X()+Z(),g=ee();var n=Y();return n>=0&&U(n,t)?(u+=6,y|=1024,h=String.fromCharCode(n)+Z(),g=ee()):(u++,g=0)}if(U(e,t)){for(var i=e;u<_&&V(i=K(b,u),t)||45===b.charCodeAt(u);)u+=z(i);return h=b.substring(m,u),92===i&&(h+=Z()),g=ee()}return g=0},scan:ne,getText:()=>b,clearCommentDirectives(){v=void 0},setText:le,setScriptTarget(e){t=e},setLanguageVariant(e){a=e},setOnError(e){s=e},setTextPos:ue,setInJSDocType(e){x+=e?1:-1},tryScan:e=>ce(e,!1),lookAhead:e=>ce(e,!0),scanRange(e,t,r){var n=_,i=u,a=f,o=m,s=g,c=h,l=y,d=v;le(b,e,t);var p=r();return _=n,u=i,f=a,m=o,g=s,h=c,y=l,v=d,p}};return e.Debug.isDebugging&&Object.defineProperty(E,"__debugShowCurrentPositionInText",{get(){var e=E.getText();return e.slice(0,E.getStartPos())+"║"+e.slice(E.getStartPos())}}),E;function N(e,t,r){if(void 0===t&&(t=u),s){var n=u;u=t,s(e,r||0),u=n}}function P(){for(var t=u,r=!1,n=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!C(a))break;r=!0,n=!1,u++}else y|=512,r?(r=!1,n=!0,i+=b.substring(t,u)):N(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),t=++u}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(t,u)}function M(){var t,r,n=u,i=P();46===b.charCodeAt(u)&&(u++,t=P());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,y|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=P();c?(r=b.substring(o,s)+c,o=u):N(e.Diagnostics.Digit_expected)}if(512&y?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&y)return R(n,void 0===t&&!!(16&y)),{type:8,value:""+ +a};h=a;var l=re();return R(n),{type:l,value:h}}function R(r,n){if(U(K(b,u),t)){var i=u,a=Z().length;1===a&&"n"===b[i]?N(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(N(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function L(){for(var e=u;A(b.charCodeAt(u));)u++;return+b.substring(e,u)}function B(e,t){var r=W(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return W(e,!0,t)}function W(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(u);if(n&&95===s)y|=512,a?(a=!1,o=!0):N(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,i)}function H(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(u),n="",i=++u;;){if(u>=_){n+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(T(a)&&!t){n+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=G(),i=u}return n}function $(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=_){a+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1<_&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,r=n?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<_&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=G(t),i=u)}return e.Debug.assert(void 0!==r),h=a,r}function G(t){var r=u;if(++u>=_)return N(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u<_&&C(b.charCodeAt(u))?(u++,y|=2048,b.substring(r,u)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(t)for(var i=u;i<u+4;i++)if(i<_&&!k(b.charCodeAt(i))&&123!==b.charCodeAt(i))return u=i,y|=2048,b.substring(r,u);if(u<_&&123===b.charCodeAt(u)){if(u++,t&&!k(b.charCodeAt(u)))return y|=2048,b.substring(r,u);if(t){var a=u,o=j(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(u)))return y|=2048,b.substring(r,u);u=a}return y|=8,X()}return y|=1024,q(4);case 120:if(t){if(!k(b.charCodeAt(u)))return y|=2048,b.substring(r,u);if(!k(b.charCodeAt(u+1)))return u++,y|=2048,b.substring(r,u)}return q(2);case 13:u<_&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function q(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(N(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(N(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(N(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=_?(N(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(N(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":J(r)}function Y(){if(u+5<_&&117===b.charCodeAt(u+1)){var e=u;u+=2;var t=B(4,!1);return u=e,t}return-1}function Q(){if(t>=2&&117===K(b,u+1)&&123===K(b,u+2)){var e=u;u+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return u=e,n}return-1}function Z(){for(var e="",r=u;u<_;){var n=K(b,u);if(V(n,t))u+=z(n);else{if(92!==n)break;if((n=Q())>=0&&V(n,t)){u+=3,y|=8,e+=X(),r=u;continue}if(!((n=Y())>=0&&V(n,t)))break;y|=1024,e+=b.substring(r,u),e+=J(n),r=u+=6}}return e+b.substring(r,u)}function ee(){var e=h.length;if(e>=2&&e<=12){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(h);if(void 0!==r)return g=r}}return g=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!C(a)||a-48>=t)break;r+=b[u],u++,i=!1}else y|=512,n?(n=!1,i=!0):N(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===b.charCodeAt(u))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),u++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function ne(){var r;f=u,y=0;for(var n=!1;;){if(m=u,u>=_)return g=1;var o=K(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return g=6}switch(o){case 10:case 13:if(y|=1,i){u++;continue}return 13===o&&u+1<_&&10===b.charCodeAt(u+1)?u+=2:u++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(i){u++;continue}for(;u<_&&D(b.charCodeAt(u));)u++;return g=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=37):(u+=2,g=35):(u++,g=53);case 34:case 39:return h=H(),g=10;case 96:return g=$(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,g=69):(u++,g=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=76):(u+=2,g=55):61===b.charCodeAt(u+1)?(u+=2,g=73):(u++,g=50);case 40:return u++,g=20;case 41:return u++,g=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,g=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,g=67):(u+=2,g=42);if(u++,x&&!n&&1&y){n=!0;continue}return g=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,g=45):61===b.charCodeAt(u+1)?(u+=2,g=64):(u++,g=39);case 44:return u++,g=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,g=46):61===b.charCodeAt(u+1)?(u+=2,g=65):(u++,g=40);case 46:return C(b.charCodeAt(u+1))?(h=M().value,g=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,g=25):(u++,g=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<_&&!T(b.charCodeAt(u));)u++;if(v=ae(v,b.slice(m,u),d,m),i)continue;return g=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(y|=2);for(var s=!1,c=m;u<_;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,T(l)&&(c=u,y|=1)}if(v=ae(v,b.slice(c,u),p,c),s||N(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(y|=4),g=3}return 61===b.charCodeAt(u+1)?(u+=2,g=68):(u++,g=43);case 48:if(u+2<_&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(h=j(1,!0))||(N(e.Diagnostics.Hexadecimal_digit_expected),h="0"),h="0x"+h,y|=64,g=re();if(u+2<_&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(h=te(2))||(N(e.Diagnostics.Binary_digit_expected),h="0"),h="0b"+h,y|=128,g=re();if(u+2<_&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(h=te(8))||(N(e.Diagnostics.Octal_digit_expected),h="0"),h="0o"+h,y|=256,g=re();if(u+1<_&&A(b.charCodeAt(u+1)))return h=""+L(),y|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=M(),g=r.type,h=r.value,g;case 58:return u++,g=58;case 59:return u++,g=26;case 60:if(w(b,u)){if(u=F(b,u,N),i)continue;return g=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=70):(u+=2,g=47):61===b.charCodeAt(u+1)?(u+=2,g=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,g=30):(u++,g=29);case 61:if(w(b,u)){if(u=F(b,u,N),i)continue;return g=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=36):(u+=2,g=34):62===b.charCodeAt(u+1)?(u+=2,g=38):(u++,g=63);case 62:if(w(b,u)){if(u=F(b,u,N),i)continue;return g=7}return u++,g=31;case 63:return 46!==b.charCodeAt(u+1)||C(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=77):(u+=2,g=60):(u++,g=57):(u+=2,g=28);case 91:return u++,g=22;case 93:return u++,g=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,g=78):(u++,g=52);case 123:return u++,g=18;case 124:if(w(b,u)){if(u=F(b,u,N),i)continue;return g=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=75):(u+=2,g=56):61===b.charCodeAt(u+1)?(u+=2,g=74):(u++,g=51);case 125:return u++,g=19;case 126:return u++,g=54;case 64:return u++,g=59;case 92:var E=Q();if(E>=0&&U(E,t))return u+=3,y|=8,h=X()+Z(),g=ee();var S=Y();return S>=0&&U(S,t)?(u+=6,y|=1024,h=String.fromCharCode(S)+Z(),g=ee()):(N(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(N(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(U(K(b,u+1),t)?(u++,ie(K(b,u),t)):(h=String.fromCharCode(K(b,u)),N(e.Diagnostics.Invalid_character,u++,z(o))),g=80);default:var k=ie(o,t);if(k)return g=k;if(D(o)){u+=z(o);continue}if(T(o)){y|=1,u+=z(o);continue}var P=z(o);return N(e.Diagnostics.Invalid_character,u,P),u+=P,g=0}}}function ie(e,t){var r=e;if(U(r,t)){for(u+=z(r);u<_&&V(r=K(b,u),t);)u+=z(r);return h=b.substring(m,u),92===r&&(h+=Z()),ee()}}function ae(t,r,n,i){var a=((e,t)=>{var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}})(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:u},type:a})}function oe(t){if(void 0===t&&(t=!0),f=m=u,u>=_)return g=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===r)return u++,g=18;for(var n=0;u<_&&123!==(r=b.charCodeAt(u));){if(60===r){if(w(b,u))return u=F(b,u,N),g=7;break}if(62===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),T(r)&&0===n)n=-1;else{if(!t&&T(r)&&n>0)break;S(r)||(n=u)}u++}return h=b.substring(f,u),-1===n?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return h=H(!0),g=10;default:return ne()}}function ce(e,t){var r=u,n=f,i=m,a=g,o=h,s=y,c=e();return c&&!t||(u=r,f=n,m=i,g=a,h=o,y=s),c}function le(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,m=t,g=0,h=void 0,y=0}};var K=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>{var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function z(e){return e>=65536?2:1}var W=String.fromCodePoint?e=>String.fromCodePoint(e):t=>{if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function J(e){return W(e)}e.utf16EncodeAsString=J})(p),(e=>{function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!Q(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 254===t.kind&&(t=t.parent),t&&255===t.kind&&(n|=r(t),t=t.parent),t&&237===t.kind&&(n|=r(t)),n}function _(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function m(e){return f(e.escapedText)}function g(t){var r=t.parent.parent;if(r){if(se(r))return h(r);switch(r.kind){case 237:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 238:var n=r.expression;switch(221===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 206:return n.name;case 207:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 212:return h(r.expression);case 250:if(se(r.statement)||ne(r.statement))return h(r.statement)}}}function h(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||g(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 347:case 340:var r=t.name;if(161===r.kind)return r.right;break;case 208:case 221:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 345:return y(t);case 339:return g(t);case 271:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 207:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?E(t):void 0)}function E(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return N(t.parent,r).filter((t=>e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=N(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function D(e){return S(e,!1)}function T(t,r){var n=t.name.escapedText;return N(t.parent,r).filter((t=>e.isJSDocTemplateTag(t)&&t.typeParameters.some((e=>e.name.escapedText===n))))}function C(t){return F(t,e.isJSDocReturnTag)}function k(t){var r=F(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function A(t){var r=F(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(D(t),(e=>!!e.typeExpression))),r&&r.typeExpression&&r.typeExpression.type}function N(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(t=>e.isJSDoc(t)?t.tags:t)),r||(t.jsDocCache=n)}return n}function w(e){return N(e,!1)}function F(t,r,n){return e.find(N(t,n),r)}function P(e,t){return w(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(206===t||207===t||208===t||230===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function R(e){switch(e.kind){case 302:case 303:return!0;default:return!1}}function L(e){return e>=161}function B(e){return e>=0&&e<=160}function j(e){return 8<=e&&e<=14}function U(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||q(t))&&e.isPrivateIdentifier(t.name)}function K(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 101:case 123:case 121:case 122:case 145:case 124:case 144:case 159:return!0}return!1}function z(t){return!!(16476&e.modifierToFlag(t))}function W(e){return!!e&&H(e.kind)}function J(e){switch(e){case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return!1}}function H(e){switch(e){case 168:case 174:case 323:case 175:case 176:case 179:case 317:case 180:return!0;default:return J(e)}}function $(e){var t=e.kind;return 171===t||167===t||169===t||172===t||173===t||176===t||170===t||234===t}function G(e){return e&&(257===e.kind||226===e.kind)}function q(e){switch(e.kind){case 169:case 172:case 173:return!0;default:return!1}}function X(e){var t=e.kind;return 175===t||174===t||166===t||168===t||176===t||172===t||173===t}function Y(e){var t=e.kind;return 296===t||297===t||298===t||169===t||172===t||173===t}function Q(e){if(e){var t=e.kind;return 202===t||201===t}return!1}function Z(e){switch(e.kind){case 201:case 205:return!0}return!1}function ee(e){switch(e.kind){case 202:case 204:return!0}return!1}function te(e){switch(e){case 206:case 207:case 209:case 208:case 278:case 279:case 282:case 210:case 204:case 212:case 205:case 226:case 213:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 223:case 95:case 104:case 108:case 110:case 106:case 230:case 228:case 231:case 100:return!0;default:return!1}}function re(e){switch(e){case 219:case 220:case 215:case 216:case 217:case 218:case 211:return!0;default:return te(e)}}function ne(e){return(e=>{switch(e){case 222:case 224:case 214:case 221:case 225:case 229:case 227:case 351:case 350:return!0;default:return re(e)}})(M(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 256===e||276===e||257===e||258===e||259===e||260===e||261===e||266===e||265===e||272===e||271===e||264===e}function oe(e){return 246===e||245===e||253===e||240===e||238===e||236===e||243===e||244===e||242===e||239===e||250===e||247===e||249===e||251===e||252===e||237===e||241===e||248===e||349===e||353===e||352===e}function se(t){return 163===t.kind?t.parent&&344!==t.parent.kind||e.isInJSFile(t):214===(r=t.kind)||203===r||257===r||226===r||170===r||171===r||260===r||299===r||275===r||256===r||213===r||172===r||267===r||265===r||270===r||258===r||285===r||169===r||168===r||261===r||264===r||268===r||274===r||164===r||296===r||167===r||166===r||173===r||297===r||259===r||163===r||254===r||345===r||338===r||347===r;var r}function ce(e){return e.kind>=327&&e.kind<=347}e.isExternalModuleNameRelative=t=>e.pathIsRelative(t)||e.isRootedDiskPath(t),e.sortAndDeduplicateDiagnostics=t=>e.sortAndDeduplicate(t,e.compareDiagnostics),e.getDefaultLibFileName=t=>{switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=(e,r)=>r>=e.start&&r<t(e),e.textRangeContainsPositionInclusive=(e,t)=>t>=e.pos&&t<=e.end,e.textSpanContainsTextSpan=(e,r)=>r.start>=e.start&&t(r)<=t(e),e.textSpanOverlapsWith=(e,t)=>void 0!==n(e,t),e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=(e,t)=>i(e.start,e.length,t.start,t.length),e.textSpanIntersectsWith=(e,t,r)=>i(e.start,e.length,t,r),e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=(e,r)=>r<=t(e)&&r>=e.start,e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=e=>o(e.span.start,e.newLength),e.textChangeRangeIsUnchanged=e=>r(e.span)&&0===e.newLength,e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=r=>{if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l<r.length;l++){var u=r[l],d=i,p=a,_=o,f=u.span.start,m=t(u.span),g=f+u.newLength;i=Math.min(d,f),a=Math.max(p,p+(m-_)),o=Math.max(g,g+(_-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=e=>{if(e&&163===e.kind)for(var t=e;t;t=t.parent)if(W(t)||G(t)||258===t.kind)return t},e.isParameterPropertyDeclaration=(t,r)=>e.hasSyntacticModifier(t,16476)&&171===r.kind,e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=t=>p(t,e.getEffectiveModifierFlags),e.getCombinedNodeFlagsAlwaysIncludeJSDoc=t=>p(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc),e.getCombinedNodeFlags=e=>p(e,(e=>e.flags)),e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=(t,r,n)=>{var i=t.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=(e,t)=>{if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=(e,t)=>{for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=_,e.getParseTreeNode=(e,t)=>{if(void 0===e||_(e))return e;for(e=e.original;e;){if(_(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=e=>e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e,e.unescapeLeadingUnderscores=f,e.idText=m,e.symbolName=e=>e.valueDeclaration&&V(e.valueDeclaration)?m(e.valueDeclaration.name):f(e.escapedName),e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||m(r.name)!==m(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(e=>t(e,n))))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=E,e.getJSDocParameterTags=D,e.getJSDocParameterTagsNoCache=e=>S(e,!0),e.getJSDocTypeParameterTags=e=>T(e,!1),e.getJSDocTypeParameterTagsNoCache=e=>T(e,!0),e.hasJSDocParameterTags=t=>!!F(t,e.isJSDocParameterTag),e.getJSDocAugmentsTag=t=>F(t,e.isJSDocAugmentsTag),e.getJSDocImplementsTags=t=>P(t,e.isJSDocImplementsTag),e.getJSDocClassTag=t=>F(t,e.isJSDocClassTag),e.getJSDocPublicTag=t=>F(t,e.isJSDocPublicTag),e.getJSDocPublicTagNoCache=t=>F(t,e.isJSDocPublicTag,!0),e.getJSDocPrivateTag=t=>F(t,e.isJSDocPrivateTag),e.getJSDocPrivateTagNoCache=t=>F(t,e.isJSDocPrivateTag,!0),e.getJSDocProtectedTag=t=>F(t,e.isJSDocProtectedTag),e.getJSDocProtectedTagNoCache=t=>F(t,e.isJSDocProtectedTag,!0),e.getJSDocReadonlyTag=t=>F(t,e.isJSDocReadonlyTag),e.getJSDocReadonlyTagNoCache=t=>F(t,e.isJSDocReadonlyTag,!0),e.getJSDocOverrideTagNoCache=t=>F(t,e.isJSDocOverrideTag,!0),e.getJSDocDeprecatedTag=t=>F(t,e.isJSDocDeprecatedTag),e.getJSDocDeprecatedTagNoCache=t=>F(t,e.isJSDocDeprecatedTag,!0),e.getJSDocEnumTag=t=>F(t,e.isJSDocEnumTag),e.getJSDocThisTag=t=>F(t,e.isJSDocThisTag),e.getJSDocReturnTag=C,e.getJSDocTemplateTag=t=>F(t,e.isJSDocTemplateTag),e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=t=>{var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=w,e.getJSDocTagsNoCache=e=>N(e,!0),e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=(e,t)=>w(e).filter((e=>e.kind===t)),e.getTextOfJSDocComment=t=>"string"==typeof t?t:null==t?void 0:t.map((t=>{return 321===t.kind?t.text:(n=324===(r=t).kind?"link":325===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join(""),e.getEffectiveTypeParameterDeclarations=t=>{if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(320===t.parent.kind),e.flatMap(t.parent.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=t=>t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0,e.isMemberName=e=>79===e.kind||80===e.kind,e.isGetOrSetAccessorDeclaration=e=>173===e.kind||172===e.kind,e.isPropertyAccessChain=t=>e.isPropertyAccessExpression(t)&&!!(32&t.flags),e.isElementAccessChain=t=>e.isElementAccessExpression(t)&&!!(32&t.flags),e.isCallChain=t=>e.isCallExpression(t)&&!!(32&t.flags),e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=e=>O(e.parent)&&e.parent.expression===e,e.isOutermostOptionalChain=e=>!I(e.parent)||O(e.parent)||e!==e.parent.expression,e.isNullishCoalesce=e=>221===e.kind&&60===e.operatorToken.kind,e.isConstTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments,e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=t=>e.isNonNullExpression(t)&&!!(32&t.flags),e.isBreakOrContinueStatement=e=>246===e.kind||245===e.kind,e.isNamedExportBindings=e=>274===e.kind||273===e.kind,e.isUnparsedTextLike=R,e.isUnparsedNode=e=>R(e)||300===e.kind||304===e.kind,e.isJSDocPropertyLikeTag=e=>347===e.kind||340===e.kind,e.isNode=e=>L(e.kind),e.isNodeKind=L,e.isTokenKind=B,e.isToken=e=>B(e.kind),e.isNodeArray=e=>e.hasOwnProperty("pos")&&e.hasOwnProperty("end"),e.isLiteralKind=j,e.isLiteralExpression=e=>j(e.kind),e.isTemplateLiteralKind=U,e.isTemplateLiteralToken=e=>U(e.kind),e.isTemplateMiddleOrTemplateTail=e=>{var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=t=>e.isImportSpecifier(t)||e.isExportSpecifier(t),e.isTypeOnlyImportOrExportDeclaration=e=>{switch(e.kind){case 270:case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 268:return e.parent.isTypeOnly;case 267:case 265:return e.isTypeOnly;default:return!1}},e.isAssertionKey=t=>e.isStringLiteral(t)||e.isIdentifier(t),e.isStringTextContainingNode=e=>10===e.kind||U(e.kind),e.isGeneratedIdentifier=t=>e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0,e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=t=>e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name),e.isModifierKind=K,e.isParameterPropertyModifier=z,e.isClassMemberModifier=e=>z(e)||124===e||159===e,e.isModifier=e=>K(e.kind),e.isEntityName=e=>{var t=e.kind;return 161===t||79===t},e.isPropertyName=e=>{var t=e.kind;return 79===t||80===t||10===t||8===t||162===t},e.isBindingName=e=>{var t=e.kind;return 79===t||201===t||202===t},e.isFunctionLike=W,e.isFunctionLikeOrClassStaticBlockDeclaration=t=>!!t&&(H(t.kind)||e.isClassStaticBlockDeclaration(t)),e.isFunctionLikeDeclaration=e=>e&&J(e.kind),e.isBooleanLiteral=e=>110===e.kind||95===e.kind,e.isFunctionLikeKind=H,e.isFunctionOrModuleBlock=t=>e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&W(t.parent),e.isClassElement=$,e.isClassLike=G,e.isAccessor=e=>e&&(172===e.kind||173===e.kind),e.isMethodOrAccessor=q,e.isTypeElement=X,e.isClassOrTypeElement=e=>X(e)||$(e),e.isObjectLiteralElementLike=Y,e.isTypeNode=t=>e.isTypeNodeKind(t.kind),e.isFunctionOrConstructorTypeNode=e=>{switch(e.kind){case 179:case 180:return!0}return!1},e.isBindingPattern=Q,e.isAssignmentPattern=e=>{var t=e.kind;return 204===t||205===t},e.isArrayBindingElement=e=>{var t=e.kind;return 203===t||227===t},e.isDeclarationBindingElement=e=>{switch(e.kind){case 254:case 164:case 203:return!0}return!1},e.isBindingOrAssignmentPattern=e=>Z(e)||ee(e),e.isObjectBindingOrAssignmentPattern=Z,e.isObjectBindingOrAssignmentElement=e=>{switch(e.kind){case 203:case 296:case 297:case 298:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=e=>{var t=e.kind;return 206===t||161===t||200===t},e.isPropertyAccessOrQualifiedName=e=>{var t=e.kind;return 206===t||161===t},e.isCallLikeExpression=e=>{switch(e.kind){case 280:case 279:case 208:case 209:case 210:case 165:return!0;default:return!1}},e.isCallOrNewExpression=e=>208===e.kind||209===e.kind,e.isTemplateLiteral=e=>{var t=e.kind;return 223===t||14===t},e.isLeftHandSideExpression=e=>te(M(e).kind),e.isUnaryExpression=e=>re(M(e).kind),e.isUnaryExpressionWithWrite=e=>{switch(e.kind){case 220:return!0;case 219:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=e=>{var t=e.kind;return 211===t||229===t},e.isNotEmittedOrPartiallyEmittedNode=t=>e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t),e.isIterationStatement=function e(t,r){switch(t.kind){case 242:case 243:case 244:case 240:case 241:return!0;case 250:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=t=>e.some(t,ie),e.needsScopeMarker=t=>!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t)),e.isExternalModuleIndicator=t=>e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1),e.isForInOrOfStatement=e=>243===e.kind||244===e.kind,e.isConciseBody=t=>e.isBlock(t)||ne(t),e.isFunctionBody=t=>e.isBlock(t),e.isForInitializer=t=>e.isVariableDeclarationList(t)||ne(t),e.isModuleBody=e=>{var t=e.kind;return 262===t||261===t||79===t},e.isNamespaceBody=e=>{var t=e.kind;return 262===t||261===t},e.isJSDocNamespaceBody=e=>{var t=e.kind;return 79===t||261===t},e.isNamedImportBindings=e=>{var t=e.kind;return 269===t||268===t},e.isModuleOrEnumDeclaration=e=>261===e.kind||260===e.kind,e.isDeclaration=se,e.isDeclarationStatement=e=>ae(e.kind),e.isStatementButNotDeclaration=e=>oe(e.kind),e.isStatement=t=>{var r=t.kind;return oe(r)||ae(r)||(t=>235===t.kind&&(void 0===t.parent||252!==t.parent.kind&&292!==t.parent.kind)&&!e.isFunctionBlock(t))(t)},e.isStatementOrBlock=e=>{var t=e.kind;return oe(t)||ae(t)||235===t},e.isModuleReference=e=>{var t=e.kind;return 277===t||161===t||79===t},e.isJsxTagNameExpression=e=>{var t=e.kind;return 108===t||79===t||206===t},e.isJsxChild=e=>{var t=e.kind;return 278===t||288===t||279===t||11===t||282===t},e.isJsxAttributeLike=e=>{var t=e.kind;return 285===t||287===t},e.isStringLiteralOrJsxExpression=e=>{var t=e.kind;return 10===t||288===t},e.isJsxOpeningLikeElement=e=>{var t=e.kind;return 280===t||279===t},e.isCaseOrDefaultClause=e=>{var t=e.kind;return 289===t||290===t},e.isJSDocNode=e=>e.kind>=309&&e.kind<=347,e.isJSDocCommentContainingNode=t=>320===t.kind||319===t.kind||321===t.kind||ue(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t),e.isJSDocTag=ce,e.isSetAccessor=e=>173===e.kind,e.isGetAccessor=e=>172===e.kind,e.hasJSDocNodes=e=>{var t=e.jsDoc;return!!t&&t.length>0},e.hasType=e=>!!e.type,e.hasInitializer=e=>!!e.initializer,e.hasOnlyExpressionInitializer=e=>{switch(e.kind){case 254:case 164:case 203:case 166:case 167:case 296:case 299:return!0;default:return!1}},e.isObjectLiteralElement=e=>285===e.kind||287===e.kind||Y(e),e.isTypeReferenceType=e=>178===e.kind||228===e.kind;var le=1073741823;function ue(e){return 324===e.kind||325===e.kind||326===e.kind}e.guessIndentation=t=>{for(var r=le,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===le?void 0:r},e.isStringLiteralLike=e=>10===e.kind||14===e.kind,e.isJSDocLinkLike=ue})(p),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=(e,t)=>{var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.getDeclarationsOfKind=(t,r)=>e.filter(t.declarations||e.emptyArray,(e=>e.kind===r)),e.createSymbolTable=t=>{var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=e=>0!=(33554432&e.flags);var t,r,n,i=(t="",{getText:()=>t,write:r=e=>t+=e,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(e,t)=>r(e),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:e.noop,decreaseIndent:e.noop,clear:()=>t="",trackSymbol:()=>!1,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function a(t,r){return o(t,r,e.moduleResolutionOptionDeclarations)}function o(e,t,r){return e!==t&&r.some((r=>!xi(Un(e,r),Un(t,r))))}function s(e){return e.end-e.pos}function c(e){var t=e.name,r=e.subModuleName;return r?"".concat(t,"/").concat(r):t}function l(e){for(;e&&305!==e.kind;)e=e.parent;return e}function u(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function _(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,f([n,0],t,!1)),e}function g(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function h(e){return q(e)||!!(1048576&D(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function v(t,r,n){return d(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||l(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?v(t.jsDoc[0],r):348===t.kind&&t._children.length>0?v(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos,!1,!1,De(t))}function b(e,t,r){return void 0===r&&(r=!1),x(e.text,t,r)}function x(t,r,n){if(void 0===n&&(n=!1),d(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return(t=>!!e.findAncestor(t,e.isJSDocTypeExpression))(r)&&(i=i.split(/\r\n|\n|\r/).map((t=>e.trimStringStart(t.replace(/^\s*\*/,"")))).join("\n")),i}function E(e,t){return void 0===t&&(t=!1),b(l(e),e,t)}function S(e){return e.pos}function D(e){var t=e.emitNode;return t&&t.flags||0}function T(e){var t=Pt(e);return 254===t.kind&&292===t.parent.kind}function C(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function N(e){return C(e)&&w(e)}function w(t){switch(t.parent.kind){case 305:return e.isExternalModule(t.parent);case 262:return C(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((t=>!(N(t)||e.isModuleDeclaration(t)&&A(t))))}function P(t,r){switch(t.kind){case 305:case 263:case 292:case 261:case 242:case 243:case 244:case 171:case 169:case 172:case 173:case 256:case 213:case 214:case 167:case 170:return!0;case 235:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 174:case 175:case 168:case 176:case 179:case 180:case 317:case 257:case 226:case 258:case 259:case 344:case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 266:case 265:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function R(t){return e.findAncestor(t.parent,(e=>P(e,e.parent)))}function L(e){return e&&0!==s(e)?E(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 162:return Tt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function j(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===s(t)?e.idText(t):E(t);case 161:return j(t.left)+"."+j(t.right);case 206:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?j(t.expression)+"."+j(t.name):e.Debug.assertNever(t.name);case 311:return j(t.left)+j(t.right);default:return e.Debug.assertNever(t)}}function U(e,t,r,n,i,a,o){var s=W(e,t);return Dn(e,s.start,s.length,r,n,i,a,o)}function V(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function K(e,t,r,n,i){return V(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function z(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function W(t,r){var n=r;switch(r.kind){case 305:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):z(t,i);case 254:case 203:case 257:case 226:case 258:case 261:case 260:case 299:case 256:case 213:case 169:case 172:case 173:case 259:case 167:case 166:case 268:n=r.name;break;case 214:return((t,r)=>{var n=e.skipTrivia(t.text,r.pos);if(r.body&&235===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,u(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)})(t,r);case 289:case 290:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return z(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=d(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function J(e){return 6===e.scriptKind}function H(t){return!!(2&e.getCombinedNodeFlags(t))}function $(e){return 208===e.kind&&100===e.expression.kind}function G(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function q(e){return 238===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&D(e))}function Y(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=(e,t)=>e.configFilePath!==t.configFilePath||a(e,t),e.optionsHaveModuleResolutionChanges=a,e.changesAffectingProgramStructure=(t,r)=>o(t,r,e.optionsAffectingProgramStructure),e.optionsHaveChanges=o,e.forEachAncestor=(t,r)=>{for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=(e,t)=>{for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=(e,t)=>{for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=(e,t)=>{e.forEach(((e,r)=>{t.set(r,e)}))},e.usingSingleLineStringWriter=e=>{var t=i.getText();try{return e(i),i.getText()}finally{i.clear(),i.writeKeyword(t)}},e.getFullWidth=s,e.getResolvedModule=(e,t,r)=>e&&e.resolvedModules&&e.resolvedModules.get(t,r),e.setResolvedModule=(t,r,n,i)=>{t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=(t,r,n)=>{t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=(e,t)=>e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular,e.moduleResolutionIsEqualTo=(e,t)=>{return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((r=e.packageId)===(n=t.packageId)||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToPackageName=c,e.packageIdToString=e=>"".concat(c(e),"@").concat(e.version),e.typeDirectiveIsEqualTo=(e,t)=>e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath,e.hasChangesInResolutions=(t,r,n,i,a)=>{e.Debug.assert(t.length===r.length);for(var o=0;o<t.length;o++){var s=r[o],c=t[o],l=e.isString(c)?c:c.fileName.toLowerCase(),u=e.isString(c)?i&&e.getModeForResolutionAtIndex(i,o):e.getModeForFileReference(c,null==i?void 0:i.impliedNodeFormat),d=n&&n.get(l,u);if(d?!s||!a(d,s):s)return!0}return!1},e.containsParseError=function t(r){return(r=>{1048576&r.flags||((0!=(131072&r.flags)||e.forEachChild(r,t))&&(r.flags|=524288),r.flags|=1048576)})(r),0!=(524288&r.flags)},e.getSourceFileOfNode=l,e.getSourceFileOfModule=e=>l(e.valueDeclaration||F(e)),e.isPlainJsFile=(e,t)=>!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t),e.isStatementWithLocals=e=>{switch(e.kind){case 235:case 263:case 242:case 243:case 244:return!0}return!1},e.getStartPositionOfLine=(t,r)=>(e.Debug.assert(t>=0),e.getLineStarts(r)[t]),e.nodePosToString=t=>{var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=u,e.isFileLevelUniqueName=(e,t,r)=>!(r&&r(t)||e.identifiers.has(t)),e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=(e,t)=>_(e,t,q),e.insertStatementsAfterCustomPrologue=(e,t)=>_(e,t,h),e.insertStatementAfterStandardPrologue=(e,t)=>g(e,t,q),e.insertStatementAfterCustomPrologue=(e,t)=>g(e,t,h),e.isRecognizedTripleSlashComment=(t,r,n)=>{if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||Q.test(i)||ne.test(i))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=(t,r)=>{var n=new e.Map(r.map((r=>["".concat(e.getLineAndCharacterOfPosition(t,r.range.end).line),r]))),i=new e.Map;return{getUnusedExpectations:()=>e.arrayFrom(n.entries()).filter((e=>{var t=e[0];return 0===e[1].type&&!i.get(t)})).map((e=>e[1])),markUsed:e=>!!n.has("".concat(e))&&(i.set("".concat(e),!0),!0)}},e.getTokenPosOfNode=v,e.getNonDecoratorTokenPosOfNode=(t,r)=>d(t)||!t.decorators?v(t,r):e.skipTrivia((r||l(t)).text,t.decorators.end),e.getSourceTextOfNodeFromSourceFile=b,e.isExportNamespaceAsDefaultDeclaration=t=>!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText),e.getTextOfNodeFromSourceText=x,e.getTextOfNode=E,e.indexOfNode=(t,r)=>e.binarySearch(t,r,S,e.compareValues),e.getEmitFlags=D,e.getScriptTargetFeatures=()=>({es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}),(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=(t,r,n)=>{var i;if(r&&((t,r)=>!(It(t)||!t.parent||4&r&&t.isUnterminated||(e.isNumericLiteral(t)&&512&t.numericLiteralFlags?!(8&r):e.isBigIntLiteral(t))))(t,n))return b(r,t);switch(t.kind){case 10:var a=2&n?Qt:1&n||16777216&D(t)?Jt:$t;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=1&n||16777216&D(t)?Jt:$t;var o=null!==(i=t.rawText)&&void 0!==i?i:(e=>e.replace(Bt,"\\${"))(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '".concat(t.kind,"' not accounted for."))},e.getTextOfConstantValue=t=>e.isString(t)?'"'+$t(t)+'"':""+t,e.makeIdentifierFromModuleName=t=>e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_"),e.isBlockOrCatchScoped=t=>0!=(3&e.getCombinedNodeFlags(t))||T(t),e.isCatchClauseVariableDeclarationOrBindingElement=T,e.isAmbientModule=C,e.isModuleWithStringLiteralName=t=>e.isModuleDeclaration(t)&&10===t.name.kind,e.isNonGlobalAmbientModule=t=>e.isModuleDeclaration(t)&&e.isStringLiteral(t.name),e.isEffectiveModuleDeclaration=k,e.isShorthandAmbientModuleSymbol=e=>{return!!(t=e.valueDeclaration)&&261===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=t=>305===t.kind||261===t.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(t),e.isGlobalScopeAugmentation=A,e.isExternalModuleAugmentation=N,e.isModuleAugmentationExternal=w,e.getNonAugmentationDeclaration=F,e.isEffectiveExternalModule=(t,r)=>{return e.isExternalModule(t)||r.isolatedModules||((n=On(r))===e.ModuleKind.CommonJS||n===e.ModuleKind.Node16||n===e.ModuleKind.NodeNext)&&!!t.commonJsModuleIndicator;var n},e.isEffectiveStrictModeSourceFile=(t,r)=>{switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(t.isDeclarationFile||!Bn(r,"alwaysStrict")&&!e.startsWithUseStrict(t.statements)&&(!e.isExternalModule(t)&&!r.isolatedModules||!(On(r)>=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=P,e.isDeclarationWithTypeParameters=t=>{switch(t.kind){case 338:case 345:case 323:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=e=>O(e)||ke(e),e.isLateVisibilityPaintedStatement=e=>{switch(e.kind){case 266:case 265:case 237:case 257:case 256:case 261:case 259:case 258:case 260:return!0;default:return!1}},e.hasPossibleExternalModuleReference=t=>M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||$(t),e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=R,e.forEachEnclosingBlockScopeContainer=(e,t)=>{for(var r=R(e);r;)t(r),r=R(r)},e.declarationNameToString=L,e.getNameFromIndexInfo=e=>e.declaration?L(e.declaration.parameters[0].name):void 0,e.isComputedNonLiteralName=e=>162===e.kind&&!Tt(e.expression),e.tryGetTextOfPropertyName=B,e.getTextOfPropertyName=t=>e.Debug.checkDefined(B(t)),e.entityNameToString=j,e.createDiagnosticForNode=(e,t,r,n,i,a)=>U(l(e),e,t,r,n,i,a),e.createDiagnosticForNodeArray=(t,r,n,i,a,o,s)=>{var c=e.skipTrivia(t.text,r.pos);return Dn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=U,e.createDiagnosticForNodeFromMessageChain=(e,t,r)=>{var n=l(e),i=W(n,e);return K(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=K,e.createDiagnosticForFileFromMessageChain=(e,t,r)=>({file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}),e.createDiagnosticMessageChainFromDiagnostic=e=>"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText,e.createDiagnosticForRange=(e,t,r)=>({file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}),e.getSpanOfTokenAtPosition=z,e.getErrorSpanForNode=W,e.isExternalOrCommonJsModule=e=>void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator),e.isJsonSourceFile=J,e.isEnumConst=t=>!!(2048&e.getCombinedModifierFlags(t)),e.isDeclarationReadonly=t=>!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent)),e.isVarConst=H,e.isLet=t=>!!(1&e.getCombinedNodeFlags(t)),e.isSuperCall=e=>208===e.kind&&106===e.expression.kind,e.isImportCall=$,e.isImportMeta=t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText,e.isLiteralImportTypeNode=G,e.isPrologueDirective=q,e.isCustomPrologue=X,e.isHoistedFunction=t=>X(t)&&e.isFunctionDeclaration(t),e.isHoistedVariableStatement=t=>X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Y),e.getLeadingCommentRangesOfNode=(t,r)=>11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0,e.getJSDocCommentRanges=(t,r)=>{var n=164===t.kind||163===t.kind||213===t.kind||214===t.kind||212===t.kind||254===t.kind||275===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(e=>42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Z,ee,te,re,ne=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function ie(t){if(177<=t.kind&&t.kind<=200)return!0;switch(t.kind){case 130:case 155:case 147:case 158:case 150:case 133:case 151:case 148:case 153:case 143:return!0;case 114:return 217!==t.parent.kind;case 228:return e.isHeritageClause(t.parent)&&!Wr(t);case 163:return 195===t.parent.kind||190===t.parent.kind;case 79:(161===t.parent.kind&&t.parent.right===t||206===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||161===t.kind||206===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 161:case 206:case 108:var r=t.parent;if(181===r.kind)return!1;if(200===r.kind)return!r.isTypeOf;if(177<=r.kind&&r.kind<=200)return!0;switch(r.kind){case 228:return e.isHeritageClause(r.parent)&&!Wr(r);case 163:case 344:return t===r.constraint;case 167:case 166:case 164:case 254:return t===r.type;case 256:case 213:case 214:case 171:case 169:case 168:case 172:case 173:return t===r.type;case 174:case 175:case 176:case 211:return t===r.type;case 208:case 209:return e.contains(r.typeArguments,t);case 210:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 203:case 299:case 164:case 296:case 167:case 166:case 297:case 254:return!0}return!1}function oe(e){return 255===e.parent.kind&&237===e.parent.parent.kind}function se(t){return!!Se(t)&&e.isBinaryExpression(t)&&1===Le(t)}function ce(e,t,r){return e.properties.filter((e=>{if(296===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function le(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ue(t,r){var n=le(t);return n?ce(n,r):e.emptyArray}function de(t,r){for(e.Debug.assert(305!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 162:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 214:if(!r)continue;case 256:case 213:case 261:case 170:case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 174:case 175:case 176:case 260:case 305:return t}}}function pe(e){var t=e.kind;return(206===t||207===t)&&106===e.expression.kind}function _e(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 257:return!0;case 167:return 257===r.kind;case 172:case 173:case 169:return void 0!==t.body&&257===r.kind;case 164:return void 0!==r.body&&(171===r.kind||169===r.kind||173===r.kind)&&257===n.kind}return!1}function fe(e,t,r){return void 0!==e.decorators&&_e(e,t,r)}function me(e,t,r){return fe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 257:return e.some(t.members,(e=>me(e,t,r)));case 169:case 173:case 171:return e.some(t.parameters,(e=>fe(e,t,r)));default:return!1}}function he(e){var t=e.parent;return(280===t.kind||279===t.kind||281===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 229:case 211:case 230:case 212:case 213:case 226:case 214:case 217:case 215:case 216:case 219:case 220:case 221:case 222:case 225:case 223:case 227:case 278:case 279:case 282:case 224:case 218:case 231:return!0;case 228:return!e.isHeritageClause(t.parent);case 161:for(;161===t.parent.kind;)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 311:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t))return!0;case 8:case 9:case 10:case 14:case 108:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 254:case 164:case 167:case 166:case 299:case 296:case 203:return t.initializer===e;case 238:case 239:case 240:case 241:case 247:case 248:case 249:case 289:case 251:return t.expression===e;case 242:var r=t;return r.initializer===e&&255!==r.initializer.kind||r.condition===e||r.incrementor===e;case 243:case 244:var n=t;return n.initializer===e&&255!==n.initializer.kind||n.expression===e;case 211:case 229:case 233:case 162:return e===t.expression;case 165:case 288:case 287:case 298:return!0;case 228:return t.expression===e&&!ie(t);case 297:return t.objectAssignmentInitializer===e;default:return ye(t)}}function be(e){for(;161===e.kind||79===e.kind;)e=e.parent;return 181===e.kind}function xe(e){return 265===e.kind&&277===e.moduleReference.kind}function Ee(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function De(e){return!!e&&!!(8388608&e.flags)}function Te(t,r){if(208!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ce(e){return Ae(e,!1)}function ke(e){return Ae(e,!0)}function Ae(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Te(r?pn(t.initializer):t.initializer,!0)}function Ne(t){return e.isBinaryExpression(t)||dn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function we(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Jr(t.name)&&Pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Fe(t,r){if(e.isCallExpression(t)){var n=_t(t.expression);return 213===n.kind||214===n.kind?t:void 0}return 213===t.kind||226===t.kind||214===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Pe(t,r){return wt(t)&&wt(r)?Ft(t)===Ft(r):e.isMemberName(t)&&je(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?Pe(t,We(r)):!(!je(t)||!je(r))&&He(t)===He(r)&&Pe(t.expression,r.expression)}function Ie(e){for(;zr(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Me(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Re(t){return(e.isPropertyAccessExpression(t)||Ue(t))&&Me(t.expression)&&"exports"===He(t)}function Le(t){var r=(t=>{if(e.isCallExpression(t)){if(!Be(t))return 0;var r=t.arguments[0];return Oe(r)||Re(r)?8:Ve(r)&&"prototype"===He(r)?9:7}return 63!==t.operatorToken.kind||!dn(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:ze(t.left.expression,!0)&&"prototype"===He(t.left)&&e.isObjectLiteralExpression(Ge(t))?6:$e(t.left);var n})(t);return 5===r||Se(t)?r:0}function Be(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Tt(t.arguments[1])&&ze(t.arguments[0],!0)}function je(t){return e.isPropertyAccessExpression(t)||Ue(t)}function Ue(t){return e.isElementAccessExpression(t)&&Tt(t.argumentExpression)}function Ve(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&ze(t.expression,!0))||Ke(t,r)}function Ke(e,t){return Ue(e)&&(!t&&108===e.expression.kind||Jr(e.expression)||Ve(e.expression,!0))}function ze(e,t){return Jr(e)||Ve(e,t)}function We(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Je(t){if(e.isPropertyAccessExpression(t))return t.name;var r=_t(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function He(t){var r=Je(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function $e(t){if(108===t.expression.kind)return 4;if(Re(t))return 2;if(ze(t.expression,!0)){if($r(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===He(r))&&Ve(t))return 1;if(ze(t,!0)||e.isElementAccessExpression(t)&&At(t))return 5}return 0}function Ge(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function qe(t){switch(t.parent.kind){case 266:case 272:return t.parent;case 277:return t.parent.parent;case 208:return $(t.parent)||Te(t.parent,!1)?t.parent:void 0;case 196:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Xe(t){switch(t.kind){case 266:case 272:return t.moduleSpecifier;case 265:return 277===t.moduleReference.kind?t.moduleReference.expression:void 0;case 200:return G(t)?t.argument.literal:void 0;case 208:return t.arguments[0];case 261:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Ye(e){return 345===e.kind||338===e.kind||339===e.kind}function Qe(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Le(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ze(e){switch(e.kind){case 237:var t=et(e);return t&&t.initializer;case 167:case 296:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&261===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(e=>nt(t,e)));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 296===r.kind||271===r.kind||167===r.kind||238===r.kind&&206===t.kind||247===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ze(r.parent.parent)===t||Qe(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Qe(r)||(t=>e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0)(r)||Ze(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&318===r.kind}function ut(e){for(var t=e.parent;;){switch(t.kind){case 221:var r=t.operatorToken.kind;return Ur(r)&&t.left===e?63===r||jr(r)?1:2:0;case 219:case 220:var n=t.operator;return 45===n||46===n?2:0;case 243:case 244:return t.initializer===e?1:0;case 212:case 204:case 225:case 230:e=t;break;case 298:e=t.parent;break;case 297:if(t.name!==e)return 0;e=t.parent;break;case 296:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function dt(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function pt(e){return dt(e,212)}function _t(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function ft(t){return Jr(t)||e.isClassExpression(t)}function mt(e){return ft(gt(e))}function gt(t){return e.isExportAssignment(t)?t.expression:t.right}function ht(t){var r=yt(t);if(r&&Se(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function yt(e){var t=xt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function vt(t){if(Se(t))return e.getJSDocImplementsTags(t).map((e=>e.class));var r=xt(t.heritageClauses,117);return null==r?void 0:r.types}function bt(e){var t=xt(e.heritageClauses,94);return t?t.types:void 0}function xt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function Et(e){return 81<=e&&e<=160}function St(e){return 126<=e&&e<=160}function Dt(e){return Et(e)&&!St(e)}function Tt(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function Ct(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function kt(t){var r=e.getNameOfDeclaration(t);return!!r&&At(r)}function At(t){if(162!==t.kind&&207!==t.kind)return!1;var r=e.isElementAccessExpression(t)?_t(t.argumentExpression):t.expression;return!Tt(r)&&!Ct(r)}function Nt(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 162:var r=t.expression;return Tt(r)?e.escapeLeadingUnderscores(r.text):Ct(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function wt(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Ft(t){return e.isMemberName(t)?e.idText(t):t.text}function Pt(e){for(;203===e.kind;)e=e.parent.parent;return e}function It(e){return yi(e.pos)||yi(e.end)}function Ot(e,t,r){switch(e){case 209:return r?0:1;case 219:case 216:case 217:case 215:case 218:case 222:case 224:return 1;case 221:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Mt(e){return 221===e.kind?e.operatorToken.kind:219===e.kind||220===e.kind?e.operator:e.kind}function Rt(e,t,r){switch(e){case 351:return 0;case 225:return 1;case 224:return 2;case 222:return 4;case 221:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Lt(t)}case 211:case 230:case 219:case 216:case 217:case 215:case 218:return 16;case 220:return 17;case 208:return 18;case 209:return r?19:18;case 210:case 206:case 207:case 231:return 19;case 229:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 204:case 205:case 213:case 214:case 226:case 13:case 14:case 223:case 212:case 227:case 278:case 279:case 282:return 20;default:return-1}}function Lt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=ie,e.isChildOfNodeWithKind=(e,t)=>{for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=(t,r)=>function t(n){switch(n.kind){case 247:return r(n);case 263:case 235:case 239:case 240:case 241:case 242:case 243:case 244:case 248:case 249:case 289:case 290:case 250:case 252:case 292:return e.forEachChild(n,t)}}(t),e.forEachYieldExpression=(t,r)=>function t(n){switch(n.kind){case 224:r(n);var i=n.expression;return void(i&&t(i));case 260:case 258:case 261:case 259:return;default:if(e.isFunctionLike(n)){if(n.name&&162===n.name.kind)return void t(n.name.expression)}else ie(n)||e.forEachChild(n,t)}}(t),e.getRestParameterElementType=t=>t&&183===t.kind?t.elementType:t&&178===t.kind?e.singleOrUndefined(t.typeArguments):void 0,e.getMembersOfDeclaration=e=>{switch(e.kind){case 258:case 257:case 226:case 182:return e.members;case 205:return e.properties}},e.isVariableLike=ae,e.isVariableLikeOrAccessor=t=>ae(t)||e.isAccessor(t),e.isVariableDeclarationInVariableStatement=oe,e.isCommonJsExportedExpression=t=>!!Se(t)&&(e.isObjectLiteralExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&2===Le(t.parent.parent)||se(t.parent)),e.isCommonJsExportPropertyAssignment=se,e.isValidESSymbolDeclaration=t=>(e.isVariableDeclaration(t)?H(t)&&e.isIdentifier(t.name)&&oe(t):e.isPropertyDeclaration(t)?Nr(t)&&Ar(t):e.isPropertySignature(t)&&Nr(t))||se(t),e.introducesArgumentsExoticObject=e=>{switch(e.kind){case 169:case 168:case 171:case 172:case 173:case 256:case 213:return!0}return!1},e.unwrapInnermostStatementOfLabel=(e,t)=>{for(;;){if(t&&t(e),250!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=t=>t&&235===t.kind&&e.isFunctionLike(t.parent),e.isObjectLiteralMethod=e=>e&&169===e.kind&&205===e.parent.kind,e.isObjectLiteralOrClassExpressionMethodOrAccessor=e=>!(169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind&&226!==e.parent.kind),e.isIdentifierTypePredicate=e=>e&&1===e.kind,e.isThisTypePredicate=e=>e&&0===e.kind,e.getPropertyAssignment=ce,e.getPropertyArrayElementValue=(t,r,n)=>e.firstDefined(ce(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigObjectLiteralExpression=le,e.getTsConfigPropArrayElementValue=(t,r,n)=>e.firstDefined(ue(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigPropArray=ue,e.getContainingFunction=t=>e.findAncestor(t.parent,e.isFunctionLike),e.getContainingFunctionDeclaration=t=>e.findAncestor(t.parent,e.isFunctionLikeDeclaration),e.getContainingClass=t=>e.findAncestor(t.parent,e.isClassLike),e.getContainingClassStaticBlock=t=>e.findAncestor(t.parent,(t=>e.isClassLike(t)||e.isFunctionLike(t)?"quit":e.isClassStaticBlockDeclaration(t))),e.getContainingFunctionOrClassStaticBlock=t=>e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration),e.getThisContainer=de,e.isThisContainerOrFunctionBlock=e=>{switch(e.kind){case 214:case 256:case 213:case 167:return!0;case 235:switch(e.parent.kind){case 171:case 169:case 172:case 173:return!0;default:return!1}default:return!1}},e.isInTopLevelContext=t=>{e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=de(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=e=>{var t=de(e,!1);if(t)switch(t.kind){case 171:case 256:case 213:return t}},e.getSuperContainer=(t,r)=>{for(;;){if(!(t=t.parent))return t;switch(t.kind){case 162:t=t.parent;break;case 256:case 213:case 214:if(!r)continue;case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 170:return t;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=e=>{if(213===e.kind||214===e.kind){for(var t=e,r=e.parent;212===r.kind;)t=r,r=r.parent;if(208===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=e=>106===e.kind||pe(e),e.isSuperProperty=pe,e.isThisProperty=e=>{var t=e.kind;return(206===t||207===t)&&108===e.expression.kind},e.isThisInitializedDeclaration=t=>{var r;return!!t&&e.isVariableDeclaration(t)&&108===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.isThisInitializedObjectBindingExpression=t=>!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&63===t.parent.parent.operatorToken.kind&&108===t.parent.parent.right.kind,e.getEntityNameFromTypeNode=e=>{switch(e.kind){case 178:return e.typeName;case 228:return Jr(e.expression)?e.expression:void 0;case 79:case 161:return e}},e.getInvokedExpression=e=>{switch(e.kind){case 210:return e.tag;case 280:case 279:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=_e,e.nodeIsDecorated=fe,e.nodeOrChildIsDecorated=me,e.childIsDecorated=ge,e.classOrConstructorParameterIsDecorated=e=>{if(fe(e))return!0;var t=fr(e);return!!t&&ge(t,e)},e.isJSXTagName=he,e.isExpressionNode=ye,e.isInExpressionContext=ve,e.isPartOfTypeQuery=be,e.isNamespaceReexportDeclaration=t=>e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier,e.isExternalModuleImportEqualsDeclaration=xe,e.getExternalModuleImportEqualsDeclarationExpression=t=>(e.Debug.assert(xe(t)),t.moduleReference.expression),e.getExternalModuleRequireArgument=e=>ke(e)&&pn(e.initializer).arguments[0],e.isInternalModuleImportEqualsDeclaration=e=>265===e.kind&&277!==e.moduleReference.kind,e.isSourceFileJS=Ee,e.isSourceFileNotJS=e=>!Se(e),e.isInJSFile=Se,e.isInJsonFile=e=>!!e&&!!(67108864&e.flags),e.isSourceFileNotJson=e=>!J(e),e.isInJSDoc=De,e.isJSDocIndexSignature=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(150===t.typeArguments[0].kind||147===t.typeArguments[0].kind),e.isRequireCall=Te,e.isVariableDeclarationInitializedToRequire=Ce,e.isVariableDeclarationInitializedToBareOrAccessedRequire=ke,e.isRequireVariableStatement=t=>e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(e=>Ce(e))),e.isSingleOrDoubleQuote=e=>39===e||34===e,e.isStringDoubleQuoted=(e,t)=>34===b(t,e).charCodeAt(0),e.isAssignmentDeclaration=Ne,e.getEffectiveInitializer=we,e.getDeclaredExpandoInitializer=e=>{var t=we(e);return t&&Fe(t,$r(e.name))},e.getAssignedExpandoInitializer=t=>{if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=$r(t.parent.left);return Fe(t.parent.right,r)||((t,r,n)=>{var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Fe(r.right,n);if(i&&Pe(t,r.left))return i})(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Be(t)){var n=((t,r)=>e.forEach(t.properties,(t=>e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Fe(t.initializer,r))))(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Fe,e.isDefaultedExpandoInitializer=t=>{var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Fe(t.right,$r(r))&&Jr(r)&&Pe(r,t.left)},e.getNameOfExpando=t=>{if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Pe,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Me,e.isModuleExportsAccessExpression=Re,e.getAssignmentDeclarationKind=Le,e.isBindableObjectDefinePropertyCall=Be,e.isLiteralLikeAccess=je,e.isLiteralLikeElementAccess=Ue,e.isBindableStaticAccessExpression=Ve,e.isBindableStaticElementAccessExpression=Ke,e.isBindableStaticNameExpression=ze,e.getNameOrArgument=We,e.getElementOrPropertyAccessArgumentExpressionOrName=Je,e.getElementOrPropertyAccessName=He,e.getAssignmentDeclarationPropertyAccessKind=$e,e.getInitializerOfBinaryExpression=Ge,e.isPrototypePropertyAssignment=t=>e.isBinaryExpression(t)&&3===Le(t),e.isSpecialPropertyDeclaration=t=>Se(t)&&t.parent&&238===t.parent.kind&&(!e.isElementAccessExpression(t)||Ue(t))&&!!e.getJSDocTypeTag(t.parent),e.setValueDeclaration=(e,t)=>{var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Ne(r)&&!Ne(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=t=>{if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 256===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=t=>{var r,n;switch(t.kind){case 254:return null===(r=e.findAncestor(t.initializer,(e=>Te(e,!0))))||void 0===r?void 0:r.arguments[0];case 266:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 265:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=t=>qe(t)||e.Debug.failBadSyntaxKind(t.parent),e.tryGetImportFromModuleSpecifier=qe,e.getExternalModuleName=Xe,e.getNamespaceDeclarationNode=t=>{switch(t.kind){case 266:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 265:return t;case 272:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=e=>266===e.kind&&!!e.importClause&&!!e.importClause.name,e.forEachImportClauseDeclaration=(t,r)=>{var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=e=>{if(e)switch(e.kind){case 164:case 169:case 168:case 297:case 296:case 167:case 166:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=t=>{var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Ye,e.isTypeAlias=t=>Ye(t)||e.isTypeAliasDeclaration(t),e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=(t,r)=>{var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),164===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(163===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(e=>79===e.name.kind&&e.name.escapedText===r));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=t=>{if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Ye);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=t=>{var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(e=>e.name.escapedText===r))},e.hasRestParameter=t=>{var r=e.lastOrUndefined(t.parameters);return!!r&&lt(r)},e.isRestParameter=lt,e.hasTypeArguments=e=>!!e.typeArguments,(re=e.AssignmentKind||(e.AssignmentKind={}))[re.None=0]="None",re[re.Definite=1]="Definite",re[re.Compound=2]="Compound",e.getAssignmentTargetKind=ut,e.isAssignmentTarget=e=>0!==ut(e),e.isNodeWithPossibleHoistedDeclaration=e=>{switch(e.kind){case 235:case 237:case 248:case 239:case 249:case 263:case 289:case 290:case 250:case 242:case 243:case 244:case 240:case 241:case 252:case 292:return!0}return!1},e.isValueSignatureDeclaration=t=>e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t),e.walkUpParenthesizedTypes=e=>dt(e,191),e.walkUpParenthesizedExpressions=pt,e.walkUpParenthesizedTypesAndGetParentAndChild=e=>{for(var t;e&&191===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=_t,e.isDeleteTarget=e=>(206===e.kind||207===e.kind)&&(e=pt(e.parent))&&215===e.kind,e.isNodeDescendantOf=(e,t)=>{for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=t=>!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t,e.getDeclarationFromName=t=>{var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Le(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=t=>Tt(t)&&162===t.parent.kind&&e.isDeclaration(t.parent.parent),e.isIdentifierName=e=>{var t=e.parent;switch(t.kind){case 167:case 166:case 169:case 168:case 172:case 173:case 299:case 296:case 206:return t.name===e;case 161:return t.right===e;case 203:case 270:return t.propertyName===e;case 275:case 285:case 279:case 280:case 281:return!0}return!1},e.isAliasSymbolDeclaration=t=>!!(265===t.kind||264===t.kind||267===t.kind&&t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&mt(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Le(t)&&mt(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ft(t.parent.right)),e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 267:case 270:case 268:case 275:case 271:case 265:case 274:return t.parent;case 161:do{t=t.parent}while(161===t.parent.kind);return e(t)}},e.isAliasableExpression=ft,e.exportAssignmentIsAlias=mt,e.getExportAssignmentExpression=gt,e.getPropertyAssignmentAliasLikeExpression=e=>297===e.kind?e.name:296===e.kind?e.initializer:e.parent.right,e.getEffectiveBaseTypeNode=ht,e.getClassExtendsHeritageElement=yt,e.getEffectiveImplementsTypeNodes=vt,e.getAllSuperTypeNodes=t=>e.isInterfaceDeclaration(t)?bt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(ht(t)),vt(t))||e.emptyArray,e.getInterfaceBaseTypeNodes=bt,e.getHeritageClause=xt,e.getAncestor=(e,t)=>{for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Et,e.isContextualKeyword=St,e.isNonContextualKeyword=Dt,e.isFutureReservedKeyword=e=>117<=e&&e<=125,e.isStringANonContextualKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&Dt(r)},e.isStringAKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&Et(r)},e.isIdentifierANonContextualKeyword=e=>{var t=e.originalKeywordKind;return!!t&&!St(t)},e.isTrivia=e=>2<=e&&e<=7,(te=e.FunctionFlags||(e.FunctionFlags={}))[te.Normal=0]="Normal",te[te.Generator=1]="Generator",te[te.Async=2]="Async",te[te.Invalid=4]="Invalid",te[te.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=e=>{if(!e)return 4;var t=0;switch(e.kind){case 256:case 213:case 169:e.asteriskToken&&(t|=1);case 214:Cr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=e=>{switch(e.kind){case 256:case 213:case 214:case 169:return void 0!==e.body&&void 0===e.asteriskToken&&Cr(e,256)}return!1},e.isStringOrNumericLiteralLike=Tt,e.isSignedNumericLiteral=Ct,e.hasDynamicName=kt,e.isDynamicName=At,e.getPropertyNameForPropertyNameNode=Nt,e.isPropertyNameLiteral=wt,e.getTextOfIdentifierOrLiteral=Ft,e.getEscapedTextOfIdentifierOrLiteral=t=>e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text),e.getPropertyNameForUniqueESSymbol=t=>"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName),e.getSymbolNameForPrivateIdentifier=(t,r)=>"__#".concat(e.getSymbolId(t),"@").concat(r),e.isKnownSymbol=t=>e.startsWith(t.escapedName,"__@"),e.isPrivateIdentifierSymbol=t=>e.startsWith(t.escapedName,"__#"),e.isESSymbolIdentifier=e=>79===e.kind&&"Symbol"===e.escapedText,e.isPushOrUnshiftIdentifier=e=>"push"===e.escapedText||"unshift"===e.escapedText,e.isParameterDeclaration=e=>164===Pt(e).kind,e.getRootDeclaration=Pt,e.nodeStartsNewLexicalEnvironment=e=>{var t=e.kind;return 171===t||213===t||256===t||214===t||169===t||172===t||173===t||261===t||305===t},e.nodeIsSynthesized=It,e.getOriginalSourceFile=t=>e.getParseTreeNode(t,e.isSourceFile)||t,(ee=e.Associativity||(e.Associativity={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",e.getExpressionAssociativity=e=>{var t=Mt(e),r=209===e.kind&&void 0!==e.arguments;return Ot(e.kind,t,r)},e.getOperatorAssociativity=Ot,e.getExpressionPrecedence=e=>{var t=Mt(e),r=209===e.kind&&void 0!==e.arguments;return Rt(e.kind,t,r)},e.getOperator=Mt,(Z=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Z.Comma=0]="Comma",Z[Z.Spread=1]="Spread",Z[Z.Yield=2]="Yield",Z[Z.Assignment=3]="Assignment",Z[Z.Conditional=4]="Conditional",Z[Z.Coalesce=4]="Coalesce",Z[Z.LogicalOR=5]="LogicalOR",Z[Z.LogicalAND=6]="LogicalAND",Z[Z.BitwiseOR=7]="BitwiseOR",Z[Z.BitwiseXOR=8]="BitwiseXOR",Z[Z.BitwiseAND=9]="BitwiseAND",Z[Z.Equality=10]="Equality",Z[Z.Relational=11]="Relational",Z[Z.Shift=12]="Shift",Z[Z.Additive=13]="Additive",Z[Z.Multiplicative=14]="Multiplicative",Z[Z.Exponentiation=15]="Exponentiation",Z[Z.Unary=16]="Unary",Z[Z.Update=17]="Update",Z[Z.LeftHandSide=18]="LeftHandSide",Z[Z.Member=19]="Member",Z[Z.Primary=20]="Primary",Z[Z.Highest=20]="Highest",Z[Z.Lowest=0]="Lowest",Z[Z.Invalid=-1]="Invalid",e.getOperatorPrecedence=Rt,e.getBinaryOperatorPrecedence=Lt,e.getSemanticJsxChildren=t=>e.filter(t,(e=>{switch(e.kind){case 288:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})),e.createDiagnosticCollection=()=>{var t=[],r=[],n=new e.Map,i=!1;return{add(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,kn)},lookup(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,An);return a>=0?i[a]:void 0}},getGlobalDiagnostics:()=>(i=!0,t),getDiagnostics(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(e=>n.get(e)));return t.length?(a.unshift.apply(a,t),a):a}}};var Bt=/\$\{/g;e.hasInvalidEscape=t=>t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(e=>!!e.literal.templateFlags)));var jt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ut=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Vt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Kt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function zt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Wt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Kt.get(e)||zt(e.charCodeAt(0))}function Jt(e,t){var r=96===t?Vt:39===t?Ut:jt;return e.replace(r,Wt)}e.escapeString=Jt;var Ht=/[^\u0000-\u007F]/g;function $t(e,t){return e=Jt(e,t),Ht.test(e)?e.replace(Ht,(e=>zt(e.charCodeAt(0)))):e}e.escapeNonAsciiString=$t;var Gt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,qt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Xt=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Yt(e){return 0===e.charCodeAt(0)?"&#0;":Xt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Qt(e,t){var r=39===t?qt:Gt;return e.replace(r,Yt)}e.escapeJsxAttributeString=Qt,e.stripQuotes=e=>{var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=t=>{var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Zt=[""," "];function er(e){for(var t=Zt[1],r=Zt.length;r<=e;r++)Zt.push(Zt[r-1]+t);return Zt[e]}function tr(){return Zt[1].length}function rr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function nr(e,t,r){return t.moduleName||ar(e,t.fileName,r&&r.fileName)}function ir(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ar(t,r,n){var i=e=>t.getCanonicalFileName(e),a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=fi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function or(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?dr(e,a,r,n,i):e,s=sr(o);return fi(o)+s}function sr(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function cr(e){return e.outFile||e.out}function lr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&Ee(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(J(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function ur(e,t,r){return dr(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function dr(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function pr(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(pr(e.getDirectoryPath(t),r,n),r(t))}function _r(t,r){return e.computeLineOfPosition(t,r)}function fr(t){return e.find(t.members,(t=>e.isConstructorDeclaration(t)&&p(t.body)))}function mr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&gr(e.parameters[0]);return e.parameters[t?1:0]}}function gr(e){return hr(e.name)}function hr(e){return!!e&&79===e.kind&&yr(e)}function yr(e){return 108===e.originalKeywordKind}function vr(t){if(Se(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!Se(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function br(e,t,r,n){xr(e,t,r.pos,n)}function xr(e,t,r,n){n&&n.length&&r!==n[0].pos&&_r(e,r)!==_r(e,n[0].pos)&&t.writeLine()}function Er(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l<u.length;l++){var d=u[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,d.pos,d.end,o),d.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function Sr(t,r,n,i,a,o){var s=Math.min(r,o-1),c=e.trimString(t.substring(a,s));c?(n.writeComment(c),s!==r&&n.writeLine()):n.rawWrite(i)}function Dr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=tr()-i%tr():i++;return i}function Tr(e,t){return!!wr(e,t)}function Cr(e,t){return!!Fr(e,t)}function kr(t){return e.isClassElement(t)&&Ar(t)||e.isClassStaticBlockDeclaration(t)}function Ar(e){return Cr(e,32)}function Nr(e){return Tr(e,64)}function wr(e,t){return Ir(e)&t}function Fr(e,t){return Or(e)&t}function Pr(e,t,r){return e.kind>=0&&e.kind<=160?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Rr(e)),!t||4096&e.modifierFlagsCache||!r&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Mr(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return Pr(e,!0)}function Or(e){return Pr(e,!1)}function Mr(t){var r=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Rr(e){var t=Lr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Lr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=Br(n[r].kind);return t}function Br(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 145:return 64;case 159:return 16384;case 101:return 32768;case 144:return 65536}return 0}function jr(e){return 75===e||76===e||77===e}function Ur(e){return e>=63&&e<=78}function Vr(e){var t=Kr(e);return t&&!t.isImplements?t.class:void 0}function Kr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function zr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Ur(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Wr(e){return void 0!==Vr(e)}function Jr(e){return 79===e.kind||Hr(e)}function Hr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Jr(t.expression)}function $r(e){return Ve(e)&&"prototype"===He(e)}function Gr(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=er,e.getIndentSize=tr,e.isNightly=()=>e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders"),e.createTextWriter=t=>{var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(e){e&&e.length&&(i&&(e=er(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral(e){e&&e.length&&u(e)},writeLine(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent(){n++},decreaseIndent(){n--},getIndent:()=>n,getTextPos:()=>r.length,getLine:()=>a,getColumn:()=>i?n*tr():r.length-o,getText:()=>r,isAtStartOfLine:()=>i,hasTrailingComment:()=>s,hasTrailingWhitespace:()=>!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1)),clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:()=>!1,writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:(e,t)=>u(e),writeTrailingSemicolon:u,writeComment(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:()=>i?r.length:r.length+t.length}},e.getTrailingSemicolonDeferringWriter=e=>{var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return m(m({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(t){r(),e.writeLiteral(t)},writeStringLiteral(t){r(),e.writeStringLiteral(t)},writeSymbol(t,n){r(),e.writeSymbol(t,n)},writePunctuation(t){r(),e.writePunctuation(t)},writeKeyword(t){r(),e.writeKeyword(t)},writeOperator(t){r(),e.writeOperator(t)},writeParameter(t){r(),e.writeParameter(t)},writeSpace(t){r(),e.writeSpace(t)},writeProperty(t){r(),e.writeProperty(t)},writeComment(t){r(),e.writeComment(t)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=rr,e.hostGetCanonicalFileName=t=>e.createGetCanonicalFileName(rr(t)),e.getResolvedExternalModuleName=nr,e.getExternalModuleNameFromDeclaration=(t,r,n)=>{var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Xe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==ir(t,i.path).indexOf(ir(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return nr(t,i)}},e.getExternalModuleNameFromPath=ar,e.getOwnEmitOutputFilePath=(e,t,r)=>{var n=t.getCompilerOptions();return(n.outDir?fi(ur(e,t,n.outDir)):fi(e))+r},e.getDeclarationEmitOutputFilePath=(e,t)=>or(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e))),e.getDeclarationEmitOutputFilePathWorker=or,e.getDeclarationEmitExtensionForPath=sr,e.getPossibleOriginalInputExtensionForExtension=t=>e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"],e.outFile=cr,e.getPathsBasePath=(t,r)=>{var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=(t,r,n)=>{var i=t.getCompilerOptions();if(cr(i)){var a=On(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(r=>(o||!e.isExternalModule(r))&&lr(r,t,n)))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(e=>lr(e,t,n)))},e.sourceFileMayBeEmitted=lr,e.getSourceFilePathInNewDir=ur,e.getSourceFilePathInNewDirWorker=dr,e.writeFile=(t,r,n,i,a,o,s)=>{t.writeFile(n,i,a,(t=>{r.add(Tn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=(t,r,n,i,a,o)=>{try{i(t,r,n)}catch(s){pr(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=(t,r)=>{var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=_r,e.getFirstConstructorWithBody=fr,e.getSetAccessorValueParameter=mr,e.getSetAccessorTypeAnnotationNode=e=>{var t=mr(e);return t&&t.type},e.getThisParameter=t=>{if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(gr(r))return r}},e.parameterIsThisKeyword=gr,e.isThisIdentifier=hr,e.isThisInTypeQuery=t=>{if(!hr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 181===t.parent.kind},e.identifierIsThisKeyword=yr,e.getAllAccessorDeclarations=(t,r)=>{var n,i,a,o;return kt(r)?(n=r,172===r.kind?a=r:173===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(t=>{e.isAccessor(t)&&kr(t)===kr(r)&&Nt(t.name)===Nt(r.name)&&(n?i||(i=t):n=t,172!==t.kind||a||(a=t),173!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=vr,e.getTypeAnnotationNode=e=>e.type,e.getEffectiveReturnTypeNode=t=>e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Se(t)?e.getJSDocReturnType(t):void 0),e.getJSDocTypeParameterDeclarations=t=>e.flatMap(e.getJSDocTags(t),(t=>(t=>e.isJSDocTemplateTag(t)&&!(320===t.parent.kind&&t.parent.tags.some(Ye)))(t)?t.typeParameters:void 0)),e.getEffectiveSetAccessorTypeAnnotationNode=e=>{var t=mr(e);return t&&vr(t)},e.emitNewLineBeforeLeadingComments=br,e.emitNewLineBeforeLeadingCommentsOfPosition=xr,e.emitNewLineBeforeLeadingCommentOfPosition=(e,t,r,n)=>{r!==n&&_r(e,r)!==_r(e,n)&&t.writeLine()},e.emitComments=Er,e.emitDetachedComments=(t,r,n,i,a,o,s)=>{var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(e=>y(t,e.pos)))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(d){var m=_r(r,d.end);if(_r(r,f.pos)>=m+2)break}u.push(f),d=f}u.length&&(m=_r(r,e.last(u).end),_r(r,e.skipTrivia(t,a.pos))>=m+2&&(br(r,n,a,c),Er(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=(t,r,n,i,a,o)=>{if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,d=s.line;u<a;d++){var p=d+1===c?t.length+1:r[d+1];if(u!==i){void 0===l&&(l=Dr(t,r[s.line],i));var _=n.getIndent()*tr()-l+Dr(t,u,p);if(_>0){var f=_%tr(),m=er((_-f)/tr());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Sr(t,a,n,o,u,p),u=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=e=>0!==Ir(e),e.hasSyntacticModifiers=e=>0!==Or(e),e.hasEffectiveModifier=Tr,e.hasSyntacticModifier=Cr,e.isStatic=kr,e.hasStaticModifier=Ar,e.hasOverrideModifier=e=>Tr(e,16384),e.hasAbstractModifier=e=>Cr(e,128),e.hasAmbientModifier=e=>Cr(e,2),e.hasEffectiveReadonlyModifier=Nr,e.getSelectedEffectiveModifierFlags=wr,e.getSelectedSyntacticModifierFlags=Fr,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=e=>Pr(e,!0,!0),e.getSyntacticModifierFlags=Or,e.getEffectiveModifierFlagsNoCache=e=>Rr(e)|Mr(e),e.getSyntacticModifierFlagsNoCache=Rr,e.modifiersToFlags=Lr,e.modifierToFlag=Br,e.createModifiers=t=>t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0,e.isLogicalOperator=e=>56===e||55===e||53===e,e.isLogicalOrCoalescingAssignmentOperator=jr,e.isLogicalOrCoalescingAssignmentExpression=e=>jr(e.operatorToken.kind),e.isAssignmentOperator=Ur,e.tryGetClassExtendingExpressionWithTypeArguments=Vr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Kr,e.isAssignmentExpression=zr,e.isLeftHandSideOfAssignment=e=>zr(e.parent)&&e.parent.left===e,e.isDestructuringAssignment=e=>{if(zr(e,!0)){var t=e.left.kind;return 205===t||204===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Wr,e.isEntityNameExpression=Jr,e.getFirstIdentifier=e=>{switch(e.kind){case 79:return e;case 161:do{e=e.left}while(79!==e.kind);return e;case 206:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||231===t.kind||206===t.kind&&e(t.expression)||212===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Hr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+j(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+Nt(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=$r,e.isRightSideOfQualifiedNameOrPropertyAccess=e=>161===e.parent.kind&&e.parent.right===e||206===e.parent.kind&&e.parent.name===e,e.isRightSideOfAccessExpression=Gr,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=t=>e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t,e.isEmptyObjectLiteral=e=>205===e.kind&&0===e.properties.length,e.isEmptyArrayLiteral=e=>204===e.kind&&0===e.elements.length,e.getLocalSymbolForExportDefault=t=>{if((t=>t&&e.length(t.declarations)>0&&Cr(t.declarations[0],512))(t)&&t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=t=>e.find(si,(r=>e.fileExtensionIs(t,r)));var qr,Xr,Yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Qr(t){for(var r,n,i,a,o="",s=(t=>{for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r})(t),c=0,l=s.length;c<l;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Yr.charAt(r)+Yr.charAt(n)+Yr.charAt(i)+Yr.charAt(a),c+=3;return o}function Zr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function en(e,t){return Zr(t,e.end)}function tn(e){return e.decorators&&e.decorators.length>0?en(e,e.decorators.end):e}function rn(e,t,r){return nn(an(e,r,!1),t.end,r)}function nn(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function an(t,r,n){return yi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function on(e){return void 0!==e.initializer}function sn(e){return 33554432&e.flags?e.checkFlags:0}function cn(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 212:return cn(r);case 220:case 219:var n=r.operator;return 45===n||46===n?c():0;case 221:var i=r,a=i.left,o=i.operatorToken;return a===t&&Ur(o.kind)?63===o.kind?1:c():0;case 206:return r.name!==t?0:cn(r);case 296:var s=cn(r.parent);return t===r.name?(t=>{switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}})(s):s;case 297:return t===r.objectAssignmentInitializer?0:cn(r.parent);case 204:return cn(r);default:return 0}function c(){return r.parent&&238===pt(r.parent).kind?1:2}}function ln(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach(((r,a)=>{var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function un(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function dn(e){return 206===e.kind||207===e.kind}function pn(e){for(;dn(e);)e=e.expression;return e}function _n(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function fn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function mn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function gn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function hn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function yn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function vn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(e=>e)}function bn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,((t,i)=>""+e.Debug.checkDefined(r[+i+n])))}function xn(e){return Xr&&Xr[e.key]||e.message}function En(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Sn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];En(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(Sn(c,r))):a.relatedInformation.push(c)}}return a}function Dn(e,t,r,n){V(e,t,r);var i=xn(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function Tn(e){var t=xn(e);return arguments.length>1&&(t=bn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Cn(e){return e.file?e.file.path:void 0}function kn(t,r){return An(t,r)||((t,r)=>t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,((e,t)=>kn(e,r.relatedInformation[t])))||0:t.relatedInformation?-1:1:0)(t,r)||0}function An(t,r){return e.compareStringsCaseSensitive(Cn(t),Cn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||Nn(t.messageText,r.messageText)||0}function Nn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;a<i;a++)if(n=Nn(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function wn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,wn)}function Fn(e){return e.isDeclarationFile?void 0:wn(e)}function Pn(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts"])||t.isDeclarationFile)||void 0}function In(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function On(t){return"number"==typeof t.module?t.module:In(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Mn(t){return t.moduleDetection||(On(t)===e.ModuleKind.Node16||On(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Rn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(On(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Ln(e){return!(!e.declaration&&!e.composite)}function Bn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function jn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Un(e,t){return t.strictFlag?Bn(e,t.name):e[t.name]}function Vn(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.convertToBase64=Qr,e.base64encode=(e,t)=>e&&e.base64encode?e.base64encode(t):Qr(t),e.base64decode=(e,t)=>{if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Yr.charCodeAt(64);){var a=Yr.indexOf(t[i]),o=Yr.indexOf(t[i+1]),s=Yr.indexOf(t[i+2]),c=Yr.indexOf(t[i+3]),l=(63&a)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return(e=>{for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t})(n)},e.readJson=(t,r)=>{try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=(e,t)=>!t.directoryExists||t.directoryExists(e),e.getNewLineCharacter=(t,r)=>{switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Zr,e.moveRangeEnd=(e,t)=>Zr(e.pos,t),e.moveRangePos=en,e.moveRangePastDecorators=tn,e.moveRangePastModifiers=e=>e.modifiers&&e.modifiers.length>0?en(e,e.modifiers.end):tn(e),e.isCollapsedRange=e=>e.pos===e.end,e.createTokenRange=(t,r)=>Zr(t,t+e.tokenToString(r).length),e.rangeIsOnSingleLine=(e,t)=>rn(e,e,t),e.rangeStartPositionsAreOnSameLine=(e,t,r)=>nn(an(e,r,!1),an(t,r,!1),r),e.rangeEndPositionsAreOnSameLine=(e,t,r)=>nn(e.end,t.end,r),e.rangeStartIsOnSameLineAsRangeEnd=rn,e.rangeEndIsOnSameLineAsRangeStart=(e,t,r)=>nn(e.end,an(t,r,!1),r),e.getLinesBetweenRangeEndAndRangeStart=(t,r,n,i)=>{var a=an(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=(t,r,n)=>e.getLinesBetweenPositions(n,t.end,r.end),e.isNodeArrayMultiLine=(e,t)=>!nn(e.pos,e.end,t),e.positionsAreOnSameLine=nn,e.getStartPositionOfRange=an,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i),o=((t,r,n)=>{for(void 0===r&&(r=0);t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t})(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=t=>{var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 260:case 261:return r===r.parent.name}return!1},e.getInitializedVariables=t=>e.filter(t.declarations,on),e.isWatchSet=e=>e.watch&&e.hasOwnProperty("watch"),e.closeFileWatcher=e=>{e.close()},e.getCheckFlags=sn,e.getDeclarationModifierFlagsFromSymbol=(t,r)=>{if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(e=>173===e.kind))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&sn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=(e,t)=>2097152&e.flags?t.getAliasedSymbol(e):e,e.getCombinedLocalAndExportSymbolFlags=e=>e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags,e.isWriteOnlyAccess=e=>1===cn(e),e.isWriteAccess=e=>0!==cn(e),(e=>{e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"})(qr||(qr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=(e,t)=>{e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=ln,e.mutateMap=(e,t,r)=>{ln(e,t,r);var n=r.createNewValue;t.forEach(((t,r)=>{e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=e=>{if(32&e.flags){var t=un(e);return!!t&&Cr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=un,e.getObjectFlags=e=>3899393&e.flags?e.objectFlags:0,e.typeHasCallOrConstructSignatures=(e,t)=>0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length,e.forSomeAncestorDirectory=(t,r)=>!!e.forEachAncestorDirectory(t,(e=>!!r(e)||void 0)),e.isUMDExportSymbol=t=>!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0]),e.showModuleSpecifier=t=>{var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:E(r)},e.getLastChild=t=>{var r;return e.forEachChild(t,(e=>{p(e)&&(r=e)}),(e=>{for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}})),r},e.addToSeen=(e,t,r)=>(void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)),e.isObjectTypeDeclaration=t=>e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t),e.isTypeNodeKind=e=>e>=177&&e<=200||130===e||155===e||147===e||158===e||148===e||133===e||150===e||151===e||114===e||153===e||143===e||228===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e,e.isAccessExpression=dn,e.getNameOfAccessExpression=t=>206===t.kind?t.name:(e.Debug.assert(207===t.kind),t.argumentExpression),e.isBundleFileTextLike=e=>{switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=e=>269===e.kind||273===e.kind,e.getLeftmostAccessExpression=pn,e.forEachNameInAccessChainWalkingLeft=(t,r)=>{if(dn(t.parent)&&Gr(t))return function t(n){if(206===n.kind){if(void 0!==(i=r(n.name)))return i}else if(207===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}return dn(n.expression)?t(n.expression):e.isIdentifier(n.expression)?r(n.expression):void 0}(t.parent)},e.getLeftmostExpression=(e,t)=>{for(;;){switch(e.kind){case 220:e=e.operand;continue;case 221:e=e.left;continue;case 222:e=e.condition;continue;case 210:e=e.tag;continue;case 208:if(t)return e;case 229:case 207:case 206:case 230:case 350:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:()=>gn,getTokenConstructor:()=>hn,getIdentifierConstructor:()=>yn,getPrivateIdentifierConstructor:()=>gn,getSourceFileConstructor:()=>gn,getSymbolConstructor:()=>_n,getTypeConstructor:()=>fn,getSignatureConstructor:()=>mn,getSourceMapSourceConstructor:()=>vn},e.setObjectAllocator=t=>{Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=bn,e.setLocalizedDiagnosticMessages=e=>{Xr=e},e.maybeSetLocalizedDiagnosticMessages=e=>{!Xr&&e&&(Xr=e())},e.getLocaleSpecificMessage=xn,e.createDetachedDiagnostic=function(e,t,r,n){V(void 0,t,r);var i=xn(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=(e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(Sn(a,t))}return r},e.createFileDiagnostic=Dn,e.formatMessage=function(e,t){var r=xn(t);return arguments.length>2&&(r=bn(r,arguments,2)),r},e.createCompilerDiagnostic=Tn,e.createCompilerDiagnosticFromMessageChain=(e,t)=>({file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}),e.chainDiagnosticMessages=function(e,t){var r=xn(t);return arguments.length>2&&(r=bn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=(e,t)=>{for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=kn,e.compareDiagnosticsSkipRelatedInformation=An,e.getLanguageVariant=e=>4===e||2===e||1===e||6===e?1:0,e.getSetExternalModuleIndicator=t=>{switch(Mn(t)){case e.ModuleDetectionKind.Force:return t=>{t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return t=>{t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(Fn);var n=On(t);n!==e.ModuleKind.Node16&&n!==e.ModuleKind.NodeNext||r.push(Pn);var i=e.or.apply(void 0,r);return e=>{e.externalModuleIndicator=i(e)}}},e.getEmitScriptTarget=In,e.getEmitModuleKind=On,e.getEmitModuleResolutionKind=t=>{var r=t.moduleResolution;if(void 0===r)switch(On(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=Mn,e.hasJsonModuleEmitEnabled=t=>{switch(On(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=e=>!1===e.allowUnreachableCode,e.unusedLabelIsError=e=>!1===e.allowUnusedLabels,e.getAreDeclarationMapsEnabled=e=>!(!Ln(e)||!e.declarationMap),e.getESModuleInterop=Rn,e.getAllowSyntheticDefaultImports=t=>{var r=On(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Rn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Ln,e.shouldPreserveConstEnums=e=>!(!e.preserveConstEnums&&!e.isolatedModules),e.isIncrementalCompilation=e=>!(!e.incremental&&!e.composite),e.getStrictOptionValue=Bn,e.getAllowJSCompilerOption=jn,e.getUseDefineForClassFields=e=>void 0===e.useDefineForClassFields?In(e)>=9:e.useDefineForClassFields,e.compilerOptionsAffectSemanticDiagnostics=(t,r)=>o(r,t,e.semanticDiagnosticsOptionDeclarations),e.compilerOptionsAffectEmit=(t,r)=>o(r,t,e.affectsEmitOptionDeclarations),e.getCompilerOptionValue=Un,e.getJSXTransformEnabled=e=>{var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=(t,r)=>{var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=(e,t)=>e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0,e.hasZeroOrOneAsteriskCharacter=e=>{for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.createSymlinkCache=function(t,r){var n,i,a,o=!1;return{getSymlinkedFiles:()=>a,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(t,r)=>(a||(a=new e.Map)).set(t,r),setSymlinkedDirectory(a,o){var s=e.toPath(a,t,r);ki(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinksFromResolutions(t,r){var n,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=t;a<c.length;a++)null===(n=c[a].resolvedModules)||void 0===n||n.forEach((e=>s(i,e)));null==r||r.forEach((e=>s(i,e)))},hasProcessedResolutions:()=>o};function s(n,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;n.setSymlinkedFile(e.toPath(o,t,r),a);var s=((t,r,n,i)=>{for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;a.length>=2&&o.length>=2&&!Vn(a[a.length-2],i)&&!Vn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0})(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=(t,r,n)=>{var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Kn=/[^\w\s\/]/g;function zn(e){return"\\"+e}e.regExpEscape=e=>e.replace(Kn,zn);var Wn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Jn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Hn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Jn,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>ei(e,Hn.singleAsteriskRegexFragment)},$n={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Jn,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>ei(e,$n.singleAsteriskRegexFragment)},Gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>ei(e,Gn.singleAsteriskRegexFragment)},qn={files:Hn,directories:$n,exclude:Gn};function Xn(e,t,r){var n=Yn(e,t,r);if(n&&n.length){var i=n.map((e=>"(".concat(e,")"))).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Yn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(e=>e&&Zn(e,r,n,qn[n])))}function Qn(e){return!/[.*?]/.test(e)}function Zn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Qn(d)&&u.push("**","*");for(var p=0,_=0,f=u;_<f.length;_++){var m=f[_];if("**"===m)c+=o;else if("directories"===n&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==n){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(Kn,s))!==m&&(c+=Jn),c+=g}else c+=m.replace(Kn,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function ei(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ti(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Yn(n,o,"files"),(e=>"^".concat(e,"$"))),includeFilePattern:Xn(n,o,"files"),includeDirectoryPattern:Xn(n,o,"directories"),excludePattern:Xn(r,o,"exclude"),basePaths:ni(t,n,i)}}function ri(e,t){return new RegExp(e,t?"":"i")}function ni(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(ii(l))}a.sort(e.getStringComparer(!n));for(var u=r=>{e.every(i,(i=>!e.containsPath(i,r,t,!n)))&&i.push(r)},d=0,p=a;d<p.length;d++)u(p[d])}return i}function ii(t){var r=e.indexOfAnyCharCode(t,Wn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function ai(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Xn,e.getRegularExpressionsForWildcards=Yn,e.isImplicitGlob=Qn,e.getPatternFromSpec=(e,t,r)=>{var n=e&&Zn(e,t,r,qn[r]);return n&&"^(".concat(n,")").concat("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=ti,e.getRegexFromPattern=ri,e.matchFiles=(t,r,n,i,a,o,s,c,l)=>{t=e.normalizePath(t),o=e.normalizePath(o);for(var u=ti(t,n,i,a,o),d=u.includeFilePatterns&&u.includeFilePatterns.map((e=>ri(e,a))),p=u.includeDirectoryPattern&&ri(u.includeDirectoryPattern,a),_=u.excludePattern&&ri(u.excludePattern,a),f=d?d.map((()=>[])):[[]],m=new e.Map,g=e.createGetCanonicalFileName(a),h=0,y=u.basePaths;h<y.length;h++){var v=y[h];b(v,e.combinePaths(o,v),s)}return e.flatten(f);function b(t,n,i){var a=g(l(n));if(!m.has(a)){m.set(a,!0);for(var o=c(t),s=o.files,u=o.directories,h=i=>{var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(_&&_.test(o))return"continue";if(d){var s=e.findIndex(d,(e=>e.test(o)));-1!==s&&f[s].push(a)}else f[0].push(a)},y=0,v=e.sort(s,e.compareStringsCaseSensitive);y<v.length;y++)h(S=v[y]);if(void 0===i||0!=--i)for(var x=0,E=e.sort(u,e.compareStringsCaseSensitive);x<E.length;x++){var S=E[x],D=e.combinePaths(t,S),T=e.combinePaths(n,S);p&&!p.test(T)||_&&_.test(T)||b(D,T,i)}}}},e.ensureScriptKind=(e,t)=>t||ai(e)||3,e.getScriptKindFromFileName=ai,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var oi=f(f([],e.supportedTSExtensions,!0),[[".json"]],!1),si=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var ci=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],li=f(f([],ci,!0),[[".json"]],!1);function ui(t,r){var n=t&&jn(t);if(!r||0===r.length)return n?ci:e.supportedTSExtensions;var i=n?ci:e.supportedTSExtensions,a=e.flatten(i);return f(f([],i,!0),e.mapDefined(r,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===a.indexOf(e.extension)?[e.extension]:void 0;var t})),!0)}function di(t,r){return t&&t.resolveJsonModule?r===ci?li:r===e.supportedTSExtensions?oi:f(f([],r,!0),[[".json"]],!1):r}function pi(e){var t=e.match(/\//g);return t?t.length:0}e.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"],e.getSupportedExtensions=ui,e.getSupportedExtensionsWithJsonIfResolveJsonModule=di,e.hasJSFileExtension=t=>e.some(e.supportedJSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.hasTSFileExtension=t=>e.some(e.supportedTSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.isSupportedSourceFileName=(t,r,n)=>{if(!t)return!1;for(var i=ui(r,n),a=0,o=e.flatten(di(r,i));a<o.length;a++){var s=o[a];if(e.fileExtensionIs(t,s))return!0}return!1},e.compareNumberOfDirectorySeparators=(t,r)=>e.compareValues(pi(t),pi(r));var _i=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function fi(e){for(var t=0,r=_i;t<r.length;t++){var n=mi(e,r[t]);if(void 0!==n)return n}return e}function mi(t,r){return e.fileExtensionIs(t,r)?gi(t,r):void 0}function gi(e,t){return e.substring(0,e.length-t.length)}function hi(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function yi(e){return!(e>=0)}function vi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function bi(t){return e.find(_i,(r=>e.fileExtensionIs(t,r)))}function xi(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,xi)}function Ei(e,t){return e.pos=t,e}function Si(e,t){return e.end=t,e}function Di(e,t,r){return Si(Ei(e,t),r)}function Ti(e,t){return e&&t&&(e.parent=t),e}function Ci(t){return!e.isOmittedExpression(t)}function ki(t){return e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))}function Ai(e){return 254===e.kind&&292===e.parent.kind}function Ni(e){return(+e).toString()===e}e.removeFileExtension=fi,e.tryRemoveExtension=mi,e.removeExtension=gi,e.changeExtension=(t,r)=>e.changeAnyExtension(t,r,_i,!1),e.tryParsePattern=hi,e.tryParsePatterns=t=>e.mapDefined(e.getOwnKeys(t),(e=>hi(e))),e.positionIsSynthesized=yi,e.extensionIsTS=vi,e.resolutionExtensionIsTSOrJson=e=>vi(e)||".json"===e,e.extensionFromPath=t=>{var r=bi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=e=>void 0!==bi(e),e.tryGetExtensionFromPath=bi,e.isCheckJsEnabledForFile=(e,t)=>e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=(t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o===r)return r;e.isString(o)||n.push(o)}return e.findBestPatternMatch(n,(e=>e),r)},e.sliceAfter=(t,r)=>{var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=(t,r)=>{e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=e=>({pos:v(e),end:e.end}),e.rangeOfTypeParameters=(t,r)=>({pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}),e.skipTypeChecking=(e,t,r)=>t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName),e.isJsonEqual=xi,e.parsePseudoBigInt=e=>{var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,l=f;l>=0;l--){var h=g<<16|o[l],y=h/10|0;o[l]=y,g=h-10*y,y&&!m&&(f=l,m=!0)}_=g+_}return _},e.pseudoBigIntToString=e=>{var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=t=>!!(16777216&t.flags)||be(t)||(t=>{if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(e=>{switch(e.kind){case 291:return!0;case 206:case 228:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||258===(null==r?void 0:r.parent.kind)})(t)||(e=>{for(;79===e.kind||206===e.kind;)e=e.parent;if(162!==e.kind)return!1;if(Cr(e.parent,128))return!0;var t=e.parent.parent.kind;return 258===t||182===t})(t)||!(ye(t)||(t=>e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t)(t)),e.isIdentifierTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName),e.arrayIsHomogeneous=(t,r)=>{if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++)if(!r(n,t[i]))return!1;return!0},e.setTextRangePos=Ei,e.setTextRangeEnd=Si,e.setTextRangePosEnd=Di,e.setTextRangePosWidth=(e,t,r)=>Di(e,t,t+r),e.setNodeFlags=(e,t)=>(e&&(e.flags=t),e),e.setParent=Ti,e.setEachParent=(e,t)=>{if(e)for(var r=0,n=e;r<n.length;r++)Ti(n[r],t);return e},e.setParentRecursive=(t,r)=>{return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:(t,r)=>n(t,r)||(t=>{if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}})(t)),t):t;function n(e,t){if(r&&e.parent===t)return"skip";Ti(e,t)}},e.isPackedArrayLiteral=t=>e.isArrayLiteralExpression(t)&&e.every(t.elements,Ci),e.expressionResultIsUnused=t=>{for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=ki,e.getContainingNodeArray=t=>{if(t.parent){switch(t.kind){case 163:var r=t.parent;return 190===r.kind?void 0:r.typeParameters;case 164:return t.parent.parameters;case 199:case 233:return t.parent.templateSpans;case 165:return t.parent.decorators;case 291:return t.parent.heritageClauses}var n=t.parent;if(e.isJSDocTag(t))return e.isJSDocTypeLiteral(t.parent)?void 0:t.parent.tags;switch(n.kind){case 182:case 258:return e.isTypeElement(t)?n.members:void 0;case 187:case 188:return n.types;case 184:case 204:case 351:case 269:case 273:return n.elements;case 205:case 286:return n.properties;case 208:case 209:return e.isTypeNode(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 278:case 282:return e.isJsxChild(t)?n.children:void 0;case 280:case 279:return e.isTypeNode(t)?n.typeArguments:void 0;case 235:case 289:case 290:case 262:return n.statements;case 263:return n.clauses;case 257:case 226:return e.isClassElement(t)?n.members:void 0;case 260:return e.isEnumMember(t)?n.members:void 0;case 305:return n.statements}}},e.hasContextSensitiveParameters=t=>{if(!t.typeParameters){if(e.some(t.parameters,(e=>!vr(e))))return!0;if(214!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!gr(r))return!0}}return!1},e.isInfinityOrNaNString=e=>"Infinity"===e||"-Infinity"===e||"NaN"===e,e.isCatchClauseVariableDeclaration=Ai,e.isParameterOrCatchClauseVariable=t=>{var r=t.valueDeclaration&&Pt(t.valueDeclaration);return!!r&&(e.isParameter(r)||Ai(r))},e.isFunctionExpressionOrArrowFunction=e=>213===e.kind||214===e.kind,e.escapeSnippetText=e=>e.replace(/\$/gm,(()=>"\\$")),e.isNumericLiteralName=Ni,e.createPropertyNameNodeForIdentifierOrLiteral=(t,r,n,i)=>e.isIdentifierText(t,r)?e.factory.createIdentifier(t):!i&&Ni(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n),e.isThisTypeParameter=e=>!!(262144&e.flags&&e.isThisType),e.getNodeModulePathParts=t=>{var r,n=0,i=0,a=0;!(e=>{e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"})(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=e=>{var t;return 340===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type}}(p),(e=>{e.createBaseNodeFactory=()=>{var t,r,n,i,a;return{createBaseSourceFileNode:t=>new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:r=>new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}})(p),(e=>{e.createParenthesizerRules=t=>{var r,n;return{getParenthesizeLeftSideOfBinaryForOperator(t){r||(r=new e.Map);var n=r.get(t);return n||(n=e=>o(t,e),r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator(t){n||(n=new e.Map);var r=n.get(t);return r||(r=e=>s(t,void 0,e),n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:r=>e.isCommaSequence(r)?t.createParenthesizedExpression(r):r,parenthesizeConditionOfConditionalExpression(r){var n=e.getOperatorPrecedence(222,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 226:case 213:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 208:return t.createParenthesizedExpression(r);case 209:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:r=>e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeOperandOfPrefixUnary:r=>e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeExpressionsOfCommaDelimitedList(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(213===a||214===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 205===s||213===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:r=>e.isBlock(r)||!e.isCommaSequence(r)&&205!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeCheckTypeOfConditionalType:u,parenthesizeExtendsTypeOfConditionalType(e){switch(e.kind){case 189:return t.createParenthesizedType(e)}return e},parenthesizeConstituentTypesOfUnionType:r=>t.createNodeArray(e.sameMap(r,d)),parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:r=>t.createNodeArray(e.sameMap(r,p)),parenthesizeConstituentTypeOfIntersectionType:p,parenthesizeOperandOfTypeOperator:_,parenthesizeOperandOfReadonlyTypeOperator(e){switch(e.kind){case 193:return t.createParenthesizedType(e)}return _(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:r=>t.createNodeArray(e.sameMap(r,m)),parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:e=>g(e)?t.createParenthesizedType(e):f(e),parenthesizeTypeArguments(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,y))},parenthesizeLeadingTypeArgument:h};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(221===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 212===e.skipPartiallyEmittedExpressions(n).kind?n:((t,r,n,a)=>{var o=e.getOperatorPrecedence(221,t),s=e.getOperatorAssociativity(221,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&214===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&224===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if((e=>41===e||51===e||50===e||52===e)(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}})(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(209!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(221,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){switch(e.kind){case 179:case 180:case 189:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return u(e)}function p(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return d(e)}function _(e){switch(e.kind){case 188:return t.createParenthesizedType(e)}return p(e)}function f(e){switch(e.kind){case 190:case 193:case 181:return t.createParenthesizedType(e)}return _(e)}function m(e){return g(e)?t.createParenthesizedType(e):e}function g(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?g(t.type):e.isConditionalTypeNode(t)?g(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?g(e.last(t.types)):!!e.isInferTypeNode(t)&&!!t.typeParameter.constraint&&g(t.typeParameter.constraint)}function h(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function y(e,t){return 0===t?h(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:t=>e.identity,getParenthesizeRightSideOfBinaryForOperator:t=>e.identity,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeLeftSideOfAccess:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPostfixUnary:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPrefixUnary:t=>e.cast(t,e.isUnaryExpression),parenthesizeExpressionsOfCommaDelimitedList:t=>e.cast(t,e.isNodeArray),parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:t=>e.cast(t,e.isNodeArray),parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:t=>e.cast(t,e.isNodeArray),parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:t=>e.cast(t,e.isNodeArray),parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:t=>t&&e.cast(t,e.isNodeArray),parenthesizeLeadingTypeArgument:e.identity}})(p),(e=>{e.createNodeConverters=t=>{return{convertToFunctionBlock(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 202:case 204:return o(e);case 201:case 205:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(p),(e=>{var t,r,n=0;function i(r,i){var _=8&r?a:o,m=e.memoize((()=>1&r?e.nullParenthesizerRules:e.createParenthesizerRules(w))),g=e.memoize((()=>2&r?e.nullNodeConverters:e.createNodeConverters(w))),h=e.memoizeOne((e=>(t,r)=>Lt(t,e,r))),y=e.memoizeOne((e=>t=>Mt(e,t))),b=e.memoizeOne((e=>t=>Rt(t,e))),x=e.memoizeOne((e=>()=>(e=>P(e))(e))),E=e.memoizeOne((e=>t=>on(e,t))),S=e.memoizeOne((e=>(t,r)=>((e,t,r)=>t.type!==r?_(on(e,r),t):t)(e,t,r))),D=e.memoizeOne((e=>(t,r)=>an(e,t,r))),T=e.memoizeOne((e=>(t,r)=>((e,t,r)=>t.type!==r?_(an(e,r,t.postfix),t):t)(e,t,r))),C=e.memoizeOne((e=>(t,r)=>Cn(e,t,r))),k=e.memoizeOne((e=>(t,r,n)=>((e,t,r,n)=>(void 0===r&&(r=dn(t)),t.tagName!==r||t.comment!==n?_(Cn(e,r,n),t):t))(e,t,r,n))),A=e.memoizeOne((e=>(t,r,n)=>kn(e,t,r,n))),N=e.memoizeOne((e=>(t,r,n,i)=>((e,t,r,n,i)=>(void 0===r&&(r=dn(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?_(kn(e,r,n,i),t):t))(e,t,r,n,i))),w={get parenthesizer(){return m()},get converters(){return g()},baseFactory:i,flags:r,createNodeArray:F,createNumericLiteral:J,createBigIntLiteral:H,createStringLiteral:G,createStringLiteralFromNode(t){var r=$(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:q,createLiteralLikeNode(e,t){switch(e){case 8:return J(t,0);case 9:return H(t);case 10:return G(t,void 0);case 11:return Rn(t,!1);case 12:return Rn(t,!0);case 13:return q(t);case 14:return Kt(e,t,void 0,0)}},createIdentifier:Q,updateIdentifier:(t,r)=>t.typeArguments!==r?_(Q(e.idText(t),r),t):t,createTempVariable:Z,createLoopVariable(e){var t=2;return e&&(t|=8),Y("",t)},createUniqueName:(t,r)=>(void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(t,3|r)),getGeneratedNameForNode:ee,createPrivateIdentifier(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=i.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:re,createSuper:()=>re(106),createThis:ne,createNull:()=>re(104),createTrue:ie,createFalse:ae,createModifier:oe,createModifiersFromModifierFlags:se,createQualifiedName:ce,updateQualifiedName:(e,t,r)=>e.left!==t||e.right!==r?_(ce(t,r),e):e,createComputedPropertyName:le,updateComputedPropertyName:(e,t)=>e.expression!==t?_(le(t),e):e,createTypeParameterDeclaration:ue,updateTypeParameterDeclaration(t,r,n,i,a){var o,s,c;return void 0===r||e.isArray(r)?(s=r,o=n,c=i):(s=void 0,o=r,c=n),t.modifiers!==s||t.name!==o||t.constraint!==c||t.default!==a?_(ue(s,o,c,a),t):t},createParameterDeclaration:de,updateParameterDeclaration:pe,createDecorator:_e,updateDecorator:(e,t)=>e.expression!==t?_(_e(t),e):e,createPropertySignature:fe,updatePropertySignature:me,createPropertyDeclaration:ge,updatePropertyDeclaration:he,createMethodSignature:ye,updateMethodSignature:ve,createMethodDeclaration:be,updateMethodDeclaration:xe,createConstructorDeclaration:Se,updateConstructorDeclaration:De,createGetAccessorDeclaration:Te,updateGetAccessorDeclaration:Ce,createSetAccessorDeclaration:ke,updateSetAccessorDeclaration:Ae,createCallSignature:Ne,updateCallSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Ne(t,r,n),e):e,createConstructSignature:we,updateConstructSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?L(we(t,r,n),e):e,createIndexSignature:Fe,updateIndexSignature:Pe,createClassStaticBlockDeclaration:Ee,updateClassStaticBlockDeclaration:(e,t,r,n)=>e.decorators!==t||e.modifier!==r||e.body!==n?_(Ee(t,r,n),e):e,createTemplateLiteralTypeSpan:Ie,updateTemplateLiteralTypeSpan:(e,t,r)=>e.type!==t||e.literal!==r?_(Ie(t,r),e):e,createKeywordTypeNode:e=>re(e),createTypePredicateNode:Oe,updateTypePredicateNode:(e,t,r,n)=>e.assertsModifier!==t||e.parameterName!==r||e.type!==n?_(Oe(t,r,n),e):e,createTypeReferenceNode:Me,updateTypeReferenceNode:(e,t,r)=>e.typeName!==t||e.typeArguments!==r?_(Me(t,r),e):e,createFunctionTypeNode:Re,updateFunctionTypeNode:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Re(t,r,n),e):e,createConstructorTypeNode:Le,updateConstructorTypeNode(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?Ue.apply(void 0,t):4===t.length?Ve.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ke,updateTypeQueryNode:(e,t,r)=>e.exprName!==t||e.typeArguments!==r?_(Ke(t,r),e):e,createTypeLiteralNode:ze,updateTypeLiteralNode:(e,t)=>e.members!==t?_(ze(t),e):e,createArrayTypeNode:We,updateArrayTypeNode:(e,t)=>e.elementType!==t?_(We(t),e):e,createTupleTypeNode:Je,updateTupleTypeNode:(e,t)=>e.elements!==t?_(Je(t),e):e,createNamedTupleMember:He,updateNamedTupleMember:(e,t,r,n,i)=>e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?_(He(t,r,n,i),e):e,createOptionalTypeNode:$e,updateOptionalTypeNode:(e,t)=>e.type!==t?_($e(t),e):e,createRestTypeNode:Ge,updateRestTypeNode:(e,t)=>e.type!==t?_(Ge(t),e):e,createUnionTypeNode:e=>qe(187,e,m().parenthesizeConstituentTypesOfUnionType),updateUnionTypeNode:(e,t)=>Xe(e,t,m().parenthesizeConstituentTypesOfUnionType),createIntersectionTypeNode:e=>qe(188,e,m().parenthesizeConstituentTypesOfIntersectionType),updateIntersectionTypeNode:(e,t)=>Xe(e,t,m().parenthesizeConstituentTypesOfIntersectionType),createConditionalTypeNode:Ye,updateConditionalTypeNode:(e,t,r,n,i)=>e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?_(Ye(t,r,n,i),e):e,createInferTypeNode:Qe,updateInferTypeNode:(e,t)=>e.typeParameter!==t?_(Qe(t),e):e,createImportTypeNode:et,updateImportTypeNode(t,r,n,i,a,o){var s=n&&295===n.kind?n:void 0,c=n&&e.isEntityName(n)?n:i&&!e.isArray(i)?i:void 0,l=e.isArray(i)?i:e.isArray(a)?a:void 0;return o="boolean"==typeof a?a:"boolean"==typeof o?o:t.isTypeOf,t.argument!==r||t.assertions!==s||t.qualifier!==c||t.typeArguments!==l||t.isTypeOf!==o?_(et(r,s,c,l,o),t):t},createParenthesizedType:tt,updateParenthesizedType:(e,t)=>e.type!==t?_(tt(t),e):e,createThisTypeNode(){var e=P(192);return e.transformFlags=1,e},createTypeOperatorNode:rt,updateTypeOperatorNode:(e,t)=>e.type!==t?_(rt(e.operator,t),e):e,createIndexedAccessTypeNode:nt,updateIndexedAccessTypeNode:(e,t,r)=>e.objectType!==t||e.indexType!==r?_(nt(t,r),e):e,createMappedTypeNode:it,updateMappedTypeNode:(e,t,r,n,i,a,o)=>e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?_(it(t,r,n,i,a,o),e):e,createLiteralTypeNode:at,updateLiteralTypeNode:(e,t)=>e.literal!==t?_(at(t),e):e,createTemplateLiteralType:Ze,updateTemplateLiteralType:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(Ze(t,r),e):e,createObjectBindingPattern:ot,updateObjectBindingPattern:(e,t)=>e.elements!==t?_(ot(t),e):e,createArrayBindingPattern:st,updateArrayBindingPattern:(e,t)=>e.elements!==t?_(st(t),e):e,createBindingElement:ct,updateBindingElement:(e,t,r,n,i)=>e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?_(ct(t,r,n,i),e):e,createArrayLiteralExpression:ut,updateArrayLiteralExpression:(e,t)=>e.elements!==t?_(ut(t,e.multiLine),e):e,createObjectLiteralExpression:dt,updateObjectLiteralExpression:(e,t)=>e.properties!==t?_(dt(t,e.multiLine),e):e,createPropertyAccessExpression:4&r?(t,r)=>e.setEmitFlags(pt(t,r),131072):pt,updatePropertyAccessExpression:(t,r,n)=>e.isPropertyAccessChain(t)?ft(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?_(pt(r,n),t):t,createPropertyAccessChain:4&r?(t,r,n)=>e.setEmitFlags(_t(t,r,n),131072):_t,updatePropertyAccessChain:ft,createElementAccessExpression:mt,updateElementAccessExpression:(t,r,n)=>e.isElementAccessChain(t)?ht(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?_(mt(r,n),t):t,createElementAccessChain:gt,updateElementAccessChain:ht,createCallExpression:yt,updateCallExpression:(t,r,n,i)=>e.isCallChain(t)?bt(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?_(yt(r,n,i),t):t,createCallChain:vt,updateCallChain:bt,createNewExpression:xt,updateNewExpression:(e,t,r,n)=>e.expression!==t||e.typeArguments!==r||e.arguments!==n?_(xt(t,r,n),e):e,createTaggedTemplateExpression:Et,updateTaggedTemplateExpression:(e,t,r,n)=>e.tag!==t||e.typeArguments!==r||e.template!==n?_(Et(t,r,n),e):e,createTypeAssertion:St,updateTypeAssertion:Dt,createParenthesizedExpression:Tt,updateParenthesizedExpression:Ct,createFunctionExpression:kt,updateFunctionExpression:At,createArrowFunction:Nt,updateArrowFunction:wt,createDeleteExpression:Ft,updateDeleteExpression:(e,t)=>e.expression!==t?_(Ft(t),e):e,createTypeOfExpression:Pt,updateTypeOfExpression:(e,t)=>e.expression!==t?_(Pt(t),e):e,createVoidExpression:It,updateVoidExpression:(e,t)=>e.expression!==t?_(It(t),e):e,createAwaitExpression:Ot,updateAwaitExpression:(e,t)=>e.expression!==t?_(Ot(t),e):e,createPrefixUnaryExpression:Mt,updatePrefixUnaryExpression:(e,t)=>e.operand!==t?_(Mt(e.operator,t),e):e,createPostfixUnaryExpression:Rt,updatePostfixUnaryExpression:(e,t)=>e.operand!==t?_(Rt(t,e.operator),e):e,createBinaryExpression:Lt,updateBinaryExpression:(e,t,r,n)=>e.left!==t||e.operatorToken!==r||e.right!==n?_(Lt(t,r,n),e):e,createConditionalExpression:jt,updateConditionalExpression:(e,t,r,n,i,a)=>e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?_(jt(t,r,n,i,a),e):e,createTemplateExpression:Ut,updateTemplateExpression:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(Ut(t,r),e):e,createTemplateHead:(e,t,r)=>Vt(15,e,t,r),createTemplateMiddle:(e,t,r)=>Vt(16,e,t,r),createTemplateTail:(e,t,r)=>Vt(17,e,t,r),createNoSubstitutionTemplateLiteral:(e,t,r)=>Vt(14,e,t,r),createTemplateLiteralLikeNode:Kt,createYieldExpression:zt,updateYieldExpression:(e,t,r)=>e.expression!==r||e.asteriskToken!==t?_(zt(t,r),e):e,createSpreadElement:Wt,updateSpreadElement:(e,t)=>e.expression!==t?_(Wt(t),e):e,createClassExpression:Jt,updateClassExpression:Ht,createOmittedExpression:()=>lt(227),createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:(e,t,r)=>e.expression!==t||e.typeArguments!==r?_($t(t,r),e):e,createAsExpression:Gt,updateAsExpression:qt,createNonNullExpression:Xt,updateNonNullExpression:Yt,createNonNullChain:Qt,updateNonNullChain:Zt,createMetaProperty:er,updateMetaProperty:(e,t)=>e.name!==t?_(er(e.keywordToken,t),e):e,createTemplateSpan:tr,updateTemplateSpan:(e,t,r)=>e.expression!==t||e.literal!==r?_(tr(t,r),e):e,createSemicolonClassElement(){var e=P(234);return e.transformFlags|=1024,e},createBlock:rr,updateBlock:(e,t)=>e.statements!==t?_(rr(t,e.multiLine),e):e,createVariableStatement:nr,updateVariableStatement:ir,createEmptyStatement:ar,createExpressionStatement:or,updateExpressionStatement:(e,t)=>e.expression!==t?_(or(t),e):e,createIfStatement:sr,updateIfStatement:(e,t,r,n)=>e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?_(sr(t,r,n),e):e,createDoStatement:cr,updateDoStatement:(e,t,r)=>e.statement!==t||e.expression!==r?_(cr(t,r),e):e,createWhileStatement:lr,updateWhileStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(lr(t,r),e):e,createForStatement:ur,updateForStatement:(e,t,r,n,i)=>e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?_(ur(t,r,n,i),e):e,createForInStatement:dr,updateForInStatement:(e,t,r,n)=>e.initializer!==t||e.expression!==r||e.statement!==n?_(dr(t,r,n),e):e,createForOfStatement:pr,updateForOfStatement:(e,t,r,n,i)=>e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?_(pr(t,r,n,i),e):e,createContinueStatement:_r,updateContinueStatement:(e,t)=>e.label!==t?_(_r(t),e):e,createBreakStatement:fr,updateBreakStatement:(e,t)=>e.label!==t?_(fr(t),e):e,createReturnStatement:mr,updateReturnStatement:(e,t)=>e.expression!==t?_(mr(t),e):e,createWithStatement:gr,updateWithStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(gr(t,r),e):e,createSwitchStatement:hr,updateSwitchStatement:(e,t,r)=>e.expression!==t||e.caseBlock!==r?_(hr(t,r),e):e,createLabeledStatement:yr,updateLabeledStatement:vr,createThrowStatement:br,updateThrowStatement:(e,t)=>e.expression!==t?_(br(t),e):e,createTryStatement:xr,updateTryStatement:(e,t,r,n)=>e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?_(xr(t,r,n),e):e,createDebuggerStatement:()=>P(253),createVariableDeclaration:Er,updateVariableDeclaration:(e,t,r,n,i)=>e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?_(Er(t,r,n,i),e):e,createVariableDeclarationList:Sr,updateVariableDeclarationList:(e,t)=>e.declarations!==t?_(Sr(t,e.flags),e):e,createFunctionDeclaration:Dr,updateFunctionDeclaration:Tr,createClassDeclaration:Cr,updateClassDeclaration:kr,createInterfaceDeclaration:Ar,updateInterfaceDeclaration:Nr,createTypeAliasDeclaration:wr,updateTypeAliasDeclaration:Fr,createEnumDeclaration:Pr,updateEnumDeclaration:Ir,createModuleDeclaration:Or,updateModuleDeclaration:Mr,createModuleBlock:Rr,updateModuleBlock:(e,t)=>e.statements!==t?_(Rr(t),e):e,createCaseBlock:Lr,updateCaseBlock:(e,t)=>e.clauses!==t?_(Lr(t),e):e,createNamespaceExportDeclaration:Br,updateNamespaceExportDeclaration:(e,t)=>e.name!==t?_(Br(t),e):e,createImportEqualsDeclaration:jr,updateImportEqualsDeclaration:Ur,createImportDeclaration:Vr,updateImportDeclaration:Kr,createImportClause:zr,updateImportClause:(e,t,r,n)=>e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?_(zr(t,r,n),e):e,createAssertClause:Wr,updateAssertClause:(e,t,r)=>e.elements!==t||e.multiLine!==r?_(Wr(t,r),e):e,createAssertEntry:Jr,updateAssertEntry:(e,t,r)=>e.name!==t||e.value!==r?_(Jr(t,r),e):e,createImportTypeAssertionContainer:Hr,updateImportTypeAssertionContainer:(e,t,r)=>e.assertClause!==t||e.multiLine!==r?_(Hr(t,r),e):e,createNamespaceImport:$r,updateNamespaceImport:(e,t)=>e.name!==t?_($r(t),e):e,createNamespaceExport:Gr,updateNamespaceExport:(e,t)=>e.name!==t?_(Gr(t),e):e,createNamedImports:qr,updateNamedImports:(e,t)=>e.elements!==t?_(qr(t),e):e,createImportSpecifier:Xr,updateImportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(Xr(t,r,n),e):e,createExportAssignment:Yr,updateExportAssignment:Qr,createExportDeclaration:Zr,updateExportDeclaration:en,createNamedExports:tn,updateNamedExports:(e,t)=>e.elements!==t?_(tn(t),e):e,createExportSpecifier:rn,updateExportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(rn(t,r,n),e):e,createMissingDeclaration:()=>I(276,void 0,void 0),createExternalModuleReference:nn,updateExternalModuleReference:(e,t)=>e.expression!==t?_(nn(t),e):e,get createJSDocAllType(){return x(312)},get createJSDocUnknownType(){return x(313)},get createJSDocNonNullableType(){return D(315)},get updateJSDocNonNullableType(){return T(315)},get createJSDocNullableType(){return D(314)},get updateJSDocNullableType(){return T(314)},get createJSDocOptionalType(){return E(316)},get updateJSDocOptionalType(){return S(316)},get createJSDocVariadicType(){return E(318)},get updateJSDocVariadicType(){return S(318)},get createJSDocNamepathType(){return E(319)},get updateJSDocNamepathType(){return S(319)},createJSDocFunctionType:sn,updateJSDocFunctionType:(e,t,r)=>e.parameters!==t||e.type!==r?_(sn(t,r),e):e,createJSDocTypeLiteral:cn,updateJSDocTypeLiteral:(e,t,r)=>e.jsDocPropertyTags!==t||e.isArrayType!==r?_(cn(t,r),e):e,createJSDocTypeExpression:ln,updateJSDocTypeExpression:(e,t)=>e.type!==t?_(ln(t),e):e,createJSDocSignature:un,updateJSDocSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?_(un(t,r,n),e):e,createJSDocTemplateTag:_n,updateJSDocTemplateTag:(e,t,r,n,i)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?_(_n(t,r,n,i),e):e),createJSDocTypedefTag:fn,updateJSDocTypedefTag:(e,t,r,n,i)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(fn(t,r,n,i),e):e),createJSDocParameterTag:mn,updateJSDocParameterTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(mn(t,r,n,i,a,o),e):e),createJSDocPropertyTag:gn,updateJSDocPropertyTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(gn(t,r,n,i,a,o),e):e),createJSDocCallbackTag:hn,updateJSDocCallbackTag:(e,t,r,n,i)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(hn(t,r,n,i),e):e),createJSDocAugmentsTag:yn,updateJSDocAugmentsTag:(e,t,r,n)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(yn(t,r,n),e):e),createJSDocImplementsTag:vn,updateJSDocImplementsTag:(e,t,r,n)=>(void 0===t&&(t=dn(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(vn(t,r,n),e):e),createJSDocSeeTag:bn,updateJSDocSeeTag:(e,t,r,n)=>e.tagName!==t||e.name!==r||e.comment!==n?_(bn(t,r,n),e):e,createJSDocNameReference:xn,updateJSDocNameReference:(e,t)=>e.name!==t?_(xn(t),e):e,createJSDocMemberName:En,updateJSDocMemberName:(e,t,r)=>e.left!==t||e.right!==r?_(En(t,r),e):e,createJSDocLink:Sn,updateJSDocLink:(e,t,r)=>e.name!==t?_(Sn(t,r),e):e,createJSDocLinkCode:Dn,updateJSDocLinkCode:(e,t,r)=>e.name!==t?_(Dn(t,r),e):e,createJSDocLinkPlain:Tn,updateJSDocLinkPlain:(e,t,r)=>e.name!==t?_(Tn(t,r),e):e,get createJSDocTypeTag(){return A(343)},get updateJSDocTypeTag(){return N(343)},get createJSDocReturnTag(){return A(341)},get updateJSDocReturnTag(){return N(341)},get createJSDocThisTag(){return A(342)},get updateJSDocThisTag(){return N(342)},get createJSDocEnumTag(){return A(339)},get updateJSDocEnumTag(){return N(339)},get createJSDocAuthorTag(){return C(330)},get updateJSDocAuthorTag(){return k(330)},get createJSDocClassTag(){return C(332)},get updateJSDocClassTag(){return k(332)},get createJSDocPublicTag(){return C(333)},get updateJSDocPublicTag(){return k(333)},get createJSDocPrivateTag(){return C(334)},get updateJSDocPrivateTag(){return k(334)},get createJSDocProtectedTag(){return C(335)},get updateJSDocProtectedTag(){return k(335)},get createJSDocReadonlyTag(){return C(336)},get updateJSDocReadonlyTag(){return k(336)},get createJSDocOverrideTag(){return C(337)},get updateJSDocOverrideTag(){return k(337)},get createJSDocDeprecatedTag(){return C(331)},get updateJSDocDeprecatedTag(){return k(331)},createJSDocUnknownTag:An,updateJSDocUnknownTag:(e,t,r)=>e.tagName!==t||e.comment!==r?_(An(t,r),e):e,createJSDocText:Nn,updateJSDocText:(e,t)=>e.text!==t?_(Nn(t),e):e,createJSDocComment:wn,updateJSDocComment:(e,t,r)=>e.comment!==t||e.tags!==r?_(wn(t,r),e):e,createJsxElement:Fn,updateJsxElement:(e,t,r,n)=>e.openingElement!==t||e.children!==r||e.closingElement!==n?_(Fn(t,r,n),e):e,createJsxSelfClosingElement:Pn,updateJsxSelfClosingElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(Pn(t,r,n),e):e,createJsxOpeningElement:In,updateJsxOpeningElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(In(t,r,n),e):e,createJsxClosingElement:On,updateJsxClosingElement:(e,t)=>e.tagName!==t?_(On(t),e):e,createJsxFragment:Mn,createJsxText:Rn,updateJsxText:(e,t,r)=>e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?_(Rn(t,r),e):e,createJsxOpeningFragment(){var e=P(283);return e.transformFlags|=2,e},createJsxJsxClosingFragment(){var e=P(284);return e.transformFlags|=2,e},updateJsxFragment:(e,t,r,n)=>e.openingFragment!==t||e.children!==r||e.closingFragment!==n?_(Mn(t,r,n),e):e,createJsxAttribute:Ln,updateJsxAttribute:(e,t,r)=>e.name!==t||e.initializer!==r?_(Ln(t,r),e):e,createJsxAttributes:Bn,updateJsxAttributes:(e,t)=>e.properties!==t?_(Bn(t),e):e,createJsxSpreadAttribute:jn,updateJsxSpreadAttribute:(e,t)=>e.expression!==t?_(jn(t),e):e,createJsxExpression:Un,updateJsxExpression:(e,t)=>e.expression!==t?_(Un(e.dotDotDotToken,t),e):e,createCaseClause:Vn,updateCaseClause:(e,t,r)=>e.expression!==t||e.statements!==r?_(Vn(t,r),e):e,createDefaultClause:Kn,updateDefaultClause:(e,t)=>e.statements!==t?_(Kn(t),e):e,createHeritageClause:zn,updateHeritageClause:(e,t)=>e.types!==t?_(zn(e.token,t),e):e,createCatchClause:Wn,updateCatchClause:(e,t,r)=>e.variableDeclaration!==t||e.block!==r?_(Wn(t,r),e):e,createPropertyAssignment:Jn,updatePropertyAssignment(e,t,r){return e.name!==t||e.initializer!==r?(n=Jn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createShorthandPropertyAssignment:Hn,updateShorthandPropertyAssignment(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?(n=Hn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.equalsToken&&(n.equalsToken=i.equalsToken),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createSpreadAssignment:$n,updateSpreadAssignment:(e,t)=>e.expression!==t?_($n(t),e):e,createEnumMember:Gn,updateEnumMember:(e,t,r)=>e.name!==t||e.initializer!==r?_(Gn(t,r),e):e,createSourceFile(e,t,r){var n=i.createBaseSourceFileNode(305);return n.statements=F(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=d(n.statements)|u(n.endOfFileToken),n},updateSourceFile:(t,r,n,a,o,s,c)=>(void 0===n&&(n=t.isDeclarationFile),void 0===a&&(a=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==a||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?_(((t,r,n,a,o,s,c)=>{var l=t.redirectInfo?Object.create(t.redirectInfo.redirectTarget):i.createBaseSourceFileNode(305);for(var p in t)"emitNode"!==p&&!e.hasProperty(l,p)&&e.hasProperty(t,p)&&(l[p]=t[p]);return l.flags|=t.flags,l.statements=F(r),l.endOfFileToken=t.endOfFileToken,l.isDeclarationFile=n,l.referencedFiles=a,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=d(l.statements)|u(l.endOfFileToken),l.impliedNodeFormat=t.impliedNodeFormat,l})(t,r,n,a,o,s,c),t):t),createBundle:qn,updateBundle:(t,r,n)=>(void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?_(qn(r,n),t):t),createUnparsedSource(t,r,n){var i=P(307);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=t=>e.getLineAndCharacterOfPosition(i,t),i},createUnparsedPrologue:e=>Xn(300,e),createUnparsedPrepend(e,t){var r=Xn(301,e);return r.texts=t,r},createUnparsedTextLike:(e,t)=>Xn(t?303:302,e),createUnparsedSyntheticReference(e){var t=P(304);return t.data=e.data,t.section=e,t},createInputFiles(){var e=P(308);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression(e,t,r){void 0===t&&(t=!1);var n=P(232);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList(e){var t=P(348);return t._children=e,t},createNotEmittedStatement(t){var r=P(349);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Yn,updatePartiallyEmittedExpression:Qn,createCommaListExpression:ei,updateCommaListExpression:(e,t)=>e.elements!==t?_(ei(t),e):e,createEndOfDeclarationMarker(e){var t=P(353);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker(e){var t=P(352);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:ti,updateSyntheticReferenceExpression:(e,t,r)=>e.expression!==t||e.thisArg!==r?_(ti(t,r),e):e,cloneNode:ri,get createComma(){return h(27)},get createAssignment(){return h(63)},get createLogicalOr(){return h(56)},get createLogicalAnd(){return h(55)},get createBitwiseOr(){return h(51)},get createBitwiseXor(){return h(52)},get createBitwiseAnd(){return h(50)},get createStrictEquality(){return h(36)},get createStrictInequality(){return h(37)},get createEquality(){return h(34)},get createInequality(){return h(35)},get createLessThan(){return h(29)},get createLessThanEquals(){return h(32)},get createGreaterThan(){return h(31)},get createGreaterThanEquals(){return h(33)},get createLeftShift(){return h(47)},get createRightShift(){return h(48)},get createUnsignedRightShift(){return h(49)},get createAdd(){return h(39)},get createSubtract(){return h(40)},get createMultiply(){return h(41)},get createDivide(){return h(43)},get createModulo(){return h(44)},get createExponent(){return h(42)},get createPrefixPlus(){return y(39)},get createPrefixMinus(){return y(40)},get createPrefixIncrement(){return y(45)},get createPrefixDecrement(){return y(46)},get createBitwiseNot(){return y(54)},get createLogicalNot(){return y(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:(e,t,r)=>yt(kt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rr(e,!0)),void 0,r?[r]:[]),createImmediatelyInvokedArrowFunction:(e,t,r)=>yt(Nt(void 0,void 0,t?[t]:[],void 0,void 0,rr(e,!0)),void 0,r?[r]:[]),createVoidZero:ni,createExportDefault:e=>Yr(void 0,void 0,!1,e),createExternalModuleExport:e=>Zr(void 0,void 0,!1,tn([rn(!1,void 0,e)])),createTypeCheck:(e,t)=>"undefined"===t?w.createStrictEquality(e,ni()):w.createStrictEquality(Pt(e),G(t)),createMethodCall:ii,createGlobalMethodCall:ai,createFunctionBindCall:(e,t,r)=>ii(e,"bind",f([t],r,!0)),createFunctionCallCall:(e,t,r)=>ii(e,"call",f([t],r,!0)),createFunctionApplyCall:(e,t,r)=>ii(e,"apply",[t,r]),createArraySliceCall:(e,t)=>ii(e,"slice",void 0===t?[]:[hi(t)]),createArrayConcatCall:(e,t)=>ii(e,"concat",t),createObjectDefinePropertyCall:(e,t,r)=>ai("Object","defineProperty",[e,hi(t),r]),createReflectGetCall:(e,t,r)=>ai("Reflect","get",r?[e,t,r]:[e,t]),createReflectSetCall:(e,t,r,n)=>ai("Reflect","set",n?[e,t,r,n]:[e,t,r]),createPropertyDescriptor(t,r){var n=[];oi(n,"enumerable",hi(t.enumerable)),oi(n,"configurable",hi(t.configurable));var i=oi(n,"writable",hi(t.writable));i=oi(n,"value",t.value)||i;var a=oi(n,"get",t.get);return a=oi(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),dt(n,!r)},createCallBinding(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=ne(),o=s):e.isSuperKeyword(s)?(a=ne(),o=void 0!==n&&n<2?e.setTextRange(Q("_super"),s):s):4096&e.getEmitFlags(s)?(a=ni(),o=m().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?si(s.expression,i)?(a=Z(r),o=pt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?si(s.expression,i)?(a=Z(r),o=mt(e.setTextRange(w.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=ni(),o=m().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},createAssignmentTargetWrapper:(e,t)=>pt(Tt(dt([ke(void 0,void 0,"value",[de(void 0,void 0,void 0,e,void 0,void 0,void 0)],rr([or(t)]))])),"value"),inlineExpressions:t=>t.length>10?ei(t):e.reduceLeft(t,w.createComma),getInternalName:(e,t,r)=>ci(e,t,r,49152),getLocalName:(e,t,r)=>ci(e,t,r,16384),getExportName:li,getDeclarationName:(e,t,r)=>ci(e,t,r),getNamespaceMemberName:ui,getExternalModuleOrNamespaceExportName:(t,r,n,i)=>t&&e.hasSyntacticModifier(r,1)?ui(t,ci(r),n,i):li(r,n,i),restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?((e,t)=>{switch(e.kind){case 212:return Ct(e,t);case 211:return Dt(e,e.type,t);case 229:return qt(e,t,e.type);case 230:return Yt(e,t);case 350:return Qn(e,t)}})(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=vr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:di,copyPrologue:(e,t,r,n)=>_i(e,t,pi(e,t,0,r),n),copyStandardPrologue:pi,copyCustomPrologue:_i,ensureUseStrict:t=>e.findUseStrictPrologue(t)?t:e.setTextRange(F(f([di()],t,!0)),t),liftToBlock:t=>(e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||rr(t)),mergeLexicalEnvironment(t,r){if(!e.some(r))return t;var n=fi(t,e.isPrologueDirective,0),i=fi(t,e.isHoistedFunction,n),a=fi(t,e.isHoistedVariableStatement,i),o=fi(r,e.isPrologueDirective,0),s=fi(r,e.isHoistedFunction,o),c=fi(r,e.isHoistedVariableStatement,s),l=fi(r,e.isCustomPrologue,c);e.Debug.assert(l===r.length,"Expected declarations to be valid standard or custom prologues");var u=e.isNodeArray(t)?t.slice():t;if(l>c&&u.splice.apply(u,f([a,0],r.slice(c,l),!1)),c>s&&u.splice.apply(u,f([i,0],r.slice(s,c),!1)),s>o&&u.splice.apply(u,f([n,0],r.slice(o,s),!1)),o>0)if(0===n)u.splice.apply(u,f([0,0],r.slice(0,o),!1));else{for(var d=new e.Map,p=0;p<n;p++){var _=t[p];d.set(_.expression.text,!0)}for(p=o-1;p>=0;p--){var m=r[p];d.has(m.expression.text)||u.unshift(m)}}return e.isNodeArray(t)?e.setTextRange(F(u,t.hasTrailingComma),t):t},updateModifiers(t,r){var n,i;return i="number"==typeof r?se(r):r,e.isParameter(t)?pe(t,t.decorators,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?me(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?he(t,t.decorators,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ve(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?xe(t,t.decorators,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?De(t,t.decorators,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ce(t,t.decorators,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ae(t,t.decorators,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Pe(t,t.decorators,i,t.parameters,t.type):e.isFunctionExpression(t)?At(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?wt(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Ht(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?ir(t,i,t.declarationList):e.isFunctionDeclaration(t)?Tr(t,t.decorators,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?kr(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Nr(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Fr(t,t.decorators,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Ir(t,t.decorators,i,t.name,t.members):e.isModuleDeclaration(t)?Mr(t,t.decorators,i,t.name,t.body):e.isImportEqualsDeclaration(t)?Ur(t,t.decorators,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Kr(t,t.decorators,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?Qr(t,t.decorators,i,t.expression):e.isExportDeclaration(t)?en(t,t.decorators,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return w;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function P(e){return i.createBaseNode(e)}function I(e,t,r){var n=P(e);return n.decorators=mi(t),n.modifiers=mi(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function O(t,r,n,i){var a=I(t,r,n);if(i=gi(i),a.name=i,i)switch(a.kind){case 169:case 172:case 173:case 167:case 296:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=u(i)}return a}function M(e,t,r,n,i){var a=O(e,t,r,n);return a.typeParameters=mi(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function R(e,t,r,n,i,a,o){var s=M(e,t,r,n,i);return s.parameters=F(a),s.type=o,s.transformFlags|=d(s.parameters)|u(s.type),o&&(s.transformFlags|=1),s}function L(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),_(e,t)}function B(e,t,r,n,i,a,o,s){var c=R(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&u(c.body),s||(c.transformFlags|=1),c}function j(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),L(e,t)}function U(e,t,r,n,i,a){var o=M(e,t,r,n,i);return o.heritageClauses=mi(a),o.transformFlags|=d(o.heritageClauses),o}function V(e,t,r,n,i,a,o){var s=U(e,t,r,n,i,a);return s.members=F(o),s.transformFlags|=d(s.members),s}function K(e,t,r,n,i){var a=O(e,t,r,n);return a.initializer=i,a.transformFlags|=u(a.initializer),a}function z(e,t,r,n,i,a){var o=K(e,t,r,n,a);return o.type=i,o.transformFlags|=u(i),i&&(o.transformFlags|=1),o}function W(e,t){var r=te(e);return r.text=t,r}function J(e,t){void 0===t&&(t=0);var r=W(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function H(t){var r=W(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function $(e,t){var r=W(10,e);return r.singleQuote=t,r}function G(e,t,r){var n=$(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function q(e){return W(13,e)}function X(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=i.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Y(e,t){var r=X(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function Q(e,t,r){var n=X(e,r);return t&&(n.typeArguments=F(t)),132===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function Z(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function ee(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Y(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function te(e){return i.createBaseTokenNode(e)}function re(t){e.Debug.assert(t>=0&&t<=160,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=te(t),n=0;switch(t){case 131:n=384;break;case 123:case 121:case 122:case 145:case 126:case 135:case 85:case 130:case 147:case 158:case 143:case 148:case 101:case 144:case 159:case 150:case 133:case 151:case 114:case 155:case 153:n=1;break;case 106:n=33555456;break;case 124:n=1024;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function ne(){return re(108)}function ie(){return re(110)}function ae(){return re(95)}function oe(e){return re(e)}function se(e){var t=[];return 1&e&&t.push(oe(93)),2&e&&t.push(oe(135)),512&e&&t.push(oe(88)),2048&e&&t.push(oe(85)),4&e&&t.push(oe(123)),8&e&&t.push(oe(121)),16&e&&t.push(oe(122)),128&e&&t.push(oe(126)),32&e&&t.push(oe(124)),16384&e&&t.push(oe(159)),64&e&&t.push(oe(145)),256&e&&t.push(oe(131)),32768&e&&t.push(oe(101)),65536&e&&t.push(oe(144)),t.length?t:void 0}function ce(e,t){var r=P(161);return r.left=e,r.right=gi(t),r.transformFlags|=u(r.left)|l(r.right),r}function le(e){var t=P(162);return t.expression=m().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66560|u(t.expression),t}function ue(t,r,n,i){var a,o,s;void 0===t||e.isArray(t)?(o=t,a=r,s=n):(o=void 0,a=t,s=r);var c=O(163,void 0,o,a);return c.constraint=s,c.default=i,c.transformFlags=1,c}function de(t,r,n,i,a,o,s){var c=z(164,t,r,i,o,s&&m().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=u(c.dotDotDotToken)|u(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=1024)),c}function pe(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?_(de(t,r,n,i,a,o,s),e):e}function _e(e){var t=P(165);return t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|u(t.expression),t}function fe(e,t,r,n){var i=O(166,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function me(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?_(fe(t,r,n,i),e):e}function ge(t,r,n,i,a,o){var s=z(167,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=u(s.questionToken)|u(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function he(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?_(ge(r,n,i,a,o,s),t):t}function ye(e,t,r,n,i,a){var o=R(168,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ve(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?L(ye(t,r,n,i,a,o),e):e}function be(t,r,n,i,a,o,s,c,l){var d=B(169,t,r,i,o,s,c,l);return d.asteriskToken=n,d.questionToken=a,d.transformFlags|=u(d.asteriskToken)|u(d.questionToken)|1024,a&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=n?128:256:n&&(d.transformFlags|=2048),d}function xe(e,t,r,n,i,a,o,s,c,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?j(be(t,r,n,i,a,o,s,c,l),e):e}function Ee(e,t,r){var n=M(170,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|u(r),n}function Se(e,t,r,n){var i=B(171,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=1024,i}function De(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?j(Se(t,r,n,i),e):e}function Te(e,t,r,n,i,a){return B(172,e,t,r,void 0,n,i,a)}function Ce(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?j(Te(t,r,n,i,a,o),e):e}function ke(e,t,r,n,i){return B(173,e,t,r,void 0,n,void 0,i)}function Ae(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?j(ke(t,r,n,i,a),e):e}function Ne(e,t,r){var n=R(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function we(e,t,r){var n=R(175,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Fe(e,t,r,n){var i=R(176,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Pe(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?L(Fe(t,r,n,i),e):e}function Ie(e,t){var r=P(199);return r.type=e,r.literal=t,r.transformFlags=1,r}function Oe(e,t,r){var n=P(177);return n.assertsModifier=e,n.parameterName=gi(t),n.type=r,n.transformFlags=1,n}function Me(e,t){var r=P(178);return r.typeName=gi(e),r.typeArguments=t&&m().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function Re(e,t,r){var n=R(179,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Le(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?Be.apply(void 0,t):3===t.length?je.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function Be(e,t,r,n){var i=R(180,void 0,e,void 0,t,r,n);return i.transformFlags=1,i}function je(e,t,r){return Be(void 0,e,t,r)}function Ue(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?L(Le(t,r,n,i),e):e}function Ve(e,t,r,n){return Ue(e,e.modifiers,t,r,n)}function Ke(e,t){var r=P(181);return r.exprName=e,r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags=1,r}function ze(e){var t=P(182);return t.members=F(e),t.transformFlags=1,t}function We(e){var t=P(183);return t.elementType=m().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Je(e){var t=P(184);return t.elements=F(m().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function He(e,t,r,n){var i=P(197);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function $e(e){var t=P(185);return t.type=m().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Ge(e){var t=P(186);return t.type=e,t.transformFlags=1,t}function qe(e,t,r){var n=P(e);return n.types=w.createNodeArray(r(t)),n.transformFlags=1,n}function Xe(e,t,r){return e.types!==t?_(qe(e.kind,t,r),e):e}function Ye(e,t,r,n){var i=P(189);return i.checkType=m().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=m().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Qe(e){var t=P(190);return t.typeParameter=e,t.transformFlags=1,t}function Ze(e,t){var r=P(198);return r.head=e,r.templateSpans=F(t),r.transformFlags=1,r}function et(t,r,n,i,a){var o=r&&295===r.kind?r:void 0,s=r&&e.isEntityName(r)?r:n&&!e.isArray(n)?n:void 0,c=e.isArray(n)?n:e.isArray(i)?i:void 0;a="boolean"==typeof i?i:"boolean"==typeof a&&a;var l=P(200);return l.argument=t,l.assertions=o,l.qualifier=s,l.typeArguments=c&&m().parenthesizeTypeArguments(c),l.isTypeOf=a,l.transformFlags=1,l}function tt(e){var t=P(191);return t.type=e,t.transformFlags=1,t}function rt(e,t){var r=P(193);return r.operator=e,r.type=145===e?m().parenthesizeOperandOfReadonlyTypeOperator(t):m().parenthesizeOperandOfTypeOperator(t),r.transformFlags=1,r}function nt(e,t){var r=P(194);return r.objectType=m().parenthesizeNonArrayTypeOfPostfixType(e),r.indexType=t,r.transformFlags=1,r}function it(e,t,r,n,i,a){var o=P(195);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&F(a),o.transformFlags=1,o}function at(e){var t=P(196);return t.literal=e,t.transformFlags=1,t}function ot(e){var t=P(201);return t.elements=F(e),t.transformFlags|=263168|d(t.elements),16384&t.transformFlags&&(t.transformFlags|=32896),t}function st(e){var t=P(202);return t.elements=F(e),t.transformFlags|=263168|d(t.elements),t}function ct(t,r,n,i){var a=K(203,void 0,void 0,n,i&&m().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=gi(r),a.dotDotDotToken=t,a.transformFlags|=1024|u(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?l(a.propertyName):u(a.propertyName)),t&&(a.transformFlags|=16384),a}function lt(e){return P(e)}function ut(t,r){var n=lt(204),i=t&&e.lastOrUndefined(t),a=F(t,!(!i||!e.isOmittedExpression(i))||void 0);return n.elements=m().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=r,n.transformFlags|=d(n.elements),n}function dt(e,t){var r=lt(205);return r.properties=F(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function pt(t,r){var n=lt(206);return n.expression=m().parenthesizeLeftSideOfAccess(t),n.name=gi(r),n.transformFlags=u(n.expression)|(e.isIdentifier(n.name)?l(n.name):u(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function _t(t,r,n){var i=lt(206);return i.flags|=32,i.expression=m().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=gi(n),i.transformFlags|=32|u(i.expression)|u(i.questionDotToken)|(e.isIdentifier(i.name)?l(i.name):u(i.name)),i}function ft(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?_(_t(r,n,i),t):t}function mt(t,r){var n=lt(207);return n.expression=m().parenthesizeLeftSideOfAccess(t),n.argumentExpression=hi(r),n.transformFlags|=u(n.expression)|u(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function gt(e,t,r){var n=lt(207);return n.flags|=32,n.expression=m().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=hi(r),n.transformFlags|=u(n.expression)|u(n.questionDotToken)|u(n.argumentExpression)|32,n}function ht(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?_(gt(r,n,i),t):t}function yt(t,r,n){var i=lt(208);return i.expression=m().parenthesizeLeftSideOfAccess(t),i.typeArguments=mi(r),i.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(F(n)),i.transformFlags|=u(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=4194304:e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function vt(t,r,n,i){var a=lt(208);return a.flags|=32,a.expression=m().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=mi(n),a.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(F(i)),a.transformFlags|=u(a.expression)|u(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|32,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function bt(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?_(vt(r,n,i,a),t):t}function xt(e,t,r){var n=lt(209);return n.expression=m().parenthesizeExpressionOfNew(e),n.typeArguments=mi(t),n.arguments=r?m().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=u(n.expression)|d(n.typeArguments)|d(n.arguments)|32,n.typeArguments&&(n.transformFlags|=1),n}function Et(t,r,n){var i=lt(210);return i.tag=m().parenthesizeLeftSideOfAccess(t),i.typeArguments=mi(r),i.template=n,i.transformFlags|=u(i.tag)|d(i.typeArguments)|u(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=128),i}function St(e,t){var r=lt(211);return r.expression=m().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function Dt(e,t,r){return e.type!==t||e.expression!==r?_(St(t,r),e):e}function Tt(e){var t=lt(212);return t.expression=e,t.transformFlags=u(t.expression),t}function Ct(e,t){return e.expression!==t?_(Tt(t),e):e}function kt(t,r,n,i,a,o,s){var c=B(213,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=u(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=128:c.transformFlags|=256:c.asteriskToken&&(c.transformFlags|=2048),c}function At(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?j(kt(t,r,n,i,a,o,s),e):e}function Nt(t,r,n,i,a,o){var s=B(214,void 0,t,void 0,r,n,i,m().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:re(38),s.transformFlags|=1024|u(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8448),s}function wt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?j(Nt(t,r,n,i,a,o),e):e}function Ft(e){var t=lt(215);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Pt(e){var t=lt(216);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function It(e){var t=lt(217);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Ot(e){var t=lt(218);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=1048960|u(t.expression),t}function Mt(t,r){var n=lt(219);return n.operator=t,n.operand=m().parenthesizeOperandOfPrefixUnary(r),n.transformFlags|=u(n.operand),45!==t&&46!==t||!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Rt(t,r){var n=lt(220);return n.operator=r,n.operand=m().parenthesizeOperandOfPostfixUnary(t),n.transformFlags|=u(n.operand),!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Lt(t,r,n){var i,a=lt(221),o="number"==typeof(i=r)?re(i):i,s=o.kind;return a.left=m().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=m().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=u(a.left)|u(a.operatorToken)|u(a.right),60===s?a.transformFlags|=32:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=5248|Bt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=5120|Bt(a.left)):42===s||67===s?a.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=16),a}function Bt(t){if(32768&t.transformFlags)return 32768;if(128&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(32768&a.transformFlags)return 32768;if(128&a.transformFlags){var o=Bt(a);if(o)return o}}}return 0}function jt(e,t,r,n,i){var a=lt(222);return a.condition=m().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:re(57),a.whenTrue=m().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:re(58),a.whenFalse=m().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=u(a.condition)|u(a.questionToken)|u(a.whenTrue)|u(a.colonToken)|u(a.whenFalse),a}function Ut(e,t){var r=lt(223);return r.head=e,r.templateSpans=F(t),r.transformFlags|=u(r.head)|d(r.templateSpans)|1024,r}function Vt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&"object"==typeof(o=((r,n)=>{switch(t||(t=e.createScanner(99,!1,0)),r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();if(19===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),c;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),c):(t.setText(void 0),i)})(r,i)))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Kt(r,n,i,a)}function Kt(e,t,r,n){var i=te(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=1024,i.templateFlags&&(i.transformFlags|=128),i}function zt(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=lt(224);return n.expression=r&&m().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=u(n.expression)|u(n.asteriskToken)|525440,n}function Wt(e){var t=lt(225);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=17408|u(t.expression),t}function Jt(e,t,r,n,i,a){var o=V(226,e,t,r,n,i,a);return o.transformFlags|=1024,o}function Ht(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(Jt(t,r,n,i,a,o),e):e}function $t(e,t){var r=P(228);return r.expression=m().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags|=u(r.expression)|d(r.typeArguments)|1024,r}function Gt(e,t){var r=lt(229);return r.expression=e,r.type=t,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function qt(e,t,r){return e.expression!==t||e.type!==r?_(Gt(t,r),e):e}function Xt(e){var t=lt(230);return t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Yt(t,r){return e.isNonNullChain(t)?Zt(t,r):t.expression!==r?_(Xt(r),t):t}function Qt(e){var t=lt(230);return t.flags|=32,t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Zt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?_(Qt(r),t):t}function er(t,r){var n=lt(231);switch(n.keywordToken=t,n.name=r,n.transformFlags|=u(n.name),t){case 103:n.transformFlags|=1024;break;case 100:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function tr(e,t){var r=P(233);return r.expression=e,r.literal=t,r.transformFlags|=u(r.expression)|u(r.literal)|1024,r}function rr(e,t){var r=P(235);return r.statements=F(e),r.multiLine=t,r.transformFlags|=d(r.statements),r}function nr(t,r){var n=I(237,void 0,t);return n.declarationList=e.isArray(r)?Sr(r):r,n.transformFlags|=u(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function ir(e,t,r){return e.modifiers!==t||e.declarationList!==r?_(nr(t,r),e):e}function ar(){return P(236)}function or(e){var t=P(238);return t.expression=m().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=u(t.expression),t}function sr(e,t,r){var n=P(239);return n.expression=e,n.thenStatement=yi(t),n.elseStatement=yi(r),n.transformFlags|=u(n.expression)|u(n.thenStatement)|u(n.elseStatement),n}function cr(e,t){var r=P(240);return r.statement=yi(e),r.expression=t,r.transformFlags|=u(r.statement)|u(r.expression),r}function lr(e,t){var r=P(241);return r.expression=e,r.statement=yi(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function ur(e,t,r,n){var i=P(242);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=yi(n),i.transformFlags|=u(i.initializer)|u(i.condition)|u(i.incrementor)|u(i.statement),i}function dr(e,t,r){var n=P(243);return n.initializer=e,n.expression=t,n.statement=yi(r),n.transformFlags|=u(n.initializer)|u(n.expression)|u(n.statement),n}function pr(e,t,r,n){var i=P(244);return i.awaitModifier=e,i.initializer=t,i.expression=m().parenthesizeExpressionForDisallowedComma(r),i.statement=yi(n),i.transformFlags|=u(i.awaitModifier)|u(i.initializer)|u(i.expression)|u(i.statement)|1024,e&&(i.transformFlags|=128),i}function _r(e){var t=P(245);return t.label=gi(e),t.transformFlags|=2097152|u(t.label),t}function fr(e){var t=P(246);return t.label=gi(e),t.transformFlags|=2097152|u(t.label),t}function mr(e){var t=P(247);return t.expression=e,t.transformFlags|=2097280|u(t.expression),t}function gr(e,t){var r=P(248);return r.expression=e,r.statement=yi(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function hr(e,t){var r=P(249);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=u(r.expression)|u(r.caseBlock),r}function yr(e,t){var r=P(250);return r.label=gi(e),r.statement=yi(t),r.transformFlags|=u(r.label)|u(r.statement),r}function vr(e,t,r){return e.label!==t||e.statement!==r?_(yr(t,r),e):e}function br(e){var t=P(251);return t.expression=e,t.transformFlags|=u(t.expression),t}function xr(e,t,r){var n=P(252);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=u(n.tryBlock)|u(n.catchClause)|u(n.finallyBlock),n}function Er(e,t,r,n){var i=z(254,void 0,void 0,e,r,n&&m().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=u(i.exclamationToken),t&&(i.transformFlags|=1),i}function Sr(e,t){void 0===t&&(t=0);var r=P(255);return r.flags|=3&t,r.declarations=F(e),r.transformFlags|=2097152|d(r.declarations),3&t&&(r.transformFlags|=132096),r}function Dr(t,r,n,i,a,o,s,c){var l=B(256,t,r,i,a,o,s,c);return l.asteriskToken=n,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|u(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=128:l.transformFlags|=256:l.asteriskToken&&(l.transformFlags|=2048)),l}function Tr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?j(Dr(t,r,n,i,a,o,s,c),e):e}function Cr(t,r,n,i,a,o){var s=V(257,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=1024,4096&s.transformFlags&&(s.transformFlags|=1)),s}function kr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(Cr(t,r,n,i,a,o),e):e}function Ar(e,t,r,n,i,a){var o=U(258,e,t,r,n,i);return o.members=F(a),o.transformFlags=1,o}function Nr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(Ar(t,r,n,i,a,o),e):e}function wr(e,t,r,n,i){var a=M(259,e,t,r,n);return a.type=i,a.transformFlags=1,a}function Fr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?_(wr(t,r,n,i,a),e):e}function Pr(e,t,r,n){var i=O(260,e,t,r);return i.members=F(n),i.transformFlags|=1|d(i.members),i.transformFlags&=-16777217,i}function Ir(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?_(Pr(t,r,n,i),e):e}function Or(t,r,n,i,a){void 0===a&&(a=0);var o=I(261,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=u(o.name)|u(o.body)|1,o.transformFlags&=-16777217,o}function Mr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?_(Or(t,r,n,i,e.flags),e):e}function Rr(e){var t=P(262);return t.statements=F(e),t.transformFlags|=d(t.statements),t}function Lr(e){var t=P(263);return t.clauses=F(e),t.transformFlags|=d(t.clauses),t}function Br(e){var t=O(264,void 0,void 0,e);return t.transformFlags=1,t}function jr(t,r,n,i,a){var o=O(265,t,r,i);return o.isTypeOnly=n,o.moduleReference=a,o.transformFlags|=u(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Ur(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?_(jr(t,r,n,i,a),e):e}function Vr(e,t,r,n,i){var a=I(266,e,t);return a.importClause=r,a.moduleSpecifier=n,a.assertClause=i,a.transformFlags|=u(a.importClause)|u(a.moduleSpecifier),a.transformFlags&=-16777217,a}function Kr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i||e.assertClause!==a?_(Vr(t,r,n,i,a),e):e}function zr(e,t,r){var n=P(267);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=u(n.name)|u(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-16777217,n}function Wr(e,t){var r=P(293);return r.elements=F(e),r.multiLine=t,r.transformFlags|=4,r}function Jr(e,t){var r=P(294);return r.name=e,r.value=t,r.transformFlags|=4,r}function Hr(e,t){var r=P(295);return r.assertClause=e,r.multiLine=t,r}function $r(e){var t=P(268);return t.name=e,t.transformFlags|=u(t.name),t.transformFlags&=-16777217,t}function Gr(e){var t=P(274);return t.name=e,t.transformFlags|=4|u(t.name),t.transformFlags&=-16777217,t}function qr(e){var t=P(269);return t.elements=F(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function Xr(e,t,r){var n=P(270);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=u(n.propertyName)|u(n.name),n.transformFlags&=-16777217,n}function Yr(e,t,r,n){var i=I(271,e,t);return i.isExportEquals=r,i.expression=r?m().parenthesizeRightSideOfBinary(63,void 0,n):m().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=u(i.expression),i.transformFlags&=-16777217,i}function Qr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?_(Yr(t,r,e.isExportEquals,n),e):e}function Zr(e,t,r,n,i,a){var o=I(272,e,t);return o.isTypeOnly=r,o.exportClause=n,o.moduleSpecifier=i,o.assertClause=a,o.transformFlags|=u(o.exportClause)|u(o.moduleSpecifier),o.transformFlags&=-16777217,o}function en(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a||e.assertClause!==o?_(Zr(t,r,n,i,a,o),e):e}function tn(e){var t=P(273);return t.elements=F(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function rn(e,t,r){var n=P(275);return n.isTypeOnly=e,n.propertyName=gi(t),n.name=gi(r),n.transformFlags|=u(n.propertyName)|u(n.name),n.transformFlags&=-16777217,n}function nn(e){var t=P(277);return t.expression=e,t.transformFlags|=u(t.expression),t.transformFlags&=-16777217,t}function an(e,t,r){void 0===r&&(r=!1);var n=on(e,r?t&&m().parenthesizeNonArrayTypeOfPostfixType(t):t);return n.postfix=r,n}function on(e,t){var r=P(e);return r.type=t,r}function sn(e,t){return R(317,void 0,void 0,void 0,void 0,e,t)}function cn(e,t){void 0===t&&(t=!1);var r=P(322);return r.jsDocPropertyTags=mi(e),r.isArrayType=t,r}function ln(e){var t=P(309);return t.type=e,t}function un(e,t,r){var n=P(323);return n.typeParameters=mi(e),n.parameters=F(t),n.type=r,n}function dn(t){var r=s(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:Q(r)}function pn(e,t,r){var n=P(e);return n.tagName=t,n.comment=r,n}function _n(e,t,r,n){var i=pn(344,null!=e?e:Q("template"),n);return i.constraint=t,i.typeParameters=F(r),i}function fn(t,r,n,i){var a=pn(345,null!=t?t:Q("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function mn(e,t,r,n,i,a){var o=pn(340,null!=e?e:Q("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function gn(e,t,r,n,i,a){var o=pn(347,null!=e?e:Q("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function hn(t,r,n,i){var a=pn(338,null!=t?t:Q("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function yn(e,t,r){var n=pn(328,null!=e?e:Q("augments"),r);return n.class=t,n}function vn(e,t,r){var n=pn(329,null!=e?e:Q("implements"),r);return n.class=t,n}function bn(e,t,r){var n=pn(346,null!=e?e:Q("see"),r);return n.name=t,n}function xn(e){var t=P(310);return t.name=e,t}function En(e,t){var r=P(311);return r.left=e,r.right=t,r.transformFlags|=u(r.left)|u(r.right),r}function Sn(e,t){var r=P(324);return r.name=e,r.text=t,r}function Dn(e,t){var r=P(325);return r.name=e,r.text=t,r}function Tn(e,t){var r=P(326);return r.name=e,r.text=t,r}function Cn(e,t,r){return pn(e,null!=t?t:Q(s(e)),r)}function kn(e,t,r,n){var i=pn(e,null!=t?t:Q(s(e)),n);return i.typeExpression=r,i}function An(e,t){return pn(327,e,t)}function Nn(e){var t=P(321);return t.text=e,t}function wn(e,t){var r=P(320);return r.comment=e,r.tags=mi(t),r}function Fn(e,t,r){var n=P(278);return n.openingElement=e,n.children=F(t),n.closingElement=r,n.transformFlags|=u(n.openingElement)|d(n.children)|u(n.closingElement)|2,n}function Pn(e,t,r){var n=P(279);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=u(n.tagName)|d(n.typeArguments)|u(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function In(e,t,r){var n=P(280);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=u(n.tagName)|d(n.typeArguments)|u(n.attributes)|2,t&&(n.transformFlags|=1),n}function On(e){var t=P(281);return t.tagName=e,t.transformFlags|=2|u(t.tagName),t}function Mn(e,t,r){var n=P(282);return n.openingFragment=e,n.children=F(t),n.closingFragment=r,n.transformFlags|=u(n.openingFragment)|d(n.children)|u(n.closingFragment)|2,n}function Rn(e,t){var r=P(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Ln(e,t){var r=P(285);return r.name=e,r.initializer=t,r.transformFlags|=u(r.name)|u(r.initializer)|2,r}function Bn(e){var t=P(286);return t.properties=F(e),t.transformFlags|=2|d(t.properties),t}function jn(e){var t=P(287);return t.expression=e,t.transformFlags|=2|u(t.expression),t}function Un(e,t){var r=P(288);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=u(r.dotDotDotToken)|u(r.expression)|2,r}function Vn(e,t){var r=P(289);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.statements=F(t),r.transformFlags|=u(r.expression)|d(r.statements),r}function Kn(e){var t=P(290);return t.statements=F(e),t.transformFlags=d(t.statements),t}function zn(t,r){var n=P(291);switch(n.token=t,n.types=F(r),n.transformFlags|=d(n.types),t){case 94:n.transformFlags|=1024;break;case 117:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Wn(t,r){var n=P(292);return("string"==typeof t||t&&!e.isVariableDeclaration(t))&&(t=Er(t,void 0,void 0,void 0)),n.variableDeclaration=t,n.block=r,n.transformFlags|=u(n.variableDeclaration)|u(n.block),t||(n.transformFlags|=64),n}function Jn(e,t){var r=O(296,void 0,void 0,e);return r.initializer=m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer),r}function Hn(e,t){var r=O(297,void 0,void 0,e);return r.objectAssignmentInitializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=1024|u(r.objectAssignmentInitializer),r}function $n(e){var t=P(298);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=32896|u(t.expression),t}function Gn(e,t){var r=P(299);return r.name=gi(e),r.initializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer)|1,r}function qn(t,r){void 0===r&&(r=e.emptyArray);var n=P(306);return n.prepends=r,n.sourceFiles=t,n}function Xn(e,t){var r=P(e);return r.data=t,r}function Yn(t,r){var n=P(350);return n.expression=t,n.original=r,n.transformFlags|=1|u(n.expression),e.setTextRange(n,r),n}function Qn(e,t){return e.expression!==t?_(Yn(t,e.original),e):e}function Zn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function ei(t){var r=P(351);return r.elements=F(e.sameFlatMap(t,Zn)),r.transformFlags|=d(r.elements),r}function ti(e,t){var r=P(354);return r.expression=e,r.thisArg=t,r.transformFlags|=u(r.expression)|u(r.thisArg),r}function ri(t){if(void 0===t)return t;var r=e.isSourceFile(t)?i.createBaseSourceFileNode(305):e.isIdentifier(t)?i.createBaseIdentifierNode(79):e.isPrivateIdentifier(t)?i.createBasePrivateIdentifierNode(80):e.isNodeKind(t.kind)?i.createBaseNode(t.kind):i.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,v(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function ni(){return It(J("0"))}function ii(t,r,n){return e.isCallChain(t)?vt(_t(t,void 0,r),void 0,void 0,n):yt(pt(t,r),void 0,n)}function ai(e,t,r){return ii(Q(e),t,r)}function oi(e,t,r){return!!r&&(e.push(Jn(t,r)),!0)}function si(t,r){var n=e.skipParentheses(t);switch(n.kind){case 79:return r;case 108:case 8:case 9:case 10:return!1;case 204:return 0!==n.elements.length;case 205:return n.properties.length>0;default:return!0}}function ci(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(ri(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return ee(t)}function li(e,t,r){return ci(e,t,r,8192)}function ui(t,r,n,i){var a=pt(t,e.nodeIsSynthesized(r)?r:ri(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function di(){return e.startOnNewLine(or(G("use strict")))}function pi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n<s;){var c=t[n];if(!e.isPrologueDirective(c))break;a=c,e.isStringLiteral(a.expression)&&"use strict"===a.expression.text&&(o=!0),r.push(c),n++}return i&&!o&&r.push(di()),n}function _i(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function fi(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function mi(e){return e?F(e):void 0}function gi(e){return"string"==typeof e?Q(e):e}function hi(e){return"string"==typeof e?G(e):"number"==typeof e?J(e):"boolean"==typeof e?e?ie():ae():e}function yi(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(v(ar(),t),t):t}}function a(t,r){return t!==r&&e.setTextRange(t,r),t}function o(t,r){return t!==r&&(v(t,r),e.setTextRange(t,r)),t}function s(t){switch(t){case 343:return"type";case 341:return"returns";case 342:return"this";case 339:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 344:return"template";case 345:return"typedef";case 340:return"param";case 347:return"prop";case 338:return"callback";case 328:return"augments";case 329:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(t)))}}(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[r.None=0]="None",r[r.NoParenthesizerRules=1]="NoParenthesizerRules",r[r.NoNodeConverters=2]="NoNodeConverters",r[r.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",r[r.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=i;var c={};function l(e){return-16777217&u(e)}function u(t){if(!t)return 0;var r=t.transformFlags&~_(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?r|33562624&t.name.transformFlags:r}function d(e){return e?e.transformFlags:0}function p(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=u(n[r]);e.transformFlags=t}function _(e){if(e>=177&&e<=200)return-2;switch(e){case 208:case 209:case 204:return 536887296;case 261:return 589443072;case 164:return 536870912;case 214:return 557748224;case 213:case 256:return 591310848;case 255:return 537165824;case 257:case 226:return 536940544;case 171:return 591306752;case 167:return 570433536;case 169:case 172:case 173:return 574529536;case 130:case 147:case 158:case 143:case 150:case 148:case 133:case 151:case 114:case 163:case 166:case 168:case 174:case 175:case 176:case 258:case 259:return-2;case 205:return 536973312;case 292:return 536903680;case 201:case 202:return 536887296;case 211:case 229:case 350:case 212:case 106:return 536870912;case 206:case 207:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=_;var m=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var h,y={createBaseSourceFileNode:e=>g(m.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>g(m.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>g(m.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>g(m.createBaseTokenNode(e)),createBaseNode:e=>g(m.createBaseNode(e))};function v(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=((t,r)=>{var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=((e,t)=>{for(var r in t||(t=[]),e)t[r]=e[r];return t})(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var p=0,_=u;p<_.length;p++){var f=_[p];r.helpers=e.appendIfUnique(r.helpers,f)}return void 0!==d&&(r.startsOnNewLine=d),r})(n,t.emitNode))}return t}e.factory=i(4,y),e.createUnparsedSourceFile=(t,r,n)=>{var i,a,o,s,c,l,u,d,p,_;e.isString(t)?(o="",s=t,c=t.length,l=r,u=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",l="js"===r?t.javascriptMapPath:t.declarationMapPath,d=()=>"js"===r?t.javascriptText:t.declarationText,p=()=>"js"===r?t.javascriptMapText:t.declarationMapText,c=()=>d().length,t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,_=t.oldFileOfCurrentEmit));var f=_?(t=>{for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(t=>e.getAllUnscopedEmitHelpers().get(t))),s})(e.Debug.checkDefined(a)):((t,r,n)=>{for(var i,a,o,s,c,l,u,d,p=0,_=t?t.sections:e.emptyArray;p<_.length;p++){var f=_[p];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.ESNext});break;case"type-require":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.CommonJS});break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var m=void 0,g=0,h=f.texts;g<h.length;g++){var y=h[g];r&&"internal"===y.kind||(m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(y.data,"internal"===y.kind),y)))}l=e.addRange(l,m),u=e.append(u,e.factory.createUnparsedPrepend(f.data,null!=m?m:e.emptyArray));break;case"internal":if(r){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!u){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof n?n():n),u=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,u);return e.setEachParent(i,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=d,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b})(a,i,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=_,d&&p?(Object.defineProperty(f,"text",{get:d}),Object.defineProperty(f,"sourceMapText",{get:p})):(e.Debug.assert(!_),f.text=null!=s?s:"",f.sourceMapText=u),f},e.createInputFiles=(t,r,n,i,a,o,s,c,l,u,d)=>{var p=e.parseNodeFactory.createInputFiles();if(e.isString(t))p.javascriptText=t,p.javascriptMapPath=n,p.javascriptMapText=i,p.declarationText=r,p.declarationMapPath=a,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=u,p.oldFileOfCurrentEmit=d;else{var _,f=new e.Map,m=e=>{if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},g=e=>{var t=m(e);return void 0!==t?t:"/* Input file ".concat(e," was missing */\r\n")};p.javascriptPath=r,p.javascriptMapPath=n,p.declarationPath=e.Debug.checkDefined(i),p.declarationMapPath=a,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:()=>g(r)},javascriptMapText:{get:()=>m(n)},declarationText:{get:()=>g(e.Debug.checkDefined(i))},declarationMapText:{get:()=>m(a)},buildInfo:{get:()=>(t=>{if(void 0===_){var r=m(o);_=void 0!==r&&e.getBuildInfo(r)}return _||void 0})()}})}return p},e.createSourceMapSource=(t,r,n)=>new(h||(h=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n),e.setOriginalNode=v})(p),(e=>{function t(r){var n;if(r.emitNode)e.Debug.assert(!(268435456&r.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(r)){if(305===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=t=>{var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=e=>{var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=(e,r)=>(t(e).flags=r,e),e.addEmitFlags=(e,r)=>{var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=(e,r)=>(t(e).sourceMapRange=r,e),e.getTokenSourceMapRange=(e,t)=>{var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=(e,r,n)=>{var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=(e,r)=>(t(e).startsOnNewLine=r,e),e.getCommentRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=(e,r)=>(t(e).commentRange=r,e),e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=(t,i,a,o)=>n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a})),e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=(t,r,n,o)=>a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n})),e.moveSyntheticComments=(e,o)=>{n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=(e,r)=>(t(e).constantValue=r,e),e.addEmitHelper=(r,n)=>{var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=(r,n)=>{if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=(t,r)=>{var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=(r,n,i)=>{var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,l=0;l<o.length;l++){var u=o[l];i(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=(e,r)=>(t(e).snippetElement=r,e),e.ignoreSourceNewlines=e=>(t(e).flags|=134217728,e),e.setTypeNode=(e,r)=>(t(e).typeNode=r,e),e.getTypeNode=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}})(p),(e=>{function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return r=>{for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+e[e.length-1]}}var r;e.createEmitHelperFactory=t=>{var r=t.factory,n=e.memoize((()=>e.setEmitFlags(r.createTrue(),268435456))),i=e.memoize((()=>e.setEmitFlags(r.createFalse(),268435456)));return{getUnscopedHelperName:a,createDecorateHelper(n,i,o,s){t.requestEmitHelper(e.decorateHelper);var c=[];return c.push(r.createArrayLiteralExpression(n,!0)),c.push(i),o&&(c.push(o),s&&c.push(s)),r.createCallExpression(a("__decorate"),void 0,c)},createMetadataHelper:(n,i)=>(t.requestEmitHelper(e.metadataHelper),r.createCallExpression(a("__metadata"),void 0,[r.createStringLiteral(n),i])),createParamHelper:(n,i,o)=>(t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(a("__param"),void 0,[r.createNumericLiteral(i+""),n]),o)),createAssignHelper:n=>e.getEmitScriptTarget(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(a("__assign"),void 0,n)),createAwaitHelper:n=>(t.requestEmitHelper(e.awaitHelper),r.createCallExpression(a("__await"),void 0,[n])),createAsyncGeneratorHelper:(n,i)=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(a("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])),createAsyncDelegatorHelper:n=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(a("__asyncDelegator"),void 0,[n])),createAsyncValuesHelper:n=>(t.requestEmitHelper(e.asyncValues),r.createCallExpression(a("__asyncValues"),void 0,[n])),createRestHelper(n,i,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<i.length-1;u++){var d=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=o[l];l++,c.push(r.createConditionalExpression(r.createTypeCheck(p,"symbol"),void 0,p,void 0,r.createAdd(p,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(d))}return r.createCallExpression(a("__rest"),void 0,[n,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper(n,i,o,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(a("__awaiter"),void 0,[n?r.createThis():r.createVoidZero(),i?r.createIdentifier("arguments"):r.createVoidZero(),o?e.createExpressionFromEntityName(r,o):r.createVoidZero(),c])},createExtendsHelper:n=>(t.requestEmitHelper(e.extendsHelper),r.createCallExpression(a("__extends"),void 0,[n,r.createUniqueName("_super",48)])),createTemplateObjectHelper:(n,i)=>(t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(a("__makeTemplateObject"),void 0,[n,i])),createSpreadArrayHelper:(o,s,c)=>(t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(a("__spreadArray"),void 0,[o,s,c?n():i()])),createValuesHelper:n=>(t.requestEmitHelper(e.valuesHelper),r.createCallExpression(a("__values"),void 0,[n])),createReadHelper:(n,i)=>(t.requestEmitHelper(e.readHelper),r.createCallExpression(a("__read"),void 0,void 0!==i?[n,r.createNumericLiteral(i+"")]:[n])),createGeneratorHelper:n=>(t.requestEmitHelper(e.generatorHelper),r.createCallExpression(a("__generator"),void 0,[r.createThis(),n])),createCreateBindingHelper:(n,i,o)=>(t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__createBinding"),void 0,f([r.createIdentifier("exports"),n,i],o?[o]:[],!0))),createImportStarHelper:n=>(t.requestEmitHelper(e.importStarHelper),r.createCallExpression(a("__importStar"),void 0,[n])),createImportStarCallbackHelper:()=>(t.requestEmitHelper(e.importStarHelper),a("__importStar")),createImportDefaultHelper:n=>(t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(a("__importDefault"),void 0,[n])),createExportStarHelper:(n,i)=>(void 0===i&&(i=r.createIdentifier("exports")),t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__exportStar"),void 0,[n,i])),createClassPrivateFieldGetHelper(n,i,o,s){var c;return t.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[n,i,r.createStringLiteral(o),s]:[n,i,r.createStringLiteral(o)],r.createCallExpression(a("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper(n,i,o,s,c){var l;return t.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[n,i,o,r.createStringLiteral(s),c]:[n,i,o,r.createStringLiteral(s)],r.createCallExpression(a("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:(n,i)=>(t.requestEmitHelper(e.classPrivateFieldInHelper),r.createCallExpression(a("__classPrivateFieldIn"),void 0,[n,i]))};function a(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=(t,r)=>t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority),e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=()=>r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(e=>e.name))),e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(g(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(g(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=(t,r)=>e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r})(p),(e=>{e.isNumericLiteral=e=>8===e.kind,e.isBigIntLiteral=e=>9===e.kind,e.isStringLiteral=e=>10===e.kind,e.isJsxText=e=>11===e.kind,e.isRegularExpressionLiteral=e=>13===e.kind,e.isNoSubstitutionTemplateLiteral=e=>14===e.kind,e.isTemplateHead=e=>15===e.kind,e.isTemplateMiddle=e=>16===e.kind,e.isTemplateTail=e=>17===e.kind,e.isDotDotDotToken=e=>25===e.kind,e.isCommaToken=e=>27===e.kind,e.isPlusToken=e=>39===e.kind,e.isMinusToken=e=>40===e.kind,e.isAsteriskToken=e=>41===e.kind,e.isExclamationToken=e=>53===e.kind,e.isQuestionToken=e=>57===e.kind,e.isColonToken=e=>58===e.kind,e.isQuestionDotToken=e=>28===e.kind,e.isEqualsGreaterThanToken=e=>38===e.kind,e.isIdentifier=e=>79===e.kind,e.isPrivateIdentifier=e=>80===e.kind,e.isExportModifier=e=>93===e.kind,e.isAsyncModifier=e=>131===e.kind,e.isAssertsKeyword=e=>128===e.kind,e.isAwaitKeyword=e=>132===e.kind,e.isReadonlyKeyword=e=>145===e.kind,e.isStaticModifier=e=>124===e.kind,e.isAbstractModifier=e=>126===e.kind,e.isSuperKeyword=e=>106===e.kind,e.isImportKeyword=e=>100===e.kind,e.isQualifiedName=e=>161===e.kind,e.isComputedPropertyName=e=>162===e.kind,e.isTypeParameterDeclaration=e=>163===e.kind,e.isParameter=e=>164===e.kind,e.isDecorator=e=>165===e.kind,e.isPropertySignature=e=>166===e.kind,e.isPropertyDeclaration=e=>167===e.kind,e.isMethodSignature=e=>168===e.kind,e.isMethodDeclaration=e=>169===e.kind,e.isClassStaticBlockDeclaration=e=>170===e.kind,e.isConstructorDeclaration=e=>171===e.kind,e.isGetAccessorDeclaration=e=>172===e.kind,e.isSetAccessorDeclaration=e=>173===e.kind,e.isCallSignatureDeclaration=e=>174===e.kind,e.isConstructSignatureDeclaration=e=>175===e.kind,e.isIndexSignatureDeclaration=e=>176===e.kind,e.isTypePredicateNode=e=>177===e.kind,e.isTypeReferenceNode=e=>178===e.kind,e.isFunctionTypeNode=e=>179===e.kind,e.isConstructorTypeNode=e=>180===e.kind,e.isTypeQueryNode=e=>181===e.kind,e.isTypeLiteralNode=e=>182===e.kind,e.isArrayTypeNode=e=>183===e.kind,e.isTupleTypeNode=e=>184===e.kind,e.isNamedTupleMember=e=>197===e.kind,e.isOptionalTypeNode=e=>185===e.kind,e.isRestTypeNode=e=>186===e.kind,e.isUnionTypeNode=e=>187===e.kind,e.isIntersectionTypeNode=e=>188===e.kind,e.isConditionalTypeNode=e=>189===e.kind,e.isInferTypeNode=e=>190===e.kind,e.isParenthesizedTypeNode=e=>191===e.kind,e.isThisTypeNode=e=>192===e.kind,e.isTypeOperatorNode=e=>193===e.kind,e.isIndexedAccessTypeNode=e=>194===e.kind,e.isMappedTypeNode=e=>195===e.kind,e.isLiteralTypeNode=e=>196===e.kind,e.isImportTypeNode=e=>200===e.kind,e.isTemplateLiteralTypeSpan=e=>199===e.kind,e.isTemplateLiteralTypeNode=e=>198===e.kind,e.isObjectBindingPattern=e=>201===e.kind,e.isArrayBindingPattern=e=>202===e.kind,e.isBindingElement=e=>203===e.kind,e.isArrayLiteralExpression=e=>204===e.kind,e.isObjectLiteralExpression=e=>205===e.kind,e.isPropertyAccessExpression=e=>206===e.kind,e.isElementAccessExpression=e=>207===e.kind,e.isCallExpression=e=>208===e.kind,e.isNewExpression=e=>209===e.kind,e.isTaggedTemplateExpression=e=>210===e.kind,e.isTypeAssertionExpression=e=>211===e.kind,e.isParenthesizedExpression=e=>212===e.kind,e.isFunctionExpression=e=>213===e.kind,e.isArrowFunction=e=>214===e.kind,e.isDeleteExpression=e=>215===e.kind,e.isTypeOfExpression=e=>216===e.kind,e.isVoidExpression=e=>217===e.kind,e.isAwaitExpression=e=>218===e.kind,e.isPrefixUnaryExpression=e=>219===e.kind,e.isPostfixUnaryExpression=e=>220===e.kind,e.isBinaryExpression=e=>221===e.kind,e.isConditionalExpression=e=>222===e.kind,e.isTemplateExpression=e=>223===e.kind,e.isYieldExpression=e=>224===e.kind,e.isSpreadElement=e=>225===e.kind,e.isClassExpression=e=>226===e.kind,e.isOmittedExpression=e=>227===e.kind,e.isExpressionWithTypeArguments=e=>228===e.kind,e.isAsExpression=e=>229===e.kind,e.isNonNullExpression=e=>230===e.kind,e.isMetaProperty=e=>231===e.kind,e.isSyntheticExpression=e=>232===e.kind,e.isPartiallyEmittedExpression=e=>350===e.kind,e.isCommaListExpression=e=>351===e.kind,e.isTemplateSpan=e=>233===e.kind,e.isSemicolonClassElement=e=>234===e.kind,e.isBlock=e=>235===e.kind,e.isVariableStatement=e=>237===e.kind,e.isEmptyStatement=e=>236===e.kind,e.isExpressionStatement=e=>238===e.kind,e.isIfStatement=e=>239===e.kind,e.isDoStatement=e=>240===e.kind,e.isWhileStatement=e=>241===e.kind,e.isForStatement=e=>242===e.kind,e.isForInStatement=e=>243===e.kind,e.isForOfStatement=e=>244===e.kind,e.isContinueStatement=e=>245===e.kind,e.isBreakStatement=e=>246===e.kind,e.isReturnStatement=e=>247===e.kind,e.isWithStatement=e=>248===e.kind,e.isSwitchStatement=e=>249===e.kind,e.isLabeledStatement=e=>250===e.kind,e.isThrowStatement=e=>251===e.kind,e.isTryStatement=e=>252===e.kind,e.isDebuggerStatement=e=>253===e.kind,e.isVariableDeclaration=e=>254===e.kind,e.isVariableDeclarationList=e=>255===e.kind,e.isFunctionDeclaration=e=>256===e.kind,e.isClassDeclaration=e=>257===e.kind,e.isInterfaceDeclaration=e=>258===e.kind,e.isTypeAliasDeclaration=e=>259===e.kind,e.isEnumDeclaration=e=>260===e.kind,e.isModuleDeclaration=e=>261===e.kind,e.isModuleBlock=e=>262===e.kind,e.isCaseBlock=e=>263===e.kind,e.isNamespaceExportDeclaration=e=>264===e.kind,e.isImportEqualsDeclaration=e=>265===e.kind,e.isImportDeclaration=e=>266===e.kind,e.isImportClause=e=>267===e.kind,e.isImportTypeAssertionContainer=e=>295===e.kind,e.isAssertClause=e=>293===e.kind,e.isAssertEntry=e=>294===e.kind,e.isNamespaceImport=e=>268===e.kind,e.isNamespaceExport=e=>274===e.kind,e.isNamedImports=e=>269===e.kind,e.isImportSpecifier=e=>270===e.kind,e.isExportAssignment=e=>271===e.kind,e.isExportDeclaration=e=>272===e.kind,e.isNamedExports=e=>273===e.kind,e.isExportSpecifier=e=>275===e.kind,e.isMissingDeclaration=e=>276===e.kind,e.isNotEmittedStatement=e=>349===e.kind,e.isSyntheticReference=e=>354===e.kind,e.isMergeDeclarationMarker=e=>352===e.kind,e.isEndOfDeclarationMarker=e=>353===e.kind,e.isExternalModuleReference=e=>277===e.kind,e.isJsxElement=e=>278===e.kind,e.isJsxSelfClosingElement=e=>279===e.kind,e.isJsxOpeningElement=e=>280===e.kind,e.isJsxClosingElement=e=>281===e.kind,e.isJsxFragment=e=>282===e.kind,e.isJsxOpeningFragment=e=>283===e.kind,e.isJsxClosingFragment=e=>284===e.kind,e.isJsxAttribute=e=>285===e.kind,e.isJsxAttributes=e=>286===e.kind,e.isJsxSpreadAttribute=e=>287===e.kind,e.isJsxExpression=e=>288===e.kind,e.isCaseClause=e=>289===e.kind,e.isDefaultClause=e=>290===e.kind,e.isHeritageClause=e=>291===e.kind,e.isCatchClause=e=>292===e.kind,e.isPropertyAssignment=e=>296===e.kind,e.isShorthandPropertyAssignment=e=>297===e.kind,e.isSpreadAssignment=e=>298===e.kind,e.isEnumMember=e=>299===e.kind,e.isUnparsedPrepend=e=>301===e.kind,e.isSourceFile=e=>305===e.kind,e.isBundle=e=>306===e.kind,e.isUnparsedSource=e=>307===e.kind,e.isJSDocTypeExpression=e=>309===e.kind,e.isJSDocNameReference=e=>310===e.kind,e.isJSDocMemberName=e=>311===e.kind,e.isJSDocLink=e=>324===e.kind,e.isJSDocLinkCode=e=>325===e.kind,e.isJSDocLinkPlain=e=>326===e.kind,e.isJSDocAllType=e=>312===e.kind,e.isJSDocUnknownType=e=>313===e.kind,e.isJSDocNullableType=e=>314===e.kind,e.isJSDocNonNullableType=e=>315===e.kind,e.isJSDocOptionalType=e=>316===e.kind,e.isJSDocFunctionType=e=>317===e.kind,e.isJSDocVariadicType=e=>318===e.kind,e.isJSDocNamepathType=e=>319===e.kind,e.isJSDoc=e=>320===e.kind,e.isJSDocTypeLiteral=e=>322===e.kind,e.isJSDocSignature=e=>323===e.kind,e.isJSDocAugmentsTag=e=>328===e.kind,e.isJSDocAuthorTag=e=>330===e.kind,e.isJSDocClassTag=e=>332===e.kind,e.isJSDocCallbackTag=e=>338===e.kind,e.isJSDocPublicTag=e=>333===e.kind,e.isJSDocPrivateTag=e=>334===e.kind,e.isJSDocProtectedTag=e=>335===e.kind,e.isJSDocReadonlyTag=e=>336===e.kind,e.isJSDocOverrideTag=e=>337===e.kind,e.isJSDocDeprecatedTag=e=>331===e.kind,e.isJSDocSeeTag=e=>346===e.kind,e.isJSDocEnumTag=e=>339===e.kind,e.isJSDocParameterTag=e=>340===e.kind,e.isJSDocReturnTag=e=>341===e.kind,e.isJSDocThisTag=e=>342===e.kind,e.isJSDocTypeTag=e=>343===e.kind,e.isJSDocTemplateTag=e=>344===e.kind,e.isJSDocTypedefTag=e=>345===e.kind,e.isJSDocUnknownTag=e=>327===e.kind,e.isJSDocPropertyTag=e=>347===e.kind,e.isJSDocImplementsTag=e=>329===e.kind,e.isSyntaxList=e=>348===e.kind})(p),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function i(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function a(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function o(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function s(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 212:return!(16&t&&s(e))&&0!=(1&t);case 211:case 229:return 0!=(2&t);case 230:return 0!=(4&t);case 350:return 0!=(8&t)}return!1}function l(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function u(t){return e.setStartsOnNewLine(t,!0)}function d(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function p(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=d(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s<e.ModuleKind.ES2015||r.impliedNodeFormat===e.ModuleKind.CommonJS);if(!c){var l=e.getEmitHelpers(r);if(l)for(var u=0,p=l;u<p.length;u++)if(!p[u].scoped){c=!0;break}}if(c){var _=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(_);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function _(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function m(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?m(t.left):e.isSpreadElement(t)?m(t.expression):t;switch(t.kind){case 296:return m(t.initializer);case 297:return t.name;case 298:return m(t.expression)}}function g(t){switch(t.kind){case 203:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&h(r.expression)?r.expression:r}break;case 296:if(t.name)return r=t.name,e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&h(r.expression)?r.expression:r;break;case 298:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=m(t);if(n&&e.isPropertyName(n))return n}function h(e){var t=e.kind;return 10===t||8===t}var y;e.createEmptyExports=e=>e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0),e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=i,e.createExpressionForJsxElement=(t,r,n,i,a,o)=>{var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var d=l[c];u(d),s.push(d)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=(t,a,o,s,c,l,d)=>{var p=[((e,t,i,a)=>t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment"))(t,o,s,l),t.createNull()];if(c&&c.length>0)if(c.length>1)for(var _=0,f=c;_<f.length;_++){var m=f[_];u(m),p.push(m)}else p.push(c[0]);return e.setTextRange(t.createCallExpression(i(t,a,s,l),void 0,p),d)},e.createForOfBindingStatement=(t,r,n)=>{if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=(t,r,n)=>e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(f([n],r.statements,!0)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0),e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=a,e.createExpressionForObjectLiteralElementLike=(r,n,i,o)=>{switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 172:case 173:return((t,r,n,i,o)=>{var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,a(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),c)})(r,n.properties,i,o,!!n.multiLine);case 296:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n))(r,i,o);case 297:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n))(r,i,o);case 169:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))(r,i,o)}},e.expandPreOrPostfixIncrementOrDecrementExpression=(t,r,n,i,a)=>{var o=r.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=t.createTempVariable(i);n=t.createAssignment(s,n),e.setTextRange(n,r.operand);var c=e.isPrefixUnaryExpression(r)?t.createPrefixUnaryExpression(o,s):t.createPostfixUnaryExpression(s,o);return e.setTextRange(c,r),a&&(c=t.createAssignment(a,c),e.setTextRange(c,r)),n=t.createComma(n,c),e.setTextRange(n,r),e.isPostfixUnaryExpression(r)&&(n=t.createComma(n,s),e.setTextRange(n,r)),n},e.isInternalName=t=>0!=(32768&e.getEmitFlags(t)),e.isLocalName=t=>0!=(16384&e.getEmitFlags(t)),e.isExportName=t=>0!=(8192&e.getEmitFlags(t)),e.findUseStrictPrologue=t=>{for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(o(i))return i}},e.startsWithUseStrict=t=>{var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&o(r)},e.isCommaSequence=e=>221===e.kind&&27===e.operatorToken.kind||351===e.kind,e.isJSDocTypeAssertion=s,e.getJSDocTypeAssertionType=t=>{var r=e.getJSDocType(t);return e.Debug.assertIsDefined(r),r},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=e=>l(e,6),e.startOnNewLine=u,e.getExternalHelpersModuleName=d,e.hasRecordedExternalHelpers=t=>{var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=(t,r,n,i,a,o,s)=>{if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],_=0,f=u;_<f.length;_++){var m=f[_];if(!m.scoped){var g=m.importName;g&&e.pushIfUnique(d,g)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(d,(i=>e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(!1,void 0,t.createIdentifier(i)):t.createImportSpecifier(!1,t.createIdentifier(i),r.getUnscopedHelperName(i)))));var h=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(h).externalHelpers=!0}}}else{var y=p(t,n,i,a,o||s);y&&(c=t.createNamespaceImport(y))}if(c){var v=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=p,e.getLocalNameForExternalImport=(t,r,n)=>{var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 266===r.kind&&r.importClause||272===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=(t,r,n,i,a,o)=>{var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return((e,t,r,n,i)=>_(r,n.getExternalModuleFileFromDeclaration(e),t,i))(r,i,t,a,o)||((e,t,r)=>{var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0})(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=_,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=m,e.getRestIndicatorOfBindingOrAssignmentElement=e=>{switch(e.kind){case 164:case 203:return e.dotDotDotToken;case 225:case 298:return e}},e.getPropertyNameOfBindingOrAssignmentElement=t=>{var r=g(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=g,e.getElementsOfBindingOrAssignmentPattern=e=>{switch(e.kind){case 201:case 202:case 204:return e.elements;case 205:return e.properties}},e.getJSDocTypeAliasName=t=>{if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=e=>{var t=e.kind;return 164===t||166===t||167===t||168===t||169===t||171===t||172===t||173===t||176===t||213===t||214===t||226===t||237===t||256===t||257===t||258===t||259===t||260===t||261===t||265===t||266===t||271===t||272===t},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=t=>{var r=t.kind;return 104===r||110===r||95===r||e.isLiteralExpression(t)||e.isPrefixUnaryExpression(t)},e.isBinaryOperatorToken=t=>{return(t=>60===t||(e=>(e=>55===e||56===e)(e)||(e=>(e=>50===e||51===e||52===e)(e)||(e=>(e=>34===e||36===e||35===e||37===e)(e)||(e=>(e=>29===e||32===e||31===e||33===e||102===e||101===e)(e)||(e=>(e=>47===e||48===e||49===e)(e)||(e=>(e=>39===e||40===e)(e)||(e=>(e=>42===e)(e)||(e=>41===e||43===e||44===e)(e))(e))(e))(e))(e))(e))(e))(t)||e.isAssignmentOperator(t))(r=t.kind)||27===r;var r},(t=>{function r(t,n,i,a,o,s,l){var u=n>0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(u(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(u(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c})(y||(y={}));var v=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=(t,r,n,i,a,o)=>{var s=new v(t,r,n,i,a,o);return(t,r)=>{for(var n={value:void 0},i=[y.enter],a=[t],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(p),(e=>{e.setTextRange=(t,r)=>r?e.setTextRangePosEnd(t,r.pos,r.end):t})(p),(e=>{var t,r,n,i,a,o,s,c,l;function u(e,t){return t&&e(t)}function d(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function p(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _(t){return e.forEach(t.statements,g)||(e=>4194304&e.flags?h(e):void 0)(t)}function g(t){return((t,r)=>e.some(t.modifiers,(e=>93===e.kind)))(t)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function h(t){return(t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText)(t)?t:y(t,h)}function y(t,r,n){if(t&&!(t.kind<=160))switch(t.kind){case 161:return u(r,t.left)||u(r,t.right);case 163:return d(r,n,t.modifiers)||u(r,t.name)||u(r,t.constraint)||u(r,t.default)||u(r,t.expression);case 297:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.equalsToken)||u(r,t.objectAssignmentInitializer);case 298:return u(r,t.expression);case 164:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 167:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 166:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 296:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.initializer);case 254:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 203:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.propertyName)||u(r,t.name)||u(r,t.initializer);case 179:case 180:case 174:case 175:case 176:return d(r,n,t.decorators)||d(r,n,t.modifiers)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||u(r,t.type);case 169:case 168:case 171:case 172:case 173:case 213:case 256:case 214:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.asteriskToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||u(r,t.type)||u(r,t.equalsGreaterThanToken)||u(r,t.body);case 170:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.body);case 178:return u(r,t.typeName)||d(r,n,t.typeArguments);case 177:return u(r,t.assertsModifier)||u(r,t.parameterName)||u(r,t.type);case 181:return u(r,t.exprName)||d(r,n,t.typeArguments);case 182:return d(r,n,t.members);case 183:return u(r,t.elementType);case 184:return d(r,n,t.elements);case 187:case 188:return d(r,n,t.types);case 189:return u(r,t.checkType)||u(r,t.extendsType)||u(r,t.trueType)||u(r,t.falseType);case 190:return u(r,t.typeParameter);case 200:return u(r,t.argument)||u(r,t.assertions)||u(r,t.qualifier)||d(r,n,t.typeArguments);case 295:return u(r,t.assertClause);case 191:case 193:return u(r,t.type);case 194:return u(r,t.objectType)||u(r,t.indexType);case 195:return u(r,t.readonlyToken)||u(r,t.typeParameter)||u(r,t.nameType)||u(r,t.questionToken)||u(r,t.type)||d(r,n,t.members);case 196:return u(r,t.literal);case 197:return u(r,t.dotDotDotToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type);case 201:case 202:case 204:return d(r,n,t.elements);case 205:return d(r,n,t.properties);case 206:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.name);case 207:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.argumentExpression);case 208:case 209:return u(r,t.expression)||u(r,t.questionDotToken)||d(r,n,t.typeArguments)||d(r,n,t.arguments);case 210:return u(r,t.tag)||u(r,t.questionDotToken)||d(r,n,t.typeArguments)||u(r,t.template);case 211:return u(r,t.type)||u(r,t.expression);case 212:case 215:case 216:case 217:return u(r,t.expression);case 219:return u(r,t.operand);case 224:return u(r,t.asteriskToken)||u(r,t.expression);case 218:return u(r,t.expression);case 220:return u(r,t.operand);case 221:return u(r,t.left)||u(r,t.operatorToken)||u(r,t.right);case 229:return u(r,t.expression)||u(r,t.type);case 230:return u(r,t.expression);case 231:return u(r,t.name);case 222:return u(r,t.condition)||u(r,t.questionToken)||u(r,t.whenTrue)||u(r,t.colonToken)||u(r,t.whenFalse);case 225:return u(r,t.expression);case 235:case 262:return d(r,n,t.statements);case 305:return d(r,n,t.statements)||u(r,t.endOfFileToken);case 237:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.declarationList);case 255:return d(r,n,t.declarations);case 238:return u(r,t.expression);case 239:return u(r,t.expression)||u(r,t.thenStatement)||u(r,t.elseStatement);case 240:return u(r,t.statement)||u(r,t.expression);case 241:return u(r,t.expression)||u(r,t.statement);case 242:return u(r,t.initializer)||u(r,t.condition)||u(r,t.incrementor)||u(r,t.statement);case 243:return u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 244:return u(r,t.awaitModifier)||u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 245:case 246:return u(r,t.label);case 247:return u(r,t.expression);case 248:return u(r,t.expression)||u(r,t.statement);case 249:return u(r,t.expression)||u(r,t.caseBlock);case 263:return d(r,n,t.clauses);case 289:return u(r,t.expression)||d(r,n,t.statements);case 290:return d(r,n,t.statements);case 250:return u(r,t.label)||u(r,t.statement);case 251:return u(r,t.expression);case 252:return u(r,t.tryBlock)||u(r,t.catchClause)||u(r,t.finallyBlock);case 292:return u(r,t.variableDeclaration)||u(r,t.block);case 165:return u(r,t.expression);case 257:case 226:case 258:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.typeParameters)||d(r,n,t.heritageClauses)||d(r,n,t.members);case 259:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.typeParameters)||u(r,t.type);case 260:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.members);case 299:return u(r,t.name)||u(r,t.initializer);case 261:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.body);case 265:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.moduleReference);case 266:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.importClause)||u(r,t.moduleSpecifier)||u(r,t.assertClause);case 267:return u(r,t.name)||u(r,t.namedBindings);case 293:return d(r,n,t.elements);case 294:return u(r,t.name)||u(r,t.value);case 264:case 268:case 274:return u(r,t.name);case 269:case 273:return d(r,n,t.elements);case 272:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.exportClause)||u(r,t.moduleSpecifier)||u(r,t.assertClause);case 270:case 275:return u(r,t.propertyName)||u(r,t.name);case 271:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.expression);case 223:return u(r,t.head)||d(r,n,t.templateSpans);case 233:return u(r,t.expression)||u(r,t.literal);case 198:return u(r,t.head)||d(r,n,t.templateSpans);case 199:return u(r,t.type)||u(r,t.literal);case 162:return u(r,t.expression);case 291:return d(r,n,t.types);case 228:return u(r,t.expression)||d(r,n,t.typeArguments);case 277:return u(r,t.expression);case 276:return d(r,n,t.decorators);case 351:return d(r,n,t.elements);case 278:return u(r,t.openingElement)||d(r,n,t.children)||u(r,t.closingElement);case 282:return u(r,t.openingFragment)||d(r,n,t.children)||u(r,t.closingFragment);case 279:case 280:return u(r,t.tagName)||d(r,n,t.typeArguments)||u(r,t.attributes);case 286:return d(r,n,t.properties);case 285:return u(r,t.name)||u(r,t.initializer);case 287:return u(r,t.expression);case 288:return u(r,t.dotDotDotToken)||u(r,t.expression);case 281:return u(r,t.tagName);case 185:case 186:case 309:case 315:case 314:case 316:case 318:return u(r,t.type);case 317:return d(r,n,t.parameters)||u(r,t.type);case 320:return("string"==typeof t.comment?void 0:d(r,n,t.comment))||d(r,n,t.tags);case 346:return u(r,t.tagName)||u(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 310:return u(r,t.name);case 311:return u(r,t.left)||u(r,t.right);case 340:case 347:return u(r,t.tagName)||(t.isNameFirst?u(r,t.name)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):u(r,t.typeExpression)||u(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 330:return u(r,t.tagName)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 329:case 328:return u(r,t.tagName)||u(r,t.class)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 344:return u(r,t.tagName)||u(r,t.constraint)||d(r,n,t.typeParameters)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 345:return u(r,t.tagName)||(t.typeExpression&&309===t.typeExpression.kind?u(r,t.typeExpression)||u(r,t.fullName)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):u(r,t.fullName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 338:return u(r,t.tagName)||u(r,t.fullName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 341:case 343:case 342:case 339:return u(r,t.tagName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 323:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||u(r,t.type);case 324:case 325:case 326:return u(r,t.name);case 322:return e.forEach(t.jsDocPropertyTags,r);case 327:case 332:case 333:case 334:case 335:case 336:case 331:return u(r,t.tagName)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 350:return u(r,t.expression)}}function v(e){var t=[];return y(e,r,r),t;function r(e){t.unshift(e)}}function b(e){e.externalModuleIndicator=_(e)}function x(e){return void 0!==e.externalModuleIndicator}function E(t){return e.fileExtensionIsOneOf(t,e.supportedDeclarationExtensions)}function S(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];N(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var l=c[s];if(t.pragmas.has(l.name)){var u=t.pragmas.get(l.name);u instanceof Array?u.push(l.args):t.pragmas.set(l.name,[u,l.args])}else t.pragmas.set(l.name,l.args)}}function D(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(((n,i)=>{switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(n=>{var i=n.arguments,c=i.types,l=i.lib,u=i.path,d=i["resolution-mode"];if(n.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(c){var p=((t,r,n,i)=>{if(t)return"import"===t?e.ModuleKind.ESNext:"require"===t?e.ModuleKind.CommonJS:void i(r,n-r,e.Diagnostics.resolution_mode_should_be_either_require_or_import)})(d,c.pos,c.end,r);o.push(m({pos:c.pos,end:c.end,fileName:c.value},p?{resolutionMode:p}:{}))}else l?s.push({pos:l.pos,end:l.end,fileName:l.value}):u?a.push({pos:u.pos,end:u.end,fileName:u.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(var c=0,l=n;c<l.length;c++){var u=l[c];t.moduleName&&r(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(e=>{(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!(e=>{e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"})(t||(t={})),(e=>{e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"})(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:t=>new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.isFileProbablyExternalModule=_,e.forEachChild=y,e.forEachChildRecursively=(t,r,n)=>{for(var i=v(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n&&(l=n(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=161)for(var u=0,d=v(o);u<d.length;u++){var p=d[u];i.push(p),a.push(o)}}}},e.createSourceFile=(t,r,n,i,a)=>{var o;void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t);var s="object"==typeof n?n:{languageVersion:n},l=s.languageVersion,u=s.setExternalModuleIndicator,d=s.impliedNodeFormat;if(100===l)o=c.parseSourceFile(t,r,l,void 0,i,6,e.noop);else{var p=void 0===d?u:e=>(e.impliedNodeFormat=d,(u||b)(e));o=c.parseSourceFile(t,r,l,void 0,i,a,p)}return e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=(e,t)=>c.parseIsolatedEntityName(e,t),e.parseJsonText=(e,t)=>c.parseJsonText(e,t),e.isExternalModule=x,e.updateSourceFile=(e,t,r,n)=>{void 0===n&&(n=!1);var i=l.updateSourceFile(e,t,r,n);return i.flags|=6291456&e.flags,i},e.parseIsolatedJSDocComment=(e,t,r)=>{var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=(e,t,r)=>c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r),(t=>{var r,n,i,a,o,s=e.createScanner(99,!0);function c(e){return k++,e}var u,d,_,m,g,h,y,v,T,C,k,A,N,w,P,I,O,M={createBaseSourceFileNode:e=>c(new o(e,0,0)),createBaseIdentifierNode:e=>c(new i(e,0,0)),createBasePrivateIdentifierNode:e=>c(new a(e,0,0)),createBaseTokenNode:e=>c(new n(e,0,0)),createBaseNode:e=>c(new r(e,0,0))},R=e.createNodeFactory(11,M),L=!0,B=!1;function j(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),U(t,r,n,i,6),d=O,xe();var o,s,c=ge();if(1===ye())o=Xe([],c,c),s=He();else{for(var l=void 0;1!==ye();){var u=void 0;switch(ye()){case 22:u=An();break;case 110:case 95:case 104:u=He();break;case 40:u=we((()=>8===xe()&&58!==xe()))?rn():wn();break;case 8:case 10:if(we((()=>58!==xe()))){u=jt();break}default:u=wn()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==ye()&&de(e.Diagnostics.Unexpected_token))}var p=e.isArray(l)?Ye(R.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),_=R.createExpressionStatement(p);Ye(_,c),o=Xe([_],c),s=Je(1,e.Diagnostics.Unexpected_token)}var f=$(t,2,6,!1,o,s,d,e.noop);a&&H(f),f.nodeCount=k,f.identifierCount=w,f.identifiers=A,f.parseDiagnostics=e.attachFileToDiagnostics(y,f),v&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(v,f));var m=f;return V(),m}function U(t,c,l,p,f){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),u=e.normalizePath(t),_=c,m=l,T=p,g=f,h=e.getLanguageVariant(f),y=[],P=0,A=new e.Map,N=new e.Map,w=0,k=0,d=0,L=!0,g){case 1:case 2:O=262144;break;case 6:O=67371008;break;default:O=0}B=!1,s.setText(_),s.setOnError(me),s.setScriptTarget(m),s.setLanguageVariant(h)}function V(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),_=void 0,m=void 0,T=void 0,g=void 0,h=void 0,d=0,y=void 0,v=void 0,P=0,A=void 0,I=void 0,L=!0}function K(t,r,n,i){var a=E(u);a&&(O|=16777216),d=O,xe();var o=St(0,Jn);e.Debug.assert(1===ye());var c=J(He()),l=$(u,t,n,a,o,c,d,i);return S(l,_),D(l,((t,r,n)=>{y.push(e.createDetachedDiagnostic(u,t,r,n))})),l.commentDirectives=s.getCommentDirectives(),l.nodeCount=k,l.identifierCount=w,l.identifiers=A,l.parseDiagnostics=e.attachFileToDiagnostics(y,l),v&&(l.jsDocDiagnostics=e.attachFileToDiagnostics(v,l)),r&&H(l),l}function z(e,t){return t?J(e):e}t.parseSourceFile=(t,r,n,i,a,o,s)=>{var c;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var l=j(t,r,n,i,a);return e.convertToObjectWorker(l,null===(c=l.statements[0])||void 0===c?void 0:c.expression,l.parseDiagnostics,!1,void 0,void 0),l.referencedFiles=e.emptyArray,l.typeReferenceDirectives=e.emptyArray,l.libReferenceDirectives=e.emptyArray,l.amdDependencies=e.emptyArray,l.hasNoDefaultLib=!1,l.pragmas=e.emptyMap,l}U(t,r,n,i,o);var u=K(n,a,o,s||b);return V(),u},t.parseIsolatedEntityName=(e,t)=>{U("",e,t,void 0,1),xe();var r=Pt(!0),n=1===ye()&&!y.length;return V(),n?r:void 0},t.parseJsonText=j;var W=!1;function J(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,_),(e=>Le.parseJSDocComment(t,e.pos,e.end-e.pos)));return r.length&&(t.jsDoc=r),W&&(W=!1,t.flags|=268435456),t}function H(t){e.setParentRecursive(t,!0)}function $(t,r,n,i,a,o,c,u){var d=R.createSourceFile(a,o,c);return e.setTextRangePosWidth(d,0,_.length),p(d),!i&&x(d)&&16777216&d.transformFlags&&p(d=(t=>{var r=T,n=l.createSyntaxCursor(t);T={currentNode(e){var t=n.currentNode(e);return L&&t&&_(t)&&(t.intersectsChange=!0),t}};var i=[],a=y;y=[];for(var o=0,c=f(t.statements,0),u=()=>{var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=m(t.statements,c);var l=e.findIndex(a,(e=>e.start>=r.pos)),u=l>=0?e.findIndex(a,(e=>e.start>=n.pos),l):-1;l>=0&&e.addRange(y,a,l,u>=0?u:void 0),Ne((()=>{var e=O;for(O|=32768,s.setTextPos(n.pos),xe();1!==ye();){var r=s.getStartPos(),a=Dt(0,Jn);if(i.push(a),r===s.getStartPos()&&xe(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=m(t.statements,o+1))}}O=e}),2),c=o>=0?f(t.statements,o):-1};-1!==c;)u();if(o>=0){var d=t.statements[o];e.addRange(i,t.statements,o);var p=e.findIndex(a,(e=>e.start>=d.pos));p>=0&&e.addRange(y,a,p)}return T=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function _(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(_(e[r]))return r;return-1}function m(e,t){for(var r=t;r<e.length;r++)if(!_(e[r]))return r;return-1}})(d)),d;function p(a){a.text=_,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=r,a.fileName=t,a.languageVariant=e.getLanguageVariant(n),a.isDeclarationFile=i,a.scriptKind=n,u(a),a.setExternalModuleIndicator=u}}function G(e,t){e?O|=t:O&=~t}function q(e){G(e,4096)}function X(e){G(e,8192)}function Y(e){G(e,16384)}function Q(e){G(e,32768)}function Z(e,t){var r=e&O;if(r){G(!1,r);var n=t();return G(!0,r),n}return t()}function ee(e,t){var r=e&~O;if(r){G(!0,r);var n=t();return G(!1,r),n}return t()}function te(e){return Z(4096,e)}function re(e){return Z(65536,e)}function ne(e){return ee(65536,e)}function ie(e){return ee(32768,e)}function ae(e){return 0!=(O&e)}function oe(){return ae(8192)}function se(){return ae(4096)}function ce(){return ae(65536)}function le(){return ae(16384)}function ue(){return ae(32768)}function de(e,t){return _e(s.getTokenPos(),s.getTextPos(),e,t)}function pe(t,r,n,i){var a,o=e.lastOrUndefined(y);return o&&t===o.start||(a=e.createDetachedDiagnostic(u,t,r,n,i),y.push(a)),B=!0,a}function _e(e,t,r,n){return pe(e,t-e,r,n)}function fe(e,t,r){_e(e.pos,e.end,t,r)}function me(e,t){pe(s.getTextPos(),t,e)}function ge(){return s.getStartPos()}function he(){return s.hasPrecedingJSDocComment()}function ye(){return C}function ve(){return C=s.scan()}function be(e){return xe(),e()}function xe(){return e.isKeyword(C)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&_e(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),ve()}function Ee(){return C=s.scanJsDocToken()}function Se(){return C=s.reScanGreaterToken()}function De(){return C=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function Te(){return C=s.reScanLessThanToken()}function Ce(){return C=s.reScanHashToken()}function ke(){return C=s.scanJsxIdentifier()}function Ae(){return C=s.scanJsxToken()}function Ne(t,r){var n=C,i=y.length,a=B,o=O,c=0!==r?s.lookAhead(t):s.tryScan(t);return e.Debug.assert(o===O),c&&0===r||(C=n,2!==r&&(y.length=i),B=a),c}function we(e){return Ne(e,1)}function Fe(e){return Ne(e,0)}function Pe(){return 79===ye()||ye()>116}function Ie(){return 79===ye()||(125!==ye()||!oe())&&(132!==ye()||!ue())&&ye()>116}function Oe(t,r,n){return void 0===n&&(n=!0),ye()===t?(n&&xe(),!0):(r?de(r):de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=H;var Me,Re,Le,Be=Object.keys(e.textToKeywordObj).filter((e=>e.length>2));function je(t){var r;if(e.isTaggedTemplateExpression(t))_e(e.skipTrivia(_,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,m)){var i=e.skipTrivia(_,t.pos);switch(n){case"const":case"let":case"var":return void _e(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ue(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void _e(i,s.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ue(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ue(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Be,(e=>e)))&&void 0!==r?r:(t=>{for(var r=0,n=Be;r<n.length;r++){var i=n[r];if(t.length>i.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}})(n);a?_e(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ye()&&_e(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else de(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ue(e,t,r){ye()===r?de(t):de(e,s.getTokenValue())}function Ve(t){return ye()===t?(Ee(),!0):(de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Ke(t,r,n,i){if(ye()!==r){var a=de(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else xe()}function ze(e){return ye()===e&&(xe(),!0)}function We(e){if(ye()===e)return He()}function Je(t,r,n){return We(t)||Qe(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function He(){var e=ge(),t=ye();return xe(),Ye(R.createToken(t),e)}function $e(){return 26===ye()||19===ye()||1===ye()||s.hasPrecedingLineBreak()}function Ge(){return!!$e()&&(26===ye()&&xe(),!0)}function qe(){return Ge()||Oe(26)}function Xe(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Ye(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=131072),t}function Qe(t,r,n,i){r?pe(s.getStartPos(),0,n,i):n&&de(n,i);var a=ge();return Ye(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):276===t?R.createMissingDeclaration():R.createToken(t),a)}function Ze(e){var t=A.get(e);return void 0===t&&A.set(e,t=e),t}function et(t,r,n){if(t){w++;var i=ge(),a=ye(),o=Ze(s.getTokenValue());return ve(),Ye(R.createIdentifier(o,void 0,a),i)}if(80===ye())return de(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),et(!0);if(0===ye()&&s.tryScan((()=>79===s.reScanInvalidIdentifier())))return et(!0);w++;var c=1===ye(),l=s.isReservedWord(),u=s.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Qe(79,c,r||d,u)}function tt(e){return et(Pe(),void 0,e)}function rt(e,t){return et(Ie(),e,t)}function nt(t){return et(e.tokenIsIdentifierOrKeyword(ye()),t)}function it(){return e.tokenIsIdentifierOrKeyword(ye())||10===ye()||8===ye()}function at(){return(e=>{if(10===ye()||8===ye()){var t=jt();return t.text=Ze(t.text),t}return 1,22===ye()?(()=>{var e=ge();Oe(22);var t=te(zr);return Oe(23),Ye(R.createComputedPropertyName(t),e)})():80===ye()?ot():nt()})()}function ot(){var e,t,r=ge(),n=R.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=N.get(e))&&N.set(e,t=e),t));return xe(),Ye(n,r)}function st(e){return ye()===e&&Fe(lt)}function ct(){return xe(),!s.hasPrecedingLineBreak()&&pt()}function lt(){switch(ye()){case 85:return 92===xe();case 93:return xe(),88===ye()?we(_t):152===ye()?we(dt):ut();case 88:return _t();case 124:case 136:case 149:return xe(),pt();default:return ct()}}function ut(){return 41!==ye()&&127!==ye()&&18!==ye()&&pt()}function dt(){return xe(),ut()}function pt(){return 22===ye()||18===ye()||41===ye()||25===ye()||it()}function _t(){return xe(),84===ye()||98===ye()||118===ye()||126===ye()&&we(Bn)||131===ye()&&we(jn)}function ft(t,r){if(Tt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ye()&&r)&&zn();case 2:return 82===ye()||88===ye();case 4:return we(cr);case 5:return we(ui)||26===ye()&&!r;case 6:return 22===ye()||it();case 12:switch(ye()){case 22:case 41:case 25:case 24:return!0;default:return it()}case 18:return it();case 9:return 22===ye()||25===ye()||it();case 24:return e.tokenIsIdentifierOrKeyword(ye())||10===ye();case 7:return 18===ye()?we(mt):r?Ie()&&!vt():Vr()&&!vt();case 8:return Qn();case 10:return 27===ye()||25===ye()||Qn();case 19:return 101===ye()||Ie();case 15:switch(ye()){case 27:case 24:return!0}case 11:return 25===ye()||Kr();case 16:return Yt(!1);case 17:return Yt(!0);case 20:case 21:return 27===ye()||Cr();case 22:return Di();case 23:return e.tokenIsIdentifierOrKeyword(ye());case 13:return e.tokenIsIdentifierOrKeyword(ye())||18===ye();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function mt(){if(e.Debug.assert(18===ye()),19===xe()){var t=xe();return 27===t||18===t||94===t||117===t}return!0}function gt(){return xe(),Ie()}function ht(){return xe(),e.tokenIsIdentifierOrKeyword(ye())}function yt(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ye())}function vt(){return(117===ye()||94===ye())&&we(bt)}function bt(){return xe(),Kr()}function xt(){return xe(),Cr()}function Et(e){if(1===ye())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===ye();case 3:return 19===ye()||82===ye()||88===ye();case 7:return 18===ye()||94===ye()||117===ye();case 8:return!!$e()||!!Zr(ye())||38===ye();case 19:return 31===ye()||20===ye()||18===ye()||94===ye()||117===ye();case 11:return 21===ye()||26===ye();case 15:case 21:case 10:return 23===ye();case 17:case 16:case 18:return 21===ye()||23===ye();case 20:return 27!==ye();case 22:return 18===ye()||19===ye();case 13:return 31===ye()||43===ye();case 14:return 29===ye()&&we(Fi);default:return!1}}function St(e,t){var r=P;P|=1<<e;for(var n=[],i=ge();!Et(e);)if(ft(e,!1))n.push(Dt(e,t));else if(kt(e))break;return P=r,Xe(n,i)}function Dt(e,t){var r=Tt(e);return r?Ct(r):t()}function Tt(t){if(T&&(e=>{switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1})(t)&&!B){var r=T.currentNode(s.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r))&&(50720768&r.flags)===O&&((e,t)=>{switch(t){case 5:return(e=>{if(e)switch(e.kind){case 171:case 176:case 172:case 173:case 167:case 234:return!0;case 169:var t=e;return!(79===t.name.kind&&134===t.name.originalKeywordKind)}return!1})(e);case 2:return(e=>{if(e)switch(e.kind){case 289:case 290:return!0}return!1})(e);case 0:case 1:case 3:return(e=>{if(e)switch(e.kind){case 256:case 237:case 235:case 239:case 238:case 251:case 247:case 249:case 246:case 245:case 243:case 244:case 242:case 241:case 248:case 236:case 252:case 250:case 240:case 253:case 266:case 265:case 272:case 271:case 261:case 257:case 258:case 260:case 259:return!0}return!1})(e);case 6:return(e=>299===e.kind)(e);case 4:return(e=>{if(e)switch(e.kind){case 175:case 168:case 176:case 166:case 174:return!0}return!1})(e);case 8:return(e=>254===e.kind&&void 0===e.initializer)(e);case 17:case 16:return(e=>164===e.kind&&void 0===e.initializer)(e)}return!1})(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function Ct(e){return s.setTextPos(e.end),xe(),e}function kt(t){return(t=>{switch(t){case 0:return 88===ye()?de(e.Diagnostics._0_expected,e.tokenToString(93)):de(e.Diagnostics.Declaration_or_statement_expected);case 1:return de(e.Diagnostics.Declaration_or_statement_expected);case 2:return de(e.Diagnostics.case_or_default_expected);case 3:return de(e.Diagnostics.Statement_expected);case 18:case 4:return de(e.Diagnostics.Property_or_signature_expected);case 5:return de(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return de(e.Diagnostics.Enum_member_expected);case 7:return de(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ye())?de(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ye())):de(e.Diagnostics.Variable_declaration_expected);case 9:return de(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return de(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return de(e.Diagnostics.Argument_expression_expected);case 12:return de(e.Diagnostics.Property_assignment_expected);case 15:return de(e.Diagnostics.Expression_or_comma_expected);case 17:return de(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(ye())?de(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(ye())):de(e.Diagnostics.Parameter_declaration_expected);case 19:return de(e.Diagnostics.Type_parameter_declaration_expected);case 20:return de(e.Diagnostics.Type_argument_expected);case 21:return de(e.Diagnostics.Type_expected);case 22:return de(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:de(e.Diagnostics.Identifier_expected)}})(t),!!(()=>{for(var e=0;e<25;e++)if(P&1<<e&&(ft(e,!0)||Et(e)))return!0;return!1})()||(xe(),!1)}function At(e,t,r){var n=P;P|=1<<e;for(var i=[],a=ge(),o=-1;;)if(ft(e,!1)){var c=s.getStartPos(),l=Dt(e,t);if(!l)return void(P=n);if(i.push(l),o=s.getTokenPos(),ze(27))continue;if(o=-1,Et(e))break;Oe(27,Nt(e)),r&&26===ye()&&!s.hasPrecedingLineBreak()&&xe(),c===s.getStartPos()&&xe()}else{if(Et(e))break;if(kt(e))break}return P=n,Xe(i,a,void 0,o>=0)}function Nt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function wt(){var e=Xe([],ge());return e.isMissingList=!0,e}function Ft(e,t,r,n){if(Oe(r)){var i=At(e,t);return Oe(n),i}return wt()}function Pt(e,t){for(var r=ge(),n=e?nt(t):rt(t),i=ge();ze(24);){if(29===ye()){n.jsdocDotPos=i;break}i=ge(),n=Ye(R.createQualifiedName(n,Ot(e,!1)),r)}return n}function It(e,t){return Ye(R.createQualifiedName(e,t),e.pos)}function Ot(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ye())&&we(Ln))return Qe(79,!0,e.Diagnostics.Identifier_expected);if(80===ye()){var n=ot();return r?n:Qe(79,!0,e.Diagnostics.Identifier_expected)}return t?nt():rt()}function Mt(e){var t=ge();return Ye(R.createTemplateExpression(Ut(e),(e=>{var t,r=ge(),n=[];do{t=Bt(e),n.push(t)}while(16===t.literal.kind);return Xe(n,r)})(e)),t)}function Rt(){var e=ge();return Ye(R.createTemplateLiteralTypeSpan(jr(),Lt(!1)),e)}function Lt(t){return 19===ye()?((e=>{C=s.reScanTemplateToken(e)})(t),r=Vt(ye()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Je(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Bt(e){var t=ge();return Ye(R.createTemplateSpan(te(zr),Lt(e)),t)}function jt(){return Vt(ye())}function Ut(t){t&&De();var r=Vt(ye());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Vt(t){var r=ge(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,s.getTokenValue(),(e=>{var t=14===e||17===e,r=s.getTokenText();return r.substring(1,r.length-(s.isUnterminated()?0:t?1:2))})(t),2048&s.getTokenFlags()):8===t?R.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?R.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),xe(),Ye(n,r)}function Kt(){return Pt(!0,e.Diagnostics.Type_expected)}function zt(){if(!s.hasPrecedingLineBreak()&&29===Te())return Ft(20,jr,29,31)}function Wt(){var e=ge();return Ye(R.createTypeReferenceNode(Kt(),zt()),e)}function Jt(t){switch(t.kind){case 178:return e.nodeIsMissing(t.typeName);case 179:case 180:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Jt(i);case 191:return Jt(t.type);default:return!1}}function Ht(){var e=ge();return xe(),Ye(R.createThisTypeNode(),e)}function $t(){var e,t=ge();return 108!==ye()&&103!==ye()||(e=nt(),Oe(58)),Ye(R.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Gt(),void 0),t)}function Gt(){s.setInJSDocType(!0);var e=ge();if(ze(141)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(ye()){case 19:case 1:case 27:case 5:break e;default:Ee()}return s.setInJSDocType(!1),Ye(t,e)}var r=ze(25),n=Lr();return s.setInJSDocType(!1),r&&(n=Ye(R.createJSDocVariadicType(n),e)),63===ye()?(xe(),Ye(R.createJSDocOptionalType(n),e)):n}function qt(){var e,t,r=ge(),n=mi(),i=rt();ze(94)&&(Cr()||!Kr()?e=jr():t=nn());var a=ze(63)?jr():void 0,o=R.createTypeParameterDeclaration(n,i,e,a);return o.expression=t,Ye(o,r)}function Xt(){if(29===ye())return Ft(19,qt,29,31)}function Yt(t){return 25===ye()||Qn()||e.isModifierKind(ye())||59===ye()||Cr(!t)}function Qt(e){return Zt(e)}function Zt(t,r){void 0===r&&(r=!0);var n=ge(),i=he(),a=t?ie(_i):_i();if(108===ye()){var o=R.createParameterDeclaration(a,void 0,void 0,et(!0),void 0,Ur(),void 0);return a&&fe(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),z(Ye(o,n),i)}var s=L;L=!1;var c=mi(),l=We(25);if(r||Pe()||22===ye()||18===ye()){var u=z(Ye(R.createParameterDeclaration(a,c,l,(t=>{var r=Zn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ye())&&xe(),r})(c),We(57),Ur(),Wr()),n),i);return L=s,u}}function er(t,r){if(((t,r)=>38===t?(Oe(t),!0):!!ze(58)||!(!r||38!==ye())&&(de(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0))(t,r))return re(Lr)}function tr(e,t){var r=oe(),n=ue();X(!!(1&e)),Q(!!(2&e));var i=32&e?At(17,$t):At(16,(()=>t?Qt(n):Zt(n,!1)));return X(r),Q(n),i}function rr(e){if(!Oe(20))return wt();var t=tr(e,!0);return Oe(21),t}function nr(){ze(27)||qe()}function ir(e){var t=ge(),r=he();175===e&&Oe(103);var n=Xt(),i=rr(4),a=er(58,!0);return nr(),z(Ye(174===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function ar(){return 22===ye()&&we(or)}function or(){if(xe(),25===ye()||23===ye())return!0;if(e.isModifierKind(ye())){if(xe(),Ie())return!0}else{if(!Ie())return!1;xe()}return 58===ye()||27===ye()||57===ye()&&(xe(),58===ye()||27===ye()||23===ye())}function sr(e,t,r,n){var i=Ft(16,(()=>Qt(!1)),22,23),a=Ur();return nr(),z(Ye(R.createIndexSignature(r,n,i,a),e),t)}function cr(){if(20===ye()||29===ye()||136===ye()||149===ye())return!0;for(var t=!1;e.isModifierKind(ye());)t=!0,xe();return 22===ye()||(it()&&(t=!0,xe()),!!t&&(20===ye()||29===ye()||57===ye()||58===ye()||27===ye()||$e()))}function lr(){if(20===ye()||29===ye())return ir(174);if(103===ye()&&we(ur))return ir(175);var e=ge(),t=he(),r=mi();return st(136)?li(e,t,void 0,r,172):st(149)?li(e,t,void 0,r,173):ar()?sr(e,t,void 0,r):((e,t,r)=>{var n,i=at(),a=We(57);if(20===ye()||29===ye()){var o=Xt(),s=rr(4),c=er(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=Ur(),n=R.createPropertySignature(r,i,a,c),63===ye()&&(n.initializer=Wr());return nr(),z(Ye(n,e),t)})(e,t,r)}function ur(){return xe(),20===ye()||29===ye()}function dr(){return 24===xe()}function pr(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function _r(){var e;return Oe(18)?(e=St(4,lr),Oe(19)):e=wt(),e}function fr(){return xe(),39===ye()||40===ye()?145===xe():(145===ye()&&xe(),22===ye()&&gt()&&101===xe())}function mr(){var t=ge();if(ze(25))return Ye(R.createRestTypeNode(jr()),t);var r=jr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function gr(){return 58===xe()||57===ye()&&58===xe()}function hr(){return 25===ye()?e.tokenIsIdentifierOrKeyword(xe())&&gr():e.tokenIsIdentifierOrKeyword(ye())&&gr()}function yr(){if(we(hr)){var e=ge(),t=he(),r=We(25),n=nt(),i=We(57);Oe(58);var a=mr();return z(Ye(R.createNamedTupleMember(r,n,i,a),e),t)}return mr()}function vr(){var e=ge(),t=he(),r=(()=>{var e;if(126===ye()){var t=ge();xe(),e=Xe([Ye(R.createToken(126),t)],t)}return e})(),n=ze(103),i=Xt(),a=rr(4),o=er(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),z(Ye(s,e),t)}function br(){var e=He();return 24===ye()?void 0:e}function xr(e){var t=ge();e&&xe();var r=110===ye()||95===ye()||104===ye()?He():Vt(ye());return e&&(r=Ye(R.createPrefixUnaryExpression(40,r),t)),Ye(R.createLiteralTypeNode(r),t)}function Er(){return xe(),100===ye()}function Sr(){d|=2097152;var t=ge(),r=ze(112);Oe(100),Oe(20);var n,i=jr();ze(27)&&(n=(()=>{var t=ge(),r=s.getTokenPos();Oe(18);var n=s.hasPrecedingLineBreak();Oe(129),Oe(58);var i=Ii(!0);if(!Oe(19)){var a=e.lastOrUndefined(y);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ye(R.createImportTypeAssertionContainer(i,n),t)})()),Oe(21);var a=ze(24)?Kt():void 0,o=zt();return Ye(R.createImportTypeNode(i,n,a,o,r),t)}function Dr(){return xe(),8===ye()||9===ye()}function Tr(){switch(ye()){case 130:case 155:case 150:case 147:case 158:case 151:case 133:case 153:case 143:case 148:return Fe(br)||Wt();case 66:s.reScanAsteriskEqualsToken();case 41:return r=ge(),xe(),Ye(R.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return(()=>{var e=ge();return xe(),27===ye()||19===ye()||21===ye()||31===ye()||63===ye()||51===ye()?Ye(R.createJSDocUnknownType(),e):Ye(R.createJSDocNullableType(jr(),!1),e)})();case 98:return(()=>{var e=ge(),t=he();if(we(Ni)){xe();var r=rr(36),n=er(58,!1);return z(Ye(R.createJSDocFunctionType(r,n),e),t)}return Ye(R.createTypeReferenceNode(nt(),void 0),e)})();case 53:return(()=>{var e=ge();return xe(),Ye(R.createJSDocNonNullableType(Tr(),!1),e)})();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return xr();case 40:return we(Dr)?xr(!0):Wt();case 114:return He();case 108:var e=Ht();return 139!==ye()||s.hasPrecedingLineBreak()?e:(t=e,xe(),Ye(R.createTypePredicateNode(void 0,t,jr()),t.pos));case 112:return we(Er)?Sr():(()=>{var e=ge();Oe(112);var t=Pt(!0),r=s.hasPrecedingLineBreak()?void 0:Si();return Ye(R.createTypeQueryNode(t,r),e)})();case 18:return we(fr)?(()=>{var e,t=ge();Oe(18),145!==ye()&&39!==ye()&&40!==ye()||145!==(e=He()).kind&&Oe(145),Oe(22);var r,n=(()=>{var e=ge(),t=nt();Oe(101);var r=jr();return Ye(R.createTypeParameterDeclaration(void 0,t,r,void 0),e)})(),i=ze(127)?jr():void 0;Oe(23),57!==ye()&&39!==ye()&&40!==ye()||57!==(r=He()).kind&&Oe(57);var a=Ur();qe();var o=St(4,lr);return Oe(19),Ye(R.createMappedTypeNode(e,n,i,r,a,o),t)})():(()=>{var e=ge();return Ye(R.createTypeLiteralNode(_r()),e)})();case 22:return(()=>{var e=ge();return Ye(R.createTupleTypeNode(Ft(21,yr,22,23)),e)})();case 20:return(()=>{var e=ge();Oe(20);var t=jr();return Oe(21),Ye(R.createParenthesizedType(t),e)})();case 100:return Sr();case 128:return we(Ln)?(()=>{var e=ge(),t=Je(128),r=108===ye()?Ht():rt(),n=ze(139)?jr():void 0;return Ye(R.createTypePredicateNode(t,r,n),e)})():Wt();case 15:return(()=>{var e=ge();return Ye(R.createTemplateLiteralType(Ut(!1),(()=>{var e,t=ge(),r=[];do{e=Rt(),r.push(e)}while(16===e.literal.kind);return Xe(r,t)})()),e)})();default:return Wt()}var t,r}function Cr(e){switch(ye()){case 130:case 155:case 150:case 147:case 158:case 133:case 145:case 151:case 154:case 114:case 153:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 148:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&we(Dr);case 20:return!e&&we(kr);default:return Ie()}}function kr(){return xe(),21===ye()||Yt(!1)||Cr()}function Ar(){for(var e=ge(),t=Tr();!s.hasPrecedingLineBreak();)switch(ye()){case 53:xe(),t=Ye(R.createJSDocNonNullableType(t,!0),e);break;case 57:if(we(xt))return t;xe(),t=Ye(R.createJSDocNullableType(t,!0),e);break;case 22:if(Oe(22),Cr()){var r=jr();Oe(23),t=Ye(R.createIndexedAccessTypeNode(t,r),e)}else Oe(23),t=Ye(R.createArrayTypeNode(t),e);break;default:return t}return t}function Nr(){if(ze(94)){var e=ne(jr);if(ce()||57!==ye())return e}}function wr(){var e,t=ye();switch(t){case 140:case 154:case 145:return(e=>{var t=ge();return Oe(e),Ye(R.createTypeOperatorNode(e,wr()),t)})(t);case 137:return e=ge(),Oe(137),Ye(R.createInferTypeNode((()=>{var e=ge(),t=rt(),r=Fe(Nr);return Ye(R.createTypeParameterDeclaration(void 0,t,r),e)})()),e)}return re(Ar)}function Fr(t){if(Mr()){var r=vr();return fe(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Pr(e,t,r){var n=ge(),i=51===e,a=ze(e),o=a&&Fr(i)||t();if(ye()===e||a){for(var s=[o];ze(e);)s.push(Fr(i)||t());o=Ye(r(Xe(s,n)),n)}return o}function Ir(){return Pr(50,wr,R.createIntersectionTypeNode)}function Or(){return xe(),103===ye()}function Mr(){return 29===ye()||!(20!==ye()||!we(Rr))||103===ye()||126===ye()&&we(Or)}function Rr(){if(xe(),21===ye()||25===ye())return!0;if((()=>{if(e.isModifierKind(ye())&&mi(),Ie()||108===ye())return xe(),!0;if(22===ye()||18===ye()){var t=y.length;return Zn(),t===y.length}return!1})()){if(58===ye()||27===ye()||57===ye()||63===ye())return!0;if(21===ye()&&(xe(),38===ye()))return!0}return!1}function Lr(){var e=ge(),t=Ie()&&Fe(Br),r=jr();return t?Ye(R.createTypePredicateNode(void 0,t,r),e):r}function Br(){var e=rt();if(139===ye()&&!s.hasPrecedingLineBreak())return xe(),e}function jr(){if(40960&O)return Z(40960,jr);if(Mr())return vr();var e=ge(),t=Pr(51,Ir,R.createUnionTypeNode);if(!ce()&&!s.hasPrecedingLineBreak()&&ze(94)){var r=ne(jr);Oe(57);var n=re(jr);Oe(58);var i=re(jr);return Ye(R.createConditionalTypeNode(t,r,n,i),e)}return t}function Ur(){return ze(58)?jr():void 0}function Vr(){switch(ye()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return we(pr);default:return Ie()}}function Kr(){if(Vr())return!0;switch(ye()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return!(se()&&101===ye()||!(e.getBinaryOperatorPrecedence(ye())>0))||Ie()}}function zr(){var e=le();e&&Y(!1);for(var t,r=ge(),n=Jr();t=We(27);)n=tn(n,t,Jr(),r);return e&&Y(!0),n}function Wr(){return ze(63)?Jr():void 0}function Jr(){if(125===ye()&&(oe()||we(Un)))return(()=>{var e=ge();return xe(),s.hasPrecedingLineBreak()||41!==ye()&&!Kr()?Ye(R.createYieldExpression(void 0,void 0),e):Ye(R.createYieldExpression(We(41),Jr()),e)})();var t=(()=>{var e=20===ye()||29===ye()||131===ye()?we($r):38===ye()?1:0;if(0!==e)return 1===e?Xr(!0):Fe(Gr)})()||(()=>{if(131===ye()&&1===we(qr)){var e=ge(),t=gi();return Hr(e,Qr(0),t)}})();if(t)return t;var r=ge(),n=Qr(0);return 79===n.kind&&38===ye()?Hr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(Se())?tn(n,He(),Jr(),r):((t,r)=>{var n,i=We(57);return i?Ye(R.createConditionalExpression(t,i,Z(20480,Jr),n=Je(58),e.nodeIsPresent(n)?Jr():Qe(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t})(n,r)}function Hr(t,r,n){e.Debug.assert(38===ye(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=R.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ye(i,r.pos);var a=Xe([i],i.pos,i.end),o=Je(38),s=Yr(!!n);return J(Ye(R.createArrowFunction(n,void 0,a,void 0,o,s),t))}function $r(){if(131===ye()){if(xe(),s.hasPrecedingLineBreak())return 0;if(20!==ye()&&29!==ye())return 0}var t=ye(),r=xe();if(20===t){if(21===r)switch(xe()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&131!==r&&we(gt))return we((()=>127===xe()))?0:1;if(!Ie()&&108!==r)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ye()||27===ye()||63===ye()||21===ye()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Ie()?1===h?we((()=>{var e=xe();if(94===e)switch(xe()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}))?1:0:2:0}function Gr(){var t=s.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=Xr(!1);return r||(I||(I=new e.Set)).add(t),r}}function qr(){if(131===ye()){if(xe(),s.hasPrecedingLineBreak()||38===ye())return 0;var e=Qr(0);if(!s.hasPrecedingLineBreak()&&79===e.kind&&38===ye())return 1}return 0}function Xr(t){var r,n=ge(),i=he(),a=gi(),o=e.some(a,e.isAsyncModifier)?2:0,s=Xt();if(Oe(20)){if(t)r=tr(o,t);else{var c=tr(o,t);if(!c)return;r=c}if(!Oe(21)&&!t)return}else{if(!t)return;r=wt()}var l=er(58,!1);if(!l||t||!Jt(l)){for(var u=l;191===(null==u?void 0:u.kind);)u=u.type;var d=u&&e.isJSDocFunctionType(u);if(t||38===ye()||!d&&18===ye()){var p=ye(),_=Je(38),f=38===p||18===p?Yr(e.some(a,e.isAsyncModifier)):rt();return z(Ye(R.createArrowFunction(a,s,r,l,_,f),n),i)}}}function Yr(e){if(18===ye())return On(e?2:0);if(26!==ye()&&98!==ye()&&84!==ye()&&zn()&&(18===ye()||98===ye()||84===ye()||59===ye()||!Kr()))return On(16|(e?2:0));var t=L;L=!1;var r=e?ie(Jr):Z(32768,Jr);return L=t,r}function Qr(e){var t=ge();return en(e,nn(),t)}function Zr(e){return 101===e||160===e}function en(t,r,n){for(;;){Se();var i=e.getBinaryOperatorPrecedence(ye());if(!(42===ye()?i>=t:i>t))break;if(101===ye()&&se())break;if(127===ye()){if(s.hasPrecedingLineBreak())break;xe(),a=r,o=jr(),r=Ye(R.createAsExpression(a,o),a.pos)}else r=tn(r,He(),Qr(i),n)}var a,o;return r}function tn(e,t,r,n){return Ye(R.createBinaryExpression(e,t,r),n)}function rn(){var e=ge();return Ye(R.createPrefixUnaryExpression(ye(),be(an)),e)}function nn(){if((()=>{switch(ye()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==h)return!1;default:return!0}})()){var t=ge(),r=on();return 42===ye()?en(e.getBinaryOperatorPrecedence(ye()),r,t):r}var n=ye(),i=an();if(42===ye()){t=e.skipTrivia(_,i.pos);var a=i.end;211===i.kind?_e(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):_e(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function an(){switch(ye()){case 39:case 40:case 54:case 53:return rn();case 89:return e=ge(),Ye(R.createDeleteExpression(be(an)),e);case 112:return(()=>{var e=ge();return Ye(R.createTypeOfExpression(be(an)),e)})();case 114:return(()=>{var e=ge();return Ye(R.createVoidExpression(be(an)),e)})();case 29:return(()=>{var e=ge();Oe(29);var t=jr();Oe(31);var r=an();return Ye(R.createTypeAssertion(t,r),e)})();case 132:if(132===ye()&&(ue()||we(Un)))return(()=>{var e=ge();return Ye(R.createAwaitExpression(be(an)),e)})();default:return on()}var e}function on(){if(45===ye()||46===ye()){var t=ge();return Ye(R.createPrefixUnaryExpression(ye(),be(sn)),t)}if(1===h&&29===ye()&&we(yt))return ln(!0);var r=sn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ye()||46===ye())&&!s.hasPrecedingLineBreak()){var n=ye();return xe(),Ye(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function sn(){var t,r=ge();return 100===ye()?we(ur)?(d|=2097152,t=He()):we(dr)?(xe(),xe(),t=Ye(R.createMetaProperty(100,nt()),r),d|=4194304):t=cn():t=106===ye()?(()=>{var t=ge(),r=He();if(29===ye()){var n=ge();void 0!==Fe(Dn)&&_e(n,ge(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===ye()||24===ye()||22===ye()?r:(Je(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ye(R.createPropertyAccessExpression(r,Ot(!0,!0)),t))})():cn(),En(r,t)}function cn(){return vn(ge(),Tn(),!0)}function ln(t,r,n){var i,a=ge(),o=(e=>{var t=ge();if(Oe(29),31===ye())return Ae(),Ye(R.createJsxOpeningFragment(),t);var r,n=pn(),i=0==(262144&O)?Si():void 0,a=(()=>{var e=ge();return Ye(R.createJsxAttributes(St(13,fn)),e)})();return 31===ye()?(Ae(),r=R.createJsxOpeningElement(n,i,a)):(Oe(43),Oe(31,void 0,!1)&&(e?xe():Ae()),r=R.createJsxSelfClosingElement(n,i,a)),Ye(r,t)})(t);if(280===o.kind){var s=dn(o),c=void 0,l=s[s.length-1];if(278===(null==l?void 0:l.kind)&&!F(l.openingElement.tagName,l.closingElement.tagName)&&F(o.tagName,l.closingElement.tagName)){var u=l.children.end,d=Ye(R.createJsxElement(l.openingElement,l.children,Ye(R.createJsxClosingElement(Ye(R.createIdentifier(""),u,u)),u,u)),l.openingElement.pos,u);s=Xe(f(f([],s.slice(0,s.length-1),!0),[d],!1),s.pos,u),c=l.closingElement}else c=((e,t)=>{var r=ge();Oe(30);var n=pn();return Oe(31,void 0,!1)&&(t||!F(e.tagName,n)?xe():Ae()),Ye(R.createJsxClosingElement(n),r)})(o,t),F(o.tagName,c.tagName)||(n&&e.isJsxOpeningElement(n)&&F(c.tagName,n.tagName)?fe(o.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,o.tagName)):fe(c.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_,o.tagName)));i=Ye(R.createJsxElement(o,s,c),a)}else 283===o.kind?i=Ye(R.createJsxFragment(o,dn(o),(t=>{var r=ge();return Oe(30),e.tokenIsIdentifierOrKeyword(ye())&&fe(pn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Oe(31,void 0,!1)&&(t?xe():Ae()),Ye(R.createJsxJsxClosingFragment(),r)})(t)),a):(e.Debug.assert(279===o.kind),i=o);if(t&&29===ye()){var p=void 0===r?i.pos:r,m=Fe((()=>ln(!0,p)));if(m){var g=Qe(27,!1);return e.setTextRangePosWidth(g,m.pos,0),_e(e.skipTrivia(_,p),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ye(R.createBinaryExpression(i,g,m),a)}}return i}function un(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))fe(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;_e(e.skipTrivia(_,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=ge(),a=R.createJsxText(s.getTokenValue(),12===C),C=s.scanJsxToken(),Ye(a,i);case 18:return _n(!1);case 29:return ln(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function dn(t){var r=[],n=ge(),i=P;for(P|=16384;;){var a=un(t,C=s.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&278===(null==a?void 0:a.kind)&&!F(a.openingElement.tagName,a.closingElement.tagName)&&F(t.tagName,a.closingElement.tagName))break}return P=i,Xe(r,n)}function pn(){var e=ge();ke();for(var t=108===ye()?He():nt();ze(24);)t=Ye(R.createPropertyAccessExpression(t,Ot(!0,!1)),e);return t}function _n(e){var t,r,n=ge();if(Oe(18))return 19!==ye()&&(t=We(25),r=zr()),e?Oe(19):Oe(19,void 0,!1)&&Ae(),Ye(R.createJsxExpression(t,r),n)}function fn(){if(18===ye())return(()=>{var e=ge();Oe(18),Oe(25);var t=zr();return Oe(19),Ye(R.createJsxSpreadAttribute(t),e)})();ke();var e=ge();return Ye(R.createJsxAttribute(nt(),63!==ye()?void 0:10===(C=s.scanJsxAttributeValue())?jt():_n(!0)),e)}function mn(){return xe(),e.tokenIsIdentifierOrKeyword(ye())||22===ye()||bn()}function gn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function hn(t,r,n){var i=Ot(!0,!0),a=n||gn(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&fe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ye(o,t)}function yn(t,r,n){var i;if(23===ye())i=Qe(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(zr);e.isStringOrNumericLiteralLike(a)&&(a.text=Ze(a.text)),i=a}return Oe(23),Ye(n||gn(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function vn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ye()&&we(mn)?(i=Je(28),a=e.tokenIsIdentifierOrKeyword(ye())):a=ze(24),a)r=hn(t,r,i);else if(!i&&le()||!ze(22)){if(!bn()){if(!i){if(53===ye()&&!s.hasPrecedingLineBreak()){xe(),r=Ye(R.createNonNullExpression(r),t);continue}var o=Fe(Dn);if(o){r=Ye(R.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||228!==r.kind?xn(t,r,i,void 0):xn(t,r.expression,i,r.typeArguments)}else r=yn(t,r,i)}}function bn(){return 14===ye()||15===ye()}function xn(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===ye()?(De(),jt()):Mt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ye(i,e)}function En(t,r){for(;;){r=vn(t,r,!0);var n=void 0,i=We(28);if(i&&(n=Fe(Dn),bn()))r=xn(t,r,i,n);else{if(!n&&20!==ye()){if(i){var a=Qe(79,!1,e.Diagnostics.Identifier_expected);r=Ye(R.createPropertyAccessChain(r,i,a),t)}break}i||228!==r.kind||(n=r.typeArguments,r=r.expression);var o=Sn();r=Ye(i||gn(r)?R.createCallChain(r,i,n,o):R.createCallExpression(r,n,o),t)}}return r}function Sn(){Oe(20);var e=At(11,kn);return Oe(21),e}function Dn(){if(0==(262144&O)&&29===Te()){xe();var e=At(20,jr);if(31===Se())return xe(),e&&(()=>{switch(ye()){case 20:case 14:case 15:return!0}return!Kr()})()?e:void 0}}function Tn(){switch(ye()){case 8:case 9:case 10:case 14:return jt();case 108:case 106:case 104:case 110:case 95:return He();case 20:return(()=>{var e=ge(),t=he();Oe(20);var r=te(zr);return Oe(21),z(Ye(R.createParenthesizedExpression(r),e),t)})();case 22:return An();case 18:return wn();case 131:if(!we(jn))break;return Fn();case 84:return vi(ge(),he(),void 0,void 0,226);case 98:return Fn();case 103:return(()=>{var e=ge();if(Oe(103),ze(24)){var t=nt();return Ye(R.createMetaProperty(103,t),e)}var r,n=vn(ge(),Tn(),!1);228===n.kind&&(r=n.typeArguments,n=n.expression);var i=20===ye()?Sn():void 0;return Ye(R.createNewExpression(n,r,i),e)})();case 43:case 68:if(13===(C=s.reScanSlashToken()))return jt();break;case 15:return Mt(!1);case 80:return ot()}return rt(e.Diagnostics.Expression_expected)}function Cn(){return 25===ye()?(()=>{var e=ge();Oe(25);var t=Jr();return Ye(R.createSpreadElement(t),e)})():27===ye()?Ye(R.createOmittedExpression(),ge()):Jr()}function kn(){return Z(20480,Cn)}function An(){var e=ge(),t=s.getTokenPos(),r=Oe(22),n=s.hasPrecedingLineBreak(),i=At(15,Cn);return Ke(22,23,r,t),Ye(R.createArrayLiteralExpression(i,n),e)}function Nn(){var e=ge(),t=he();if(We(25)){var r=Jr();return z(Ye(R.createSpreadAssignment(r),e),t)}var n=_i(),i=mi();if(st(136))return li(e,t,n,i,172);if(st(149))return li(e,t,n,i,173);var a,o=We(41),s=Ie(),c=at(),l=We(57),u=We(53);if(o||20===ye()||29===ye())return oi(e,t,n,i,o,c,l,u);if(s&&58!==ye()){var d=We(63),p=d?te(Jr):void 0;(a=R.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{Oe(58);var _=te(Jr);a=R.createPropertyAssignment(c,_)}return a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,z(Ye(a,e),t)}function wn(){var e=ge(),t=s.getTokenPos(),r=Oe(18),n=s.hasPrecedingLineBreak(),i=At(12,Nn,!0);return Ke(18,19,r,t),Ye(R.createObjectLiteralExpression(i,n),e)}function Fn(){var t=le();Y(!1);var r=ge(),n=he(),i=mi();Oe(98);var a=We(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,Pn):o?ee(8192,Pn):s?ie(Pn):Pn(),l=Xt(),u=rr(o|s),d=er(58,!1),p=On(o|s);return Y(t),z(Ye(R.createFunctionExpression(i,a,c,l,u,d,p),r),n)}function Pn(){return Pe()?tt():void 0}function In(t,r){var n=ge(),i=he(),a=s.getTokenPos(),o=Oe(18,r);if(o||t){var c=s.hasPrecedingLineBreak(),l=St(1,Jn);Ke(18,19,o,a);var u=z(Ye(R.createBlock(l,c),n),i);return 63===ye()&&(de(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),xe()),u}return l=wt(),z(Ye(R.createBlock(l,void 0),n),i)}function On(e,t){var r=oe();X(!!(1&e));var n=ue();Q(!!(2&e));var i=L;L=!1;var a=le();a&&Y(!1);var o=In(!!(16&e),t);return a&&Y(!0),L=i,X(r),Q(n),o}function Mn(e){var t=ge(),r=he();Oe(246===e?81:86);var n=$e()?void 0:rt();return qe(),z(Ye(246===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function Rn(){return 82===ye()?(()=>{var e=ge(),t=he();Oe(82);var r=te(zr);Oe(58);var n=St(3,Jn);return z(Ye(R.createCaseClause(r,n),e),t)})():(()=>{var e=ge();Oe(88),Oe(58);var t=St(3,Jn);return Ye(R.createDefaultClause(t),e)})()}function Ln(){return xe(),e.tokenIsIdentifierOrKeyword(ye())&&!s.hasPrecedingLineBreak()}function Bn(){return xe(),84===ye()&&!s.hasPrecedingLineBreak()}function jn(){return xe(),98===ye()&&!s.hasPrecedingLineBreak()}function Un(){return xe(),(e.tokenIsIdentifierOrKeyword(ye())||8===ye()||9===ye()||10===ye())&&!s.hasPrecedingLineBreak()}function Vn(){for(;;)switch(ye()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 152:return xe(),!s.hasPrecedingLineBreak()&&Ie();case 141:case 142:return xe(),!s.hasPrecedingLineBreak()&&(Ie()||10===ye());case 126:case 131:case 135:case 121:case 122:case 123:case 145:if(xe(),s.hasPrecedingLineBreak())return!1;continue;case 157:return xe(),18===ye()||79===ye()||93===ye();case 100:return xe(),10===ye()||41===ye()||18===ye()||e.tokenIsIdentifierOrKeyword(ye());case 93:var t=xe();if(152===t&&(t=we(xe)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:xe();continue;default:return!1}}function Kn(){return we(Vn)}function zn(){switch(ye()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Kn()||we(pr);case 85:case 93:return Kn();case 131:case 135:case 118:case 141:case 142:case 152:case 157:return!0;case 123:case 121:case 122:case 124:case 145:return Kn()||!we(Ln);default:return Kr()}}function Wn(){return xe(),Pe()||18===ye()||22===ye()}function Jn(){switch(ye()){case 26:return t=ge(),r=he(),Oe(26),z(Ye(R.createEmptyStatement(),t),r);case 18:return In(!1);case 113:return ii(ge(),he(),void 0,void 0);case 119:if(we(Wn))return ii(ge(),he(),void 0,void 0);break;case 98:return ai(ge(),he(),void 0,void 0);case 84:return yi(ge(),he(),void 0,void 0);case 99:return(()=>{var e=ge(),t=he();Oe(99);var r=s.getTokenPos(),n=Oe(20),i=te(zr);Ke(20,21,n,r);var a=Jn(),o=ze(91)?Jn():void 0;return z(Ye(R.createIfStatement(i,a,o),e),t)})();case 90:return(()=>{var e=ge(),t=he();Oe(90);var r=Jn();Oe(115);var n=s.getTokenPos(),i=Oe(20),a=te(zr);return Ke(20,21,i,n),ze(26),z(Ye(R.createDoStatement(r,a),e),t)})();case 115:return(()=>{var e=ge(),t=he();Oe(115);var r=s.getTokenPos(),n=Oe(20),i=te(zr);Ke(20,21,n,r);var a=Jn();return z(Ye(R.createWhileStatement(i,a),e),t)})();case 97:return(()=>{var e=ge(),t=he();Oe(97);var r,n,i=We(132);if(Oe(20),26!==ye()&&(r=113===ye()||119===ye()||85===ye()?ri(!0):ee(4096,zr)),i?Oe(160):ze(160)){var a=te(Jr);Oe(21),n=R.createForOfStatement(i,r,a,Jn())}else if(ze(101))a=te(zr),Oe(21),n=R.createForInStatement(r,a,Jn());else{Oe(26);var o=26!==ye()&&21!==ye()?te(zr):void 0;Oe(26);var s=21!==ye()?te(zr):void 0;Oe(21),n=R.createForStatement(r,o,s,Jn())}return z(Ye(n,e),t)})();case 86:return Mn(245);case 81:return Mn(246);case 105:return(()=>{var e=ge(),t=he();Oe(105);var r=$e()?void 0:te(zr);return qe(),z(Ye(R.createReturnStatement(r),e),t)})();case 116:return(()=>{var e=ge(),t=he();Oe(116);var r=s.getTokenPos(),n=Oe(20),i=te(zr);Ke(20,21,n,r);var a=ee(33554432,Jn);return z(Ye(R.createWithStatement(i,a),e),t)})();case 107:return(()=>{var e=ge(),t=he();Oe(107),Oe(20);var r=te(zr);Oe(21);var n=(()=>{var e=ge();Oe(18);var t=St(2,Rn);return Oe(19),Ye(R.createCaseBlock(t),e)})();return z(Ye(R.createSwitchStatement(r,n),e),t)})();case 109:return(()=>{var e=ge(),t=he();Oe(109);var r=s.hasPrecedingLineBreak()?void 0:te(zr);return void 0===r&&(w++,r=Ye(R.createIdentifier(""),ge())),Ge()||je(r),z(Ye(R.createThrowStatement(r),e),t)})();case 111:case 83:case 96:return(()=>{var t=ge(),r=he();Oe(111);var n,i=In(!1),a=83===ye()?(()=>{var e,t=ge();Oe(83),ze(20)?(e=ti(),Oe(21)):e=void 0;var r=In(!1);return Ye(R.createCatchClause(e,r),t)})():void 0;return a&&96!==ye()||(Oe(96,e.Diagnostics.catch_or_finally_expected),n=In(!1)),z(Ye(R.createTryStatement(i,a,n),t),r)})();case 87:return(()=>{var e=ge(),t=he();return Oe(87),qe(),z(Ye(R.createDebuggerStatement(),e),t)})();case 59:return $n();case 131:case 118:case 152:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 145:case 157:if(Kn())return $n()}var t,r;return(()=>{var t,r=ge(),n=he(),i=20===ye(),a=te(zr);return e.isIdentifier(a)&&ze(58)?t=R.createLabeledStatement(a,Jn()):(Ge()||je(a),t=R.createExpressionStatement(a),i&&(n=!1)),z(Ye(t,r),n)})()}function Hn(e){return 135===e.kind}function $n(){var t=e.some(we((()=>(_i(),mi()))),Hn);if(t){var r=ee(16777216,(()=>{var e=Tt(P);if(e)return Ct(e)}));if(r)return r}var n=ge(),i=he(),a=_i(),o=mi();if(t){for(var s=0,c=o;s<c.length;s++)c[s].flags|=16777216;return ee(16777216,(()=>Gn(n,i,a,o)))}return Gn(n,i,a,o)}function Gn(t,r,n,i){switch(ye()){case 113:case 119:case 85:return ii(t,r,n,i);case 98:return ai(t,r,n,i);case 84:return yi(t,r,n,i);case 118:return((e,t,r,n)=>{Oe(118);var i=rt(),a=Xt(),o=bi(),s=_r();return z(Ye(R.createInterfaceDeclaration(r,n,i,a,o,s),e),t)})(t,r,n,i);case 152:return((e,t,r,n)=>{Oe(152);var i=rt(),a=Xt();Oe(63);var o=138===ye()&&Fe(br)||jr();return qe(),z(Ye(R.createTypeAliasDeclaration(r,n,i,a,o),e),t)})(t,r,n,i);case 92:return((e,t,r,n)=>{Oe(92);var i,a=rt();return Oe(18)?(i=Z(40960,(()=>At(6,Ti))),Oe(19)):i=wt(),z(Ye(R.createEnumDeclaration(r,n,a,i),e),t)})(t,r,n,i);case 157:case 141:case 142:return((e,t,r,n)=>{var i=0;if(157===ye())return Ai(e,t,r,n);if(ze(142))i|=16;else if(Oe(141),10===ye())return Ai(e,t,r,n);return ki(e,t,r,n,i)})(t,r,n,i);case 100:return((e,t,r,n)=>{Oe(100);var i,a=s.getStartPos();Ie()&&(i=rt());var o,c=!1;if(156===ye()||"type"!==(null==i?void 0:i.escapedText)||!Ie()&&41!==ye()&&18!==ye()||(c=!0,i=Ie()?rt():void 0),i&&27!==ye()&&156!==ye())return((e,t,r,n,i,a)=>{Oe(63);var o=146===ye()&&we(Ni)?(()=>{var e=ge();Oe(146),Oe(20);var t=Oi();return Oe(21),Ye(R.createExternalModuleReference(t),e)})():Pt(!1);return qe(),z(Ye(R.createImportEqualsDeclaration(r,n,a,i,o),e),t)})(e,t,r,n,i,c);(i||41===ye()||18===ye())&&(o=((e,t,r)=>{var n;return e&&!ze(27)||(n=41===ye()?(()=>{var e=ge();Oe(41),Oe(127);var t=rt();return Ye(R.createNamespaceImport(t),e)})():Mi(269)),Ye(R.createImportClause(r,e,n),t)})(i,a,c),Oe(156));var l,u=Oi();return 129!==ye()||s.hasPrecedingLineBreak()||(l=Ii()),qe(),z(Ye(R.createImportDeclaration(r,n,o,u,l),e),t)})(t,r,n,i);case 93:switch(xe(),ye()){case 88:case 63:return((e,t,r,n)=>{var i,a=ue();Q(!0),ze(63)?i=!0:Oe(88);var o=Jr();return qe(),Q(a),z(Ye(R.createExportAssignment(r,n,i,o),e),t)})(t,r,n,i);case 127:return((e,t,r,n)=>{Oe(127),Oe(142);var i=rt();qe();var a=R.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,z(Ye(a,e),t)})(t,r,n,i);default:return((e,t,r,n)=>{var i,a,o,c=ue();Q(!0);var l=ze(152),u=ge();return ze(41)?(ze(127)&&(i=(e=>Ye(R.createNamespaceExport(nt()),e))(u)),Oe(156),a=Oi()):(i=Mi(273),(156===ye()||10===ye()&&!s.hasPrecedingLineBreak())&&(Oe(156),a=Oi())),a&&129===ye()&&!s.hasPrecedingLineBreak()&&(o=Ii()),qe(),Q(c),z(Ye(R.createExportDeclaration(r,n,l,i,a,o),e),t)})(t,r,n,i)}default:if(n||i){var a=Qe(276,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function qn(e,t){if(18===ye()||!$e())return On(e,t);qe()}function Xn(){var e=ge();if(27===ye())return Ye(R.createOmittedExpression(),e);var t=We(25),r=Zn(),n=Wr();return Ye(R.createBindingElement(t,void 0,r,n),e)}function Yn(){var e,t=ge(),r=We(25),n=Pe(),i=at();n&&58!==ye()?(e=i,i=void 0):(Oe(58),e=Zn());var a=Wr();return Ye(R.createBindingElement(r,i,e,a),t)}function Qn(){return 18===ye()||22===ye()||80===ye()||Pe()}function Zn(e){return 22===ye()?(()=>{var e=ge();Oe(22);var t=At(10,Xn);return Oe(23),Ye(R.createArrayBindingPattern(t),e)})():18===ye()?(()=>{var e=ge();Oe(18);var t=At(9,Yn);return Oe(19),Ye(R.createObjectBindingPattern(t),e)})():tt(e)}function ei(){return ti(!0)}function ti(t){var r,n=ge(),i=he(),a=Zn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&79===a.kind&&53===ye()&&!s.hasPrecedingLineBreak()&&(r=He());var o=Ur(),c=Zr(ye())?void 0:Wr();return z(Ye(R.createVariableDeclaration(a,r,o,c),n),i)}function ri(t){var r,n=ge(),i=0;switch(ye()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(xe(),160===ye()&&we(ni))r=wt();else{var a=se();q(t),r=At(8,t?ti:ei),q(a)}return Ye(R.createVariableDeclarationList(r,i),n)}function ni(){return gt()&&21===xe()}function ii(e,t,r,n){var i=ri(!1);qe();var a=R.createVariableStatement(n,i);return a.decorators=r,z(Ye(a,e),t)}function ai(t,r,n,i){var a=ue(),o=e.modifiersToFlags(i);Oe(98);var s=We(41),c=512&o?Pn():tt(),l=s?1:0,u=256&o?2:0,d=Xt();1&o&&Q(!0);var p=rr(l|u),_=er(58,!1),f=qn(l|u,e.Diagnostics.or_expected);return Q(a),z(Ye(R.createFunctionDeclaration(n,i,s,c,d,p,_,f),t),r)}function oi(t,r,n,i,a,o,s,c,l){var u=a?1:0,d=e.some(i,e.isAsyncModifier)?2:0,p=Xt(),_=rr(u|d),f=er(58,!1),m=qn(u|d,l),g=R.createMethodDeclaration(n,i,a,o,s,p,_,f,m);return g.exclamationToken=c,z(Ye(g,t),r)}function si(t,r,n,i,a,o){var c=o||s.hasPrecedingLineBreak()?void 0:We(53),l=Ur(),u=Z(45056,Wr);return((t,r,n)=>{if(59!==ye()||s.hasPrecedingLineBreak())return 20===ye()?(de(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void xe()):void(!r||$e()?Ge()||(n?de(e.Diagnostics._0_expected,e.tokenToString(26)):je(t)):n?de(e.Diagnostics._0_expected,e.tokenToString(26)):de(e.Diagnostics.Expected_for_property_initializer));de(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)})(a,l,u),z(Ye(R.createPropertyDeclaration(n,i,a,o||c,l,u),t),r)}function ci(t,r,n,i){var a=We(41),o=at(),s=We(57);return a||20===ye()||29===ye()?oi(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):si(t,r,n,i,o,s)}function li(e,t,r,n,i){var a=at(),o=Xt(),s=rr(0),c=er(58,!1),l=qn(0),u=172===i?R.createGetAccessorDeclaration(r,n,a,s,c,l):R.createSetAccessorDeclaration(r,n,a,s,l);return u.typeParameters=o,c&&173===u.kind&&(u.type=c),z(Ye(u,e),t)}function ui(){var t;if(59===ye())return!0;for(;e.isModifierKind(ye());){if(t=ye(),e.isClassMemberModifier(t))return!0;xe()}if(41===ye())return!0;if(it()&&(t=ye(),xe()),22===ye())return!0;if(void 0!==t){if(!e.isKeyword(t)||149===t||136===t)return!0;switch(ye()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return $e()}}return!1}function di(){if(ue()&&132===ye()){var t=ge(),r=rt(e.Diagnostics.Expression_expected);return xe(),En(t,vn(t,r,!0))}return sn()}function pi(){var e=ge();if(ze(59)){var t=ee(16384,di);return Ye(R.createDecorator(t),e)}}function _i(){for(var t,r,n=ge();r=pi();)t=e.append(t,r);return t&&Xe(t,n)}function fi(t,r,n){var i=ge(),a=ye();if(85===ye()&&t){if(!Fe(ct))return}else{if(r&&124===ye()&&we(wi))return;if(n&&124===ye())return;if(!e.isModifierKind(ye())||!Fe(lt))return}return Ye(R.createToken(a),i)}function mi(t,r){for(var n,i,a=ge(),o=!1;i=fi(t,r,o);)124===i.kind&&(o=!0),n=e.append(n,i);return n&&Xe(n,a)}function gi(){var e;if(131===ye()){var t=ge();xe(),e=Xe([Ye(R.createToken(131),t)],t)}return e}function hi(){var t=ge();if(26===ye())return xe(),Ye(R.createSemicolonClassElement(),t);var r=he(),n=_i(),i=mi(!0,!0);if(124===ye()&&we(wi))return((e,t,r,n)=>{Je(124);var i=(()=>{var e=oe(),t=ue();X(!1),Q(!0);var r=In(!1);return X(e),Q(t),r})();return z(Ye(R.createClassStaticBlockDeclaration(r,n,i),e),t)})(t,r,n,i);if(st(136))return li(t,r,n,i,172);if(st(149))return li(t,r,n,i,173);if(134===ye()||10===ye()){var a=((t,r,n,i)=>Fe((()=>{if(134===ye()?Oe(134):10===ye()&&20===we(xe)?Fe((()=>{var e=jt();return"constructor"===e.text?e:void 0})):void 0){var a=Xt(),o=rr(0),s=er(58,!1),c=qn(0,e.Diagnostics.or_expected),l=R.createConstructorDeclaration(n,i,o,c);return l.typeParameters=a,l.type=s,z(Ye(l,t),r)}})))(t,r,n,i);if(a)return a}if(ar())return sr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ye())||10===ye()||8===ye()||41===ye()||22===ye()){if(e.some(i,Hn)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=16777216;return ee(16777216,(()=>ci(t,r,n,i)))}return ci(t,r,n,i)}if(n||i){var c=Qe(79,!0,e.Diagnostics.Declaration_expected);return si(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function yi(e,t,r,n){return vi(e,t,r,n,257)}function vi(t,r,n,i,a){var o=ue();Oe(84);var s=!Pe()||117===ye()&&we(ht)?void 0:et(Pe()),c=Xt();e.some(i,e.isExportModifier)&&Q(!0);var l,u=bi();return Oe(18)?(l=St(5,hi),Oe(19)):l=wt(),Q(o),z(Ye(257===a?R.createClassDeclaration(n,i,s,c,u,l):R.createClassExpression(n,i,s,c,u,l),t),r)}function bi(){if(Di())return St(22,xi)}function xi(){var t=ge(),r=ye();e.Debug.assert(94===r||117===r),xe();var n=At(7,Ei);return Ye(R.createHeritageClause(r,n),t)}function Ei(){var e=ge(),t=sn();if(228===t.kind)return t;var r=Si();return Ye(R.createExpressionWithTypeArguments(t,r),e)}function Si(){return 29===ye()?Ft(20,jr,29,31):void 0}function Di(){return 94===ye()||117===ye()}function Ti(){var e=ge(),t=he(),r=at(),n=te(Wr);return z(Ye(R.createEnumMember(r,n),e),t)}function Ci(){var e,t=ge();return Oe(18)?(e=St(1,Jn),Oe(19)):e=wt(),Ye(R.createModuleBlock(e),t)}function ki(e,t,r,n,i){var a=16&i,o=rt(),s=ze(24)?ki(ge(),!1,void 0,void 0,4|a):Ci();return z(Ye(R.createModuleDeclaration(r,n,o,s,i),e),t)}function Ai(e,t,r,n){var i,a,o=0;return 157===ye()?(i=rt(),o|=1024):(i=jt()).text=Ze(i.text),18===ye()?a=Ci():qe(),z(Ye(R.createModuleDeclaration(r,n,i,a,o),e),t)}function Ni(){return 20===xe()}function wi(){return 18===xe()}function Fi(){return 43===xe()}function Pi(){var t=ge(),r=e.tokenIsIdentifierOrKeyword(ye())?nt():Vt(10);Oe(58);var n=Jr();return Ye(R.createAssertEntry(r,n),t)}function Ii(t){var r=ge();t||Oe(129);var n=s.getTokenPos();if(Oe(18)){var i=s.hasPrecedingLineBreak(),a=At(24,Pi,!0);if(!Oe(19)){var o=e.lastOrUndefined(y);o&&o.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(o,e.createDetachedDiagnostic(u,n,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ye(R.createAssertClause(a,i),r)}return a=Xe([],ge(),void 0,!1),Ye(R.createAssertClause(a,!1),r)}function Oi(){if(10===ye()){var e=jt();return e.text=Ze(e.text),e}return zr()}function Mi(e){var t=ge();return Ye(269===e?R.createNamedImports(Ft(23,Li,18,19)):R.createNamedExports(Ft(23,Ri,18,19)),t)}function Ri(){var e=he();return z(Bi(275),e)}function Li(){return Bi(270)}function Bi(t){var r,n=ge(),i=e.isKeyword(ye())&&!Ie(),a=s.getTokenPos(),o=s.getTextPos(),c=!1,l=!0,u=nt();if("type"===u.escapedText)if(127===ye()){var d=nt();if(127===ye()){var p=nt();e.tokenIsIdentifierOrKeyword(ye())?(c=!0,r=d,u=_(),l=!1):(r=u,u=p,l=!1)}else e.tokenIsIdentifierOrKeyword(ye())?(r=u,l=!1,u=_()):(c=!0,u=d)}else e.tokenIsIdentifierOrKeyword(ye())&&(c=!0,u=_());return l&&127===ye()&&(r=u,Oe(127),u=_()),270===t&&i&&_e(a,o,e.Diagnostics.Identifier_expected),Ye(270===t?R.createImportSpecifier(c,r,u):R.createExportSpecifier(c,r,u),n);function _(){return i=e.isKeyword(ye())&&!Ie(),a=s.getTokenPos(),o=s.getTextPos(),nt()}}!(e=>{e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.AssertEntries=24]="AssertEntries",e[e.Count=25]="Count"})(Me||(Me={})),(e=>{e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"})(Re||(Re={})),(t=>{function r(e){var t=ge(),r=(e?ze:Oe)(18),n=ee(8388608,Gt);e&&!r||Ve(19);var i=R.createJSDocTypeExpression(n);return H(i),Ye(i,t)}function n(){for(var e=ge(),t=ze(18),r=ge(),n=Pt(!1);80===ye();)Ce(),Ee(),n=Ye(R.createJSDocMemberName(n,rt()),r);t&&Ve(19);var i=R.createJSDocNameReference(n);return H(i),Ye(i,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=_,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var c,l,d,f,m,g=[],h=[];return s.scanRange(t+3,i-5,(()=>{var r,n,i=1,u=t-(a.lastIndexOf("\n",t)+1)+4;function p(e){r||(r=u),g.push(e),u+=e.length}for(Ee();J(5););J(4)&&(i=0,u=0);e:for(;;){switch(ye()){case 59:0===i||1===i?(v(g),m||(m=ge()),(n=S(u))&&(c?c.push(n):(c=[n],l=n.pos),d=n.end),i=0,r=void 0):p(s.getTokenText());break;case 4:g.push(s.getTokenText()),i=0,u=0;break;case 41:var _=s.getTokenText();1===i||2===i?(i=2,p(_)):(i=1,u+=_.length);break;case 5:var b=s.getTokenText();2===i?g.push(b):void 0!==r&&u+b.length>r&&g.push(b.slice(r-u)),u+=b.length;break;case 1:break e;case 18:i=2;var x=s.getStartPos(),E=k(s.getTextPos()-1);if(E){f||y(g),h.push(Ye(R.createJSDocText(g.join("")),null!=f?f:t,x)),h.push(E),g=[],f=s.getTextPos();break}default:i=2,p(s.getTokenText())}Ee()}v(g),h.length&&g.length&&h.push(Ye(R.createJSDocText(g.join("")),null!=f?f:t,m)),h.length&&c&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var D=c&&Xe(c,l,d);return Ye(R.createJSDocComment(h.length?Xe(h,t,m):g.length?g.join(""):void 0,D),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(Ee(),1===ye())return!0;if(5!==ye()&&4!==ye())return!1}}function x(){if(5!==ye()&&4!==ye()||!we(b))for(;5===ye()||4===ye();)Ee()}function E(){if((5===ye()||4===ye())&&we(b))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===ye()||5===ye()||4===ye();)r+=s.getTokenText(),4===ye()?(e=!0,t=!0,r=""):41===ye()&&(e=!1),Ee();return t?r:""}function S(t){e.Debug.assert(59===ye());var i=s.getTokenPos();Ee();var a,o=H(void 0),l=E();switch(o.escapedText){case"author":a=((t,r,n,i)=>{var a=ge(),o=(()=>{for(var e=[],t=!1,r=s.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),r=Ee()}return R.createJSDocText(e.join(""))})(),c=s.getStartPos(),l=D(t,c,n,i);l||(c=s.getStartPos());var u="string"!=typeof l?Xe(e.concatenate([Ye(o,a,c)],l),a):o.text+l;return Ye(R.createJSDocAuthorTag(r,u),t)})(i,o,t,l);break;case"implements":a=((e,t,r,n)=>{var i=M();return Ye(R.createJSDocImplementsTag(t,i,D(e,ge(),r,n)),e)})(i,o,t,l);break;case"augments":case"extends":a=((e,t,r,n)=>{var i=M();return Ye(R.createJSDocAugmentsTag(t,i,D(e,ge(),r,n)),e)})(i,o,t,l);break;case"class":case"constructor":a=L(i,R.createJSDocClassTag,o,t,l);break;case"public":a=L(i,R.createJSDocPublicTag,o,t,l);break;case"private":a=L(i,R.createJSDocPrivateTag,o,t,l);break;case"protected":a=L(i,R.createJSDocProtectedTag,o,t,l);break;case"readonly":a=L(i,R.createJSDocReadonlyTag,o,t,l);break;case"override":a=L(i,R.createJSDocOverrideTag,o,t,l);break;case"deprecated":W=!0,a=L(i,R.createJSDocDeprecatedTag,o,t,l);break;case"this":a=((e,t,n,i)=>{var a=r(!0);return x(),Ye(R.createJSDocThisTag(t,a,D(e,ge(),n,i)),e)})(i,o,t,l);break;case"enum":a=((e,t,n,i)=>{var a=r(!0);return x(),Ye(R.createJSDocEnumTag(t,a,D(e,ge(),n,i)),e)})(i,o,t,l);break;case"arg":case"argument":case"param":return I(i,o,2,t);case"return":case"returns":a=((t,r,n,i)=>{e.some(c,e.isJSDocReturnTag)&&_e(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=F();return Ye(R.createJSDocReturnTag(r,a,D(t,ge(),n,i)),t)})(i,o,t,l);break;case"template":a=((e,t,n,i)=>{var a=18===ye()?r():void 0,o=(()=>{var e=ge(),t=[];do{x();var r=z();void 0!==r&&t.push(r),E()}while(J(27));return Xe(t,e)})();return Ye(R.createJSDocTemplateTag(t,a,o,D(e,ge(),n,i)),e)})(i,o,t,l);break;case"type":a=O(i,o,t,l);break;case"typedef":a=((t,r,n,i)=>{var a,o=F();E();var s=B();x();var c,l=T(n);if(!o||P(o.type)){for(var d=void 0,p=void 0,_=void 0,f=!1;d=Fe((()=>U(n)));)if(f=!0,343===d.kind){if(p){var m=de(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);m&&e.addRelatedInfo(m,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else _=e.append(_,d);if(f){var g=o&&183===o.type.kind,h=R.createJSDocTypeLiteral(_,g);c=(o=p&&p.typeExpression&&!P(p.typeExpression.type)?p.typeExpression:Ye(h,t)).end}}return c=c||void 0!==l?ge():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=D(t,c,n,i)),Ye(R.createJSDocTypedefTag(r,o,s,l),t,c)})(i,o,t,l);break;case"callback":a=((t,r,n,i)=>{var a=B();x();var o=T(n),s=(t=>{for(var r,n,i=ge();r=Fe((()=>V(4,t)));)n=e.append(n,r);return Xe(n||[],i)})(n),c=Fe((()=>{if(J(59)){var e=S(n);if(e&&341===e.kind)return e}})),l=Ye(R.createJSDocSignature(void 0,s,c),t);o||(o=D(t,ge(),n,i));var u=void 0!==o?ge():l.end;return Ye(R.createJSDocCallbackTag(r,l,a,o),t,u)})(i,o,t,l);break;case"see":a=((t,r,i,a)=>{var o=22===ye()||we((()=>59===Ee()&&e.tokenIsIdentifierOrKeyword(Ee())&&N(s.getTokenValue())))?void 0:n(),c=void 0!==i&&void 0!==a?D(t,ge(),i,a):void 0;return Ye(R.createJSDocSeeTag(r,o,c),t)})(i,o,t,l);break;default:a=((e,t,r,n)=>Ye(R.createJSDocUnknownTag(t,D(e,ge(),r,n)),e))(i,o,t,l)}return a}function D(e,t,r,n){return n||(r+=t-e),T(r,n.slice(r))}function T(e,t){var r,n,i=ge(),a=[],o=[],c=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),c=1);var d=ye();e:for(;;){switch(d){case 4:c=0,a.push(s.getTokenText()),e=0;break;case 59:if(3===c||2===c&&(!l||we(C))){a.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===c||3===c)u(s.getTokenText());else{var p=s.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:c=2;var _=s.getStartPos(),f=k(s.getTextPos()-1);f?(o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=s.getTextPos()):u(s.getTokenText());break;case 61:c=3===c?2:3,u(s.getTokenText());break;case 41:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),u(s.getTokenText())}l=5===ye(),d=Ee()}return y(a),v(a),o.length?(a.length&&o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i)),Xe(o,i,s.getTextPos())):a.length?a.join(""):void 0}function C(){var e=Ee();return 5===e||4===e}function k(t){var r=Fe(A);if(r){Ee(),x();var n=ge(),i=e.tokenIsIdentifierOrKeyword(ye())?Pt(!0):void 0;if(i)for(;80===ye();)Ce(),Ee(),i=Ye(R.createJSDocMemberName(i,rt()),n);for(var a=[];19!==ye()&&4!==ye()&&1!==ye();)a.push(s.getTokenText()),Ee();return Ye(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,s.getTextPos())}}function A(){if(E(),18===ye()&&59===Ee()&&e.tokenIsIdentifierOrKeyword(Ee())){var t=s.getTokenValue();if(N(t))return t}}function N(e){return"link"===e||"linkcode"===e||"linkplain"===e}function F(){return E(),18===ye()?r():void 0}function P(t){switch(t.kind){case 148:return!0;case 183:return P(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function I(t,r,n,i){var a=F(),o=!a;E();var s=(()=>{var t=J(22);t&&x();var r=J(61),n=(()=>{var e=H();for(ze(22)&&Oe(23);ze(24);){var t=H();ze(22)&&Oe(23),e=It(e,t)}return e})();return r&&((e=>{if(61===ye())return t=ge(),r=ye(),Ee(),Ye(R.createToken(r),t);var t,r})()||Qe(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(x(),We(63)&&zr(),Oe(23)),{name:n,isBracketed:t}})(),c=s.name,l=s.isBracketed,u=E();o&&!we(A)&&(a=F());var d=D(t,ge(),i,u),p=4!==n&&((t,r,n,i)=>{if(t&&P(t.type)){for(var a=ge(),o=void 0,s=void 0;o=Fe((()=>V(n,i,r)));)340!==o.kind&&347!==o.kind||(s=e.append(s,o));if(s){var c=Ye(R.createJSDocTypeLiteral(s,183===t.type.kind),a);return Ye(R.createJSDocTypeExpression(c),a)}}})(a,c,n,i);return p&&(a=p,o=!0),Ye(1===n?R.createJSDocPropertyTag(r,c,l,a,o,d):R.createJSDocParameterTag(r,c,l,a,o,d),t)}function O(t,n,i,a){e.some(c,e.isJSDocTypeTag)&&_e(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?D(t,ge(),i,a):void 0;return Ye(R.createJSDocTypeTag(n,o,l),t)}function M(){var e=ze(18),t=ge(),r=(()=>{for(var e=ge(),t=H();ze(24);){var r=H();t=Ye(R.createPropertyAccessExpression(t,r),e)}return t})(),n=Si(),i=Ye(R.createExpressionWithTypeArguments(r,n),t);return e&&Oe(19),i}function L(e,t,r,n,i){return Ye(t(r,D(e,ge(),n,i)),e)}function B(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ye())){var n=H();if(ze(24)){var i=B(!0);return Ye(R.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function j(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function U(e){return V(1,e)}function V(t,r,n){for(var i=!0,a=!1;;)switch(Ee()){case 59:if(i){var o=K(t,r);return!(o&&(340===o.kind||347===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!j(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function K(t,r){e.Debug.assert(59===ye());var n=s.getStartPos();Ee();var i,a=H();switch(x(),a.escapedText){case"type":return 1===t&&O(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&I(n,a,t,r)}function z(){var t=ge(),r=J(22);r&&x();var n,i=H(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),Oe(63),n=ee(8388608,Gt),Oe(23)),!e.nodeIsMissing(i))return Ye(R.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function J(e){return ye()===e&&(Ee(),!0)}function H(t){if(!e.tokenIsIdentifierOrKeyword(ye()))return Qe(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=s.getTokenPos(),n=s.getTextPos(),i=ye(),a=Ze(s.getTokenValue()),o=Ye(R.createIdentifier(a,void 0,i),r,n);return Ee(),o}}t.parseJSDocTypeExpressionForTests=(t,n,i)=>{U("file.js",t,99,void 0,1),s.setText(t,n,i),C=s.scan();var a=r(),o=$("file.js",99,1,!1,[],R.createToken(1),0,e.noop),c=e.attachFileToDiagnostics(y,o);return v&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(v,o)),V(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=(t,r,n)=>{U("",t,99,void 0,1);var i=ee(8388608,(()=>o(r,n))),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(y,a);return V(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=(t,r,n)=>{var i=C,a=y.length,s=B,c=ee(8388608,(()=>o(r,n)));return e.setParent(c,t),262144&O&&(v||(v=[]),v.push.apply(v,y)),C=i,y.length=a,B=s,c},(e=>{e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"})(i||(i={})),(e=>{e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"})(a||(a={}))})(Le=t.JSDocParser||(t.JSDocParser={}))})(c||(c={})),(t=>{function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),y(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++)l(p[d]);a(t,c)}function u(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++)l(n[r])}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=t=>{e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++)i(o[a]);y(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(y(t,(function t(a){if(!e.nodeIsMissing(a))return a.pos<=r?(a.pos>=i.pos&&(i=a),r<a.end?(y(a,t),!0):(e.Debug.assert(a.end<=r),void(n=a))):(e.Debug.assert(a.pos>r),!0)})),n){var a=(t=>{for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}})(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function l(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:o=>(o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||(e=>{return r=void 0,n=-1,i=void 0,void y(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(y(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return y(c,a,o),!0}}return!1}})(o)),a=o,e.Debug.assert(!i||i.pos===o),i)}}var u;t.updateSourceFile=(t,n,u,d)=>{if(s(t,n,u,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return c.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind,t.setExternalModuleIndicator);var p=t;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,c.fixupParentReferences(p);var _=t.text,f=l(t),m=((t,r)=>{for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)})(t,u);s(t,n,m,d),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;!((t,n,o,s,c,l,u,d)=>{return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var f=t.end;if(f>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),y(t,p,_),e.hasJSDocNodes(t))for(var m=0,g=t.jsDoc;m<g.length;m++)p(g[m]);a(t,d)}else e.Debug.assert(f<n)}}function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++)p(f[_])}else e.Debug.assert(a<n)}}})(p,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,_,n,d);var h=c.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind,t.setExternalModuleIndicator);return h.commentDirectives=((t,r,n,i,a,o,s,c)=>{if(!t)return r;for(var l,u=!1,d=0,p=t;d<p.length;d++){var _=p[d],f=_.range,m=_.type;if(f.end<n)l=e.append(l,_);else if(f.pos>i){h();var g={range:{pos:f.pos+a,end:f.end+a},type:m};l=e.append(l,g),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(g.range.pos,g.range.end))}}return h(),l;function h(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}})(t.commentDirectives,h.commentDirectives,m.span.start,e.textSpanEnd(m.span),g,_,n,d),h.impliedNodeFormat=t.impliedNodeFormat,h},t.createSyntaxCursor=l,(e=>{e[e.Value=-1]="Value"})(u||(u={}))})(l||(l={})),e.isDeclarationFileName=E,e.processCommentPragmas=S,e.processPragmasIntoFields=D;var T=new e.Map;function C(e){if(T.has(e))return T.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return T.set(e,t),t}var k=/^\/\/\/\s*<(\S+)\s.*?\/>/im,A=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function N(t,r,n){var i=2===r.kind&&k.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c<l.length;c++){var u=l[c],d=C(u.name).exec(n);if(!d&&!u.optional)return;if(d){var p=d[2]||d[3];if(u.captureSpan){var _=r.pos+d.index+d[1].length+1;s[u.name]={value:p,pos:_,end:_+p.length}}else s[u.name]=p}}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&A.exec(n);if(f)return w(t,r,2,f);if(3===r.kind)for(var m=/@(\S+)(\s+.*)?$/gim,g=void 0;g=m.exec(n);)w(t,r,4,g)}}function w(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=((t,r)=>{if(!r)return{};if(!t.args)return{};for(var n=e.trimString(r).split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i})(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function F(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&F(e.expression,t.expression))}e.tagNamesAreEquivalent=F})(p),(e=>{e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var t=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(t.entries(),(e=>{var t=e[0];return[""+e[1],t]}))));var r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=r.map((e=>e[0])),e.libMap=new e.Map(r),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:De},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:De},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0};var n,i=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node16:e.ModuleKind.Node16,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0},{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node16:e.ModuleResolutionKind.Node16,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:e.Diagnostics.Editor_Support},{name:"moduleDetection",type:new e.Map(e.getEntries({auto:e.ModuleDetectionKind.Auto,legacy:e.ModuleDetectionKind.Legacy,force:e.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:e.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:e.Diagnostics.Language_and_Environment,defaultValueDescription:e.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules}];function a(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(e=>{r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function o(){return n||(n=a(e.optionDeclarations))}e.optionDeclarations=f(f([],e.commonOptionsWithBuild,!0),i,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsSemanticDiagnostics)),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsEmit)),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsModuleResolution)),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((e=>!!e.affectsProgramStructure)),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((t=>e.hasProperty(t,"transpileOptionValue"))),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=f(f([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],e.createOptionNameMap=a,e.getOptionsNameMap=o;var s,c={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:E};function l(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function u(t){return d(t,e.createCompilerDiagnostic)}function d(t,r){var n=e.arrayFrom(t.type.keys()).map((e=>"'".concat(e,"'"))).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(t.name),n)}function p(t,r,n){return he(t,e.trimString(r||""),n)}function _(t,r,n){if(void 0===r&&(r=""),r=e.trimString(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(e=>ge(t.element,parseInt(e),n)));case"string":return e.mapDefined(i,(e=>ge(t.element,e||"",n)));default:return e.mapDefined(i,(e=>p(t.element,e,n)))}}}function g(e){return e.name}function h(t,r,n,i){var a;if(null===(a=r.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return n(r.alternateMode.diagnostic,t);var o=e.getSpellingSuggestion(t,r.optionDeclarations,g);return o?n(r.unknownDidYouMeanDiagnostic,i||t,o.name):n(r.unknownOptionDiagnostic,i||t)}function y(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),d=x(t.getOptionsNameMap,u,!0);if(d)n=v(r,n,t,d,a,s);else{var p=x(M.getOptionsNameMap,u,!0);p?n=v(r,n,M,p,i||(i={}),s):s.push(h(u,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(t){var r=C(t,n||(t=>e.sys.readFile(t)));if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function v(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ge(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,K(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=_(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=p(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return x(o,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function E(){return s||(s=a(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=l,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=p,e.parseListTypeOption=_,e.parseCommandLineWorker=y,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:c,getOptionsNameMap:o,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=(t,r)=>y(e.compilerOptionsDidYouMeanDiagnostics,t,r),e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:o},getOptionsNameMap:E,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function D(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function T(t,r){var n=C(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function C(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,g)}e.parseBuildCommand=t=>{var r=y(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=(t,r,n,i,a,o)=>{var s=C(t,(e=>n.readFile(e)));if(e.isString(s)){var c=e.parseJsonText(t,s),l=n.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Q(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),r,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=(t,r)=>{var n=C(t,r);return e.isString(n)?D(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=D,e.readJsonConfigFile=T,e.tryReadFile=C;var A,N={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function w(){return A||(A=a(e.optionsForWatch))}var F,P,I,O,M={getOptionsNameMap:w,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function R(){return F||(F=k(e.optionDeclarations))}function L(){return P||(P=k(e.optionsForWatch))}function B(){return I||(I=k(e.typeAcquisitionDeclarations))}function j(t,r,n,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=n?(void 0===O&&(O={name:void 0,type:"object",elementOptions:k([{name:"compilerOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:L(),extraKeyDiagnostics:M},{name:"typingOptions",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"typeAcquisition",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),O):void 0;if(o&&205!==o.kind){if(r.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(t,c,r,!0,s,i)}return{}}return V(t,o,r,!0,s,i)}function U(e,t){var r;return V(e,null===(r=e.statements[0])||void 0===r?void 0:r.expression,t,!0,void 0,void 0)}function V(t,r,n,i,a,o){return r?l(r,a):i?{}:void 0;function s(e){return a&&a.elementOptions===e}function c(r,a,c,d){for(var p=i?{}:void 0,_=r=>{if(296!==r.kind)return n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_assignment_expected)),"continue";r.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,r.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(r.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,e.Diagnostics.String_literal_with_double_quotes_expected));var _=e.isComputedNonLiteralName(r.name)?void 0:e.getTextOfPropertyName(r.name),f=_&&e.unescapeLeadingUnderscores(_),m=f&&a?a.get(f):void 0;f&&c&&!m&&(a?n.push(h(f,c,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r.name,n,i,a)))):n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,c.unknownOptionDiagnostic,f)));var g=l(r.initializer,m);if(void 0!==f&&(i&&(p[f]=g),o&&(d||s(a)))){var y=z(m,g);d?y&&o.onSetValidOptionKeyValueInParent(d,m,g):s(a)&&(y?o.onSetValidOptionKeyValueInRoot(f,r.name,g,r.initializer):m||o.onSetUnknownOptionKeyValueInRoot(f,r.name,g,r.initializer))}},f=0,m=r.properties;f<m.length;f++)_(m[f]);return p}function l(r,a){var o;switch(r.kind){case 110:return h(a&&"boolean"!==a.type),g(!0);case 95:return h(a&&"boolean"!==a.type),g(!1);case 104:return h(a&&"extends"===a.name),g(null);case 10:u(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),h(a&&e.isString(a.type)&&"string"!==a.type);var s=r.text;if(a&&!e.isString(a.type)){var p=a;p.type.has(s.toLowerCase())||(n.push(d(p,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)))),o=!0)}return g(s);case 8:return h(a&&"number"!==a.type),g(Number(r.text));case 219:if(40!==r.operator||8!==r.operand.kind)break;return h(a&&"number"!==a.type),g(-Number(r.operand.text));case 205:h(a&&"object"!==a.type);var _=r;if(a){var m=a;return g(c(_,m.elementOptions,m.extraKeyDiagnostics,m.name))}return g(c(_,void 0,void 0,void 0));case 204:return h(a&&"list"!==a.type),g(((t,r)=>{if(i)return e.filter(t.map((e=>l(e,r))),(e=>void 0!==e));t.forEach((e=>l(e,r)))})(r.elements,a&&a.element))}return void(a?h(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(i){var s;if(!o){var c=null===(s=null==a?void 0:a.extraValidation)||void 0===s?void 0:s.call(a,i);if(c)return void n.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,f([t,r],c,!1)))}return i}function h(i){i&&(n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,K(a))),o=!0)}}function u(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function K(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function z(t,r){return!!t&&(!!ee(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function W(t){return m({},e.arrayFrom(t.entries()).reduce(((e,t)=>{var r;return m(m({},e),((r={})[t[0]]=t[1],r))}),{}))}function J(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function H(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?H(e.element):e.type}function $(t,r){return e.forEachEntry(r,((e,r)=>{if(e===t)return r}))}function G(e,t){return q(e,o(),t)}function q(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=r=>{if(e.hasProperty(t,r)){if(i.has(r)&&(i.get(r).category===e.Diagnostics.Command_line_Options||i.get(r).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var l=H(c);l?"list"===c.type?a.set(r,s.map((e=>$(e,l)))):a.set(r,$(s,l)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function X(t){return G(e.extend(t,e.defaultInitCompilerOptions))}function Y(e,t,r){if(e&&!ee(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function Q(t,r,n,i,a,o,s,c,l){null===e.tracing||void 0===e.tracing||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:t.fileName});var u=re(void 0,t,r,n,i,l,a,o,s,c);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),u}function Z(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function ee(e){return null==e}function te(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function re(t,r,n,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var d=[],p=oe(t,r,n,i,s,c,d,u),_=p.raw,f=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var g=(()=>{var t=b("references",(e=>"object"==typeof e),"object"),n=y(v("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(_,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(r,"files"),(e=>e.initializer)),u=l?e.createDiagnosticForNodeInSourceFile(r,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,f,m=y(v("include")),g=v("exclude"),h=y(g);if("no-prop"===g&&_.compilerOptions){var E=_.compilerOptions.outDir,S=_.compilerOptions.declarationDir;(E||S)&&(h=[E,S].filter((e=>!!e)))}return void 0===n&&void 0===m&&(m=["**/*"]),m&&(p=Se(m,d,!0,r,"include")),h&&(f=Se(h,d,!1,r,"exclude")),{filesSpecs:n,includeSpecs:m,excludeSpecs:h,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:f,pathPatterns:void 0}})();r&&(r.configFileSpecs=g),Z(f,r);var h=e.normalizePath(s?te(s,i):i);return{options:f,watchOptions:m,fileNames:(e=>{var t=be(g,e,f,n,l);return ie(t,ae(_),c)&&d.push(ne(g,s)),t})(h),projectReferences:(t=>{var r,n=b("references",(e=>"object"==typeof e),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r})(h),typeAcquisition:p.typeAcquisition||ue(),raw:_,errors:d,wildcardDirectories:Te(g,h,n.useCaseSensitiveFileNames),compileOnSave:!!_.compileOnSave};function y(t){return e.isArray(t)?t:void 0}function v(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(_,t)&&!ee(_[t])){if(e.isArray(_[t])){var a=_[t];return r||e.every(a,n)||d.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function x(t,n,i){r||d.push(e.createCompilerDiagnostic(t,n,i))}}function ne(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function ie(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function ae(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function oe(t,r,n,a,o,s,c,l){var u;a=e.normalizeSlashes(a);var d=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(d)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,f(f([],s,!0),[d],!1).join(" -> "))),{raw:t||U(r,c)};var p=t?((t,r,n,i,a)=>{e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=le(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),l=((e,t,r)=>pe(L(),e,t,void 0,M,r))(t.watchOptions,n,a);if(t.compileOnSave=((t,r,n)=>{if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=_e(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i})(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,n):n;o=se(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}})(t,n,a,o,c):((t,r,n,a,o)=>{var s,c,l,u,d,p=ce(a),_={onSetValidOptionKeyValueInParent(t,r,i){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(a));break;case"typingOptions":o=c||(c=ue(a));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,i)},onSetValidOptionKeyValueInRoot(i,s,c,l){switch(i){case"extends":var d=a?te(a,n):n;return void(u=se(c,r,d,o,((r,n)=>e.createDiagnosticForNodeInSourceFile(t,l,r,n))))}},onSetUnknownOptionKeyValueInRoot(r,n,a,s){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(i,(e=>e.name===r))&&(d=e.append(d,n))}},f=j(t,o,!0,_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(a)),d&&f&&void 0===f.compilerOptions&&o.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0]))),{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}})(r,n,a,o,c);if((null===(u=p.options)||void 0===u?void 0:u.paths)&&(p.options.pathsBasePath=a),p.extendedConfigPath){s=s.concat([d]);var _=((t,r,n,i,a,o)=>{var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):((l=T(r,(e=>n.readFile(e)))).parseDiagnostics.length||(u=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)})(r,p.extendedConfigPath,n,s,c,l);if(_&&_.options){var m,g=_.raw,h=p.raw,y=t=>{!h[t]&&g[t]&&(h[t]=e.map(g[t],(t=>e.isRootedDiskPath(t)?t:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t))))};y("include"),y("exclude"),y("files"),void 0===h.compileOnSave&&(h.compileOnSave=g.compileOnSave),p.options=e.assign({},_.options,p.options),p.watchOptions=p.watchOptions&&_.watchOptions?e.assign({},_.watchOptions,p.watchOptions):p.watchOptions||_.watchOptions}}return p}function se(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return pe(R(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=ue(n),a=l(e);return pe(B(),a,t,i,N,r),i}function pe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=_e(c,r[s],n,o):o.push(h(s,a,e.createCompilerDiagnostic))}return i}}function _e(t,r,n,i){if(z(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return((t,r,n,i)=>e.filter(e.map(r,(e=>_e(t.element,e,n,i))),(e=>!!t.listPreserveFalsyValues||!!e)))(t,r,n,i);if(!e.isString(a))return he(t,r,i);var o=ge(t,r,i);return ee(o)?o:me(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,K(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(e=>fe(i.element,r,e))),(e=>!!i.listPreserveFalsyValues||!!e)):n}return e.isString(t.type)?me(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function me(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function he(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(u(e))}}e.convertToObject=U,e.convertToObjectWorker=V,e.convertToTSConfig=(t,r,n)=>{var i,a,o,s=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),c=e.map(e.filter(t.fileNames,(null===(a=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs)?((t,r,n,i)=>{if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?e=>!(s.test(e)&&!o.test(e)):e=>!s.test(e):o?e=>o.test(e):e.returnTrue})(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(t=>e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s))),l=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),u=t.watchOptions&&q(t.watchOptions,w());return m(m({compilerOptions:m(m({},W(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:u&&W(u),references:e.map(t.projectReferences,(e=>m(m({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:e.length(c)?c:void 0},(null===(o=t.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:J(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getCompilerOptionsDiffValue=(t,r)=>{var n,a,o=X(t);return n=[],a=Array(3).join(" "),i.forEach((t=>{if(o.has(t.name)){var r=o.get(t.name),i=Ae(t);r!==i?n.push("".concat(a).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(a).concat(t.name,": ").concat(i))}})),n.join(r)+r},e.generateTSConfig=(t,r,n)=>{var i=X(t);return(()=>{for(var t=e.createMultiMap(),s=0,c=e.optionDeclarations;s<c.length;s++){var l=c[s],u=l.category;o(l)&&t.add(e.getLocaleSpecificMessage(u),l)}var d=0,p=0,_=[];t.forEach(((t,r)=>{0!==_.length&&_.push({value:""}),_.push({value:"/* ".concat(r," */")});for(var n=0,a=t;n<a.length;n++){var o,s=a[n];o=i.has(s.name)?'"'.concat(s.name,'": ').concat(JSON.stringify(i.get(s.name))).concat((p+=1)===i.size?"":","):'// "'.concat(s.name,'": ').concat(JSON.stringify(Ae(s)),","),_.push({value:o,description:"/* ".concat(s.description&&e.getLocaleSpecificMessage(s.description)||s.name," */")}),d=Math.max(o.length,d)}}));var f=a(2),m=[];m.push("{"),m.push("".concat(f,'"compilerOptions": {')),m.push("".concat(f).concat(f,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),m.push("");for(var g=0,h=_;g<h.length;g++){var y=h[g],v=y.value,b=y.description,x=void 0===b?"":b;m.push(v&&"".concat(f).concat(f).concat(v).concat(x&&a(d-v.length+2)+x))}if(r.length){m.push("".concat(f,"},")),m.push("".concat(f,'"files": ['));for(var E=0;E<r.length;E++)m.push("".concat(f).concat(f).concat(JSON.stringify(r[E])).concat(E===r.length-1?"":","));m.push("".concat(f,"]"))}else m.push("".concat(f,"}"));return m.push("}"),m.join(n)+n})();function a(e){return Array(e+1).join(" ")}function o(t){var r=t.category,n=t.name,a=t.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!a&&void 0!==r&&(!o.includes(r)||i.has(n))}},e.convertToOptionsWithAbsolutePaths=(t,r)=>{var n={},i=o().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=Y(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=(e,t,r,n,i,a,o,s,c)=>re(e,void 0,t,r,n,c,i,a,o,s),e.parseJsonSourceFileConfigFileContent=Q,e.setConfigFileInOptions=Z,e.canJsonReportNoInputFiles=ae,e.updateErrorForNoInputFiles=(t,r,n,i,a)=>{var o=i.length;return ie(t,a)?i.push(ne(n,r)):e.filterMutate(i,(t=>!(t=>t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)(t))),o!==i.length},e.convertCompilerOptionsFromJson=(e,t,r)=>{var n=[];return{options:le(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=(e,t,r)=>{var n=[];return{options:de(e,t,n,r),errors:n}},e.convertJsonOption=_e;var ye=/(^|\/)\*\*\/?$/,ve=/^[^*?]*(?=\/[^/]*[*?])/;function be(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=t.validatedFilesSpec,p=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),m=e.getSupportedExtensionsWithJsonIfResolveJsonModule(n,f);if(d)for(var g=0,h=d;g<h.length;g++){var y=h[g],v=e.getNormalizedAbsolutePath(y,r);c.set(s(v),v)}if(p&&p.length>0)for(var b=t=>{if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((t=>e.endsWith(t,".json"))),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(e=>"^".concat(e,"$")));o=a?a.map((t=>e.getRegexFromPattern(t,i.useCaseSensitiveFileNames))):e.emptyArray}if(-1!==e.findIndex(o,(e=>e.test(t)))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(((t,r,n,i,a)=>{var o=e.forEach(i,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(!o)return!1;for(var s=0,c=o;s<c.length;s++){var l=c[s];if(e.fileExtensionIs(t,l))return!1;var u=a(e.changeExtension(t,l));if(r.has(u)||n.has(u)){if(".d.ts"===l&&(e.fileExtensionIs(t,".js")||e.fileExtensionIs(t,".jsx")))continue;return!0}}return!1})(t,c,l,f,s))return"continue";!((t,r,n,i)=>{var a=e.forEach(n,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(a)for(var o=a.length-1;o>=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}})(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},x=0,E=i.readDirectory(r,e.flatten(m),_,p,void 0);x<E.length;x++)b(v=E[x]);var S=e.arrayFrom(c.values()),D=e.arrayFrom(l.values());return S.concat(D,e.arrayFrom(u.values()))}function xe(t){var r=e.startsWith(t,"**/")?0:t.indexOf("/**/");return-1!==r&&(e.endsWith(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function Ee(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((t=>{if(!e.isString(t))return!1;var i=De(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function De(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:xe(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Te(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u<d.length;u++){var p=d[u],_=e.normalizePath(e.combinePaths(r,p));if(!s||!s.test(_)){var f=Ce(_,n);if(f){var m=f.key,g=f.flags,h=c[m];(void 0===h||h<g)&&(c[m]=g,1===g&&l.push(m))}}}for(var m in c)if(e.hasProperty(c,m))for(var y=0,v=l;y<v.length;y++){var b=v[y];m!==b&&e.containsPath(b,m,r,!n)&&delete c[m]}}return c}function Ce(t,r){var n=ve.exec(t);if(n){var i=t.indexOf("?"),a=t.indexOf("*"),o=t.lastIndexOf(e.directorySeparator);return{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(t.substring(t.lastIndexOf(e.directorySeparator)+1)))return{key:e.removeTrailingDirectorySeparator(r?t:e.toFileNameLowerCase(t)),flags:1}}function ke(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((e=>ke(e,n))):"";default:return e.forEachEntry(r.type,((e,r)=>{if(e===t)return r}))}}function Ae(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":var r=t.defaultValueDescription;return t.isFilePath?"./".concat(r&&"string"==typeof r?r:""):"";case"list":return[];case"object":return{};default:var n=t.type.keys().next();return n.done?e.Debug.fail("Expected 'option.type' to have entries."):n.value}}e.getFileNamesFromConfigSpecs=be,e.isExcludedFile=(t,r,n,i,a)=>{var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var l=e.createGetCanonicalFileName(i);if(o)for(var u=0,d=o;u<d.length;u++){var p=d[u];if(l(e.getNormalizedAbsolutePath(p,n))===t)return!1}return Ee(t,c,i,a,n)},e.matchesExclude=(t,r,n,i)=>Ee(t,e.filter(r,(e=>!xe(e))),n,i),e.convertCompilerOptionsForTelemetry=e=>{var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=b(r);void 0!==n&&(t[r]=ke(e[r],n))}return t}})(p),(e=>{function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function i(e){return n(void 0,e)}function a(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var o,s;function c(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function l(e,t,r,n,i){var a;return i?((a=i.failedLookupLocations).push.apply(a,r),i):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r,resolutionDiagnostics:n}}function u(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function d(r,n,i,a){var o=u(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function p(e,t,r){return d(e,"typings",t,r)||d(e,"types",t,r)}function _(e,t,r){return d(e,"main",t,r)}function g(r,n){var i=((r,n)=>{var i=u(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i})(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=h(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(s,"']"),"object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function h(t){for(var r in s||(s=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(s))return{version:r,paths:t[r]}}}function y(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?((t,r)=>{return r.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),(t=>{var i=e.combinePaths(t,b);r.directoryExists(i)&&(n||(n=[])).push(i)})),n):[e.combinePaths(t,b)];var n})(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,(e=>{e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",e[e.TsOnly=5]="TsOnly"})(o||(o={})),e.getPackageJsonTypesVersionsPaths=h,e.getEffectiveTypeRoots=y;var v,b=e.combinePaths("node_modules","@types");function x(t,r,n){var i="function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return 0===e.comparePaths(t,r,!i)}function E(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16?v.Node16Default:e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext?v.NodeNextDefault:v.None}function S(t){var r=new e.Map,n=new e.Map;return{getOwnMap:()=>r,redirectsMap:n,getOrCreateMapOfCacheRedirects(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);return o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o)),o},clear(){r.clear(),n.clear()},setOwnOptions(e){t=e},setOwnMap(e){r=e}}}function D(t,r){var n;return{getPackageJsonInfo:i=>null==n?void 0:n.get(e.toPath(i,t,r)),setPackageJsonInfo(i,a){(n||(n=new e.Map)).set(e.toPath(i,t,r),a)},clear(){n=void 0},entries(){var t=null==n?void 0:n.entries();return t?e.arrayFrom(t):[]}}}function T(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function C(t,r,n){if(t.configFile){if(0===r.redirectsMap.size)e.Debug.assert(!n||0===n.redirectsMap.size),e.Debug.assert(0===r.getOwnMap().size),e.Debug.assert(!n||0===n.getOwnMap().size),r.redirectsMap.set(t.configFile.path,r.getOwnMap()),null==n||n.redirectsMap.set(t.configFile.path,n.getOwnMap());else{e.Debug.assert(!n||n.redirectsMap.size>0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function k(t,r,n){return{getOrCreateCacheForDirectory(i,a){var o=e.toPath(i,t,r);return T(n,a,o,(()=>A()))},clear(){n.clear()},update(e){C(e,n)}}}function A(){var t=new e.Map,r=new e.Map,n={get:(e,r)=>t.get(i(e,r)),set:(e,r,a)=>(t.set(i(e,r),a),n),delete:(e,r)=>(t.delete(i(e,r)),n),has:(e,r)=>t.has(i(e,r)),forEach:e=>t.forEach(((t,n)=>{var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)})),size:()=>t.size};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function N(r,n,i,a,o){var s=((r,n,i,a)=>{var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),pe(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)})(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?((r,n,i,a,o)=>{if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u<d.length;u++){var p=d[u],_=e.normalizePath(p);e.endsWith(_,e.directorySeparator)||(_+=e.directorySeparator);var f=e.startsWith(l,_)&&(void 0===c||c.length<_.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,l,f),f&&(c=_,s=p)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var m=l.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,l);var g=a(r,l,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,y=o.compilerOptions.rootDirs;h<y.length;h++)if((p=y[h])!==s){var v=e.combinePaths(e.normalizePath(p),m);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,p,v);var b=e.getDirectoryPath(v),x=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}})(r,n,i,a,o):((r,n,i,a)=>{var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));return a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s),i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}})(r,n,a,o)}e.resolveTypeReferenceDirective=(n,i,a,s,l,u,d)=>{e.Debug.assert("string"==typeof n,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");var p=r(a,s);l&&(a=l.commandLine.options);var _=i?e.getDirectoryPath(i):void 0,f=_?u&&u.getOrCreateCacheForDirectory(_,l):void 0,m=f&&f.get(n,d);if(m)return p&&(t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,i),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName),t(s,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,_),P(m)),m;var g=y(a,s);p&&(void 0===i?void 0===g?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,g):void 0===g?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,g),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName));var h=[],b=E(a);d!==e.ModuleKind.ESNext||e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeNext||(b|=v.EsmMode);var S,D=b&v.Exports?b&v.EsmMode?["node","import","types"]:["node","require","types"]:[],T=[],C={compilerOptions:a,host:s,traceEnabled:p,failedLookupLocations:h,packageJsonInfoCache:u,features:b,conditions:D,requestContainingDirectory:_,reportDiagnostic(e){T.push(e)}},k=(()=>{if(g&&g.length)return p&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,g.join(", ")),e.firstDefined(g,(r=>{var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),l=e.directoryProbablyExists(a,s);return!l&&p&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),c(X(o.DtsOnly,i,!l,C))}));p&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)})(),A=!0;if(k||(k=(()=>{var r=i&&e.getDirectoryPath(i);if(void 0!==r){var a;if(p&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r),e.isExternalModuleNameRelative(n)){var l=L(r,n).path;a=j(o.DtsOnly,l,!1,C,!0)}else{var u=ce(o.DtsOnly,n,r,C,void 0,void 0);a=u&&u.value}return c(a)}p&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)})(),A=!1),k){var N=k.fileName,w=k.packageId,F=a.preserveSymlinks?N:B(N,s,p);S={primary:A,resolvedFileName:F,originalPath:x(N,F,s)?void 0:N,packageId:w,isExternalLibraryImport:U(N)}}return m={resolvedTypeReferenceDirective:S,failedLookupLocations:h,resolutionDiagnostics:T},null==f||f.set(n,d,m),p&&P(m),m;function P(r){var i;(null===(i=r.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?r.resolvedTypeReferenceDirective.packageId?t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,r.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(r.resolvedTypeReferenceDirective.packageId),r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,r.resolvedTypeReferenceDirective.resolvedFileName,r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},e.resolvePackageNameToPackageJson=(t,n,i,a,o)=>{var s={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:[],packageJsonInfoCache:null==o?void 0:o.getPackageJsonInfoCache(),conditions:e.emptyArray,features:v.None,requestContainingDirectory:n,reportDiagnostic:e.noop};return e.forEachAncestorDirectory(n,(r=>{if("node_modules"!==e.getBaseFileName(r)){var n=e.combinePaths(r,"node_modules");return Z(e.combinePaths(n,t),!1,s)}}))},e.getAutomaticTypeDirectiveNames=(t,r)=>{if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=y(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,l=r.getDirectories(s);c<l.length;c++){var u=l[c],d=e.normalizePath(u),p=e.combinePaths(s,d,"package.json");if(!r.fileExists(p)||null!==e.readJson(p,r).typings){var _=e.getBaseFileName(d);46!==_.charCodeAt(0)&&n.push(_)}}}}return n},e.createCacheWithRedirects=S,e.createModeAwareCache=A,e.zipToModeAwareCache=(t,r,n)=>{e.Debug.assert(r.length===n.length);for(var i=A(),a=0;a<r.length;++a){var o=r[a],s=e.isString(o)?o:o.fileName.toLowerCase(),c=e.isString(o)?e.getModeForResolutionAtIndex(t,a):o.resolutionMode||t.impliedNodeFormat;i.set(s,c,n[a])}return i},e.createModuleResolutionCache=(t,r,n,i,a)=>{var o=k(t,r,i||(i=S(n)));a||(a=S(n));var s=D(t,r);return m(m(m({},s),o),{getOrCreateCacheForModuleName:(t,r,n)=>(e.Debug.assert(!e.isExternalModuleNameRelative(t)),T(a,n,void 0===r?t:"".concat(r,"|").concat(t),c)),clear(){o.clear(),a.clear(),s.clear()},update(e){C(e,i,a)},getPackageJsonInfoCache:()=>s});function c(){var n=new e.Map;return{get:i=>n.get(e.toPath(i,t,r)),set(i,a){var o=e.toPath(i,t,r);if(!n.has(o)){n.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&((n,i)=>{for(var a=e.toPath(e.getDirectoryPath(i),t,r),o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===n.length&&(a.length===o||a[o]===e.directorySeparator))return n;var c=e.getRootLength(n);if(!(o<c)){var l=n.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return n.substr(0,Math.max(l,c))}})(o,s),l=o;l!==c;){var u=e.getDirectoryPath(l);if(u===l||n.has(u))break;n.set(u,a),l=u}}}}}},e.createTypeReferenceDirectiveResolutionCache=(e,t,r,n,i)=>{var a=k(e,t,i||(i=S(r)));return n||(n=D(e,t)),m(m(m({},n),a),{clear(){a.clear(),n.clear()}})},e.resolveModuleNameFromCache=(t,r,n,i)=>{var a=e.getDirectoryPath(r),o=n&&n.getOrCreateCacheForDirectory(a);if(o)return o.get(t,i)},e.resolveModuleName=(n,i,a,o,s,c,l)=>{var u=r(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var d=e.getDirectoryPath(i),p=s&&s.getOrCreateCacheForDirectory(d,c),_=p&&p.get(n,l);if(_)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,d);else{var f=a.moduleResolution;if(void 0===f){switch(e.getEmitModuleKind(a)){case e.ModuleKind.CommonJS:f=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:f=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:f=e.ModuleResolutionKind.NodeNext;break;default:f=e.ModuleResolutionKind.Classic}u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])}else u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]);switch(e.perfLogger.logStartResolveModule(n),f){case e.ModuleResolutionKind.Node16:_=((e,t,r,n,i,a,o)=>O(v.Node16Default,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeNext:_=((e,t,r,n,i,a,o)=>O(v.NodeNextDefault,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeJs:_=M(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=he(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(f))}_&&_.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(n,'" resolved to "').concat(_.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),p&&(p.set(n,l,_),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,l,c).set(d,_))}return u&&(_.resolvedModule?_.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,_.resolvedModule.resolvedFileName,e.packageIdToString(_.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.resolveJSModule=(t,r,n)=>{var i=((t,r,n)=>R(v.None,t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,w,void 0))(t,r,n),a=i.resolvedModule,o=i.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '".concat(t,"' starting at '").concat(r,"'. Looked in: ").concat(o.join(", ")));return a.resolvedFileName},(e=>{e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.EsmMode=32]="EsmMode"})(v||(v={}));var w=[o.JavaScript],F=[o.TypeScript,o.JavaScript],P=f(f([],F,!0),[o.Json],!1),I=[o.TSConfig];function O(t,r,n,i,a,s,c,l){var u=e.getDirectoryPath(n),d=l===e.ModuleKind.ESNext?v.EsmMode:0,p=i.noDtsResolution?[o.TsOnly,o.JavaScript]:F;return i.resolveJsonModule&&(p=f(f([],p,!0),[o.Json],!1)),R(t|d,r,u,i,a,s,p,c)}function M(t,r,n,i,a,s,c){var l;return c?l=I:n.noDtsResolution?(l=[o.TsOnly],n.allowJs&&l.push(o.JavaScript),n.resolveJsonModule&&l.push(o.Json)):l=n.resolveJsonModule?P:F,R(v.None,t,e.getDirectoryPath(r),n,i,a,l,s)}function R(n,i,a,s,c,u,d,p){var _,f,g=r(s,c),h=[],y=n&v.EsmMode?["node","import","types"]:["node","require","types"];s.noDtsResolution&&y.pop();var b=[],E={compilerOptions:s,host:c,traceEnabled:g,failedLookupLocations:h,packageJsonInfoCache:u,features:n,conditions:y,requestContainingDirectory:a,reportDiagnostic(e){b.push(e)}},S=e.forEach(d,(r=>(r=>{var l,d=N(r,i,a,((e,t,r,n)=>j(e,t,r,n,!0)),E);if(d)return ye({resolved:d,isExternalLibraryImport:U(d.path)});if(e.isExternalModuleNameRelative(i)){var _=L(a,i),f=_.path,h=_.parts,y=j(r,f,!1,E,!0);return y&&ye({resolved:y,isExternalLibraryImport:e.contains(h,"node_modules")})}if(n&v.Imports&&e.startsWith(i,"#")&&(l=((r,n,i,a,o,s)=>{var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),ye(void 0);var u="function"==typeof a.host.useCaseSensitiveFileNames?a.host.useCaseSensitiveFileNames():a.host.useCaseSensitiveFileNames,d=e.toPath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c),e.createGetCanonicalFileName(void 0===u||u)),p=Q(d,a.packageJsonInfoCache,a.host,a.compilerOptions);return p?p.packageJsonContent.imports?ae(r,a,o,s,n,p.packageJsonContent.imports,p,!0)||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,p.packageDirectory),ye(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,p.packageDirectory),ye(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),ye(void 0))})(r,i,a,E,u,p)),!l&&n&v.SelfName&&(l=((t,r,n,i,a,o)=>{var s,c,l="function"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames():i.host.useCaseSensitiveFileNames,u=Q(e.toPath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s),e.createGetCanonicalFileName(void 0===l||l)),i.packageJsonInfoCache,i.host,i.compilerOptions);if(u&&u.packageJsonContent.exports&&"string"==typeof u.packageJsonContent.name){var d=e.getPathComponents(r),p=e.getPathComponents(u.packageJsonContent.name);if(e.every(p,((e,t)=>d[t]===e))){var _=d.slice(p.length);return ne(u,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}}})(r,i,a,E,u,p)),l||(g&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,o[r]),l=ce(r,i,a,E,u,p)),l){var b=l.value;if(!s.preserveSymlinks&&b&&!b.originalPath){var S=B(b.path,c,g),D=x(S,b.path,c)?void 0:b.path;b=m(m({},b),{path:S,originalPath:D})}return{value:b&&{resolved:b,isExternalLibraryImport:!0}}}})(r)));return l(null===(_=null==S?void 0:S.value)||void 0===_?void 0:_.resolved,null===(f=null==S?void 0:S.value)||void 0===f?void 0:f.isExternalLibraryImport,h,b,E.resultFromCache)}function L(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function B(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function j(r,i,a,s,c){if(s.traceEnabled&&t(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,o[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=W(r,i,a,s);if(u){var d=c?V(u.path):void 0;return n(d?Z(d,!1,s):void 0,u)}}if(a||e.directoryProbablyExists(i,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),!(s.features&v.EsmMode))return X(r,i,a,s,c)}function U(t){return e.stringContains(t,e.nodeModulesPathPart)}function V(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=K(r,i);return 64===r.charCodeAt(i)&&(a=K(r,a)),r.slice(0,a)}}function K(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function z(e,t,r,n){return i(W(e,t,r,n))}function W(t,r,n,i){if(t===o.Json||t===o.TSConfig){var a=e.tryRemoveExtension(r,".json"),s=a?r.substring(a.length):"";return void 0===a&&t===o.Json?void 0:$(a||r,t,s,n,i)}if(!(i.features&v.EsmMode)){var c=$(r,t,"",n,i);if(c)return c}return J(t,r,n,i)}function J(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),$(o,r,s,i,a)}}function H(t,r,n,i){return t!==o.TypeScript&&t!==o.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?J(t,r,n,i):void 0!==G(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function $(t,r,n,i,a){if(!i){var s=e.getDirectoryPath(t);s&&(i=!e.directoryProbablyExists(s,a.host))}switch(r){case o.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return l(".d.ts")}case o.TypeScript:case o.TsOnly:var c=r===o.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(c?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(c?l(".d.cts"):void 0);case".json":return t+=".json",c?l(".d.ts"):void 0;default:return l(".ts")||l(".tsx")||(c?l(".d.ts"):void 0)}case o.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case o.TSConfig:case o.Json:return l(".json")}function l(e){var r=G(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function G(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return q(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(e=>q(s+e+o,r,n)))}function q(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function X(e,t,r,i,a){void 0===a&&(a=!0);var o=a?Z(t,r,i):void 0;return n(o,ee(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function Y(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o<s.length;o++)l(s[o]);else if("object"==typeof r&&null!==r&&re(r))for(var c in r)l(r[c]);else l(r);return a;function l(r){var o,s;if("string"==typeof r&&e.startsWith(r,"./")&&-1===r.indexOf("*")){var c=e.getPathComponents(r).slice(2);if(c.indexOf("..")>=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,r),d=e.getNormalizedAbsolutePath(u,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=H(i,d,!1,n);if(p)return a=e.appendIfUnique(a,p,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(r)){for(var _=0,f=r;_<f.length;_++)if(l(f[_]))return!0}else if("object"==typeof r&&null!==r)return e.forEach(e.getOwnKeys(r),(t=>{if("default"===t||e.contains(n.conditions,t)||se(n.conditions,t))return l(r[t]),!0}))}}function Q(t,n,i,a){var o={host:i,compilerOptions:a,traceEnabled:r(a,i),failedLookupLocations:[],packageJsonInfoCache:n,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e.noop},s=e.getPathComponents(t);for(s.pop();s.length>0;){var c=Z(e.getPathFromPathComponents(s),!1,o);if(c)return c;s.pop()}}function Z(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),d):(d&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var p=e.directoryProbablyExists(r,c);if(p&&c.fileExists(u)){var _=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var f={packageDirectory:r,packageJsonContent:_,versionPaths:g(_,i),resolvedEntrypoints:void 0};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,f),f}p&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),i.failedLookupLocations.push(u)}}function ee(r,n,s,c,l,u){var f;if(l)switch(r){case o.JavaScript:case o.Json:case o.TsOnly:f=_(l,n,c);break;case o.TypeScript:f=p(l,n,c)||_(l,n,c);break;case o.DtsOnly:f=p(l,n,c);break;case o.TSConfig:f=((e,t,r)=>d(e,"tsconfig",t,r))(l,n,c);break;default:return e.Debug.assertNever(r)}var m=(r,n,a,s)=>{var c=G(n,a,s);if(c){var u=((t,r)=>{var n=e.tryGetExtensionFromPath(r);return void 0!==n&&((e,t)=>{switch(e){case o.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case o.TSConfig:case o.Json:return".json"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case o.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case o.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}})(t,n)?{path:r,ext:n}:void 0})(r,c);if(u)return i(u);s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}var d=r===o.DtsOnly?o.TypeScript:r,p=s.features;"module"!==(null==l?void 0:l.type)&&(s.features&=~v.EsmMode);var _=j(d,n,a,s,!1);return s.features=p,_},g=f?!e.directoryProbablyExists(e.getDirectoryPath(f),c.host):void 0,h=s||!e.directoryProbablyExists(n,c.host),y=e.combinePaths(n,r===o.TSConfig?"tsconfig":"index");if(u&&(!f||e.containsPath(n,f))){var b=e.getRelativePathFromDirectory(n,f||y,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var x=pe(r,b,n,u.paths,void 0,m,g||h,c);if(x)return a(x.value)}return f&&a(m(r,f,g,c))||(c.features&v.EsmMode?void 0:W(r,y,h,c))}function te(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function re(t){return e.every(e.getOwnKeys(t),(t=>e.startsWith(t,".")))}function ne(r,n,i,a,o,s){if(r.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.packageJsonContent.exports||Array.isArray(r.packageJsonContent.exports)||"object"==typeof r.packageJsonContent.exports&&(u=r.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(t=>e.startsWith(t,"."))))?c=r.packageJsonContent.exports:e.hasProperty(r.packageJsonContent.exports,".")&&(c=r.packageJsonContent.exports["."]),c)return oe(n,a,o,s,i,r,!1)(c,"",!1)}else if(re(r.packageJsonContent.exports)){if("object"!=typeof r.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ye(void 0);var l=ae(n,a,o,s,i,r.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ye(void 0)}}function ie(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function ae(t,r,n,i,a,o,s,c){var l=oe(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(_=o[a],"",!1);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),(t=>-1!==t.indexOf("*")||e.endsWith(t,"/"))),ie);u<d.length;u++){var p=d[u];if(r.features&v.ExportsPatternTrailers&&m(p,a)){var _=o[p],f=p.indexOf("*");return l(_,a.substring(p.substring(0,f).length,a.length-(p.length-1-f)),!0)}if(e.endsWith(p,"*")&&e.startsWith(a,p.substring(0,p.length-1)))return l(_=o[p],a.substring(p.length-1),!0);if(e.startsWith(a,p))return l(_=o[p],a.substring(p.length),!1)}function m(t,r){if(e.endsWith(t,"*"))return!1;var n=t.indexOf("*");return-1!==n&&e.startsWith(r,t.substring(0,n))&&e.endsWith(r,t.substring(n+1))}}function oe(r,i,a,s,c,l,u){return function d(p,_,f){if("string"==typeof p){if(!f&&_.length>0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var m=f?p.replace(/\*/g,_):p+_;return ye((T=R(i.features,m,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],s)).resolvedModule?{path:T.resolvedModule.resolvedFileName,extension:T.resolvedModule.extension,packageId:T.resolvedModule.packageId,originalPath:T.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0)}var g=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0);var h=e.combinePaths(l.packageDirectory,p),y=e.getPathComponents(_);if(y.indexOf("..")>=0||y.indexOf(".")>=0||y.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0);var v=C(f?h.replace(/\*/g,_):h+_);return((t,a,s,c)=>{var u,d,p,_;if((r===o.TypeScript||r===o.JavaScript||r===o.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!i.compilerOptions.configFile||e.startsWith(C(i.compilerOptions.configFile.fileName),l.packageDirectory))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:A}),m=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var g=C(e.getCommonSourceDirectory(i.compilerOptions,(()=>[]),(null===(d=(u=i.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",f));m.push(g)}else if(i.requestContainingDirectory){var h=C(e.combinePaths(i.requestContainingDirectory,"index.ts"));g=C(e.getCommonSourceDirectory(i.compilerOptions,(()=>[h,C(s)]),(null===(_=(p=i.host).getCurrentDirectory)||void 0===_?void 0:_.call(p))||"",f)),m.push(g);for(var y=e.ensureTrailingDirectorySeparator(g);y&&y.length>1;){var v=e.getPathComponents(y);v.pop();var b=e.getPathFromPathComponents(v);m.unshift(b),y=e.ensureTrailingDirectorySeparator(b)}}m.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(c?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,s));for(var x=0,E=m;x<E.length;x++)for(var S=E[x],D=0,T=j(S);D<T.length;D++){var N=T[D];if(e.startsWith(t,N))for(var w=t.slice(N.length+1),F=e.combinePaths(S,w),P=0,I=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];P<I.length;P++){var O=I[P];if(e.fileExtensionIs(F,O))for(var M=0,R=e.getPossibleOriginalInputExtensionForExtension(F);M<R.length;M++){var L=R[M],B=e.changeAnyExtension(F,L,O,!A());if(!(r===o.TypeScript&&e.hasJSFileExtension(B)||r===o.JavaScript&&e.hasTSFileExtension(B))&&i.host.fileExists(B))return ye(n(l,H(r,B,!1,i)))}}}}return;function j(e){var t,r,n=i.compilerOptions.configFile?(null===(r=(t=i.host).getCurrentDirectory)||void 0===r?void 0:r.call(t))||"":e,a=[];return i.compilerOptions.declarationDir&&a.push(C(k(n,i.compilerOptions.declarationDir))),i.compilerOptions.outDir&&i.compilerOptions.outDir!==i.compilerOptions.declarationDir&&a.push(C(k(n,i.compilerOptions.outDir))),a}})(v,_,e.combinePaths(l.packageDirectory,"package.json"),u)||ye(n(l,H(r,v,!1,i)))}if("object"==typeof p&&null!==p){if(!Array.isArray(p)){for(var b=0,x=e.getOwnKeys(p);b<x.length;b++){var E=x[b];if(("default"===E||i.conditions.indexOf(E)>=0||se(i.conditions,E))&&(T=d(p[E],_,f)))return T}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0);for(var S=0,D=p;S<D.length;S++){var T;if(T=d(D[S],_,f))return T}}else if(null===p)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,c),ye(void 0);return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),ye(void 0);function C(t){var r,n;return void 0===t?t:e.hostGetCanonicalFileName({useCaseSensitiveFileNames:A})(e.getNormalizedAbsolutePath(t,null===(n=(r=i.host).getCurrentDirectory)||void 0===n?void 0:n.call(r)))}function k(t,r){return e.ensureTrailingDirectorySeparator(e.combinePaths(t,r))}function A(){return!i.host.useCaseSensitiveFileNames||("boolean"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames:i.host.useCaseSensitiveFileNames())}}}function se(t,r){if(-1===t.indexOf("types"))return!1;if(!e.startsWith(r,"types@"))return!1;var n=e.VersionRange.tryParse(r.substring("types@".length));return!!n&&n.test(e.version)}function ce(e,t,r,n,i,a){return le(e,t,r,n,!1,i,a)}function le(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,0===i.features?void 0:i.features&v.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(n=>{if("node_modules"!==e.getBaseFileName(n))return ge(c,r,n,i)||ye(ue(t,r,n,i,a,o,s))}))}function ue(r,n,i,a,s,c,l){var u=e.combinePaths(i,"node_modules"),d=e.directoryProbablyExists(u,a.host);!d&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var p=s?void 0:de(r,n,u,d,a,c,l);if(p)return p;if(r===o.TypeScript||r===o.DtsOnly){var _=e.combinePaths(u,"@types"),f=d;return d&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),f=!1),de(o.DtsOnly,((r,n)=>{var i=fe(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i})(n,a),_,f,a,c,l)}}function de(r,a,o,s,c,l,u){var d=e.normalizePath(e.combinePaths(o,a)),p=Z(d,!s,c);if(!(c.features&v.Exports)&&p){var _=W(r,d,!s,c);if(_)return i(_);var f=ee(r,d,!s,c,p.packageJsonContent,p.versionPaths);return n(p,f)}var m=te(a),g=m.packageName,h=m.rest,y=(t,r,i,a)=>{var o;if(p&&p.packageJsonContent.exports&&a.features&v.Exports)return null===(o=ne(p,t,e.combinePaths(".",h),a,l,u))||void 0===o?void 0:o.value;var s=W(t,r,i,a)||ee(t,r,i,a,p&&p.packageJsonContent,p&&p.versionPaths);return!s&&p&&(void 0===p.packageJsonContent.exports||null===p.packageJsonContent.exports)&&a.features&v.EsmMode&&(s=W(t,e.combinePaths(r,"index.js"),i,a)),n(p,s)};if(""!==h){var b=e.combinePaths(o,g);if((p=Z(b,!s,c))&&p.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.versionPaths.version,e.version,h);var x=s&&e.directoryProbablyExists(b,c.host),E=pe(r,h,b,p.versionPaths.paths,void 0,y,!x,c);if(E)return E.value}}return y(r,d,!s,c)}function pe(r,n,a,o,s,c,l,u){s||(s=e.tryParsePatterns(o));var d=e.matchPatternOrExact(s,n);if(d){var p=e.isString(d)?void 0:e.matchedText(d,n),_=e.isString(d)?d:e.patternText(d);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(o[_],(n=>{var o=p?n.replace("*",p):n,s=e.normalizePath(e.combinePaths(a,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var d=e.tryGetExtensionFromPath(n);if(void 0!==d){var _=G(s,l,u);if(void 0!==_)return i({path:_,ext:d})}return c(r,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=M,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=U,e.parseNodeModuleFromPath=V,e.getEntrypointsFromPackageJsonInfo=(t,n,i,a,s)=>{if(!s&&void 0!==t.resolvedEntrypoints)return t.resolvedEntrypoints;var c,l=s?o.JavaScript:o.TypeScript,u=E(n),d={compilerOptions:n,host:i,traceEnabled:r(n,i),failedLookupLocations:[],packageJsonInfoCache:null==a?void 0:a.getPackageJsonInfoCache(),conditions:["node","require","types"],features:u,requestContainingDirectory:t.packageDirectory,reportDiagnostic:e.noop},p=ee(l,t.packageDirectory,!1,d,t.packageJsonContent,t.versionPaths);if(c=e.append(c,null==p?void 0:p.path),u&v.Exports&&t.packageJsonContent.exports)for(var _=0,f=[["node","import","types"],["node","require","types"]];_<f.length;_++){var g=f[_],h=m(m({},d),{failedLookupLocations:[],conditions:g}),y=Y(t,t.packageJsonContent.exports,h,l);if(y)for(var b=0,x=y;b<x.length;b++){var S=x[b];c=e.appendIfUnique(c,S.path)}}return t.resolvedEntrypoints=c||!1},e.getPackageScopeForPath=Q,e.getPackageJsonInfo=Z,e.parsePackageName=te,e.allKeysStartWithDot=re,e.isApplicableVersionedTypesKey=se;var _e="__";function fe(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,_e);if(r!==t)return r.slice(1)}return t}function me(t){return e.stringContains(t,_e)?"@"+t.replace(_e,e.directorySeparator):t}function ge(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function he(t,n,i,a,s,c){var u=r(i,a),d=[],p=e.getDirectoryPath(n),_=[],f={compilerOptions:i,host:a,traceEnabled:u,failedLookupLocations:d,packageJsonInfoCache:s,features:v.None,conditions:[],requestContainingDirectory:p,reportDiagnostic(e){_.push(e)}},m=g(o.TypeScript)||g(o.JavaScript);return l(m&&m.value,!1,d,_,f.resultFromCache);function g(r){var n=N(r,t,p,z,f);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(p,t));return ye(z(r,i,!1,f))}var a=s&&s.getOrCreateCacheForModuleName(t,void 0,c);return e.forEachAncestorDirectory(p,(n=>{var i=ge(a,t,n,f);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return ye(z(r,o,!1,f))}))||(r===o.TypeScript?((e,t,r)=>le(o.DtsOnly,e,t,r,!0,void 0,void 0))(t,p,f):void 0)}}function ye(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=e=>"@types/".concat(fe(e)),e.mangleScopedPackageName=fe,e.getPackageNameFromTypesPackageName=t=>{var r=e.removePrefix(t,"@types/");return r!==t?me(r):t},e.unmangleScopedPackageName=me,e.classicNameResolver=he,e.loadModuleFromGlobalCache=(n,i,a,s,c,u)=>{var d=r(a,s);d&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var p=[],_=[],f={compilerOptions:a,host:s,traceEnabled:d,failedLookupLocations:p,packageJsonInfoCache:u,features:v.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic(e){_.push(e)}};return l(ue(o.DtsOnly,n,c,f,!1,void 0,void 0),!0,p,_,f.resultFromCache)}})(p),(e=>{var t,r;function n(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?i(t.body,r):1}function i(t,r){void 0===r&&(r=new e.Map);var o=e.getNodeId(t);if(r.has(o))return r.get(o)||0;r.set(o,void 0);var s=((t,r)=>{switch(t.kind){case 258:case 259:return 0;case 260:if(e.isEnumConst(t))return 2;break;case 266:case 265:if(!e.hasSyntacticModifier(t,1))return 0;break;case 272:var o=t;if(!o.moduleSpecifier&&o.exportClause&&273===o.exportClause.kind){for(var s=0,c=0,l=o.exportClause.elements;c<l.length;c++){var u=a(l[c],r);if(u>s&&(s=u),1===s)return s}return s}break;case 262:var d=0;return e.forEachChild(t,(t=>{var n=i(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 261:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1})(t,r);return r.set(o,s),s}function a(t,r){for(var n=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,n)){l.parent||(e.setParent(l,a),e.setParentRecursive(l,!1));var u=i(l,r);if((void 0===o||u>o)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function o(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,(e=>{e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(t||(t={}));var s=(()=>{var t,r,i,a,s,d,p,_,g,h,y,v,b,x,E,S,D,T,C,k,A,N,w,F,P=!1,I=0,O={flags:1},M={flags:1},R=(()=>{return e.createBinaryExpressionTrampoline(((t,r)=>{if(r){r.stackIndex++,e.setParent(t,a);var n=N;Be(t);var i=a;a=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var o=t.operatorToken.kind;if(55===o||56===o||60===o||e.isLogicalOrCoalescingAssignmentOperator(o)){if(ue(t)){var s=Z();ve(t,s,s),y=ce(s)}else ve(t,E,S);r.skip=!0}return r}),((e,r,n)=>{if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),((e,t,r)=>{t.skip||Me(e)}),((e,r,n)=>{if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),((t,r)=>{if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ye(t.left),63===n&&207===t.left.kind&&Q(t.left.expression)&&(y=oe(256,y,t)))}var i=r.inStrictModeStack[r.stackIndex],o=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==o&&(a=o),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}})();function L(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return(n,c)=>{t=n,r=c,i=e.getEmitScriptTarget(r),N=((t,r)=>!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator)(t,c),F=new e.Set,I=0,w=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Me(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=F,(()=>{if(g){for(var r=s,n=_,i=p,c=a,u=y,d=0,f=g;d<f.length;d++){var m=f[d],h=m.parent.parent;s=e.findAncestor(h.parent,(e=>!!(1&De(e))))||t,p=e.getEnclosingBlockScopeContainer(h)||t,y=o({flags:2}),a=m,Me(m.typeExpression);var v=e.getNameOfDeclaration(m);if((e.isJSDocEnumTag(m)||!m.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Xe(v.parent);if(b){Ge(t.symbol,v.parent,b,!!e.findAncestor(v,(t=>e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText)),!1);var x=s;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:s=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:s=v.parent.expression;break;case 3:s=v.parent.expression.name;break;case 5:s=l(t,v.parent.expression)?t:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&z(m,524288,788968),s=x}}else e.isJSDocEnumTag(m)||!m.fullName||79===m.fullName.kind?(a=m.parent,we(m,524288,788968)):Me(m.fullName)}s=r,_=n,p=i,a=c,y=u}})()),t=void 0,r=void 0,i=void 0,a=void 0,s=void 0,d=void 0,p=void 0,_=void 0,g=void 0,h=!1,y=void 0,v=void 0,b=void 0,x=void 0,E=void 0,S=void 0,D=void 0,C=void 0,k=!1,P=!1,A=0};function B(e,t){return I++,new w(e,t)}function j(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function U(t){if(271===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'.concat(n,'"')}if(162===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 171:return"__constructor";case 179:case 174:case 323:return"__call";case 180:case 175:return"__new";case 176:return"__index";case 272:return"__export";case 305:return"export=";case 221:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 317:return e.isJSDocConstructSignature(t)?"__new":"__call";case 164:return e.Debug.assert(317===t.parent.kind,"Impossible parameter parent kind",(()=>"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind,", expected JSDocFunctionType"))),"arg"+t.parent.parameters.indexOf(t)}}function V(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(U(t)))}function K(r,n,i,a,o,s,c){e.Debug.assert(c||!e.hasDynamicName(i));var l,u=e.hasSyntacticModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,d=c?"__computed":u&&n?"default":U(i);if(void 0===d)l=B(0,"__missing");else if(l=r.get(d),2885600&a&&F.add(d),l){if(s&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)r.set(d,l=B(0,d));else if(!(3&a&&67108864&l.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_=!0;(384&l.flags||384&a)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_=!1);var m=!1;e.length(l.declarations)&&(u||l.declarations&&l.declarations.length&&271===i.kind&&!i.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,_=!1,m=!0);var g=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&l.flags&&g.push(L(i,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(i.name.escapedText)," }")));var h=e.getNameOfDeclaration(i)||i;e.forEach(l.declarations,((r,n)=>{var i=e.getNameOfDeclaration(r)||r,a=L(i,p,_?V(r):void 0);t.bindDiagnostics.push(m?e.addRelatedInfo(a,L(h,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),m&&g.push(L(i,e.Diagnostics.The_first_export_default_is_here))}));var y=L(h,p,_?V(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,f([y],g,!1))),l=B(0,d)}}else r.set(d,l=B(0,d)),s&&(l.isReplaceableByMethod=!0);return j(l,i,a),l.parent?e.Debug.assert(l.parent===n,"Existing symbol parent should match new one"):l.parent=n,l}function z(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||(t=>{if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!(!r||!(e.isPropertyAccessEntityNameExpression(r.parent)&&Xe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))})(t);if(2097152&r)return 275===t.kind||265===t.kind&&i?K(s.symbol.exports,s.symbol,t,r,n):K(s.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&s.flags)){if(!s.locals||e.hasSyntacticModifier(t,512)&&!U(t))return K(s.symbol.exports,s.symbol,t,r,n);var a=111551&r?1048576:0,o=K(s.locals,void 0,t,a,n);return o.exportSymbol=K(s.symbol.exports,s.symbol,t,r,n),t.localSymbol=o,o}return K(s.locals,void 0,t,r,n)}function W(e){J(e,(e=>256===e.kind?Me(e):void 0)),J(e,(e=>256!==e.kind?Me(e):void 0))}function J(t,r){void 0===r&&(r=Me),void 0!==t&&e.forEach(t,r)}function H(t){e.forEachChild(t,Me,J)}function $(t){var i=P;if(P=!1,(t=>{if(!(1&y.flags))return!1;if(y===O&&(e.isStatementButNotDeclaration(t)&&236!==t.kind||257===t.kind||261===t.kind&&(t=>{var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)})(t))&&(y=M,!r.allowUnreachableCode)){var i=e.unreachableCodeIsError(r)&&!(16777216&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((e=>!!e.initializer)));!((t,r)=>{if(e.isStatement(t)&&c(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,c,((e,t)=>r(i[e],i[t-1])))}else r(t,t)})(t,((t,r)=>Oe(i,t,r,e.Diagnostics.Unreachable_code_detected)))}return!0})(t))return H(t),Re(t),void(P=i);switch(t.kind>=237&&t.kind<=253&&!r.allowUnreachableCode&&(t.flowNode=y),t.kind){case 241:!(e=>{var t=fe(e,ee()),r=Z(),n=Z();ne(t,y),y=t,pe(e.expression,r,n),y=ce(r),_e(e.statement,n,t),ne(t,y),y=ce(n)})(t);break;case 240:!(e=>{var t=ee(),r=fe(e,Z()),n=Z();ne(t,y),y=t,_e(e.statement,n,r),ne(r,y),y=ce(r),pe(e.expression,t,n),y=ce(n)})(t);break;case 242:!(e=>{var t=fe(e,ee()),r=Z(),n=Z();Me(e.initializer),ne(t,y),y=t,pe(e.condition,r,n),y=ce(r),_e(e.statement,n,t),Me(e.incrementor),ne(t,y),y=ce(n)})(t);break;case 243:case 244:!(e=>{var t=fe(e,ee()),r=Z();Me(e.expression),ne(t,y),y=t,244===e.kind&&Me(e.awaitModifier),ne(r,y),Me(e.initializer),255!==e.initializer.kind&&ye(e.initializer),_e(e.statement,r,t),ne(t,y),y=ce(r)})(t);break;case 239:!(e=>{var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),y=ce(t),Me(e.thenStatement),ne(n,y),y=ce(r),Me(e.elseStatement),ne(n,y),y=ce(n)})(t);break;case 247:case 251:!(e=>{Me(e.expression),247===e.kind&&(k=!0,x&&ne(x,y)),y=O})(t);break;case 246:case 245:!(e=>{if(Me(e.label),e.label){var t=(e=>{for(var t=C;t;t=t.next)if(t.name===e)return t})(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,v,b)})(t);break;case 252:!(t=>{var r=x,n=D,i=Z(),a=Z(),o=Z();if(t.finallyBlock&&(x=a),ne(o,y),D=o,Me(t.tryBlock),ne(i,y),t.catchClause&&(y=ce(o),ne(o=Z(),y),D=o,Me(t.catchClause),ne(i,y)),x=r,D=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Me(t.finallyBlock),1&y.flags?y=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,y)),D&&o.antecedents&&ne(D,te(s,o.antecedents,y)),y=i.antecedents?te(s,i.antecedents,y):O)}else y=ce(i)})(t);break;case 249:!(t=>{var r=Z();Me(t.expression);var n=v,i=T;v=r,T=y,Me(t.caseBlock),ne(r,y);var a=e.forEach(t.caseBlock.clauses,(e=>290===e.kind));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(T,t,0,0)),v=n,T=i,y=ce(r)})(t);break;case 263:!(e=>{for(var t=e.clauses,n=G(e.parent.expression),i=O,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Me(t[a]),a++;var s=Z();ne(s,n?ae(T,e.parent,o,a+1):T),ne(s,i),y=ce(s);var c=t[a];Me(c),i=y,1&y.flags||a===t.length-1||!r.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=y)}})(t);break;case 289:!(e=>{var t=y;y=T,Me(e.expression),y=t,J(e.statements)})(t);break;case 238:!(e=>{Me(e.expression),ge(e.expression)})(t);break;case 250:!(t=>{var n=Z();C={next:C,name:t.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Me(t.label),Me(t.statement),C.referenced||r.allowUnusedLabels||((e,t,r)=>{Oe(e,t,t,r)})(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label),C=C.next,ne(n,y),y=ce(n)})(t);break;case 219:!(e=>{if(53===e.operator){var t=E;E=S,S=t,H(e),S=E,E=t}else H(e),45!==e.operator&&46!==e.operator||ye(e.operand)})(t);break;case 220:!(e=>{H(e),(45===e.operator||46===e.operator)&&ye(e.operand)})(t);break;case 221:if(e.isDestructuringAssignment(t))return P=i,void(e=>{P?(P=!1,Me(e.operatorToken),Me(e.right),P=!0,Me(e.left)):(P=!0,Me(e.left),P=!1,Me(e.operatorToken),Me(e.right)),ye(e.left)})(t);R(t);break;case 215:!(e=>{H(e),206===e.expression.kind&&ye(e.expression)})(t);break;case 222:!(e=>{var t=Z(),r=Z(),n=Z();pe(e.condition,t,r),y=ce(t),Me(e.questionToken),Me(e.whenTrue),ne(n,y),y=ce(r),Me(e.colonToken),Me(e.whenFalse),ne(n,y),y=ce(n)})(t);break;case 254:!(t=>{H(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&be(t)})(t);break;case 206:case 207:!(t=>{e.isOptionalChain(t)?Se(t):H(t)})(t);break;case 208:!(t=>{if(e.isOptionalChain(t))Se(t);else{var r=e.skipParentheses(t.expression);213===r.kind||214===r.kind?(J(t.typeArguments),J(t.arguments),Me(t.expression)):(H(t),106===t.expression.kind&&(y=se(y,t)))}if(206===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&Q(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(y=oe(256,y,t))}})(t);break;case 230:!(t=>{e.isOptionalChain(t)?Se(t):H(t)})(t);break;case 345:case 338:case 339:!(t=>{Me(t.tagName),339!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1)),"string"!=typeof t.comment&&J(t.comment)})(t);break;case 305:W(t.statements),Me(t.endOfFileToken);break;case 235:case 262:W(t.statements);break;case 203:!(t=>{e.isBindingPattern(t.name)?(J(t.decorators),J(t.modifiers),Me(t.dotDotDotToken),Me(t.propertyName),Me(t.initializer),Me(t.name)):H(t)})(t);break;case 205:case 204:case 296:case 225:P=i;default:H(t)}Re(t),P=i}function G(e){switch(e.kind){case 79:case 80:case 108:case 206:case 207:return X(e);case 208:return(e=>{if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(X(r[t]))return!0;return!(206!==e.expression.kind||!X(e.expression.expression))})(e);case 212:case 230:return G(e.expression);case 221:return(e=>{switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return X(e.left);case 34:case 35:case 36:case 37:return Q(e.left)||Q(e.right)||Y(e.right,e.left)||Y(e.left,e.right);case 102:return Q(e.left);case 101:case 27:return G(e.right)}return!1})(e);case 219:return 53===e.operator&&G(e.operand);case 216:return G(e.expression)}return!1}function q(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&q(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&q(t.right)||e.isElementAccessExpression(t)&&(e.isStringOrNumericLiteralLike(t.argumentExpression)||e.isEntityNameExpression(t.argumentExpression))&&q(t.expression)||e.isAssignmentExpression(t)&&q(t.left)}function X(t){return q(t)||e.isOptionalChain(t)&&X(t.expression)}function Y(t,r){return e.isTypeOfExpression(t)&&Q(t.expression)&&e.isStringLiteralLike(r)}function Q(e){switch(e.kind){case 212:return Q(e.expression);case 221:switch(e.operatorToken.kind){case 63:return Q(e.left);case 27:return Q(e.right)}}return X(e)}function Z(){return o({flags:4,antecedents:void 0})}function ee(){return o({flags:8,antecedents:void 0})}function te(e,t,r){return o({flags:1024,target:e,antecedents:t,antecedent:r})}function re(e){e.flags|=2048&e.flags?4096:2048}function ne(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),re(r))}function ie(t,r,n){return 1&r.flags?r:n?!(110===n.kind&&64&t||95===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?G(n)?(re(r),o({flags:t,antecedent:r,node:n})):r:O:32&t?r:O}function ae(e,t,r,n){return re(e),o({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function oe(e,t,r){re(t);var n=o({flags:e,antecedent:t,node:r});return D&&ne(D,n),n}function se(e,t){return re(e),o({flags:512,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:O}function le(e){for(;;)if(212===e.kind)e=e.expression;else{if(219!==e.kind||53!==e.operator)return 221===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ue(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!((e=>{var t=e.parent;switch(t.kind){case 239:case 241:case 240:return t.expression===e;case 242:case 222:return t.condition===e}return!1})(t)||le(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function de(e,t,r,n){var i=E,a=S;E=r,S=n,e(t),E=i,S=a}function pe(t,r,n){de(Me,t,r,n),t&&((t=>(t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)))(t)||le(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))}function _e(e,t,r){var n=v,i=b;v=t,b=r,Me(e),v=n,b=i}function fe(e,t){for(var r=C;r&&250===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function me(e,t,r){var n=246===e.kind?t:r;n&&(ne(n,y),y=O)}function ge(t){if(208===t.kind){var r=t;106!==r.expression.kind&&e.isDottedName(r.expression)&&(y=se(y,r))}}function he(e){221===e.kind&&63===e.operatorToken.kind?ye(e.left):ye(e)}function ye(e){if(q(e))y=oe(16,y,e);else if(204===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];225===n.kind?ye(n.expression):he(n)}else if(205===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];296===o.kind?he(o.initializer):297===o.kind?ye(o.name):298===o.kind&&ye(o.expression)}}function ve(t,r,n){var i=Z();55===t.operatorToken.kind||76===t.operatorToken.kind?pe(t.left,i,n):pe(t.left,r,i),y=ce(i),Me(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(de(Me,t.right,r,n),ye(t.left),ne(r,ie(32,y,t)),ne(n,ie(64,y,t))):pe(t.right,r,n)}function be(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++)be(i[n]);else y=oe(16,y,t)}function xe(e){switch(e.kind){case 206:Me(e.questionDotToken),Me(e.name);break;case 207:Me(e.questionDotToken),Me(e.argumentExpression);break;case 208:Me(e.questionDotToken),J(e.typeArguments),J(e.arguments)}}function Ee(t,r,n){var i=e.isOptionalChainRoot(t)?Z():void 0;!((t,r,n)=>{de(Me,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))})(t.expression,i||r,n),i&&(y=ce(i)),de(xe,t,r,n),e.isOutermostOptionalChain(t)&&(ne(r,ie(32,y,t)),ne(n,ie(64,y,t)))}function Se(e){if(ue(e)){var t=Z();Ee(e,t,t),y=ce(t)}else Ee(e,E,S)}function De(t){switch(t.kind){case 226:case 257:case 260:case 205:case 182:case 322:case 286:return 1;case 258:return 65;case 261:case 259:case 195:case 176:return 33;case 305:return 37;case 172:case 173:case 169:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(t))return 173;case 171:case 256:case 168:case 174:case 323:case 317:case 179:case 175:case 180:case 170:return 45;case 213:case 214:return 61;case 262:return 4;case 167:return t.initializer?4:0;case 292:case 242:case 243:case 244:case 263:return 2;case 235:return e.isFunctionLike(t.parent)||e.isClassStaticBlockDeclaration(t.parent)?0:2}return 0}function Te(e){_&&(_.nextContainer=e),_=e}function Ce(r,n,i){switch(s.kind){case 261:return z(r,n,i);case 305:return((r,n,i)=>e.isExternalModule(t)?z(r,n,i):K(t.locals,void 0,r,n,i))(r,n,i);case 226:case 257:return((t,r,n)=>e.isStatic(t)?K(s.symbol.exports,s.symbol,t,r,n):K(s.symbol.members,s.symbol,t,r,n))(r,n,i);case 260:return K(s.symbol.exports,s.symbol,r,n,i);case 182:case 322:case 205:case 258:case 286:return K(s.symbol.members,s.symbol,r,n,i);case 179:case 180:case 174:case 175:case 323:case 176:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 317:case 345:case 338:case 170:case 259:case 195:return K(s.locals,void 0,r,n,i)}}function ke(t){16777216&t.flags&&!(t=>{var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((t=>e.isExportDeclaration(t)||e.isExportAssignment(t)))})(t)?t.flags|=64:t.flags&=-65}function Ae(e){var t=n(e),r=0!==t;return Ce(e,r?512:1024,r?110735:0),t}function Ne(e,t,r){var n=B(t,r);return 106508&t&&(n.parent=s.symbol),j(n,e,t),n}function we(t,r,n){switch(p.kind){case 261:z(t,r,n);break;case 305:if(e.isExternalOrCommonJsModule(s)){z(t,r,n);break}default:p.locals||(p.locals=e.createSymbolTable(),Te(p)),K(p.locals,void 0,t,r,n)}}function Fe(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,(r=>e.getContainingClass(r)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode)(r),e.idText(i)))}}var o}function Pe(e){N&&Fe(e,e.name)}function Ie(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Oe(r,n,i,a){!((r,n,i)=>{var a=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(a):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,m(m({},a),{category:e.DiagnosticCategory.Suggestion}))})(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Me(r){if(r){e.setParent(r,a),e.tracing&&(r.tracingPath=t.path);var n=N;if(Be(r),r.kind>160){var i=a;a=r;var c=De(r);0===c?$(r):((t,r)=>{var n=s,i=d,a=p;if(1&r?(214!==t.kind&&(d=s),s=p=t,32&r&&(s.locals=e.createSymbolTable()),Te(s)):2&r&&((p=t).locals=void 0),4&r){var c=y,l=v,u=b,_=x,f=D,m=C,g=k,E=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||170===t.kind;E||(y=o({flags:2}),144&r&&(y.node=t)),x=E||171===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind)?Z():void 0,D=void 0,v=void 0,b=void 0,C=void 0,k=!1,$(t),t.flags&=-2817,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=y),305===t.kind&&(t.flags|=A,t.endFlowNode=y),x&&(ne(x,y),y=ce(x),(171===t.kind||170===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind))&&(t.returnFlowNode=y)),E||(y=c),v=l,b=u,x=_,D=f,C=m,k=g}else 64&r?(h=!1,$(t),t.flags=h?128|t.flags:-129&t.flags):$(t);s=n,d=i,p=a})(r,c),a=i}else i=a,1===r.kind&&(a=r),Re(r),a=i;N=n}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++)Me(o=n[r]);else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Le(r){if(!N)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(N=!0)}var o,s}function Be(n){switch(n.kind){case 79:if(n.isInJSDocNamespace){for(var o=n.parent;o&&!e.isJSDocTypeAlias(o);)o=o.parent;we(o,524288,788968);break}case 108:return y&&(e.isExpression(n)||297===a.kind)&&(n.flowNode=y),(r=>{t.parseDiagnostics.length||16777216&r.flags||8388608&r.flags||e.isIdentifierName(r)||(N&&r.originalKeywordKind>=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(L(r,(r=>e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode)(r),e.declarationNameToString(r))):132===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))})(n);case 161:y&&e.isPartOfTypeQuery(n)&&(n.flowNode=y);break;case 231:case 106:n.flowNode=y;break;case 80:return(r=>{"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(L(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))})(n);case 206:case 207:var c=n;y&&q(c)&&(c.flowNode=y),e.isSpecialPropertyDeclaration(c)&&(t=>{108===t.expression.kind?ze(t):e.isBindableStaticAccessExpression(t)&&305===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?He(t,t.parent):$e(t))})(c),e.isInJSFile(c)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(c)&&!u(p,"module")&&K(t.locals,void 0,c.expression,134217729,111550);break;case 221:switch(e.getAssignmentDeclarationKind(n)){case 1:Ve(n);break;case 2:!(r=>{if(Ue(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||s===t&&l(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,Ke);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=K(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}})(n);break;case 3:He(n.left,n);break;case 6:!(t=>{e.setParent(t.left,t),e.setParent(t.right,t),Ye(t.left.expression,t.left,!1,!0)})(n);break;case 4:ze(n);break;case 5:var d=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(d)){var _=u(p,d.escapedText);if(e.isThisInitializedDeclaration(null==_?void 0:_.valueDeclaration)){ze(n);break}}!(r=>{var n,i=Qe(r.left.expression,s)||Qe(r.left.expression,p);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=u(s,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&s===t&&l(t,r.left.expression)?Ve(r):e.hasDynamicName(r)?(Ne(r,67108868,"__computed"),Je(r,Ge(i,r.left.expression,Xe(r.left),!1,!1))):$e(e.cast(r.left,e.isBindableStaticNameExpression)))}})(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return(t=>{N&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Fe(t,t.left)})(n);case 292:return(e=>{N&&e.variableDeclaration&&Fe(e,e.variableDeclaration.name)})(n);case 215:return(r=>{if(N&&79===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}})(n);case 8:return(r=>{i<1&&N&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))})(n);case 220:return(e=>{N&&Fe(e,e.operand)})(n);case 219:return(e=>{N&&(45!==e.operator&&46!==e.operator||Fe(e,e.operand))})(n);case 248:return(t=>{N&&Ie(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)})(n);case 250:return(t=>{N&&e.getEmitScriptTarget(r)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ie(t.label,e.Diagnostics.A_label_is_not_allowed_here)})(n);case 192:return void(h=!0);case 177:break;case 163:return(t=>{if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),K(r.locals,void 0,t,262144,526824)):Ce(t,262144,526824)}else if(190===t.parent.kind){var n=(t=>{var r=e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t));return r&&r.parent})(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),K(n.locals,void 0,t,262144,526824)):Ne(t,262144,U(t))}else Ce(t,262144,526824)})(n);case 164:return tt(n);case 254:return et(n);case 203:return n.flowNode=y,et(n);case 167:case 166:return(e=>rt(e,4|(e.questionToken?16777216:0),0))(n);case 296:case 297:return rt(n,4,0);case 299:return rt(n,8,900095);case 174:case 175:case 176:return Ce(n,131072,0);case 169:case 168:return rt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 256:return(r=>{t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048),Pe(r),N?((r=>{if(i<2&&305!==p.kind&&261!==p.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(p)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,(r=>e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)(r)))}})(r),we(r,16,110991)):Ce(r,16,110991)})(n);case 171:return Ce(n,16384,0);case 172:return rt(n,32768,46015);case 173:return rt(n,65536,78783);case 179:case 317:case 323:case 180:return(t=>{var r=B(131072,U(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)})(n);case 182:case 322:case 195:return(e=>Ne(e,2048,"__type"))(n);case 332:return(t=>{H(t);var r=e.getHostSignatureFromJSDoc(t);r&&169!==r.kind&&j(r.symbol,r,32)})(n);case 205:return(t=>{var r;if((e=>{e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"})(r||(r={})),N&&!e.isAssignmentTarget(t))for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(298!==o.kind&&79===o.name.kind){var s=o.name,c=296===o.kind||297===o.kind||169===o.kind?1:2;n.get(s.escapedText)||n.set(s.escapedText,c)}}return Ne(t,4096,"__object")})(n);case 213:case 214:return(r=>(t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048),y&&(r.flowNode=y),Pe(r),Ne(r,16,r.name?r.name.escapedText:"__function")))(n);case 208:switch(e.getAssignmentDeclarationKind(n)){case 7:return(e=>{var t=Qe(e.arguments[0]),r=305===e.parent.parent.kind;qe(e,t=Ge(t,e.arguments[0],r,!1,!1),!1)})(n);case 8:return(e=>{if(Ue(e)){var t=Ze(e.arguments[0],void 0,((e,t)=>(t&&j(t,e,67110400),t)));t&&K(t.exports,t,e,1048580,0)}})(n);case 9:return(e=>{var t=Qe(e.arguments[0].expression);t&&t.valueDeclaration&&j(t,t.valueDeclaration,32),qe(e,t,!0)})(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&(r=>{!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ue(r)})(n);break;case 226:case 257:return N=!0,(r=>{257===r.kind?we(r,32,899503):(Ne(r,32,r.name?r.name.escapedText:"__class"),r.name&&F.add(r.name.escapedText));var n=r.symbol,i=B(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(L(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n})(n);case 258:return we(n,64,788872);case 259:return we(n,524288,788968);case 260:return(t=>e.isEnumConst(t)?we(t,128,899967):we(t,256,899327))(n);case 261:return(r=>{if(ke(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Ie(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ae(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Ie(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Ce(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ae(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}})(n);case 286:return(e=>Ne(e,4096,"__jsxAttributes"))(n);case 285:return((e,t,r)=>Ce(e,4,0))(n);case 265:case 268:case 270:case 275:return Ce(n,2097152,2097152);case 264:return(r=>{r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(L(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(L(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),K(t.symbol.globalExports,t.symbol,r,2097152,2097152))})(n);case 267:return(e=>{e.name&&Ce(e,2097152,2097152)})(n);case 272:return(t=>{s.symbol&&s.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),K(s.symbol.exports,s.symbol,t.exportClause,2097152,2097152)):K(s.symbol.exports,s.symbol,t,8388608,0):Ne(t,8388608,U(t))})(n);case 271:return(t=>{if(s.symbol&&s.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=K(s.symbol.exports,s.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Ne(t,111551,U(t))})(n);case 305:return Le(n.statements),(()=>{if(ke(t),e.isExternalModule(t))je();else if(e.isJsonSourceFile(t)){je();var r=t.symbol;K(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}})();case 235:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 262:return Le(n.statements);case 340:if(323===n.parent.kind)return tt(n);if(322!==n.parent.kind)break;case 347:var f=n;return Ce(f,f.isBracketed||f.typeExpression&&316===f.typeExpression.type.kind?16777220:4,0);case 345:case 338:case 339:return(g||(g=[])).push(n)}}function je(){Ne(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Ue(e){return!(t.externalModuleIndicator&&!0!==t.externalModuleIndicator||(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||je()),0))}function Ve(t){if(Ue(t)){var r=Ze(t.left.expression,void 0,((e,t)=>(t&&j(t,e,67110400),t)));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),K(r.exports,r,t.left,n,0)}}}function Ke(e){K(t.symbol.exports,t.symbol,e,69206016,0)}function ze(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 256:case 213:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Qe(i.expression.expression,d))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?We(t,n,n.members):K(n.members,n,t,67108868,0),j(n,n.valueDeclaration,32));break;case 171:case 167:case 169:case 172:case 173:case 170:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?We(t,a.symbol,o):K(o,a.symbol,t,67108868,0,!0);break;case 305:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?K(r.symbol.exports,r.symbol,t,1048580,0):Ce(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function We(e,t,r){K(r,t,e,4,0,!0,!0),Je(e,t)}function Je(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function He(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Ye(i,t,!0,!0)}function $e(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Ye(t.expression,t,!1,!1)}function Ge(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=Ze(n,r,((r,n,i)=>n?(j(n,r,s),n):K(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)))}return o&&r&&r.valueDeclaration&&j(r,r.valueDeclaration,32),r}function qe(t,r,n){if(r&&(t=>{if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1})(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),K(i,r,t,67108864|a,-67108865&o)}}function Xe(t){return e.isBinaryExpression(t.parent)?305===(t=>{for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent})(t.parent).parent.kind:305===t.parent.parent.kind}function Ye(e,t,r,n){var i=Qe(e,s)||Qe(e,p),a=Xe(t);qe(t,i=Ge(i,t.expression,a,r,n),r)}function Qe(t,r){if(void 0===r&&(r=s),e.isIdentifier(t))return u(r,t.escapedText);var n=Qe(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function Ze(r,n,i){if(l(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Qe(r),n);var a=Ze(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function et(t){if(N&&Fe(t,t.name),!e.isBindingPattern(t.name)){var r=254===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?we(t,2,111551):e.isParameterDeclaration(t)?Ce(t,1,111551):Ce(t,1,111550):Ce(t,2097152,2097152)}}function tt(t){if((340!==t.kind||323===s.kind)&&(!N||16777216&t.flags||Fe(t,t.name),e.isBindingPattern(t.name)?Ne(t,1,"__"+t.parent.parameters.indexOf(t)):Ce(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;K(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function rt(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(A|=2048),y&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=y),e.hasDynamicName(r)?Ne(r,n,"__computed"):Ce(r,n,i)}})();function c(t){return!(e.isFunctionDeclaration(t)||(t=>{switch(t.kind){case 258:case 259:return!0;case 261:return 1!==n(t);case 260:return e.hasSyntacticModifier(t,2048);default:return!1}})(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((e=>!e.initializer)))}function l(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=u(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function u(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=(t,r)=>{e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),s(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=l})(p),(e=>{e.createGetSymbolWalker=(t,r,n,i,a,o,s,c,l,u)=>d=>{void 0===d&&(d=()=>!0);var p=[],_=[];return{walkType(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&!p[t.id]&&(p[t.id]=t,!h(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&(t=>{f(t.target),e.forEach(u(t),f)})(t),32&n&&(e=>{f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)})(t),3&n&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&g(r)}var a;262144&t.flags&&(e=>{f(c(e))})(t),3145728&t.flags&&(t=>{e.forEach(t.types,f)})(t),4194304&t.flags&&(e=>{f(e.type)})(t),8388608&t.flags&&(e=>{f(e.objectType),f(e.indexType),f(e.constraint)})(t)}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)h(s[o]);f(t(i)),f(n(i))}function g(e){for(var t=a(e),r=0,n=t.indexInfos;r<n.length;r++){var i=n[r];f(i.keyType),f(i.type)}for(var o=0,s=t.callSignatures;o<s.length;o++)m(s[o]);for(var c=0,l=t.constructSignatures;c<l.length;c++)m(l[c]);for(var u=0,d=t.properties;u<d.length;u++)h(d[u])}function h(t){if(!t)return!1;var r=e.getSymbolId(t);return!_[r]&&(_[r]=t,!d(t)||(f(o(t)),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,(e=>{if(e.type&&181===e.type.kind){var t=e.type;h(s(l(t.exprName)))}})),!1))}}})(p),function(e){var t,r,n,i,a=/^".+"$/,o="(anonymous)",s=1,c=1,l=1,u=1;!(e=>{e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(t||(t={})),(e=>{e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"})(r||(r={})),(e=>{e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"})(n||(n={})),(e=>{e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=16768959]="AndFactsMask"})(i||(i={}));var d,p,_,g,y,v,b,x,E,S=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),D=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!(e=>{e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes",e[e.WriteType=8]="WriteType"})(d||(d={})),(e=>{e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement"})(p||(p={})),(e=>{e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"})(_||(_={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck"})(g||(g={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(y||(y={})),(e=>{e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"})(v||(v={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(b||(b={})),(e=>{e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"})(x||(x={})),(e=>{e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"})(E||(E={}));var T,C,k,A,N=e.and(L,(t=>!e.isAccessor(t)));!(e=>{e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(T||(T={})),(e=>{e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"})(C||(C={})),(e=>{e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"})(k||(k={})),(e=>{e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"})(A||(A={}));var w,F=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function P(){}function I(){this.flags=0}function O(e){return e.id||(e.id=c,c++),e.id}function M(e){return e.id||(e.id=s,s++),e.id}function R(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function L(e){return 256!==e.kind&&169!==e.kind||!!e.body}function B(t){switch(t.parent.kind){case 270:case 275:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function j(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function U(e){return!!(1&e.flags)}function V(e){return!!(2&e.flags)}e.getNodeId=O,e.getSymbolId=M,e.isInstantiatedModule=R,e.createTypeChecker=function(t){var r,n,i,s,c,d=e.memoize((()=>{var r=new e.Map;return t.getSourceFiles().forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((e=>{e&&e.packageId&&r.set(e.packageId.name,".d.ts"===e.extension||!!r.get(e.packageId.name))}))})),r})),p=[],_=e=>{p.push(e)},g=e.objectAllocator.getSymbolConstructor(),y=e.objectAllocator.getTypeConstructor(),v=e.objectAllocator.getSignatureConstructor(),b=0,x=0,E=0,T=0,C=0,k=0,A=0,K=e.createSymbolTable(),z=[1],W=t.getCompilerOptions(),J=e.getEmitScriptTarget(W),H=e.getEmitModuleKind(W),$=e.getUseDefineForClassFields(W),G=e.getAllowSyntheticDefaultImports(W),q=e.getStrictOptionValue(W,"strictNullChecks"),X=e.getStrictOptionValue(W,"strictFunctionTypes"),Y=e.getStrictOptionValue(W,"strictBindCallApply"),Q=e.getStrictOptionValue(W,"strictPropertyInitialization"),Z=e.getStrictOptionValue(W,"noImplicitAny"),ee=e.getStrictOptionValue(W,"noImplicitThis"),te=e.getStrictOptionValue(W,"useUnknownInCatchVariables"),re=!!W.keyofStringsOnly,ne=W.suppressExcessPropertyErrors?0:8192,ie=W.exactOptionalPropertyTypes,ae=(()=>{var t=e.createBinaryExpressionTrampoline(((t,r,i)=>(r?(r.stackIndex++,r.skip=!1,n(r,void 0),a(r,void 0)):r={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?(r.skip=!0,a(r,Tx(t.right,i)),r):((t=>{var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||xT(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||xT(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))})(t),63!==t.operatorToken.kind||205!==t.left.kind&&204!==t.left.kind||(r.skip=!0,a(r,Zb(t.left,Tx(t.right,i),i,108===t.right.kind))),r))),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r,o)=>{if(!r.skip){var s=i(r);e.Debug.assertIsDefined(s),n(r,s),a(r,void 0);var c=t.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);ME(o.left,e.isIfStatement(l)?l.thenStatement:void 0)}RE(s,o.left)}}}),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r)=>{var o;if(r.skip)o=i(r);else{var s=(e=>e.typeStack[e.stackIndex])(r);e.Debug.assertIsDefined(s);var c=i(r);e.Debug.assertIsDefined(c),o=rx(t.left,t.operatorToken,t.right,s,c,t)}return r.skip=!1,n(r,void 0),a(r,void 0),r.stackIndex--,o}),((e,t,r)=>(a(e,t),e)));return(r,n)=>{var i=t(r,n);return e.Debug.assertIsDefined(i),i};function r(t,r){if(e.isBinaryExpression(r))return r;a(t,Tx(r,t.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,t){e.typeStack[e.stackIndex+1]=t}})(),oe=(()=>{var r,n=t.getResolvedTypeReferenceDirectives();return n&&(r=new e.Map,n.forEach(((e,r,n)=>{if(e&&e.resolvedFileName){var i=t.getSourceFile(e.resolvedFileName);i&&a(i,r,n)}}))),{getReferencedExportContainer:mD,getReferencedImportDeclaration:gD,getReferencedDeclarationWithCollidingName:yD,isDeclarationWithCollidingName:vD,isValueAliasDeclaration(t){var r=e.getParseTreeNode(t);return!r||bD(r)},hasGlobalName:jD,isReferencedAliasDeclaration(t,r){var n=e.getParseTreeNode(t);return!n||DD(n,r)},getNodeCheckFlags(t){var r=e.getParseTreeNode(t);return r?wD(r):0},isTopLevelValueImportEqualsWithEntityName:xD,isDeclarationVisible:no,isImplementationOfOverload:TD,isRequiredInitializedParameter:CD,isOptionalUninitializedParameterProperty:kD,isExpandoFunctionDeclaration:AD,getPropertiesOfContainerFunction:ND,createTypeOfDeclaration:RD,createReturnTypeOfSignatureDeclaration:LD,createTypeOfExpression:BD,createLiteralConstValue:zD,isSymbolAccessible:Ra,isEntityNameVisible:Ka,getConstantValue(t){var r=e.getParseTreeNode(t,PD);return r?ID(r):void 0},collectLinkedAliases:io,getReferencedValueDeclaration:VD,getTypeReferenceSerializationKind:MD,isOptionalParameter:ml,moduleExportsSomeValue:fD,isArgumentsLocalBinding:_D,getExternalModuleFileFromDeclaration(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&HD(r)},getTypeReferenceDirectivesForEntityName(e){if(r){var t=790504;(79===e.kind&&Km(e)||206===e.kind&&!(e=>e.parent&&228===e.parent.kind&&e.parent.parent&&291===e.parent.parent.kind)(e))&&(t=1160127);var n=Ji(e,t,!0);return n&&n!==Pe?i(n,t):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:KD,isLateBound(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&la(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:WD,getJsxFragmentFactoryEntity:JD,getAllAccessorDeclarations(t){var r=173===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?172:173,n=e.getDeclarationOfKind(la(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:173===t.kind?t:n,getAccessor:172===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:e=>Gi(e,e,void 0),isBindingCapturedByNode(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&((t,r)=>{var n=ni(t);return!!n&&e.contains(n.capturedBlockScopeBindings,la(r))})(n,i)},getDeclarationStatementsForSourceFile(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&305===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=la(t);return o?o.exports?se.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?se.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=HD(t);if(!n)return!1;if(n===r)return!1;for(var i=aa(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=ca(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];if(e.getSourceFileOfNode(d)===n)return!0}}}return!1}};function i(t,n){if(r&&(t=>{if(!t.declarations)return!1;for(var n=t;;){var i=ua(n);if(!i)break;n=i}if(n.valueDeclaration&&305===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1})(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),l=r.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(n,i,o){if(!r.has(n.path)){r.set(n.path,[i,o]);for(var s=0,c=n.referencedFiles;s<c.length;s++){var l=c[s],u=l.fileName,d=l.resolutionMode,p=e.resolveTripleslashReference(u,n.fileName),_=t.getSourceFile(p);_&&a(_,i,d||n.impliedNodeFormat)}}}})(),se=(()=>{return{typeToTypeNode:(e,t,r,i)=>n(t,r,i,(t=>s(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,i)=>n(t,r,i,(t=>_(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,i,a)=>n(r,i,a,(r=>g(e,t,r))),symbolToEntityName:(e,t,r,i,a)=>n(r,i,a,(r=>F(e,r,t,!1))),symbolToExpression:(e,t,r,i,a)=>n(r,i,a,(r=>P(e,r,t))),symbolToTypeParameterDeclarations:(e,t,r,i)=>n(t,r,i,(t=>S(e,t))),symbolToParameterDeclaration:(e,t,r,i)=>n(t,r,i,(t=>v(e,t))),typeParameterToDeclaration:(e,t,r,i)=>n(t,r,i,(t=>y(e,t))),symbolTableToDeclarationStatements:(t,r,a,o,c)=>n(r,a,o,(r=>((t,r,n)=>{var a=X(e.factory.createPropertyDeclaration,169,!0),o=X(((t,r,n,i,a)=>e.factory.createPropertySignature(r,n,i,a)),168,!1),c=r.enclosingDeclaration,l=[],u=new e.Set,d=[],p=r;(r=m(m({},p),{usedSymbolNames:new e.Set(p.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:m(m({},p.tracker),{trackSymbol(e,t,n){if(0===Ra(e,t,n,!1).accessibility){var i=E(e,r,n);4&e.flags||N(i[0])}else if(p.tracker&&p.tracker.trackSymbol)return p.tracker.trackSymbol(e,t,n);return!1}})})).tracker=i(r,r.tracker),e.forEachEntry(t,((t,r)=>{ne(t,e.unescapeLeadingUnderscores(r))}));var h,v=!n,b=t.get("export=");return b&&t.size>1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),k(t),h=(t=>{var r=e.findIndex(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(r=>{if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(n=>e.nodeHasName(t[n],r.name)));if(e.length(i)&&e.every(i,(e=>S(t[e])))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=D(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier,n.assertClause):e.orderedRemoveItemAt(t,r)}return t})(h=(t=>{var r=e.filter(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(r)>1){var n=e.filter(t,(t=>!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause));t=f(f([],n,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),void 0)],!1)}var i=e.filter(t,(t=>e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(i)>1){var a=e.group(i,(t=>e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"));if(a.length!==i.length)for(var o=r=>{r.length>1&&(t=f(f([],e.filter(t,(e=>-1===r.indexOf(e))),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),r[0].moduleSpecifier)],!1))},s=0,c=a;s<c.length;s++)o(c[s])}return t})(h=(t=>{var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),i=-1!==n?t[n]:void 0;if(i&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(r.expression)&&i.body&&e.isModuleBlock(i.body)){var a=e.filter(t,(t=>!!(1&e.getEffectiveModifierFlags(t)))),o=i.name,s=i.body;if(e.length(a)&&(i=e.factory.updateModuleDeclaration(i,i.decorators,i.modifiers,i.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(f(f([],i.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(a,(t=>{return r=t,e.isVariableStatement(r)?e.filter(e.map(r.declarationList.declarations,e.getNameOfDeclaration),x):e.filter([e.getNameOfDeclaration(r)],x);var r})),(t=>e.factory.createExportSpecifier(!1,void 0,t)))),void 0)],!1)))),t=f(f(f([],t.slice(0,n),!0),[i],!1),t.slice(n+1),!0)),!e.find(t,(t=>t!==i&&e.nodeHasName(t,o)))){l=[];var c=!e.some(s.statements,(t=>e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)));e.forEach(s.statements,(e=>{w(e,c?1:0)})),t=f(f([],e.filter(t,(e=>e!==i&&e!==r)),!0),l,!0)}}return t})(h=l))),c&&(e.isSourceFile(c)&&e.isExternalOrCommonJsModule(c)||e.isModuleDeclaration(c))&&(!e.some(h,e.isExternalModuleIndicator)||!e.hasScopeMarker(h)&&e.some(h,e.needsScopeMarker))&&h.push(e.createEmptyExports(e.factory)),h;function x(e){return!!e&&79===e.kind}function S(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||QS(t)}function D(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function T(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function k(t,r,n){r||d.push(new e.Map),t.forEach((e=>{A(e,!1,!!n)})),r||(d[d.length-1].forEach((e=>{A(e,!0,!!n)})),d.pop())}function A(t,l,d){var _=ca(t);if(!u.has(M(_))&&(u.add(M(_)),!l||e.length(t.declarations)&&e.some(t.declarations,(t=>!!e.findAncestor(t,(e=>e===c)))))){var g=r;r=(t=>{var r=m({},t);return r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames)),r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)),r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)),r.tracker=i(r,r.tracker),r})(r);var h=((t,i,l)=>{var u,d,p,_,m=e.unescapeLeadingUnderscores(t.escapedName),g="default"===t.escapedName;if(!i||131072&r.flags||!e.isStringANonContextualKeyword(m)||g){var h=g&&!!(-113&t.flags||16&t.flags&&e.length(Ac(Zo(t))))&&!(2097152&t.flags),v=!h&&!i&&e.isStringANonContextualKeyword(m)&&!g;(h||v)&&(i=!0);var b=(i?0:1)|(g&&!h?512:0),x=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,E=x&&q(Zo(t),t);if((8208&t.flags||E)&&O(Zo(t),t,ne(t,m),b),524288&t.flags&&((t,i,a)=>{var o,c=vs(t),l=ri(t).typeParameters,u=e.map(l,(e=>y(e,r))),d=null===(o=t.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(d?d.comment||d.parent.comment:void 0),_=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=d;var m=d&&d.typeExpression&&e.isJSDocTypeExpression(d.typeExpression)&&K(r,d.typeExpression.type,N,n)||s(c,r);w(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,ne(t,i),u,m),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=_,r.enclosingDeclaration=f})(t,m,b),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!E)if(l)G(t)&&(v=!1,h=!1);else{var S=Zo(t),D=ne(t,m);if(16&t.flags||!q(S,t)){var T=2&t.flags?Zg(t)?2:1:(null===(u=t.parent)||void 0===u?void 0:u.valueDeclaration)&&e.isSourceFile(null===(d=t.parent)||void 0===d?void 0:d.valueDeclaration)?2:void 0,k=!h&&4&t.flags?te(D,t):D,A=t.declarations&&e.find(t.declarations,(t=>e.isVariableDeclaration(t)));A&&e.isVariableDeclarationList(A.parent)&&1===A.parent.declarations.length&&(A=A.parent.parent);var F=null===(p=t.declarations)||void 0===p?void 0:p.find(e.isPropertyAccessExpression);if(F&&e.isBinaryExpression(F.parent)&&e.isIdentifier(F.parent.right)&&(null===(_=S.symbol)||void 0===_?void 0:_.valueDeclaration)&&e.isSourceFile(S.symbol.valueDeclaration)){var P=D===F.parent.right.escapedText?void 0:F.parent.right;w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,P,D)])),0),r.tracker.trackSymbol(S.symbol,r.enclosingDeclaration,111551)}else w(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(k,void 0,U(r,S,t,c,N,n))],T)),A),k!==D?-2&b:b),k===D||i||(w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,k,D)])),0),v=!1,h=!1)}else O(S,t,D,b)}if(384&t.flags&&((t,r,n)=>{w(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Xb(t)?2048:0),ne(t,r),e.map(e.filter(Ac(Zo(t)),(e=>!!(8&e.flags))),(t=>{var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?ID(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)})(t,m,b),32&t.flags&&(4&t.flags&&t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?H(t,ne(t,m),b):((t,i,o)=>{var c,l,u=null===(c=t.declarations)||void 0===c?void 0:c.find(e.isClassLike),d=r.enclosingDeclaration;r.enclosingDeclaration=u||d;var p=ss(t),_=e.map(p,(e=>y(e,r))),m=ys(t),g=ms(m),h=u&&e.getEffectiveImplementsTypeNodes(u),v=h&&(t=>{var i=e.mapDefined(t,(t=>{var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var o=t.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return l(void 0);var c;if(c=(i=V(o,r,N)).introducesError,o=i.node,c)return l(void 0)}return l(e.factory.createExpressionWithTypeArguments(o,e.map(t.typeArguments,(e=>K(r,e,N,n)||s(Tp(e),r)))));function l(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i})(h)||e.mapDefined((t=>{var r=e.emptyArray;if(t.symbol.declarations)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=Tp(c[s]);_o(l)||(r===e.emptyArray?r=[l]:r.push(l))}}return r})(m),ee),b=Zo(t),x=!!(null===(l=b.symbol)||void 0===l?void 0:l.valueDeclaration)&&e.isClassLike(b.symbol.valueDeclaration),E=x?_s(b):Re,S=f(f([],e.length(g)?[e.factory.createHeritageClause(94,e.map(g,(t=>((t,n,i)=>{var a=Z(t,111551);if(a)return a;var o=te("".concat(i,"_base"));return w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,s(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)})(t,E,i))))]:[],!0),e.length(v)?[e.factory.createHeritageClause(117,v)]:[],!0),D=((t,r,n)=>{if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(e=>{i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=Ac($s(o[a],t.thisType));s<c.length;s++){var l=c[s],u=i.get(l.escapedName);u&&l.parent===u.parent&&i.delete(l.escapedName)}return e.arrayFrom(i.values())})(m,g,Ac(m)),T=e.filter(D,(t=>{var r=t.valueDeclaration;return!(!r||e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),C=e.some(D,(t=>{var r=t.valueDeclaration;return!!r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,k=e.flatMap(T,(e=>a(e,!1,g[0]))),A=e.flatMap(e.filter(Ac(b),(e=>!(4194304&e.flags||"prototype"===e.escapedName||z(e)))),(e=>a(e,!0,E))),F=!x&&t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(el(b,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Y(1,b,E,171),P=Q(m,g[0]);r.enclosingDeclaration=d,w(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,i,_,S,f(f(f(f(f([],P,!0),A,!0),F,!0),k,!0),C,!0)),t.declarations&&e.filter(t.declarations,(t=>e.isClassDeclaration(t)||e.isClassExpression(t)))[0]),o)})(t,ne(t,m),b)),(1536&t.flags&&(!x||(t=>e.every(I(t),(e=>!(111551&Ri(e).flags))))(t))||E)&&((t,n,i)=>{var a=I(t),o=e.arrayToMultiMap(a,(e=>e.parent&&e.parent===t?"real":"merged")),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&j(s,u=ne(t,n),i,!!(67108880&t.flags)),e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),u=ne(t,n),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(e=>"export="!==e.escapedName)),(n=>{var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=ne(n,o),c=n.declarations&&xi(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(t=>e.getSourceFileOfNode(t)===l)))){var u=c&&Oi(c,!0);N(u||n);var d=u?ne(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(!1,o===d?void 0:d,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]);w(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),d,16),0)}})(t,m,b),64&t.flags&&!(32&t.flags)&&((t,n,i)=>{var a=ys(t),s=ss(t),c=e.map(s,(e=>y(e,r))),l=ms(a),u=e.length(l)?_d(l):void 0,d=e.flatMap(Ac(a),(e=>((e,t)=>o(e,!1,t))(e,u))),p=Y(0,a,u,174),_=Y(1,a,u,175),m=Q(a,u),g=e.length(l)?[e.factory.createHeritageClause(94,e.mapDefined(l,(e=>Z(e,111551))))]:void 0;w(e.factory.createInterfaceDeclaration(void 0,void 0,ne(t,n),c,g,f(f(f(f([],m,!0),_,!0),p,!0),d,!0)),i)})(t,m,b),2097152&t.flags&&H(t,ne(t,m),b),4&t.flags&&"export="===t.escapedName&&G(t),8388608&t.flags&&t.declarations)for(var M=0,R=t.declarations;M<R.length;M++){var L=R[M],B=$i(L,L.moduleSpecifier);B&&w(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(C(B,r))),0)}h?w(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(ne(t,m))),0):v&&w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ne(t,m),m)])),0)}else r.encounteredError=!0})(t,l,d);return r.reportedDiagnostic&&(p.reportedDiagnostic=r.reportedDiagnostic),r=g,h}}function N(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(d[d.length-1]),te(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(t=>!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)));d[r?0:d.length-1].set(M(t),t)}}function w(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&((t=>e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t))(a)||e.isModuleDeclaration(a))&&S(t)&&(i|=1),!v||1&i||a&&16777216&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}l.push(t)}function I(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),z):[]}function O(t,i,a,o){for(var s=0,c=el(t,0);s<c.length;s++){var l=c[s],u=g(l,256,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:N,bundledImports:n});w(e.setTextRange(u,R(l)),o)}1536&i.flags&&i.exports&&i.exports.size||j(e.filter(Ac(t),z),a,o,!0)}function R(t){if(t.declaration&&t.declaration.parent){if(e.isBinaryExpression(t.declaration.parent)&&5===e.getAssignmentDeclarationKind(t.declaration.parent))return t.declaration.parent;if(e.isVariableDeclaration(t.declaration.parent)&&t.declaration.parent.parent)return t.declaration.parent.parent}return t.declaration}function j(t,n,i,a){if(e.length(t)){var o=e.arrayToMultiMap(t,(t=>!e.length(t.declarations)||e.some(t.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)))?"local":"remote")).get("local")||e.emptyArray,s=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(s,c),s.locals=e.createSymbolTable(t),s.symbol=t[0].parent;var u=l;l=[];var d=v;v=!1;var p=m(m({},r),{enclosingDeclaration:s}),_=r;r=p,k(e.createSymbolTable(o),a,!0),r=_,v=d;var f=l;l=u;var g=e.map(f,(t=>e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t.expression,e.factory.createIdentifier("default"))])):t)),h=e.every(g,(t=>e.hasSyntacticModifier(t,1)))?e.map(g,T):g;w(s=e.factory.updateModuleDeclaration(s,s.decorators,s.modifiers,s.name,e.factory.createModuleBlock(h)),i)}}function z(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isStatic(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function H(t,n,i){var a,o,s,c,l,u=xi(t);if(!u)return e.Debug.fail();var d,p=ca(Oi(u,!0));if(p){var _=e.isShorthandAmbientModuleSymbol(p)&&(d=t.declarations,e.firstDefined(d,(t=>{if(e.isImportSpecifier(t)||e.isExportSpecifier(t))return e.idText(t.propertyName||t.name);if(e.isBinaryExpression(t)||e.isExportAssignment(t)){var r=e.isExportAssignment(t)?t.expression:t.right;if(e.isPropertyAccessExpression(r))return e.idText(r.name)}if(Ei(t)){var n=e.getNameOfDeclaration(t);if(n&&e.isIdentifier(n))return e.idText(n)}})))||e.unescapeLeadingUnderscores(p.escapedName);"export="===_&&(e.getESModuleInterop(W)||W.allowSyntheticDefaultImports)&&(_="default");var f=ne(p,_);switch(N(p),u.kind){case 203:if(254===(null===(o=null===(a=u.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var m=C(p.parent||p,r),g=u.propertyName;w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(m),void 0),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 297:221===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&$(e.unescapeLeadingUnderscores(t.escapedName),f);break;case 254:if(e.isPropertyAccessExpression(u.initializer)){var h=u.initializer,y=e.factory.createUniqueName(n),v=C(p.parent||p,r);w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(v))),0),w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(y,h.name)),i);break}case 265:if("export="===p.escapedName&&e.some(p.declarations,e.isJsonSourceFile)){G(t);break}var b=!(512&p.flags||e.isVariableDeclaration(u));w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),b?F(p,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(C(p,r)))),b?i:0);break;case 264:w(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 267:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(C(p.parent||p,r)),void 0),0);break;case 268:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(C(p,r)),void 0),0);break;case 274:w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(C(p,r))),0);break;case 270:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,n!==_?e.factory.createIdentifier(_):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(C(p.parent||p,r)),void 0),0);break;case 275:var x=u.parent.parent.moduleSpecifier;$(e.unescapeLeadingUnderscores(t.escapedName),x?_:f,x&&e.isStringLiteralLike(x)?e.factory.createStringLiteral(x.text):void 0);break;case 271:G(t);break;case 221:case 206:case 207:"default"===t.escapedName||"export="===t.escapedName?G(t):$(n,f);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function $(t,r,n){w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t!==r?r:void 0,t)]),n),0)}function G(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&xi(t),u=s&&Oi(s,!0);if(u&&e.length(u.declarations)&&e.some(u.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(c)))){var d=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=d&&e.isEntityNameExpression(d)?(t=>{switch(t.kind){case 79:return t;case 161:do{t=t.left}while(79!==t.kind);return t;case 206:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(79!==t.kind);return t}})(d):void 0,_=p&&Ji(p,67108863,!0,!0,c);(_||u)&&N(_||u);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=()=>!1,o)l.push(e.factory.createExportAssignment(void 0,void 0,a,P(u,r,67108863)));else if(p===d&&p)$(i,e.idText(p));else if(d&&e.isClassExpression(d))$(i,ne(u,e.symbolName(u)));else{var m=te(i,t);w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(m),F(u,r,67108863,!1)),0),$(i,m)}return r.tracker.trackSymbol=f,!0}m=te(i,t);var g=tm(Zo(ca(t)));return q(g,t)?O(g,t,m,o?0:1):w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(m,void 0,U(r,g,t,c,N,n))],2)),u&&4&u.flags&&"export="===u.escapedName?2:i===m?1:0),o?(l.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(m))),!0):i!==m&&($(i,m),!0)}function q(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!e.length(al(t))&&!Xa(t)&&!(!e.length(e.filter(Ac(t),z))&&!e.length(el(t,0)))&&!e.length(el(t,1))&&!B(n,c)&&!(t.symbol&&e.some(t.symbol.declarations,(t=>e.getSourceFileOfNode(t)!==i)))&&!e.some(Ac(t),(e=>js(e.escapedName)))&&!e.some(Ac(t),(t=>e.some(t.declarations,(t=>e.getSourceFileOfNode(t)!==i))))&&e.every(Ac(t),(t=>e.isIdentifierText(e.symbolName(t),J)))}function X(t,i,a){return(o,s,l)=>{var u,d,p,_,f,m=e.getDeclarationModifierFlagsFromSymbol(o),h=!!(8&m);if(s&&2887656&o.flags)return[];if(4194304&o.flags||l&&Qc(l,o.escapedName)&&Vb(Qc(l,o.escapedName))===Vb(o)&&(16777216&o.flags)==(16777216&Qc(l,o.escapedName).flags)&&a_(Zo(o),uo(l,o.escapedName)))return[];var y=-257&m|(s?32:0),v=L(o,r),b=null===(u=o.declarations)||void 0===u?void 0:u.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var x=[];if(65536&o.flags&&x.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(y),v,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,h?void 0:U(r,Zo(o),o,c,N,n))],void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isSetAccessor))||b)),32768&o.flags){var E=8&m;x.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(y),v,[],E?void 0:U(r,Zo(o),o,c,N,n),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return x}if(98311&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((Vb(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,h?void 0:U(r,Zo(o),o,c,N,n),void 0),(null===(_=o.declarations)||void 0===_?void 0:_.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=el(Zo(o),0);if(8&y)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((Vb(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var D=[],T=0,C=S;T<C.length;T++){var k=C[T],A=g(k,i,r,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:y?e.factory.createModifiersFromModifierFlags(y):void 0}),w=k.declaration&&e.isPrototypePropertyAssignment(k.declaration.parent)?k.declaration.parent:k.declaration;D.push(e.setTextRange(A,w))}return D}return e.Debug.fail("Unhandled class member kind! ".concat(o.__debugFlags||o.flags))}}function Y(t,n,i,a){var o=el(n,t);if(1===t){if(!i&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(i){var s=el(i,1);if(!e.length(s)&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!af(o[l],s[l],!1,!1,!0,o_)){c=!0;break}if(!c)return[]}}for(var u=0,d=0,p=o;d<p.length;d++){var _=p[d];_.declaration&&(u|=e.getSelectedEffectiveModifierFlags(_.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var f=[],m=0,h=o;m<h.length;m++){var y=h[m],v=g(y,a,r);f.push(e.setTextRange(v,y.declaration))}return f}function Q(e,t){for(var n=[],i=0,a=al(e);i<a.length;i++){var o=a[i];if(t){var s=ol(t,o.keyType);if(s&&a_(o.type,s.type))continue}n.push(_(o,r,void 0))}return n}function Z(t,n){var i,a;if(t.target&&Oa(t.target.symbol,c,n)?(i=e.map(eu(t),(e=>s(e,r))),a=P(t.target.symbol,r,788968)):t.symbol&&Oa(t.symbol,c,n)&&(a=P(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function ee(t){return Z(t,788968)||(t.symbol?e.factory.createExpressionWithTypeArguments(P(t.symbol,r,788968),void 0):void 0)}function te(e,t){var n,i,a=t?M(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=re(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)o++,e="".concat(s,"_").concat(o);return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function re(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=ro(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,J)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=M(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=re(e,t),r.remappedSymbolNames.set(n,t),t)}})(t,r,c)))};function n(r,n,a,o){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:a&&a.trackSymbol?a:{trackSymbol:()=>!1,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),fileExists:e=>t.fileExists(e),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?e=>t.readFile(e):void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=i(l,l.tracker);var u=o(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function i(e,t){var r=t.trackSymbol;return m(m({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(void 0,t);return i&&(e.reportedDiagnostic=!0),i}});function n(t){return t?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.reportedDiagnostic=!0,t.apply(void 0,r)}:t}}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(130)):void(n.encounteredError=!0);if(536870912&n.flags||(t=$c(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(k(t.aliasSymbol),p(t.aliasTypeArguments,n)):t===Ue?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===Ke?138:130));if(2&t.flags)return e.factory.createKeywordTypeNode(155);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(158);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&t.flags&&!(1048576&t.flags)){var a=ua(t.symbol),u=A(a,n,788968);if(ks(a)===t)return u;var f=e.symbolName(t.symbol);return e.isIdentifierText(f,0)?J(u,e.factory.createTypeReferenceNode(f,void 0)):e.isImportTypeNode(u)?(u.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(u,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(f)))):e.isTypeReferenceNode(u)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(u.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(f))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return A(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var m=t.value;return n.approximateLength+=(""+m).length,e.factory.createLiteralTypeNode(m<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-m)):e.factory.createNumericLiteral(m))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(Ia(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,A(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(154,e.factory.createKeywordTypeNode(151))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(153);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(151);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||Pa(t.aliasSymbol,n.enclosingDeclaration))){var y=p(t.aliasTypeArguments,n);return!Sa(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?A(t.aliasSymbol,n,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?K(t,W):W(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,x=wc(t);if(x){var E=Jl(t,!0);E&&a_(x,E)||(n.approximateLength+=9,b=x&&s(x,n))}return e.factory.createInferTypeNode(h(t,n,b))}if(4&n.flags&&262144&t.flags&&!Pa(t.symbol,n.enclosingDeclaration)){var S=w(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return A(t.symbol,n,788968);var D=(t===Pt||t===It)&&c&&c.symbol?(t===It?"sub-":"super-")+e.symbolName(c.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(D),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var T=1048576&t.flags?(e=>{for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?it:Ss(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&mp(e[n+o-1])===mp(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push(qe),32768&r&&t.push(Je),t||e})(t.types):t.types;if(1===e.length(T))return s(T[0],n);var C=p(T,n,!0);return C&&C.length>0?1048576&t.flags?e.factory.createUnionTypeNode(C):e.factory.createIntersectionTypeNode(C):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),V(t);if(4194304&t.flags){var N=t.type;n.approximateLength+=6;var F=s(N,n);return e.factory.createTypeOperatorNode(140,F)}if(134217728&t.flags){var P=t.texts,I=t.types,R=e.factory.createTemplateHead(P[0]),L=e.factory.createNodeArray(e.map(I,((t,r)=>e.factory.createTemplateLiteralTypeSpan(s(t,n),(r<I.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(P[r+1])))));return n.approximateLength+=2,e.factory.createTemplateLiteralType(R,L)}if(268435456&t.flags){var B=s(t.type,n);return A(t.symbol,n,788968,[B])}if(8388608&t.flags){var j=s(t.objectType,n);return F=s(t.indexType,n),n.approximateLength+=2,e.factory.createIndexedAccessTypeNode(j,F)}return 16777216&t.flags?K(t,(t=>(t=>{var r=s(t.checkType,n);if(n.approximateLength+=15,4&n.flags&&t.root.isDistributive&&!(262144&t.checkType.flags)){var i=Ea($n(262144,"T")),a=w(i,n),o=e.factory.createTypeReferenceNode(a);n.approximateLength+=37;var c=Bp(t.root.checkType,i,t.combinedMapper||t.mapper),l=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var u=s(Xp(t.root.extendsType,c),n);n.inferTypeParameters=l;var d=U(Xp(Tp(t.root.node.trueType),c)),p=U(Xp(Tp(t.root.node.falseType),c));return e.factory.createConditionalTypeNode(r,e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(o.typeName))),e.factory.createConditionalTypeNode(e.factory.createTypeReferenceNode(e.factory.cloneNode(a)),s(t.checkType,n),e.factory.createConditionalTypeNode(o,u,d,p),e.factory.createKeywordTypeNode(143)),e.factory.createKeywordTypeNode(143))}var _=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var f=s(t.extendsType,n);n.inferTypeParameters=_;var m=U(Qd(t)),g=U(Zd(t));return e.factory.createConditionalTypeNode(r,f,m,g)})(t))):33554432&t.flags?s(t.baseType,n):e.Debug.fail("Should be unreachable.");function U(e){var t,r,i;return 1048576&e.flags?(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(Qu(e)))?(131072&n.flags||(n.encounteredError=!0,null===(i=null===(r=n.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===i||i.call(r)),l(n)):K(e,(e=>s(e,n))):s(e,n)}function V(t){var r,i=t.id,a=t.symbol;if(a){var o=Xa(t)?788968:111551;if($v(a.valueDeclaration))return A(a,n,o);if(32&a.flags&&!$o(a)&&!(a.valueDeclaration&&226===a.valueDeclaration.kind&&2048&n.flags)||896&a.flags||(()=>{var t,r=!!(8192&a.flags)&&e.some(a.declarations,(t=>e.isStatic(t))),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(e=>305===e.parent.kind||262===e.parent.kind)));if(r||o)return(!!(4096&n.flags)||(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&n.flags)||Ia(a,n.enclosingDeclaration))})())return A(a,n,o);if(null===(r=n.visitedTypes)||void 0===r?void 0:r.has(i)){var s=(t=>{if(t.symbol&&2048&t.symbol.flags&&t.symbol.declarations){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(259===r.kind)return la(r)}})(t);return s?A(s,n,788968):l(n)}return K(t,z)}return z(t)}function K(t,r){var i,a,o=t.id,s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,c=4&e.getObjectFlags(t)&&t.node?"N"+O(t.node):16777216&t.flags?"N"+O(t.root.node):t.symbol?(s?"+":"")+M(t.symbol):void 0;n.visitedTypes||(n.visitedTypes=new e.Set),c&&!n.symbolDepth&&(n.symbolDepth=new e.Map);var u=n.enclosingDeclaration&&ni(n.enclosingDeclaration),d="".concat(Qu(t),"|").concat(n.flags);u&&(u.serializedTypes||(u.serializedTypes=new e.Map));var p,_=null===(i=null==u?void 0:u.serializedTypes)||void 0===i?void 0:i.get(d);if(_)return _.truncating&&(n.truncating=!0),n.approximateLength+=_.addedLength,function t(r){return e.nodeIsSynthesized(r)||e.getParseTreeNode(r)!==r?e.setTextRange(e.factory.cloneNode(e.visitEachChild(r,t,e.nullTransformationContext,h)),r):r}(_);if(c){if((p=n.symbolDepth.get(c)||0)>10)return l(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,m=r(t),g=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(m.truncating=!0),m.addedLength=g,null===(a=null==u?void 0:u.serializedTypes)||void 0===a||a.set(d,m)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),m;function h(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function z(t){if(Sc(t)||t.containsError)return(t=>{e.Debug.assert(!!(524288&t.flags));var r,i,a=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;if(yc(t)){if(!(262144&vc(t).flags)&&4&n.flags){var c=w(Ea($n(262144,"T")),n);i=e.factory.createTypeReferenceNode(c)}r=e.factory.createTypeOperatorNode(140,i||s(vc(t),n))}else r=s(fc(t),n);var l=h(_c(t),n,r),u=t.declaration.nameType?s(mc(t),n):void 0,d=s(Wf(gc(t),!!(4&bc(t))),n),p=e.factory.createMappedTypeNode(a,l,u,o,d,void 0);n.approximateLength+=10;var _=e.setEmitFlags(p,1);return yc(t)&&!(262144&vc(t).flags)&&4&n.flags?e.factory.createConditionalTypeNode(s(vc(t),n),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(i.typeName))),_,e.factory.createKeywordTypeNode(143)):_})(t);var r=Dc(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return g(r.callSignatures[0],179,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return g(r.constructSignatures[0],180,n)}var i=e.filter(r.constructSignatures,(e=>!!(4&e.flags)));if(e.some(i)){var a=e.map(i,Ll);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(e=>!(4194304&e.flags))):e.length(r.properties))&&a.push((t=>{if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(e=>!(4&e.flags)));if(t.constructSignatures===r)return t;var n=ka(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n})(r)),s(_d(a),n)}var c=n.flags;n.flags|=4194304;var u=(t=>{if(o(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i<a.length;i++){var s=a[i];r.push(g(s,174,n))}for(var c=0,u=t.constructSignatures;c<u.length;c++)4&(s=u[c]).flags||r.push(g(s,175,n));for(var p=0,f=t.indexInfos;p<f.length;p++){var m=f[p];r.push(_(m,n,1024&t.objectFlags?l(n):void 0))}var h=t.properties;if(!h)return r;for(var y=0,v=0,b=h;v<b.length;v++){var x=b[v];if(y++,2048&n.flags){if(4194304&x.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(x)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(x.escapedName))}if(o(n)&&y+2<h.length-1){r.push(e.factory.createPropertySignature(void 0,"... ".concat(h.length-y," more ..."),void 0,void 0)),d(h[h.length-1],n,r);break}d(x,n,r)}return r.length?r:void 0})(r);n.flags=c;var p=e.factory.createTypeLiteralNode(u);return n.approximateLength+=2,e.setEmitFlags(p,1024&n.flags?0:1),p}function W(t){var r=eu(t);if(t.target===Kt||t.target===zt){if(2&n.flags){var i=s(r[0],n);return e.factory.createTypeReferenceNode(t.target===Kt?"Array":"ReadonlyArray",[i])}var a=s(r[0],n),o=e.factory.createArrayTypeNode(a);return t.target===Kt?o:e.factory.createTypeOperatorNode(145,o)}if(!(8&t.target.objectFlags)){if(2048&n.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ia(t.symbol,n.enclosingDeclaration))return V(t);var c=t.target.outerTypeParameters,l=void(E=0);if(c)for(var u=c.length;E<u;){var d=E,_=$l(c[E]);do{E++}while(E<u&&$l(c[E])===_);if(!e.rangeEquals(c,r,d,E)){var f=p(r.slice(d,E),n),m=n.flags;n.flags|=16;var g=A(_,n,788968,f);n.flags=m,l=l?J(l,g):g}}var h=void 0;if(r.length>0){var y=(t.target.typeParameters||e.emptyArray).length;h=p(r.slice(E,y),n)}S=n.flags,n.flags|=16;var v=A(t.symbol,n,788968,h);return n.flags=S,l?J(l,v):v}if((r=e.sameMap(r,((e,r)=>Wf(e,!!(2&t.target.elementFlags[r]))))).length>0){var b=tu(t),x=p(r.slice(0,b),n);if(x){if(t.target.labeledElementDeclarations)for(var E=0;E<x.length;E++){var S=t.target.elementFlags[E];x[E]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(lb(t.target.labeledElementDeclarations[E]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(x[E]):x[E])}else for(E=0;E<Math.min(b,x.length);E++)S=t.target.elementFlags[E],x[E]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(x[E]):x[E]):2&S?e.factory.createOptionalTypeNode(x[E]):x[E];var D=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(145,D):D}}if(n.encounteredError||524288&n.flags)return D=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),t.target.readonly?e.factory.createTypeOperatorNode(145,D):D;n.encounteredError=!0}function J(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=H(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var l=0,u=H(r);l<u.length;l++)s=u[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(t,c,n)}function H(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function l(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function u(t,r){var n;return!!(8192&e.getCheckFlags(t))&&(e.contains(r.reverseMappedStack,t)||(null===(n=r.reverseMappedStack)||void 0===n?void 0:n[0])&&!(16&e.getObjectFlags(e.last(r.reverseMappedStack).propertyType)))}function d(t,r,n){var i,a,o=!!(8192&e.getCheckFlags(t)),s=u(t,r)?Re:es(t),c=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)&&js(t.escapedName))if(t.declarations){var d=e.first(t.declarations);if(Us(d))if(e.isBinaryExpression(d)){var p=e.getNameOfDeclaration(d);p&&e.isElementAccessExpression(p)&&e.isPropertyAccessEntityNameExpression(p.argumentExpression)&&b(p.argumentExpression,c,r)}else b(d.name.expression,c,r)}else(null===(i=r.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&r.tracker.reportNonSerializableProperty(za(t));r.enclosingDeclaration=t.valueDeclaration||(null===(a=t.declarations)||void 0===a?void 0:a[0])||c;var _=L(t,r);r.enclosingDeclaration=c,r.approximateLength+=e.symbolName(t).length+1;var f=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Tc(s).length&&!Vb(t))for(var m=0,h=el(Tg(s,(e=>!(32768&e.flags))),0);m<h.length;m++){var y=g(h[m],168,r,{name:_,questionToken:f});n.push(S(y))}else{var v=void 0;u(t,r)?v=l(r):(o&&(r.reverseMappedStack||(r.reverseMappedStack=[]),r.reverseMappedStack.push(t)),v=s?U(r,s,t,c):e.factory.createKeywordTypeNode(130),o&&r.reverseMappedStack.pop());var x=Vb(t)?[e.factory.createToken(145)]:void 0;x&&(r.approximateLength+=9);var E=e.factory.createPropertySignature(x,_,f,v);n.push(S(E))}function S(r){var n;if(e.some(t.declarations,(e=>347===e.kind))){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((e=>347===e.kind)),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function p(t,r,n){if(e.some(t)){if(o(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[s(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),s(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],c=0,l=0,u=t;l<u.length;l++){var d=u[l];if(c++,o(r)&&c+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... ".concat(t.length-c," more ..."),void 0));var p=s(t[t.length-1],r);p&&a.push(p);break}r.approximateLength+=2;var _=s(d,r);_&&(a.push(_),i&&e.isIdentifierTypeReference(_)&&i.add(_.typeName.escapedText,[d,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((t=>{if(!e.arrayIsHomogeneous(t,((e,t)=>{return(r=e[0])===(n=t[0])||!!r.symbol&&r.symbol===n.symbol||!!r.aliasSymbol&&r.aliasSymbol===n.aliasSymbol;var r,n})))for(var n=0,i=t;n<i.length;n++){var o=i[n],c=o[0],l=o[1];a[l]=s(c,r)}})),r.flags=f}return a}}function _(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=s(t.keyType,r),o=e.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,a,void 0);return n||(n=s(t.type||Re,r)),t.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(145)]:void 0,[o],n)}function g(t,r,n,i){var a,o,c,l,u,d,p=256&n.flags;p&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?d=t.target.typeParameters.map((e=>s(Xp(e,t.mapper),n))):u=t.typeParameters&&t.typeParameters.map((e=>y(e,n)));var _,f=Zs(t,!0)[0],m=(e.some(f,(t=>t!==f[f.length-1]&&!!(32768&e.getCheckFlags(t))))?t.parameters:f).map((e=>v(e,n,171===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports))),g=((t,r)=>{if(t.thisParameter)return v(t.thisParameter,r);if(t.declaration){var n=e.getJSDocThisTag(t.declaration);if(n&&n.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,s(Tp(n.typeExpression),r))}})(t,n);g&&m.unshift(g);var h=Cl(t);if(h){var b=2===h.kind||3===h.kind?e.factory.createToken(128):void 0,x=1===h.kind||3===h.kind?e.setEmitFlags(e.factory.createIdentifier(h.parameterName),16777216):e.factory.createThisTypeNode(),E=h.type&&s(h.type,n);_=e.factory.createTypePredicateNode(b,x,E)}else{var S=Al(t);!S||p&&po(S)?p||(_=e.factory.createKeywordTypeNode(130)):_=((t,r,n,i,a)=>{if(!_o(r)&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(e=>e===t.enclosingDeclaration))&&o){var c=Tp(o);if((262144&c.flags&&c.isThisType?Xp(c,n.mapper):c)===r&&j(o,r)){var l=K(t,o,i,a);if(l)return l}}}return s(r,t)})(n,S,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var D=null==i?void 0:i.modifiers;if(180===r&&4&t.flags){var T=e.modifiersToFlags(D);D=e.factory.createModifiersFromModifierFlags(128|T)}var C=174===r?e.factory.createCallSignature(u,m,_):175===r?e.factory.createConstructSignature(u,m,_):168===r?e.factory.createMethodSignature(D,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,u,m,_):169===r?e.factory.createMethodDeclaration(void 0,D,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,u,m,_,void 0):171===r?e.factory.createConstructorDeclaration(void 0,D,m,void 0):172===r?e.factory.createGetAccessorDeclaration(void 0,D,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),m,_,void 0):173===r?e.factory.createSetAccessorDeclaration(void 0,D,null!==(l=null==i?void 0:i.name)&&void 0!==l?l:e.factory.createIdentifier(""),m,void 0):176===r?e.factory.createIndexSignature(void 0,D,m,_):317===r?e.factory.createJSDocFunctionType(m,_):179===r?e.factory.createFunctionTypeNode(u,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):180===r?e.factory.createConstructorTypeNode(D,u,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):256===r?e.factory.createFunctionDeclaration(void 0,D,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,m,_,void 0):213===r?e.factory.createFunctionExpression(D,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,m,_,e.factory.createBlock([])):214===r?e.factory.createArrowFunction(D,u,m,_,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return d&&(C.typeArguments=e.factory.createNodeArray(d)),C}function h(t,r,n){var i=r.flags;r.flags&=-513;var a=e.factory.createModifiersFromModifierFlags($_(t)),o=w(t,r),c=Uc(t),l=c&&s(c,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,o,n,l)}function y(e,t,r){return void 0===r&&(r=wc(e)),h(e,t,r&&s(r,t))}function v(t,r,n,i,a){var o=e.getDeclarationOfKind(t,164);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,340));var s=Zo(t);o&&CD(o)&&(s=Bf(s));var c=U(r,s,t,r.enclosingDeclaration,i,a),l=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,u=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,d=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):161===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Bs(n)&&b(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(t),p=o&&ml(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,_=e.factory.createParameterDeclaration(void 0,l,u,d,p,c,void 0);return r.approximateLength+=e.symbolName(t).length+3,_}function b(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=li(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function x(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),E(e,t,r,n)}function E(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=wa(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Fa(c[0],r.enclosingDeclaration,1===c.length?a:Na(a))){var l=da(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(l)){s=l.map((t=>e.some(t.declarations,Ua)?C(t,r):void 0));var u=l.map(((e,t)=>t));u.sort(((t,r)=>{var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var d=0,p=u.map((e=>l[e]));d<p.length;d++){var _=p[d],f=t(_,Na(a),!1);if(f){if(_.exports&&_.exports.get("export=")&&fa(_.exports.get("export="),n)){c=f;break}c=f.concat(c||[_a(_,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,Ua))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function S(t,r){var n;return 524384&SS(t).flags&&(n=e.factory.createNodeArray(e.map(ss(t),(e=>y(e,r))))),n}function D(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=M(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var u=(t=>e.concatenate(os(t),ss(t)))(2097152&c.flags?Li(c):c);s=p(e.map(u,(e=>Pp(e,l.mapper))),n)}else s=S(a,n)}return s}}function T(t){return e.isIndexedAccessTypeNode(t.objectType)?T(t.objectType):t}function C(t,r,n){var i,o=e.getDeclarationOfKind(t,305);if(!o){var s=e.firstDefined(t.declarations,(e=>pa(e,t)));s&&(o=e.getDeclarationOfKind(s,305))}if(o&&void 0!==o.moduleName)return o.moduleName;if(!o){if(r.tracker.trackReferencedAmbientModule){var c=e.filter(t.declarations,e.isAmbientModule);if(e.length(c))for(var l=0,u=c;l<u.length;l++){var d=u[l];r.tracker.trackReferencedAmbientModule(d,t)}}if(a.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return a.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var p,_,f=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),g=n||(null==f?void 0:f.impliedNodeFormat),h=(p=f.path,void 0===(_=g)?p:"".concat(_,"|").concat(p)),y=ri(t),v=y.specifierCache&&y.specifierCache.get(h);if(!v){var b=!!e.outFile(W),x=r.tracker.moduleResolverHost,E=b?m(m({},W),{baseUrl:x.getCommonSourceDirectory()}):W;v=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,fe,E,f,x,{importModuleSpecifierPreference:b?"non-relative":"project-relative",importModuleSpecifierEnding:b?"minimal":g===e.ModuleKind.ESNext?"js":void 0},{overrideImportMode:n})),null!==(i=y.specifierCache)&&void 0!==i||(y.specifierCache=new e.Map),y.specifierCache.set(h,v)}return v}function k(t){var r=e.factory.createIdentifier(e.unescapeLeadingUnderscores(t.escapedName));return t.parent?e.factory.createQualifiedName(k(t.parent),r):r}function A(t,r,n,i){var a,o,s,c,l=x(t,r,n,!(16384&r.flags)),u=111551===n;if(e.some(l[0].declarations,Ua)){var d=l.length>1?N(l,l.length-1,1):void 0,p=i||D(l,0,r),_=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),m=void 0,g=void 0;if(e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==_?void 0:_.impliedNodeFormat)&&(m=C(l[0],r,e.ModuleKind.ESNext),g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),m||(m=C(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.Classic&&m.indexOf("/node_modules/")>=0){var h=m;if(e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.NodeNext){var y=(null==_?void 0:_.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(m=C(l[0],r,y)).indexOf("/node_modules/")>=0?m=h:(g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(y===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}g||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(h))}var v=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=m.length+10,!d||e.isEntityName(d))return d&&((k=e.isIdentifier(d)?d:d.right).typeArguments=void 0),e.factory.createImportTypeNode(v,g,d,p,u);var b=T(d),E=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(v,g,E,p,u),b.indexType)}var S=N(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var k,A=(k=e.isIdentifier(S)?S:S.right).typeArguments;return k.typeArguments=void 0,e.factory.createTypeReferenceNode(S,A);function N(t,n,a){var o,s=n===t.length-1?i:D(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=ro(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&ia(l)){var u=ia(l);e.forEachEntry(u,((t,r)=>{if(fa(t,c)&&!js(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(d.expression)):p}o=ro(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&Js(l)&&Js(l).get(c.escapedName)&&fa(Js(l).get(c.escapedName),c))return p=N(t,n-1,a),e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)));var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return _.symbol=c,n>a?(p=N(t,n-1,a),e.isEntityName(p)?e.factory.createQualifiedName(p,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):_}}function N(e,t,r){var n=li(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function w(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Qu(t));if(a)return a}var o=F(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||N(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Qu(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function F(t,r,n,i){var a=x(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=D(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ro(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function P(t,r,n){var i=x(t,r,n);return function t(n,i){var a=D(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ro(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Ua))return e.factory.createStringLiteral(C(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),J):e.isIdentifierStart(c,J);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(e=>e.substring(1))),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function I(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function R(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,R),i=((t,r,n)=>{var i=ri(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(W))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(W)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(P(i.symbol,r,111551))}})(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,I);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(W),n,o)}function B(t,r){return t.declarations&&e.find(t.declarations,(t=>!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(e=>e===r)))))}function j(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=yl(r.target.typeParameters)}function U(t,r,n,i,a,o){if(!_o(r)&&i){var c=B(n,i);if(c&&!e.isFunctionLikeDeclaration(c)&&!e.isGetAccessorDeclaration(c)){var l=e.getEffectiveTypeAnnotationNode(c);if(((t,r,n)=>{var i=Tp(t);return i===n||!(!e.isParameter(r)||!r.questionToken)&&ag(n,524288)===i})(l,c,r)&&j(l,r)){var u=K(t,l,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(r=>e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration))))&&(t.flags|=1048576);var p=s(r,t);return t.flags=d,p}function V(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Ji(s,67108863,!0,!0);if(c&&(0!==Ra(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=ks(c),u=262144&c.flags&&!Pa(l.symbol,r.enclosingDeclaration)?w(l,r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function K(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var c=!1,l=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||319===i.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(155);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(153)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(t=>{var a=e.isIdentifier(t.name)?t.name:t.name.right,o=uo(Tp(i),a.escapedText),c=o&&t.typeExpression&&Tp(t.typeExpression.type)!==o?s(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(130))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,((t,n)=>t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0))),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,((t,n)=>e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0))),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!j(i,Tp(i))||mu(i)||Pe===su(i,788968,!0)))return e.setOriginalNode(s(Tp(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=ni(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=yl(ss(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,((r,i)=>{if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=HD(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Gi(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i})(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(s(Tp(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=V(i,n,a),_=p.introducesError,f=p.node;if(c=c||_,f!==i)return f}return l&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(l,i.pos).line===e.getLineAndCharacterOfPosition(l,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function g(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg".concat(r)}}));if(!c)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}})(),ce=e.createSymbolTable(),le=$n(4,"undefined");le.declarations=[];var ue=$n(1536,"globalThis",8);ue.exports=ce,ue.declarations=[],ce.set(ue.escapedName,ue);var de,pe=$n(4,"arguments"),_e=$n(4,"require"),fe={getNodeCount:()=>e.sum(t.getSourceFiles(),"nodeCount"),getIdentifierCount:()=>e.sum(t.getSourceFiles(),"identifierCount"),getSymbolCount:()=>e.sum(t.getSourceFiles(),"symbolCount")+x,getTypeCount:()=>b,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:Nn.size,identity:Fn.size,subtype:kn.size,strictSubtype:An.size}),isUndefinedSymbol:e=>e===le,isArgumentsSymbol:e=>e===pe,isUnknownSymbol:e=>e===Pe,getMergedSymbol:ca,getDiagnostics:qS,getGlobalDiagnostics:()=>(XS(),Sn.getGlobalDiagnostics()),getRecursionIdentity:rf,getUnmatchedProperties:Sm,getTypeOfSymbolAtLocation(t,r){var n=e.getParseTreeNode(r);return n?((t,r)=>{if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=Ex(r);if(ma(ni(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&zo(r.parent)?Ho(r.parent.symbol):es(t)})(t,n):je},getTypeOfSymbol:Zo,getSymbolsOfParameterPropertyDeclaration(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):((t,r)=>{var n=t.parent,i=t.parent.parent,a=ai(n.locals,r,111551),o=ai(Js(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")})(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:ks,getPropertiesOfType:Ac,getPropertyOfType:(t,r)=>Qc(t,e.escapeLeadingUnderscores(r)),getPrivateIdentifierPropertyOfType(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Iy(e.escapeLeadingUnderscores(r),i);return a?My(t,a):void 0}},getTypeOfPropertyOfType:(t,r)=>uo(t,e.escapeLeadingUnderscores(r)),getIndexInfoOfType:(e,t)=>ol(e,0===t?Ye:Qe),getIndexInfosOfType:al,getSignaturesOfType:el,getIndexTypeOfType:(e,t)=>sl(e,0===t?Ye:Qe),getIndexType:e=>xd(e),getBaseTypes:ms,getBaseTypeOfLiteralType:Ef,getWidenedType:tm,getTypeFromTypeNode(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Tp(r):je},getParameterType:fb,getParameterIdentifierNameAtPosition(e,t){var r;if(317!==(null===(r=e.declaration)||void 0===r?void 0:r.kind)){var n=e.parameters.length-(U(e)?1:0);if(t<n){var i=e.parameters[t];return db(i)?[i.escapedName,!1]:void 0}var a=e.parameters[n]||Pe;if(db(a)){var o=Zo(a);if(kf(o)){var s=o.target.labeledElementDeclarations,c=null==s?void 0:s[t-n],l=!!(null==c?void 0:c.dotDotDotToken);return c?[lb(c),l]:void 0}return t===n?[a.escapedName,!0]:void 0}}},getPromisedTypeOfPromise:Hx,getAwaitedType:e=>Yx(e),getReturnTypeOfSignature:Al,isNullableType:Sy,getNullableType:Lf,getNonNullableType:jf,getNonOptionalType:Vf,getTypeArguments:eu,typeToTypeNode:se.typeToTypeNode,indexInfoToIndexSignatureDeclaration:se.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:se.signatureToSignatureDeclaration,symbolToEntityName:se.symbolToEntityName,symbolToExpression:se.symbolToExpression,symbolToTypeParameterDeclarations:se.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:se.symbolToParameterDeclaration,typeParameterToDeclaration:se.typeParameterToDeclaration,getSymbolsInScope(t,r){var n=e.getParseTreeNode(t);return n?((t,r)=>{if(33554432&t.flags)return[];var n=e.createSymbolTable(),i=!1;return(()=>{for(;t;){switch(t.locals&&!ii(t)&&o(t.locals,r),t.kind){case 305:if(!e.isExternalModule(t))break;case 261:s(la(t).exports,2623475&r);break;case 260:o(la(t).exports,8&r);break;case 226:t.name&&a(t.symbol,r);case 257:case 258:i||o(Js(la(t)),788968&r);break;case 213:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(pe,r),i=e.isStatic(t),t=t.parent}o(ce,r)})(),n.delete("this"),pl(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach((e=>{a(e,t)}))}function s(t,r){r&&t.forEach((t=>{e.getDeclarationOfKind(t,275)||e.getDeclarationOfKind(t,274)||a(t,r)}))}})(n,r):[]},getSymbolAtLocation(t){var r=e.getParseTreeNode(t);return r?aD(r,!0):void 0},getIndexInfosAtLocation(t){var r=e.getParseTreeNode(t);return r?(t=>{if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=yd(t),n=Ex(t.parent.expression),i=1048576&n.flags?n.types:[n];return e.flatMap(i,(t=>e.filter(al(t),(e=>nl(r,e.keyType)))))}})(r):void 0},getShorthandAssignmentValueSymbol(t){var r=e.getParseTreeNode(t);return r?(e=>{if(e&&297===e.kind)return Ji(e.name,2208703)})(r):void 0},getExportSpecifierLocalTargetSymbol(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?(t=>e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?wi(t.parent.parent,t):Ji(t.propertyName||t.name,2998271):Ji(t,2998271))(r):void 0},getExportSymbolOfSymbol:e=>ca(e.exportSymbol||e),getTypeAtLocation(t){var r=e.getParseTreeNode(t);return r?oD(r):je},getTypeOfAssignmentPattern(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&sD(r)||je},getPropertySymbolOfDestructuringAssignment(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?(t=>{var r=sD(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Qc(r,t.escapedText)})(r):void 0},signatureToString:(t,r,n,i)=>Wa(t,e.getParseTreeNode(r),n,i),typeToString:(t,r,n)=>Ja(t,e.getParseTreeNode(r),n),symbolToString:(t,r,n,i)=>za(t,e.getParseTreeNode(r),n,i),typePredicateToString:(t,r,n)=>Ya(t,e.getParseTreeNode(r),n),writeSignature:(t,r,n,i,a)=>Wa(t,e.getParseTreeNode(r),n,i,a),writeType:(t,r,n,i)=>Ja(t,e.getParseTreeNode(r),n,i),writeSymbol:(t,r,n,i,a)=>za(t,e.getParseTreeNode(r),n,i,a),writeTypePredicate:(t,r,n,i)=>Ya(t,e.getParseTreeNode(r),n,i),getAugmentedPropertiesOfType:dD,getRootSymbols:function t(r){var n=(t=>{if(6&e.getCheckFlags(t))return e.mapDefined(ri(t).containingType.types,(e=>Qc(e,t.escapedName)));if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray((e=>{for(var t,r=e;r=ri(r).target;)t=r;return t})(t))}})(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:qv,getContextualType(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n)return 4&r?me(n,(()=>Mh(n,r))):Mh(n,r)},getContextualTypeForObjectLiteralElement(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?Ah(r):void 0},getContextualTypeForArgumentAtIndex(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&Sh(n,r)},getContextualTypeForJsxAttribute(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&wh(r)},isContextSensitive:t_,getTypeOfPropertyOfContextualType:Ch,getFullyQualifiedName:Wi,getResolvedSignature:(e,t,r)=>ge(e,t,r,0),getResolvedSignatureForStringLiteralCompletions:(e,t,r)=>ge(e,r,void 0,32,t),getResolvedSignatureForSignatureHelp:(e,t,r)=>ge(e,t,r,16),getExpandedParameters:Zs,hasEffectiveRestParameter:vb,containsArgumentsReference:El,getConstantValue(t){var r=e.getParseTreeNode(t,PD);return r?ID(r):void 0},isValidPropertyAccess(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&((e,t)=>{switch(e.kind){case 206:return ev(e,106===e.expression.kind,t,tm(Tx(e.expression)));case 161:return ev(e,!1,t,tm(Tx(e.left)));case 200:return ev(e,!1,t,Tp(e))}})(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&Zy(i,r,n)},getSignatureFromDeclaration(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?bl(r):void 0},isImplementationOfOverload(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?TD(r):void 0},getImmediateAliasedSymbol:qh,getAliasedSymbol:Li,getEmitResolver:(e,t)=>(qS(e,t),oe),getExportsOfModule:ta,getExportsAndPropertiesOfModule(t){var r=ta(t),n=Yi(t);if(n!==t){var i=Zo(n);na(i)&&e.addRange(r,Ac(i))}return r},forEachExportAndPropertyOfModule(e,t){aa(e).forEach(((e,r)=>{Sa(r)||t(e,r)}));var r=Yi(e);if(r!==e){var n=Zo(r);na(n)&&((e,r)=>{3670016&(e=zc(e)).flags&&Dc(e).members.forEach(((e,r)=>{Ta(e,r)&&((e,r)=>{t(e,r)})(e,r)}))})(n)}},getSymbolWalker:e.createGetSymbolWalker((e=>Fl(e)||Re),Cl,Al,ms,Dc,Zo,Vm,wc,e.getFirstIdentifier,eu),getAmbientModules:()=>(Mt||(Mt=[],ce.forEach(((e,t)=>{a.test(t)&&Mt.push(e)}))),Mt),getJsxIntrinsicTagNamesAt(t){var r=ry(w.IntrinsicElements,t);return r?Ac(r):e.emptyArray},isOptionalParameter(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&ml(r)},tryGetMemberInModuleExports:(t,r)=>ra(e.escapeLeadingUnderscores(t),r),tryGetMemberInModuleExportsAndProperties:(t,r)=>((e,t)=>{var r=ra(e,t);if(r)return r;var n=Yi(t);if(n!==t){var i=Zo(n);return na(i)?Qc(i,e):void 0}})(e.escapeLeadingUnderscores(t),r),tryFindAmbientModule:e=>fl(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>fl(e,!1),getApparentType:Kc,getUnionType:ad,isTypeAssignableTo:u_,createAnonymousType:ka,createSignature:qs,createSymbol:$n,createIndexInfo:Ul,getAnyType:()=>Re,getStringType:()=>Ye,getNumberType:()=>Qe,createPromiseType:kb,createArrayType:Bu,getElementTypeOfArrayType:df,getBooleanType:()=>it,getFalseType:e=>e?et:tt,getTrueType:e=>e?rt:nt,getVoidType:()=>ot,getUndefinedType:()=>Je,getNullType:()=>qe,getESSymbolType:()=>at,getNeverType:()=>st,getOptionalType:()=>$e,getPromiseType:()=>wu(!1),getPromiseLikeType:()=>Fu(!1),isSymbolAccessible:Ra,isArrayType:sf,isTupleType:kf,isArrayLikeType:pf,isTypeInvalidDueToUnionDiscriminant:(e,t)=>t.properties.some((t=>{var r=t.name&&yd(t.name),n=r&&Ls(r)?Ks(r):void 0,i=void 0===n?void 0:uo(e,n);return!!i&&xf(i)&&!u_(oD(t),i)})),getExactOptionalProperties:e=>Ac(e).filter((e=>Jf(Zo(e)))),getAllPossiblePropertiesOfTypes(t){var r=ad(t);if(!(1048576&r.flags))return dD(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=dD(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!n.has(c)){var l=Wc(r,c);l&&n.set(c,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:Jy,getSuggestionForNonexistentProperty:$y,getSuggestedSymbolForNonexistentJSXAttribute:Hy,getSuggestedSymbolForNonexistentSymbol:(t,r,n)=>Gy(t,e.escapeLeadingUnderscores(r),n),getSuggestionForNonexistentSymbol:(t,r,n)=>((t,r,n)=>{var i=Gy(t,r,n);return i&&e.symbolName(i)})(t,e.escapeLeadingUnderscores(r),n),getSuggestedSymbolForNonexistentModule:qy,getSuggestionForNonexistentExport(t,r){var n=qy(t,r);return n&&e.symbolName(n)},getSuggestedSymbolForNonexistentClassMember:Wy,getBaseConstraintOfType:Mc,getDefaultFromTypeParameter:e=>e&&262144&e.flags?Uc(e):void 0,resolveName:(t,r,n,i)=>li(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i),getJsxNamespace:t=>e.unescapeLeadingUnderscores(Mn(t)),getJsxFragmentFactory(t){var r=JD(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:wa,getTypePredicateOfSignature:Cl,resolveExternalModuleName(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&$i(r,r,!0)},resolveExternalModuleSymbol:Yi,tryGetThisTypeAt(t,r){var n=e.getParseTreeNode(t);return n&&dh(n,r)},getTypeArgumentConstraint(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&(t=>{var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=Bx(r);if(n){var i=wc(n[r.typeArguments.indexOf(t)]);return i&&Xp(i,Fp(n,Rx(r,n)))}}})(r)},getSuggestionDiagnostics(n,i){var a,o=e.getParseTreeNode(n,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(o,W,t))return e.emptyArray;try{return r=i,YS(o),e.Debug.assert(!!(1&ni(o).flags)),a=e.addRange(a,Dn.getDiagnostics(o.fileName)),lE(GS(o),((t,r,n)=>{e.containsParseError(t)||$S(r,!!(16777216&t.flags))||(a||(a=[])).push(m(m({},n),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{r=void 0}},runWithCancellationToken(e,t){try{return r=e,t(fe)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ss,isDeclarationVisible:no,isPropertyAccessible:tv,getTypeOnlyAliasDeclaration:Ui,getMemberOverrideModifierStatus(t,r){if(!r.name)return 0;var n=la(t),i=ks(n),a=$s(i),o=Zo(n),s=e.getEffectiveBaseTypeNode(t)&&ms(i),c=(null==s?void 0:s.length)?$s(e.first(s),i.thisType):void 0,l=_s(i),u=r.parent?e.hasOverrideModifier(r):e.hasSyntacticModifier(r,16384),d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name));return xS(t,o,l,c,i,a,u,e.hasAbstractModifier(r),e.isStatic(r),!1,d)}};function me(t,r){var n=e.findAncestor(t,e.isCallLikeExpression),i=n&&ni(n).resolvedSignature;if(n){var a=t;do{ni(a).skipDirectInference=!0,a=a.parent}while(a&&a!==n);ni(n).resolvedSignature=void 0}var o=r();if(n){a=t;do{ni(a).skipDirectInference=void 0,a=a.parent}while(a&&a!==n);ni(n).resolvedSignature=i}return o}function ge(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isCallLikeExpression);de=n;var s=o?a?me(a,(()=>Hv(o,r,i))):Hv(o,r,i):void 0;return de=void 0,s}var he=new e.Map,ye=new e.Map,ve=new e.Map,be=new e.Map,xe=new e.Map,Ee=new e.Map,Se=new e.Map,De=new e.Map,Te=new e.Map,Ce=new e.Map,ke=new e.Map,Ae=new e.Map,Ne=[],we=new e.Map,Fe=new e.Set,Pe=$n(4,"unknown"),Ie=$n(0,"__resolving__"),Oe=new e.Map,Me=new e.Map,Re=ba(1,"any"),Le=ba(1,"any"),Be=ba(1,"any"),je=ba(1,"error"),Ue=ba(1,"unresolved"),Ve=ba(1,"any",65536),Ke=ba(1,"intrinsic"),ze=ba(2,"unknown"),We=ba(2,"unknown"),Je=ba(32768,"undefined"),He=q?Je:ba(32768,"undefined",65536),$e=ba(32768,"undefined"),Ge=ie?ba(32768,"undefined"):Je,qe=ba(65536,"null"),Xe=q?qe:ba(65536,"null",65536),Ye=ba(4,"string"),Qe=ba(8,"number"),Ze=ba(64,"bigint"),et=ba(512,"false"),tt=ba(512,"false"),rt=ba(512,"true"),nt=ba(512,"true");rt.regularType=nt,rt.freshType=rt,nt.regularType=nt,nt.freshType=rt,et.regularType=tt,et.freshType=et,tt.regularType=tt,tt.freshType=et;var it=ad([tt,nt]),at=ba(4096,"symbol"),ot=ba(16384,"void"),st=ba(131072,"never"),ct=ba(131072,"never"),lt=ba(131072,"never",262144),ut=ba(131072,"never"),dt=ba(131072,"never"),pt=ba(67108864,"object"),_t=ad([Ye,Qe]),ft=ad([Ye,Qe,at]),mt=re?Ye:ft,gt=ad([Qe,Ze]),ht=ad([Ye,Qe,it,Ze,qe,Je]),yt=Sd(["",""],[Qe]),vt=Op((e=>{return 262144&e.flags?(t=e).constraint===ze?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Ea(t.symbol),t.restrictiveInstantiation.constraint=ze,t.restrictiveInstantiation):e;var t})),bt=Op((e=>262144&e.flags?Be:e)),xt=ba(131072,"never"),Et=Op((e=>262144&e.flags?xt:e)),St=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray),Dt=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray);Dt.objectFlags|=2048;var Tt=$n(2048,"__type");Tt.members=e.createSymbolTable();var Ct=ka(Tt,K,e.emptyArray,e.emptyArray,e.emptyArray),kt=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray);kt.instantiations=new e.Map;var At=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray);At.objectFlags|=262144;var Nt=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray),wt=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray),Ft=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray),Pt=Ea(),It=Ea();It.constraint=Pt;var Ot,Mt,Rt,Lt,Bt,jt,Ut,Vt,Kt,zt,Wt,Jt,Ht,$t,Gt,qt,Xt,Yt,Qt,Zt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,ur,dr,pr,_r,fr,mr,gr,hr,yr,vr,br,xr,Er,Sr,Dr,Tr,Cr,kr,Ar,Nr,wr,Fr=Ea(),Pr=hl(1,"<<unresolved>>",0,Re),Ir=qs(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Or=qs(void 0,void 0,void 0,e.emptyArray,je,void 0,0,0),Mr=qs(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Rr=qs(void 0,void 0,void 0,e.emptyArray,ct,void 0,0,0),Lr=Ul(Qe,Ye,!0),Br=new e.Map,jr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Ur=zE(Re,Re,Re),Vr=zE(Re,Re,ze),Kr=zE(st,Re,Je),zr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:e=>fr||(fr=Du("AsyncIterator",3,e))||kt,getGlobalIterableType:e=>_r||(_r=Du("AsyncIterable",1,e))||kt,getGlobalIterableIteratorType:e=>mr||(mr=Du("AsyncIterableIterator",1,e))||kt,getGlobalGeneratorType:e=>gr||(gr=Du("AsyncGenerator",3,e))||kt,resolveIterationType:Yx,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Wr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:e=>cr||(cr=Du("Iterator",3,e))||kt,getGlobalIterableType:Iu,getGlobalIterableIteratorType:e=>lr||(lr=Du("IterableIterator",1,e))||kt,getGlobalGeneratorType:e=>ur||(ur=Du("Generator",3,e))||kt,resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Jr=new e.Map,Hr=!1,$r=new e.Map,Gr=0,qr=0,Xr=0,Yr=!1,Qr=0,Zr=hp(""),en=yp(0),tn=vp({negative:!1,base10Value:"0"}),rn=[],nn=[],an=[],on=0,sn=[],cn=[],ln=[],un=[],dn=[],pn=[],_n=[],fn=[],mn=[],gn=[],hn=[],yn=[],vn=[],bn=[],xn=[],En=[],Sn=e.createDiagnosticCollection(),Dn=e.createDiagnosticCollection(),Tn=new e.Map(e.getEntries({string:Ye,number:Qe,bigint:Ze,boolean:it,symbol:at,undefined:Je})),Cn=ad(e.arrayFrom(S.keys(),hp)),kn=new e.Map,An=new e.Map,Nn=new e.Map,wn=new e.Map,Fn=new e.Map,Pn=new e.Map,In=e.createSymbolTable();In.set(le.escapedName,le);var On=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===W.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return(()=>{for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,W)}var a,o,s,c;Ot=new e.Map;for(var l=0,u=t.getSourceFiles();l<u.length;l++)if(!(i=u[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var d=i.locals.get("globalThis");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f=_[p];Sn.add(e.createDiagnosticForNode(f,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}ei(ce,i.locals)}i.jsGlobalAugmentations&&ei(ce,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Rt=e.concatenate(Rt,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach(((e,t)=>{ce.has(t)||ce.set(t,e)}))}if(a)for(var m=0,g=a;m<g.length;m++)for(var h=g[m],y=0,v=h;y<v.length;y++){var b=v[y];e.isGlobalScopeAugmentation(b.parent)&&ti(b)}if(o=ce,s=In,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach(((t,r)=>{var n=o.get(r);n?e.forEach(n.declarations,((t,r)=>n=>Sn.add(e.createDiagnosticForNode(n,r,t)))(e.unescapeLeadingUnderscores(r),c)):o.set(r,t)})),ri(le).type=He,ri(pe).type=Du("IArguments",0,!0),ri(Pe).type=je,ri(ue).type=xa(16,ue),Kt=Du("Array",1,!0),Bt=Du("Object",0,!0),jt=Du("Function",0,!0),Ut=Y&&Du("CallableFunction",0,!0)||jt,Vt=Y&&Du("NewableFunction",0,!0)||jt,Wt=Du("String",0,!0),Jt=Du("Number",0,!0),Ht=Du("Boolean",0,!0),$t=Du("RegExp",0,!0),qt=Bu(Re),(Xt=Bu(Le))===St&&(Xt=ka(void 0,K,e.emptyArray,e.emptyArray,e.emptyArray)),zt=Ou("ReadonlyArray",1)||Kt,Yt=zt?Ru(zt,[Re]):qt,Gt=Ou("ThisType",1),a)for(var x=0,E=a;x<E.length;x++)for(var S=0,D=h=E[x];S<D.length;S++)b=D[S],e.isGlobalScopeAugmentation(b.parent)||ti(b);Ot.forEach((t=>{var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach(((t,r)=>{for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)Zn(c[s],o,r,a);for(var l=0,u=a;l<u.length;l++)Zn(u[l],o,r,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");Sn.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),Sn.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),Ot=void 0})(),fe;function Mn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,J),e.visitNode(r.localJsxFragmentFactory,Ln),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=JD(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{var o=Rn(r);if(o)return r.localJsxNamespace=o}}return Ar||(Ar="React",W.jsxFactory?(Nr=e.parseIsolatedEntityName(W.jsxFactory,J),e.visitNode(Nr,Ln),Nr&&(Ar=e.getFirstIdentifier(Nr).escapedText)):W.reactNamespace&&(Ar=e.escapeLeadingUnderscores(W.reactNamespace))),Nr||(Nr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Ar)),"createElement")),Ar}function Rn(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var n=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(n.arguments.factory,J),e.visitNode(t.localJsxFactory,Ln),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}function Ln(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,Ln,e.nullTransformationContext)}function Bn(e,t,r,n,i,a,o){var s=Un(t,r,n,i,a,o);return s.skippedOn=e,s}function jn(t,r,n,i,a,o){return t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o)}function Un(e,t,r,n,i,a){var o=jn(e,t,r,n,i,a);return Sn.add(o),o}function Vn(t,r){t?Sn.add(r):Dn.add(m(m({},r),{category:e.DiagnosticCategory.Suggestion}))}function Kn(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);Vn(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else Vn(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function zn(t,r,n,i,a,o,s){var c=Un(t,n,i,a,o,s);if(r){var l=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function Wn(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Dn.add(r),r}function Jn(e){return!!(268435456&hy(e))}function Hn(t,r,n){return Wn(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function $n(e,t,r){x++;var n=new g(33554432|e,t);return n.checkFlags=r||0,n}function Gn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function qn(e,t){t.mergeId||(t.mergeId=l,l++),sn[t.mergeId]=e}function Xn(t){var r=$n(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),qn(r,t),r}function Yn(t,r,n){if(void 0===n&&(n=!1),!(t.flags&Gn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Ri(t);if(i===Pe)return r;t=Xn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),ei(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),ei(t.exports,r.exports,n)),n||qn(t,r)}else if(1024&t.flags)t!==ue&&Un(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,za(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),u=e.isPlainJsFile(c,W.checkJs),d=e.isPlainJsFile(l,W.checkJs),p=za(r);if(c&&l&&Ot&&!a&&c!==l){var _=-1===e.comparePaths(c.path,l.path)?c:l,f=_===c?l:c,m=e.getOrUpdate(Ot,"".concat(_.path,"|").concat(f.path),(()=>({firstFile:_,secondFile:f,conflictingSymbols:new e.Map}))),g=e.getOrUpdate(m.conflictingSymbols,p,(()=>({isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]})));u||h(g.firstFileLocations,r),d||h(g.secondFileLocations,t)}else u||Qn(r,s,p,t),d||Qn(t,s,p,r)}return t;function h(t,r){if(r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function Qn(t,r,n,i){e.forEach(t.declarations,(e=>{Zn(e,r,n,i.declarations)}))}function Zn(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=((t,r,n,i,a,o)=>{var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Sn.lookup(s)||(Sn.add(s),s)})(a,r,n),s=t=>{var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(t=>0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i))))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function ei(e,t,r){void 0===r&&(r=!1),t.forEach(((t,n)=>{var i=e.get(n);e.set(n,i?Yn(i,t,r):t)}))}function ti(t){var r,n,i,a=t.parent;if((null===(r=a.symbol.declarations)||void 0===r?void 0:r[0])===a)if(e.isGlobalScopeAugmentation(a))ei(ce,a.symbol.exports);else{var o=Gi(t,t,16777216&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Yi(o)).flags)if(e.some(Rt,(e=>o===e.symbol))){var s=Yn(a.symbol,o,!0);Lt||(Lt=new e.Map),Lt.set(t.text,s)}else{if((null===(n=o.exports)||void 0===n?void 0:n.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=Ws(o,"resolvedExports"),l=0,u=e.arrayFrom(a.symbol.exports.entries());l<u.length;l++){var d=u[l],p=d[0],_=d[1];c.has(p)&&!o.exports.has(p)&&Yn(c.get(p),_)}Yn(o,a.symbol)}else Un(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function ri(e){if(33554432&e.flags)return e;var t=M(e);return cn[t]||(cn[t]=new P)}function ni(e){var t=O(e);return ln[t]||(ln[t]=new I)}function ii(t){return 305===t.kind&&!e.isExternalOrCommonJsModule(t)}function ai(t,r,n){if(n){var i=ca(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=Li(i);if(a===Pe||a.flags&n)return i}}}}function oi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(H&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(W)||Km(n)||16777216&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(203===r.kind){var c=e.getAncestor(n,203);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:oi(e.getAncestor(r,254),n)}return 254===r.kind?!((t,r)=>{switch(t.parent.parent.kind){case 237:case 242:case 244:if(vi(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&vi(r,n.expression,o)})(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(t=>e.isComputedPropertyName(t)&&t.parent.parent===r)):e.isPropertyDeclaration(r)?!u(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===e.getEmitScriptTarget(W)&&$&&e.getContainingClass(r)===e.getContainingClass(n)&&l(n,r))}return!(!(275===n.parent.kind||271===n.parent.kind&&n.parent.isExportEquals)&&(271!==n.kind||!n.isExportEquals)&&!(8388608&n.flags||Km(n)||e.findAncestor(n,(t=>e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t))))&&(!l(n,r)||99===e.getEmitScriptTarget(W)&&$&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))&&u(r,n,!0)));function l(t,r){return!!e.findAncestor(t,(n=>{if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(e.isClassStaticBlockDeclaration(n))return r.pos<t.pos;var i=e.tryCast(n.parent,e.isPropertyDeclaration);if(i&&i.initializer===n)if(e.isStatic(n.parent)){if(169===r.kind)return!0;if(e.isPropertyDeclaration(r)&&e.getContainingClass(t)===e.getContainingClass(r)){var a=r.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&((t,r,n,i,a)=>{for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Of(qg(l,r,Bf(r)))))return!0}}return!1})(a,Zo(la(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(167!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(r=>{if(r===t)return"quit";switch(r.kind){case 214:return!0;case 167:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 235:switch(r.parent.kind){case 172:case 169:case 173:return!0;default:return!1}default:return!1}}))}}function si(t,r,n){var i=e.getEmitScriptTarget(W),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=ni(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(e=>s(e.name)||!!e.initializer&&s(e.initializer)))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 214:case 213:case 256:case 171:return!1;case 169:case 172:case 173:case 296:return s(t.name);case 167:return e.hasStaticModifier(t)?i<99||!$:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function ci(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function li(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),ui(e,t,r,n,i,a,o,s,ai)}function ui(t,r,n,i,a,o,s,c,l){var u,d,p,f,m,g,h,y,v,b=t,x=!1,E=t,S=!1;e:for(;t;){if("const"===r&&ci(t))return;if(t.locals&&!ii(t)&&(f=l(t.locals,r,n))){var D=!0;if(e.isFunctionLike(t)&&m&&m!==t.body?(n&f.flags&788968&&320!==m.kind&&(D=!!(262144&f.flags)&&(m===t.type||164===m.kind||340===m.kind||341===m.kind||163===m.kind)),n&f.flags&3&&(si(f,t,m)?D=!1:1&f.flags&&(D=164===m.kind||m===t.type&&!!e.findAncestor(f.valueDeclaration,e.isParameter)))):189===t.kind&&(D=m===t.trueType),D)break e;f=void 0}switch(x=x||pi(t,m),t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 261:var T=(null===(u=la(t))||void 0===u?void 0:u.exports)||K;if(305===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(f=T.get("default")){var C=e.getLocalSymbolForExportDefault(f);if(C&&f.flags&n&&C.escapedName===r)break e;f=void 0}var k=T.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,275)||e.getDeclarationOfKind(k,274)))break}if("default"!==r&&(f=l(T,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=f.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;f=void 0}break;case 260:if(f=l((null===(p=la(t))||void 0===p?void 0:p.exports)||K,r,8&n))break e;break;case 167:if(!e.isStatic(t)){var A=ha(t.parent);A&&A.locals&&l(A.locals,r,111551&n)&&(h=t)}break;case 257:case 226:case 258:if(f=l(la(t).members||K,r,788968&n)){if(!mi(f,t)){f=void 0;break}if(m&&e.isStatic(m))return void Un(E,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(226===t.kind&&32&n){var N=t.name;if(N&&r===N.escapedText){f=t.symbol;break e}}break;case 228:if(m===t.expression&&94===t.parent.token){var w=t.parent.parent;if(e.isClassLike(w)&&(f=l(la(w).members,r,788968&n)))return void(i&&Un(E,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 162:if(v=t.parent.parent,(e.isClassLike(v)||258===v.kind)&&(f=l(la(v).members,r,788968&n)))return void Un(E,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 214:if(e.getEmitScriptTarget(W)>=2)break;case 169:case 171:case 172:case 173:case 256:if(3&n&&"arguments"===r){f=pe;break e}break;case 213:if(3&n&&"arguments"===r){f=pe;break e}if(16&n){var F=t.name;if(F&&r===F.escapedText){f=t.symbol;break e}}break;case 165:t.parent&&164===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||257===t.parent.kind)&&(t=t.parent);break;case 345:case 338:case 339:var P=e.getJSDocRoot(t);P&&(t=P.parent);break;case 164:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&(y||(y=t));break;case 203:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 190:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){f=t.typeParameter.symbol;break e}}}_i(t)&&(g=t),m=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!f||g&&f===g.symbol||(f.isReferenced|=n),!f){if(m&&(e.Debug.assert(305===m.kind),m.commonJsModuleIndicator&&"exports"===r&&n&m.symbol.flags))return m.symbol;s||(f=l(ce,r,n))}if(!f&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return _e;if(f){if(!h||99===e.getEmitScriptTarget(W)&&$)return i&&_((()=>{if(E&&(2&n||(32&n||384&n)&&111551==(111551&n))){var t=ma(f);(2&t.flags||32&t.flags||384&t.flags)&&((t,r)=>{var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isBlockOrCatchScoped(t)||e.isClassLike(t)||260===t.kind));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||oi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Un(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Un(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Un(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(W)&&(a=Un(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}})(t,E)}if(f&&S&&111551==(111551&n)&&!(8388608&b.flags)){var i=ca(f);e.length(i.declarations)&&e.every(i.declarations,(t=>e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports))&&Kn(!W.allowUmdGlobalAccess,E,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(f&&y&&!x&&111551==(111551&n)){var a=ca(Hs(f)),o=e.getRootDeclaration(y);a===la(y)?Un(E,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):a.valueDeclaration&&a.valueDeclaration.pos>y.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Un(E,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(E))}if(f&&E&&111551&n&&2097152&f.flags&&!(111551&f.flags)&&!e.isValidTypeOnlyAliasUseSite(E)){var s=Ui(f);if(s){var c=275===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(r);di(Un(E,c,u),s,u)}}})),f;var O=h.name;Un(E,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(O),fi(a))}else i&&_((()=>{if(!E||!(((t,r,n)=>{if(!e.isIdentifier(t)||t.escapedText!==r||ZS(t)||Km(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=la(a.parent);if(!o)break;if(Qc(Zo(o),r))return Un(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,fi(n),za(o)),!0;if(a===i&&!e.isStatic(a)&&Qc(ks(o).thisType,r))return Un(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,fi(n)),!0}a=a.parent}return!1})(E,r,a)||gi(E)||((t,r,n)=>{var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Ri(li(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Qc(ks(a),s))return Un(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Un(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1})(E,r,n)||((t,r)=>!(!yi(r)||275!==t.parent.kind||(Un(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),0)))(E,r)||((t,r,n)=>{if(111551&n){if(yi(r))return Un(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Ri(li(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return(e=>{switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1})(r)?Un(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a):((t,r)=>{var n=e.findAncestor(t.parent,(t=>!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")));if(n&&1===n.members.length){var i=ks(r);return!!(1048576&i.flags)&&Gb(i,384,!0)}return!1})(t,i)?Un(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):Un(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1})(E,r,n)||((t,r,n)=>{if(111127&n){if(Ri(li(t,r,1024,void 0,void 0,!1)))return Un(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&Ri(li(t,r,1536,void 0,void 0,!1)))return Un(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1})(E,r,n)||((t,r,n)=>{if(788584&n){var i=Ri(li(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Un(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1})(E,r,n))){var t=void 0;if(c&&on<10&&((null==(t=Gy(b,r,n))?void 0:t.valueDeclaration)&&e.isAmbientModule(t.valueDeclaration)&&e.isGlobalScopeAugmentation(t.valueDeclaration)&&(t=void 0),t)){var o=za(t),s=By(b,t,!1),l=1920===n||a&&"string"!=typeof a&&e.nodeIsSynthesized(a)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:s?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,u=jn(E,l,fi(a),o);Vn(!s,u),t.valueDeclaration&&e.addRelatedInfo(u,e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_is_declared_here,o))}if(!t&&a){var d=(t=>{for(var r=fi(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i<a.length;i++){var o=a[i],s=e.getOwnKeys(n[o]);if(void 0!==s&&e.contains(s,r))return o}})(a);d?Un(E,i,fi(a),d):Un(E,i,fi(a))}on++}}))}function di(t,r,n){return r?e.addRelatedInfo(t,e.createDiagnosticForNode(r,275===r.kind?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,n)):t}function pi(t,r){return 214!==t.kind&&213!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||167===t.kind&&!e.isStatic(t))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function _i(e){switch(e.kind){case 256:case 257:case 258:case 260:case 259:case 261:return!0;default:return!1}}function fi(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function mi(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(163===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function gi(t){var r=hi(t);return!(!r||!Ji(r,64,!0)||(Un(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function hi(t){switch(t.kind){case 79:case 206:return t.parent?hi(t.parent):void 0;case 228:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function yi(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function vi(t,r,n){return!!r&&!!e.findAncestor(t,(t=>t===r||!(t!==n&&(!e.isFunctionLike(t)||e.getImmediatelyInvokedFunctionExpression(t)))&&"quit"))}function bi(e){switch(e.kind){case 265:return e;case 267:return e.parent;case 268:return e.parent.parent;case 270:return e.parent.parent.parent;default:return}}function xi(t){return t.declarations&&e.findLast(t.declarations,Ei)}function Ei(t){return 265===t.kind||264===t.kind||267===t.kind&&!!t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&Si(t.parent.right)||297===t.kind||296===t.kind&&Si(t.initializer)||254===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t)||203===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t.parent.parent)}function Si(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&$v(t)}function Di(e,t,r,n){var i=e.exports.get("export="),a=i?Qc(Zo(i),t):e.exports.get(t),o=Ri(a,n);return Bi(r,a,o,!1),o}function Ti(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function Ci(t){return e.isStringLiteralLike(t)?e.getModeForUsageLocation(e.getSourceFileOfNode(t),t):void 0}function ki(t,r){return t===e.ModuleKind.ESNext&&r===e.ModuleKind.CommonJS}function Ai(t){return Ci(t)===e.ModuleKind.ESNext&&e.endsWith(t.text,".json")}function Ni(t,r,n,i){var a=t&&Ci(i);if(t&&void 0!==a){var o=ki(a,t.impliedNodeFormat);if(a===e.ModuleKind.ESNext||o)return o}if(!G)return!1;if(!t||t.isDeclarationFile){var s=Di(r,"default",void 0,!0);return!(s&&e.some(s.declarations,Ti)||Di(r,e.escapeLeadingUnderscores("__esModule"),void 0,n))}return e.isSourceFileJS(t)?"object"!=typeof t.externalModuleIndicator&&!Di(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):ea(r)}function wi(t,r,n){var i,a;void 0===n&&(n=!1);var o=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,s=$i(t,o),c=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(c)){var l=Qi(s,o,!1,"default"===c.escapedText&&!(!W.allowSyntheticDefaultImports&&!e.getESModuleInterop(W)));if(l&&c.escapedText){if(e.isShorthandAmbientModuleSymbol(s))return s;var u=void 0;u=s&&s.exports&&s.exports.get("export=")?Qc(Zo(l),c.escapedText,!0):((e,t)=>{if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Ri(Qc(Tp(r),t))}})(l,c.escapedText),u=Ri(u,n);var d=((e,t,r,n)=>{if(1536&e.flags){var i=ia(e).get(t.escapedText),a=Ri(i,n);return Bi(r,i,a,!1),a}})(l,c,r,n);if(void 0===d&&"default"===c.escapedText){var p=null===(i=s.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Ai(o)||Ni(p,s,n,o))&&(d=Yi(s,n)||Ri(s,n))}var _=d&&u&&d!==u?((t,r)=>{if(t===Pe&&r===Pe)return Pe;if(790504&t.flags)return t;var n=$n(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n})(u,d):d||u;if(!_){var m=Wi(s,t),g=e.declarationNameToString(c),h=qy(c,l);if(void 0!==h){var y=za(h),v=Un(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,g,y);h.valueDeclaration&&e.addRelatedInfo(v,e.createDiagnosticForNode(h.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}else(null===(a=s.exports)||void 0===a?void 0:a.has("default"))?Un(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,m,g):((t,r,n,i,a)=>{var o,s,c=null===(s=null===(o=i.valueDeclaration)||void 0===o?void 0:o.locals)||void 0===s?void 0:s.get(r.escapedText),l=i.exports;if(c){var u=null==l?void 0:l.get("export=");if(u)fa(u,c)?((t,r,n,i)=>{H>=e.ModuleKind.ES2015?Un(r,e.getESModuleInterop(W)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?Un(r,e.getESModuleInterop(W)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Un(r,e.getESModuleInterop(W)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)})(t,r,n,a):Un(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var d=l?e.find(pl(l),(e=>!!fa(e,c))):void 0,p=d?Un(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,za(d)):Un(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);c.declarations&&e.addRelatedInfo.apply(void 0,f([p],e.map(c.declarations,((t,r)=>e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n))),!1))}}else Un(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)})(t,c,g,s,m)}return _}}}function Fi(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Pi(e,t,r){var n=e.parent.parent.moduleSpecifier?wi(e.parent.parent,e,r):Ji(e.propertyName||e.name,t,!1,r);return Bi(e,void 0,n,!1),n}function Ii(t,r){return e.isClassExpression(t)?sx(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?Ji(t,901119,!0,r)||(sx(t),ni(t).resolvedSymbol):void 0}function Oi(t,r){switch(void 0===r&&(r=!1),t.kind){case 265:case 254:return((t,r)=>{var n=Fi(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?Ri(Qc(Dl(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||277===t.moduleReference.kind){var a=$i(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=Yi(a);return Bi(t,a,o,!1),o}var s=zi(t.moduleReference,r);return((t,r)=>{if(Bi(t,void 0,r,!1)&&!t.isTypeOnly){var n=Ui(la(t)),i=275===n.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(Un(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}})(t,s),s})(t,r);case 267:return((t,r)=>{var n,i=$i(t,t.parent.moduleSpecifier);if(i){var a;a=e.isShorthandAmbientModuleSymbol(i)?i:Di(i,"default",t,r);var o=null===(n=i.declarations)||void 0===n?void 0:n.find(e.isSourceFile),s=Ai(t.parent.moduleSpecifier),c=Ni(o,i,r,t.parent.moduleSpecifier);if(a||c||s){if(c||s){var l=Yi(i,r)||Ri(i,r);return Bi(t,i,l,!1),l}}else if(ea(i)){var u=H>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",d=i.exports.get("export=").valueDeclaration,p=Un(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,za(i),u);d&&e.addRelatedInfo(p,e.createDiagnosticForNode(d,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,u))}else!((t,r)=>{var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Un(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,za(t),za(r.symbol));else{var o=Un(r.name,e.Diagnostics.Module_0_has_no_default_export,za(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((t=>{var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=$i(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}})(i,t);return Bi(t,a,void 0,!1),a}})(t,r);case 268:return((e,t)=>{var r=e.parent.parent.moduleSpecifier,n=$i(e,r),i=Qi(n,r,t,!1);return Bi(e,n,i,!1),i})(t,r);case 274:return((e,t)=>{var r=e.parent.moduleSpecifier,n=r&&$i(e,r),i=r&&Qi(n,r,t,!1);return Bi(e,n,i,!1),i})(t,r);case 270:case 203:return((t,r)=>{var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=Fi(n),a=wi(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?Ri(Qc(Zo(a),o.escapedText),r):(Bi(t,void 0,a,!1),a)})(t,r);case 275:return Pi(t,901119,r);case 271:case 221:return((t,r)=>{var n=Ii(e.isExportAssignment(t)?t.expression:t.right,r);return Bi(t,void 0,n,!1),n})(t,r);case 264:return((e,t)=>{var r=Yi(e.parent.symbol,t);return Bi(e,void 0,r,!1),r})(t,r);case 297:return Ji(t.name,901119,!0,r);case 296:return((e,t)=>Ii(e.initializer,t))(t,r);case 207:case 206:return((t,r)=>{if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return Ii(t.parent.right,r)})(t,r);default:return e.Debug.fail()}}function Mi(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ri(e,t){return!t&&Mi(e)?Li(e):e}function Li(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ri(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=Pe);else{r.aliasTarget=Ie;var n=xi(t);if(!n)return e.Debug.fail();var i=Oi(n);r.aliasTarget===Ie?r.aliasTarget=i||Pe:Un(n,e.Diagnostics.Circular_definition_of_import_alias_0,za(t))}return r.aliasTarget}function Bi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=la(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return ri(a).typeOnlyDeclaration=t,!0;var o=ri(a);return ji(o,r,i)||ji(o,n,i)}function ji(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:ri(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Ui(e){if(2097152&e.flags)return ri(e).typeOnlyDeclaration||void 0}function Vi(e){var t=la(e),r=Li(t);r&&(r===Pe||111551&r.flags&&!SD(r)&&!Ui(t))&&Ki(t)}function Ki(t){var r=ri(t);if(!r.referenced){r.referenced=!0;var n=xi(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Ri(t);(i===Pe||111551&i.flags)&&sx(n.moduleReference)}}}function zi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||161===t.parent.kind?Ji(t,1920,!1,r):(e.Debug.assert(265===t.parent.kind),Ji(t,901119,!1,r))}function Wi(e,t){return e.parent?Wi(e.parent,t)+"."+za(e):za(e,t,void 0,20)}function Ji(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Um(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?((t,r)=>{if(_u(t.parent)){var n=(t=>{if(!e.findAncestor(t,(t=>e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"))){var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isPrototypePropertyAssignment(r.expression)&&(n=la(r.expression.left)))return Hi(n);if(r&&e.isFunctionExpression(r)&&e.isPrototypePropertyAssignment(r.parent)&&e.isExpressionStatement(r.parent.parent)&&(n=la(r.parent.left)))return Hi(n);if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)&&(n=la(r.parent.parent.left)))return Hi(n);var n,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(n=la(i))&&n.valueDeclaration}})(t.parent);if(n)return li(n,t.escapedText,r,void 0,t,!0)}})(t,r):void 0;if(!(o=ca(li(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return ca(l)}else{if(161!==t.kind&&206!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=161===t.kind?t.left:t.expression,d=161===t.kind?t.right:t.name,p=Ji(u,s,n,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Pe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&rb(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=$i(_,_);if(f){var m=Yi(f);m&&(p=m)}}if(!(o=ca(ai(ia(p),d.escapedText,r)))){if(!n){var g=Wi(p),h=e.declarationNameToString(d),y=qy(d,p);if(y)return void Un(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,h,za(y));var v=e.isQualifiedName(t)&&(t=>{for(;e.isQualifiedName(t.parent);)t=t.parent;return t})(t);if(Bt&&788968&r&&v&&!e.isTypeOfExpression(v.parent)&&(t=>{var r=e.getFirstIdentifier(t),n=li(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Qc(Zo(n),r.parent.right.escapedText)))return;r=r.parent}return n}})(v))return void Un(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&r&&e.isQualifiedName(t.parent)){var b=ca(ai(ia(p),d.escapedText,788968));if(b)return void Un(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,za(b),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Un(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,h)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||271===t.parent.kind)&&Bi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Li(o)}}function Hi(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function $i(t,r,n){var i=e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Gi(t,r,n?void 0:i)}function Gi(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?qi(t,r.text,n,r,i):void 0}function qi(r,n,i,a,o){var s,c,l,u,d,p,_,f;void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Un(a,F=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var m=fl(n,!0);if(m)return m;var g=e.getSourceFileOfNode(r),h=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),y=h&&e.isStringLiteralLike(h)?e.getModeForUsageLocation(g,h):g.impliedNodeFormat,v=e.getResolvedModule(g,n,y),b=v&&e.getResolutionDiagnostic(W,v),x=v&&(!b||b===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(v.resolvedFileName);if(x){if(b&&Un(a,b,n,v.resolvedFileName),x.symbol){if(v.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(v.extension)&&Xi(!1,a,v,n),e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.NodeNext){var E=g.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),S=e.findAncestor(r,(t=>e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t))),D=S&&e.isImportTypeNode(S)?null===(_=S.assertions)||void 0===_?void 0:_.assertClause:null==S?void 0:S.assertClause;E&&x.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(D)&&Un(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,n)}return ca(x.symbol)}i&&Un(a,e.Diagnostics.File_0_is_not_a_module,x.fileName)}else{if(Rt){var T=e.findBestPatternMatch(Rt,(e=>e.pattern),n);if(T)return ca(Lt&&Lt.get(n)||T.symbol)}if(v&&!e.resolutionExtensionIsTSOrJson(v.extension)&&void 0===b||b===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Un(a,F=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,v.resolvedFileName):Xi(Z&&!!i,a,v,n);else if(i){if(v){var C=t.getProjectReferenceRedirect(v.resolvedFileName);if(C)return void Un(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,C,v.resolvedFileName)}if(b)Un(a,b,n,v.resolvedFileName);else{var k=e.tryExtractTSExtension(n),A=e.pathIsRelative(n)&&!e.hasExtension(n),N=e.getEmitModuleResolutionKind(W),w=N===e.ModuleResolutionKind.Node16||N===e.ModuleResolutionKind.NodeNext;if(k){var F=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,P=e.removeExtension(n,k);H>=e.ModuleKind.ES2015&&(P+=".mts"===k?".mjs":".cts"===k?".cjs":".js"),Un(a,F,k,P)}else if(!W.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(W))Un(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(y===e.ModuleKind.ESNext&&w&&A){var I=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(g.path)),O=null===(f=On.find((e=>{var r=e[0];return t.fileExists(I+r)})))||void 0===f?void 0:f[1];O?Un(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+O):Un(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Un(a,i,n)}}}}function Xi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,d().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):(e=>!!d().get(e))(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Kn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Yi(t,r){if(null==t?void 0:t.exports){var n=((t,r)=>{if(!t||t===Pe||t===r||1===r.exports.size||2097152&t.flags)return t;var n=ri(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:Xn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach(((e,t)=>{"export="!==t&&i.exports.set(t,i.exports.has(t)?Yn(i.exports.get(t),e):e)})),ri(i).cjsExportMerged=i,n.cjsExportMerged=i})(ca(Ri(t.exports.get("export="),r)),ca(t));return ca(n)||t}}function Qi(t,r,n,i){var a,o=Yi(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,305))){var s=H>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Un(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=Zo(o),d=eb(u,o,t,l);if(d)return Zi(o,d,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),_=p&&ki(Ci(l),p.impliedNodeFormat);if(e.getESModuleInterop(W)||_){var f=Zc(u,0);if(f&&f.length||(f=Zc(u,1)),f&&f.length||Qc(u,"default",!0)||_)return Zi(o,tb(u,o,t,l),c)}}}return o}function Zi(t,r,n){var i=$n(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Dc(r);return i.type=ka(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function ea(e){return void 0!==e.exports.get("export=")}function ta(e){return pl(aa(e))}function ra(e,t){var r=aa(t);if(r)return r.get(e)}function na(t){return!(131068&t.flags||1&e.getObjectFlags(t)||sf(t)||kf(t))}function ia(e){return 6256&e.flags?Ws(e,"resolvedExports"):1536&e.flags?aa(e):e.exports||K}function aa(e){var t=ri(e);return t.resolvedExports||(t.resolvedExports=sa(e))}function oa(t,r,n,i){r&&r.forEach(((r,a)=>{if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Ri(o)!==Ri(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function sa(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var u=l[c];oa(o,t($i(u,u.moduleSpecifier)),s,u)}s.forEach(((t,r)=>{var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),oa(i,o)}return i}}(t=Yi(t))||K}function ca(e){var t;return e&&e.mergeId&&(t=sn[e.mergeId])?t:e}function la(e){return ca(e.symbol&&Hs(e.symbol))}function ua(e){return ca(e.parent&&Hs(e.parent))}function da(r,n,i){var a=ua(r);if(a&&!(262144&r.flags)){var o=e.mapDefined(a.declarations,(e=>a&&pa(e,a))),s=n&&((r,n)=>{var i,a=e.getSourceFileOfNode(n),o=O(a),s=ri(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var d=$i(n,u,!0);d&&_a(d,r)&&(i=e.append(i,d))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var p=0,_=t.getSourceFiles();p<_.length;p++){var f=_[p];if(e.isExternalModule(f)){var m=la(f);_a(m,r)&&(i=e.append(i,m))}}return s.extendedContainers=i||e.emptyArray})(r,n),c=((t,r)=>{var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return la(n.parent)})(a,i);if(n&&a.flags&Na(i)&&wa(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],o),s),c);var l=!(a.flags&Na(i))&&788968&a.flags&&524288&ks(a).flags&&111551===i?Aa(n,(t=>e.forEachEntry(t,(e=>{if(e.flags&Na(i)&&Zo(e)===ks(a))return e})))):void 0,u=f(f(l?[l]:[],o,!0),[a],!1);return u=e.append(u,c),e.addRange(u,s)}var d=e.mapDefined(r.declarations,(t=>{if(!e.isAmbientModule(t)&&t.parent){if(Ua(t.parent))return la(t.parent);if(e.isModuleBlock(t.parent)&&t.parent.parent&&Yi(la(t.parent.parent))===r)return la(t.parent.parent)}if(e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression))return e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?la(e.getSourceFileOfNode(t)):(sx(t.parent.left.expression),ni(t.parent.left.expression).resolvedSymbol)}));if(e.length(d))return e.mapDefined(d,(e=>_a(e,r)?e:void 0))}function pa(e,t){var r=Ba(e),n=r&&r.exports&&r.exports.get("export=");return n&&fa(n,t)?r:void 0}function _a(t,r){if(t===ua(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&fa(n,r))return t;var i=ia(t),a=i.get(r.escapedName);return a&&fa(a,r)?a:e.forEachEntry(i,(e=>{if(fa(e,r))return e}))}function fa(e,t){if(ca(Ri(ca(e)))===ca(Ri(ca(t))))return e}function ma(e){return ca(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function ga(e){return!!(111551&e.flags||2097152&e.flags&&111551&Li(e).flags&&!Ui(e))}function ha(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(171===i.kind&&e.nodeIsPresent(i.body))return i}}function ya(t){var r=new y(fe,t);return b++,r.id=b,null===e.tracing||void 0===e.tracing||e.tracing.recordType(r),r}function va(e){return new y(fe,e)}function ba(e,t,r){void 0===r&&(r=0);var n=ya(e);return n.intrinsicName=t,n.objectFlags=r,n}function xa(e,t){var r=ya(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function Ea(e){var t=ya(262144);return e&&(t.symbol=e),t}function Sa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Da(t){var r;return t.forEach(((e,t)=>{Ta(e,t)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Ta(e,t){return!Sa(t)&&ga(e)}function Ca(t,r,n,i,a){var o=t;return o.members=r,o.properties=e.emptyArray,o.callSignatures=n,o.constructSignatures=i,o.indexInfos=a,r!==K&&(o.properties=Da(r)),o}function ka(e,t,r,n,i){return Ca(xa(16,e),t,r,n,i)}function Aa(t,r){for(var n,i=t=>{if(t.locals&&!ii(t)&&(n=r(t.locals,void 0,!0,t)))return{value:n};switch(t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;case 261:var i=la(t);if(n=r((null==i?void 0:i.exports)||K,void 0,!0,t))return{value:n};break;case 257:case 226:case 258:var a;if((la(t).members||K).forEach(((t,r)=>{788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a,void 0,!1,t)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(ce,void 0,!0)}function Na(e){return 111551===e?111551:1920}function wa(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!(e=>{if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 167:case 169:case 172:case 173:continue;default:return!1}return!0}return!1})(t)){var o=ri(t),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=Aa(r,((e,t,r,n)=>n)),l="".concat(i?0:1,"|").concat(c&&O(c),"|").concat(n);if(s.has(l))return s.get(l);var u=M(t),d=a.get(u);d||a.set(u,d=[]);var p=Aa(r,_);return s.set(l,p),p}function _(n,a,o){if(e.pushIfUnique(d,n)){var s=((n,a,o)=>m(n.get(t.escapedName),void 0,a)?[t]:e.forEachEntry(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(n.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(n,275))){var s=g(n,Li(n),a);if(s)return s}if(n.escapedName===t.escapedName&&n.exportSymbol&&m(ca(n.exportSymbol),void 0,a))return[t]}))||(n===ce?g(ue,ue,a):void 0))(n,a,o);return d.pop(),s}}function f(e,t){return!Fa(e,r,t)||!!wa(e.parent,r,Na(t),i,a)}function m(r,i,a){return(t===(i||r)||ca(t)===ca(i||r))&&!e.some(r.declarations,Ua)&&(a||f(ca(r),n))}function g(e,t,r){if(m(e,t,r))return[e];var i=ia(t),a=i&&_(i,!0);return a&&f(e,Na(n))?[e].concat(a):void 0}}function Fa(t,r,n){var i=!1;return Aa(r,(r=>{var a=ca(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,275)?Li(a):a).flags&n)&&(i=!0,!0))})),i}function Pa(e,t){return 0===La(e,t,788968,!1,!0).accessibility}function Ia(e,t){return 0===La(e,t,111551,!1,!0).accessibility}function Oa(e,t,r){return 0===La(e,t,r,!1,!1).accessibility}function Ma(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,l=0,u=t;l<u.length;l++){var d=u[l],p=wa(d,r,i,!1);if(p){s=d;var _=Va(p[0],a);if(_)return _}if(o&&e.some(d.declarations,Ua)){if(a){c=!0;continue}return{accessibility:0}}var f=Ma(da(d,r,i),r,n,n===d?Na(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:za(n,r,i),errorModuleName:s!==n?za(s,r,1920):void 0}:void 0}}function Ra(e,t,r,n){return La(e,t,r,n,!0)}function La(t,r,n,i,a){if(t&&r){var o=Ma([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,Ba);return s&&s!==Ba(r)?{accessibility:2,errorSymbolName:za(t,r,n),errorModuleName:za(s),errorNode:e.isInJSFile(r)?r:void 0}:{accessibility:1,errorSymbolName:za(t,r,n)}}return{accessibility:0}}function Ba(t){var r=e.findAncestor(t,ja);return r&&la(r)}function ja(t){return e.isAmbientModule(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function Ua(t){return e.isModuleWithStringLiteralName(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function Va(t,r){var n;if(e.every(e.filter(t.declarations,(e=>79!==e.kind)),(r=>{var n,a;if(!no(r)){var o=bi(r);return o&&!e.hasSyntacticModifier(o,1)&&no(o.parent)?i(r,o):e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&no(r.parent.parent.parent)?i(r,r.parent.parent):e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&no(r.parent)?i(r,r):!!(2097152&t.flags&&e.isBindingElement(r)&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&no(r.parent.parent.parent.parent.parent))&&i(r,r.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(ni(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Ka(t,r){var n;n=181===t.parent.kind||228===t.parent.kind&&!e.isPartOfTypeNode(t.parent)||162===t.parent.kind?1160127:161===t.kind||206===t.kind||265===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=li(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&Va(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function za(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?se.symbolToExpression:se.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=305===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,l,i),i}}function Wa(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?180:179:1===i?175:174;var s=se.signatureToSignatureDeclaration(t,o,r,70222336|qa(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function Ja(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=W.noErrorTruncation||1&n,o=se.typeToTypeNode(t,r,70221824|qa(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s={removeComments:t!==Ue},c=e.createPrinter(s),l=r&&e.getSourceFileOfNode(r);c.writeNode(4,o,l,i);var u=i.getText(),d=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return d&&u&&u.length>=d?u.substr(0,d-"...".length)+"...":u}function Ha(e,t){var r=Ga(e.symbol)?Ja(e,e.symbol.valueDeclaration):Ja(e),n=Ga(t.symbol)?Ja(t,t.symbol.valueDeclaration):Ja(t);return r===n&&(r=$a(e),n=$a(t)),[r,n]}function $a(e){return Ja(e,void 0,64)}function Ga(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!t_(t.valueDeclaration)}function qa(e){return void 0===e&&(e=0),814775659&e}function Xa(t){return!!(t.symbol&&32&t.symbol.flags&&(t===ys(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Ya(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&se.typeToTypeNode(t.type,r,70222336|qa(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Qa(e){return 8===e?"private":16===e?"protected":"public"}function Za(t){return t&&t.parent&&262===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function eo(t){return 305===t.kind||e.isAmbientModule(t)}function to(t,r){var n=ri(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(W))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(ro(n.symbol,r),"]")}}function ro(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],eo)!==e.findAncestor(r.enclosingDeclaration,eo)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(t=>e.getNameOfDeclaration(t)?t:void 0)),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=ri(t).nameType;if(a&&384&a.flags){var o=to(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&254===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 226:case 213:case 214:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),226===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=to(t,r);return void 0!==s?s:e.symbolName(t)}function no(t){if(t){var r=ni(t);return void 0===r.isVisible&&(r.isVisible=!!(()=>{switch(t.kind){case 338:case 345:case 339:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 203:return no(t.parent.parent);case 254:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 261:case 257:case 258:case 259:case 256:case 260:case 265:if(e.isExternalModuleAugmentation(t))return!0;var r=lo(t);return 1&e.getCombinedModifierFlags(t)||265!==t.kind&&305!==r.kind&&16777216&r.flags?no(r):ii(r);case 167:case 166:case 172:case 173:case 169:case 168:if(e.hasEffectiveModifier(t,24))return!1;case 171:case 175:case 174:case 176:case 164:case 262:case 179:case 180:case 182:case 178:case 183:case 184:case 187:case 188:case 191:case 197:return no(t.parent);case 267:case 268:case 270:return!1;case 163:case 305:case 264:return!0;case 271:default:return!1}})()),r.isVisible}return!1}function io(t,r){var n,i,a;return t.parent&&271===t.parent.kind?n=li(t,t.escapedText,2998271,void 0,t,!1):275===t.parent.kind&&(n=Pi(t.parent,2998271)),n&&((a=new e.Set).add(M(n)),function t(n){e.forEach(n,(n=>{var o=bi(n)||n;if(r?ni(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=li(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,M(c))&&t(c.declarations)}}))}(n.declarations)),i}function ao(e,t){var r=oo(e,t);if(r>=0){for(var n=rn.length,i=r;i<n;i++)nn[i]=!1;return!1}return rn.push(e),nn.push(!0),an.push(t),!0}function oo(e,t){for(var r=rn.length-1;r>=0;r--){if(so(rn[r],an[r]))return-1;if(rn[r]===e&&an[r]===t)return r}return-1}function so(t,r){switch(r){case 0:return!!ri(t).type;case 5:return!!ni(t).resolvedEnumType;case 2:return!!ri(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved;case 8:return!!ri(t).writeType}return e.Debug.assertNever(r)}function co(){return rn.pop(),an.pop(),nn.pop()}function lo(t){return e.findAncestor(e.getRootDeclaration(t),(e=>{switch(e.kind){case 254:case 255:case 270:case 269:case 268:case 267:return!1;default:return!0}})).parent}function uo(e,t){var r=Qc(e,t);return r?Zo(r):void 0}function po(e){return e&&0!=(1&e.flags)}function _o(e){return e===je||!!(1&e.flags&&e.aliasSymbol)}function fo(e,t){if(0!==t)return Co(e,!1,t);var r=la(e);return r&&ri(r).type||Co(e,!1,t)}function mo(t,r,n){if(131072&(t=Tg(t,(e=>!(98304&e.flags)))).flags)return St;if(1048576&t.flags)return Ag(t,(e=>mo(e,r,n)));for(var i=ad(e.map(r,yd)),a=[],o=[],s=0,c=Ac(t);s<c.length;s++){var l=vd(m=c[s],8576);u_(l,i)||24&e.getDeclarationModifierFlagsFromSymbol(m)||!dp(m)?o.push(l):a.push(m)}if(Od(t)||Md(i)){if(o.length&&(i=ad(f([i],o,!0))),131072&i.flags)return t;var u=(Er||(Er=Eu("Omit",2,!0)||Pe),Er===Pe?void 0:Er);return u?nu(u,[t,i]):je}for(var d=e.createSymbolTable(),p=0,_=a;p<_.length;p++){var m=_[p];d.set(m.escapedName,pp(m,!1))}var g=ka(n,d,e.emptyArray,e.emptyArray,al(t));return g.objectFlags|=4194304,g}function go(e){return!!(465829888&e.flags)&&Hb(Mc(e)||ze,32768)}function ho(e){return ag(Sg(e,go)?Ag(e,(e=>465829888&e.flags?Rc(e):e)):e,524288)}function yo(e,t){var r=vo(e);return r?qg(r,t):t}function vo(t){var r=(e=>{var t=e.parent.parent;switch(t.kind){case 203:case 296:return vo(t);case 204:return vo(e.parent);case 254:return t.initializer;case 221:return t.right}})(t);if(r&&r.flowNode){var n=bo(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function bo(e){var t=e.parent;return 203===e.kind&&201===t.kind?xo(e.propertyName||e.name):296===e.kind||297===e.kind?xo(e.name):""+t.elements.indexOf(e)}function xo(e){var t=yd(e);return 384&t.flags?""+t.value:void 0}function Eo(t,r){if(po(r))return r;var n,i=t.parent;if(q&&16777216&t.flags&&e.isParameterDeclaration(t)?r=jf(r):!q||!i.parent.initializer||65536&ig(fg(i.parent.initializer))||(r=ag(r,524288)),201===i.kind)if(t.dotDotDotToken){if(2&(r=$c(r)).flags||!Xh(r))return Un(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),je;for(var a=[],o=0,s=i.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}n=mo(r,a,t.symbol)}else{var l=t.propertyName||t.name;n=yo(t,Vd(r,yd(l),32,l))}else{var u=UE(65|(t.dotDotDotToken?0:128),r,Je,i),d=i.elements.indexOf(t);n=t.dotDotDotToken?Dg(r,kf)?Ag(r,(e=>Gu(e,d))):Bu(u):pf(r)?yo(t,zd(r,yp(d),32|(Kh(t)?16:0),t.name)||je):u}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!q||32768&Of(lx(t,0))?n:ho(n):ux(t,ad([ho(n),lx(t,0)],2)):n}function So(t){var r=e.getJSDocType(t);if(r)return Tp(r)}function Do(t){var r=e.skipParentheses(t,!0);return 204===r.kind&&0===r.elements.length}function To(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),q&&r?Bf(e,t):e}function Co(t,r,n){if(e.isVariableDeclaration(t)&&243===t.parent.parent.kind){var i=xd(Dy(Tx(t.parent.parent.expression,n)));return 4456448&i.flags?Ed(i):Ye}if(e.isVariableDeclaration(t)&&244===t.parent.parent.kind)return jE(t.parent.parent)||Re;if(e.isBindingPattern(t.parent))return(e=>{var t=e.dotDotDotToken?64:0,r=fo(e.parent.parent,t);return r&&Eo(e,r)})(t);var a,o,s=e.isPropertyDeclaration(t)||e.isPropertySignature(t),c=r&&(s&&!!t.questionToken||e.isParameter(t)&&(!!t.questionToken||_l(t))||gl(t)),l=Ko(t);if(l)return To(l,s,c);if((Z||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(16777216&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(a=t.initializer,o=e.skipParentheses(a,!0),104!==o.kind&&(79!==o.kind||Vm(o)!==le))))return Le;if(t.initializer&&Do(t.initializer))return Xt}if(e.isParameter(t)){var u=t.parent;if(173===u.kind&&Vs(u)){var d=e.getDeclarationOfKind(la(t.parent),172);if(d){var p=bl(d),_=lT(u);return _&&t===_?(e.Debug.assert(!_.type),Zo(p.thisParameter)):Al(p)}}if(e.isInJSFile(t)){var f=((e,t)=>{var r=xl(e);if(r){var n=e.parameters.indexOf(t);return t.dotDotDotToken?gb(r,n):fb(r,n)}})(u,t);if(f)return f}if(h="this"===t.symbol.escapedName?gh(u):hh(t))return To(h,!1,c)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var m=Io(t,la(t),e.getDeclaredExpandoInitializer(t));if(m)return m}return To(h=ux(t,lx(t,n)),s,c)}if(e.isPropertyDeclaration(t)&&(Z||e.isInJSFile(t))){if(e.hasStaticModifier(t)){var g=e.filter(t.parent.members,e.isClassStaticBlockDeclaration);return(h=g.length?((t,r)=>{for(var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=0,a=r;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=Fo(s,t);if(!Z||c!==Le&&c!==Xt||Un(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,za(t),Ja(c)),!Dg(c,Sy))return NE(c)}})(t.symbol,g):2&e.getEffectiveModifierFlags(t)?Z_(t.symbol):void 0)&&To(h,!0,c)}var h,y=ha(t.parent);return(h=y?wo(t.symbol,y):2&e.getEffectiveModifierFlags(t)?Z_(t.symbol):void 0)&&To(h,!0,c)}return e.isJsxAttribute(t)?rt:e.isBindingPattern(t.name)?Bo(t.name,!1,!0):void 0}function ko(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=ri(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!No(t)&&e.every(t.declarations,(r=>e.isBinaryExpression(r)&&Dh(r)&&(207!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!Oo(void 0,r,t,r)))),r.isConstructorDeclaredProperty}return!1}function Ao(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(Z||e.isInJSFile(r))}function No(t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(171===a.kind||$v(a)))return a}}function wo(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=Fo(i,t);return!Z||a!==Le&&a!==Xt||Un(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,za(t),Ja(a)),Dg(a,Sy)?void 0:NE(a)}function Fo(t,r){var n=(null==r?void 0:r.valueDeclaration)&&(!Ao(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&Z_(r)||Je;return qg(t,Le,n)}function Po(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?Tp(a.typeExpression):t.valueDeclaration&&Io(t.valueDeclaration,t,i)||Sf(sx(i))}var o=!1,s=!1;if(ko(t)&&(n=wo(t,No(t))),!n){var c=void 0;if(t.declarations){for(var l=void 0,u=0,d=t.declarations;u<d.length;u++){var p=d[u],_=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(_){var f=e.isAccessExpression(_)?e.getAssignmentDeclarationPropertyAccessKind(_):e.getAssignmentDeclarationKind(_);(4===f||e.isBinaryExpression(_)&&Dh(_,f))&&(Ro(_)?o=!0:s=!0),e.isCallExpression(_)||(l=Oo(l,_,t,p)),l||(c||(c=[])).push(e.isBinaryExpression(_)||e.isCallExpression(_)?Mo(t,r,_,f):st)}}n=l}if(!n){if(!e.length(c))return je;var m=o&&t.declarations?((t,r)=>(e.Debug.assert(t.length===r.length),t.filter(((t,n)=>{var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Ro(a)}))))(c,t.declarations):void 0;if(s){var g=Z_(t);g&&((m||(m=[])).push(g),o=!0)}n=ad(e.some(m,(e=>!!(-98305&e.flags)))?m:c)}}var h=tm(To(n,!1,s&&!o));return t.valueDeclaration&&Tg(h,(e=>!!(-98305&e.flags)))===st?(im(t.valueDeclaration,Re),Re):h}function Io(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=la(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&ei(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=la(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&ei(o,c.exports);var l=ka(r,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,l}}function Oo(t,r,n,i){var a,o=e.getEffectiveTypeAnnotationNode(r.parent);if(o){var s=tm(Tp(o));if(!t)return s;_o(t)||_o(s)||a_(t,s)||FE(void 0,t,i,s)}if(null===(a=n.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(c){var l=Qc(Tp(c),n.escapedName);if(l)return es(l)}}return t}function Mo(t,r,n,i){if(e.isCallExpression(n)){if(r)return Zo(r);var a=sx(n.arguments[2]),o=uo(a,"value");if(o)return o;var s=uo(a,"get");if(s){var c=_v(s);if(c)return Al(c)}var l=uo(a,"set");if(l){var u=_v(l);if(u)return Eb(u)}return Re}if(((t,r)=>e.isPropertyAccessExpression(t)&&108===t.expression.kind&&e.forEachChildRecursively(r,(e=>Wm(t,e))))(n.left,n.right))return Re;var d=1===i&&(e.isPropertyAccessExpression(n.left)||e.isElementAccessExpression(n.left))&&(e.isModuleExportsAccessExpression(n.left.expression)||e.isIdentifier(n.left.expression)&&e.isExportsIdentifier(n.left.expression)),p=r?Zo(r):d?mp(sx(n.right)):Sf(sx(n.right));if(524288&p.flags&&2===i&&"export="===t.escapedName){var _=Dc(p),f=e.createSymbolTable();e.copyEntries(_.members,f);var m=f.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach(((t,r)=>{var n,i=f.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(t.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(Un(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(Un(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=$n(t.flags|i.flags,r);s.type=ad([Zo(t),Zo(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),f.set(r,s)}else f.set(r,Yn(t,i));else f.set(r,t)}));var g=ka(m!==f.size?void 0:_.symbol,f,_.callSignatures,_.constructSignatures,_.indexInfos);return g.objectFlags|=4096&e.getObjectFlags(p),g.symbol&&32&g.symbol.flags&&p===ys(g.symbol)&&(g.objectFlags|=16777216),g}return mf(p)?(im(n,qt),qt):p}function Ro(t){var r=e.getThisContainer(t,!1);return 171===r.kind||256===r.kind||213===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Lo(t,r,n){return t.initializer?To(ux(t,lx(t,0,e.isBindingPattern(t.name)?Bo(t.name,!0,!1):ze))):e.isBindingPattern(t.name)?Bo(t.name,r,n):(n&&!Vo(t)&&im(t,Re),r?Ve:Re)}function Bo(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),201===t.kind?((t,r,n)=>{var i,a=e.createSymbolTable(),o=131200;e.forEach(t.elements,(e=>{var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Ul(Ye,Re,!1);else{var s=yd(t);if(Ls(s)){var c=Ks(s),l=$n(4|(e.initializer?16777216:0),c);l.type=Lo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=ka(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=131072),s})(t,r,n):((t,r,n)=>{var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&203===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return J>=2?(i=Re,Ru(Iu(!0),[i])):qt;var c=e.map(a,(t=>e.isOmittedExpression(t)?Re:Lo(t,r,n))),l=e.findLastIndex(a,(t=>!(t===s||e.isOmittedExpression(t)||Kh(t))),a.length-1)+1,u=Wu(c,e.map(a,((e,t)=>e===s?4:t>=l?2:1)));return r&&((u=Ql(u)).pattern=t,u.objectFlags|=131072),u})(t,r,n)}function jo(e,t){return Uo(Co(e,!0,0),e,t)}function Uo(t,r,n){return t?(4096&t.flags&&(i=la(r.parent),(a=er||(er=xu("SymbolConstructor",!1)))&&i&&i===a)&&(t=xp(r)),n&&am(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==la(r)&&(t=at),tm(t)):(t=e.isParameter(r)&&r.dotDotDotToken?qt:Re,n&&(Vo(r)||im(r,t)),t);var i,a}function Vo(t){var r=e.getRootDeclaration(t);return Vx(164===r.kind?r.parent:r)}function Ko(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Tp(r)}function zo(t){if(t)return 172===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Wo(e){var t=zo(e);return t&&Tp(t)}function Jo(t){var r=ri(t);if(!r.type){if(!ao(t,0))return je;var n=e.getDeclarationOfKind(t,172),i=e.getDeclarationOfKind(t,173),a=n&&e.isInJSFile(n)&&So(n)||Wo(n)||Wo(i)||n&&n.body&&wb(n);a||(i&&!Vx(i)?Kn(Z,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,za(t)):n&&!Vx(n)&&Kn(Z,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,za(t)),a=Re),co()||(zo(n)?Un(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,za(t)):zo(i)?Un(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,za(t)):n&&Z&&Un(n,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,za(t)),a=Re),r.type=a}return r.type}function Ho(t){var r=ri(t);if(!r.writeType){if(!ao(t,8))return je;var n=e.getDeclarationOfKind(t,173),i=Wo(n);co()||(zo(n)&&Un(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,za(t)),i=Re),r.writeType=i||Jo(t)}return r.writeType}function $o(t){var r=_s(ys(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(e=>!!(8650752&e.flags))):void 0}function Go(t){var r=ri(t),n=r;if(!r.type){var i=t.valueDeclaration&&qv(t.valueDeclaration,!1);if(i){var a=Gv(t,i);a&&(t=r=a)}n.type=r.type=(t=>{var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Re;if(r&&(221===r.kind||e.isAccessExpression(r)&&221===r.parent.kind))return Po(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Yi(t);if(n!==t){if(!ao(t,0))return je;var i=ca(t.exports.get("export=")),a=Po(i,i===n?void 0:n);return co()?a:Xo(t)}}var o=xa(16,t);if(32&t.flags){var s=$o(t);return s?_d([o,s]):o}return q&&16777216&t.flags?Bf(o):o})(t)}return r.type}function qo(e){var t=ri(e);return t.type||(t.type=Ts(e))}function Xo(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Un(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,za(t)),je):(Z&&(164!==r.kind||r.initializer)&&Un(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,za(t)),Re)}function Yo(t){var r=ri(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?ad(r.deferralConstituents):_d(r.deferralConstituents)),r.type}function Qo(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?(t=>{var r=ri(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?ad(r.deferralWriteConstituents):_d(r.deferralWriteConstituents)),r.writeType})(t)||Yo(t):t.writeType||t.type:Zo(t):98304&t.flags?1&r?(e=>{var t=ri(e);return t.writeType||(t.writeType=Xp(Qo(t.target),t.mapper))})(t):Ho(t):Zo(t)}function Zo(t){var r=e.getCheckFlags(t);return 65536&r?Yo(t):1&r?(e=>{var t=ri(e);return t.type||(t.type=Xp(Zo(t.target),t.mapper))})(t):262144&r?(t=>{if(!t.type){var r=t.mappedType;if(!ao(t,0))return r.containsError=!0,je;var n=Xp(gc(r.target||r),jp(r.mapper,_c(r),t.keyType)),i=q&&16777216&t.flags&&!Hb(n,49152)?Bf(n,!0):524288&t.checkFlags?Hf(n):n;co()||(Un(s,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,za(t),Ja(r)),i=je),t.type=i}return t.type})(t):8192&r?(e=>{var t=ri(e);return t.type||(t.type=Em(e.propertyType,e.mappedType,e.constraintType)),t.type})(t):7&t.flags?(t=>{var r=ri(t);if(!r.type){var n=(t=>{if(4194304&t.flags)return(r=ks(ua(t))).typeParameters?Yl(r,e.map(r.typeParameters,(e=>Re))):r;var r;if(t===_e)return Re;if(134217728&t.flags&&t.valueDeclaration){var n=la(e.getSourceFileOfNode(t.valueDeclaration)),i=$n(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),ka(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return te?ze:Re;var l=oD(c);return po(l)||l===ze?l:je}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?tm(Sf(Tx(s.statements[0].expression))):St;if(e.isAccessor(s))return Jo(t);if(!ao(t,0))return 512&t.flags&&!(67108864&t.flags)?Go(t):Xo(t);if(271===s.kind)o=Uo(Ko(s)||sx(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Po(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return Go(t);o=e.isBinaryExpression(s.parent)?Po(t):Ko(s)||Re}else if(e.isPropertyAssignment(s))o=Ko(s)||fx(s);else if(e.isJsxAttribute(s))o=Ko(s)||Zh(s);else if(e.isShorthandPropertyAssignment(s))o=Ko(s)||_x(s.name,0);else if(e.isObjectLiteralMethod(s))o=Ko(s)||mx(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=jo(s,!0);else if(e.isEnumDeclaration(s))o=Go(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=qo(t)}return co()?o:512&t.flags&&!(67108864&t.flags)?Go(t):Xo(t)})(t);r.type||(r.type=n)}return r.type})(t):9136&t.flags?Go(t):8&t.flags?qo(t):98304&t.flags?Jo(t):2097152&t.flags?(t=>{var r=ri(t);if(!r.type){var n=Li(t),i=t.declarations&&Oi(xi(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(t=>e.isExportAssignment(t)?Ko(t):void 0));r.type=(null==i?void 0:i.declarations)&&KS(i.declarations)&&t.declarations.length?(t=>{var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression))),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,qg(a,Le,Je)})(i):KS(t.declarations)?Le:a||(111551&n.flags?Zo(n):je)}return r.type})(t):je}function es(e){return Wf(Zo(e),!!(16777216&e.flags))}function ts(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function rs(t){return 4&e.getObjectFlags(t)?t.target:t}function ns(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=rs(n);return i===r||e.some(ms(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function is(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Cs(la(a)))}return t}function as(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=la(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(e=>t===e))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 257:case 226:case 258:case 174:case 175:case 168:case 179:case 180:case 317:case 256:case 169:case 213:case 214:case 259:case 344:case 345:case 339:case 338:case 195:case 189:var a=as(t,r);if(195===t.kind)return e.append(a,Cs(la(t.typeParameter)));if(189===t.kind)return e.concatenate(a,ep(t));var o=is(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(257===t.kind||226===t.kind||258===t.kind||$v(t))&&ys(la(t)).thisType;return s?e.append(o,s):o;case 340:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration);break;case 320:return a=as(t,r),t.tags?is(a,e.flatMap(t.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0))):a}}}function os(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,258);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),as(r)}function ss(t){if(t.declarations){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(258===a.kind||257===a.kind||226===a.kind||$v(a)||e.isTypeAlias(a)){var o=a;r=is(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}}function cs(e){var t=el(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&U(r)){var n=cb(r.parameters[0]);return po(n)||df(n)===Re}}return!1}function ls(e){if(el(e,1).length>0)return!0;if(8650752&e.flags){var t=Mc(e);return!!t&&cs(t)}return!1}function us(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function ds(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(el(t,1),(t=>(a||i>=yl(t.typeParameters))&&i<=e.length(t.typeParameters)))}function ps(t,r,n){var i=ds(t,r,n),a=e.map(r,Tp);return e.sameMap(i,(t=>e.some(t.typeParameters)?Pl(t,a,e.isInJSFile(n)):t))}function _s(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=us(t);if(!i)return t.resolvedBaseConstructorType=Je;if(!ao(t,1))return je;var a=Tx(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Tx(n.expression)),2621440&a.flags&&Dc(a),!co())return Un(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,za(t.symbol)),t.resolvedBaseConstructorType=je;if(!(1&a.flags||a===Xe||ls(a))){var o=Un(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ja(a));if(262144&a.flags){var s=Hl(a),c=ze;if(s){var l=el(s,1);l[0]&&(c=Al(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,za(a.symbol),Ja(c)))}return t.resolvedBaseConstructorType=je}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function fs(t,r){Un(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ja(r,void 0,2))}function ms(t){if(!t.baseTypesResolved){if(ao(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[gs(t)]:96&t.symbol.flags?(32&t.symbol.flags&&(t=>{t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Kc(_s(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=us(t),a=r.symbol?ks(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&(e=>{var t=e.outerTypeParameters;if(t){var r=t.length-1,n=eu(e);return t[r].symbol!==n[r].symbol}return!0})(a))n=ru(i,r.symbol);else if(1&r.flags)n=r;else{var o=ps(r,i.typeArguments,i);if(!o.length)return Un(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Al(o[0])}if(_o(n))return t.resolvedBaseTypes=e.emptyArray;var s=$c(n);if(!hs(s)){var c=Yc(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ja(s));return Sn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||ns(s,t))return Un(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ja(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]})(t),64&t.symbol.flags&&(t=>{if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(258===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=$c(Tp(s));_o(c)||(hs(c)?t===c||ns(c,t)?fs(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Un(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}})(t)):e.Debug.fail("type must be class or interface"),!co()&&t.symbol.declarations))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];257!==i.kind&&258!==i.kind||fs(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function gs(t){return Bu(ad(e.sameMap(t.typeParameters,((e,r)=>8&t.elementFlags[r]?Vd(e,Qe):e))||e.emptyArray),t.readonly)}function hs(t){if(262144&t.flags){var r=Mc(t);if(r)return hs(r)}return!!(67633153&t.flags&&!Sc(t)||2097152&t.flags&&e.every(t.types,hs))}function ys(t){var r,n,i,a,o,s=ri(t),c=s;if(!s.declaredType){var l=32&t.flags?1:2,u=Gv(t,t.valueDeclaration&&((o=(null==(a=null===(n=null==(i=(r=t.valueDeclaration)&&qv(r,!0))?void 0:i.exports)||void 0===n?void 0:n.get("prototype"))?void 0:a.valueDeclaration)&&(t=>{if(!t.parent)return!1;for(var r=t.parent;r&&206===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&63===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}})(a.valueDeclaration))?la(o):void 0));u&&(t=s=u);var d=c.declaredType=s.declaredType=xa(l,t),p=os(t),_=ss(t);(p||_||1===l||!(t=>{if(!t.declarations)return!0;for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(258===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Ji(c.expression,788968,!0);if(!l||!(64&l.flags)||ys(l).thisType)return!1}}}}return!0})(t))&&(d.objectFlags|=4,d.typeParameters=e.concatenate(p,_),d.outerTypeParameters=p,d.localTypeParameters=_,d.instantiations=new e.Map,d.instantiations.set(Gl(d.typeParameters),d),d.target=d,d.resolvedTypeArguments=d.typeParameters,d.thisType=Ea(t),d.thisType.isThisType=!0,d.thisType.constraint=d)}return s.declaredType}function vs(t){var r,n=ri(t);if(!n.declaredType){if(!ao(t,2))return je;var i=e.Debug.checkDefined(null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?Tp(a):je;if(co()){var s=ss(t);s&&(n.typeParameters=s,n.instantiations=new e.Map,n.instantiations.set(Gl(s),o))}else o=je,339===i.kind?Un(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,za(t)):Un(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,za(t));n.declaredType=o}return n.declaredType}function bs(t){return!!e.isStringLiteralLike(t)||221===t.kind&&bs(t.left)&&bs(t.right)}function xs(t){var r=t.initializer;if(!r)return!(16777216&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 219:return 40===r.operator&&8===r.operand.kind;case 79:return e.nodeIsMissing(r)||!!la(t.parent).exports.get(r.escapedText);case 221:return bs(r);default:return!1}}function Es(t){var r=ri(t);if(void 0!==r.enumKind)return r.enumKind;var n=!1;if(t.declarations)for(var i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(260===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return r.enumKind=1;xs(l)||(n=!0)}}return r.enumKind=n?0:1}function Ss(e){return 1024&e.flags&&!(1048576&e.flags)?ks(ua(e.symbol)):e}function Ds(e){var t=ri(e);if(t.declaredType)return t.declaredType;if(1===Es(e)){E++;var r=[];if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(260===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=FD(c),u=fp(bp(void 0!==l?l:0,E,la(c)));ri(la(c)).declaredType=u,r.push(mp(u))}}if(r.length){var d=ad(r,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),t.declaredType=d}}var p=ya(32);return p.symbol=e,t.declaredType=p}function Ts(e){var t=ri(e);if(!t.declaredType){var r=Ds(ua(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Cs(e){var t=ri(e);return t.declaredType||(t.declaredType=Ea(e))}function ks(e){return As(e)||je}function As(e){return 96&e.flags?ys(e):524288&e.flags?vs(e):262144&e.flags?Cs(e):384&e.flags?Ds(e):8&e.flags?Ts(e):2097152&e.flags?(e=>{var t=ri(e);return t.declaredType||(t.declaredType=ks(Li(e)))})(e):void 0}function Ns(e){switch(e.kind){case 130:case 155:case 150:case 147:case 158:case 133:case 151:case 148:case 114:case 153:case 143:case 196:return!0;case 183:return Ns(e.elementType);case 178:return!e.typeArguments||e.typeArguments.every(Ns)}return!1}function ws(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||Ns(r)}function Fs(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?Ns(r):!e.hasInitializer(t)}function Ps(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 167:case 166:return Fs(r);case 169:case 168:case 171:case 172:case 173:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(171===n.kind||!!i&&Ns(i))&&n.parameters.every(Fs)&&a.every(ws)}}var n,i,a;return!1}function Is(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Ps(s)?s:Kp(s,r))}return i}function Os(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Ms(i)||e.set(i.escapedName,i)}}function Ms(t){return!!t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)&&e.isStatic(t.valueDeclaration)}function Rs(t){if(!t.declaredProperties){var r=t.symbol,n=Js(r);t.declaredProperties=Da(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredIndexInfos=e.emptyArray,t.declaredCallSignatures=Sl(n.get("__call")),t.declaredConstructSignatures=Sl(n.get("__new")),t.declaredIndexInfos=Vl(r)}return t}function Ls(e){return!!(8576&e.flags)}function Bs(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Ls(e.isComputedPropertyName(t)?Hh(t):sx(r))}function js(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Us(t){var r=e.getNameOfDeclaration(t);return!!r&&Bs(r)}function Vs(t){return!e.hasDynamicName(t)||Us(t)}function Ks(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function zs(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=ni(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?sx(o.argumentExpression):Hh(o);if(Ls(s)){var c=Ks(s),l=i.symbol.flags,u=n.get(c);u||n.set(c,u=$n(0,c,4096));var d=r&&r.get(c);if(u.flags&Gn(l)||d){var p=d?e.concatenate(d.declarations,u.declarations):u.declarations,_=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(t=>Un(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,_))),Un(o||i,e.Diagnostics.Duplicate_property_0,_),u=$n(0,c,4096)}return u.nameType=s,((t,r,n)=>{e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,ri(r.symbol).lateSymbol=t,t.declarations?r.symbol.isReplaceableByMethod||t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))})(u,i,l),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function Ws(t,r){var n=ri(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?sa(t):t.exports:t.members;n[r]=a||K;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var d=0,p=u;d<p.length;d++){var _=p[d];i===e.hasStaticModifier(_)&&Us(_)&&zs(t,a,o,_)}}var f=t.assignmentDeclarationMembers;if(f)for(var m=0,g=e.arrayFrom(f.values());m<g.length;m++){_=g[m];var h=e.getAssignmentDeclarationKind(_);i===!(3===h||e.isBinaryExpression(_)&&Dh(_,h)||9===h||6===h)&&Us(_)&&zs(t,a,o,_)}n[r]=((t,r)=>{if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return ei(n,t),ei(n,r),n})(a,o)||K}return n[r]}function Js(e){return 6256&e.flags?Ws(e,"resolvedMembers"):e.members||K}function Hs(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=ri(t);if(!r.lateSymbol&&e.some(t.declarations,Us)){var n=ca(t.parent);e.some(t.declarations,e.hasStaticModifier)?ia(n):Js(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function $s(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=eu(t);if(e.length(i.typeParameters)===e.length(a)){var o=Yl(i,e.concatenate(a,[r||i.thisType]));return n?Kc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(e=>$s(e,r,n)));return s!==t.types?_d(s):t}return n?Kc(t):t}function Gs(t,r,n,i){var a,o,s,c,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?Js(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,l=r.declaredIndexInfos):(a=Fp(n,i),o=Is(r.declaredProperties,a,1===n.length),s=Np(r.declaredCallSignatures,a),c=Np(r.declaredConstructSignatures,a),l=wp(r.declaredIndexInfos,a));var u=ms(r);if(u.length){r.symbol&&o===Js(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Ca(t,o,s,c,l);for(var d=e.lastOrUndefined(i),p=0,_=u;p<_.length;p++){var f=_[p],m=d?$s(Xp(f,a),d):f;Os(o,Ac(m)),s=e.concatenate(s,el(m,0)),c=e.concatenate(c,el(m,1));var g=m!==Re?al(m):[Ul(Ye,Re,!1)];l=e.concatenate(l,e.filter(g,(e=>!tl(l,e.keyType))))}}Ca(t,o,s,c,l)}function qs(e,t,r,n,i,a,o,s){var c=new v(fe,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Xs(e){var t=qs(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Ys(e,t){var r=Xs(e);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function Qs(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=((t,r)=>{e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=Xs(t);return n.flags|=r,n})(t,r))}function Zs(t,r){if(U(t)){var n=t.parameters.length-1,i=Zo(t.parameters[n]);if(kf(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,kf))return e.map(i.types,(e=>a(e,n)))}return[t.parameters];function a(r,n){var i=eu(r),a=r.target.labeledElementDeclarations,o=e.map(i,((e,i)=>{var o=!!a&&lb(a[i])||ub(t,n+i,r),s=r.target.elementFlags[i],c=$n(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?Bu(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function ec(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(af(s,t,r,n,i,r?c_:o_))return s}}function tc(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!ec(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:ec(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function rc(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!ec(r,s,!1,!1,!0)){var c=tc(t,s,i);if(c){var l=s;if(c.length>1){var u=s.thisParameter,d=e.forEach(c,(e=>e.thisParameter));d&&(u=Gf(d,_d(e.mapDefined(c,(e=>e.thisParameter&&Zo(e.thisParameter)))))),(l=Ys(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=t=>{if(t!==p){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(_=r.typeParameters&&e.some(_,(e=>!!e.typeParameters&&!nc(r.typeParameters,e.typeParameters)))?void 0:e.map(_,(t=>((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Fp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=hb(e),i=hb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=vb(e)||vb(t),l=c&&!vb(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=mb(a,d);a===t&&(p=Xp(p,r));var _=mb(o,d)||ze;o===t&&(_=Xp(_,r));var f=_d([p,_]),m=c&&!l&&d===s-1,g=d>=yb(a)&&d>=yb(o),h=d>=n?void 0:ub(e,d),y=d>=i?void 0:ub(t,d),v=$n(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=m?Bu(f):f,u[d]=v}if(l){var b=$n(1,"args");b.type=Bu(fb(o,s)),o===t&&(b.type=Xp(b.type,r)),u[s]=b}return u})(t,r,n),s=qs(a,i,((e,t,r)=>e&&t?Gf(e,_d([Zo(e),Xp(Zo(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=1048576,s.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?Lp(t.mapper,n):n),s})(t,r)))))return"break"}},m=0,g=t;m<g.length&&"break"!==f(g[m]);m++);r=_}return r||e.emptyArray}function nc(t,r){if(e.length(t)!==e.length(r))return!1;if(!t||!r)return!0;for(var n=Fp(r,t),i=0;i<t.length;i++){var a=t[i],o=r[i];if(a!==o&&!a_(Hl(a)||ze,Xp(Hl(o)||ze,n)))return!1}return!0}function ic(t){var r=al(t[0]);if(r){for(var n=[],i=r=>{var i=r.keyType;e.every(t,(e=>!!ol(e,i)))&&n.push(Ul(i,ad(e.map(t,(e=>sl(e,i)))),e.some(t,(e=>ol(e,i).isReadonly))))},a=0,o=r;a<o.length;a++)i(o[a]);return n}return e.emptyArray}function ac(e,t){return e?t?_d([e,t]):e:t}function oc(t){var r=e.countWhere(t,(e=>el(e,1).length>0)),n=e.map(t,cs);if(r>0&&r===e.countWhere(n,(e=>e))){var i=n.indexOf(!0);n[i]=!1}return n}function sc(t,r){for(var n=r=>{t&&!e.every(t,(e=>!af(e,r,!1,!1,!1,o_)))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++)n(a[i]);return t}function cc(t,r,n){if(t)for(var i=0;i<t.length;i++){var a=t[i];if(a.keyType===r.keyType)return t[i]=Ul(a.keyType,n?ad([a.type,r.type]):_d([a.type,r.type]),n?a.isReadonly||r.isReadonly:a.isReadonly&&r.isReadonly),t}return e.append(t,r)}function lc(e,t,r){return Xp(e,Fp([t.indexType,t.objectType],[yp(0),Wu([r])]))}function uc(t){if(4194304&t.flags){var r=Kc(t.type);return Af(r)?qu(r):xd(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=uc(n);if(i!==n)return qp(t,Bp(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?Ag(t,uc):2097152&t.flags?_d(e.sameMap(t.types,uc)):t}function dc(t){return 4096&e.getCheckFlags(t)}function pc(e,t,r,n){for(var i=0,a=Ac(e);i<a.length;i++)n(vd(a[i],t));if(1&e.flags)n(Ye);else for(var o=0,s=al(e);o<s.length;o++){var c=s[o];(!r||134217732&c.keyType.flags)&&n(c.keyType)}}function _c(e){return e.typeParameter||(e.typeParameter=Cs(la(e.declaration.typeParameter)))}function fc(e){return e.constraintType||(e.constraintType=wc(_c(e))||je)}function mc(e){return e.declaration.nameType?e.nameType||(e.nameType=Xp(Tp(e.declaration.nameType),e.mapper)):void 0}function gc(e){return e.templateType||(e.templateType=e.declaration.type?Xp(To(Tp(e.declaration.type),!0,!!(4&bc(e))),e.mapper):je)}function hc(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function yc(e){var t=hc(e);return 193===t.kind&&140===t.operator}function vc(e){if(!e.modifiersType)if(yc(e))e.modifiersType=Xp(Tp(hc(e).type),e.mapper);else{var t=fc(Jd(e.declaration)),r=t&&262144&t.flags?wc(t):t;e.modifiersType=r&&4194304&r.flags?Xp(r.type,e.mapper):ze}return e.modifiersType}function bc(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function xc(e){var t=bc(e);return 8&t?-1:4&t?1:0}function Ec(e){var t=xc(e),r=vc(e);return t||(Sc(r)?xc(r):0)}function Sc(t){return!!(32&e.getObjectFlags(t))&&Md(fc(t))}function Dc(t){return t.members||(524288&t.flags?4&t.objectFlags?(t=>{var r=Rs(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=eu(t);Gs(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))})(t):3&t.objectFlags?(t=>{Gs(t,Rs(t),e.emptyArray,e.emptyArray)})(t):1024&t.objectFlags?(t=>{for(var r=ol(t.source,Ye),n=bc(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r?[Ul(Ye,Em(r.type,t.mappedType,t.constraintType),i&&r.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=Ac(t.source);c<l.length;c++){var u=l[c],d=8192|(i&&Vb(u)?8:0),p=$n(4|u.flags&a,u.escapedName,d);if(p.declarations=u.declarations,p.nameType=ri(u).nameType,p.propertyType=Zo(u),8388608&t.constraintType.type.flags&&262144&t.constraintType.type.objectType.flags&&262144&t.constraintType.type.indexType.flags){var _=t.constraintType.type.objectType,f=lc(t.mappedType,t.constraintType.type,_);p.mappedType=f,p.constraintType=xd(_)}else p.mappedType=t.mappedType,p.constraintType=t.constraintType;s.set(u.escapedName,p)}Ca(t,s,e.emptyArray,e.emptyArray,o)})(t):16&t.objectFlags?(t=>{if(t.target)return Ca(t,K,e.emptyArray,e.emptyArray,e.emptyArray),void Ca(t,Is(Tc(t.target),t.mapper,!1),i=Np(el(t.target,0),t.mapper),a=Np(el(t.target,1),t.mapper),wp(al(t.target),t.mapper));var r=ca(t.symbol);if(2048&r.flags){Ca(t,K,e.emptyArray,e.emptyArray,e.emptyArray);var n=Js(r),i=Sl(n.get("__call")),a=Sl(n.get("__new"));Ca(t,n,i,a,Vl(r))}else{var o,s,c=K;if(r.exports&&(c=ia(r),r===ue)){var l=new e.Map;c.forEach((t=>{var r;418&t.flags||512&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.length)&&e.every(t.declarations,e.isAmbientModule)||l.set(t.escapedName,t)})),c=l}if(Ca(t,c,e.emptyArray,e.emptyArray,e.emptyArray),32&r.flags){var u=_s(ys(r));11272192&u.flags?Os(c=e.createSymbolTable((t=>{var r=Da(t),n=jl(t);return n?e.concatenate(r,[n]):r})(c)),Ac(u)):u===Re&&(s=Ul(Ye,Re,!1))}var d=jl(c);if(d?o=Kl(d):(s&&(o=e.append(o,s)),384&r.flags&&(32&ks(r).flags||e.some(t.properties,(e=>!!(296&Zo(e).flags))))&&(o=e.append(o,Lr))),Ca(t,c,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&r.flags&&(t.callSignatures=Sl(r)),32&r.flags){var p=ys(r);a=r.members?Sl(r.members.get("__constructor")):e.emptyArray,16&r.flags&&(a=e.addRange(a.slice(),e.mapDefined(t.callSignatures,(e=>$v(e.declaration)?qs(e.declaration,e.typeParameters,e.thisParameter,e.parameters,p,void 0,e.minArgumentCount,39&e.flags):void 0)))),a.length||(a=(t=>{var r=el(_s(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[qs(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=us(t),o=e.isInJSFile(a),s=hu(a),c=e.length(s),l=[],u=0,d=r;u<d.length;u++){var p=d[u],_=yl(p.typeParameters),f=e.length(p.typeParameters);if(o||c>=_&&c<=f){var m=f?Ol(p,vl(s,p.typeParameters,_,o)):Xs(p);m.typeParameters=t.localTypeParameters,m.resolvedReturnType=t,m.flags=i?4|m.flags:-5&m.flags,l.push(m)}}return l})(p)),t.constructSignatures=a}}})(t):32&t.objectFlags&&(t=>{var r,n=e.createSymbolTable();Ca(t,K,e.emptyArray,e.emptyArray,e.emptyArray);var i=_c(t),a=fc(t),o=mc(t.target||t),s=gc(t.target||t),c=Kc(vc(t)),l=bc(t),u=re?128:8576;function d(e){Eg(o?Xp(o,jp(t.mapper,i,e)):e,(a=>((e,a)=>{if(Ls(a)){var u=Ks(a),d=n.get(u);if(d)d.nameType=ad([d.nameType,a]),d.keyType=ad([d.keyType,e]);else{var p=Ls(e)?Qc(c,Ks(e)):void 0,_=!!(4&l||!(8&l)&&p&&16777216&p.flags),f=!!(1&l||!(2&l)&&p&&Vb(p)),m=q&&!_&&p&&16777216&p.flags,g=$n(4|(_?16777216:0),u,262144|(p?dc(p):0)|(f?8:0)|(m?524288:0));g.mappedType=t,g.nameType=a,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),n.set(u,g)}}else if(zl(a)||33&a.flags){var h=Ul(5&a.flags?Ye:40&a.flags?Qe:a,Xp(s,jp(t.mapper,i,e)),!!(1&l));r=cc(r,h,!0)}})(e,a)))}yc(t)?pc(c,u,re,d):Eg(uc(a),d),Ca(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)})(t):1048576&t.flags?(t=>{var r=rc(e.map(t.types,(e=>e===jt?[Or]:el(e,0)))),n=rc(e.map(t.types,(e=>el(e,1)))),i=ic(t.types);Ca(t,K,r,n,i)})(t):2097152&t.flags&&(t=>{for(var r,n,i,a=t.types,o=oc(a),s=e.countWhere(o,(e=>e)),c=c=>{var l=t.types[c];if(!o[c]){var u=el(l,1);u.length&&s>0&&(u=e.map(u,(e=>{var t=Xs(e);return t.resolvedReturnType=((e,t,r,n)=>{for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Al(el(t[a],1)[0]));return _d(i)})(Al(e),a,o,c),t}))),n=sc(n,u)}r=sc(r,el(l,0)),i=e.reduceLeft(al(l),((e,t)=>cc(e,t,!1)),i)},l=0;l<a.length;l++)c(l);Ca(t,K,r||e.emptyArray,n||e.emptyArray,i||e.emptyArray)})(t)),t}function Tc(t){return 524288&t.flags?Dc(t).properties:e.emptyArray}function Cc(e,t){if(524288&e.flags){var r=Dc(e).members.get(t);if(r&&ga(r))return r}}function kc(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=Ac(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var l=Hc(t,c.escapedName);l&&r.set(c.escapedName,l)}}if(1048576&t.flags&&0===al(a).length)break}t.resolvedProperties=Da(r)}return t.resolvedProperties}function Ac(e){return 3145728&(e=zc(e)).flags?kc(e):Tc(e)}function Nc(e){return 262144&e.flags?wc(e):8388608&e.flags?(e=>Lc(e)?(e=>{if(Vc(e))return Ud(e.objectType,e.indexType);var t=Fc(e.indexType);if(t&&t!==e.indexType){var r=zd(e.objectType,t,e.accessFlags);if(r)return r}var n=Fc(e.objectType);return n&&n!==e.objectType?zd(n,e.indexType,e.accessFlags):void 0})(e):void 0)(e):16777216&e.flags?(e=>Lc(e)?Oc(e):void 0)(e):Mc(e)}function wc(e){return Lc(e)?Hl(e):void 0}function Fc(e){var t=Ld(e,!1);return t!==e?t:Nc(e)}function Pc(e){if(!e.resolvedDefaultConstraint){var t=(e=>e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Xp(Tp(e.root.node.trueType),e.combinedMapper):Qd(e)))(e),r=Zd(e);e.resolvedDefaultConstraint=po(t)?r:po(r)?t:ad([t,r])}return e.resolvedDefaultConstraint}function Ic(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Ld(e.checkType,!1),r=t===e.checkType?Nc(t):t;if(r&&r!==e.checkType){var n=qp(e,Bp(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Oc(e){return Ic(e)||Pc(e)}function Mc(e){if(464781312&e.flags){var t=Bc(e);return t!==Nt&&t!==wt?t:void 0}return 4194304&e.flags?mt:void 0}function Rc(e){return Mc(e)||e}function Lc(e){return Bc(e)!==wt}function Bc(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=$s(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!ao(t,4))return wt;var n=void 0,a=rf(t);if((r.length<10||r.length<50&&!e.contains(r,a))&&(r.push(a),n=(t=>{if(262144&t.flags){var r=Hl(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=u=t.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),n.push(l)):a=!0}return a?1048576&t.flags&&n.length===u.length?ad(n):2097152&t.flags&&n.length?_d(n):void 0:t}if(4194304&t.flags)return mt;if(134217728&t.flags){var u=t.types,d=e.mapDefined(u,i);return d.length===u.length?Sd(t.texts,d):Ye}if(268435456&t.flags)return(r=i(t.type))?Td(t.symbol,r):Ye;if(8388608&t.flags){if(Vc(t))return i(Ud(t.objectType,t.indexType));var p=i(t.objectType),_=i(t.indexType),f=p&&_&&zd(p,_,t.accessFlags);return f&&i(f)}return 16777216&t.flags?(r=Oc(t))&&i(r):33554432&t.flags?i(t.substitute):t})(Ld(t,!1)),r.pop()),!co()){if(262144&t.flags){var o=Wl(t);if(o){var c=Un(o,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ja(t));!s||e.isNodeDescendantOf(o,s)||e.isNodeDescendantOf(s,o)||e.addRelatedInfo(c,e.createDiagnosticForNode(s,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=wt}t.immediateBaseConstraint=n||Nt}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==Nt&&t!==wt?t:void 0}}function jc(t){if(t.default)t.default===Ft&&(t.default=wt);else if(t.target){var r=jc(t.target);t.default=r?Xp(r,t.mapper):Nt}else{t.default=Ft;var n=t.symbol&&e.forEach(t.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default)),i=n?Tp(n):Nt;t.default===Ft&&(t.default=i)}return t.default}function Uc(e){var t=jc(e);return t!==Nt&&t!==wt?t:void 0}function Vc(t){var r;return!(!(8388608&t.flags&&32&e.getObjectFlags(r=t.objectType)&&!Sc(r)&&Md(t.indexType))||8&bc(r)||r.declaration.nameType)}function Kc(t){var r=465829888&t.flags?Mc(t)||ze:t;return 32&e.getObjectFlags(r)?(e=>e.resolvedApparentType||(e.resolvedApparentType=(e=>{var t=Wp(e);if(t&&!e.declaration.nameType){var r=wc(t);if(r&&lf(r))return Xp(e,Bp(t,r,e.mapper))}return e})(e)))(r):2097152&r.flags?(e=>e.resolvedApparentType||(e.resolvedApparentType=$s(e,e,!0)))(r):402653316&r.flags?Wt:296&r.flags?Jt:2112&r.flags?Dr||(Dr=Du("BigInt",0,!1))||St:528&r.flags?Ht:12288&r.flags?Nu():67108864&r.flags?St:4194304&r.flags?mt:2&r.flags&&!q?St:r}function zc(e){return $c(Kc($c(e)))}function Wc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,u=l?0:16777216,d=4,p=l?0:8,_=!1,f=0,m=t.types;f<m.length;f++)if(!(_o(w=Kc(m[f]))||131072&w.flags)){var g=(N=Qc(w,r,n))?e.getDeclarationModifierFlagsFromSymbol(N):0;if(N){if(l?u|=16777216&N.flags:u&=N.flags,o){if(N!==o)if((SS(N)||N)===(SS(o)||o)&&-1===nf(o,N,((e,t)=>e===t?-1:0)))_=!!o.parent&&!!e.length(ss(o.parent));else{s||(s=new e.Map).set(M(o),o);var h=M(N);s.has(h)||s.set(h,N)}}else o=N;l&&Vb(N)?p|=8:l||Vb(N)||(p&=-9),p|=(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),yy(N)||(d=2)}else if(l){var y=!js(r)&&ul(w,r);y?(p|=32|(y.isReadonly?8:0),c=e.append(c,kf(w)?wf(w)||Je:y.type)):!Mm(w)||2097152&e.getObjectFlags(w)?p|=16:(p|=32,c=e.append(c,Je))}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!(s||16&p||c)){if(_){var v=Gf(o,o.type);return v.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,v.containingType=t,v.mapper=o.mapper,v}return o}for(var b,x,E,S,D,T=[],C=!1,k=0,A=s?e.arrayFrom(s.values()):[o];k<A.length;k++){var N=A[k];D?N.valueDeclaration&&N.valueDeclaration!==D&&(C=!0):D=N.valueDeclaration,b=e.addRange(b,N.declarations);var w=Zo(N);x||(x=w,E=ri(N).nameType);var F=Qo(N);S||F!==w?S=e.append(S||T.slice(),F):w!==x&&(p|=64),(xf(w)||Pd(w)||w===xt)&&(p|=128),131072&w.flags&&w!==xt&&(p|=131072),T.push(w)}e.addRange(T,c);var P=$n(4|u,r,d|p);return P.containingType=t,!C&&D&&(P.valueDeclaration=D,D.symbol.parent&&(P.parent=D.symbol.parent)),P.declarations=b,P.nameType=E,T.length>2?(P.checkFlags|=65536,P.deferralParent=t,P.deferralConstituents=T,P.deferralWriteConstituents=S):(P.type=l?ad(T):_d(T),S&&(P.writeType=l?ad(S):_d(S))),P}}function Jc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=Wc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function Hc(t,r,n){var i=Jc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function $c(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=(t=>{var r=e.sameMap(t.types,$c);if(r===t.types)return t;var n=ad(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n})(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(kc(t),Gc)?33554432:0)),33554432&t.objectFlags?st:t):t}function Gc(e){return qc(e)||Xc(e)}function qc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&Zo(t).flags))}function Xc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Yc(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(kc(r),qc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ja(r,void 0,536870912),za(n));var i=e.find(kc(r),Xc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ja(r,void 0,536870912),za(i))}return t}function Qc(e,t,r){if(524288&(e=zc(e)).flags){var n=Dc(e),i=n.members.get(t);if(i&&ga(i))return i;if(r)return;var a=n===At?jt:n.callSignatures.length?Ut:n.constructSignatures.length?Vt:void 0;if(a){var o=Cc(a,t);if(o)return o}return Cc(Bt,t)}if(3145728&e.flags)return Hc(e,t,r)}function Zc(t,r){if(3670016&t.flags){var n=Dc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function el(e,t){return Zc(zc(e),t)}function tl(t,r){return e.find(t,(e=>e.keyType===r))}function rl(t,r){for(var n,i,a,o=0,s=t;o<s.length;o++){var c=s[o];c.keyType===Ye?n=c:nl(r,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?Ul(ze,_d(e.map(a,(e=>e.type))),e.reduceLeft(a,((e,t)=>e&&t.isReadonly),!0)):i||(n&&nl(r,Ye)?n:void 0)}function nl(t,r){return u_(t,r)||r===Ye&&u_(t,Qe)||r===Qe&&(t===yt||!!(128&t.flags)&&e.isNumericLiteralName(t.value))}function il(t){return 3670016&t.flags?Dc(t).indexInfos:e.emptyArray}function al(e){return il(zc(e))}function ol(e,t){return tl(al(e),t)}function sl(e,t){var r;return null===(r=ol(e,t))||void 0===r?void 0:r.type}function cl(e,t){return al(e).filter((e=>nl(t,e.keyType)))}function ll(e,t){return rl(al(e),t)}function ul(t,r){return ll(t,js(r)?at:hp(e.unescapeLeadingUnderscores(r)))}function dl(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,Cs(a.symbol))}return r}function pl(e){var t=[];return e.forEach(((e,r)=>{Sa(r)||t.push(e)})),t}function _l(t){return e.isInJSFile(t)&&(t.type&&316===t.type.kind||e.getJSDocParameterTags(t).some((e=>{var t=e.isBracketed,r=e.typeExpression;return t||!!r&&316===r.type.kind})))}function fl(t,r){if(!e.isExternalModuleNameRelative(t)){var n=ai(ce,'"'+t+'"',512);return n&&r?ca(n):n}}function ml(t){if(e.hasQuestionToken(t)||gl(t)||_l(t))return!0;if(t.initializer){var r=bl(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=yb(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function gl(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&316===n.type.kind}function hl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function yl(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default))||(n=i+1);return n}function vl(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=je;var l=Bm(i);for(c=o;c<a;c++){var u=Uc(r[c]);i&&u&&(a_(u,ze)||a_(u,St))&&(u=Re),s[c]=u?Xp(u,Fp(r,s)):l}return s.length=r.length,s}return t&&t.slice()}function bl(t){var r,n=ni(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t);!l&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var d=u?1:0;d<t.parameters.length;d++){var p=t.parameters[d],_=p.symbol,f=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;_&&4&_.flags&&!e.isBindingPattern(p.name)&&(_=li(p,_.escapedName,111551,void 0,void 0,!1)),0===d&&"this"===_.escapedName?(c=!0,s=p.symbol):i.push(_),f&&196===f.kind&&(a|=2),gl(p)||p.initializer||p.questionToken||e.isRestParameter(p)||l&&i.length>l.arguments.length&&!f||_l(p)||(o=i.length)}if((172===t.kind||173===t.kind)&&Vs(t)&&(!c||!s)){var m=172===t.kind?173:172,g=e.getDeclarationOfKind(la(t),m);g&&(s=(r=lT(g))&&r.symbol)}var h=171===t.kind?ys(ca(t.parent.symbol)):void 0,y=h?h.localTypeParameters:dl(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&((t,r)=>{if(e.isJSDocSignature(t)||!El(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(t=>t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0)),o=$n(3,"args",32768);return a?o.type=Bu(Tp(a.type)):(o.checkFlags|=65536,o.deferralParent=st,o.deferralConstituents=[qt],o.deferralWriteConstituents=[qt]),a&&r.pop(),r.push(o),!0})(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=qs(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function xl(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&_v(Tp(r.typeExpression))}}function El(t){var r=ni(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===pe.escapedName&&UD(r)===pe;case 167:case 169:case 172:case 173:return 162===r.name.kind&&t(r.name);case 206:case 207:return t(r.expression);case 296:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Sl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(bl(i))}}return r}function Dl(e){var t=$i(e,e);if(t){var r=Yi(t);if(r)return Zo(r)}return Re}function Tl(e){if(e.thisParameter)return Zo(e.thisParameter)}function Cl(t){if(!t.resolvedTypePredicate){if(t.target){var r=Cl(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,hl(o.kind,o.parameterName,o.parameterIndex,Xp(o.type,s))):Pr}else if(t.compositeSignatures)t.resolvedTypePredicate=((e,t)=>{for(var r,n=[],i=0,a=e;i<a.length;i++){var o=Cl(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!od(r,o))return}else r=o;n.push(o.type)}if(r){var s=kl(n,t);return hl(r.kind,r.parameterName,r.parameterIndex,s)}})(t.compositeSignatures,t.compositeKind)||Pr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=xl(t.declaration);a&&t!==a&&(i=Cl(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?((t,r)=>{var n=t.parameterName,i=t.type&&Tp(t.type);return 192===n.kind?hl(t.assertsModifier?2:0,void 0,void 0,i):hl(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(e=>e.escapedName===n.escapedText)),i)})(n,t):i||Pr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Pr?void 0:t.resolvedTypePredicate}function kl(e,t,r){return 2097152!==t?ad(e,r):_d(e)}function Al(t){if(!t.resolvedReturnType){if(!ao(t,3))return je;var r=t.target?Xp(Al(t.target),t.mapper):t.compositeSignatures?Xp(kl(e.map(t.compositeSignatures,Al),t.compositeKind,2),t.mapper):Nl(t.declaration)||(e.nodeIsMissing(t.declaration.body)?Re:wb(t.declaration));if(8&t.flags?r=Uf(r):16&t.flags&&(r=Bf(r)),!co()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Un(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Z){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Un(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):Un(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=Re}t.resolvedReturnType=r}return t.resolvedReturnType}function Nl(t){if(171===t.kind)return ys(ca(t.parent.symbol));if(e.isJSDocConstructSignature(t))return Tp(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return Tp(n);if(172===t.kind&&Vs(t)){var i=e.isInJSFile(t)&&So(t);if(i)return i;var a=Wo(e.getDeclarationOfKind(la(t),173));if(a)return a}return(r=xl(t))&&Al(r)}function wl(e){return!e.resolvedReturnType&&oo(e,3)>=0}function Fl(e){if(U(e)){var t=Zo(e.parameters[e.parameters.length-1]),r=kf(t)?wf(t):t;return r&&sl(r,Qe)}}function Pl(e,t,r,n){var i=Il(e,vl(t,e.typeParameters,yl(e.typeParameters),r));if(n){var a=fv(Al(i));if(a){var o=Xs(a);o.typeParameters=n;var s=Xs(i);return s.resolvedReturnType=Ll(o),s}}return i}function Il(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Gl(r),a=n.get(i);return a||n.set(i,a=Ol(t,r)),a}function Ol(e,t){return Vp(e,((e,t)=>Fp(e.typeParameters,t))(e,t),!0)}function Ml(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=(e=>Vp(e,Rp(e.typeParameters),!0))(e)):e}function Rl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=Rp(r),i=Fp(r,e.map(r,(e=>wc(e)||ze))),a=e.map(r,(e=>Xp(e,i)||ze)),o=0;o<r.length-1;o++)a=Ap(a,i);return a=Ap(a,n),t.baseSignatureCache=Vp(t,Fp(r,a),!0)}return t}function Ll(t){var r;if(!t.isolatedSignatureType){var n=null===(r=t.declaration)||void 0===r?void 0:r.kind,i=void 0===n||171===n||175===n||180===n,a=xa(16);a.members=K,a.properties=e.emptyArray,a.callSignatures=i?e.emptyArray:[t],a.constructSignatures=i?[t]:e.emptyArray,a.indexInfos=e.emptyArray,t.isolatedSignatureType=a}return t.isolatedSignatureType}function Bl(e){return e.members?jl(e.members):void 0}function jl(e){return e.get("__index")}function Ul(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function Vl(t){var r=Bl(t);return r?Kl(r):e.emptyArray}function Kl(t){if(t.declarations){for(var r=[],n=t=>{if(1===t.parameters.length){var n=t.parameters[0];n.type&&Eg(Tp(n.type),(n=>{zl(n)&&!tl(r,n)&&r.push(Ul(n,t.type?Tp(t.type):Re,e.hasEffectiveModifier(t,64),t))}))}},i=0,a=t.declarations;i<a.length;i++)n(a[i]);return r}return e.emptyArray}function zl(t){return!!(4108&t.flags)||Pd(t)||!!(2097152&t.flags)&&!Id(t)&&e.some(t.types,zl)}function Wl(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Jl(t,r){var n,i;if(null===(n=t.symbol)||void 0===n?void 0:n.declarations)for(var a=0,o=t.symbol.declarations;a<o.length;a++){var s=o[a];if(190===s.parent.kind){var c=e.walkUpParenthesizedTypesAndGetParentAndChild(s.parent.parent),l=c[0],u=void 0===l?s.parent:l,d=c[1];if(178!==d.kind||r){if(164===d.kind&&d.dotDotDotToken||186===d.kind||197===d.kind&&d.dotDotDotToken)i=e.append(i,Bu(ze));else if(199===d.kind)i=e.append(i,Ye);else if(163===d.kind&&195===d.parent.kind)i=e.append(i,mt);else if(195===d.kind&&d.type&&e.skipParentheses(d.type)===s.parent&&189===d.parent.kind&&d.parent.extendsType===d&&195===d.parent.checkType.kind&&d.parent.checkType.type){var p=d.parent.checkType,_=Tp(p.type);i=e.append(i,Xp(_,Ip(Cs(la(p.typeParameter)),p.typeParameter.constraint?Tp(p.typeParameter.constraint):mt)))}}else{var f=d,m=Bx(f);if(m){var g=f.typeArguments.indexOf(u);if(g<m.length){var h=wc(m[g]);if(h){var y=Xp(h,Fp(m,Rx(f,m)));y!==t&&(i=e.append(i,y))}}}}}}return i&&_d(i)}function Hl(e){if(!e.constraint)if(e.target){var t=wc(e.target);e.constraint=t?Xp(t,e.mapper):Nt}else{var r=Wl(e);if(r){var n=Tp(r);1&n.flags&&!_o(n)&&(n=195===r.parent.parent.kind?mt:ze),e.constraint=n}else e.constraint=Jl(e)||Nt}return e.constraint===Nt?void 0:e.constraint}function $l(t){var r=e.getDeclarationOfKind(t.symbol,163),n=e.isJSDocTemplateTag(r.parent)?e.getEffectiveContainerForJSDocTemplateTag(r.parent):r.parent;return n&&la(n)}function Gl(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function ql(e,t){return e?"@".concat(M(e))+(t?":".concat(Gl(t)):""):""}function Xl(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 458752&n}function Yl(e,t){var r=Gl(t),n=e.instantiations.get(r);return n||(n=xa(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Xl(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Ql(e){var t=ya(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Zl(e,t,r,n,i){if(!n){var a=op(n=ap(t));i=r?Ap(a,r):a}var o=xa(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function eu(t){var r,n;if(!t.resolvedTypeArguments){if(!ao(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((()=>je)))||e.emptyArray;var i=t.node,a=i?178===i.kind?e.concatenate(t.target.outerTypeParameters,Rx(i,t.target.localTypeParameters)):183===i.kind?[Tp(i.elementType)]:e.map(i.elements,Tp):e.emptyArray;co()?t.resolvedTypeArguments=t.mapper?Ap(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((()=>je)))||e.emptyArray,Un(t.node||s,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&za(t.target.symbol)))}return t.resolvedTypeArguments}function tu(t){return e.length(t.target.typeParameters)}function ru(t,r){var n=ks(ca(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=yl(i),s=e.isInJSFile(t);if((Z||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Un(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ja(n,void 0,2),o,i.length),!s)return je}return 178===t.kind&&Vu(t,e.length(t.typeArguments)!==i.length)?Zl(n,t,void 0):Yl(n,e.concatenate(n.outerTypeParameters,vl(hu(t),i,o,s)))}return fu(t,r)?n:je}function nu(t,r,n,i){var a=ks(t);if(a===Ke&&F.has(t.escapedName)&&r&&1===r.length)return Td(t,r[0]);var o=ri(t),s=o.typeParameters,c=Gl(r)+ql(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Yp(a,Fp(s,vl(r,s,yl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function iu(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function au(e){return e.parent?"".concat(au(e.parent),".").concat(e.escapedName):e.escapedName}function ou(e){var t=(161===e.kind?e.right:206===e.kind?e.name:e).escapedText;if(t){var r=161===e.kind?ou(e.left):206===e.kind?ou(e.expression):void 0,n=r?"".concat(au(r),".").concat(t):t,i=Oe.get(n);return i||(Oe.set(n,i=$n(524288,t,1048576)),i.parent=r,i.declaredType=Ue),i}return Pe}function su(t,r,n){var i=(t=>{switch(t.kind){case 178:return t.typeName;case 228:var r=t.expression;if(e.isEntityNameExpression(r))return r}})(t);if(!i)return Pe;var a=Ji(i,r,n);return a&&a!==Pe?a:n?Pe:ou(i)}function cu(t,r){if(r===Pe)return je;if(96&(r=(t=>{var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=la(n);if(i)return Gv(i,t)}}})(r)||r).flags)return ru(t,r);if(524288&r.flags)return((t,r)=>{if(1048576&e.getCheckFlags(r)){var n=hu(t),i=ql(r,n),a=Me.get(i);return a||((a=ba(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Me.set(i,a)),a}var o=ks(r),s=ri(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=yl(s);if(c<l||c>s.length)return Un(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,za(r),l,s.length),je;var u=ap(t),d=!u||!iu(r)&&iu(u)?void 0:u;return nu(r,hu(t),d,op(d))}return fu(t,r)?o:je})(t,r);var n=As(r);return n?fu(t,r)?mp(n):je:111551&r.flags&&_u(t)?((e,t)=>{var r=ni(e);if(!r.resolvedJSDocType){var n=Zo(t),i=n;if(t.valueDeclaration){var a=200===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=cu(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType})(t,r)||(su(t,788968),Zo(r)):je}function lu(e,t){if(3&t.flags||t===e)return e;var r="".concat(Qu(e),">").concat(Qu(t)),n=ke.get(r);if(n)return n;var i=ya(33554432);return i.baseType=e,i.substitute=t,ke.set(r,i),i}function uu(e){return 184===e.kind&&1===e.elements.length}function du(e,t,r){return uu(t)&&uu(r)?du(e,t.elements[0],r.elements[0]):Hd(Tp(t))===Hd(e)?Tp(r):void 0}function pu(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&320!==r.kind;){var a=r.parent;if(164===a.kind&&(i=!i),(i||8650752&t.flags)&&189===a.kind&&r===a.trueType)(s=du(t,a.checkType,a.extendsType))&&(n=e.append(n,s));else if(262144&t.flags&&195===a.kind&&r===a.type){var o=Tp(a);if(_c(o)===Hd(t)){var s,c=Wp(o);c&&(s=wc(c))&&Dg(s,lf)&&(n=e.append(n,ad([Qe,yt])))}}r=a}return n?lu(t,_d(e.append(n,t))):t}function _u(e){return!!(8388608&e.flags)&&(178===e.kind||200===e.kind)}function fu(t,r){return!t.typeArguments||(Un(t,e.Diagnostics.Type_0_is_not_generic,r?za(r):t.typeName?e.declarationNameToString(t.typeName):o),!1)}function mu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return fu(t),Ye;case"Number":return fu(t),Qe;case"Boolean":return fu(t),it;case"Void":return fu(t),ot;case"Undefined":return fu(t),Je;case"Null":return fu(t),qe;case"Function":case"function":return fu(t),jt;case"array":return r&&r.length||Z?void 0:qt;case"promise":return r&&r.length||Z?void 0:kb(Re);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Tp(r[0]),i=Tp(r[1]),a=n===Ye||n===Qe?[Ul(n,i,!1)]:e.emptyArray;return ka(void 0,K,e.emptyArray,e.emptyArray,a)}return Re}return fu(t),Z?void 0:Re}}}function gu(t){var r=ni(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Pe,r.resolvedType=sx(t.parent.expression);var n=void 0,i=void 0,a=788968;_u(t)&&((i=mu(t))||((n=su(t,a,!0))===Pe?n=su(t,900095):su(t,a),i=cu(t,n))),i||(i=cu(t,n=su(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function hu(t){return e.map(t.typeArguments,Tp)}function yu(e){var t=ni(e);if(!t.resolvedType){var r=ab(e);t.resolvedType=mp(tm(r))}return t.resolvedType}function vu(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 257:case 258:case 260:return i}}}if(!t)return r?kt:St;var i=ks(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Un(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?kt:St):i:(Un(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?kt:St)}function bu(t,r){return Su(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function xu(t,r){return Su(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function Eu(t,r,n){var i=Su(t,788968,n?e.Diagnostics.Cannot_find_global_type_0:void 0);if(!i||(ks(i),e.length(ri(i).typeParameters)===r))return i;Un(i.declarations&&e.find(i.declarations,e.isTypeAliasDeclaration),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(i),r)}function Su(e,t,r){return li(void 0,e,t,r,e,!1,!1,!1)}function Du(e,t,r){var n=xu(e,r);return n||r?vu(n,t):void 0}function Tu(){return yr||(yr=Du("ImportMeta",0,!0)||St)}function Cu(){if(!vr){var t=$n(0,"ImportMetaExpression"),r=Tu(),n=$n(4,"meta",8);n.parent=t,n.type=r;var i=e.createSymbolTable([n]);t.members=i,vr=ka(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}return vr}function ku(e){return br||(br=Du("ImportCallOptions",0,e))||St}function Au(e){return Zt||(Zt=bu("Symbol",e))}function Nu(){return tr||(tr=Du("Symbol",0,!1))||St}function wu(e){return nr||(nr=Du("Promise",1,e))||kt}function Fu(e){return ir||(ir=Du("PromiseLike",1,e))||kt}function Pu(e){return ar||(ar=bu("Promise",e))}function Iu(e){return sr||(sr=Du("Iterable",1,e))||kt}function Ou(e,t){void 0===t&&(t=0);var r=Su(e,788968,void 0);return r&&vu(r,t)}function Mu(e){return Sr||(Sr=Eu("Awaited",1,e)||(e?Pe:void 0)),Sr===Pe?void 0:Sr}function Ru(e,t){return e!==kt?Yl(e,t):St}function Lu(e){return Ru(rr||(rr=Du("TypedPropertyDescriptor",1,!0)||kt),[e])}function Bu(e,t){return Ru(t?zt:Kt,[e])}function ju(e){switch(e.kind){case 185:return 2;case 186:return Uu(e);case 197:return e.questionToken?2:e.dotDotDotToken?Uu(e):1;default:return 1}}function Uu(e){return Dp(e.type)?4:8}function Vu(t,r){return!!ap(t)||Ku(t)&&(183===t.kind?zu(t.elementType):184===t.kind?e.some(t.elements,zu):r||e.some(t.typeArguments,zu))}function Ku(e){var t=e.parent;switch(t.kind){case 191:case 197:case 178:case 187:case 188:case 194:case 189:case 193:case 183:case 184:return Ku(t);case 259:return!0}return!1}function zu(t){switch(t.kind){case 178:return _u(t)||!!(524288&su(t,788968).flags);case 181:return!0;case 193:return 154!==t.operator&&zu(t.type);case 191:case 185:case 197:case 316:case 314:case 315:case 309:return zu(t.type);case 186:return 183!==t.type.kind||zu(t.type.elementType);case 187:case 188:return e.some(t.types,zu);case 194:return zu(t.objectType)||zu(t.indexType);case 189:return zu(t.checkType)||zu(t.extendsType)||zu(t.trueType)||zu(t.falseType)}return!1}function Wu(t,r,n,i){void 0===n&&(n=!1);var a=Ju(r||e.map(t,(e=>1)),n,i);return a===kt?St:t.length?Hu(a,t):a}function Ju(t,r,n){if(1===t.length&&4&t[0])return r?zt:Kt;var i=e.map(t,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(r?"R":"")+(n&&n.length?","+e.map(n,O).join(","):""),a=he.get(i);return a||he.set(i,a=((t,r,n)=>{var i,a=t.length,o=e.countWhere(t,(e=>!!(9&e))),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var u=i[l]=Ea(),d=t[l];if(!(12&(c|=d))){var p=$n(4|(2&d?16777216:0),""+l,r?8:0);p.tupleLabelDeclaration=null==n?void 0:n[l],p.type=u,s.push(p)}}}var _=s.length,f=$n(4,"length",r?8:0);if(12&c)f.type=Qe;else{var m=[];for(l=o;l<=a;l++)m.push(yp(l));f.type=ad(m)}s.push(f);var g=xa(12);return g.typeParameters=i,g.outerTypeParameters=void 0,g.localTypeParameters=i,g.instantiations=new e.Map,g.instantiations.set(Gl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=Ea(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=t,g.minLength=o,g.fixedLength=_,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=r,g.labeledElementDeclarations=n,g})(t,r,n)),a}function Hu(e,t){return 8&e.objectFlags?$u(e,t):Yl(e,t)}function $u(t,r){var n,i,a;if(!(14&t.combinedFlags))return Yl(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,((e,r)=>!!(8&t.elementFlags[r]&&1179648&e.flags)));if(o>=0)return md(e.map(r,((e,r)=>8&t.elementFlags[r]?e:ze)))?Ag(r[o],(n=>$u(t,e.replaceElement(r,o,n)))):je}for(var c=[],l=[],u=[],d=-1,p=-1,_=-1,f=o=>{var l=r[o],u=t.elementFlags[o];if(8&u)if(58982400&l.flags||Sc(l))y(l,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(kf(l)){var d=eu(l);if(d.length+c.length>=1e4)return Un(s,e.isPartOfTypeNode(s)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:je};e.forEach(d,((e,t)=>{var r;return y(e,l.target.elementFlags[t],null===(r=l.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else y(pf(l)&&sl(l,Qe)||je,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(l,u,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},m=0;m<r.length;m++){var g=f(m);if("object"==typeof g)return g.value}for(m=0;m<d;m++)2&l[m]&&(l[m]=1);p>=0&&p<_&&(c[p]=ad(e.sameMap(c.slice(p,_+1),((e,t)=>8&l[p+t]?Vd(e,Qe):e))),c.splice(p+1,_-p),l.splice(p+1,_-p),null==u||u.splice(p+1,_-p));var h=Ju(l,t.readonly,u);return h===kt?St:l.length?Yl(h,c):h;function y(e,t,r){1&t&&(d=l.length),4&t&&p<0&&(p=l.length),6&t&&(_=l.length),c.push(e),l.push(t),u&&r?u.push(r):u=void 0}}function Gu(t,r,n){void 0===n&&(n=0);var i=t.target,a=tu(t)-n;return r>i.fixedLength?(e=>{var t=wf(e);return t&&Bu(t)})(t)||Wu(e.emptyArray):Wu(eu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function qu(t){return ad(e.append(e.arrayOf(t.target.fixedLength,(e=>hp(""+e))),xd(t.target.readonly?zt:Kt)))}function Xu(t,r){var n=e.findIndex(t.elementFlags,(e=>!(e&r)));return n>=0?n:t.elementFlags.length}function Yu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(e=>!(e&r)))-1}function Qu(e){return e.id}function Zu(t,r){return e.binarySearch(t,r,Qu,e.compareValues)>=0}function ed(t,r){var n=e.binarySearch(t,r,Qu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function td(t,r,n){var i=n.flags;if(1048576&i)return rd(t,r|((e=>!!(1048576&e.flags&&(e.aliasSymbol||e.origin)))(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Be&&(r|=8388608),!q&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Qu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function rd(e,t,r){for(var n=0,i=r;n<i.length;n++)t=td(e,t,i[n]);return t}function nd(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&nd(t,o.types)}}}function id(e,t){var r=va(e);return r.types=t,r}function ad(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return st;if(1===t.length)return t[0];var o=[],c=rd(o,0,t);if(0!==r){if(3&c)return 1&c?8388608&c?Be:Re:65536&c||Zu(o,ze)?ze:We;if(ie&&32768&c){var l=e.binarySearch(o,Ge,Qu,e.compareValues);l>=0&&Zu(o,Je)&&e.orderedRemoveItemAt(o,l)}if((402664320&c||16384&c&&32768&c)&&((t,r,n)=>{for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||gp(a)&&Zu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}})(o,c,!!(2&r)),128&c&&134217728&c&&(t=>{var r=e.filter(t,Pd);if(r.length)for(var n=t.length,i=()=>{n--;var i=t[n];128&i.flags&&e.some(r,(e=>Nm(i,e)))&&e.orderedRemoveItemAt(t,n)};n>0;)i()})(o),2===r&&!(o=((t,r)=>{if(t.length<2)return t;var n=Gl(t),i=Ae.get(n);if(i)return i;for(var a=r&&e.some(t,(e=>!!(524288&e.flags)&&!Sc(e)&&C_(Dc(e)))),o=t.length,c=o,l=0;c>0;){var u=t[--c];if(a||469499904&u.flags)for(var d=61603840&u.flags?e.find(Ac(u),(e=>vf(Zo(e)))):void 0,p=d&&mp(Zo(d)),_=0,f=t;_<f.length;_++){var m=f[_];if(u!==m){if(1e5===l&&l/(o-c)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((e=>e.id))}),void Un(s,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,d&&61603840&m.flags){var g=uo(m,d.escapedName);if(g&&vf(g)&&mp(g)!==p)continue}if(P_(u,m,An)&&(!(1&e.getObjectFlags(rs(u)))||!(1&e.getObjectFlags(rs(m)))||d_(u,m))){e.orderedRemoveItemAt(t,c);break}}}}return Ae.set(n,t),t})(o,!!(524288&c))))return je;if(0===o.length)return 65536&c?4194304&c?qe:Xe:32768&c?4194304&c?Je:He:st}if(!a&&1048576&c){var u=[];nd(u,t);for(var d=[],p=t=>{e.some(u,(e=>Zu(e.types,t)))||d.push(t)},_=0,f=o;_<f.length;_++)p(f[_]);if(!n&&1===u.length&&0===d.length)return u[0];if(e.reduceLeft(u,((e,t)=>e+t.types.length),0)+d.length===o.length){for(var m=0,g=u;m<g.length;m++)ed(d,g[m]);a=id(1048576,d)}}return sd(o,(36323363&c?0:32768)|(2097152&c?16777216:0),n,i,a)}function od(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function sd(e,t,r,n,i){if(0===e.length)return st;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|".concat(Gl(i.types)):2097152&i.flags?"&".concat(Gl(i.types)):"#".concat(i.type.id,"|").concat(Gl(e)):Gl(e))+ql(r,n),o=ye.get(a);return o||((o=ya(1048576)).objectFlags=t|Xl(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),ye.set(a,o)),o}function cd(e,t,r){var n=r.flags;return 2097152&n?ld(e,t,r.types):(A_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===Be&&(t|=8388608):!q&&98304&n||(ie&&r===Ge&&(t|=262144,r=Je),e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r))),t|=205258751&n),t)}function ld(e,t,r){for(var n=0,i=r;n<i.length;n++)t=cd(e,t,mp(i[n]));return t}function ud(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!Zu(i.types,t)){var a=128&t.flags?Ye:256&t.flags?Qe:2048&t.flags?Ze:8192&t.flags?at:void 0;if(!a||!Zu(i.types,a))return!1}}return!0}function dd(t,r){return e.every(t,(t=>!!(1048576&t.flags)&&e.some(t.types,(e=>!!(e.flags&r)))))}function pd(e,t){for(var r=0;r<e.length;r++)e[r]=Tg(e[r],(e=>!(e.flags&t)))}function _d(t,r,n){var i=new e.Map,a=ld(i,0,t),o=e.arrayFrom(i.values());if(131072&a)return e.contains(o,ct)?ct:st;if(q&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return st;if(134217728&a&&128&a&&(t=>{for(var r=t.length,n=e.filter(t,(e=>!!(128&e.flags)));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(l_(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(Pd(i))return!0}}return!1})(o))return st;if(1&a)return 8388608&a?Be:Re;if(!q&&98304&a)return 32768&a?Je:qe;if((4&a&&402653312&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&((t,r)=>{for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}})(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,A_)),262144&a&&(o[o.indexOf(Je)]=Ge),0===o.length)return ze;if(1===o.length)return o[0];var s=Gl(o)+ql(r,n),c=ve.get(s);if(!c){if(1048576&a)if((t=>{var r,n=e.findIndex(t,(t=>!!(32768&e.getObjectFlags(t))));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];32768&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,l=r;c<l.length;c++)for(var u=0,d=l[c].types;u<d.length;u++)ed(o,a=d[u])&&ud(r,a)&&ed(s,a);return t[n]=sd(s,32768),!0})(o))c=_d(o,r,n);else if(dd(o,32768)){var l=ie&&e.some(o,(e=>Zu(e.types,Ge)))?Ge:Je;pd(o,32768),c=ad([_d(o),l],1,r,n)}else if(dd(o,65536))pd(o,65536),c=ad([_d(o),qe],1,r,n);else{if(!md(o))return je;var u=(e=>{for(var t=fd(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=_d(i);131072&l.flags||r.push(l)}return r})(o);c=ad(u,1,r,n,e.some(u,(e=>!!(2097152&e.flags)))?id(2097152,o):void 0)}else c=((e,t,r)=>{var n=ya(2097152);return n.objectFlags=Xl(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n})(o,r,n);ve.set(s,c)}return c}function fd(t){return e.reduceLeft(t,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function md(t){var r=fd(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((e=>e.id)),size:r}),Un(s,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function gd(e,t){var r=ya(4194304);return r.type=e,r.stringsOnly=t,r}function hd(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=gd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=gd(e,!1))}function yd(t){return e.isPrivateIdentifier(t)?st:e.isIdentifier(t)?hp(e.unescapeLeadingUnderscores(t.escapedText)):mp(e.isComputedPropertyName(t)?Hh(t):Tx(t))}function vd(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=ri(Hs(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?hp("default"):a&&yd(a)||(e.isKnownSymbol(t)?void 0:hp(e.symbolName(t)))}if(i&&i.flags&r)return i}return st}function bd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(e=>bd(e,r))))}function xd(t,r,n){return void 0===r&&(r=re),1048576&(t=$c(t)).flags?(t=>e.some(t.types,(e=>{var t=(e=>262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=Xp(e,Et)))(e);return $c(t)!==t})))(t)?hd(t,r):_d(e.map(t.types,(e=>xd(e,r,n)))):2097152&t.flags?ad(e.map(t.types,(e=>xd(e,r,n)))):58982400&t.flags||Af(t)||Sc(t)&&(a=_c(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(mc(i)||a))?hd(t,r):32&e.getObjectFlags(t)?((e,t,r)=>{var n=_c(e),i=fc(e),a=mc(e.target||e);if(!a&&!r)return i;var o=[];if(yc(e)){if(Md(i))return hd(e,t);pc(Kc(vc(e)),8576,t,c)}else Eg(uc(i),c);Md(i)&&Eg(i,c);var s=r?Tg(ad(o),(e=>!(5&e.flags))):ad(o);return 1048576&s.flags&&1048576&i.flags&&Gl(s.types)===Gl(i.types)?i:s;function c(t){var r=a?Xp(a,jp(e.mapper,n,t)):t;o.push(r===Ye?_t:r)}})(t,r,n):t===Be?Be:2&t.flags?st:131073&t.flags?mt:((t,r,n)=>{var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?(e=>{var t=va(4194304);return t.type=e,t})(t):void 0,a=e.map(Ac(t),(e=>vd(e,r))),o=e.map(al(t),(e=>e!==Lr&&bd(e.keyType,r)?e.keyType===Ye&&8&r?_t:e.keyType:st));return ad(e.concatenate(a,o),1,void 0,void 0,i)})(t,(n?128:402653316)|(r?0:12584),r===re&&!n);var i,a}function Ed(e){if(re)return e;var t=(xr||(xr=Eu("Extract",2,!0)||Pe),xr===Pe?void 0:xr);return t?nu(t,[e,Ye]):Ye}function Sd(t,r){var n=e.findIndex(r,(e=>!!(1179648&e.flags)));if(n>=0)return md(r)?Ag(r[n],(i=>Sd(t,e.replaceElement(r,n,i)))):je;if(e.contains(r,Be))return Be;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c<n.length;c++){var l=n[c],u=s?r[c+1]:r;if(101248&l.flags){if(o+=Dd(l)||"",o+=u,!s)return!0}else if(134217728&l.flags){if(o+=l.texts[0],!t(l.texts,l.types))return!1;if(o+=u,!s)return!0}else if(Md(l)||Fd(l))i.push(l),a.push(o),o=u;else if(2097152&l.flags){if(!t(r[c+1],l.types))return!1}else if(s)return!1}return!0}(t,r))return Ye;if(0===i.length)return hp(o);if(a.push(o),e.every(a,(e=>""===e))&&e.every(i,(e=>!!(4&e.flags))))return Ye;var s="".concat(Gl(i),"|").concat(e.map(a,(e=>e.length)).join(","),"|").concat(a.join("")),c=Te.get(s);return c||Te.set(s,c=((e,t)=>{var r=ya(134217728);return r.texts=e,r.types=t,r})(a,i)),c}function Dd(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):98816&t.flags?t.intrinsicName:void 0}function Td(e,t){return 1179648&t.flags?Ag(t,(t=>Td(e,t))):Md(t)?((e,t)=>{var r="".concat(M(e),",").concat(Qu(t)),n=Ce.get(r);return n||Ce.set(r,n=((e,t)=>{var r=ya(268435456);return r.symbol=e,r.type=t,r})(e,t)),n})(e,t):128&t.flags?hp(((e,t)=>{switch(F.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t})(e,t.value)):t}function Cd(t){if(Z)return!1;if(4096&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,Cd);if(2097152&t.flags)return e.some(t.types,Cd);if(465829888&t.flags){var r=Bc(t);return r!==t&&Cd(r)}return!1}function kd(t,r){return Ls(t)?Ks(t):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function Ad(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(t=>!e.isAccessExpression(t)))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&tg(n,t):e.every(r.declarations,(t=>!e.isFunctionLike(t)||!!(268435456&e.getCombinedNodeFlags(t))))}return!0}function Nd(t,r,n,i,a,o){var s,c=a&&207===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:kd(n,a);if(void 0!==l){if(256&o)return Ch(r,l)||Re;var u=Qc(r,l);if(u){if(64&o&&a&&u.declarations&&Jn(u)&&Ad(a,u)&&Hn(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,u.declarations,l),c){if(Yy(u,c,Qy(c.expression,r.symbol)),Kb(c,u,e.getAssignmentTargetKind(c)))return void Un(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,za(u));if(8&o&&(ni(a).resolvedSymbol=u),Ry(c,u))return Le}var d=Zo(u);return c&&1!==e.getAssignmentTargetKind(c)?qg(c,d):d}if(Dg(r,kf)&&e.isNumericLiteralName(l)&&+l>=0){if(a&&Dg(r,(e=>!e.target.hasRestElement))&&!(16&o)){var p=wd(a);kf(r)?Un(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ja(r),tu(r),e.unescapeLeadingUnderscores(l)):Un(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Ja(r))}return b(ol(r,Qe)),Ag(r,(e=>{var t=wf(e)||Je;return 1&o?ad([t,Je]):t}))}}if(!(98304&n.flags)&&$b(n,402665900)){if(131073&r.flags)return r;var _=ll(r,n)||ol(r,Ye);if(_)return 2&o&&_.keyType!==Qe?void(c&&Un(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ja(n),Ja(t))):a&&_.keyType===Ye&&!$b(n,12)?(Un(p=wd(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ja(n)),1&o?ad([_.type,Je]):_.type):(b(_),1&o?ad([_.type,Je]):_.type);if(131072&n.flags)return st;if(Cd(r))return Re;if(c&&!qb(r)){if(Mm(r)){if(Z&&384&n.flags)return Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ja(r))),Je;if(12&n.flags){var f=e.map(r.properties,(e=>Zo(e)));return ad(e.append(f,Je))}}if(r.symbol===ue&&void 0!==l&&ue.exports.has(l)&&418&ue.exports.get(l).flags)Un(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Ja(r));else if(Z&&!W.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&zy(l,r)){var m=Ja(r);Un(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,m,m+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(sl(r,Qe))Un(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=$y(l,r)))void 0!==g&&Un(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Ja(r),g);else{var h=((t,r,n)=>{var i=e.isAssignmentTarget(r)?"set":"get";if((e=>{var r=Cc(t,e);if(r){var i=_v(Zo(r));return!!i&&yb(i)>=1&&u_(n,fb(i,0))}return!1})(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}})(r,c,n);if(void 0!==h)Un(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ja(r),h);else{var y=void 0;if(1024&n.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Ja(n)+"]",Ja(r));else if(8192&n.flags){var v=Wi(n.symbol,c);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Ja(r))}else 128&n.flags||256&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Ja(r)):12&n.flags&&(y=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ja(n),Ja(r)));y=e.chainDiagnosticMessages(y,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ja(i),Ja(r)),Sn.add(e.createDiagnosticForNodeFromMessageChain(c,y))}}}return}}return Cd(r)?Re:(a&&(p=wd(a),384&n.flags?Un(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Ja(r)):12&n.flags?Un(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Ja(r),Ja(n)):Un(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Ja(n))),po(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Un(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ja(r))}}function wd(e){return 207===e.kind?e.argumentExpression:194===e.kind?e.indexType:162===e.kind?e.expression:e}function Fd(e){return!!(77&e.flags)}function Pd(t){return!!(134217728&t.flags)&&e.every(t.types,Fd)}function Id(e){return!!Rd(e)}function Od(e){return!!(4194304&Rd(e))}function Md(e){return!!(8388608&Rd(e))}function Rd(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,((e,t)=>e|Rd(t)),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|Rd(t.substitute)|Rd(t.baseType)),12582912&t.objectFlags):(58982400&t.flags||Sc(t)||Af(t)?4194304:0)|(465829888&t.flags&&!Pd(t)?8388608:0)}function Ld(t,r){return 8388608&t.flags?((t,r)=>{var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===wt?t:t[n];t[n]=wt;var i=Ld(t.objectType,r),a=Ld(t.indexType,r),o=((t,r,n)=>{if(1048576&r.flags){var i=e.map(r.types,(e=>Ld(Vd(t,e),n)));return n?_d(i):ad(i)}})(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Bd(i,a,r);if(s)return t[n]=s}if(Af(i)&&296&a.flags){var c=Ff(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Sc(i)){var l=mc(i);if(!l||u_(l,_c(i)))return t[n]=Ag(Ud(i,t.indexType),(e=>Ld(e,r)))}return t[n]=t})(t,r):16777216&t.flags?((e,t)=>{var r=e.checkType,n=e.extendsType,i=Qd(e),a=Zd(e);if(131072&a.flags&&Hd(i)===Hd(r)){if(1&r.flags||u_(Zp(r),Zp(n)))return Ld(i,t);if(jd(r,n))return st}else if(131072&i.flags&&Hd(a)===Hd(r)){if(!(1&r.flags)&&u_(Zp(r),Zp(n)))return st;if(1&r.flags||jd(r,n))return Ld(a,t)}return e})(t,r):t}function Bd(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(e=>Ld(Vd(e,r),n)));return 2097152&t.flags||n?_d(i):ad(i)}}function jd(e,t){return!!(131072&ad([ac(e,t),st]).flags)}function Ud(e,t){var r=Fp([_c(e)],[t]),n=Lp(e.mapper,r);return Xp(gc(e),n)}function Vd(e,t,r,n,i,a){return void 0===r&&(r=0),zd(e,t,r,n,i,a)||(n?je:ze)}function Kd(t,r){return Dg(t,(t=>{if(384&t.flags){var n=Ks(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i<r}}return!1}))}function zd(e,t,r,n,i,a){if(void 0===r&&(r=0),e===Be||t===Be)return Be;if(!N_(e)||98304&t.flags||!$b(t,12)||(t=Ye),W.noUncheckedIndexedAccess&&32&r&&(r|=1),Md(t)||(n&&194!==n.kind?Af(e)&&!Kd(t,e.target.fixedLength):Od(e)&&(!kf(e)||!Kd(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+ql(i,a),c=De.get(s);return c||De.set(s,c=((e,t,r,n,i)=>{var a=ya(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a})(e,t,o,i,a)),c}var l=zc(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],d=!1,p=0,_=t.types;p<_.length;p++){var f=Nd(e,l,_[p],t,n,r|(d?128:0));if(f)u.push(f);else{if(!n)return;d=!0}}if(d)return;return 4&r?_d(u,i,a):ad(u,1,i,a)}return Nd(e,l,t,t,n,72|r)}function Wd(e){var t=ni(e);if(!t.resolvedType){var r=Tp(e.objectType),n=Tp(e.indexType),i=ap(e),a=Vd(r,n,0,e,i,op(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?pu(a,e):a}return t.resolvedType}function Jd(e){var t=ni(e);if(!t.resolvedType){var r=xa(32,e.symbol);r.declaration=e,r.aliasSymbol=ap(e),r.aliasTypeArguments=op(r.aliasSymbol),t.resolvedType=r,fc(r)}return t.resolvedType}function Hd(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Vd(Hd(e.objectType),Hd(e.indexType)):e}function $d(e){var t=wc(e);return t&&(Od(t)||Md(t))?Up(e):e}function Gd(e){return!e.isDistributive&&qd(e.node.checkType)&&qd(e.node.extendsType)}function qd(t){return e.isTupleTypeNode(t)&&1===e.length(t.elements)&&!e.isOptionalTypeNode(t.elements[0])&&!e.isRestTypeNode(t.elements[0])&&!(e.isNamedTupleMember(t.elements[0])&&(t.elements[0].questionToken||t.elements[0].dotDotDotToken))}function Xd(e,t){return Gd(e)&&kf(t)?eu(t)[0]:t}function Yd(t,r,n,i){for(var a,o,c=0,l=()=>{if(1e3===c)return Un(s,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),a=je,"break";var l=Gd(t),u=Xp(Xd(t,Hd(t.checkType)),r),p=Id(u),_=Xp(Xd(t,t.extendsType),r);if(u===Be||_===Be)return{value:Be};var f=void 0;if(t.inferTypeParameters){var m=e.sameMap(t.inferTypeParameters,$d),g=m!==t.inferTypeParameters?Fp(t.inferTypeParameters,m):void 0,h=cm(m,void 0,0);if(g)for(var y=Lp(r,g),v=0,b=m;v<b.length;v++){var x=b[v];-1===t.inferTypeParameters.indexOf(x)&&(x.mapper=y)}p&&e.some(t.inferTypeParameters,(e=>e===_))||Pm(h.inferences,u,Xp(_,g),1536);var E=Lp(g,h.mapper);f=r?Lp(E,r):E}var S=f?Xp(Xd(t,t.extendsType),f):_;if(!p&&!Id(S)){if(!(3&S.flags)&&(1&u.flags&&!l||!u_(Qp(u),Qp(S)))){1&u.flags&&!l&&(o||(o=[])).push(Xp(Tp(t.node.trueType),f||r));var D=Tp(t.node.falseType);if(16777216&D.flags){var T=D.root;if(T.node.parent===t.node&&(!T.isDistributive||T.checkType===t.checkType))return t=T,"continue";if(d(D,r))return"continue"}return a=Xp(D,r),"break"}if(3&S.flags||u_(Zp(u),Zp(S))){var C=Tp(t.node.trueType),k=f||r;return d(C,k)?"continue":(a=Xp(C,k),"break")}}return(a=ya(16777216)).root=t,a.checkType=Xp(t.checkType,r),a.extendsType=Xp(t.extendsType,r),a.mapper=r,a.combinedMapper=f,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:Ap(t.aliasTypeArguments,r),"break"};;){var u=l();if("object"==typeof u)return u.value;if("break"===u)break}return o?ad(e.append(o,a)):a;function d(a,o){if(16777216&a.flags&&o){var s=a.root;if(s.outerTypeParameters){var l=Lp(a.mapper,o),u=e.map(s.outerTypeParameters,(e=>Pp(e,l))),d=Fp(s.outerTypeParameters,u),p=s.isDistributive?Pp(s.checkType,d):void 0;if(!(p&&p!==s.checkType&&1179648&p.flags))return t=s,r=d,n=void 0,i=void 0,s.aliasSymbol&&c++,!0}}return!1}}function Qd(e){return e.resolvedTrueType||(e.resolvedTrueType=Xp(Tp(e.root.node.trueType),e.mapper))}function Zd(e){return e.resolvedFalseType||(e.resolvedFalseType=Xp(Tp(e.root.node.falseType),e.mapper))}function ep(t){var r;return t.locals&&t.locals.forEach((t=>{262144&t.flags&&(r=e.append(r,ks(t)))})),r}function tp(t){return e.isIdentifier(t)?[t]:e.append(tp(t.left),t.right)}function rp(t){var r=ni(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Un(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=Pe,r.resolvedType=je;if(!e.isLiteralImportTypeNode(t))return Un(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=Pe,r.resolvedType=je;var n=t.isTypeOf?111551:8388608&t.flags?900095:788968,i=$i(t,t.argument.literal);if(!i)return r.resolvedSymbol=Pe,r.resolvedType=je;var a=Yi(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?r.resolvedType=np(t,r,a,n):(Un(t,111551===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=Pe,r.resolvedType=je);else{for(var o=tp(t.qualifier),s=a,c=void 0;c=o.shift();){var l=o.length?1920:n,u=ca(Ri(s)),d=t.isTypeOf?Qc(Zo(u),c.escapedText):ai(ia(u),c.escapedText,l);if(!d)return Un(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,Wi(s),e.declarationNameToString(c)),r.resolvedType=je;ni(c).resolvedSymbol=d,ni(c.parent).resolvedSymbol=d,s=d}r.resolvedType=np(t,r,s,n)}}return r.resolvedType}function np(e,t,r,n){var i=Ri(r);return t.resolvedSymbol=i,111551===n?Zo(r):cu(e,i)}function ip(t){var r=ni(t);if(!r.resolvedType){var n=ap(t);if(0!==Js(t.symbol).size||n){var i=xa(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=op(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=Bu(i)),r.resolvedType=i}else r.resolvedType=Ct}return r.resolvedType}function ap(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&145===r.operator;)r=r.parent;return e.isTypeAlias(r)?la(r):void 0}function op(e){return e?ss(e):void 0}function sp(e){return!!(524288&e.flags)&&!Sc(e)}function cp(e){return k_(e)||!!(474058748&e.flags)}function lp(t,r){if(!(1048576&t.flags))return t;if(e.every(t.types,cp))return e.find(t.types,k_)||St;var n=e.find(t.types,(e=>!cp(e)));return n?e.find(t.types,(e=>e!==n&&!cp(e)))?t:(t=>{for(var n=e.createSymbolTable(),i=0,a=Ac(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(dp(o)){var s=65536&o.flags&&!(32768&o.flags),c=$n(16777220,o.escapedName,dc(o)|(r?8:0));c.type=s?Je:To(Zo(o),!0),c.declarations=o.declarations,c.nameType=ri(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var l=ka(t.symbol,n,e.emptyArray,e.emptyArray,al(t));return l.objectFlags|=131200,l})(n):t}function up(t,r,n,i,a){if(1&t.flags||1&r.flags)return Re;if(2&t.flags||2&r.flags)return ze;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=lp(t,a)).flags)return md([t,r])?Ag(t,(e=>up(e,r,n,i,a))):je;if(1048576&(r=lp(r,a)).flags)return md([t,r])?Ag(r,(e=>up(t,e,n,i,a))):je;if(473960444&r.flags)return t;if(Od(t)||Od(r)){if(k_(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(sp(s)&&sp(r))return _d(e.concatenate(o.slice(0,o.length-1),[up(s,r,n,i,a)]))}return _d([t,r])}for(var c=e.createSymbolTable(),l=new e.Set,u=t===St?al(r):ic([t,r]),d=0,p=Ac(r);d<p.length;d++){var _=p[d];24&e.getDeclarationModifierFlagsFromSymbol(_)?l.add(_.escapedName):dp(_)&&c.set(_.escapedName,pp(_,a))}for(var f=0,m=Ac(t);f<m.length;f++){var g=m[f];if(!l.has(g.escapedName)&&dp(g))if(c.has(g.escapedName)){var h=Zo(_=c.get(g.escapedName));if(16777216&_.flags){var y=e.concatenate(g.declarations,_.declarations),v=$n(4|16777216&g.flags,g.escapedName);v.type=ad([Zo(g),Hf(h)],2),v.leftSpread=g,v.rightSpread=_,v.declarations=y,v.nameType=ri(g).nameType,c.set(g.escapedName,v)}}else c.set(g.escapedName,pp(g,a))}var b=ka(n,c,e.emptyArray,e.emptyArray,e.sameMap(u,(e=>((e,t)=>e.isReadonly!==t?Ul(e.keyType,e.type,t,e.declaration):e)(e,a))));return b.objectFlags|=2228352|i,b}function dp(t){var r;return!(e.some(t.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.some((t=>e.isClassLike(t.parent)))))}function pp(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Vb(e))return e;var n=$n(4|16777216&e.flags,e.escapedName,dc(e)|(t?8:0));return n.type=r?Je:Zo(e),n.declarations=e.declarations,n.nameType=ri(e).nameType,n.syntheticOrigin=e,n}function _p(e,t,r,n){var i=ya(e);return i.symbol=r,i.value=t,i.regularType=n||i,i}function fp(e){if(2944&e.flags){if(!e.freshType){var t=_p(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function mp(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Ag(e,mp)):e}function gp(e){return!!(2944&e.flags)&&e.freshType===e}function hp(e){var t;return be.get(e)||(be.set(e,t=_p(128,e)),t)}function yp(e){var t;return xe.get(e)||(xe.set(e,t=_p(256,e)),t)}function vp(t){var r,n=e.pseudoBigIntToString(t);return Ee.get(n)||(Ee.set(n,r=_p(2048,t)),r)}function bp(e,t,r){var n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return Se.get(i)||(Se.set(i,n=_p(a,e,r)),n)}function xp(t){if(e.isValidESSymbolDeclaration(t)){var r=e.isCommonJsExportPropertyAssignment(t)?la(t.left):la(t);if(r){var n=ri(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=(e=>{var t=ya(8192);return t.symbol=e,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(M(t.symbol)),t})(r))}}return at}function Ep(t){var r=ni(t);return r.resolvedType||(r.resolvedType=(t=>{var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||258===n.kind)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return ys(la(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return ys(la(n.parent.left).parent).thisType;var i=8388608&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?ys(la(i.parent.left).parent).thisType:$v(r)&&e.isNodeDescendantOf(t,r.body)?ys(la(r)).thisType:(Un(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),je)})(t)),r.resolvedType}function Sp(e){return Tp(Dp(e.type)||e.type)}function Dp(e){switch(e.kind){case 191:return Dp(e.type);case 184:if(1===e.elements.length&&(186===(e=e.elements[0]).kind||197===e.kind&&e.dotDotDotToken))return Dp(e.type);break;case 183:return e.elementType}}function Tp(e){return pu(Cp(e),e)}function Cp(t){switch(t.kind){case 130:case 312:case 313:return Re;case 155:return ze;case 150:return Ye;case 147:return Qe;case 158:return Ze;case 133:return it;case 151:return at;case 114:return ot;case 153:return Je;case 104:return qe;case 143:return st;case 148:return 262144&t.flags&&!Z?Re:pt;case 138:return Ke;case 192:case 108:return Ep(t);case 196:return(e=>{if(104===e.literal.kind)return qe;var t=ni(e);return t.resolvedType||(t.resolvedType=mp(Tx(e.literal))),t.resolvedType})(t);case 178:return gu(t);case 177:return t.assertsModifier?ot:it;case 228:return gu(t);case 181:return yu(t);case 183:case 184:return(t=>{var r=ni(t);if(!r.resolvedType){var n=(t=>{var r=(t=>e.isTypeOperatorNode(t)&&145===t.operator)(t.parent);return Dp(t)?r?zt:Kt:Ju(e.map(t.elements,ju),r,e.some(t.elements,(e=>197!==e.kind))?void 0:t.elements)})(t);if(n===kt)r.resolvedType=St;else if(184===t.kind&&e.some(t.elements,(e=>!!(8&ju(e))))||!Vu(t)){var i=183===t.kind?[Tp(t.elementType)]:e.map(t.elements,Tp);r.resolvedType=Hu(n,i)}else r.resolvedType=184===t.kind&&0===t.elements.length?n:Zl(n,t,void 0)}return r.resolvedType})(t);case 185:return(e=>To(Tp(e.type),!0))(t);case 187:return(t=>{var r=ni(t);if(!r.resolvedType){var n=ap(t);r.resolvedType=ad(e.map(t.types,Tp),1,n,op(n))}return r.resolvedType})(t);case 188:return(t=>{var r=ni(t);if(!r.resolvedType){var n=ap(t);r.resolvedType=_d(e.map(t.types,Tp),n,op(n))}return r.resolvedType})(t);case 314:return(e=>{var t=Tp(e.type);return q?Lf(t,65536):t})(t);case 316:return To(Tp(t.type));case 197:return(e=>{var t=ni(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Sp(e):To(Tp(e.type),!0,!!e.questionToken))})(t);case 191:case 315:case 309:return Tp(t.type);case 186:return Sp(t);case 318:return(t=>{var r=Tp(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return Bu(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?Bu(r):To(r)})(t);case 179:case 180:case 182:case 322:case 317:case 323:return ip(t);case 193:return(t=>{var r=ni(t);if(!r.resolvedType)switch(t.operator){case 140:r.resolvedType=xd(Tp(t.type));break;case 154:r.resolvedType=151===t.type.kind?xp(e.walkUpParenthesizedTypes(t.parent)):je;break;case 145:r.resolvedType=Tp(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType})(t);case 194:return Wd(t);case 195:return Jd(t);case 189:return(t=>{var r=ni(t);if(!r.resolvedType){var n=Tp(t.checkType),i=ap(t),a=op(i),o=as(t,!0),s=a?o:e.filter(o,(e=>zp(e,t))),c={node:t,checkType:n,extendsType:Tp(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:ep(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Yd(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(Gl(s),r.resolvedType))}return r.resolvedType})(t);case 190:return(e=>{var t=ni(e);return t.resolvedType||(t.resolvedType=Cs(la(e.typeParameter))),t.resolvedType})(t);case 198:return(t=>{var r=ni(t);return r.resolvedType||(r.resolvedType=Sd(f([t.head.text],e.map(t.templateSpans,(e=>e.literal.text)),!0),e.map(t.templateSpans,(e=>Tp(e.type))))),r.resolvedType})(t);case 200:return rp(t);case 79:case 161:case 206:var r=aD(t);return r?ks(r):je;default:return je}}function kp(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function Ap(e,t){return kp(e,t,Xp)}function Np(e,t){return kp(e,t,Vp)}function wp(e,t){return kp(e,t,e_)}function Fp(e,t){return 1===e.length?Ip(e[0],t?t[0]:Re):((e,t)=>({kind:1,sources:e,targets:t}))(e,t)}function Pp(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Re;return e;case 2:return t.func(e);case 3:case 4:var a=Pp(e,t.mapper1);return a!==e&&3===t.kind?Xp(a,t.mapper2):Pp(a,t.mapper2)}}function Ip(e,t){return{kind:0,source:e,target:t}}function Op(e){return{kind:2,func:e}}function Mp(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Rp(e){return Fp(e,void 0)}function Lp(e,t){return e?Mp(3,e,t):t}function Bp(e,t,r){return r?Mp(4,Ip(e,t),r):Ip(e,t)}function jp(e,t,r){return e?Mp(4,e,Ip(t,r)):Ip(t,r)}function Up(e){var t=Ea(e.symbol);return t.target=e,t}function Vp(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,Up),r=Lp(Fp(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=qs(t.declaration,i,t.thisParameter&&Kp(t.thisParameter,r),kp(t.parameters,r,Kp),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function Kp(t,r){var n=ri(t);if(n.type&&!hm(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=Lp(n.mapper,r));var i=$n(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function zp(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||235===i.kind||189===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(r)}return!0;function a(r){switch(r.kind){case 192:return!!t.isThisType;case 79:return!t.isThisType&&e.isPartOfTypeNode(r)&&(e=>!(178===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||200===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier))(r)&&Cp(r)===t;case 181:return!0;case 169:case 168:return!r.type&&!!r.body||e.some(r.typeParameters,a)||e.some(r.parameters,a)||!!r.type&&a(r.type)}return!!e.forEachChild(r,a)}}function Wp(e){var t=fc(e);if(4194304&t.flags){var r=Hd(t.type);if(262144&r.flags)return r}}function Jp(t,r,n,i){var a=Wp(t);if(a){var o=Xp(a,r);if(a!==o)return Ng($c(o),(n=>{if(61603843&n.flags&&n!==Be&&!_o(n)){if(!t.declaration.nameType){var i=void 0;if(sf(n)||1&n.flags&&oo(a,4)<0&&(i=wc(a))&&Dg(i,lf))return((e,t,r)=>{var n=$p(t,Qe,!0,r);return _o(n)?je:Bu(n,Hp(cf(e),bc(t)))})(n,t,Bp(a,n,r));if(Af(n))return((t,r,n,i)=>{var a=t.target.elementFlags,o=e.map(eu(t),((e,t)=>{var o=8&a[t]?e:4&a[t]?Bu(e):Wu([e],[a[t]]);return Jp(r,Bp(n,o,i))})),s=Hp(t.target.readonly,bc(r));return Wu(o,e.map(o,(e=>8)),s)})(n,t,a,r);if(kf(n))return((t,r,n)=>{var i=t.target.elementFlags,a=e.map(eu(t),((e,t)=>$p(r,hp(""+t),!!(2&i[t]),n))),o=bc(r),s=4&o?e.map(i,(e=>1&e?2:e)):8&o?e.map(i,(e=>2&e?1:e)):i,c=Hp(t.target.readonly,o);return e.contains(a,je)?je:Wu(a,s,c,t.target.labeledElementDeclarations)})(n,t,Bp(a,n,r))}return Gp(t,Bp(a,n,r))}return n}),n,i)}return Xp(fc(t),r)===Be?Be:Gp(t,r,n,i)}function Hp(e,t){return!!(1&t)||!(2&t)&&e}function $p(e,t,r,n){var i=jp(n,_c(e),t),a=Xp(gc(e.target||e),i),o=bc(e);return q&&4&o&&!Hb(a,49152)?Bf(a,!0):q&&8&o&&r?ag(a,524288):a}function Gp(e,t,r,n){var i=xa(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=_c(e),o=Up(a);i.typeParameter=o,t=Lp(Ip(a,o),t),o.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:Ap(e.aliasTypeArguments,t),i}function qp(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(e=>Pp(e,r))),s=Gl(o)+ql(n,i),c=a.instantiations.get(s);if(!c){var l=Fp(a.outerTypeParameters,o),u=a.checkType,d=a.isDistributive?Pp(u,l):void 0;c=d&&u!==d&&1179648&d.flags?Ng($c(d),(e=>Yd(a,Bp(u,e,l))),n,i):Yd(a,l,n,i),a.instantiations.set(s,c)}return c}return t}function Xp(e,t){return e&&t?Yp(e,t,void 0,void 0):e}function Yp(t,r,n,i){if(!hm(t))return t;if(100===k||C>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:k,instantiationCount:C}),Un(s,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),je;T++,C++,k++;var a=((t,r,n,i)=>{var a=t.flags;if(262144&a)return Pp(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=Ap(s,r);return c!==s?Hu(t.target,c):t}return 1024&o?((t,r)=>{var n=Xp(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=Xp(t.constraintType,r);return 4194304&i.flags&&bm(Xp(t.source,r),n,i)||t})(t,r):((t,r,n,i)=>{var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=ni(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=as(a,!0);if($v(a)){var u=dl(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(t=>e.some(d,(e=>zp(t,e))))):c,o.outerTypeParameters=c}if(c.length){var p=Lp(t.mapper,r),_=e.map(c,(e=>Pp(e,p))),f=n||t.aliasSymbol,m=n?i:Ap(t.aliasTypeArguments,r),g=Gl(_)+ql(f,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Gl(c)+ql(s.aliasSymbol,s.aliasTypeArguments),s));var h=s.instantiations.get(g);if(!h){var y=Fp(c,_);h=4&s.objectFlags?Zl(t.target,t.node,y,f,m):32&s.objectFlags?Jp(s,y,f,m):Gp(s,y,f,m),s.instantiations.set(g,h)}return h}return t})(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=Ap(u,r);if(d===u&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:Ap(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?_d(d,p,_):ad(d,1,p,_)}if(4194304&a)return xd(Xp(t.type,r));if(134217728&a)return Sd(t.texts,Ap(t.types,r));if(268435456&a)return Td(t.symbol,Xp(t.type,r));if(8388608&a)return p=n||t.aliasSymbol,_=n?i:Ap(t.aliasTypeArguments,r),Vd(Xp(t.objectType,r),Xp(t.indexType,r),t.accessFlags,void 0,p,_);if(16777216&a)return qp(t,Lp(t.mapper,r),n,i);if(33554432&a){var f=Xp(t.baseType,r);if(8650752&f.flags)return lu(f,Xp(t.substitute,r));var m=Xp(t.substitute,r);return 3&m.flags||u_(Zp(f),Zp(m))?f:m}return t})(t,r,n,i);return k--,a}function Qp(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Xp(e,bt))}function Zp(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Xp(e,vt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function e_(e,t){return Ul(e.keyType,Xp(e.type,t),e.isReadonly,e.declaration)}function t_(t){switch(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 213:case 214:case 169:case 256:return r_(t);case 205:return e.some(t.properties,t_);case 204:return e.some(t.elements,t_);case 222:return t_(t.whenTrue)||t_(t.whenFalse);case 221:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(t_(t.left)||t_(t.right));case 296:return t_(t.initializer);case 212:return t_(t.expression);case 286:return e.some(t.properties,t_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,t_);case 285:var r=t.initializer;return!!r&&t_(r);case 288:var n=t.expression;return!!n&&t_(n)}return!1}function r_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!So(t))&&(e.hasContextSensitiveParameters(t)||(t=>!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&235!==t.body.kind&&t_(t.body))(t))}function n_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&r_(t)}function i_(t){if(524288&t.flags){var r=Dc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=xa(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return _d(e.map(t.types,i_));return t}function a_(e,t){return P_(e,t,Fn)}function o_(e,t){return P_(e,t,Fn)?-1:0}function s_(e,t){return P_(e,t,Nn)?-1:0}function c_(e,t){return P_(e,t,kn)?-1:0}function l_(e,t){return P_(e,t,kn)}function u_(e,t){return P_(e,t,Nn)}function d_(t,r){return 1048576&t.flags?e.every(t.types,(e=>d_(e,r))):1048576&r.flags?e.some(r.types,(e=>d_(t,e))):58982400&t.flags?d_(Mc(t)||ze,r):r===Bt?!!(67633152&t.flags):r===jt?!!(524288&t.flags)&&ng(t):ns(t,rs(r))||sf(r)&&!cf(r)&&d_(t,zt)}function p_(e,t){return P_(e,t,wn)}function __(e,t){return p_(e,t)||p_(t,e)}function f_(e,t,r,n,i,a){return M_(e,t,Nn,r,n,i,a)}function m_(e,t,r,n,i,a){return g_(e,t,Nn,r,n,i,a,void 0)}function g_(e,t,r,n,i,a,o,s){return!!P_(e,t,r)||(!n||!y_(i,e,t,r,a,o,s))&&M_(e,t,r,n,a,o,s)}function h_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,h_))}function y_(t,r,n,i,a,o,s){if(!t||h_(n))return!1;if(!M_(r,n,i,void 0)&&((t,r,n,i,a,o,s)=>{for(var c=el(r,0),l=el(r,1),u=0,d=[l,c];u<d.length;u++){var p=d[u];if(e.some(p,(e=>{var t=Al(e);return!(131073&t.flags)&&M_(t,n,i,void 0)}))){var _=s||{};f_(r,n,t,a,o,_);var f=_.errors[_.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,p===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1})(t,r,n,i,a,o,s))return!0;switch(t.kind){case 288:case 212:return y_(t.expression,r,n,i,a,o,s);case 221:switch(t.operatorToken.kind){case 63:case 27:return y_(t.right,r,n,i,a,o,s)}break;case 205:return function(t,r,n,i,a,o){return!(131068&n.flags)&&x_(function(t){var r,n,i,a;return h(this,(o=>{switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=vd(la(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 173:case 172:case 169:case 297:return[3,2];case 296:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,o,s);case 204:return((e,t,r,n,i,a)=>{if(131068&r.flags)return!1;if(gf(t))return x_(S_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=zh(e,1,!0);return e.contextualType=o,!!gf(s)&&x_(S_(e,r),s,r,n,i,a)}finally{e.contextualType=o}})(t,r,n,i,o,s);case 286:return function(t,r,n,i,a,o){var s,c=x_(function(t){var r,n,i;return h(this,(a=>{switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)||Yh(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:hp(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,a,o);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var l=t.parent.parent,u=sy(ay(t)),d=void 0===u?"children":e.unescapeLeadingUnderscores(u),p=hp(d),_=Vd(n,p),f=e.getSemanticJsxChildren(l.children);if(!e.length(f))return c;var g=e.length(f)>1,y=Tg(_,hf),v=Tg(_,(e=>!hf(e)));if(g){if(y!==st){var b=Wu(ey(l,0));c=x_(function(t,r){var n,i,a,o,s;return h(this,(c=>{switch(c.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,c.label=1;case 1:return i<t.children.length?(a=t.children[i],o=yp(i-n),(s=E_(a,o,r))?[4,s]:[3,3]):[3,5];case 2:return c.sent(),[3,4];case 3:n++,c.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(l,S),b,y,i,a,o)||c}else if(!P_(Vd(r,p),_,i)){c=!0;var x=Un(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,Ja(_));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(x)}}else if(v!==st){var E=E_(f[0],p,S);E&&(c=x_(function(){return h(this,(e=>{switch(e.label){case 0:return[4,E];case 1:return e.sent(),[2]}}))}(),r,n,i,a,o)||c)}else P_(Vd(r,p),_,i)||(c=!0,x=Un(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,Ja(_)),o&&o.skipLogging&&(o.errors||(o.errors=[])).push(x))}return c;function S(){if(!s){var r=e.getTextOfNode(t.parent.tagName),i=sy(ay(t)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),o=Vd(n,hp(a)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;s=m(m({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,a,Ja(o))})}return s}}(t,r,n,i,o,s);case 214:return((t,r,n,i,a,o)=>{if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=_v(r);if(!s)return!1;var c=el(n,0);if(!e.length(c))return!1;var l=t.body,u=Al(s),d=ad(e.map(c,Al));if(!M_(u,d,i,void 0)){var p=l&&y_(l,u,d,i,void 0,a,o);if(p)return p;var _=o||{};if(M_(u,d,i,l,void 0,a,_),_.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!uo(u,"then")&&M_(kb(u),d,i,void 0)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1})(t,r,n,i,o,s)}return!1}function v_(e,t,r){var n=zd(t,r);if(n)return n;if(1048576&t.flags){var i=j_(e,t);if(i)return zd(i,r)}}function b_(e,t){e.contextualType=t;try{return _x(e,1,t)}finally{e.contextualType=void 0}}function x_(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var l=c.value,u=l.errorNode,d=l.innerExpression,p=l.nameType,_=l.errorMessage,f=v_(r,n,p);if(f&&!(8388608&f.flags)){var m=zd(r,p);if(m){var g=kd(p,void 0);if(!M_(m,f,i,void 0)&&(s=!0,!d||!y_(d,m,f,i,void 0,a,o))){var h=o||{},y=d?b_(d,m):m;if(ie&&B_(y,f)){var v=e.createDiagnosticForNode(u,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ja(y),Ja(f));Sn.add(v),h.errors=[v]}else{var b=!!(g&&16777216&(Qc(n,g)||Pe).flags),x=!!(g&&16777216&(Qc(r,g)||Pe).flags);f=Wf(f,b),m=Wf(m,b&&x),M_(y,f,i,u,_,a,h)&&y!==m&&M_(m,f,i,u,_,a,h)}if(h.errors){var E=h.errors[h.errors.length-1],S=Ls(p)?Ks(p):void 0,D=void 0!==S?Qc(n,S):void 0,T=!1;if(!D){var C=ll(n,p);C&&C.declaration&&!e.getSourceFileOfNode(C.declaration).hasNoDefaultLib&&(T=!0,e.addRelatedInfo(E,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!T&&(D&&e.length(D.declarations)||n.symbol&&e.length(n.symbol.declarations))){var k=D&&e.length(D.declarations)?D.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(k).hasNoDefaultLib||e.addRelatedInfo(E,e.createDiagnosticForNode(k,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!S||8192&p.flags?Ja(p):e.unescapeLeadingUnderscores(S),Ja(n)))}}}}}}return s}function E_(t,r,n){switch(t.kind){case 288:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 278:case 279:case 282:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function S_(t,r){var n,i,a,o;return h(this,(s=>{switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?gf(r)&&!Qc(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=yp(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function D_(e,t,r,n,i){return M_(e,t,wn,r,n,i)}function T_(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(l=r).typeParameters&&(!l.thisParameter||po(cb(l.thisParameter)))&&1===l.parameters.length&&U(l)&&(cb(l.parameters[0])===qt||po(cb(l.parameters[0])))&&po(Al(l)))return-1;var l,u,d=hb(r);if(!vb(r)&&(8&n?vb(t)||hb(t)>d:yb(t)>d))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=gv(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=(t=>Pl(t,e.map(t.typeParameters,(e=>e.target&&!wc(e.target)?e.target:e)),e.isInJSFile(t.declaration)))(u)):u,void 0,s));var p=hb(t),_=xb(t),f=xb(r);(_||f)&&Xp(_||f,c);var m=r.declaration?r.declaration.kind:0,g=!(3&n)&&X&&169!==m&&168!==m&&171!==m,h=-1,y=Tl(t);if(y&&y!==ot){var v=Tl(r);if(v){if(!(T=!g&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=T}}for(var b=_||f?Math.min(p,d):Math.max(p,d),x=_||f?b-1:-1,E=0;E<b;E++){var S=E===x?gb(t,E):mb(t,E),D=E===x?gb(r,E):mb(r,E);if(S&&D){var T,C=3&n?void 0:_v(jf(S)),k=3&n?void 0:_v(jf(D));if((T=C&&k&&!Cl(C)&&!Cl(k)&&(98304&Of(S))==(98304&Of(D))?T_(k,C,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(S,D,!1)||s(D,S,i))&&8&n&&E>=yb(t)&&E<yb(r)&&s(S,D,!1)&&(T=0),!T)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(ub(t,E)),e.unescapeLeadingUnderscores(ub(r,E))),0;h&=T}}if(!(4&n)){var A=wl(r)?Re:r.declaration&&$v(r.declaration)?ys(ca(r.declaration.symbol)):Al(r);if(A===ot||A===Re)return h;var N=wl(t)?Re:t.declaration&&$v(t.declaration)?ys(ca(t.declaration.symbol)):Al(t),w=Cl(r);if(w){var F=Cl(t);if(F)h&=((t,r,n,i,a)=>{if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ya(t),Ya(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ya(t),Ya(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;return 0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ya(t),Ya(r)),o})(F,w,i,a,s);else if(e.isIdentifierTypePredicate(w))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,Wa(t)),0}else!(h&=1&n&&s(A,N,!1)||s(N,A,i))&&i&&o&&o(N,A)}return h}function C_(e){return e!==At&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function k_(t){return 524288&t.flags?!Sc(t)&&C_(Dc(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,k_):!!(2097152&t.flags)&&e.every(t.types,k_))}function A_(t){return!!(16&e.getObjectFlags(t)&&(t.members&&C_(t)||t.symbol&&2048&t.symbol.flags&&0===Js(t.symbol).size))}function N_(t){return 524288&t.flags&&!Sc(t)&&0===Ac(t).length&&1===al(t).length&&!!ol(t,Ye)||3145728&t.flags&&e.every(t.types,N_)||!1}function w_(t,r,n){if(t===r)return!0;var i=M(t)+","+M(r),a=Pn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return Pn.set(i,6),!1;for(var o=Zo(r),s=0,c=Ac(Zo(t));s<c.length;s++){var l=c[s];if(8&l.flags){var u=Qc(o,l.escapedName);if(!(u&&8&u.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Ja(ks(r),void 0,64)),Pn.set(i,6)):Pn.set(i,2),!1}}return Pn.set(i,1),!0}function F_(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===Be)return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&w_(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&w_(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&w_(ua(e.symbol),ua(t.symbol),n))return!0}if(32768&i&&(!q&&!(3145728&a)||49152&a))return!0;if(65536&i&&(!q&&!(3145728&a)||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===Nn||r===wn){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||r===Nn&&256&a&&1024&a))return!0}return!1}function P_(e,t,r){if(gp(e)&&(e=e.regularType),gp(t)&&(t=t.regularType),e===t)return!0;if(r!==Fn){if(r===wn&&!(131072&t.flags)&&F_(t,e,r)||F_(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(X_(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&M_(e,t,r,void 0)}function I_(t,r){return 2048&e.getObjectFlags(t)&&Yh(r.escapedName)}function O_(t,r){for(;;){var n=gp(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?Yl(t.target,eu(t)):3145728&t.flags?$c(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?Ld(t,r):t;if((n=_f(n)||n)===t)break;t=n}return t}function M_(t,r,n,i,a,c,l){var u,d,p,_,m,g,h,y=0,v=0,b=0,x=0,E=!1,S=0,D=!1;e.Debug.assert(n!==Fn||!i,"no error reporting in identity checking");var T=U(t,r,3,!!i,a);if(h&&M(),E){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:v,targetDepth:b});var C=Un(i||s,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Ja(t),Ja(r));l&&(l.errors||(l.errors=[])).push(C)}else if(u){if(c){var k=c();k&&(e.concatenateDiagnosticMessageChains(k,u),u=k)}var A=void 0;if(a&&i&&!T&&t.symbol){var N=ri(t.symbol);if(N.originatingImport&&!e.isImportCall(N.originatingImport)&&M_(Zo(N.target),r,n,void 0)){var F=e.createDiagnosticForNode(N.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);A=e.append(A,F)}}C=e.createDiagnosticForNodeFromMessageChain(i,u,A),d&&e.addRelatedInfo.apply(void 0,f([C],d,!1)),l&&(l.errors||(l.errors=[])).push(C),l&&l.skipLogging||Sn.add(C)}return i&&l&&l.skipLogging&&0===T&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==T;function P(e){u=e.errorInfo,g=e.lastSkippedInfo,h=e.incompatibleStack,S=e.overrideNextErrorInfo,d=e.relatedInfo}function I(){return{errorInfo:u,lastSkippedInfo:g,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:S,relatedInfo:null==d?void 0:d.slice()}}function O(e,t,r,n,i){S++,g=void 0,(h||(h=[])).push([e,t,r,n,i])}function M(){var t=h||[];h=void 0;var r=g;if(g=void 0,1===t.length)return R.apply(void 0,t[0]),void(r&&L.apply(void 0,f([void 0],r,!1)));for(var n="",i=[];t.length;){var a=t.pop(),o=a[0],s=a.slice(1);switch(o.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var c=""+s[0];n=0===n.length?"".concat(c):e.isIdentifierText(c,e.getEmitScriptTarget(W))?"".concat(n,".").concat(c):"["===c[0]&&"]"===c[c.length-1]?"".concat(n).concat(c):"".concat(n,"[").concat(c,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var l=o;o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([l,s[0],s[1]])}else{var u=o.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",d=o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(u).concat(n,"(").concat(d,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:i.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,s[0],s[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:i.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,s[0],s[1],s[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(o.code))}}n?R(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):i.shift();for(var p=0,_=i;p<_.length;p++){var m=_[p],y=(o=m[0],s=m.slice(1),o.elidedInCompatabilityPyramid);o.elidedInCompatabilityPyramid=!1,R.apply(void 0,f([o],s,!1)),o.elidedInCompatabilityPyramid=y}r&&L.apply(void 0,f([void 0],r,!1))}function R(t,r,n,a,o){e.Debug.assert(!!i),h&&M(),t.elidedInCompatabilityPyramid||(u=e.chainDiagnosticMessages(u,t,r,n,a,o))}function L(t,r,i){h&&M();var a=Ha(r,i),o=a[0],s=a[1],c=r,l=o;if(xf(r)&&!R_(i)&&(c=Ef(r),e.Debug.assert(!u_(c,i),"generalized source shouldn't be assignable"),l=$a(c)),262144&i.flags&&i!==Pt&&i!==It){var d=Mc(i),p=void 0;d&&(u_(c,d)||(p=u_(r,d)))?R(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:l,s,Ja(d)):(u=void 0,R(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}if(t)t===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ie&&L_(r,i).length&&(t=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===wn)t=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(o===s)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ie&&L_(r,i).length)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&r.flags&&1048576&i.flags){var _=((t,r)=>{var n=r.types.filter((e=>!!(128&e.flags)));return e.getSpellingSuggestion(t.value,n,(e=>e.value))})(r,i);if(_)return void R(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,l,s,Ja(_))}t=e.Diagnostics.Type_0_is_not_assignable_to_type_1}R(t,l,s)}function B(t,r,n){return kf(t)?t.target.readonly&&uf(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ja(t),Ja(r)),!1):lf(r):cf(t)&&uf(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ja(t),Ja(r)),!1):!kf(r)||sf(t)}function j(e,t,r){return U(e,t,3,r)}function U(t,r,a,o,s,c){if(void 0===a&&(a=3),void 0===o&&(o=!1),void 0===c&&(c=0),524288&t.flags&&131068&r.flags)return F_(t,r,n,o?R:void 0)?-1:(o&&V(t,r,t,r,s),0);var l=O_(t,!1),u=O_(r,!0);if(l===u)return-1;if(n===Fn)return l.flags!==u.flags?0:67358815&l.flags?-1:(K(l,u),G(l,u,!1,0,a));if(262144&l.flags&&Nc(l)===u)return-1;if(470302716&l.flags&&1048576&u.flags){var d=u.types,p=2===d.length&&98304&d[0].flags?d[1]:3===d.length&&98304&d[0].flags&&98304&d[1].flags?d[2]:void 0;if(p&&!(98304&p.flags)&&l===(u=O_(p,!0)))return-1}if(n===wn&&!(131072&u.flags)&&F_(u,l,n)||F_(l,u,n,o?R:void 0))return-1;if(469499904&l.flags||469499904&u.flags){var _=!(2&c)&&Mm(l)&&8192&e.getObjectFlags(l);if(_&&((t,r,a)=>{var o;if(!gy(r)||!Z&&4096&e.getObjectFlags(r))return!1;var s=!!(2048&e.getObjectFlags(t));if((n===Nn||n===wn)&&(xg(Bt,r)||!s&&k_(r)))return!1;var c,l=r;1048576&r.flags&&(l=CT(t,r,U)||(e=>{if(Hb(e,67108864)){var t=Tg(e,(e=>!(131068&e.flags)));if(!(131072&t.flags))return t}return e})(r),c=1048576&l.flags?l.types:[l]);for(var u=r=>{if(((e,t)=>e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration)(r,t.symbol)&&!I_(t,r)){if(!my(l,r.escapedName,s)){if(a){var n=Tg(l,gy);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(i=r.valueDeclaration.name);var u=za(r),d=Hy(u,n);(_=d?za(d):void 0)?R(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Ja(n),_):R(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Ja(n))}else{var p=(null===(o=t.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(t.symbol.declarations),_=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(e=>e===p))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(i)){var f=r.valueDeclaration;e.Debug.assertNode(f,e.isObjectLiteralElementLike),i=f;var m=f.name;e.isIdentifier(m)&&(_=$y(m,n))}void 0!==_?R(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,za(r),Ja(n),_):R(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,za(r),Ja(n))}}return{value:!0}}if(c&&!U(Zo(r),((t,r)=>ad(e.reduceLeft(t,((t,n)=>{var i,a=3145728&(n=Kc(n)).flags?Hc(n,r):Cc(n,r),o=a&&Zo(a)||(null===(i=ul(n,r))||void 0===i?void 0:i.type)||Je;return e.append(t,o)}),void 0)||e.emptyArray))(c,r.escapedName),3,a))return a&&O(e.Diagnostics.Types_of_property_0_are_incompatible,za(r)),{value:!0}}},d=0,p=Ac(t);d<p.length;d++){var _=u(p[d]);if("object"==typeof _)return _.value}return!1})(l,u,o))return o&&L(s,l,r.aliasSymbol?r:u),0;var f=n!==wn&&!(2&c)&&2752508&l.flags&&l!==Bt&&2621440&u.flags&&V_(u)&&(Ac(l).length>0||pD(l)),m=!!(2048&e.getObjectFlags(l));if(f&&!((e,t,r)=>{for(var n=0,i=Ac(e);n<i.length;n++)if(my(t,i[n].escapedName,r))return!0;return!1})(l,u,m)){if(o){var g=Ja(t.aliasSymbol?t:l),h=Ja(r.aliasSymbol?r:u),y=el(l,0),v=el(l,1);y.length>0&&U(Al(y[0]),u,1,!1)||v.length>0&&U(Al(v[0]),u,1,!1)?R(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,h):R(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,h)}return 0}K(l,u);var b=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?z(l,u,o,c):G(l,u,o,c,a);if(b&&!D&&(2097152&u.flags&&(_||f)||sp(u)&&!lf(u)&&2097152&l.flags&&3670016&Kc(l).flags&&!e.some(l.types,(t=>!!(262144&e.getObjectFlags(t)))))&&(D=!0,b&=G(l,u,o,4,a),D=!1),b)return b}return o&&V(t,r,l,u,s),0}function V(t,r,n,a,o){var s=!!_f(t),c=!!_f(r);n=t.aliasSymbol||s?t:n,a=r.aliasSymbol||c?r:a;var l=S>0;if(l&&S--,524288&n.flags&&524288&a.flags){var d=u;B(n,a,!0),u!==d&&(l=!!u)}if(524288&n.flags&&131068&a.flags)!((t,r)=>{var n=Ga(t.symbol)?Ja(t,t.symbol.valueDeclaration):Ja(t),i=Ga(r.symbol)?Ja(r,r.symbol.valueDeclaration):Ja(r);(Wt===t&&Ye===r||Jt===t&&Qe===r||Ht===t&&it===r||Nu()===t&&at===r)&&R(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)})(n,a);else if(n.symbol&&524288&n.flags&&Bt===n)R(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&a.flags){var p=a.types,_=ry(w.IntrinsicAttributes,i),f=ry(w.IntrinsicClassAttributes,i);if(!_o(_)&&!_o(f)&&(e.contains(p,_)||e.contains(p,f)))return}else u=Yc(u,r);o||!l?L(o,n,a):g=[n,a]}function K(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,a=r;if(n.objectFlags&a.objectFlags&32768)return;var o=n.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function z(t,r,i,a){if(1048576&t.flags)return n===wn?$(t,r,i&&!(131068&t.flags),a):((e,t,r,n)=>{for(var i=-1,a=e.types,o=((e,t)=>1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?wg(t,-32769):t)(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=U(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=U(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i})(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return H(qf(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return((e,t,r,n)=>{for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=U(e,o[a],2,r,void 0,2);if(!s)return 0;i&=s}return i})(qf(t),r,i);if(n===wn&&131068&r.flags){var o=e.sameMap(t.types,Rc);if(o!==t.types&&!(2097152&(t=_d(o)).flags))return U(t,r,1,!1)}return $(t,r,!1,1)}function J(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=H(i[n],t,!1);if(!a)return 0;r&=a}return r}function H(e,t,r){var n=t.types;if(1048576&t.flags){if(Zu(n,e))return-1;var i=Zm(t,e);if(i&&(s=U(e,i,2,!1)))return s}for(var a=0,o=n;a<o.length;a++){var s;if(s=U(e,o[a],2,!1))return s}if(r){var c=j_(e,t,U);c&&U(e,c,2,!0)}return 0}function $(e,t,r,n){var i=e.types;if(1048576&e.flags&&Zu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=U(i[o],t,1,r&&o===a-1,void 0,n);if(s)return s}return 0}function G(t,r,i,a,o){if(E)return 0;var s=a|(D?8:0),c=X_(t,r,s,n,!1),l=n.get(c);if(void 0!==l&&(!(i&&2&l)||4&l)){if(wr){var d=24&l;8&d&&Xp(t,Op(X)),16&d&&Xp(t,Op(Y))}return 1&l?-1:0}if(p){for(var g=c.startsWith("*")?X_(t,r,s,n,!0):void 0,h=0;h<y;h++)if(c===p[h]||g&&g===p[h])return 3;if(100===v||100===b)return E=!0,0}else p=[],_=[],m=[];var S=y;p[y]=c,y++;var T,C=x;1&o&&(_[v]=t,v++,1&x||!tf(t,_,v)||(x|=1)),2&o&&(m[b]=r,b++,2&x||!tf(r,m,b)||(x|=2));var k,A=0;if(wr&&(T=wr,wr=e=>(A|=e?16:8,T(e))),3===x?(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:_.map((e=>e.id)),targetId:r.id,targetIdStack:m.map((e=>e.id)),depth:v,targetDepth:b}),k=3):(null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id}),k=((t,r,i,a)=>{if(4&a)return te(t,r,i,void 0,0);var o,s,c,l,d=!1,p=I(),g=t.flags,h=r.flags;if(n===Fn){if(3145728&g){var y=J(t,r);return y&&(y&=J(r,t)),y}if(4194304&g)return U(t.type,r.type,3,!1);if(8388608&g&&(o=U(t.objectType,r.objectType,3,!1))&&(o&=U(t.indexType,r.indexType,3,!1)))return o;if(16777216&g&&t.root.isDistributive===r.root.isDistributive&&(o=U(t.checkType,r.checkType,3,!1))&&(o&=U(t.extendsType,r.extendsType,3,!1))&&(o&=U(Qd(t),Qd(r),3,!1))&&(o&=U(Zd(t),Zd(r),3,!1)))return o;if(33554432&g)return U(t.substitute,r.substitute,3,!1);if(!(524288&g))return 0}else if(3145728&g||3145728&h){if(o=z(t,r,i,a))return o;if((2097152&t.flags||262144&t.flags&&1048576&r.flags)&&(ie=((t,r)=>{for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(u=o[a]).flags){for(var s=Nc(u);s&&21233664&s.flags;)s=Nc(s);s&&(n=e.append(n,s),r&&(n=e.append(n,u)))}else 469892092&u.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,l=t;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(n=e.append(n,u))}return _d(n)}})(2097152&t.flags?t.types:[t],!!(1048576&r.flags)))&&Dg(ie,(e=>e!==t))&&(o=U(ie,r,1,!1,void 0,a)))return P(p),o;if(!(465829888&g||524288&g&&1048576&h||2097152&g&&467402752&h))return 0}if(17301504&g&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!H_(t)&&!H_(r)){if((_e=z_(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(fe=ve(t.aliasTypeArguments,r.aliasTypeArguments,_e,a)))return fe}if(Nf(t)&&!t.target.readonly&&(o=U(eu(t)[0],r,1))||Nf(r)&&(r.target.readonly||uf(Mc(t)||t))&&(o=U(t,eu(r)[0],2)))return o;if(262144&h){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&U(xd(r),fc(t),3)&&!(4&bc(t))){var x=gc(t),E=Vd(r,_c(t));if(o=U(x,E,3,i))return o}}else if(4194304&h){var S=r.type;if(4194304&g&&(o=U(S,t.type,3,!1)))return o;if(kf(S)){if(o=U(t,qu(S),2,i))return o}else if(ie=Fc(S)){if(-1===U(t,xd(ie,r.stringsOnly),2,i))return-1}else if(Sc(S)){var D=mc(S),T=fc(S),C=void 0;if(D&&yc(S)){var k=Kc(vc(S)),A=[];pc(k,8576,!1,(e=>{A.push(Xp(D,jp(S.mapper,_c(S),e)))})),C=ad(f(f([],A,!0),[D],!1))}else C=D||T;if(-1===U(t,C,2,i))return-1}}else if(8388608&h){if(8388608&g){if((o=U(t.objectType,r.objectType,3,i))&&(o&=U(t.indexType,r.indexType,3,i)),o)return P(p),o;i&&(s=u)}if(n===Nn||n===wn){var N=r.objectType,w=r.indexType,F=Mc(N)||N,O=Mc(w)||w;if(!Od(F)&&!Md(O)&&(ie=zd(F,O,4|(F!==N?2:0)))){if(i&&s&&P(p),o=U(t,ie,2,i))return o;i&&s&&u&&(u=ye([s])<=ye([u])?s:u)}}i&&(s=void 0)}else if(Sc(r)&&n!==Fn){var M=!!r.declaration.nameType,R=(x=gc(r),bc(r));if(!(8&R)){if(!M&&8388608&x.flags&&x.objectType===t&&x.indexType===_c(r))return-1;if(!Sc(t)){C=M?mc(r):fc(r);var L=xd(t,void 0,!0),B=4&R,V=B?ac(C,L):void 0;if(B?!(131072&V.flags):U(C,L,3)){var K=gc(r),W=_c(r),H=wg(K,-98305);if(!M&&8388608&H.flags&&H.indexType===W){if(o=U(t,H.objectType,2,i))return o}else{var $=M?V||C:V?_d([V,W]):W;if(E=Vd(t,$),o=U(E,K,3,i))return o}}s=u,P(p)}}}else if(16777216&h){if(tf(r,m,b,10))return P(p),3;var G=r;if(!(G.root.inferTypeParameters||(c=G.root).isDistributive&&(zp(c.checkType,c.node.trueType)||zp(c.checkType,c.node.falseType)))){var Q=!u_(Qp(G.checkType),Qp(G.extendsType)),Z=!Q&&u_(Zp(G.checkType),Zp(G.extendsType));if((o=Q?-1:U(t,Qd(G),2,!1))&&(o&=Z?-1:U(t,Zd(G),2,!1)))return P(p),o}}else if(134217728&h){if(134217728&g){if(n===wn)return((e,t)=>{var r=e.texts[0],n=t.texts[0],i=e.texts[e.texts.length-1],a=t.texts[t.texts.length-1],o=Math.min(r.length,n.length),s=Math.min(i.length,a.length);return r.slice(0,o)!==n.slice(0,o)||i.slice(i.length-s)!==a.slice(a.length-s)})(t,r)?0:-1;Xp(t,Op(Y))}if(Nm(t,r))return-1}if(8650752&g){if(!(8388608&g&&8388608&h)){if(!(ie=Nc(t))||262144&g&&1&ie.flags){if(o=U(St,wg(r,-67108865),3))return P(p),o}else{if(o=U(ie,r,1,!1,void 0,a))return P(p),o;if(o=U($s(ie,t),r,1,i&&!(h&g&262144),void 0,a))return P(p),o}if(Vc(t)){var ne=Nc(t.indexType);if(ne&&(o=U(Vd(t.objectType,ne),r,1,i)))return P(p),o}}}else if(4194304&g){if(o=U(mt,r,1,i))return P(p),o}else if(134217728&g&&!(524288&h)){if(!(134217728&h)&&(ie=Mc(t))&&ie!==t&&(o=U(ie,r,1,i)))return P(p),o}else if(268435456&g){var ie;if(268435456&h&&t.symbol===r.symbol){if(o=U(t.type,r.type,3,i))return P(p),o}else if((ie=Mc(t))&&(o=U(ie,r,1,i)))return P(p),o}else if(16777216&g){if(tf(t,_,v,10))return P(p),3;if(16777216&h){var ae=t.root.inferTypeParameters,oe=t.extendsType,se=void 0;if(ae){var le=cm(ae,void 0,0,j);Pm(le.inferences,r.extendsType,oe,1536),oe=Xp(oe,le.mapper),se=le.mapper}if(a_(oe,r.extendsType)&&(U(t.checkType,r.checkType,3)||U(r.checkType,t.checkType,3))&&((o=U(Xp(Qd(t),se),Qd(r),3,i))&&(o&=U(Zd(t),Zd(r),3,i)),o))return P(p),o}else{var ue=Lc(t)?Ic(t):void 0;if(ue&&(o=U(ue,r,1,i)))return P(p),o}var de=Pc(t);if(de&&(o=U(de,r,1,i)))return P(p),o}else{if(n!==kn&&n!==An&&(l=r,32&e.getObjectFlags(l)&&4&bc(l))&&k_(t))return-1;if(Sc(r))return Sc(t)&&(o=((e,t,r)=>{var i;if((n===wn||(n===Fn?bc(e)===bc(t):Ec(e)<=Ec(t)))&&(i=U(fc(t),Xp(fc(e),Op(Ec(e)<0?X:Y)),3,r))){var a=Fp([_c(e)],[_c(t)]);if(Xp(mc(e),a)===Xp(mc(t),a))return i&U(Xp(gc(e),a),gc(t),3,r)}return 0})(t,r,i))?(P(p),o):0;var pe=!!(131068&g);if(n!==Fn)g=(t=Kc(t)).flags;else if(Sc(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!kf(t)&&!H_(t)&&!H_(r)){if(mf(t))return-1;var _e,fe;if((_e=K_(t.target))===e.emptyArray)return 1;if(void 0!==(fe=ve(eu(t),eu(r),_e,a)))return fe}else{if(cf(r)?lf(t):sf(r)&&kf(t)&&!t.target.readonly)return n!==Fn?U(sl(t,Qe)||Re,sl(r,Qe)||Re,3,i):0;if((n===kn||n===An)&&k_(r)&&8192&e.getObjectFlags(r)&&!k_(t))return 0}if(2621440&g&&524288&h){var me=i&&u===p.errorInfo&&!pe;if((o=te(t,r,me,void 0,a))&&(o&=re(t,r,0,me))&&(o&=re(t,r,1,me))&&(o&=ce(t,r,pe,me,a)),d&&o)u=s||u||p.errorInfo;else if(o)return o}if(2621440&g&&1048576&h){var ge=wg(r,36175872);if(1048576&ge.flags){var he=((t,r)=>{var i=Xm(Ac(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=kg(es(d=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u<i.length;u++){var d,p=es(d=i[u]);c[u]=1048576&p.flags?p.types:[p],l.add(d.escapedName)}for(var _=e.cartesianProduct(c),f=[],m=a=>{var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var l=c[s],u=e=>{var o=i[e],s=Qc(l,o.escapedName);return s?o===s?"continue":ee(t,r,o,s,(t=>a[e]),!1,0,q||n===wn)?void 0:"continue-outer":"continue-outer"},d=0;d<i.length;d++)switch(u(d)){case"continue-outer":continue e}e.pushIfUnique(f,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,h=_;g<h.length;g++){var y=m(h[g]);if("object"==typeof y)return y.value}for(var v=-1,b=0,x=f;b<x.length;b++){var E=x[b];if((v&=te(t,E,!1,l,0))&&(v&=re(t,E,0,!1))&&(!(v&=re(t,E,1,!1))||kf(t)&&kf(E)||(v&=ce(t,E,!1,!1,0))),!v)return v}return v})(t,ge);if(he)return he}}}return 0;function ye(t){return t?e.reduceLeft(t,((e,t)=>e+1+ye(t.next)),0):0}function ve(t,r,a,c){if(o=((t,r,i,a,o)=>{if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===Fn)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,l=0;l<s;l++){var u=l<i.length?i[l]:1,d=7&u;if(4!==d){var p=t[l],_=r[l],f=-1;if(8&u?f=n===Fn?U(p,_,3,!1):o_(p,_):1===d?f=U(p,_,3,a,void 0,o):2===d?f=U(_,p,3,a,void 0,o):3===d?(f=U(_,p,3,!1))||(f=U(p,_,3,a,void 0,o)):(f=U(p,_,3,a,void 0,o))&&(f&=U(_,p,3,a,void 0,o)),!f)return 0;c&=f}}return c})(t,r,a,i,c))return o;if(e.some(a,(e=>!!(24&e))))return s=void 0,void P(p);var l=r&&((e,t)=>{for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1})(r,a);if(d=!l,a!==e.emptyArray&&!l){if(d&&(!i||!e.some(a,(e=>0==(7&e)))))return 0;s=u,P(p)}}})(t,r,i,a),null===e.tracing||void 0===e.tracing||e.tracing.pop()),wr&&(wr=T),1&o&&v--,2&o&&b--,x=C,k){if(-1===k||0===v&&0===b){if(-1===k||3===k)for(h=S;h<y;h++)n.set(p[h],1|A);y=S}}else n.set(c,2|(i?4:0)|A),y=S;return k}function X(e){return!wr||e!==Pt&&e!==It&&e!==Fr||wr(!1),e}function Y(e){return!wr||e!==Pt&&e!==It&&e!==Fr||wr(!0),e}function Q(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function ee(t,r,i,a,o,s,c,l){var u=e.getDeclarationModifierFlagsFromSymbol(i),d=e.getDeclarationModifierFlagsFromSymbol(a);if(8&u||8&d){if(i.valueDeclaration!==a.valueDeclaration)return s&&(8&u&&8&d?R(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,za(a)):R(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,za(a),Ja(8&u?t:r),Ja(8&u?r:t))),0}else if(16&d){if(!((t,r)=>!Y_(r,(r=>{return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=Q_(r),!Y_(n,(e=>{var t=Q_(e);return!!t&&ns(t,i)})));var n,i})))(i,a))return s&&R(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,za(a),Ja(Q_(i)||t),Ja(Q_(a)||r)),0}else if(16&u)return s&&R(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,za(a),Ja(t),Ja(r)),0;if(n===An&&Vb(i)&&!Vb(a))return 0;var p=((t,r,n,i,a)=>{var o=q&&!!(48&e.getCheckFlags(r)),s=To(es(r),!1,o);return U(n(t),s,3,i,void 0,a)})(i,a,o,s,c);return p?l||!(16777216&i.flags)||16777216&a.flags?p:(s&&R(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,za(a),Ja(t),Ja(r)),0):(s&&O(e.Diagnostics.Types_of_property_0_are_incompatible,za(a)),0)}function te(t,r,i,s,c){if(n===Fn)return((e,t,r)=>{if(!(524288&e.flags&&524288&t.flags))return 0;var n=Q(Tc(e),r),i=Q(Tc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],l=Cc(t,c.escapedName);if(!l)return 0;var u=nf(c,l,U);if(!u)return 0;a&=u}return a})(t,r,s);var l=-1;if(kf(r)){if(lf(t)){if(!r.target.readonly&&(cf(t)||kf(t)&&t.target.readonly))return 0;var p=tu(t),_=tu(r),m=kf(t)?4&t.target.combinedFlags:4,g=4&r.target.combinedFlags,h=kf(t)?t.target.minLength:0,y=r.target.minLength;if(!m&&p<y)return i&&R(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,p,y),0;if(!g&&_<h)return i&&R(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,h,_),0;if(!g&&(m||_<p))return i&&(h<y?R(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,y):R(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,_)),0;for(var v=eu(t),b=eu(r),x=Math.min(kf(t)?Xu(t.target,11):0,Xu(r.target,11)),E=Math.min(kf(t)?Yu(t.target,11):0,g?Yu(r.target,11):0),D=!!s,T=0;T<_;T++){var C=T<_-E?T:T+p-_,k=kf(t)&&(T<x||T>=_-E)?t.target.elementFlags[C]:4,A=r.target.elementFlags[T];if(8&A&&!(8&k))return i&&R(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&k&&!(12&A))return i&&R(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&A&&!(1&k))return i&&R(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(D&&((12&k||12&A)&&(D=!1),D&&(null==s?void 0:s.has(""+T))))){var N=kf(t)?T<x||T>=_-E?Wf(v[C],!!(k&A&2)):Ff(t,x,E)||st:v[0],w=b[T];if(!(H=U(N,8&k&&4&A?Bu(w):Wf(w,!!(2&A)),3,i,void 0,c)))return i&&(_>1||p>1)&&(T<x||T>=_-E||p-x-E==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,x,p-E-1,T)),0;l&=H}}return l}if(12&r.target.combinedFlags)return 0}var F=!(n!==kn&&n!==An||Mm(t)||mf(t)||kf(t)),P=Dm(t,r,F,!1);if(P)return i&&((e,t)=>{var r=Zc(e,0),n=Zc(e,1),i=Tc(e);return!((r.length||n.length)&&!i.length&&!(el(t,0).length&&r.length||el(t,1).length&&n.length))})(t,r)&&((t,r,n,i)=>{var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,l=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(l&&Qc(t,l)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),_=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void R(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,fi(c),fi(""===p.escapedText?o:p),fi(""===_.escapedText?o:_))}}var m,g=e.arrayFrom(Sm(t,r,i,!1));if((!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===g.length){var h=za(n);R.apply(void 0,f([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,h],Ha(t,r),!1)),e.length(n.declarations)&&(m=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,h),e.Debug.assert(!!u),d?d.push(m):d=[m]),s&&u&&S++}else B(t,r,!1)&&(g.length>5?R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ja(t),Ja(r),e.map(g.slice(0,4),(e=>za(e))).join(", "),g.length-4):R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ja(t),Ja(r),e.map(g,(e=>za(e))).join(", ")),s&&u&&S++)})(t,r,P,F),0;if(Mm(r))for(var I=0,M=Q(Ac(t),s);I<M.length;I++)if(!(Cc(r,(z=M[I]).escapedName)||32768&(N=Zo(z)).flags))return i&&R(e.Diagnostics.Property_0_does_not_exist_on_type_1,za(z),Ja(r)),0;for(var L=Ac(r),j=kf(t)&&kf(r),V=0,K=Q(L,s);V<K.length;V++){var z,W=K[V],J=W.escapedName;if(!(4194304&W.flags)&&(!j||e.isNumericLiteralName(J)||"length"===J)&&(z=Qc(t,J))&&z!==W){var H;if(!(H=ee(t,r,z,W,es,i,c,n===wn)))return 0;l&=H}}return l}function re(t,r,i,a){var o,s;if(n===Fn)return((e,t,r)=>{var n=el(e,r),i=el(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=af(n[o],i[o],!1,!1,!1,U);if(!s)return 0;a&=s}return a})(t,r,i);if(r===At||t===At)return-1;var c=t.symbol&&$v(t.symbol.valueDeclaration),l=r.symbol&&$v(r.symbol.valueDeclaration),u=el(t,c&&1===i?0:i),d=el(r,l&&1===i?0:i);if(1===i&&u.length&&d.length){var p=!!(4&u[0].flags),_=!!(4&d[0].flags);if(p&&!_)return a&&R(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!((t,r,n)=>{if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);return 8===a||16===a&&8!==i||16!==a&&!i||(n&&R(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Qa(i),Qa(a)),!1)})(u[0],d[0],a))return 0}var f=-1,m=1===i?ae:ne,g=e.getObjectFlags(t),h=e.getObjectFlags(r);if(64&g&&64&h&&t.symbol===r.symbol||4&g&&4&h&&t.target===r.target)for(var y=0;y<d.length;y++){if(!(w=oe(u[y],d[y],!0,a,m(u[y],d[y]))))return 0;f&=w}else if(1===u.length&&1===d.length){var v=n===wn||!!W.noStrictGenericChecks,b=e.first(u),x=e.first(d);if(!(f=oe(b,x,v,a,m(b,x)))&&a&&1===i&&g&h&&(171===(null===(o=x.declaration)||void 0===o?void 0:o.kind)||171===(null===(s=b.declaration)||void 0===s?void 0:s.kind))){var E=e=>Wa(e,void 0,262144,i);return R(e.Diagnostics.Type_0_is_not_assignable_to_type_1,E(b),E(x)),R(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var S=0,D=d;S<D.length;S++){for(var T=D[S],C=I(),k=a,A=0,N=u;A<N.length;A++){var w,F=N[A];if(w=oe(F,T,!0,k,m(F,T))){f&=w,P(C);continue e}k=!1}return k&&R(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Ja(t),Wa(T,void 0,void 0,i)),0}return f}function ne(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>O(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ja(t),Ja(r)):(t,r)=>O(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Ja(t),Ja(r))}function ae(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>O(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ja(t),Ja(r)):(t,r)=>O(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Ja(t),Ja(r))}function oe(e,t,r,i,a){return T_(r?Ml(e):e,r?Ml(t):t,n===An?8:0,i,R,a,j,Op(Y))}function se(t,r,n){var i=U(t.type,r.type,3,n);return!i&&n&&(t.keyType===r.keyType?R(e.Diagnostics._0_index_signatures_are_incompatible,Ja(t.keyType)):R(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Ja(t.keyType),Ja(r.keyType))),i}function ce(t,r,i,a,o){if(n===Fn)return((e,t)=>{var r=al(e),n=al(t);if(r.length!==n.length)return 0;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=ol(e,o.keyType);if(!s||!U(s.type,o.type,3)||s.isReadonly!==o.isReadonly)return 0}return-1})(t,r);for(var s=al(r),c=e.some(s,(e=>e.keyType===Ye)),l=-1,u=0,d=s;u<d.length;u++){var p=d[u],_=!i&&c&&1&p.type.flags?-1:Sc(t)&&c?U(gc(t),p.type,3,a):le(t,p,a,o);if(!_)return 0;l&=_}return l}function le(t,r,n,i){var a=ll(t,r.keyType);return a?se(a,r,n):1&i||!$f(t)?(n&&R(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Ja(r.keyType),Ja(t)),0):((t,r,n)=>{for(var i=-1,a=r.keyType,o=0,s=2097152&t.flags?kc(t):Tc(t);o<s.length;o++){var c=s[o];if(!I_(t,c)&&nl(vd(c,8576),a)){var l=es(c);if(!(_=U(ie||32768&l.flags||a===Qe||!(16777216&c.flags)?l:ag(l,524288),r.type,3,n)))return n&&R(e.Diagnostics.Property_0_is_incompatible_with_index_signature,za(c)),0;i&=_}}for(var u=0,d=al(t);u<d.length;u++){var p=d[u];if(nl(p.keyType,a)){var _;if(!(_=se(p,r,n)))return 0;i&=_}}return i})(t,r,n)}}function R_(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,R_);if(465829888&t.flags){var r=Nc(t);if(r&&r!==t)return R_(r)}return vf(t)||!!(134217728&t.flags)}function L_(t,r){return kf(t)&&kf(r)?e.emptyArray:Ac(r).filter((e=>B_(uo(t,e.escapedName),Zo(e))))}function B_(e,t){return!!e&&!!t&&Hb(e,32768)&&!!Jf(t)}function j_(t,r,n){return void 0===n&&(n=s_),CT(t,r,n,!0)||((t,r)=>{var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(r=>{if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))})(t,r)||((t,r)=>{if(128&e.getObjectFlags(t)&&Sg(r,pf))return e.find(r.types,(e=>!pf(e)))})(t,r)||((t,r)=>{var n=0;if(el(t,n).length>0||el(t,n=1).length>0)return e.find(r.types,(e=>el(e,n).length>0))})(t,r)||((t,r)=>{var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a<o.length;a++){var s=o[a];if(!(406978556&s.flags)){var c=_d([xd(t),xd(s)]);if(4194304&c.flags)return s;if(vf(c)||1048576&c.flags){var l=1048576&c.flags?e.countWhere(c.types,vf):1;l>=i&&(n=s,i=l)}}}return n})(t,r)}function U_(t,r,n,i,a){for(var o=t.types.map((e=>{})),s=0,c=r;s<c.length;s++){var l=c[s],u=l[0],d=l[1],p=Jc(t,d);if(!(a&&p&&16&e.getCheckFlags(p)))for(var _=0,f=0,m=t.types;f<m.length;f++){var g=uo(m[f],d);g&&n(u(),g)?o[_]=void 0===o[_]||o[_]:o[_]=!1,_++}}var h=o.indexOf(!0);if(-1===h)return i;for(var y=o.indexOf(!0,h+1);-1!==y;){if(!a_(t.types[h],t.types[y]))return i;y=o.indexOf(!0,y+1)}return t.types[h]}function V_(t){if(524288&t.flags){var r=Dc(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&0===r.indexInfos.length&&r.properties.length>0&&e.every(r.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&t.flags)&&e.every(t.types,V_)}function K_(e){return e===Kt||e===zt||8&e.objectFlags?z:W_(e.symbol,e.typeParameters)}function z_(e){return W_(e,ri(e).typeParameters)}function W_(t,r){void 0===r&&(r=e.emptyArray);var n=ri(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:Qu(ks(t))}),n.variances=e.emptyArray;for(var i=[],a=e=>{var r=$_(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=wr;wr=e=>e?o=!0:a=!0;var c=J_(t,e,Pt),l=J_(t,e,It);3==(n=(u_(l,c)?1:0)|(u_(c,l)?2:0))&&u_(J_(t,e,Fr),c)&&(n=4),wr=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;o<s.length;o++)a(s[o]);n.variances=i,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return n.variances}function J_(e,t,r){var n=Ip(t,r),i=ks(e);if(_o(i))return i;var a=524288&e.flags?nu(e,Ap(ri(e).typeParameters,n)):Yl(i,Ap(i.typeParameters,n));return Fe.add(Qu(a)),a}function H_(e){return Fe.has(Qu(e))}function $_(t){var r,n;return(e.some(null===(r=t.symbol)||void 0===r?void 0:r.declarations,(t=>e.hasSyntacticModifier(t,32768)))?32768:0)|(e.some(null===(n=t.symbol)||void 0===n?void 0:n.declarations,(t=>e.hasSyntacticModifier(t,65536)))?65536:0)}function G_(e){return 262144&e.flags&&!wc(e)}function q_(t){return(t=>!!(4&e.getObjectFlags(t))&&!t.node)(t)&&e.some(eu(t),(e=>!!(262144&e.flags)||q_(e)))}function X_(e,t,r,n,i){if(n===Fn&&e.id>t.id){var a=e;e=t,t=a}var o=r?":"+r:"";return q_(e)&&q_(t)?((e,t,r,n)=>{var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=eu(e);o<s.length;o++){var l=s[o];if(262144&l.flags){if(n||G_(l)){var u=i.indexOf(l);u<0&&(u=i.length,i.push(l)),r+="="+u;continue}a="*"}else if(t<4&&q_(l)){r+="<"+c(l,t+1)+">";continue}r+="-"+l.id}return r}})(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Y_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Qc(i[n],t.escapedName),o=a&&Y_(a,r);if(o)return o}}function Q_(e){return e.parent&&32&e.parent.flags?ks(ua(e)):void 0}function Z_(e){var t=Q_(e),r=t&&ms(t)[0];return r&&uo(r,e.escapedName)}function ef(t,r,n){return Y_(r,(r=>!!(16&e.getDeclarationModifierFlagsFromSymbol(r,n))&&!ns(t,Q_(r))))?void 0:t}function tf(e,t,r,n){if(void 0===n&&(n=3),r>=n)for(var i=rf(e),a=0,o=0,s=0;s<r;s++){var c=t[s];if(rf(c)===i){if(c.id>=o&&++a>=n)return!0;o=c.id}}return!1}function rf(t){if(524288&t.flags&&!Rm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(kf(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function nf(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(SS(t)!==SS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Vb(t)!==Vb(r)?0:n(Zo(t),Zo(r))}function af(t,r,n,i,a,o){if(t===r)return-1;if(!((e,t,r)=>{var n=hb(e),i=hb(t),a=yb(e),o=yb(t),s=vb(e),c=vb(t);return n===i&&a===o&&s===c||!!(r&&a<=o)})(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=Fp(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++)if(!((m=t.typeParameters[c])===(_=r.typeParameters[c])||o(Xp(Hl(m),s)||ze,Hl(_)||ze)&&o(Xp(Uc(m),s)||ze,Uc(_)||ze)))return 0;t=Vp(t,s,!0)}var l=-1;if(!i){var u=Tl(t);if(u){var d=Tl(r);if(d){if(!(f=o(u,d)))return 0;l&=f}}}var p=hb(r);for(c=0;c<p;c++){var _,f,m=fb(t,c);if(!(f=o(_=fb(r,c),m)))return 0;l&=f}if(!a){var g=Cl(t),h=Cl(r);l&=g||h?((e,t,r)=>e&&t&&od(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0)(g,h,o):o(Al(t),Al(r))}return l}function of(t){return 1===t.length?t[0]:(e=>{for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=Ef(i);if(t||(t=a),a===i||a!==t)return!1}return!0})(t)?ad(t):e.reduceLeft(t,((e,t)=>l_(e,t)?t:e))}function sf(t){return!!(4&e.getObjectFlags(t))&&(t.target===Kt||t.target===zt)}function cf(t){return!!(4&e.getObjectFlags(t))&&t.target===zt}function lf(e){return sf(e)||kf(e)}function uf(e){return sf(e)&&!cf(e)||kf(e)&&!e.target.readonly}function df(e){return sf(e)?eu(e)[0]:void 0}function pf(e){return sf(e)||!(98304&e.flags)&&u_(e,Yt)}function _f(t){if(4&e.getObjectFlags(t)&&3&e.getObjectFlags(t.target)){if(33554432&e.getObjectFlags(t))return 67108864&e.getObjectFlags(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&e.getObjectFlags(r)){var n=us(r);if(n&&79!==n.expression.kind&&206!==n.expression.kind)return}var i=ms(r);if(1===i.length&&!Js(t.symbol).size){var a=e.length(r.typeParameters)?Xp(i[0],Fp(r.typeParameters,eu(t).slice(0,r.typeParameters.length))):i[0];return e.length(eu(t))>e.length(r.typeParameters)&&(a=$s(a,e.last(eu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function ff(e){return q?e===ut:e===He}function mf(e){var t=df(e);return!!t&&ff(t)}function gf(e){return kf(e)||!!Qc(e,"0")}function hf(e){return pf(e)||gf(e)}function yf(e){return!(240512&e.flags)}function vf(e){return!!(109440&e.flags)}function bf(t){return 2097152&t.flags?e.some(t.types,vf):!!(109440&t.flags)}function xf(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,vf):vf(t))}function Ef(e){return 1024&e.flags?Ss(e):402653312&e.flags?Ye:256&e.flags?Qe:2048&e.flags?Ze:512&e.flags?it:1048576&e.flags?Ag(e,Ef):e}function Sf(e){return 1024&e.flags&&gp(e)?Ss(e):128&e.flags&&gp(e)?Ye:256&e.flags&&gp(e)?Qe:2048&e.flags&&gp(e)?Ze:512&e.flags&&gp(e)?it:1048576&e.flags?Ag(e,Sf):e}function Df(e){return 8192&e.flags?at:1048576&e.flags?Ag(e,Df):e}function Tf(e,t){return dx(e,t)||(e=Df(Sf(e))),e}function Cf(e,t,r,n){return e&&vf(e)&&(e=Tf(e,t?cS(r,t,n):void 0)),e}function kf(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function Af(e){return kf(e)&&!!(8&e.target.combinedFlags)}function Nf(e){return Af(e)&&1===e.target.elementFlags.length}function wf(e){return Ff(e,e.target.fixedLength)}function Ff(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=tu(e)-r;if(t<i){for(var a=eu(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?Vd(c,Qe):c)}return n?_d(o):ad(o)}}function Pf(e){return"0"===e.value.base10Value}function If(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Of(n[r]);return t}function Of(e){return 1048576&e.flags?If(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?Pf(e)?2048:0:512&e.flags?e===et||e===tt?512:0:117724&e.flags}function Mf(e){return 117632&Of(e)?Tg(e,(e=>!(117632&Of(e)))):e}function Rf(e){return 4&e.flags?Zr:8&e.flags?en:64&e.flags?tn:e===tt||e===et||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&Pf(e)?e:st}function Lf(e,t){var r=t&~e.flags&98304;return 0===r?e:ad(32768===r?[e,Je]:65536===r?[e,qe]:[e,Je,qe])}function Bf(t,r){return void 0===r&&(r=!1),e.Debug.assert(q),32768&t.flags?t:ad([t,r?Ge:Je])}function jf(e){return q?(e=>{var t=ag(e,2097152);return Qt||(Qt=Su("NonNullable",524288,void 0)||Pe),Qt!==Pe?nu(Qt,[t]):t})(e):e}function Uf(e){return q?ad([e,$e]):e}function Vf(e){return q?Cg(e,$e):e}function Kf(t,r,n){return n?e.isOutermostOptionalChain(r)?Bf(t):Uf(t):t}function zf(t,r){return e.isExpressionOfOptionalChainRoot(r)?jf(t):e.isOptionalChain(r)?Vf(t):t}function Wf(e,t){return ie&&t?Cg(e,Ge):e}function Jf(e){return ie&&(e===Ge||1048576&e.flags&&Zu(e.types,Ge))}function Hf(e){return ie?Cg(e,Ge):ag(e,524288)}function $f(t){return 2097152&t.flags?e.every(t.types,$f):!(!t.symbol||0==(7040&t.symbol.flags)||32&t.symbol.flags||pD(t))||!!(1024&e.getObjectFlags(t)&&$f(t.source))}function Gf(t,r){var n=$n(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=ri(t).nameType;return i&&(n.nameType=i),n}function qf(t){if(!(Mm(t)&&8192&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=Tc(t);i<a.length;i++){var o=a[i],s=Zo(o),c=r(s);n.set(o.escapedName,c===s?o:Gf(o,c))}return n})(t,qf),a=ka(n.symbol,i,n.callSignatures,n.constructSignatures,n.indexInfos);return a.flags=n.flags,a.objectFlags|=-8193&n.objectFlags,t.regularType=a,a}function Xf(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Yf(e){if(!e.siblings){for(var t=[],r=0,n=Yf(e.parent);r<n.length;r++){var i=n[r];if(Mm(i)){var a=Cc(i,e.propertyName);a&&Eg(Zo(a),(e=>{t.push(e)}))}}e.siblings=t}return e.siblings}function Qf(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=Yf(t);n<i.length;n++){var a=i[n];if(Mm(a)&&!(2097152&e.getObjectFlags(a)))for(var o=0,s=Ac(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function Zf(e,t){if(!(4&e.flags))return e;var r=Zo(e),n=rm(r,t&&Xf(t,e.escapedName,void 0));return n===r?e:Gf(e,n)}function em(e){var t=we.get(e.escapedName);if(t)return t;var r=Gf(e,Ge);return r.flags|=16777216,we.set(e.escapedName,r),r}function tm(e){return rm(e,void 0)}function rm(t,r){if(196608&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=Re;else if(Mm(t))n=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=Tc(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,Zf(o,r))}if(r)for(var s=0,c=Qf(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,em(o));var l=ka(t.symbol,n,e.emptyArray,e.emptyArray,e.sameMap(al(t),(e=>Ul(e.keyType,tm(e.type),e.isReadonly))));return l.objectFlags|=266240&e.getObjectFlags(t),l})(t,r);else if(1048576&t.flags){var i=r||Xf(void 0,void 0,t.types),a=e.sameMap(t.types,(e=>98304&e.flags?e:rm(e,i)));n=ad(a,e.some(a,k_)?2:1)}else 2097152&t.flags?n=_d(e.sameMap(t.types,tm)):lf(t)&&(n=Yl(t.target,e.sameMap(eu(t),tm)));return n&&void 0===r&&(t.widened=n),n||t}return t}function nm(t){var r=!1;if(65536&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,k_))r=!0;else for(var n=0,i=t.types;n<i.length;n++)nm(u=i[n])&&(r=!0);if(lf(t))for(var a=0,o=eu(t);a<o.length;a++)nm(u=o[a])&&(r=!0);if(Mm(t))for(var s=0,c=Tc(t);s<c.length;s++){var l=c[s],u=Zo(l);65536&e.getObjectFlags(u)&&(nm(u)||Un(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,za(l),Ja(tm(u))),r=!0)}}return r}function im(t,r,n){var i=Ja(tm(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),W)){var a;switch(t.kind){case 221:case 167:case 166:a=Z?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 164:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(li(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Kn(Z,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Z?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Z?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 203:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Z)return;break;case 317:return void Un(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 256:case 169:case 168:case 172:case 173:case 213:case 214:if(Z&&!t.name)return void Un(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Z?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:return void(Z&&Un(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Z?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Kn(Z,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function am(t,r,n){_((()=>{!(Z&&65536&e.getObjectFlags(r))||n&&Uh(t)||nm(r)||im(t,r,n)}))}function om(e,t,r){var n=hb(e),i=hb(t),a=bb(e),o=bb(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Tl(e);if(l){var u=Tl(t);u&&r(l,u)}for(var d=0;d<c;d++)r(fb(e,d),fb(t,d));o&&r(gb(e,c),o)}function sm(e,t,r){var n=Cl(e),i=Cl(t);n&&i&&od(n,i)&&n.type&&i.type?r(n.type,i.type):r(Al(e),Al(t))}function cm(e,t,r,n){return lm(e.map(fm),t,r,n||s_)}function lm(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Op((e=>um(i,e,!0))),nonFixingMapper:Op((e=>um(i,e,!1)))};return i}function um(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(_m(e),dm(n),a.isFixed=!0),Lm(e,i)}return t}function dm(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function pm(e,t,r){var n;(null!==(n=e.intraExpressionInferenceSites)&&void 0!==n?n:e.intraExpressionInferenceSites=[]).push({node:t,type:r})}function _m(e){if(e.intraExpressionInferenceSites){for(var t=0,r=e.intraExpressionInferenceSites;t<r.length;t++){var n=r[t],i=n.node,a=n.type,o=169===i.kind?kh(i,2):Mh(i,2);o&&Pm(e.inferences,a,o)}e.intraExpressionInferenceSites=void 0}}function fm(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function mm(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function gm(e){return e&&e.mapper}function hm(t){var r=e.getObjectFlags(t);if(524288&r)return!!(1048576&r);var n=!!(465829888&t.flags||524288&t.flags&&!ym(t)&&(4&r&&(t.node||e.forEach(eu(t),hm))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||12583968&r)||3145728&t.flags&&!(1024&t.flags)&&!ym(t)&&e.some(t.types,hm));return 3899393&t.flags&&(t.objectFlags|=524288|(n?1048576:0)),n}function ym(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,259);return!(!r||!e.findAncestor(r.parent,(e=>305===e.kind||261!==e.kind&&"quit")))}return!1}function vm(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(e=>vm(e,r)))||16777216&t.flags&&(Qd(t)===r||Zd(t)===r))}function bm(t,r,n){if(!Hr){var i=t.id+","+r.id+","+n.id;if(Jr.has(i))return Jr.get(i);Hr=!0;var a=((t,r,n)=>{if(ol(t,Ye)||0!==Ac(t).length&&xm(t)){if(sf(t))return Bu(Em(eu(t)[0],r,n),cf(t));if(kf(t))return Wu(e.map(eu(t),(e=>Em(e,r,n))),4&bc(r)?e.sameMap(t.target.elementFlags,(e=>2&e?1:e)):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations);var i=xa(1040,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}})(t,r,n);return Hr=!1,Jr.set(i,a),a}}function xm(t){return!(262144&e.getObjectFlags(t))||Mm(t)&&e.some(Ac(t),(e=>xm(Zo(e))))||kf(t)&&e.some(eu(t),xm)}function Em(e,t,r){var n=Vd(r.type,_c(t)),i=gc(t),a=fm(n);return Pm([a],e,i),Tm(a)||ze}function Sm(t,r,n,i){var a,o,s,c,l,u,d;return h(this,(p=>{switch(p.label){case 0:a=Ac(r),o=0,s=a,p.label=1;case 1:return o<s.length?Ms(c=s[o])||!n&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(l=Qc(t,c.escapedName))?[3,3]:[4,c]:[3,6];case 2:return p.sent(),[3,5];case 3:return i&&109440&(u=Zo(c)).flags?1&(d=Zo(l)).flags||mp(d)===mp(u)?[3,5]:[4,c]:[3,5];case 4:p.sent(),p.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function Dm(e,t,r,n){var i=Sm(e,t,r,n).next();if(!i.done)return i.value}function Tm(e){return e.candidates?ad(e.candidates,2):e.contraCandidates?_d(e.contraCandidates):void 0}function Cm(e){return!!ni(e).skipDirectInference}function km(t){return!(!t.symbol||!e.some(t.symbol.declarations,Cm))}function Am(t,r){return 128&t.flags?Fm([t.value],e.emptyArray,r):134217728&t.flags?e.arraysEqual(t.texts,r.texts)?e.map(t.types,wm):Fm(t.texts,t.types,r):void 0}function Nm(t,r){var n=Am(t,r);return!!n&&e.every(n,((t,n)=>((t,r)=>{if(t===r||5&r.flags)return!0;if(128&t.flags){var n=t.value;return!!(8&r.flags&&""!==n&&isFinite(+n)||64&r.flags&&""!==n&&(t=>{var r=e.createScanner(99,!1),n=!0;r.setOnError((()=>n=!1)),r.setText(t+"n");var i=r.scan();40===i&&(i=r.scan());var a=r.getTokenFlags();return n&&9===i&&r.getTextPos()===t.length+1&&!(512&a)})(n)||98816&r.flags&&n===r.intrinsicName)}if(134217728&t.flags){var i=t.texts;return 2===i.length&&""===i[0]&&""===i[1]&&u_(t.types[0],r)}return u_(t,r)})(t,r.types[n])))}function wm(e){return 402653317&e.flags?e:Sd(["",""],[e])}function Fm(e,t,r){var n=e.length-1,i=e[0],a=e[n],o=r.texts,s=o.length-1,c=o[0],l=o[s];if(!(0===n&&i.length<c.length+l.length)&&i.startsWith(c)&&a.endsWith(l)){for(var u=a.slice(0,a.length-l.length),d=[],p=0,_=c.length,m=1;m<s;m++){var g=o[m];if(g.length>0){for(var h=p,y=_;!((y=v(h).indexOf(g,y))>=0);){if(++h===e.length)return;y=0}b(h,y),_+=g.length}else if(_<v(p).length)b(p,_+1);else{if(!(p<n))return;b(p+1,0)}}return b(n,v(n).length),d}function v(t){return t<n?e[t]:u}function b(r,n){var i=r===p?hp(v(r).slice(_,n)):Sd(f(f([e[p].slice(_)],e.slice(p+1,r),!0),[v(r).slice(0,n)],!1),t.slice(p,r));d.push(i),p=r,_=n}}function Pm(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,u=!1,d=2048,p=!0,_=0;function f(r,s){if(hm(s)){if(r===Be){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===s.aliasSymbol)y(r.aliasTypeArguments,s.aliasTypeArguments,z_(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var l=0,_=r.types;l<_.length;l++){var v=_[l];f(v,v)}else{if(1048576&s.flags){var E=h(1048576&r.flags?r.types:[r],s.types,Im),T=h(E[0],E[1],Om),C=T[0];if(0===(A=T[1]).length)return;if(s=ad(A),0===C.length)return void m(r,s,1);r=ad(C)}else if(2097152&s.flags&&e.some(s.types,(e=>!!b(e)||Sc(e)&&!!b(Wp(e)||st)))){if(!(1048576&r.flags)){var k=h(2097152&r.flags?r.types:[r],s.types,a_),A=(C=k[0],k[1]);if(0===C.length||0===A.length)return;r=_d(C),s=_d(A)}}else 41943040&s.flags&&(s=Hd(s));if(8650752&s.flags){if(r===Ve||r===ct||128&i&&(r===Le||r===Xt)||km(r))return;var N=b(s);if(N){if(262144&e.getObjectFlags(r))return;if(!N.isFixed){if((void 0===N.priority||i<N.priority)&&(N.candidates=void 0,N.contraCandidates=void 0,N.topLevel=!0,N.priority=i),i===N.priority){var w=o||r;a&&!u?e.contains(N.contraCandidates,w)||(N.contraCandidates=e.append(N.contraCandidates,w),dm(t)):e.contains(N.candidates,w)||(N.candidates=e.append(N.candidates,w),dm(t))}!(128&i)&&262144&s.flags&&N.topLevel&&!vm(n,s)&&(N.topLevel=!1,dm(t))}return void(d=Math.min(d,i))}var F=Ld(s,!1);if(F!==s)f(r,F);else if(8388608&s.flags){var P=Ld(s.indexType,!1);if(465829888&P.flags){var I=Bd(Ld(s.objectType,!1),P,!1);I&&I!==s&&f(r,I)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||sf(r)&&sf(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)a=!a,f(r.type,s.type),a=!a;else if((xf(r)||4&r.flags)&&4194304&s.flags){var O=(t=>{var r=e.createSymbolTable();Eg(t,(t=>{if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=$n(4,n);i.type=Re,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?[Ul(Ye,St,!1)]:e.emptyArray;return ka(void 0,r,e.emptyArray,e.emptyArray,n)})(r);a=!a,m(O,s.type,256),a=!a}else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(33554432&r.flags){f(r.baseType,s);var M=i;i|=4,f(r.substitute,s),i=M}else if(16777216&s.flags)g(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var R=0,L=r.types;R<L.length;R++)f(L[R],s);else if(134217728&s.flags)!((t,r)=>{var n=Am(t,r),i=r.types;if(n||e.every(r.texts,(e=>0===e.length)))for(var a=0;a<i.length;a++)f(n?n[a]:st,i[a])})(r,s);else{if(r=$c(r),!(512&i&&467927040&r.flags)){var B=Kc(r);if(B!==r&&p&&!(2621440&B.flags))return p=!1,f(B,s);r=B}2621440&r.flags&&g(r,s,D)}else y(eu(r),eu(s),K_(r.target))}}}function m(e,t,r){var n=i;i|=r,f(e,t),i=n}function g(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=d;d=2048;var u=_,p=rf(t),f=rf(r);e.contains(c,p)&&(_|=1),e.contains(l,f)&&(_|=2),3!==_?((c||(c=[])).push(p),(l||(l=[])).push(f),n(t,r),l.pop(),c.pop()):d=-1,_=u,s.set(i,d),d=Math.min(d,o)}else d=Math.min(d,a)}function h(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=t;l<u.length;l++){var d=u[l];n(d,c)&&(f(d,c),i=e.appendIfUnique(i,d),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(t=>!e.contains(i,t))):t,a?e.filter(r,(t=>!e.contains(a,t))):r]}function y(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?v(e[i],t[i]):f(e[i],t[i])}function v(e,t){X||1024&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),l=!1,u=0,p=r;u<p.length;u++)if(b(D=p[u]))o=D,a++;else for(var _=0;_<s.length;_++){var g=d;d=2048,f(s[_],D),d===i&&(c[_]=!0),l=l||-1===d,d=Math.min(d,g)}if(0===a){var h=(t=>{for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(e=>!!b(e)));if(!o||r&&o!==r)return;r=o}return r})(r);return void(h&&m(t,h,1))}if(1===a&&!l){var y=e.flatMap(s,((e,t)=>c[t]?void 0:e));if(y.length)return void f(ad(y),o)}}else for(var v=0,x=r;v<x.length;v++)b(D=x[v])?a++:f(t,D);if(2097152&n?1===a:a>0)for(var E=0,S=r;E<S.length;E++){var D;b(D=S[E])&&m(t,D,1)}}function E(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=E(t,r,o[a])||i;return i}if(4194304&n.flags){var s=b(n.type);if(s&&!s.isFixed&&!km(t)){var c=bm(t,r,n);c&&m(c,s.typeParameter,262144&e.getObjectFlags(t)?16:8)}return!0}if(262144&n.flags){m(xd(t),n,32);var l=Nc(n);if(l&&E(t,r,l))return!0;var u=e.map(Ac(t),Zo),d=e.map(al(t),(e=>e!==Lr?e.type:st));return f(ad(e.concatenate(u,d)),gc(r)),!0}return!1}function S(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(Qd(e),Qd(t)),f(Zd(e),Zd(t));else{var r=i;i|=a?64:0,x(e,[Qd(t),Zd(t)],t.flags),i=r}}function D(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||sf(t)&&sf(r)))y(eu(t),eu(r),K_(t.target));else{if(Sc(t)&&Sc(r)){f(fc(t),fc(r)),f(gc(t),gc(r));var n=mc(t),i=mc(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType&&E(t,r,fc(r)))return;if(!((e,t)=>kf(e)&&kf(t)?((e,t)=>!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength))(e,t):!!Dm(e,t,!1,!0)&&!!Dm(t,e,!1,!1))(t,r)){if(lf(t)){if(kf(r)){var s=tu(t),c=tu(r),l=eu(r),u=r.target.elementFlags;if(kf(t)&&(o=r,tu(a=t)===tu(o)&&e.every(a.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(var d=0;d<c;d++)f(eu(t)[d],l[d]);return}var p=kf(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,_=Math.min(kf(t)?Yu(t.target,3):0,r.target.hasRestElement?Yu(r.target,3):0);for(d=0;d<p;d++)f(eu(t)[d],l[d]);if(!kf(t)||s-p-_==1&&4&t.target.elementFlags[p]){var g=eu(t)[p];for(d=p;d<c-_;d++)f(8&u[d]?Bu(g):g,l[d])}else{var h=c-p-_;if(2===h&&u[p]&u[p+1]&8&&kf(t)){var v=b(l[p]);v&&void 0!==v.impliedArity&&(f(Gu(t,p,_+s-v.impliedArity),l[p]),f(Gu(t,p+v.impliedArity,_),l[p+1]))}else if(1===h&&8&u[p]){var x=2&r.target.elementFlags[c-1];m(kf(t)?Gu(t,p,_):Bu(eu(t)[0]),l[p],x?2:0)}else 1===h&&4&u[p]&&(g=kf(t)?Ff(t,p,_):eu(t)[0])&&f(g,l[p])}for(d=0;d<_;d++)f(eu(t)[s-d-1],l[c-d-1]);return}if(sf(r))return void k(t,r)}!((t,r)=>{for(var n=0,i=Tc(r);n<i.length;n++){var a=i[n],o=Qc(t,a.escapedName);o&&!e.some(o.declarations,Cm)&&f(Zo(o),Zo(a))}})(t,r),T(t,r,0),T(t,r,1),k(t,r)}}}function T(t,r,n){for(var i=el(t,n),a=el(r,n),o=i.length,s=a.length,c=o<s?o:s,l=!!(262144&e.getObjectFlags(t)),u=0;u<c;u++)C(Rl(i[o-c+u]),Ml(a[s-c+u]),l)}function C(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||169===i||168===i||171===i,om(e,t,v),u=n}sm(e,t,f)}function k(t,r){var n=e.getObjectFlags(t)&e.getObjectFlags(r)&32?8:0,i=al(r);if($f(t))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,u=Ac(t);l<u.length;l++){var d=u[l];if(nl(vd(d,8576),s.keyType)){var p=Zo(d);c.push(16777216&d.flags?Hf(p):p)}}for(var _=0,f=al(t);_<f.length;_++){var g=f[_];nl(g.keyType,s.keyType)&&c.push(g.type)}c.length&&m(ad(c),s.type,n)}for(var h=0,y=i;h<y.length;h++){var v=ll(t,(s=y[h]).keyType);v&&m(v.type,s.type,n)}}f(r,n)}function Im(e,t){return ie&&t===Ge?e===t:a_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Om(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Mm(t){return!!(128&e.getObjectFlags(t))}function Rm(t){return!!(16512&e.getObjectFlags(t))}function Lm(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?((t,r)=>{var n,i=(t=>{if(t.length>1){var r=e.filter(t,Rm);if(r.length){var n=ad(r,2);return e.concatenate(e.filter(t,(e=>!Rm(e))),[n])}}return t})(t.candidates),a=!!(n=wc(t.typeParameter))&&Hb(16777216&n.flags?Pc(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!vm(Al(r),t.typeParameter)),s=a?e.sameMap(i,mp):o?e.sameMap(i,Sf):i;return tm(416&t.priority?ad(s,2):(t=>{if(!q)return of(t);var r=e.filter(t,(e=>!(98304&e.flags)));return r.length?Lf(of(r),98304&If(t)):ad(t,2)})(s))})(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(e=>l_(c,e)))?(t=>{return 416&t.priority?_d(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,((e,t)=>l_(t,e)?t:e)));var r})(a):c;else if(c)o=c;else if(1&t.flags)o=ct;else{var l=Uc(a.typeParameter);l&&(o=Xp(l,(n=((t,r)=>Op((n=>e.findIndex(t.inferences,(e=>e.typeParameter===n))>=r?ze:n)))(t,r),i=t.nonFixingMapper,n?Mp(4,n,i):i)))}}else o=Tm(a);a.inferredType=o||Bm(!!(2&t.flags));var u=wc(a.typeParameter);if(u){var d=Xp(u,t.nonFixingMapper);o&&t.compareTypes(o,$s(d,o))||(a.inferredType=o=d)}}return a.inferredType}function Bm(e){return e?Re:ze}function jm(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Lm(e,r));return t}function Um(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return W.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return W.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return W.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(t.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 297===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Vm(t){var r=ni(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&li(t,t.escapedText,1160127,Um(t),t,!e.isWriteOnlyAccess(t),!1)||Pe),r.resolvedSymbol}function Km(t){return!!e.findAncestor(t,(e=>181===e.kind||79!==e.kind&&161!==e.kind&&"quit"))}function zm(t,r,n,i){switch(t.kind){case 79:if(!e.isThisInTypeQuery(t)){var a=Vm(t);return a!==Pe?"".concat(i?O(i):"-1","|").concat(Qu(r),"|").concat(Qu(n),"|").concat(M(a)):void 0}case 108:return"0|".concat(i?O(i):"-1","|").concat(Qu(r),"|").concat(Qu(n));case 230:case 212:return zm(t.expression,r,n,i);case 161:var o=zm(t.left,r,n,i);return o&&o+"."+t.right.escapedText;case 206:case 207:var s=Jm(t);if(void 0!==s){var c=zm(t.expression,r,n,i);return c&&c+"."+s}}}function Wm(t,r){switch(r.kind){case 212:case 230:return Wm(t,r.expression);case 221:return e.isAssignmentExpression(r)&&Wm(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&Wm(t,r.right)}switch(t.kind){case 231:return 231===r.kind&&t.keywordToken===r.keywordToken&&t.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(t)?108===r.kind:79===r.kind&&Vm(t)===Vm(r)||(254===r.kind||203===r.kind)&&ma(Vm(t))===la(r);case 108:return 108===r.kind;case 106:return 106===r.kind;case 230:case 212:return Wm(t.expression,r);case 206:case 207:var n=Jm(t),i=e.isAccessExpression(r)?Jm(r):void 0;return void 0!==n&&void 0!==i&&i===n&&Wm(t.expression,r.expression);case 161:return e.isAccessExpression(r)&&t.right.escapedText===Jm(r)&&Wm(t.left,r.expression);case 221:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Wm(t.right,r)}return!1}function Jm(t){if(e.isPropertyAccessExpression(t))return t.name.escapedText;if(e.isElementAccessExpression(t))return(t=>{if(e.isStringOrNumericLiteralLike(t.argumentExpression))return e.escapeLeadingUnderscores(t.argumentExpression.text);if(e.isEntityNameExpression(t.argumentExpression)){var r=Ji(t.argumentExpression,111551,!0);if(!r||!Zg(r))return;var n=r.valueDeclaration;if(void 0===n)return;var i=Ko(n);if(i){var a=Hm(i);if(void 0!==a)return a}if(e.hasOnlyExpressionInitializer(n)){var o=e.getEffectiveInitializer(n);return o&&Hm(Ex(o))}}})(t);if(e.isBindingElement(t)){var r=bo(t);return r?e.escapeLeadingUnderscores(r):void 0}return e.isParameter(t)?""+t.parent.parameters.indexOf(t):void 0}function Hm(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):void 0}function $m(t,r){for(;e.isAccessExpression(t);)if(Wm(t=t.expression,r))return!0;return!1}function Gm(t,r){for(;e.isOptionalChain(t);)if(Wm(t=t.expression,r))return!0;return!1}function qm(t,r){if(t&&1048576&t.flags){var n=Jc(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Id(Zo(n))),!!n.isDiscriminantProperty}return!1}function Xm(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(qm(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Ym(t){var r=t.types;if(!(r.length<10||32768&e.getObjectFlags(t)||e.countWhere(r,(e=>!!(59506688&e.flags)))<10)){if(void 0===t.keyPropertyName){var n=e.forEach(r,(t=>59506688&t.flags?e.forEach(Ac(t),(e=>vf(Zo(e))?e.escapedName:void 0)):void 0)),i=n&&((t,r)=>{for(var n=new e.Map,i=0,a=e=>{if(61603840&e.flags){var t=uo(e,r);if(t){if(!xf(t))return{value:void 0};var a=!1;Eg(t,(t=>{var r=Qu(mp(t)),i=n.get(r);i?i!==ze&&(n.set(r,ze),a=!0):n.set(r,e)})),a||i++}}},o=0,s=t;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=t.length?n:void 0})(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Qm(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Qu(mp(t)));return n!==ze?n:void 0}function Zm(e,t){var r=Ym(e),n=r&&uo(t,r);return n&&Qm(e,n)}function eg(e,t){return Wm(e,t)||$m(e,t)}function tg(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(eg(t,n[r]))return!0;return!(206!==e.expression.kind||!eg(t,e.expression.expression))}function rg(e){return(!e.id||e.id<0)&&(e.id=u,u++),e.id}function ng(e){var t=Dc(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&l_(e,jt))}function ig(t,r){void 0===r&&(r=!1);var n=t.flags;if(4&n)return q?16317953:16776705;if(128&n){var i=""===t.value;return q?i?12123649:7929345:i?12582401:16776705}if(40&n)return q?16317698:16776450;if(256&n){var a=0===t.value;return q?a?12123394:7929090:a?12582146:16776450}return 64&n?q?16317188:16775940:2048&n?(a=Pf(t),q?a?12122884:7928580:a?12581636:16775940):16&n?q?16316168:16774920:528&n?q?t===et||t===tt?12121864:7927560:t===et||t===tt?12580616:16774920:524288&n?r?16768959:16&e.getObjectFlags(t)&&k_(t)?q?16318463:16777215:ng(t)?q?7880640:16728e3:q?7888800:16736160:49152&n?9830144:65536&n?9363232:12288&n?q?7925520:16772880:67108864&n?q?7888800:16736160:131072&n?0:465829888&n?Pd(t)?q?7929345:16776705:ig(Mc(t)||ze,r):1048576&n?e.reduceLeft(t.types,((e,t)=>e|ig(t,r)),0):2097152&n?(r||(r=Hb(t,131068)),((e,t)=>{for(var r=0,n=16777215,i=0,a=e.types;i<a.length;i++){var o=ig(a[i],t);r|=o,n&=o}return 8256&r|16768959&n})(t,r)):16777215}function ag(e,t){return Tg(e,(e=>0!=(ig(e)&t)))}function og(e,t){return t?ad([ho(e),Ex(t)]):e}function sg(e,t){var r,n=yd(t);if(!Ls(n))return je;var i=Ks(n);return uo(e,i)||lg(null===(r=ul(e,i))||void 0===r?void 0:r.type)||je}function cg(e,t){return Dg(e,gf)&&((e,t)=>uo(e,""+t)||(Dg(e,kf)?Ag(e,(e=>wf(e)||Je)):void 0))(e,t)||lg(UE(65,e,Je,void 0))||je}function lg(e){return e&&W.noUncheckedIndexedAccess?ad([e,Je]):e}function ug(e){return Bu(UE(65,e,Je,void 0)||je)}function dg(e){return 221===e.parent.kind&&e.parent.left===e||244===e.parent.kind&&e.parent.initializer===e}function pg(e){return sg(_g(e.parent),e.name)}function _g(e){var t=e.parent;switch(t.kind){case 243:return Ye;case 244:return jE(t)||je;case 221:return(e=>204===e.parent.kind&&dg(e.parent)||296===e.parent.kind&&dg(e.parent.parent)?og(_g(e),e.right):Ex(e.right))(t);case 215:return Je;case 204:return((e,t)=>cg(_g(e),e.elements.indexOf(t)))(t,e);case 225:return(e=>ug(_g(e.parent)))(t);case 296:return pg(t);case 297:return(e=>og(pg(e),e.objectAssignmentInitializer))(t)}return je}function fg(e){return ni(e).resolvedType||Ex(e)}function mg(e){return 254===e.kind?(e=>e.initializer?fg(e.initializer):243===e.parent.parent.kind?Ye:244===e.parent.parent.kind&&jE(e.parent.parent)||je)(e):(e=>{var t=e.parent,r=mg(t.parent);return og(201===t.kind?sg(r,e.propertyName||e.name):e.dotDotDotToken?ug(r):cg(r,t.elements.indexOf(e)),e.initializer)})(e)}function gg(e){switch(e.kind){case 212:return gg(e.expression);case 221:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return gg(e.left);case 27:return gg(e.right)}}return e}function hg(e){var t=e.parent;return 212===t.kind||221===t.kind&&63===t.operatorToken.kind&&t.left===e||221===t.kind&&27===t.operatorToken.kind&&t.right===e?hg(t):e}function yg(e){return 289===e.kind?mp(Ex(e.expression)):st}function vg(e){var t=ni(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(yg(i))}}return t.switchTypes}function bg(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(289===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function xg(e,t){return e===t||1048576&t.flags&&((e,t)=>{if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!Zu(t.types,i))return!1}return!0}return!!(1024&e.flags&&Ss(e)===t)||Zu(t.types,e)})(e,t)}function Eg(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function Sg(t,r){return 1048576&t.flags?e.some(t.types,r):r(t)}function Dg(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Tg(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(e=>!!(1048576&e.flags)||r(e)));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=id(1048576,c)}}return sd(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:st}function Cg(e,t){return Tg(e,(e=>e!==t))}function kg(e){return 1048576&e.flags?e.types.length:1}function Ag(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?Ag(c,t,r):t(c);a||(a=c!==l),l&&(n?n.push(l):n=[l])}return a?n&&ad(n,r?0:1):e}function Ng(t,r,n,i){return 1048576&t.flags&&n?ad(e.map(t.types,r),1,n,i):Ag(t,r)}function wg(e,t){return Tg(e,(e=>0!=(e.flags&t)))}function Fg(e,t){return Hb(e,134217804)&&Hb(t,402655616)?Ag(e,(e=>4&e.flags?wg(t,402653316):Pd(e)&&!Hb(t,402653188)?wg(t,128):8&e.flags?wg(t,264):64&e.flags?wg(t,2112):e)):e}function Pg(e){return 0===e.flags}function Ig(e){return 0===e.flags?e.type:e}function Og(e,t){return t?{flags:0,type:131072&e.flags?ct:e}:e}function Mg(e){return Ne[e.id]||(Ne[e.id]=(e=>{var t=xa(256);return t.elementType=e,t})(e))}function Rg(e,t){var r=qf(Ef(Dx(t)));return xg(r,e.elementType)?e:Mg(ad([e.elementType,r]))}function Lg(t){return 256&e.getObjectFlags(t)?(r=t).finalArrayType||(r.finalArrayType=131072&(n=r.elementType).flags?Xt:Bu(1048576&n.flags?ad(n.types,2):n)):t;var r,n}function Bg(t){return 256&e.getObjectFlags(t)?t.elementType:st}function jg(t){var r=hg(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||208===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=207===n.kind&&n.expression===r&&221===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&$b(Ex(n.argumentExpression),296);return i||a}function Ug(t,r){if(8752&t.flags)return Zo(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&Ug(n))return Zo(t)}var i=t.valueDeclaration;if(i){if(s=i,(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isParameter(s))&&(e.getEffectiveTypeAnnotationNode(s)||e.isInJSFile(s)&&e.hasInitializer(s)&&s.initializer&&e.isFunctionExpressionOrArrowFunction(s.initializer)&&e.getEffectiveReturnTypeNode(s.initializer)))return Zo(t);if(e.isVariableDeclaration(i)&&244===i.parent.parent.kind){var a=i.parent.parent,o=Vg(a.expression,void 0);if(o)return UE(a.awaitModifier?15:13,o,Je,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,za(t)))}}var s}function Vg(t,r){if(!(33554432&t.flags))switch(t.kind){case 79:var n=ma(Vm(t));return Ug(2097152&n.flags?Li(n):n,r);case 108:return(t=>{var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=bl(r);if(n.thisParameter)return Ug(n.thisParameter)}if(e.isClassLike(r.parent)){var i=la(r.parent);return e.isStatic(r)?Zo(i):ks(i).thisType}})(t);case 106:return _h(t);case 206:var i=Vg(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=Qc(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=Qc(i,a.escapedText);return o&&Ug(o,r)}return;case 212:return Vg(t.expression,r)}}function Kg(t){var r=ni(t),n=r.effectsSignature;if(void 0===n){var i=void 0;238===t.parent.kind?i=Vg(t.expression,void 0):106!==t.expression.kind&&(i=e.isOptionalChain(t)?Ay(zf(Tx(t.expression),t.expression),t.expression):Ey(t.expression));var a=el(i&&Kc(i)||ze,0),o=1!==a.length||a[0].typeParameters?e.some(a,zg)?Hv(t):void 0:a[0];n=r.effectsSignature=o&&zg(o)?o:Or}return n===Or?void 0:n}function zg(e){return!!(Cl(e)||e.declaration&&131072&(Nl(e.declaration)||ze).flags)}function Wg(e){var t=Hg(e,!1);return Tr=e,Cr=t,t}function Jg(t){var r=e.skipParentheses(t,!0);return 95===r.kind||221===r.kind&&(55===r.operatorToken.kind&&(Jg(r.left)||Jg(r.right))||56===r.operatorToken.kind&&Jg(r.left)&&Jg(r.right))}function Hg(t,r){for(;;){if(t===Tr)return Cr;var n=t.flags;if(4096&n){if(!r){var i=rg(t),a=gn[i];return void 0!==a?a:gn[i]=Hg(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=Kg(t.node);if(o){var s=Cl(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&Jg(c))return!1}if(131072&Al(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(e=>Hg(e,!1)));if(8&n){var l=t.antecedents;if(void 0===l||0===l.length)return!1;t=l[0]}else{if(!(128&n)){if(1024&n){Tr=void 0;var u=t.target,d=u.antecedents;u.antecedents=t.antecedents;var p=Hg(t.antecedent,!1);return u.antecedents=d,p}return!(1&n)}if(t.clauseStart===t.clauseEnd&&Ob(t.switchStatement))return!1;t=t.antecedent}}}}function $g(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=rg(t),a=hn[i];return void 0!==a?a:hn[i]=$g(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(106===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(e=>$g(e,!1)));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=$g(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function Gg(t){switch(t.kind){case 79:var r=Vm(t);return Zg(r)||e.isParameterOrCatchClauseVariable(r)&&!Yg(r);case 206:case 207:return Gg(t.expression)&&Vb(ni(t).resolvedSymbol||Pe)}return!1}function qg(t,r,n,i,a){var o;void 0===n&&(n=r),void 0===a&&(a=t.flowNode);var s=!1,c=0;if(Yr)return je;if(!a)return r;Qr++;var l=Xr,u=Ig(_(a));Xr=l;var d=256&e.getObjectFlags(u)&&jg(t)?Xt:Lg(u);return d===dt||t.parent&&230===t.parent.kind&&!(131072&d.flags)&&131072&ag(d,2097152).flags?r:d===We?ze:d;function p(){return s?o:(s=!0,o=zm(t,r,n,i))}function _(a){if(2e3===c)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Yr=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(u,s.statements.pos),Sn.add(e.createFileDiagnostic(u,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),je;var o,s,u,d,p;for(c++;;){var f=a.flags;if(4096&f){for(var g=l;g<Xr;g++)if(fn[g]===a)return c--,mn[g];p=a}var S=void 0;if(16&f){if(!(S=m(a))){a=a.antecedent;continue}}else if(512&f){if(!(S=h(a))){a=a.antecedent;continue}}else if(96&f)S=v(a);else if(128&f)S=b(a);else if(12&f){if(1===a.antecedents.length){a=a.antecedents[0];continue}S=4&f?x(a):E(a)}else if(256&f){if(!(S=y(a))){a=a.antecedent;continue}}else if(1024&f){var D=a.target,T=D.antecedents;D.antecedents=a.antecedents,S=_(a.antecedent),D.antecedents=T}else if(2&f){var C=a.node;if(C&&C!==i&&206!==t.kind&&207!==t.kind&&108!==t.kind){a=C.flowNode;continue}S=n}else S=NE(r);return p&&(fn[Xr]=p,mn[Xr]=S,Xr++),c--,S}}function f(e){var r=e.node;return rh(254===r.kind||203===r.kind?mg(r):_g(r),t)}function m(n){var i=n.node;if(Wm(t,i)){if(!Wg(n))return dt;if(2===e.getAssignmentTargetKind(i)){var a=_(n.antecedent);return Og(Ef(Ig(a)),Pg(a))}if(r===Le||r===Xt){if((e=>254===e.kind&&e.initializer&&Do(e.initializer)||203!==e.kind&&221===e.parent.kind&&Do(e.parent.right))(i))return Mg(st);var o=Sf(f(n));return u_(o,r)?o:qt}return 1048576&r.flags?((e,t)=>{if(e!==t){if(131072&t.flags)return t;var r=Tg(e,(e=>((e,t)=>{if(!(1048576&e.flags))return u_(e,t);for(var r=0,n=e.types;r<n.length;r++)if(u_(n[r],t))return!0;return!1})(t,e)));if(512&t.flags&&gp(t)&&(r=Ag(r,fp)),u_(t,r))return r}return e})(r,f(n)):r}if($m(t,i)){if(!Wg(n))return dt;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(213===s.kind||214===s.kind))return _(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&243===i.parent.parent.kind&&Wm(t,i.parent.parent.expression))return Dy(Ig(_(n.antecedent)))}function g(t,r){var n=e.skipParentheses(r,!0);if(95===n.kind)return dt;if(221===n.kind){if(55===n.operatorToken.kind)return g(g(t,n.left),n.right);if(56===n.operatorToken.kind)return ad([g(t,n.left),g(t,n.right)])}return z(t,n,!0)}function h(e){var t=Kg(e.node);if(t){var r=Cl(t);if(r&&(2===r.kind||3===r.kind)){var n=_(e.antecedent),i=Lg(Ig(n)),a=r.type?K(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?g(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:Og(a,Pg(n))}if(131072&Al(t).flags)return dt}}function y(n){if(r===Le||r===Xt){var i=n.node,a=208===i.kind?i.expression.expression:i.left.expression;if(Wm(t,gg(a))){var o=_(n.antecedent),s=Ig(o);if(256&e.getObjectFlags(s)){var c=s;if(208===i.kind)for(var l=0,u=i.arguments;l<u.length;l++)c=Rg(c,u[l]);else $b(Dx(i.left.argumentExpression),296)&&(c=Rg(c,i.right));return c===s?o:Og(c,Pg(o))}return o}}}function v(e){var t=_(e.antecedent),r=Ig(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=Lg(r),a=z(i,e.node,n);return a===i?t:Og(a,Pg(t))}function b(r){var n=r.switchStatement.expression,i=_(r.antecedent),a=Ig(i);if(Wm(t,n))a=R(a,r.switchStatement,r.clauseStart,r.clauseEnd);else if(216===n.kind&&Wm(t,n.expression))a=((t,r,n,i)=>{var a=bg(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(e=>void 0===e)),l=n===i||c>=n&&c<i;if(c>-1){var u=a.filter((e=>void 0!==e)),d=c<n?n-1:n,p=c<i?i-1:i;o=u.slice(d,p),s=Ib(d,p,u,l)}else o=a.slice(n,i),s=Ib(n,i,a,l);if(l)return Tg(t,(e=>(ig(e)&s)===s));var _=ag(ad(o.map((e=>L(t,e)||t))),s);return ag(Ag(t,B(_)),s)})(a,r.switchStatement,r.clauseStart,r.clauseEnd);else{q&&(Gm(n,t)?a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(163840&e.flags))):216===n.kind&&Gm(n.expression,t)&&(a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));var o=C(n,a);o&&(a=((t,r,n,i,a)=>{if(i<a&&1048576&t.flags&&Ym(t)===Jm(r)){var o=vg(n).slice(i,a),s=ad(e.map(o,(e=>Qm(t,e)||ze)));if(s!==ze)return s}return k(t,r,(e=>R(e,n,i,a)))})(a,o,r.switchStatement,r.clauseStart,r.clauseEnd))}return Og(a,Pg(i))}function x(t){for(var i,a=[],o=!1,s=!1,c=0,l=t.antecedents;c<l.length;c++){var u=l[c];if(!i&&128&u.flags&&u.clauseStart===u.clauseEnd)i=u;else{if((p=Ig(d=_(u)))===r&&r===n)return p;e.pushIfUnique(a,p),xg(p,r)||(o=!0),Pg(d)&&(s=!0)}}if(i){var d,p=Ig(d=_(i));if(!e.contains(a,p)&&!Ob(i.switchStatement)){if(p===r&&r===n)return p;a.push(p),xg(p,r)||(o=!0),Pg(d)&&(s=!0)}}return Og(T(a,o?2:1),s)}function E(t){var n=rg(t),i=un[n]||(un[n]=new e.Map),a=p();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=Gr;s<qr;s++)if(dn[s]===t&&pn[s]===a&&_n[s].length)return Og(T(_n[s],1),!0);for(var c,l=[],u=!1,d=0,f=t.antecedents;d<f.length;d++){var m=f[d],g=void 0;if(c){dn[qr]=t,pn[qr]=a,_n[qr]=l,qr++;var h=kr;kr=void 0,g=_(m),kr=h,qr--;var y=i.get(a);if(y)return y}else g=c=_(m);var v=Ig(g);if(e.pushIfUnique(l,v),xg(v,r)||(u=!0),v===r)break}var b=T(l,u?2:1);return Pg(c)?Og(b,!0):(i.set(a,b),b)}function T(t,n){if((t=>{for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r})(t))return Mg(ad(e.map(t,Bg)));var i=ad(e.sameMap(t,Lg),n);return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function C(n,i){var a=1048576&r.flags?r:i;if(1048576&a.flags){var o=(r=>{if(e.isBindingPattern(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)){if(e.isIdentifier(r)&&(i=(n=Vm(r)).valueDeclaration)&&(e.isBindingElement(i)||e.isParameter(i))&&t===i.parent&&!i.initializer&&!i.dotDotDotToken)return i}else if(e.isAccessExpression(r)){if(Wm(t,r.expression))return r}else if(e.isIdentifier(r)){var n;if(Zg(n=Vm(r))){var i=n.valueDeclaration;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&e.isAccessExpression(i.initializer)&&Wm(t,i.initializer.expression))return i.initializer;if(e.isBindingElement(i)&&!i.initializer){var a=i.parent.parent;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&(e.isIdentifier(a.initializer)||e.isAccessExpression(a.initializer))&&Wm(t,a.initializer))return i}}}})(n);if(o){var s=Jm(o);if(s&&qm(a,s))return o}}}function k(t,r,n){var i=Jm(r);if(void 0===i)return t;var a=q&&e.isOptionalChain(r)&&Hb(t,98304),o=uo(a?ag(t,2097152):t,i);if(!o)return t;var s=n(o=a?Bf(o):o);return Tg(t,(e=>{var t=((e,t)=>{var r;return uo(e,t)||(null===(r=ul(e,t))||void 0===r?void 0:r.type)||ze})(e,i);return!(131072&s.flags)&&p_(s,t)}))}function N(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=Ym(e);if(a&&a===Jm(t)){var o=Qm(e,Ex(n));if(o)return r===(i?36:37)?o:vf(uo(o,a)||ze)?Cg(e,o):e}}return k(e,t,(e=>I(e,r,n,i)))}function w(e,r,n){if(Wm(t,r))return 2&e.flags&&n?We:ag(e,n?4194304:8388608);q&&n&&Gm(r,t)&&(e=ag(e,2097152));var i=C(r,e);return i?k(e,i,(e=>ag(e,n?4194304:8388608))):e}function F(n,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return w(z(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=gg(i.left),c=gg(i.right);if(216===s.kind&&e.isStringLiteralLike(c))return O(n,s,o,c,a);if(216===c.kind&&e.isStringLiteralLike(s))return O(n,c,o,s,a);if(Wm(t,s))return I(n,o,c,a);if(Wm(t,c))return I(n,o,s,a);q&&(Gm(s,t)?n=P(n,o,c,a):Gm(c,t)&&(n=P(n,o,s,a)));var l=C(s,n);if(l)return N(n,l,o,c,a);var u=C(c,n);if(u)return N(n,u,o,s,a);if(j(s))return U(n,o,c,a);if(j(c))return U(n,o,s,a);break;case 102:return((r,n,i)=>{var a=gg(n.left);if(!Wm(t,a))return i&&q&&Gm(a,t)?ag(r,2097152):r;var o,s=Ex(n.right);if(!d_(s,jt))return r;var c=Qc(s,"prototype");if(c){var l=Zo(c);po(l)||(o=l)}if(po(r)&&(o===Bt||o===jt))return r;if(!o){var u=el(s,1);o=u.length?ad(e.map(u,(e=>Al(Ml(e))))):St}return!i&&1048576&s.flags&&!e.find(s.types,(e=>!ls(e)))?r:V(r,o,i,d_)})(n,i,a);case 101:if(e.isPrivateIdentifier(i.left))return((r,n,i)=>{var a=gg(n.right);if(!Wm(t,a))return r;e.Debug.assertNode(n.left,e.isPrivateIdentifier);var o=Oy(n.left);if(void 0===o)return r;var s=o.parent;return V(r,e.hasStaticModifier(e.Debug.checkDefined(o.valueDeclaration,"should always have a declaration"))?Zo(s):ks(s),i,d_)})(n,i,a);var d=gg(i.right),p=oD(i.left);if(128&p.flags){var _=e.escapeLeadingUnderscores(p.value);if(Jf(n)&&e.isAccessExpression(t)&&Wm(t.expression,d)&&Jm(t)===_)return ag(n,a?524288:65536);if(Wm(t,d))return((t,n,i)=>1048576&t.flags||524288&t.flags&&r!==t||e.isThisTypeParameter(t)||2097152&t.flags&&e.every(t.types,(e=>e.symbol!==ue))?Tg(t,(e=>((e,t,r)=>{var n=Qc(e,t);return n?!!(16777216&n.flags)||r:!!ul(e,t)||!r})(e,n,i))):t)(n,_,a)}break;case 27:return z(n,i.right,a);case 55:return a?z(z(n,i.left,!0),i.right,!0):ad([z(n,i.left,!1),z(n,i.right,!1)]);case 56:return a?ad([z(n,i.left,!0),z(n,i.right,!0)]):z(z(n,i.left,!1),i.right,!1)}return n}function P(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=Ex(r);return i!==n&&Dg(o,(e=>!!(e.flags&a)))||i===n&&Dg(o,(e=>!(e.flags&(3|a))))?ag(e,2097152):e}function I(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Ex(r);if(n&&2&e.flags&&(34===t||35===t)&&65536&i.flags)return ad([qe,Je]);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?pt:e;if(98304&i.flags){if(!q)return e;var a=34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288;return 2&e.flags&&3145728&a?We:ag(e,a)}return n?Fg(Tg(e,34===t?e=>{return __(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:e=>__(e,i)),i):vf(i)?Tg(e,(e=>!(bf(e)&&__(e,i)))):e}function O(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=gg(r.expression);if(!Wm(t,o))return q&&Gm(o,t)&&a===("undefined"!==i.text)?ag(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text)return e===We?pt:ad([pt,qe]);var s=a?S.get(i.text)||128:D.get(i.text)||32768,c=L(e,i.text);return ag(a&&c?Ag(e,B(c)):e,s)}function M(t,r,n,i,a){return n!==i&&e.every(vg(r).slice(n,i),a)?ag(t,2097152):t}function R(t,r,n,i){var a=vg(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,st);if(2&t.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return t;void 0===c&&(c=o.slice(0,l)),c.push(pt)}}return ad(void 0===c?o:c)}var d=ad(o),p=131072&d.flags?st:Fg(Tg(t,(e=>__(d,e))),d);if(!s)return p;var _=Tg(t,(t=>!(bf(t)&&e.contains(a,mp((t=>2097152&t.flags&&e.find(t.types,vf)||t)(t))))));return 131072&p.flags?_:ad([p,_])}function L(e,t){switch(t){case"function":return 1&e.flags?e:jt;case"object":return 2&e.flags?ad([pt,qe]):e;default:return Tn.get(t)}}function B(e){return t=>{if(l_(t,e))return t;if(l_(e,t))return e;if(465829888&t.flags){var r=Mc(t)||Re;if(l_(e,r))return _d([t,e])}return t}}function j(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Wm(t,r.expression)}function U(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=Ex(n);if(!OD(a)&&!ls(a))return t;var o=Qc(a,"prototype");if(!o)return t;var s=Zo(o),c=po(s)?void 0:s;return c&&c!==Bt&&c!==jt?po(t)?c:Tg(t,(t=>{return n=c,524288&(r=t).flags&&1&e.getObjectFlags(r)||524288&n.flags&&1&e.getObjectFlags(n)?r.symbol===n.symbol:l_(r,n);var r,n})):t}function V(e,t,r,n){if(!r)return Tg(e,(e=>!n(e,t)));if(1048576&e.flags){var i=Tg(e,(e=>n(e,t)));if(!(131072&i.flags))return i}return l_(t,e)?t:u_(e,t)?e:u_(t,e)?t:_d([e,t])}function K(r,n,i,a){if(n.type&&(!po(r)||n.type!==Bt&&n.type!==jt)){var o=((t,r)=>{if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0})(n,i);if(o){if(Wm(t,o))return V(r,n.type,a,l_);q&&a&&Gm(o,t)&&!(65536&ig(n.type))&&(r=ag(r,2097152));var s=C(o,r);if(s)return k(r,s,(e=>V(e,n.type,a,l_)))}}return r}function z(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return((e,r,n)=>{if(Wm(t,r))return ag(e,n?2097152:262144);var i=C(r,e);return i?k(e,i,(e=>ag(e,n?2097152:262144))):e})(r,n,i);switch(n.kind){case 79:if(!Wm(t,n)&&A<5){var a=Vm(n);if(Zg(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&Gg(t)){A++;var s=z(r,o.initializer,i);return A--,s}}}case 108:case 106:case 206:case 207:return w(r,n,i);case 208:return((r,n,i)=>{if(tg(n,t)){var a=i||!e.isCallChain(n)?Kg(n):void 0,o=a&&Cl(a);if(o&&(0===o.kind||1===o.kind))return K(r,o,n,i)}if(Jf(r)&&e.isAccessExpression(t)&&e.isPropertyAccessExpression(n.expression)){var s=n.expression;if(Wm(t.expression,gg(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===n.arguments.length){var c=n.arguments[0];if(e.isStringLiteralLike(c)&&Jm(t)===e.escapeLeadingUnderscores(c.text))return ag(r,i?524288:65536)}}return r})(r,n,i);case 212:case 230:return z(r,n.expression,i);case 221:return F(r,n,i);case 219:if(53===n.operator)return z(r,n.operand,!i)}return r}}function Xg(t){return e.findAncestor(t.parent,(t=>e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||262===t.kind||305===t.kind||167===t.kind))}function Yg(t){if(!t.valueDeclaration)return!1;var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=ni(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(t=>(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(8388608&ni(t).flags)))||Qg(n)),t.isAssigned||!1}function Qg(t){if(79===t.kind){if(e.isAssignmentTarget(t)){var r=Vm(t);e.isParameterOrCatchClauseVariable(r)&&(r.isAssigned=!0)}}else e.forEachChild(t,Qg)}function Zg(e){return 3&e.flags&&0!=(2&hy(e))}function eh(e){return!!(465829888&e.flags&&1146880&Rc(e).flags)}function th(e){return!(!(465829888&e.flags)||Hb(Rc(e),98304))}function rh(t,r,n){return n&&2&n||!Sg(t,eh)||!((e,t)=>{var r=t.parent;return 206===r.kind||161===r.kind||208===r.kind&&r.expression===t||207===r.kind&&r.expression===t&&!(Sg(e,th)&&Md(Ex(r.argumentExpression)))})(t,r)&&!((t,r)=>{var n=(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&!((e.isJsxOpeningElement(t.parent)||e.isJsxSelfClosingElement(t.parent))&&t.parent.tagName===t)&&(r&&64&r?Mh(t,8):Mh(t));return n&&!Id(n)})(r,n)?t:Ag(t,(e=>465829888&e.flags?Rc(e):e))}function nh(t){return!!e.findAncestor(t,(t=>{var r=t.parent;return void 0===r?"quit":e.isExportAssignment(r)?r.expression===t&&e.isEntityNameExpression(t):!!e.isExportSpecifier(r)&&(r.name===t||r.propertyName===t)}))}function ih(t,r){if(Mi(t,111551)&&!Km(r)&&!Ui(t)){var n=Li(t);111551&n.flags&&(W.isolatedModules||e.shouldPreserveConstEnums(W)&&nh(r)||!SD(n)?Ki(t):(e=>{var t=ri(e);t.constEnumReferenced||(t.constEnumReferenced=!0)})(t))}}function ah(t){return e.findAncestor(t,(t=>!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)))}function oh(e,t){ni(e).flags|=2,167===t.kind||171===t.kind?ni(t.parent).flags|=4:ni(t).flags|=4}function sh(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,sh)}function ch(e){return _s(ks(la(e)))===Xe}function lh(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!ch(i)&&t.flowNode&&!$g(t.flowNode,!1)&&Un(t,n)}function uh(t){var r=Km(t),n=e.getThisContainer(t,!0),i=!1;switch(171===n.kind&&lh(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),214===n.kind&&(n=e.getThisContainer(n,!1),i=!0),((t,r)=>{e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&Un(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)})(t,n),n.kind){case 261:Un(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 260:Un(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 171:ph(t,n)&&Un(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:Un(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&J<2&&oh(t,n);var a=dh(t,!0,n);if(ee){var o=Zo(ue);if(a===o&&i)Un(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Un(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=dh(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Re}function dh(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!vh(t)||e.getThisParameter(n))){var a=Tl(bl(n))||i&&(t=>{var r=e.getJSDocType(t);if(r&&317===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Tp(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Tp(i.typeExpression)})(n);if(!a){var o=(t=>213===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:169===t.kind&&205===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:213===t.kind&&296===t.parent.kind&&205===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:213===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0)(n);if(i&&o){var s=Tx(o).symbol;s&&s.members&&16&s.flags&&(a=ks(s).thisType)}else $v(n)&&(a=ks(ca(n.symbol)).thisType);a||(a=gh(n))}if(a)return qg(t,a)}if(e.isClassLike(n.parent)){var c=la(n.parent);return qg(t,e.isStatic(n)?Zo(c):ks(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=la(n);return l&&Zo(l)}if(n.externalModuleIndicator)return Je;if(r)return Zo(ue)}}function ph(t,r){return!!e.findAncestor(t,(t=>e.isFunctionLikeDeclaration(t)?"quit":164===t.kind&&t.parent===r))}function _h(t){var r=208===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&214===i.kind;)i=e.getSuperContainer(i,!0),a=J<2;var o=0;if(!(t=>!(!t||(r?171!==t.kind:!e.isClassLike(t.parent)&&205!==t.parent.kind||(e.isStatic(t)?169!==t.kind&&168!==t.kind&&172!==t.kind&&173!==t.kind&&167!==t.kind&&170!==t.kind:169!==t.kind&&168!==t.kind&&172!==t.kind&&173!==t.kind&&167!==t.kind&&166!==t.kind&&171!==t.kind))))(i)){var s=e.findAncestor(t,(e=>e===i?"quit":162===e.kind));return s&&162===s.kind?Un(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Un(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||205===i.parent.kind)?Un(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Un(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),je}if(r||171!==n.kind||lh(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(o=512,!r&&J>=2&&J<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(t=>{e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(ni(t).flags|=134217728)}))):o=256,ni(t).flags|=o,169===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?ni(i).flags|=4096:ni(i).flags|=2048),a&&oh(t.parent,i),205===i.parent.kind)return J<2?(Un(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),je):Re;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return Un(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),je;var l=ks(la(c)),u=l&&ms(l)[0];return u?171===i.kind&&ph(t,i)?(Un(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),je):512===o?_s(l):$s(u,l.thisType):je}function fh(t){return 4&e.getObjectFlags(t)&&t.target===Gt?eu(t)[0]:void 0}function mh(t){return Ag(t,(t=>2097152&t.flags?e.forEach(t.types,fh):fh(t)))}function gh(t){if(214!==t.kind){if(n_(t)){var r=Vh(t);if(r){var n=r.thisParameter;if(n)return Zo(n)}}var i=e.isInJSFile(t);if(ee||i){var a=(e=>169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind?213===e.kind&&296===e.parent.kind?e.parent.parent:void 0:e.parent)(t);if(a){for(var o=Ph(a),s=a,c=o;c;){var l=mh(c);if(l)return Xp(l,gm(Rh(a)));if(296!==s.parent.kind)break;c=Ph(s=s.parent.parent)}return tm(o?jf(o):sx(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(221===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(u);if(_.commonJsModuleIndicator&&Vm(p)===_.symbol)return}return tm(sx(p))}}}}}function hh(t){var r=t.parent;if(n_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Cv(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return bv(i,a,i.length,Re,void 0,0);var o=ni(n),s=o.resolvedSignature;o.resolvedSignature=Ir;var c=a<i.length?Sf(Tx(i[a])):t.initializer?void 0:He;return o.resolvedSignature=s,c}var l=Vh(r);if(l){var u=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?gb(l,u):mb(l,u)}}}function yh(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Tp(r);switch(t.kind){case 164:return hh(t);case 203:return(t=>{var r=t.parent.parent,n=t.propertyName||t.name,i=yh(r)||203!==r.kind&&r.initializer&&lx(r,t.dotDotDotToken?64:0);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){if(202===r.name.kind){var a=e.indexOfNode(t.parent.elements,t);if(a<0)return;return Nh(i,a)}var o=yd(n);return Ls(o)?uo(i,Ks(o)):void 0}})(t);case 167:if(e.isStatic(t))return(t=>{var r=e.isExpression(t.parent)&&Mh(t.parent);return r?Ch(r,la(t).escapedName):void 0})(t)}}function vh(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function bh(t,r){var n=!!(2&e.getFunctionFlags(r)),i=xh(r);if(i)return cS(t,i,n)||void 0}function xh(t){var r=Nl(t);if(r)return r;var n=Uh(t);if(n&&!wl(n))return Al(n);var i=e.getImmediatelyInvokedFunctionExpression(t);return i?Mh(i):void 0}function Eh(e,t){var r=Cv(e).indexOf(t);return-1===r?void 0:Sh(e,r)}function Sh(t,r){if(e.isImportCall(t))return 0===r?Ye:1===r?ku(!1):Re;var n=ni(t).resolvedSignature===Mr?Mr:Hv(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return Lh(n,t);var i=n.parameters.length-1;return U(n)&&r>=i?Vd(Zo(n.parameters[i]),yp(r-i),256):fb(n,r)}function Dh(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=li(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Th(t){if(!t.symbol)return Ex(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=Tp(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=uh(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Ch(a,o)||void 0}}function Ch(t,r,n){return Ag(t,(t=>{var i,a;if(Sc(t)&&!t.declaration.nameType){var o=fc(t),s=Mc(o)||o,c=n||hp(e.unescapeLeadingUnderscores(r));if(u_(c,s))return Ud(t,c)}else if(3670016&t.flags){var l=Qc(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&oo(a,0)>=0?void 0:Zo(l);if(kf(t)){var u=wf(t);if(u&&e.isNumericLiteralName(r)&&+r>=0)return u}return null===(i=rl(il(t),n||hp(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function kh(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return Ah(t,r)}function Ah(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&yh(t);if(i)return i;var a=Ph(n,r);if(a){if(Vs(t)){var o=la(t);return Ch(a,o.escapedName,ri(o).nameType)}if(t.name){var s=yd(t.name);return Ag(a,(e=>{var t;return null===(t=rl(il(e),s))||void 0===t?void 0:t.type}),!0)}}}function Nh(e,t){return e&&(Ch(e,""+t)||Ag(e,(e=>VE(1,e,Je,void 0,!1)),!0))}function wh(t){if(e.isJsxAttribute(t)){var r=Ph(t.parent);if(!r||po(r))return;return Ch(r,t.name.escapedText)}return Mh(t.parent)}function Fh(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 153:return!0;case 206:case 212:return Fh(e.expression);case 288:return!e.expression||Fh(e.expression)}return!1}function Ph(t,r){var n=Ih(e.isObjectLiteralMethod(t)?kh(t,r):Mh(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Ag(n,Kc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?((t,r)=>((t,r)=>{var n=Ym(t),i=n&&e.find(r.properties,(e=>e.symbol&&296===e.kind&&e.symbol.escapedName===n&&Fh(e.initializer))),a=i&&Dx(i.initializer);return a&&Qm(t,a)})(r,t)||U_(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&296===e.kind&&Fh(e.initializer)&&qm(r,e.symbol.escapedName))),(e=>[()=>Dx(e.initializer),e.symbol.escapedName])),e.map(e.filter(Ac(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&qm(r,e.escapedName)})),(e=>[()=>Je,e.escapedName]))),u_,r))(t,i):1048576&i.flags&&e.isJsxAttributes(t)?((t,r)=>U_(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&285===e.kind&&qm(r,e.symbol.escapedName)&&(!e.initializer||Fh(e.initializer)))),(e=>[e.initializer?()=>Dx(e.initializer):()=>rt,e.symbol.escapedName])),e.map(e.filter(Ac(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&qm(r,e.escapedName)})),(e=>[()=>Je,e.escapedName]))),u_,r))(t,i):i}}function Ih(t,r,n){if(t&&Hb(t,465829888)){var i=Rh(r);if(i&&e.some(i.inferences,yx)){if(n&&1&n)return Oh(t,i.nonFixingMapper);if(i.returnMapper){var a=Oh(t,i.returnMapper);return 1048576&a.flags&&Zu(a.types,tt)&&Zu(a.types,nt)?Tg(a,(e=>e!==tt&&e!==nt)):a}}}return t}function Oh(t,r){return 465829888&t.flags?Xp(t,r):1048576&t.flags?ad(e.map(t.types,(e=>Oh(e,r))),0):2097152&t.flags?_d(e.map(t.types,(e=>Oh(e,r)))):t}function Mh(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 254:case 164:case 167:case 166:case 203:return((t,r)=>{var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=yh(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Bo(n.name,!0,!1)}})(t,r);case 214:case 247:return(t=>{var r=e.getContainingFunction(t);if(r){var n=xh(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=$E(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=Ag(n,Qx);return o&&ad([o,Ab(o)])}return n}}})(t);case 224:return(t=>{var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=xh(r);if(i)return t.asteriskToken?i:cS(0,i,0!=(2&n))}})(n);case 218:return((e,t)=>{var r=Mh(e,t);if(r){var n=Qx(r);return n&&ad([n,Ab(n)])}})(n,r);case 208:case 209:return Eh(n,t);case 211:case 229:return e.isConstTypeReference(n.type)?o(n):Tp(n.type);case 221:return((t,r)=>{var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?(t=>{var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=(t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t))return Vm(t);if(e.isPropertyAccessExpression(t)){var r=Ex(t.expression);return e.isPrivateIdentifier(t.name)?((e,t)=>{var r=Iy(t.escapedText,t);return r&&My(e,r)})(r,t.name):Qc(r,t.name.escapedText)}})(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&Xp(Tp(c),ri(a).mapper)||o.initializer&&Ex(t.left):0===i?Ex(t.left):Th(t);case 5:if(Dh(t,i))return Th(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return Tp(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=li(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return Ch(Tp(p),_)}return}}return e.isInJSFile(s)?void 0:Ex(t.left)}return Ex(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var m=f&&e.getEffectiveTypeAnnotationNode(f);return m?Tp(m):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}})(n):void 0;case 56:case 60:var s=Mh(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Ex(i):s;case 55:case 27:return t===o?Mh(n,r):void 0;default:return}})(t,r);case 296:case 297:return Ah(n,r);case 298:return Mh(n.parent,r);case 204:var i=n;return Nh(Ph(i,r),e.indexOfNode(i.elements,t));case 222:return((e,t)=>{var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Mh(r,t):void 0})(t,r);case 233:return e.Debug.assert(223===n.parent.kind),((e,t)=>{if(210===e.parent.kind)return Eh(e.parent,t)})(n.parent,t);case 212:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):Tp(a.typeExpression.type):Mh(n,r);case 230:return Mh(n,r);case 271:return Ko(n);case 288:return(t=>{var r=t.parent;return e.isJsxAttributeLike(r)?Mh(t):e.isJsxElement(r)?((t,r)=>{var n=Ph(t.openingElement.tagName),i=sy(ay(t));if(n&&!po(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=Ch(n,i);return s&&(1===a.length?s:Ag(s,(e=>pf(e)?Vd(e,yp(o)):e),!0))}})(r,t):void 0})(n);case 285:case 287:return wh(n);case 280:case 279:return((t,r)=>e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:Sh(t,0))(n,r)}}function o(e){return Mh(e)}}function Rh(t){var r=e.findAncestor(t,(e=>!!e.inferenceContext));return r&&r.inferenceContext}function Lh(t,r){return 0!==Ev(r)?((e,t)=>{var r=Sb(e,ze);r=Bh(t,ay(t),r);var n=ry(w.IntrinsicAttributes,t);return _o(n)||(r=ac(n,r)),r})(t,r):((t,r)=>{var n,i=ay(r),a=(n=i,oy(w.ElementAttributesPropertyNameContainer,n)),o=void 0===a?Sb(t,ze):""===a?Al(t):((e,t)=>{if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=Al(i[n]);if(po(a))return a;var o=uo(a,t);if(!o)return;r.push(o)}return _d(r)}var s=Al(e);return po(s)?s:uo(s,t)})(t,a);if(!o)return a&&e.length(r.attributes.properties)&&Un(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),ze;if(po(o=Bh(r,i,o)))return o;var s=o,c=ry(w.IntrinsicClassAttributes,r);if(!_o(c)){var l=ss(c.symbol),u=Al(t);s=ac(l?Yl(c,vl([u],l,yl(l),e.isInJSFile(r))):c,s)}var d=ry(w.IntrinsicAttributes,r);return _o(d)||(s=ac(d,s)),s})(t,r)}function Bh(t,r,n){var i,a=(i=r)&&ai(i.exports,w.LibraryManagedAttributes,788968);if(a){var o=ks(a),s=(e=>{if(Qh(e.tagName))return Ll(zv(e,t=uy(e)));var t,r=sx(e.tagName);return 128&r.flags?(t=ly(r,e))?Ll(zv(e,t)):je:r})(t);if(524288&a.flags){var c=ri(a).typeParameters;if(e.length(c)>=2)return nu(a,vl([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Yl(o,vl([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function jh(t,r){var n=el(t,0),i=e.filter(n,(t=>!((t,r)=>{for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||_l(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!vb(t)&&hb(t)<n})(t,r)));return 1===i.length?i[0]:(t=>e.getStrictOptionValue(W,"noImplicitAny")?e.reduceLeft(t,((t,r)=>t!==r&&t?nc(t.typeParameters,r.typeParameters)?((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Fp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=hb(e),i=hb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=vb(e)||vb(t),l=c&&!vb(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=mb(a,d);a===t&&(p=Xp(p,r));var _=mb(o,d)||ze;o===t&&(_=Xp(_,r));var f=ad([p,_]),m=c&&!l&&d===s-1,g=d>=yb(a)&&d>=yb(o),h=d>=n?void 0:ub(e,d),y=d>=i?void 0:ub(t,d),v=$n(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=m?Bu(f):f,u[d]=v}if(l){var b=$n(1,"args");b.type=Bu(fb(o,s)),o===t&&(b.type=Xp(b.type,r)),u[s]=b}return u})(t,r,n),s=qs(a,i,((e,t,r)=>e&&t?Gf(e,ad([Zo(e),Xp(Zo(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=2097152,s.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?Lp(t.mapper,n):n),s})(t,r):void 0:t)):void 0)(i)}function Uh(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?Vh(t):void 0}function Vh(t){e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=xl(t);if(r)return r;var n=Ph(t,1);if(n){if(!(1048576&n.flags))return jh(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=jh(o[a],t);if(s)if(i){if(!af(i[0],s,!1,!0,!0,o_))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Ys(i[0],i):void 0}}function Kh(e){return 203===e.kind&&!!e.initializer||221===e.kind&&63===e.operatorToken.kind}function zh(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=Ph(t),l=e.isAssignmentTarget(t),u=px(t),d=!1,p=0;p<a;p++){var _=i[p];if(225===_.kind){J<2&&$D(_,W.downlevelIteration?1536:1024);var f=Tx(_.expression,r,n);if(pf(f))o.push(f),s.push(8);else if(l){var m=sl(f,Qe)||VE(65,f,Je,void 0,!1)||ze;o.push(m),s.push(4)}else o.push(UE(33,f,Je,_.expression)),s.push(4)}else if(ie&&227===_.kind)d=!0,o.push(Ge),s.push(2);else{var g=_x(_,r,Nh(c,o.length),n);if(o.push(To(g,!0,d)),s.push(d?2:1),c&&Sg(c,gf)&&r&&2&r&&!(4&r)&&t_(_)){var h=Rh(t);e.Debug.assert(h),pm(h,_,g)}}}return l?Wu(o,s):n||u||c&&Sg(c,gf)?Wh(Wu(o,s,u)):Wh(Bu(o.length?ad(e.sameMap(o,((e,t)=>8&s[t]?zd(e,Qe)||Re:e)),2):q?ut:He,u))}function Wh(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=Ql(t)).objectFlags|=147456),r}function Jh(t){switch(t.kind){case 162:return(e=>$b(Hh(e),296))(t);case 79:return e.isNumericLiteralName(t.escapedText);case 8:case 10:return e.isNumericLiteralName(t.text);default:return!1}}function Hh(t){var r=ni(t.expression);if(!r.resolvedType){if((e.isTypeLiteralNode(t.parent.parent)||e.isClassLike(t.parent.parent)||e.isInterfaceDeclaration(t.parent.parent))&&e.isBinaryExpression(t.expression)&&101===t.expression.operatorToken.kind&&172!==t.parent.kind&&173!==t.parent.kind)return r.resolvedType=je;if(r.resolvedType=Tx(t.expression),e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&e.isClassExpression(t.parent.parent)){var n=ah(e.getEnclosingBlockScopeContainer(t.parent.parent));n&&(ni(n).flags|=65536,ni(t).flags|=524288,ni(t.parent.parent).flags|=524288)}(98304&r.resolvedType.flags||!$b(r.resolvedType,402665900)&&!u_(r.resolvedType,ft))&&Un(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function $h(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r[0];return e.isKnownSymbol(t)||n&&e.isNamedDeclaration(n)&&e.isComputedPropertyName(n.name)&&$b(Hh(n.name),4096)}function Gh(t,r,n,i){for(var a,o,s,c=[],l=r;l<n.length;l++){var u=n[l];(i===Ye&&!$h(u)||i===Qe&&(s=null===(o=(a=u).declarations)||void 0===o?void 0:o[0],e.isNumericLiteralName(a.escapedName)||s&&e.isNamedDeclaration(s)&&Jh(s.name))||i===at&&$h(u))&&c.push(Zo(n[l]))}return Ul(i,c.length?ad(c,2):Je,px(t))}function qh(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ri(t);if(!r.immediateTarget){var n=xi(t);if(!n)return e.Debug.fail();r.immediateTarget=Oi(n,!0)}return r.immediateTarget}function Xh(t){var r=Mf(Ag(t,Rc));return!!(126615553&r.flags||3145728&r.flags&&e.every(r.types,Xh))}function Yh(t){return e.stringContains(t,"-")}function Qh(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Zh(e,t){return e.initializer?_x(e.initializer,t):rt}function ey(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(Ye);else{if(288===a.kind&&!a.expression)continue;r.push(_x(a,t))}}return r}function ty(t,r,n){for(var i=0,a=Ac(t);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=r.get(o.escapedName);if(s){var c=Un(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function ry(e,t){var r=ay(t),n=r&&ia(r),i=n&&ai(n,e,788968);return i?ks(i):je}function ny(t){var r=ni(t);if(!r.resolvedSymbol){var n=ry(w.IntrinsicElements,t);if(_o(n))return Z&&Un(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(w.IntrinsicElements)),r.resolvedSymbol=Pe;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Qc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):sl(n,Ye)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Un(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+w.IntrinsicElements),r.resolvedSymbol=Pe)}return r.resolvedSymbol}function iy(t){var r=t&&e.getSourceFileOfNode(t),n=r&&ni(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(W,r),W);if(i){var a=qi(t,i,e.getEmitModuleResolutionKind(W)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Pe?ca(Ri(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function ay(e){var t=e&&ni(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=iy(e);if(!r||r===Pe){var n=Mn(e);r=li(e,n,1920,void 0,n,!1)}if(r){var i=Ri(ai(ia(Ri(r)),w.JSX,1920));if(i&&i!==Pe)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Ri(Su(w.JSX,1920,void 0));return a!==Pe?a:void 0}function oy(t,r){var n=r&&ai(r.exports,t,788968),i=n&&ks(n),a=i&&Ac(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Un(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function sy(e){return oy(w.ElementChildrenAttributeNameContainer,e)}function cy(t,r){if(4&t.flags)return[Ir];if(128&t.flags){var n=ly(t,r);return n?[zv(r,n)]:(Un(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+w.IntrinsicElements),e.emptyArray)}var i=Kc(t),a=el(i,1);return 0===a.length&&(a=el(i,0)),0===a.length&&1048576&i.flags&&(a=rc(e.map(i.types,(e=>cy(e,r))))),a}function ly(t,r){var n=ry(w.IntrinsicElements,r);if(!_o(n)){var i=t.value,a=Qc(n,e.escapeLeadingUnderscores(i));return a?Zo(a):sl(n,Ye)||void 0}return Re}function uy(t){e.Debug.assert(Qh(t.tagName));var r=ni(t);if(!r.resolvedJsxElementAttributesType){var n=ny(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Zo(n)||je:2&r.jsxFlags?r.resolvedJsxElementAttributesType=sl(ry(w.IntrinsicElements,t),Ye)||je:r.resolvedJsxElementAttributesType=je}return r.resolvedJsxElementAttributesType}function dy(e){var t=ry(w.ElementClass,e);if(!_o(t))return t}function py(e){return ry(w.Element,e)}function _y(e){var t=py(e);if(t)return ad([t,qe])}function fy(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&(t=>{(t=>{if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return xT(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),tT(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(287!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return xT(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&288===s.kind&&!s.expression)return xT(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}})(t),r=t,0===(W.jsx||0)&&Un(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===py(r)&&Z&&Un(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!iy(t)){var i=Sn&&2===W.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Mn(t),o=n?t.tagName:t,s=void 0;if(e.isJsxOpeningFragment(t)&&"null"===a||(s=li(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!Ui(s)&&Ki(s)),e.isJsxOpeningFragment(t)){var c=Rn(e.getSourceFileOfNode(t));c&&li(o,c,111551,i,c,!0)}}if(n){var l=t,u=Hv(l);Xv(u,t),((t,r,n)=>{if(1===t)(i=_y(n))&&M_(r,i,Nn,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=dy(n))&&M_(r,a,Nn,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=_y(n),a=dy(n);if(!i||!a)return;M_(r,ad([i,a]),Nn,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}})(Ev(l),Al(u),l)}}function my(e,t,r){if(524288&e.flags){if(Cc(e,t)||ul(e,t)||js(t)&&ol(e,Ye)||r&&Yh(t))return!0}else if(3145728&e.flags&&gy(e))for(var n=0,i=e.types;n<i.length;n++)if(my(i[n],t,r))return!0;return!1}function gy(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,gy)||2097152&t.flags&&e.every(t.types,gy))}function hy(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function yy(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function vy(e,t,r,n,i,a){return void 0===a&&(a=!0),by(e,t,r,n,i,a?161===e.kind?e.right:200===e.kind?e:203===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function by(t,r,n,i,a,o){var s,c,l=e.getDeclarationModifierFlagsFromSymbol(a,n);if(r){if(J<2&&xy(a))return o&&Un(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&l)return o&&Un(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,za(a),Ja(Q_(a))),!1}if(128&l&&xy(a)&&(e.isThisProperty(t)||e.isThisInitializedObjectBindingExpression(t)||e.isObjectBindingPattern(t.parent)&&e.isThisInitializedDeclaration(t.parent.parent))&&(c=e.getClassLikeDeclarationOfSymbol(ua(a)))&&(s=t,e.findAncestor(s,(t=>!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"))))return o&&Un(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,za(a),e.getTextOfIdentifierOrLiteral(c.name)),!1;if(!(24&l))return!0;if(8&l)return!!tD(t,c=e.getClassLikeDeclarationOfSymbol(ua(a)))||(o&&Un(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,za(a),Ja(Q_(a))),!1);if(r)return!0;var u=eD(t,(e=>ef(ks(la(e)),a,n)));return!u&&(u=(u=(t=>{var r=(t=>{var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0})(t),n=(null==r?void 0:r.type)&&Tp(r.type);if(n&&262144&n.flags&&(n=wc(n)),n&&7&e.getObjectFlags(n))return rs(n)})(t))&&ef(u,a,n),32&l||!u)?(o&&Un(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,za(a),Ja(Q_(a)||i)),!1):!!(32&l)||(262144&i.flags&&(i=i.isThisType?wc(i):Mc(i)),!(!i||!ns(i,u))||(o&&Un(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,za(a),Ja(u),Ja(i)),!1))}function xy(e){return!!Y_(e,(e=>!(8192&e.flags)))}function Ey(e){return Ay(Tx(e),e)}function Sy(e){return!!(98304&(q?Of(e):e.flags))}function Dy(e){return Sy(e)?jf(e):e}function Ty(t,r){Un(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function Cy(t,r){Un(t,32768&r?65536&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function ky(t,r,n){if(q&&2&t.flags)return Un(r,e.Diagnostics.Object_is_of_type_unknown),je;var i=98304&(q?Of(t):t.flags);if(i){n(r,i);var a=jf(t);return 229376&a.flags?je:a}return t}function Ay(e,t){return ky(e,t,Ty)}function Ny(t,r){var n=Ay(t,r);return 16384&n.flags&&Un(r,e.Diagnostics.Object_is_possibly_undefined),n}function wy(e,t){return 32&e.flags?((e,t)=>{var r=Tx(e.expression),n=zf(r,e.expression);return Kf(Ly(e,e.expression,Ay(n,e.expression),e.name,t),e,n!==r)})(e,t):Ly(e,e.expression,Ey(e.expression),e.name,t)}function Fy(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?Ay(uh(t.left),t.left):Ey(t.left);return Ly(t,t.left,n,t.right,r)}function Py(t){for(;212===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Iy(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Oy(t){if(e.isExpressionNode(t)){var r=ni(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=Iy(t.escapedText,t)),r.resolvedSymbol}}function My(e,t){return Qc(e,t.escapedName)}function Ry(t,r){return(ko(r)||e.isThisProperty(t)&&Ao(r))&&e.getThisContainer(t,!0)===No(r)}function Ly(t,r,n,i,a){var s,c,l=ni(r).resolvedSymbol,u=e.getAssignmentTargetKind(t),d=Kc(0!==u||Py(t)?tm(n):n),p=po(d)||d===ct;if(e.isPrivateIdentifier(i)){J<99&&(0!==u&&$D(t,1048576),1!==u&&$D(t,524288));var _=Iy(i.escapedText,i);if(u&&_&&_.valueDeclaration&&e.isMethodDeclaration(_.valueDeclaration)&&xT(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),p){if(_)return _o(d)?je:d;if(!e.getContainingClass(i))return xT(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Re}if(!(s=_?My(n,_):void 0)&&((t,r,n)=>{var i,a=Ac(t);a&&e.forEach(a,(t=>{var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var s=fi(r);if(i){var c=e.Debug.checkDefined(i.valueDeclaration),l=e.Debug.checkDefined(e.getContainingClass(c));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(e=>l===e))){var p=Un(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,s,Ja(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,s),e.createDiagnosticForNode(c,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,s)),!0}}return Un(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,s,fi(l.name||o)),!0}return!1})(n,i,_))return je;s&&65536&s.flags&&!(32768&s.flags)&&1!==u&&Un(t,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(r)&&l&&ih(l,t),_o(d)?je:d;s=Qc(d,i.escapedText)}if(e.isIdentifier(r)&&l&&(W.isolatedModules||!s||!(SD(s)||8&s.flags&&299===t.parent.kind)||e.shouldPreserveConstEnums(W)&&nh(t))&&ih(l,t),s){Jn(s)&&Ad(t,s)&&s.declarations&&Hn(i,s.declarations,i.escapedText),((t,r,n)=>{var i,a=t.valueDeclaration;if(a&&!e.getSourceFileOfNode(r).isDeclarationFile){var o=e.idText(n);!Uy(r)||(t=>e.isPropertyDeclaration(t)&&t.questionToken)(a)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||oi(a,n)||e.isMethodDeclaration(a)&&32&e.getCombinedModifierFlags(a)||!W.useDefineForClassFields&&(e=>{if(!(32&e.parent.flags))return!1;for(var t=Zo(e.parent);;){if(!(t=t.symbol&&Vy(t)))return!1;var r=Qc(t,e.escapedName);if(r&&r.valueDeclaration)return!0}})(t)?257!==a.kind||178===r.parent.kind||16777216&a.flags||oi(a,n)||(i=Un(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Un(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}})(s,t,i),Yy(s,t,Qy(r,l)),ni(t).resolvedSymbol=s;var f=e.isWriteAccess(t);if(vy(t,106===r.kind,f,d,s),Kb(t,s,u))return Un(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),je;c=Ry(t,s)?Le:f?Qo(s):Zo(s)}else{var m=e.isPrivateIdentifier(i)||0!==u&&Od(n)&&!e.isThisTypeParameter(n)?void 0:ul(d,i.escapedText);if(!m||!m.type){var g=By(t,n.symbol,!0);return!g&&Cd(n)?Re:n.symbol===ue?(ue.exports.has(i.escapedText)&&418&ue.exports.get(i.escapedText).flags?Un(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Ja(n)):Z&&Un(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ja(n)),Re):(i.escapedText&&!gi(t)&&Ky(i,e.isThisTypeParameter(n)?d:n,g),je)}m.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Un(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ja(d)),c=W.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?ad([m.type,Je]):m.type,W.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&Un(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText)),m.declaration&&268435456&e.getCombinedNodeFlags(m.declaration)&&Hn(i,[m.declaration],i.escapedText)}return jy(t,s,c,i,a)}function By(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===W.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&ii(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&108===t.expression.kind)}return!1}function jy(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return Wf(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!KS(r.declarations))return n;if(n===Le)return Fo(t,r);n=rh(n,t,a);var s=!1;if(q&&Q&&e.isAccessExpression(t)&&108===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&DS(c)&&!e.isStatic(c)){var l=Xg(t);171!==l.kind||l.parent!==c.parent||16777216&c.flags||(s=!0)}}else q&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Xg(t)===Xg(r.valueDeclaration)&&(s=!0);var u=qg(t,n,s?Bf(n):n);return s&&!(32768&Of(n))&&32768&Of(u)?(Un(i,e.Diagnostics.Property_0_is_used_before_being_assigned,za(r)),n):o?Ef(u):u}function Uy(t){return!!e.findAncestor(t,(t=>{switch(t.kind){case 167:return!0;case 296:case 169:case 172:case 173:case 298:case 162:case 233:case 288:case 285:case 286:case 287:case 280:case 228:case 291:return!1;case 214:case 238:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function Vy(e){var t=ms(e);if(0!==t.length)return _d(t)}function Ky(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(!Qc(c,t.escapedText)&&!ul(c,t.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Ja(c));break}}if(zy(t.escapedText,r)){var l=e.declarationNameToString(t),u=Ja(r);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var d=Hx(r);if(d&&Qc(d,t.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Ja(r)),a=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(t),_=Ja(r),f=((t,r)=>{var n=Kc(r).symbol;if(n)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(n)];if(void 0!==c&&e.contains(c,t))return s}})(p,r);if(void 0!==f)i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,p,_,f);else{var m=Jy(t,r);if(void 0!==m){var g=e.symbolName(m),h=n?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,h,p,_,g),a=m.valueDeclaration&&e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var y=(t=>{return W.lib&&!W.lib.includes("dom")&&(n=t=>t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName)),3145728&(r=t).flags?e.every(r.types,n):n(r))&&k_(t);var r,n})(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(Yc(i,r),y,p,_)}}}}var v=e.createDiagnosticForNodeFromMessageChain(t,i);a&&e.addRelatedInfo(v,a),Vn(!n||i.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function zy(t,r){var n=r.symbol&&Qc(Zo(r.symbol),t);return void 0!==n&&!!n.valueDeclaration&&e.isStatic(n.valueDeclaration)}function Wy(e,t){return Xy(e,Ac(t),106500)}function Jy(t,r){var n=Ac(r);if("string"!=typeof t){var i=t.parent;e.isPropertyAccessExpression(i)&&(n=e.filter(n,(e=>Zy(i,r,e)))),t=e.idText(t)}return Xy(t,n,111551)}function Hy(t,r){var n=e.isString(t)?t:e.idText(t),i=Ac(r),a="for"===n?e.find(i,(t=>"htmlFor"===e.symbolName(t))):"class"===n?e.find(i,(t=>"className"===e.symbolName(t))):void 0;return null!=a?a:Xy(n,i,111551)}function $y(t,r){var n=Jy(t,r);return n&&e.symbolName(n)}function Gy(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),ui(t,r,n,void 0,r,!1,!1,!0,((t,n,i)=>{var a;return e.Debug.assertEqual(r,n,"name should equal outerName"),ai(t,n,i)||(a=t===ce?e.mapDefined(["string","number","boolean","object","bigint","symbol"],(e=>t.has(e.charAt(0).toUpperCase()+e.slice(1))?$n(524288,e):void 0)).concat(e.arrayFrom(t.values())):e.arrayFrom(t.values()),Xy(e.unescapeLeadingUnderscores(n),a,i))}))}function qy(t,r){return r.exports&&Xy(e.idText(t),ta(r),2623475)}function Xy(t,r,n){return e.getSpellingSuggestion(t,r,(t=>{var r=e.symbolName(t);if(!e.startsWith(r,'"')){if(t.flags&n)return r;if(2097152&t.flags){var i=(e=>{if(ri(e).aliasTarget!==Ie)return Li(e)})(t);if(i&&i.flags&n)return r}}}))}function Yy(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?ri(t).target:t).isReferenced=67108863}}}function Qy(t,r){return 108===t.kind||!!r&&e.isEntityNameExpression(t)&&r===Vm(e.getFirstIdentifier(t))}function Zy(e,t,r){return tv(e,206===e.kind&&106===e.expression.kind,!1,t,r)}function ev(e,t,r,n){if(po(n))return!0;var i=Qc(n,r);return!!i&&tv(e,t,!1,n,i)}function tv(t,r,n,i,a){if(po(i))return!0;if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(e=>e===o))}return by(t,r,n,i,a)}function rv(t){var r=t.initializer;if(255===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return la(n)}else if(79===r.kind)return Vm(r)}function nv(t,r,n){var i=0!==e.getAssignmentTargetKind(t)||Py(t)?tm(r):r,a=t.argumentExpression,o=Tx(a);if(_o(i)||i===ct)return i;if(qb(i)&&!e.isStringLiteralLike(a))return Un(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),je;var s=zd(i,(t=>{var r,n=e.skipParentheses(t);if(79===n.kind){var i=Vm(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(243===o.kind&&a===o.statement&&rv(o)===i&&1===al(r=Ex(o.expression)).length&&ol(r,Qe))return!0;a=o,o=o.parent}}return!1})(a)?Qe:o,e.isAssignmentTarget(t)?4|(Od(i)&&!e.isThisTypeParameter(i)?2:0):32,t)||je;return Ux(jy(t,ni(t).resolvedSymbol,s,a,n),t)}function iv(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function av(t){return iv(t)&&e.forEach(t.typeArguments,zS),210===t.kind?Tx(t.template):e.isJsxOpeningLikeElement(t)?Tx(t.attributes):165!==t.kind&&e.forEach(t.arguments,(e=>{Tx(e)})),Ir}function ov(e){return av(e),Or}function sv(e){return!!e&&(225===e.kind||232===e.kind&&e.isSpread)}function cv(t){return e.findIndex(t,sv)}function lv(e){return!!(16384&e.flags)}function uv(e){return!!(49155&e.flags)}function dv(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=hb(n),c=yb(n);if(210===t.kind)if(a=r.length,223===t.template.kind){var l=e.last(t.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=t.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(165===t.kind)a=kv(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(209===t.kind),0===yb(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var d=cv(r);if(d>=0)return d>=yb(n)&&(vb(n)||d<hb(n))}if(!vb(n)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p<c;p++)if(131072&Tg(fb(n,p),e.isInJSFile(t)&&!q?uv:lv).flags)return!1;return!0}function pv(t,r){var n=e.length(t.typeParameters),i=yl(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function _v(e){return mv(e,0,!1)}function fv(e){return mv(e,0,!1)||mv(e,1,!1)}function mv(e,t,r){if(524288&e.flags){var n=Dc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function gv(t,r,n,i){var a=cm(t.typeParameters,t,0,i),o=bb(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return om(s?Vp(r,s):r,t,((e,t)=>{Pm(a.inferences,e,t)})),n||sm(r,t,((e,t)=>{Pm(a.inferences,e,t,128)})),Pl(t,jm(a),e.isInJSFile(r.declaration))}function hv(t){if(!t)return ot;var r=Tx(t);return e.isOptionalChainRoot(t.parent)?jf(r):e.isOptionalChain(t.parent)?Vf(r):r}function yv(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return((e,t,r,n)=>{var i=Lh(t,e),a=ox(e.attributes,i,n,r);return Pm(n.inferences,a,i),jm(n)})(t,r,i,a);if(165!==t.kind){var o=Mh(t,e.every(r.typeParameters,(e=>!!Uc(e)))?8:0);if(o){var s=Al(r);if(hm(s)){var c=Rh(t),l=Xp(o,gm(((t,r)=>(void 0===r&&(r=0),t&&lm(e.map(t.inferences,mm),t.signature,t.flags|r,t.compareTypes)))(c,1))),u=_v(l),d=u&&u.typeParameters?Ll(Il(u,u.typeParameters)):l;Pm(a.inferences,d,s,128);var p=cm(r.typeParameters,r,a.flags),_=Xp(o,c&&c.returnMapper);Pm(p.inferences,_,s),a.returnMapper=e.some(p.inferences,yx)?gm((t=>{var r=e.filter(t.inferences,yx);return r.length?lm(e.map(r,mm),t.signature,t.flags,t.compareTypes):void 0})(p)):void 0}}}var f=xb(r),m=f?Math.min(hb(r)-1,n.length):n.length;if(f&&262144&f.flags){var g=e.find(a.inferences,(e=>e.typeParameter===f));g&&(g.impliedArity=e.findIndex(n,sv,m)<0?n.length-m:void 0)}var h=Tl(r);if(h&&hm(h)){var y=Dv(t);Pm(a.inferences,hv(y),h)}for(var v=0;v<m;v++){var b=n[v];if(227!==b.kind&&!(32&i&&Cm(b))){var x=fb(r,v);if(hm(x)){var E=ox(b,x,a,i);Pm(a.inferences,E,x)}}}if(f&&hm(f)){var S=bv(n,m,n.length,f,a,i);Pm(a.inferences,S,f)}return jm(a)}function vv(e){return 1048576&e.flags?Ag(e,vv):1&e.flags||uf(Mc(e)||e)?e:kf(e)?Wu(eu(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Wu([e],[8])}function bv(t,r,n,i,a,o){if(r>=n-1&&sv(d=t[n-1]))return vv(232===d.kind?d.type:ox(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;u<n;u++){var d;if(sv(d=t[u])){var p=232===d.kind?d.type:Tx(d.expression);pf(p)?(s.push(p),c.push(8)):(s.push(UE(33,p,Je,225===d.kind?d.expression:d)),c.push(4))}else{var _=Vd(i,yp(u-r),256),f=ox(d,_,a,o),m=Hb(_,406978556);s.push(m?mp(f):Sf(f)),c.push(1)}232===d.kind&&d.tupleNameSource&&l.push(d.tupleNameSource)}return Wu(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function xv(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=vl(e.map(r,Tp),s,yl(s),o),l=0;l<r.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=wc(s[l]);if(u){var d=n&&i?()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1):void 0,p=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Fp(s,c));var _=c[l];if(!f_(_,$s(Xp(u,a),_),n?r[l]:void 0,p,d))return}}return c}function Ev(t){if(Qh(t.tagName))return 2;var r=Kc(Tx(t.tagName));return e.length(el(r,1))?0:e.length(el(r,0))?1:2}function Sv(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return((t,r,n,i,a,o,s)=>{var c=Lh(r,t),l=ox(t.attributes,c,void 0,i);return(()=>{var r;if(iy(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Qh(t.tagName)?Tx(t.tagName):void 0;if(!n)return!0;var i=el(n,0);if(!e.length(i))return!0;var o=WD(t);if(!o)return!0;var c=Ji(o,111551,!0,!1,t);if(!c)return!0;var l=el(Zo(c),0);if(!e.length(l))return!0;for(var u=!1,d=0,p=0,_=l;p<_.length;p++){var f=el(fb(_[p],0),0);if(e.length(f))for(var m=0,g=f;m<g.length;m++){var h=g[m];if(u=!0,vb(h))return!0;var y=hb(h);y>d&&(d=y)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b<x.length;b++){var E=yb(x[b]);E<v&&(v=E)}if(v<=d)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),v,e.entityNameToString(o),d),D=null===(r=aD(t.tagName))||void 0===r?void 0:r.valueDeclaration;D&&e.addRelatedInfo(S,e.createDiagnosticForNode(D,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||Sn.add(S)}return!1})()&&g_(l,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)})(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=Tl(n);if(l&&l!==ot&&209!==t.kind){var u=Dv(t),d=hv(u),p=o?u||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!M_(d,l,i,p,_,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,m=xb(n),g=m?Math.min(hb(n)-1,r.length):r.length,h=0;h<g;h++){var y=r[h];if(227!==y.kind){var v=fb(n,h),b=ox(y,v,void 0,a),x=4&a?qf(b):b;if(!g_(x,v,i,o?y:void 0,y,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),D(y,x,v),c.errors||e.emptyArray}}if(m){var E=bv(r,g,r.length,m,void 0,a),S=r.length-g;if(p=o?0===S?t:1===S?r[g]:e.setTextRangePosEnd(Tv(t,E),r[g].pos,r[r.length-1].end):void 0,!M_(E,m,i,p,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),D(p,E,m),c.errors||e.emptyArray}return;function D(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Jx(n))return;var a=Jx(r);a&&P_(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function Dv(t){var r=208===t.kind?t.expression:210===t.kind?t.tag:void 0;if(r){var n=e.skipOuterExpressions(r);if(e.isAccessExpression(n))return n.expression}}function Tv(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function Cv(t){if(210===t.kind){var r=t.template,n=[Tv(r,hr||(hr=Du("TemplateStringsArray",0,!0)||St))];return 223===r.kind&&e.forEach(r.templateSpans,(e=>{n.push(e.expression)})),n}if(165===t.kind)return(t=>{var r=t.parent,n=t.expression;switch(r.kind){case 257:case 226:return[Tv(n,Zo(la(r)))];case 164:var i=r.parent;return[Tv(n,171===r.parent.kind?Zo(la(i)):je),Tv(n,Re),Tv(n,Qe)];case 167:case 169:case 172:case 173:var a=167!==r.kind&&0!==J;return[Tv(n,lD(r)),Tv(n,uD(r)),Tv(n,a?Lu(oD(r)):Re)]}return e.Debug.fail()})(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=cv(i);if(a>=0){for(var o=i.slice(0,a),s=t=>{var r=i[t],n=225===r.kind&&(qr?Tx(r.expression):sx(r.expression));n&&kf(n)?e.forEach(eu(n),((e,t)=>{var i,a=n.target.elementFlags[t],s=Tv(r,4&a?Bu(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function kv(t,r){switch(t.parent.kind){case 257:case 226:return 1;case 167:return 2;case 169:case 172:case 173:return 0===J||r.parameters.length<=2?2:3;case 164:return 3;default:return e.Debug.fail()}}function Av(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function Nv(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=Av(t),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function wv(t,r,n){var i,a=cv(n);if(a>-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=r;d<p.length;d++){var _=p[d],f=yb(_),m=hb(_);f<s&&(s=f,o=_),c=Math.max(c,m),f<n.length&&f>l&&(l=f),n.length<m&&m<u&&(u=m)}var g=e.some(r,vb),h=g?s:s<c?s+"-"+c:s,y=!g&&1===h&&0===n.length&&(t=>{if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=li(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&e.isFunctionExpressionOrArrowFunction(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Pu(!1);return!!i&&aD(n.parent.parent.expression,!0)===i})(t);if(y&&e.isInJSFile(t))return Nv(t,e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);var v=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:y?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c)return Nv(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u);if(n.length<s){var b=Nv(t,v,h,n.length),x=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?n.length+1:n.length];if(x){var E=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):n.length);return e.addRelatedInfo(b,E)}return b}var S=e.factory.createNodeArray(n.slice(c)),D=e.first(S).pos,T=e.last(S).end;return T===D&&T++,e.setTextRangePosEnd(S,D,T),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),S,v,h,n.length)}function Fv(t,r,n,i,a,o){var s,c=210===t.kind,l=165===t.kind,u=e.isJsxOpeningLikeElement(t),d=!n;l||(s=t.typeArguments,(c||u||106!==t.expression.kind)&&e.forEach(s,zS));var p=n||[];if(((t,r,n)=>{var i,a,o,s,c=0,l=-1;e.Debug.assert(!r.length);for(var u=0,d=t;u<d.length;u++){var p=d[u],_=p.declaration&&la(p.declaration),f=p.declaration&&p.declaration.parent;a&&_!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=_,V(p)?(s=++l,c++):s=o,r.splice(s,0,n?Qs(p,n):p)}})(r,p,a),!p.length)return d&&Sn.add(Nv(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),ov(t);var _,m,g,h,y=Cv(t),v=1===p.length&&!p[0].typeParameters,b=l||v||!e.some(y,t_)?0:4;b|=32&i;var x=!!(16&i)&&208===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(h=J(p,kn,v,x)),h||(h=J(p,Nn,v,x)),h)return h;if(d)if(_)if(1===_.length||_.length>3){var E,S=_[_.length-1];_.length>3&&(E=e.chainDiagnosticMessages(E,e.Diagnostics.The_last_overload_gave_the_following_error),E=e.chainDiagnosticMessages(E,e.Diagnostics.No_overload_matches_this_call));var D=Sv(t,y,S,Nn,0,!0,(()=>E));if(D)for(var T=0,C=D;T<C.length;T++){var k=C[T];S.declaration&&_.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),W(S,k),Sn.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var A=[],N=0,w=Number.MAX_VALUE,F=0,P=0,I=r=>{var n=Sv(t,y,r,Nn,0,!0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,P+1,p.length,Wa(r))));n?(n.length<=w&&(w=n.length,F=P),N=Math.max(N,n.length),A.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),P++},O=0,M=_;O<M.length;O++)I(M[O]);var R=N>1?A[F]:e.flatten(A);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var L=e.chainDiagnosticMessages(e.map(R,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),B=f([],e.flatMap(R,(e=>e.relatedInformation)),!0),j=void 0;if(e.every(R,(e=>e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file))){var K=R[0];j={file:K.file,start:K.start,length:K.length,code:L.code,category:L.category,messageText:L,relatedInformation:B}}else j=e.createDiagnosticForNodeFromMessageChain(t,L,B);W(_[0],j),Sn.add(j)}else if(m)Sn.add(wv(t,[m],y));else if(g)xv(g,t.typeArguments,!0,o);else{var z=e.filter(r,(e=>pv(e,s)));0===z.length?Sn.add(((t,r,n)=>{var i=n.length;if(1===r.length){var a=yl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,u=r;l<u.length;l++){var d,p=yl((d=u[l]).typeParameters);o=e.length(d.typeParameters),p>i?c=Math.min(c,p):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)})(t,r,s)):l?o&&Sn.add(Nv(t,o)):Sn.add(wv(t,z,y))}return((t,r,n,i,a)=>(e.Debug.assert(r.length>0),JS(t),i||1===r.length||r.some((e=>!!e.typeParameters))?((t,r,n,i)=>{var a=((e,t)=>{for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=hb(a);if(vb(a)||o>=t)return i;o>n&&(n=o,r=i)}return r})(r,void 0===de?n.length:de),o=r[a],s=o.typeParameters;if(!s)return o;var c=iv(t)?t.typeArguments:void 0,l=c?Ol(o,((e,t,r)=>{for(var n=e.map(oD);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(Uc(t[n.length])||wc(t[n.length])||Bm(r));return n})(c,s,e.isInJSFile(t))):((t,r,n,i,a)=>Ol(n,yv(t,n,i,12|a,cm(r,n,e.isInJSFile(t)?2:0))))(t,s,o,n,i);return r[a]=l,l})(t,r,n,a):(t=>{var r,n=e.mapDefined(t,(e=>e.thisParameter));n.length&&(r=Iv(n,n.map(cb)));for(var i=e.minAndMax(t,Pv),a=i.min,o=i.max,s=[],c=r=>{var n=e.mapDefined(t,(t=>U(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0));e.Debug.assert(0!==n.length),s.push(Iv(n,e.mapDefined(t,(e=>mb(e,r)))))},l=0;l<o;l++)c(l);var u=e.mapDefined(t,(t=>U(t)?e.last(t.parameters):void 0)),d=0;if(0!==u.length){var p=Bu(ad(e.mapDefined(t,Fl),2));s.push(Ov(u,p)),d|=1}return t.some(V)&&(d|=2),qs(t[0].declaration,void 0,r,s,_d(t.map(Al)),void 0,a,d)})(r)))(t,p,y,!!n,i);function W(t,r){var n,i,a=_,o=m,s=g,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(t=>e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body))):void 0;if(l){var u=bl(l),d=!u.typeParameters;J([u],Nn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}_=a,m=o,g=s}function J(r,n,a,o){if(void 0===o&&(o=!1),_=void 0,m=void 0,g=void 0,a){var c=r[0];if(e.some(s)||!dv(t,y,c,o))return;return Sv(t,y,c,n,0,!1,void 0)?void(_=[c]):c}for(var l=0;l<r.length;l++)if(pv(c=r[l],s)&&dv(t,y,c,o)){var u=void 0,d=void 0;if(c.typeParameters){var p=void 0;if(e.some(s)){if(!(p=xv(c,s,!1))){g=c;continue}}else d=cm(c.typeParameters,c,e.isInJSFile(t)?2:0),p=yv(t,c,y,8|b,d),b|=4&d.flags?8:0;if(u=Pl(c,p,e.isInJSFile(c.declaration),d&&d.inferredTypeParameters),xb(c)&&!dv(t,y,u,o)){m=u;continue}}else u=c;if(!Sv(t,y,u,n,b,!1,void 0)){if(b){if(b=32&i,d&&(u=Pl(c,p=yv(t,c,y,b,d),e.isInJSFile(c.declaration),d&&d.inferredTypeParameters),xb(c)&&!dv(t,y,u,o))){m=u;continue}if(Sv(t,y,u,n,b,!1,void 0)){(_||(_=[])).push(u);continue}}return r[l]=u,u}(_||(_=[])).push(u)}}}function Pv(e){var t=e.parameters.length;return U(e)?t-1:t}function Iv(e,t){return Ov(e,ad(t,2))}function Ov(t,r){return Gf(e.first(t),r)}function Mv(e){return!(!e.typeParameters||!OD(Al(e)))}function Rv(e,t,r,n){return po(e)||po(t)&&!!(262144&e.flags)||!r&&!n&&!(1048576&t.flags)&&!(131072&$c(t).flags)&&u_(e,jt)}function Lv(t,r,n){if(t.arguments&&J<1){var i=cv(t.arguments);i>=0&&Un(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Ey(t.expression);if(a===ct)return Rr;if(_o(a=Kc(a)))return ov(t);if(po(a))return t.typeArguments&&Un(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),av(t);var o=el(a,1);if(o.length){if(!((t,r)=>{if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||171!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=ks(n.parent.symbol);if(!tD(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=oD(s);if(jv(n.parent.symbol,c))return!0}return 8&i&&Un(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ja(o)),16&i&&Un(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ja(o)),!1}return!0})(t,o[0]))return ov(t);if(Bv(o,(e=>!!(4&e.flags))))return Un(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),ov(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Un(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),ov(t)):Fv(t,o,r,n,0)}var c=el(a,0);if(c.length){var l=Fv(t,c,r,n,0);return Z||(l.declaration&&!$v(l.declaration)&&Al(l)!==ot&&Un(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Tl(l)===ot&&Un(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Vv(t.expression,a,1),ov(t)}function Bv(t,r){return e.isArray(t)?e.some(t,(e=>Bv(e,r))):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function jv(t,r){var n=ms(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=oc(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===t)return!0;if(jv(t,l))return!0}o++}return!1}return i.symbol===t||jv(t,i)}function Uv(t,r,n){var i,a=0===n,o=Yx(r),s=o&&el(o,n).length>0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l<u.length;l++){var d=u[l];if(0!==el(d,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ja(d)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Ja(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Ja(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ja(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Ja(r));var p=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var _=ni(t).resolvedSymbol;_&&32768&_.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Vv(t,r,n,i){var a=Uv(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var l=Av(t.parent,!0),u=l.start,d=l.length;c.start=u,c.length=d}Sn.add(c),Kv(r,n,i?e.addRelatedInfo(c,i):c)}function Kv(t,r,n){if(t.symbol){var i=ri(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=el(Zo(ri(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function zv(t,r){var n=ay(t),i=n&&ia(n),a=i&&ai(i,w.Element,788968),o=a&&se.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,se.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(130)),c=$n(1,"props");return c.type=r,qs(s,void 0,void 0,[c],a?ks(a):je,void 0,1,0)}function Wv(t,r,n){if(Qh(t.tagName)){var i=uy(t),a=zv(t,i);return m_(ox(t.attributes,Lh(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,zS),Sn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=Tx(t.tagName),s=Kc(o);if(_o(s))return ov(t);var c=cy(o,t);return Rv(o,s,c.length,0)?av(t):0===c.length?(Un(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),ov(t)):Fv(t,c,r,n,0)}function Jv(t,r,n){switch(t.kind){case 208:return((t,r,n)=>{if(106===t.expression.kind){var i=_h(t.expression);if(po(i)){for(var a=0,o=t.arguments;a<o.length;a++)Tx(o[a]);return Ir}if(!_o(i)){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return Fv(t,ps(i,s.typeArguments,s),r,n,0)}return av(t)}var c,l=Tx(t.expression);if(e.isCallChain(t)){var u=zf(l,t.expression);c=u===l?0:e.isOutermostOptionalChain(t)?16:8,l=u}else c=0;if((l=ky(l,t.expression,Cy))===ct)return Rr;var d=Kc(l);if(_o(d))return ov(t);var p=el(d,0),_=el(d,1).length;if(Rv(l,d,p.length,_))return!_o(l)&&t.typeArguments&&Un(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),av(t);if(!p.length){if(_)Un(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ja(l));else{var f=void 0;if(1===t.arguments.length){var m=e.getSourceFileOfNode(t).text;e.isLineBreak(m.charCodeAt(e.skipTrivia(m,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Vv(t.expression,d,0,f)}return ov(t)}return 8&n&&!t.typeArguments&&p.some(Mv)?(hx(t,n),Mr):p.some((t=>e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)))?(Un(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ja(l)),ov(t)):Fv(t,p,r,n,c)})(t,r,n);case 209:return Lv(t,r,n);case 210:return((t,r,n)=>{var i=Tx(t.tag),a=Kc(i);if(_o(a))return ov(t);var o=el(a,0),s=el(a,1).length;if(Rv(i,a,o.length,s))return av(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Sn.add(c),ov(t)}return Vv(t.tag,a,0),ov(t)}return Fv(t,o,r,n,0)})(t,r,n);case 165:return((t,r,n)=>{var i=Tx(t.expression),a=Kc(i);if(_o(a))return ov(t);var o,s,c=el(a,0),l=el(a,1).length;if(Rv(i,a,c.length,l))return av(t);if(o=t,(s=c).length&&e.every(s,(e=>0===e.minArgumentCount&&!U(e)&&e.parameters.length<kv(o,e)))){var u=e.getTextOfNode(t.expression,!1);return Un(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),ov(t)}var d=(t=>{switch(t.parent.kind){case 257:case 226:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 164:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 167:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 169:case 172:case 173:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}})(t);if(!c.length){var p=Uv(t.expression,a,0),_=e.chainDiagnosticMessages(p.messageChain,d),f=e.createDiagnosticForNodeFromMessageChain(t.expression,_);return p.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,p.relatedMessage)),Sn.add(f),Kv(a,0,f),ov(t)}return Fv(t,c,r,n,0,d)})(t,r,n);case 280:case 279:return Wv(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Hv(e,t,r){var n=ni(e),i=n.resolvedSignature;if(i&&i!==Mr&&!t)return i;n.resolvedSignature=Mr;var a=Jv(e,t,r||0);return a!==Mr&&(n.resolvedSignature=Gr===qr?a:i),a}function $v(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=la(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function Gv(t,r){var n,i;if(r){var a=ri(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(M(t))){var o=e.isTransientSymbol(t)?t:Xn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&ei(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&ei(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(M(o),o),o}return a.inferredClassSymbol.get(M(t))}}function qv(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(63!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return la(i)}}function Xv(t,r){if(t.declaration&&268435456&t.declaration.flags){var n=Yv(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=Wa(t),Wn(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function Yv(t){switch((t=e.skipParentheses(t)).kind){case 208:case 165:case 209:return Yv(t.expression);case 210:return Yv(t.tag);case 280:case 279:return Yv(t.tagName);case 207:return t.argumentExpression;case 206:return t.name;case 178:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function Qv(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Au(!1);return!!n&&n===li(r,"Symbol",111551,void 0,void 0,!1)}function Zv(t,r,n){var i=e.createSymbolTable(),a=$n(2097152,"default");return a.parent=r,a.nameType=hp("default"),a.aliasTarget=Ri(t),i.set("default",a),ka(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}function eb(e,t,r,n){if(Ai(n)&&e&&!_o(e)){var i=e;if(!i.defaultOnlyType){var a=Zv(t,r);i.defaultOnlyType=a}return i.defaultOnlyType}}function tb(t,r,n,i){var a;if(G&&t&&!_o(t)){var o=t;if(!o.syntheticType)if(Ni(null===(a=n.declarations)||void 0===a?void 0:a.find(e.isSourceFile),n,!1,i)){var s=$n(2048,"__type"),c=Zv(r,n,s);s.type=c,o.syntheticType=Xh(t)?up(t,c,s,0,!1):c}else o.syntheticType=t;return o.syntheticType}return t}function rb(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=li(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===_e)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?256:3&r.flags?254:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(16777216&i.flags)}return!1}function nb(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 204:case 205:case 223:return!0;case 212:return nb(e.expression);case 219:var t=e.operator,r=e.operand;return 40===t&&(8===r.kind||9===r.kind)||39===t&&8===r.kind;case 206:case 207:var n=oD(e.expression).symbol;return n&&2097152&n.flags&&(n=Li(n)),!!(n&&384&n.flags&&1===Es(n))}return!1}function ib(t,r,n,i){var a=Tx(n,i);if(e.isConstTypeReference(r))return nb(n)||Un(n,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),mp(a);zS(r),a=qf(Ef(a));var o=Tp(r);return _o(o)||_((()=>{var r=tm(a);p_(o,r)||D_(a,o,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})),o}function ab(t){nT(t);var r=228===t.kind?Tx(t.expression):e.isThisIdentifier(t.exprName)?uh(t.exprName):Tx(t.exprName),n=t.typeArguments;if(r===ct||_o(r)||!e.some(n))return r;var i,a=!1,o=function r(n){var o=!1,s=!1,l=function n(i){if(524288&i.flags){var a=Dc(i),l=c(a.callSignatures),u=c(a.constructSignatures);if(o||(o=0!==a.callSignatures.length||0!==a.constructSignatures.length),s||(s=0!==l.length||0!==u.length),l!==a.callSignatures||u!==a.constructSignatures){var d=ka(void 0,a.members,l,u,a.indexInfos);return d.objectFlags|=8388608,d.node=t,d}}else if(58982400&i.flags){var p=Mc(i);if(p){var _=n(p);if(_!==p)return _}}else{if(1048576&i.flags)return Ag(i,r);if(2097152&i.flags)return _d(e.sameMap(i.types,n))}return i}(n);return a||(a=s),o&&!s&&(null!=i||(i=n)),l}(r),s=a?i:r;return s&&Sn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Ja(s))),o;function c(t){var r=e.filter(t,(e=>!!e.typeParameters&&pv(e,n)));return e.sameMap(r,(t=>{var r=xv(t,n,!0);return r?Pl(t,r,e.isInJSFile(t.declaration)):t}))}}function ob(t){switch(t.keywordToken){case 100:return Cu();case 103:var r=sb(t);return _o(r)?je:(t=>{var r=$n(0,"NewTargetExpression"),n=$n(4,"target",8);n.parent=r,n.type=t;var i=e.createSymbolTable([n]);return r.members=i,ka(r,i,e.emptyArray,e.emptyArray,e.emptyArray)})(r);default:e.Debug.assertNever(t.keywordToken)}}function sb(t){var r=e.getNewTargetContainer(t);return r?171===r.kind?Zo(la(r.parent)):Zo(la(r)):(Un(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),je)}function cb(t){var r=Zo(t);if(q){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Bf(r)}return r}function lb(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function ub(e,t,r){var n=e.parameters.length-(U(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||Pe,a=r||Zo(i);if(kf(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&lb(o[s])||i.escapedName+"_"+s}return i.escapedName}function db(t){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isIdentifier(t.valueDeclaration.name)}function pb(t){return 197===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function _b(e,t){var r=e.parameters.length-(U(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&pb(n)?n:void 0}var i=e.parameters[r]||Pe,a=Zo(i);if(kf(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&pb(i.valueDeclaration)?i.valueDeclaration:void 0}function fb(e,t){return mb(e,t)||Re}function mb(e,t){var r=e.parameters.length-(U(e)?1:0);if(t<r)return cb(e.parameters[t]);if(U(e)){var n=Zo(e.parameters[r]),i=t-r;if(!kf(n)||n.target.hasRestElement||i<n.target.fixedLength)return Vd(n,yp(i))}}function gb(t,r){var n=hb(t),i=yb(t),a=bb(t);if(a&&r>=n-1)return r===n-1?a:Bu(Vd(a,Qe));for(var o=[],s=[],c=[],l=r;l<n;l++){!a||l<n-1?(o.push(fb(t,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var u=_b(t,l);u&&c.push(u)}return Wu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function hb(e){var t=e.parameters.length;if(U(e)){var r=Zo(e.parameters[t-1]);if(kf(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function yb(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(U(t)){var o=Zo(t.parameters[t.parameters.length-1]);if(kf(o)){var s=e.findIndex(o.target.elementFlags,(e=>!(1&e))),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&Tg(fb(t,l),lv).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function vb(e){if(U(e)){var t=Zo(e.parameters[e.parameters.length-1]);return!kf(t)||t.target.hasRestElement}return!1}function bb(e){if(U(e)){var t=Zo(e.parameters[e.parameters.length-1]);if(!kf(t))return t;if(t.target.hasRestElement)return Gu(t,t.target.fixedLength)}}function xb(e){var t=bb(e);return!t||sf(t)||po(t)||0!=(131072&$c(t).flags)?void 0:t}function Eb(e){return Sb(e,st)}function Sb(e,t){return e.parameters.length>0?fb(e,0):t}function Db(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Gf(r.thisParameter,void 0)),Tb(t.thisParameter,Zo(r.thisParameter)));for(var n=t.parameters.length-(U(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Tb(a,mb(r,i))}U(t)&&((a=e.last(t.parameters)).valueDeclaration?!e.getEffectiveTypeAnnotationNode(a.valueDeclaration):65536&e.getCheckFlags(a))&&Tb(a,gb(r,n))}function Tb(t,r){var n=ri(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?jo(i,!0):Zo(t)),i&&79!==i.name.kind&&(n.type===ze&&(n.type=Bo(i.name)),Cb(i.name,n.type))}}function Cb(t,r){for(var n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){var o=Eo(a,r);79===a.name.kind?ri(la(a)).type=o:Cb(a.name,o)}}}function kb(e){var t=wu(!0);return t!==kt?Yl(t,[e=Qx(Xx(e))||ze]):ze}function Ab(e){var t=Fu(!0);return t!==kt?Yl(t,[e=Qx(Xx(e))||ze]):ze}function Nb(t,r){var n=kb(r);return n===ze?(Un(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),je):(Pu(!0)||Un(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function wb(t,r){if(!t.body)return je;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),l=ot;if(235!==t.body.kind)n=sx(t.body,r&&-9&r),s&&(n=Xx($x(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(c){var u=Rb(t,r);u?u.length>0&&(n=ad(u,2)):l=st;var d=((t,r)=>{var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(t=>{var o,s=t.expression?Tx(t.expression,r):He;if(e.pushIfUnique(n,Pb(t,s,Re,a)),t.asteriskToken){var c=$E(s,a?19:17,t.expression);o=c&&c.nextType}else o=Mh(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}})(t,r),p=d.yieldTypes,_=d.nextTypes;i=e.some(p)?ad(p,2):void 0,a=e.some(_)?_d(_):void 0}else{var f=Rb(t,r);if(!f)return 2&o?Nb(t,st):st;if(0===f.length)return 2&o?Nb(t,ot):ot;n=ad(f,2)}if(n||i||a){if(i&&am(t,i,3),n&&am(t,n,1),a&&am(t,a,2),n&&vf(n)||i&&vf(i)||a&&vf(a)){var m=Uh(t),g=m?m===bl(t)?c?void 0:n:Ih(Al(m),t):void 0;c?(i=Cf(i,g,0,s),n=Cf(n,g,1,s),a=Cf(a,g,2,s)):n=((e,t,r)=>(e&&vf(e)&&(e=Tf(e,t?r?Hx(t):t:void 0)),e))(n,g,s)}i&&(i=tm(i)),n&&(n=tm(n)),a&&(a=tm(a))}return c?Fb(i||st,n||l,a||bh(2,t)||ze,s):s?kb(n||l):n||l}function Fb(e,t,r,n){var i=n?zr:Wr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||ze,t=i.resolveIterationType(t,void 0)||ze,r=i.resolveIterationType(r,void 0)||ze,a===kt){var o=i.getGlobalIterableIteratorType(!1),s=o!==kt?YE(o,i):void 0,c=s?s.returnType:Re,l=s?s.nextType:Je;return u_(t,c)&&u_(l,r)?o!==kt?Ru(o,[e]):(i.getGlobalIterableIteratorType(!0),St):(i.getGlobalGeneratorType(!0),St)}return Ru(a,[e,t,r])}function Pb(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?UE(i?19:17,r,n,a):r;return i?Yx(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Ib(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=D.get(r[a])||32768;for(a=e;a<t;a++)i&=~(D.get(r[a])||0);for(a=0;a<e;a++)i|=D.get(r[a])||32768}else{for(a=e;a<t;a++)i|=S.get(r[a])||128;for(a=0;a<e;a++)i&=~(S.get(r[a])||0)}return i}function Ob(t){var r=ni(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=(t=>{if(216===t.expression.kind){var r=Ex(t.expression.expression),n=Ib(0,0,bg(t,!1),!0),i=Mc(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&Tg(i,(e=>(ig(e)&n)===n)).flags)}var a=Ex(t.expression);if(!xf(a))return!1;var o,s,c=vg(t);return!(!c.length||e.some(c,yf))&&(o=Ag(a,mp),s=c,1048576&o.flags?!e.forEach(o.types,(t=>!e.contains(s,t))):e.contains(s,o))})(t)}function Mb(e){return e.endFlowNode&&Wg(e.endFlowNode)}function Rb(t,r){var n=e.getFunctionFlags(t),i=[],a=Mb(t),o=!1;if(e.forEachReturnStatement(t.body,(s=>{var c=s.expression;if(c){var l=sx(c,r&&-9&r);2&n&&(l=Xx($x(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!(e=>{switch(e.kind){case 213:case 214:return!0;case 169:return 205===e.parent.kind;default:return!1}})(t))return!(q&&i.length&&a)||$v(t)&&i.some((e=>e.symbol===t.symbol))||e.pushIfUnique(i,Je),i}function Lb(t,r){_((()=>{var n=e.getFunctionFlags(t),i=r&&uS(r,n);if((!i||!Hb(i,16385))&&168!==t.kind&&!e.nodeIsMissing(t.body)&&235===t.body.kind&&Mb(t)){var a=512&t.flags,o=e.getEffectiveReturnTypeNode(t)||t;if(i&&131072&i.flags)Un(o,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!a)Un(o,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&q&&!u_(Je,i))Un(o,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(W.noImplicitReturns){if(!i){if(!a)return;var s=Al(bl(t));if(dS(t,s))return}Un(o,e.Diagnostics.Not_all_code_paths_return_a_value)}}}))}function Bb(t,r){if(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),JS(t),e.isFunctionExpression(t)&&AE(t,t.name),r&&4&r&&t_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=Vh(t);if(n&&hm(Al(n))){var i=ni(t);if(i.contextFreeType)return i.contextFreeType;var a=wb(t,r),o=qs(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=ka(t.symbol,K,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return At}return eT(t)||213!==t.kind||aT(t),((t,r)=>{var n=ni(t);if(!(1024&n.flags)){var i=Vh(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(el(Zo(la(t)),0));if(!a)return;if(t_(t))if(i){var o=Rh(t);r&&2&r&&((t,r,n)=>{for(var i=t.parameters.length-(U(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Pm(n.inferences,Tp(s),fb(r,a))}}var c=bb(r);if(c&&262144&c.flags){Db(t,Vp(r,n.nonFixingMapper));var l=hb(r)-1;Pm(n.inferences,gb(t,l),c)}})(a,i,o),Db(a,o?Vp(i,o.mapper):i)}else!(e=>{e.thisParameter&&Tb(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)Tb(r[t])})(a);if(i&&!Nl(t)&&!a.resolvedReturnType){var s=wb(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}Nx(t)}}})(t,r),Zo(la(t))}function jb(e,t,r,n){if(void 0===n&&(n=!1),!u_(t,gt)){var i=n&&Jx(t);return zn(e,!!i&&u_(i,gt),r),!1}return!0}function Ub(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=sx(t.arguments[2]);if(uo(r,"value")){var n=Qc(r,"writable"),i=n&&Zo(n);if(!i||i===et||i===tt)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=Tx(n.valueDeclaration.initializer);if(a===et||a===tt)return!0}return!1}return!Qc(r,"set")}function Vb(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&hy(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,Ub))}function Kb(t,r,n){var i,a;if(0===n)return!1;if(Vb(r)){if(4&r.flags&&e.isAccessExpression(t)&&108===t.expression.kind){var o=e.getContainingFunction(t);if(!o||171!==o.kind&&!$v(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,l=o===r.valueDeclaration.parent,u=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,d=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||u||d)}}return!0}if(e.isAccessExpression(t)){var p=e.skipParentheses(t.expression);if(79===p.kind){var _=ni(p).resolvedSymbol;if(2097152&_.flags){var f=xi(_);return!!f&&268===f.kind}}}return!1}function zb(t,r,n){var i=e.skipOuterExpressions(t,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(Un(t,n),1)):(Un(t,r),!1)}function Wb(e){return Hb(e,2112)?$b(e,3)||Hb(e,296)?gt:Ze:Qe}function Jb(e,t){if(Hb(e,t))return!0;var r=Rc(e);return!!r&&Hb(r,t)}function Hb(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Hb(n[r],t))return!0;return!1}function $b(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&u_(e,Qe)||!!(2112&t)&&u_(e,Ze)||!!(402653316&t)&&u_(e,Ye)||!!(528&t)&&u_(e,it)||!!(16384&t)&&u_(e,ot)||!!(131072&t)&&u_(e,st)||!!(65536&t)&&u_(e,qe)||!!(32768&t)&&u_(e,Je)||!!(4096&t)&&u_(e,at)||!!(67108864&t)&&u_(e,pt))}function Gb(t,r,n){return 1048576&t.flags?e.every(t.types,(e=>Gb(e,r,n))):$b(t,r,n)}function qb(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Xb(t.symbol)}function Xb(e){return 0!=(128&e.flags)}function Yb(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(296===s.kind||297===s.kind){var c=s.name,l=yd(c);if(Ls(l)){var u=Qc(r,Ks(l));u&&(Yy(u,s,a),vy(s,!1,!0,r,u))}var d=yo(s,Vd(r,l,32,c));return Zb(297===s.kind?s:s.initializer,d)}if(298===s.kind){if(!(n<o.length-1)){J<99&&$D(s,4);var p=[];if(i)for(var _=0,f=i;_<f.length;_++){var m=f[_];e.isSpreadAssignment(m)||p.push(m.name)}return d=mo(r,p,r.symbol),QD(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Zb(s.expression,d)}Un(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Un(s,e.Diagnostics.Property_assignment_expected)}function Qb(t,r,n,i,a){var o=t.elements,s=o[n];if(227!==s.kind){if(225!==s.kind){var c=yp(n);if(pf(r)){var l=zd(r,c,32|(Kh(s)?16:0),Tv(s,c))||je;return Zb(s,yo(s,Kh(s)?ag(l,524288):l),a)}return Zb(s,i,a)}if(n<o.length-1)Un(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(221!==u.kind||63!==u.operatorToken.kind)return QD(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Zb(u,Dg(r,kf)?Ag(r,(e=>Gu(e,n))):Bu(i),a);Un(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Zb(t,r,n,i){var a;if(297===t.kind){var o=t;o.objectAssignmentInitializer&&(!q||32768&Of(Tx(o.objectAssignmentInitializer))||(r=ag(r,524288)),((e,t,r,n,i)=>{var a=t.kind;if(63===a&&(205===e.kind||204===e.kind))return Zb(e,Tx(r,n),n,108===r.kind);rx(e,t,r,55===a||56===a||60===a?LE(e,n):Tx(e,n),Tx(r,n),void 0)})(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 221===a.kind&&63===a.operatorToken.kind&&(ae(a,n),a=a.left),205===a.kind?((e,t,r)=>{var n=e.properties;if(q&&0===n.length)return Ay(t,e);for(var i=0;i<n.length;i++)Yb(e,t,i,n,r);return t})(a,r,i):204===a.kind?((e,t,r)=>{var n=e.elements;J<2&&W.downlevelIteration&&$D(e,512);for(var i=UE(193,t,Je,e)||je,a=W.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;225===e.elements[o].kind&&(s=a=null!=a?a:UE(65,t,Je,e)||je),Qb(e,t,o,s,r)}return t})(a,r,n):((t,r,n)=>{var i=Tx(t,n);return zb(t,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&m_(r,i,t,t),e.isPrivateIdentifierPropertyAccessExpression(t)&&$D(t.parent,1048576),r})(a,r,n)}function ex(t){switch((t=e.skipParentheses(t)).kind){case 79:case 10:case 13:case 210:case 223:case 14:case 8:case 9:case 110:case 95:case 104:case 153:case 213:case 226:case 214:case 204:case 205:case 216:case 230:case 279:case 278:return!0;case 222:return ex(t.whenTrue)&&ex(t.whenFalse);case 221:return!e.isAssignmentOperator(t.operatorToken.kind)&&ex(t.left)&&ex(t.right);case 219:case 220:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 217:case 211:case 229:default:return!1}}function tx(e,t){return 0!=(98304&t.flags)||p_(e,t)}function rx(t,r,n,i,a,o){var s,c,l=r.kind;switch(l){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(i===ct||a===ct)return ct;i=Ay(i,t),a=Ay(a,n);var u=void 0;if(528&i.flags&&528&a.flags&&void 0!==(u=(e=>{switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}})(r.kind)))return Un(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(u)),Qe;var d,p=jb(t,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=jb(n,a,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if($b(i,3)&&$b(a,3)||!Hb(i,2112)&&!Hb(a,2112))d=Qe;else if(D(i,a)){switch(l){case 49:case 72:A();break;case 42:case 67:J<3&&Un(o,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=Ze}else A(D),d=je;return p&&f&&C(d),d;case 39:case 64:if(i===ct||a===ct)return ct;$b(i,402653316)||$b(a,402653316)||(i=Ay(i,t),a=Ay(a,n));var m=void 0;if($b(i,296,!0)&&$b(a,296,!0)?m=Qe:$b(i,2112,!0)&&$b(a,2112,!0)?m=Ze:$b(i,402653316,!0)||$b(a,402653316,!0)?m=Ye:(po(i)||po(a))&&(m=_o(i)||_o(a)?je:Re),m&&!T(l))return m;if(!m){var g=402655727;return A(((e,t)=>$b(e,g)&&$b(t,g))),Re}return 64===l&&C(m),m;case 29:case 31:case 32:case 33:return T(l)&&(i=Ef(Ay(i,t)),a=Ef(Ay(a,n)),k(((e,t)=>p_(e,t)||p_(t,e)||u_(e,gt)&&u_(t,gt)))),it;case 34:case 35:case 36:case 37:return k(((e,t)=>tx(e,t)||tx(t,e))),it;case 102:return((t,r,n,i)=>n===ct||i===ct?ct:(!po(n)&&Gb(n,131068)&&Un(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),po(i)||pD(i)||l_(i,jt)||Un(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),it))(t,n,i,a);case 101:return((t,r,n,i)=>{if(n===ct||i===ct)return ct;e.isPrivateIdentifier(t)?(J<99&&$D(t,2097152),!ni(t).resolvedSymbol&&e.getContainingClass(t)&&Ky(t,i,By(t,i.symbol,!0))):Gb(n=Ay(n,t),402665900)||$b(n,407109632)||Un(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);var a=Nc(i=Ay(i,r));return(!Gb(i,126091264)||a&&($b(i,3145728)&&!Gb(a,126091264)||!Hb(a,126615552)))&&Un(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),it})(t,n,i,a);case 55:case 76:var h=4194304&ig(i)?ad([(c=q?i:Ef(a),Ag(c,Rf)),a]):i;return 76===l&&C(a),h;case 56:case 75:var y=8388608&ig(i)?ad([Mf(i),a],2):i;return 75===l&&C(a),y;case 60:case 77:var v=262144&ig(i)?ad([jf(i),a],2):i;return 77===l&&C(a),v;case 63:var b=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return((t,r)=>{if(2===t)for(var n=0,i=Tc(r);n<i.length;n++){var a=i[n],o=Zo(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=li(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(Qn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),Qn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}})(b,a),(r=>{var i;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=la(t),o=e.getAssignedExpandoInitializer(n);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(i=null==a?void 0:a.exports)||void 0===i?void 0:i.size);default:return!1}})(b)?(524288&a.flags&&(2===b||6===b||k_(a)||ng(a)||1&e.getObjectFlags(a))||C(a),i):(C(a),qf(a));case 27:if(!W.allowUnreachableCode&&ex(t)&&(79!==(s=n).kind||"eval"!==s.escapedText)){var x=e.getSourceFileOfNode(t),E=x.text,S=e.skipTrivia(E,t.pos);x.parseDiagnostics.some((t=>t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)))||Un(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return a;default:return e.Debug.fail()}function D(e,t){return $b(e,2112)&&$b(t,2112)}function T(r){var o=Jb(i,12288)?t:Jb(a,12288)?n:void 0;return!o||(Un(o,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function C(r){e.isAssignmentOperator(l)&&_((()=>{if(zb(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(t)||"exports"!==e.unescapeLeadingUnderscores(t.escapedText))){var a=void 0;if(ie&&e.isPropertyAccessExpression(t)&&Hb(r,32768)){var o=uo(Ex(t.expression),t.name.escapedText);B_(r,o)&&(a=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}m_(r,i,t,n,a)}}))}function k(e){return!e(i,a)&&(A(e),!0)}function A(t){var n,s=!1,c=o||r;if(t){var l=Qx(i),u=Qx(a);s=!(l===i&&u===a)&&!(!l||!u)&&t(l,u)}var d=i,p=a;!s&&t&&(d=(n=((e,t,r)=>{var n=e,i=t,a=Ef(e),o=Ef(t);return r(a,o)||(n=a,i=o),[n,i]})(i,a,t))[0],p=n[1]);var _=Ha(d,p),f=_[0],m=_[1];((t,n,i,a)=>{var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return zn(t,n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,s,f,m)||zn(c,s,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),f,m)}}function nx(t){var r=t.parent;return e.isParenthesizedExpression(r)&&nx(r)||e.isElementAccessExpression(r)&&r.argumentExpression===t}function ix(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=Tx(o.expression);Jb(s,12288)&&Un(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(u_(s,ht)?s:Ye)}return px(t)||nx(t)||Sg(Mh(t)||ze,ax)?Sd(r,n):Ye}function ax(e){return!!(134217856&e.flags||58982400&e.flags&&Hb(Mc(e)||ze,402653316))}function ox(t,r,n,i){var a=(t=>286!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent)(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=Tx(t,1|i|(n?2:0));return n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0),Hb(c,2944)&&dx(c,Ih(r,t))?mp(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function sx(e,t){if(t&&0!==t)return Tx(e,t);var r=ni(e);if(!r.resolvedType){var n=Gr,i=kr;Gr=qr,kr=void 0,r.resolvedType=Tx(e,t),kr=i,Gr=n}return r.resolvedType}function cx(t){return 211===(t=e.skipParentheses(t,!0)).kind||229===t.kind||e.isJSDocTypeAssertion(t)}function lx(t,r,n){var i=e.getEffectiveInitializer(t),a=Sx(i)||(n?ox(i,n,void 0,r||0):sx(i,r));return e.isParameter(t)&&202===t.name.kind&&kf(a)&&!a.target.hasRestElement&&tu(a)<t.name.elements.length?((t,r)=>{for(var n=r.elements,i=eu(t).slice(),a=t.target.elementFlags.slice(),o=tu(t);o<n.length;o++){var s=n[o];(o<n.length-1||203!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Kh(s)?Lo(s,!1,!1):Re),a.push(2),e.isOmittedExpression(s)||Kh(s)||im(s,Re))}return Wu(i,a,t.target.readonly)})(a,t.name):a}function ux(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:Sf(r);if(e.isInJSFile(t)){if(ff(n))return im(t,Re),Re;if(mf(n))return im(t,qt),qt}return n}function dx(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(e=>dx(t,e)))}if(58982400&r.flags){var i=Mc(r)||ze;return Hb(i,4)&&Hb(t,128)||Hb(i,8)&&Hb(t,256)||Hb(i,64)&&Hb(t,2048)||Hb(i,4096)&&Hb(t,8192)||dx(t,i)}return!!(406847616&r.flags&&Hb(t,128)||256&r.flags&&Hb(t,256)||2048&r.flags&&Hb(t,2048)||512&r.flags&&Hb(t,512)||8192&r.flags&&Hb(t,8192))}return!1}function px(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeAssertion(r)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(r))||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&px(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&px(r.parent)}function _x(t,r,n,i){var a=Tx(t,r,i);return px(t)||e.isCommonJsExportedExpression(t)?mp(a):cx(t)?a:Tf(a,Ih(2===arguments.length?Mh(t):n,t))}function fx(e,t){return 162===e.name.kind&&Hh(e.name),_x(e.initializer,t)}function mx(e,t){return dT(e),162===e.name.kind&&Hh(e.name),gx(e,Bb(e,t),t)}function gx(t,r,n){if(n&&10&n){var i=mv(r,0,!0),a=mv(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=Ph(t,2);if(s){var c=mv(jf(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return hx(t,n),At;var l=Rh(t),u=l.signature&&Al(l.signature),d=u&&fv(u);if(d&&!d.typeParameters&&!e.every(l.inferences,yx)){var p=((t,r)=>{for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(_=s[o]).symbol.escapedName;if(vx(t.inferredTypeParameters,c)||vx(a,c)){var l=Ea($n(262144,bx(e.concatenate(t.inferredTypeParameters,a),c)));l.target=_,n=e.append(n,_),i=e.append(i,l),a.push(l)}else a.push(_)}if(i)for(var u=Fp(n,i),d=0,p=i;d<p.length;d++){var _;(_=p[d]).mapper=u}return a})(l,o.typeParameters),_=Il(o,p),f=e.map(l.inferences,(e=>fm(e.typeParameter)));if(om(_,c,((e,t)=>{Pm(f,e,t,0,!0)})),e.some(f,yx)&&(sm(_,c,((e,t)=>{Pm(f,e,t)})),!((e,t)=>{for(var r=0;r<e.length;r++)if(yx(e[r])&&yx(t[r]))return!0;return!1})(l.inferences,f)))return((e,t)=>{for(var r=0;r<e.length;r++)!yx(e[r])&&yx(t[r])&&(e[r]=t[r])})(l.inferences,f),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),Ll(_)}return Ll(gv(o,c,l))}}}}return r}function hx(e,t){2&t&&(Rh(e).flags|=4)}function yx(e){return!(!e.candidates&&!e.contraCandidates)}function vx(t,r){return e.some(t,(e=>e.symbol.escapedName===r))}function bx(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!vx(e,a))return a}}function xx(e){var t=_v(e);if(t&&!t.typeParameters)return Al(t)}function Ex(t){var r=Sx(t);if(r)return r;if(134217728&t.flags&&kr){var n=kr[O(t)];if(n)return n}var i=Qr,a=Tx(t);return Qr!==i&&((kr||(kr=[]))[O(t)]=a,e.setNodeFlags(t,134217728|t.flags)),a}function Sx(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return Tp(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||Qv(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Tp(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return Tx(t)}else if(n=e.isCallChain(r)?(e=>{var t=Tx(e.expression),r=zf(t,e.expression),n=xx(t);return n&&Kf(n,e,r!==t)})(r):xx(Ey(r.expression)))return n}function Dx(e){var t=ni(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Re;try{return t.contextFreeType=Tx(e,4)}finally{e.contextualType=r}}function Tx(t,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var a=s;s=t,C=0;var o=gx(t,((t,n,i)=>{var a=t.kind;if(r)switch(a){case 226:case 213:case 214:r.throwIfCancellationRequested()}switch(a){case 79:return((t,r)=>{if(e.isThisInTypeQuery(t))return uh(t);var n=Vm(t);if(n===Pe)return je;if(n===pe){if(Uy(t))return Un(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),je;var i=e.getContainingFunction(t);return J<2&&(214===i.kind?Un(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&Un(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ni(i).flags|=8192,Zo(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||ih(n,t);var a=ma(n),o=OS(a,t);Jn(o)&&Ad(t,o)&&o.declarations&&Hn(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(257===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){ni(s).flags|=16777216,ni(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(226===s.kind)for(i=e.getThisContainer(t,!1);305!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(ni(s).flags|=16777216,ni(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!((t,r)=>{if(!(J>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||292===r.valueDeclaration.parent.kind)){var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=((t,r)=>!!e.findAncestor(t,(t=>t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t)))(t,n),a=ah(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,255))&&u.parent===n){var s=((t,r)=>e.findAncestor(t,(e=>e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement)))(t.parent,n);if(s){var c=ni(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(ni(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,255))&&u.parent===n&&((t,r)=>{for(var n=t;212===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(219===n.parent.kind||220===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(e=>e===r?"quit":e===r.statement))})(t,n)&&(ni(r.valueDeclaration).flags|=4194304),ni(r.valueDeclaration).flags|=524288}i&&(ni(r.valueDeclaration).flags|=262144)}})(t,n);var c=((t,r)=>{var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(254===i.kind&&2&e.getCombinedNodeFlags(n)||164===i.kind){var a=ni(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=fo(i,0);if(a.flags&=-268435457,o&&1048576&o.flags&&(164!==i.kind||!Yg(t)))return 131072&(l=qg(n.parent,o,o,void 0,r.flowNode)).flags?st:Eo(n,l)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var s=n.parent;if(s.parameters.length>=2&&n_(s)){var c=Vh(s);if(c&&1===c.parameters.length&&U(c)){var l,u=zc(Zo(c.parameters[0]));if(1048576&u.flags&&Dg(u,kf)&&!Yg(t))return Vd(l=qg(s,u,u,void 0,r.flowNode),yp(s.parameters.indexOf(n)-(e.getThisParameter(s)?1:0)))}}}}return Zo(t)})(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Un(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,za(n)),je;if(Vb(a))return 3&a.flags?Un(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,za(n)):Un(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,za(n)),je}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=xi(n)}if(!s)return c;c=rh(c,t,r);for(var d=164===e.getRootDeclaration(s).kind,p=Xg(s),_=Xg(t),f=_!==p,m=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&dg(t.parent.parent),g=134217728&n.flags;_!==p&&(213===_.kind||214===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(Zg(a)&&c!==Xt||d&&!Yg(a));)_=Xg(_);var h=d||u||f||m||g||e.isBindingElement(s)||c!==Le&&c!==Xt&&(!q||0!=(16387&c.flags)||Km(t)||275===t.parent.kind)||230===t.parent.kind||254===s.kind&&s.exclamationToken||16777216&s.flags,y=qg(t,c,h?d?((e,t)=>{if(ao(t.symbol,2)){var r=q&&164===t.kind&&t.initializer&&32768&Of(e)&&!(32768&Of(Tx(t.initializer)));return co(),r?ag(e,524288):e}return Xo(t.symbol),e})(c,s):c:c===Le||c===Xt?Je:Bf(c),_);if(jg(t)||c!==Le&&c!==Xt){if(!h&&!(32768&Of(c))&&32768&Of(y))return Un(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,za(n)),c}else if(y===Le||y===Xt)return Z&&(Un(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,za(n),Ja(y)),Un(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,za(n),Ja(y))),NE(y);return l?Ef(y):y})(t,n);case 80:return(t=>{!(t=>{if(!e.getContainingClass(t))return xT(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return xT(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&101===t.parent.operatorToken.kind;Oy(t)||r||xT(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}})(t);var r=Oy(t);return r&&Yy(r,void 0,!1),Re})(t);case 108:return uh(t);case 106:return _h(t);case 104:return Xe;case 14:case 10:return fp(hp(t.text));case 8:return DT(t),fp(yp(+t.text));case 9:return(t=>{!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&J<7&&xT(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)})(t),fp(vp({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return rt;case 95:return et;case 223:return ix(t);case 13:return $t;case 204:return zh(t,n,i);case 205:return((t,r)=>{var n=e.isAssignmentTarget(t);!((t,r)=>{for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(298!==o.kind){var s=o.name;if(162===s.kind&&iT(s),297===o.kind&&!r&&o.objectAssignmentInitializer&&xT(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),80===s.kind&&xT(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];131===u.kind&&169===o.kind||xT(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var d=void 0;switch(o.kind){case 297:sT(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 296:oT(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&DT(s),d=4;break;case 169:d=8;break;case 172:d=1;break;case 173:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var p=e.getPropertyNameForPropertyNameNode(s);if(void 0===p)continue;var _=n.get(p);if(_)if(8&d&&8&_)xT(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else if(4&d&&4&_)xT(s,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(s));else{if(!(3&d&&3&_))return xT(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===_||d===_)return xT(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(p,d|_)}else n.set(p,d)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return xT(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}})(t,n);for(var i=q?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=St,c=Ph(t),l=c&&c.pattern&&(201===c.pattern.kind||205===c.pattern.kind),u=px(t),d=u?8:0,p=e.isInJSFile(t)&&!e.isInJsonFile(t),_=e.getJSDocEnumTag(t),f=!c&&p&&!_,m=ne,g=!1,h=!1,y=!1,v=!1,b=0,x=t.properties;b<x.length;b++){var E=x[b];E.name&&e.isComputedPropertyName(E.name)&&Hh(E.name)}for(var S=0,D=0,T=t.properties;D<T.length;D++){var C=T[D],k=la(C),A=C.name&&162===C.name.kind?Hh(C.name):void 0;if(296===C.kind||297===C.kind||e.isObjectLiteralMethod(C)){var N=296===C.kind?fx(C,r):297===C.kind?_x(!n&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,r):mx(C,r);if(p){var w=So(C);w?(f_(N,w,C),N=w):_&&_.typeExpression&&f_(N,Tp(_.typeExpression),C)}m|=458752&e.getObjectFlags(N);var F=A&&Ls(A)?A:void 0,P=F?$n(4|k.flags,Ks(F),4096|d):$n(4|k.flags,k.escapedName,d);if(F&&(P.nameType=F),n)(296===C.kind&&Kh(C.initializer)||297===C.kind&&C.objectAssignmentInitializer)&&(P.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var I=Qc(c,k.escapedName);I?P.flags|=16777216&I.flags:W.suppressExcessPropertyErrors||ol(c,Ye)||Un(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,za(k),Ja(c))}if(P.declarations=k.declarations,P.parent=k.parent,k.valueDeclaration&&(P.valueDeclaration=k.valueDeclaration),P.type=N,P.target=k,k=P,null==i||i.set(P.escapedName,P),c&&r&&2&r&&!(4&r)&&(296===C.kind||169===C.kind)&&t_(C)){var O=Rh(t);e.Debug.assert(O),pm(O,296===C.kind?C.initializer:C,N)}}else{if(298===C.kind){if(J<2&&$D(C,2),o.length>0&&(s=up(s,B(),t.symbol,m,u),o=[],a=e.createSymbolTable(),h=!1,y=!1,v=!1),Xh(N=$c(Tx(C.expression)))){var M=lp(N,u);if(i&&ty(M,i,C),S=o.length,_o(s))continue;s=up(s,M,t.symbol,m,u)}else Un(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=je;continue}e.Debug.assert(172===C.kind||173===C.kind),JS(C)}!A||8576&A.flags?a.set(k.escapedName,k):u_(A,ft)&&(u_(A,Qe)?y=!0:u_(A,at)?v=!0:h=!0,n&&(g=!0)),o.push(k)}if(l&&298!==t.parent.kind)for(var R=0,L=Ac(c);R<L.length;R++)P=L[R],a.get(P.escapedName)||Qc(s,P.escapedName)||(16777216&P.flags||Un(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P));return _o(s)?je:s!==St?(o.length>0&&(s=up(s,B(),t.symbol,m,u),o=[],a=e.createSymbolTable(),h=!1,y=!1),Ag(s,(e=>e===St?B():e))):B();function B(){var r=[];h&&r.push(Gh(t,S,o,Ye)),y&&r.push(Gh(t,S,o,Qe)),v&&r.push(Gh(t,S,o,at));var i=ka(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|m,f&&(i.objectFlags|=4096),g&&(i.objectFlags|=512),n&&(i.pattern=t),i}})(t,n);case 206:return wy(t,n);case 161:return Fy(t,n);case 207:return((e,t)=>32&e.flags?((e,t)=>{var r=Tx(e.expression),n=zf(r,e.expression);return Kf(nv(e,Ay(n,e.expression),t),e,n!==r)})(e,t):nv(e,Ey(e.expression),t))(t,n);case 208:if(100===t.expression.kind)return(t=>{if((t=>{if(H===e.ModuleKind.ES2015)return xT(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(t.typeArguments)return xT(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var r=t.arguments;if(H!==e.ModuleKind.ESNext&&H!==e.ModuleKind.NodeNext&&(QD(r),r.length>1))return xT(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===r.length||r.length>2)return xT(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);n&&xT(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)})(t),0===t.arguments.length)return Nb(t,Re);for(var r=t.arguments[0],n=sx(r),i=t.arguments.length>1?sx(t.arguments[1]):void 0,a=2;a<t.arguments.length;++a)sx(t.arguments[a]);if((32768&n.flags||65536&n.flags||!u_(n,Ye))&&Un(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ja(n)),i){var o=ku(!0);o!==St&&f_(i,Lf(o,32768),t.arguments[1])}var s=$i(t,r);if(s){var c=Qi(s,r,!0,!1);if(c)return Nb(t,eb(Zo(c),c,s,r)||tb(Zo(c),c,s,r))}return Nb(t,Re)})(t);case 209:return((t,r)=>{var n;tT(t,t.typeArguments);var i=Hv(t,void 0,r);if(i===Mr)return lt;if(Xv(i,t),106===t.expression.kind)return ot;if(209===t.kind){var a=i.declaration;if(a&&171!==a.kind&&175!==a.kind&&180!==a.kind&&!e.isJSDocConstructSignature(a)&&!$v(a))return Z&&Un(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Re}if(e.isInJSFile(t)&&rb(t))return Dl(t.arguments[0]);var o=Al(i);if(12288&o.flags&&Qv(t))return xp(e.walkUpParenthesizedExpressions(t.parent));if(208===t.kind&&!t.questionDotToken&&238===t.parent.kind&&16384&o.flags&&Cl(i))if(e.isDottedName(t.expression)){if(!Kg(t)){var s=Un(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Vg(t.expression,s)}}else Un(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=qv(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var l=ka(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,_d([o,l])}}return o})(t,n);case 210:return(t=>{(t=>!!(t.questionDotToken||32&t.flags)&&xT(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain))(t)||tT(t,t.typeArguments),J<2&&$D(t,262144);var r=Hv(t);return Xv(r,t),Al(r)})(t);case 212:return((t,r)=>{if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return ib(n,n,t.expression,r)}return Tx(t.expression,r)})(t,n);case 226:return(e=>(vS(e),JS(e),Zo(la(e))))(t);case 213:case 214:return Bb(t,n);case 216:return(e=>(Tx(e.expression),Cn))(t);case 211:case 229:return(t=>{if(211===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&xT(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return ib(t,t.type,t.expression)})(t);case 230:return(e=>32&e.flags?(e=>{var t=Tx(e.expression),r=zf(t,e.expression);return Kf(jf(r),e,r!==t)})(e):jf(Tx(e.expression)))(t);case 228:return ab(t);case 231:return(t=>((t=>{var r=t.name.escapedText;switch(t.keywordToken){case 103:if("target"!==r)return xT(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 100:"meta"!==r&&xT(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}})(t),103===t.keywordToken?sb(t):100===t.keywordToken?(t=>{H===e.ModuleKind.Node16||H===e.ModuleKind.NodeNext?e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext&&Un(t,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):H<e.ModuleKind.ES2020&&H!==e.ModuleKind.System&&Un(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(4194304&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?Tu():je})(t):e.Debug.assertNever(t.keywordToken)))(t);case 215:return(t=>{Tx(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return Un(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),it;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&Un(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=ma(ni(r).resolvedSymbol);return n&&(Vb(n)&&Un(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),((t,r)=>{var n=Zo(r);!q||131075&n.flags||(ie?16777216&r.flags:32768&Of(n))||Un(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)})(r,n)),it})(t);case 217:return(e=>(Tx(e.expression),He))(t);case 218:return(t=>{_((()=>(t=>{var r=e.getContainingFunctionOrClassStaticBlock(t);if(r&&e.isClassStaticBlockDeclaration(r))Un(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var n;if(e.isInTopLevelContext(t)){if(!yT(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,W)){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos));var a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Sn.add(a)}switch(H){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(n.impliedNodeFormat===e.ModuleKind.CommonJS){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Sn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(J>=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Sn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!yT(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&171!==r.kind&&0==(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Sn.add(a)}}vh(t)&&Un(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)})(t)));var r=Tx(t.expression),n=$x(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||_o(n)||3&r.flags||Vn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n})(t);case 219:return(t=>{var r=Tx(t.operand);if(r===ct)return ct;switch(t.operand.kind){case 8:switch(t.operator){case 40:return fp(yp(-t.operand.text));case 39:return fp(yp(+t.operand.text))}break;case 9:if(40===t.operator)return fp(vp({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return Ay(r,t.operand),Jb(r,12288)&&Un(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Hb(r,2112)&&Un(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Ja(Ef(r))),Qe):Wb(r);case 53:LE(t.operand);var n=12582912&ig(r);return 4194304===n?et:8388608===n?rt:it;case 45:case 46:return jb(t.operand,Ay(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&zb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wb(r)}return je})(t);case 220:return(t=>{var r=Tx(t.operand);return r===ct?ct:(jb(t.operand,Ay(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&zb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wb(r))})(t);case 221:return ae(t,n);case 222:return((e,t)=>(LE(e.condition),ME(e.condition,e.whenTrue),ad([Tx(e.whenTrue,t),Tx(e.whenFalse,t)],2)))(t,n);case 225:return((e,t)=>(J<2&&$D(e,W.downlevelIteration?1536:1024),UE(33,Tx(e.expression,t),Je,e.expression)))(t,n);case 227:return He;case 224:return(t=>{_((()=>{8192&t.flags||vT(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),vh(t)&&Un(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Re;var n=e.getFunctionFlags(r);if(!(1&n))return Re;var i=0!=(2&n);t.asteriskToken&&(i&&J<99&&$D(t,26624),!i&&J<2&&W.downlevelIteration&&$D(t,256));var a=Nl(r),o=a&&lS(a,i),s=o&&o.yieldType||Re,c=o&&o.nextType||Re,l=i?Yx(c)||Re:c,u=t.expression?Tx(t.expression):He,d=Pb(t,u,l,i);if(a&&d&&m_(d,s,t.expression||t,t.expression),t.asteriskToken)return KE(i?19:17,1,u,t.expression)||Re;if(a)return cS(2,a,i)||Re;var p=bh(2,r);return p||(p=Re,_((()=>{if(Z&&!e.expressionResultIsUnused(t)){var r=Mh(t);r&&!po(r)||Un(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p})(t);case 232:return(e=>e.isSpread?Vd(e.type,Qe):e.type)(t);case 288:return((t,r)=>{if((t=>{t.expression&&e.isCommaSequence(t.expression)&&xT(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)})(t),t.expression){var n=Tx(t.expression,r);return t.dotDotDotToken&&n!==Re&&!sf(n)&&Un(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return je})(t,n);case 278:case 279:return((e,t)=>(JS(e),py(e)||Re))(t);case 282:return(t=>{fy(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(W)||!W.jsxFactory&&!r.pragmas.has("jsx")||W.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Un(t,W.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ey(t),py(t)||Re})(t);case 286:return((t,r)=>((t,r)=>{for(var n,i=t.attributes,a=q?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=Dt,c=!1,l=!1,u=2048,d=sy(ay(t)),p=0,_=i.properties;p<_.length;p++){var f=_[p],m=f.symbol;if(e.isJsxAttribute(f)){var g=Zh(f,r);u|=458752&e.getObjectFlags(g);var h=$n(4|m.flags,m.escapedName);h.declarations=m.declarations,h.parent=m.parent,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),h.type=g,h.target=m,o.set(h.escapedName,h),null==a||a.set(h.escapedName,h),f.name.escapedText===d&&(l=!0)}else e.Debug.assert(287===f.kind),o.size>0&&(s=up(s,D(),i.symbol,u,!1),o=e.createSymbolTable()),po(g=$c(sx(f.expression,r)))&&(c=!0),Xh(g)?(s=up(s,g,i.symbol,u,!1),a&&ty(g,a,f)):(Un(f.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?_d([n,g]):g)}c||o.size>0&&(s=up(s,D(),i.symbol,u,!1));var y=278===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=ey(y,r);if(!c&&d&&""!==d){l&&Un(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=Ph(t.attributes),x=b&&Ch(b,d),E=$n(4,d);E.type=1===v.length?v[0]:x&&Sg(x,gf)?Wu(v):Bu(ad(v)),E.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(E.valueDeclaration,i),E.valueDeclaration.symbol=E;var S=e.createSymbolTable();S.set(d,E),s=up(s,ka(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Re:n&&s!==Dt?_d([n,s]):n||(s===Dt?D():s);function D(){u|=ne;var t=ka(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|u,t}})(t.parent,r))(t,n);case 280:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return je})(t,n,i),n);return qb(o)&&((t,r)=>{206===t.parent.kind&&t.parent.expression===t||207===t.parent.kind&&t.parent.expression===t||(79===t.kind||161===t.kind)&&rD(t)||181===t.parent.kind&&t.parent.exprName===t||275===t.parent.kind||Un(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),W.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Un(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))})(t,o),s=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Cx(t){XD(t),t.expression&&vT(t.expression,e.Diagnostics.Type_expected),zS(t.constraint),zS(t.default);var r=Cs(la(t));Mc(r),(e=>jc(e)!==wt)(r)||Un(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Ja(r));var n=wc(r),i=Uc(r);n&&i&&f_(i,$s(Xp(n,Ip(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),JS(t),_((()=>mS(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)))}function kx(t){qD(t),wE(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(171===r.kind&&e.nodeIsPresent(r.body)||Un(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),171===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Un(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Un(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Un(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),171!==r.kind&&175!==r.kind&&180!==r.kind||Un(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),214===r.kind&&Un(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),172!==r.kind&&173!==r.kind||Un(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||u_($c(Zo(t.symbol)),Yt)||Un(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Ax(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===n)return Un(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((202===s.kind||201===s.kind)&&Ax(s,r,n))return!0}}}function Nx(t){176===t.kind?(t=>{qD(t)||(t=>{var r=t.parameters[0];if(1!==t.parameters.length)return xT(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(QD(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return xT(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return xT(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return xT(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return xT(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return xT(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var n=Tp(r.type);Sg(n,(e=>!!(8576&e.flags)))||Id(n)?xT(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Dg(n,zl)?t.type||xT(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):xT(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)})(t)})(t):179!==t.kind&&256!==t.kind&&180!==t.kind&&174!==t.kind&&171!==t.kind&&175!==t.kind||eT(t);var r=e.getFunctionFlags(t);4&r||(3==(3&r)&&J<99&&$D(t,6144),2==(3&r)&&J<4&&$D(t,64),0!=(3&r)&&J<2&&$D(t,128)),gS(e.getEffectiveTypeParameterDeclarations(t)),(t=>{var r=e.filter(e.getJSDocTags(t),e.isJSDocParameterTag);if(e.length(r)){var n=e.isInJSFile(t),i=new e.Set,a=new e.Set;if(e.forEach(t.parameters,((t,r)=>{var n=t.name;e.isIdentifier(n)&&i.add(n.escapedText),e.isBindingPattern(n)&&a.add(r)})),El(t)){var o=e.lastOrUndefined(r);n&&o&&e.isIdentifier(o.name)&&o.typeExpression&&o.typeExpression.type&&!i.has(o.name.escapedText)&&!sf(Tp(o.typeExpression.type))&&Un(o.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(o.name))}else e.forEach(r,((t,r)=>{var o=t.name;a.has(r)||e.isIdentifier(o)&&i.has(o.escapedText)||(e.isQualifiedName(o)?n&&Un(o,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(o),e.entityNameToString(o.left)):Kn(n,o,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(o)))}))}})(t),e.forEach(t.parameters,kx),t.type&&zS(t.type),_((()=>{!(t=>{J>=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(t=>{t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===pe.escapedName&&Bn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))})(t);var r=e.getEffectiveReturnTypeNode(t);if(Z&&!r)switch(t.kind){case 175:Un(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 174:Un(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=Tp(r);if(i===ot)Un(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=cS(0,i,0!=(2&n))||Re;f_(Fb(a,cS(1,i,0!=(2&n))||a,cS(2,i,0!=(2&n))||ze,!!(2&n)),i,r)}}else 2==(3&n)&&((t,r)=>{var n=Tp(r);if(J>=2){if(_o(n))return;var i=wu(!0);if(i!==kt&&!ts(n,i))return void Un(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Ja(Qx(n)||ot))}else{if((t=>{eE(t&&e.getEntityNameFromTypeNode(t),!1)})(r),_o(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Un(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ja(n));var o=Ji(a,111551,!0),s=o?Zo(o):je;if(_o(s))return void(79===a.kind&&"Promise"===a.escapedText&&rs(n)===wu(!1)?Un(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Un(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=or||(or=Du("PromiseConstructorLike",0,!0))||St;if(c===St)return void Un(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!f_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=ai(t.locals,l.escapedText,111551);if(u)return void Un(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}$x(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)})(t,r)}176!==t.kind&&317!==t.kind&&cE(t)}))}function wx(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(166===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}r.get(o)?(Un(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Un(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function Fx(t){if(258===t.kind){var r=la(t);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==t)return}var n=Bl(la(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=e=>{1===e.parameters.length&&e.parameters[0].type&&Eg(Tp(e.parameters[0].type),(t=>{var r=i.get(Qu(t));r?r.declarations.push(e):i.set(Qu(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o<s.length;o++)a(s[o]);i.forEach((t=>{if(t.declarations.length>1)for(var r=0,n=t.declarations;r<n.length;r++)Un(n[r],e.Diagnostics.Duplicate_index_signature_for_type_0,Ja(t.type))}))}}function Px(t){qD(t)||(t=>{if(e.isComputedPropertyName(t.name)&&e.isBinaryExpression(t.name.expression)&&101===t.name.expression.operatorToken.kind)return xT(t.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return xT(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(uT(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(J<2&&e.isPrivateIdentifier(t.name))return xT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(258===t.parent.kind){if(uT(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return xT(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(t.parent)){if(uT(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return xT(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(16777216&t.flags&&_T(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||16777216&t.flags||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return xT(t.exclamationToken,r)}})(t)||iT(t.name),wE(t),Ix(t),e.hasSyntacticModifier(t,128)&&167===t.kind&&t.initializer&&Un(t,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function Ix(t){if(e.isPrivateIdentifier(t.name)&&J<99){for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))ni(r).flags|=67108864;if(e.isClassExpression(t.parent)){var n=ah(t.parent);n&&(ni(t.name).flags|=524288,ni(n).flags|=65536)}}}function Ox(t){return 106===t.kind||108===t.kind||!e.isThisContainerOrFunctionBlock(t)&&!!e.forEachChild(t,Ox)}function Mx(t){_((()=>{if(eT(t)||(t=>{if(!(16777216&t.flags)&&182!==t.parent.kind&&258!==t.parent.kind){if(J<1)return xT(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(J<2&&e.isPrivateIdentifier(t.name))return xT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return bT(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body){if(e.hasSyntacticModifier(t,128))return xT(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(182===t.parent.kind||258===t.parent.kind)return xT(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.typeParameters)return xT(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!(e=>lT(e)||e.parameters.length===(172===e.kind?0:1))(t))return xT(t.name,172===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(173===t.kind){if(t.type)return xT(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return xT(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return xT(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return xT(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1})(t)||iT(t.name),aE(t),Nx(t),172===t.kind&&!(16777216&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||Un(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),162===t.name.kind&&Hh(t.name),Vs(t)){var r=la(t),n=e.getDeclarationOfKind(r,172),i=e.getDeclarationOfKind(r,173);if(n&&i&&!(1&wD(n))){ni(n).flags|=1;var a=e.getEffectiveModifierFlags(n),o=e.getEffectiveModifierFlags(i);(128&a)!=(128&o)&&(Un(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Un(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&a&&!(24&o)||8&a&&!(8&o))&&(Un(n.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Un(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var s=Wo(n),c=Wo(i);s&&c&&f_(s,c,n,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var l=Jo(la(t));172===t.kind&&Lb(t,l)})),zS(t.body),Ix(t)}function Rx(t,r){return vl(e.map(t.typeArguments,Tp),r,yl(r),e.isInJSFile(t))}function Lx(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=wc(r[o]);s&&(n||(i=Fp(r,n=Rx(t,r))),a=a&&f_(n[o],Xp(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function Bx(t){var r=gu(t);if(!_o(r)){var n=ni(t).resolvedSymbol;if(n)return 524288&n.flags&&ri(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function jx(t){tT(t,t.typeArguments),178!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||bT(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,zS);var r=gu(t);if(!_o(r)){t.typeArguments&&_((()=>{var e=Bx(t);e&&Lx(t,e)}));var n=ni(t).resolvedSymbol;n&&(e.some(n.declarations,(e=>QS(e)&&!!(268435456&e.flags)))&&Hn(Yv(t),n.declarations,n.escapedName),32&r.flags&&8&n.flags&&Un(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Ja(r)))}}function Ux(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(u_(i,xd(n,!1)))return 207===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&bc(n)&&Un(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Ja(n)),t;var a=Kc(n);if(ol(a,Qe)&&$b(i,296))return t;if(Od(n)){var o=kd(i,r);if(o){var s=Eg(a,(e=>Qc(e,o)));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Un(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),je}}return Un(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Ja(i),Ja(n)),je}function Vx(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t))&&!!(16777216&t.flags)}function Kx(t,r){var n=e.getCombinedModifierFlags(t);return 258!==t.parent.kind&&257!==t.parent.kind&&226!==t.parent.kind&&16777216&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function zx(t){_((()=>(t=>{function r(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}var n,i,a,o=0,s=155,c=!1,l=!0,u=!1,d=t.declarations,p=0!=(16384&t.flags);function _(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(e=>{if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(169!==t.kind&&168!==t.kind||e.isStatic(t)===e.isStatic(n)||Un(i,e.isStatic(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void Un(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;p?Un(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?Un(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Un(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var m,g,h,y,v,b=!1,x=!1,E=!1,S=[];if(d)for(var D=0,T=d;D<T.length;D++){var C=T[D],k=16777216&C.flags,A=C.parent&&(258===C.parent.kind||182===C.parent.kind)||k;if(A&&(a=void 0),257!==C.kind&&226!==C.kind||k||(E=!0),256===C.kind||169===C.kind||168===C.kind||171===C.kind){S.push(C);var N=Kx(C,155);o|=N,s&=N,c=c||e.hasQuestionToken(C),l=l&&e.hasQuestionToken(C);var w=e.nodeIsPresent(C.body);w&&n?p?x=!0:b=!0:(null==a?void 0:a.parent)===C.parent&&a.end!==C.pos&&_(a),w?n||(n=C):u=!0,a=C,A||(i=C)}}if(x&&e.forEach(S,(t=>{Un(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),b&&e.forEach(S,(t=>{Un(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),E&&!p&&16&t.flags&&d){var F=e.filter(d,(e=>257===e.kind)).map((t=>e.createDiagnosticForNode(t,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)));e.forEach(d,(r=>{var n=257===r.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:256===r.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;n&&e.addRelatedInfo.apply(void 0,f([Un(e.getNameOfDeclaration(r)||r,n,e.symbolName(t))],F,!1))}))}if(!i||i.body||e.hasSyntacticModifier(i,128)||i.questionToken||_(i),u&&(d&&(((t,n,i,a,o)=>{if(0!=(a^o)){var s=Kx(r(t,n),155);e.forEach(t,(t=>{var r=Kx(t,155)^s;1&r?Un(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Un(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Un(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Un(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}})(d,n,0,o,s),((t,n,i,a)=>{if(i!==a){var o=e.hasQuestionToken(r(t,n));e.forEach(t,(t=>{e.hasQuestionToken(t)!==o&&Un(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}})(d,n,c,l)),n))for(var P=Sl(t),I=bl(n),O=0,M=P;O<M.length;O++){var R=M[O];if(m=R,void 0,void 0,void 0,void 0,g=Ml(I),h=Ml(m),y=Al(g),(v=Al(h))!==ot&&!P_(v,y,Nn)&&!P_(y,v,Nn)||0===T_(g,h,4,!1,void 0,void 0,s_,void 0)){e.addRelatedInfo(Un(R.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}})(t)))}function Wx(t){_((()=>(t=>{var r=t.localSymbol;if((r||(r=la(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,i=0,a=0,o=0,s=r.declarations;o<s.length;o++){var c=g(f=s[o]),l=Kx(f,513);1&l?512&l?a|=c:n|=c:i|=c}var u=n&i,d=a&(n|i);if(u||d)for(var p=0,_=r.declarations;p<_.length;p++){c=g(f=_[p]);var f,m=e.getNameOfDeclaration(f);c&d?Un(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):c&u&&Un(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}function g(t){var r=t;switch(r.kind){case 258:case 259:case 345:case 338:case 339:return 2;case 261:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 257:case 260:case 299:return 3;case 305:return 7;case 271:case 221:var n=r,i=e.isExportAssignment(n)?n.expression:n.right;if(!e.isEntityNameExpression(i))return 1;r=i;case 265:case 268:case 267:var a=0,o=Li(la(r));return e.forEach(o.declarations,(e=>{a|=g(e)})),a;case 254:case 203:case 256:case 270:case 79:return 1;default:return e.Debug.failBadSyntaxKind(r)}}})(t)))}function Jx(e,t,r,n){var i=Hx(e,t);return i&&Yx(i,t,r,n)}function Hx(t,r){if(!po(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(ts(t,wu(!1)))return n.promisedTypeOfPromise=eu(t)[0];if(!Gb(t,262140)){var i=uo(t,"then");if(!po(i)){var a=i?el(i,0):e.emptyArray;if(0!==a.length){var o=ag(ad(e.map(a,Eb)),2097152);if(!po(o)){var s=el(o,0);if(0!==s.length)return n.promisedTypeOfPromise=ad(e.map(s,Eb),2);r&&Un(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Un(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}}function $x(e,t,r,n,i){return(t?Yx(e,r,n,i):Qx(e,r,n,i))||je}function Gx(e){if(Gb(e,262140))return!1;var t=uo(e,"then");return!!t&&el(ag(t,2097152),0).length>0}function qx(e){var t;if(16777216&e.flags){var r=Mu(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function Xx(e){return 1048576&e.flags?Ag(e,Xx):qx(e)?e.aliasTypeArguments[0]:e}function Yx(t,r,n,i){var a=Qx(t,r,n,i);return a&&(t=>{if(po(t))return t;if(qx(t))return t;if(Od(t)){var r=Mc(t);if(!r||3&r.flags||k_(r)||Gx(r)){var n=Mu(!0);if(n)return nu(n,[Xx(t)])}}return e.Debug.assert(void 0===Hx(t),"type provided should not be a non-generic 'promise'-like."),t})(a)}function Qx(t,r,n,i){if(po(t))return t;if(qx(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){var o=r?e=>Qx(e,r,n,i):Qx;return a.awaitedTypeOfType=Ag(t,o)}var s=Hx(t);if(s){if(t.id===s.id||En.lastIndexOf(s.id)>=0)return void(r&&Un(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));En.push(t.id);var c=Qx(s,r,n,i);if(En.pop(),!c)return;return a.awaitedTypeOfType=c}if(!Gx(t))return a.awaitedTypeOfType=t;r&&(e.Debug.assertIsDefined(n),Un(r,n,i))}function Zx(t){var r=Hv(t);Xv(r,t);var n=Al(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 257:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=ad([Zo(la(t.parent)),ot]);break;case 167:case 164:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=ot;break;case 169:case 172:case 173:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=ad([Lu(oD(t.parent)),ot]);break;default:return e.Debug.fail()}f_(n,a,t,i)}}function eE(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=li(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!ga(a)||SD(Li(a))||Ui(a)){if(r&&W.isolatedModules&&e.getEmitModuleKind(W)>=e.ModuleKind.ES2015&&!ga(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Un(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Ei);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else Ki(a)}}function tE(t){var r=rE(t);r&&e.isEntityName(r)&&eE(r,!0)}function rE(e){if(e)switch(e.kind){case 188:case 187:return nE(e.types);case 189:return nE([e.trueType,e.falseType]);case 191:case 197:return rE(e.type);case 178:return e.typeName}}function nE(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];191===a.kind||197===a.kind;)a=a.type;if(143!==a.kind&&(q||(196!==a.kind||104!==a.literal.kind)&&153!==a.kind)){var o=rE(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function iE(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function aE(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){W.experimentalDecorators||Un(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if($D(r,8),164===t.kind&&$D(r,32),W.emitDecoratorMetadata)switch($D(r,16),t.kind){case 257:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)tE(iE(a[i]));break;case 172:case 173:var o=172===t.kind?173:172,s=e.getDeclarationOfKind(la(t),o);tE(zo(t)||s&&zo(s));break;case 169:for(var c=0,l=t.parameters;c<l.length;c++)tE(iE(l[c]));tE(e.getEffectiveReturnTypeNode(t));break;case 167:tE(e.getEffectiveTypeAnnotationNode(t));break;case 164:tE(iE(t));for(var u=0,d=t.parent.parameters;u<d.length;u++)tE(iE(d[u]))}e.forEach(t.decorators,Zx)}}function oE(e){switch(e.kind){case 79:return e;case 206:return e.name;default:return}}function sE(t){var r;aE(t),Nx(t);var n=e.getFunctionFlags(t);if(t.name&&162===t.name.kind&&Hh(t.name),Vs(t)){var i=la(t),a=t.localSymbol||i,o=null===(r=a.declarations)||void 0===r?void 0:r.find((e=>e.kind===t.kind&&!(262144&e.flags)));t===o&&zx(a),i.parent&&zx(i)}var s=168===t.kind?void 0:t.body;if(zS(s),Lb(t,Nl(t)),_((()=>{e.getEffectiveReturnTypeNode(t)||(e.nodeIsMissing(s)&&!Vx(t)&&im(t,Re),1&n&&e.nodeIsPresent(s)&&Al(bl(t)))})),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!jh(Tp(c.typeExpression),t)&&Un(c.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function cE(t){_((()=>{var r=e.getSourceFileOfNode(t),n=$r.get(r.path);n||(n=[],$r.set(r.path,n)),n.push(t)}))}function lE(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 257:case 226:pE(a,r),fE(a,r);break;case 305:case 261:case 235:case 263:case 242:case 243:case 244:vE(a,r);break;case 171:case 213:case 256:case 214:case 169:case 172:case 173:a.body&&vE(a,r),fE(a,r);break;case 168:case 174:case 175:case 179:case 180:case 259:case 258:fE(a,r);break;case 190:_E(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function uE(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=QS(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function dE(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function pE(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 169:case 167:case 172:case 173:if(173===a.kind&&32768&a.symbol.flags)break;var o=la(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||16777216&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,za(o)));break;case 171:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&r(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 176:case 234:case 170:break;default:e.Debug.fail("Unexpected class member")}}}function _E(t,r){var n=t.typeParameter;mE(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function fE(t,r){var n=la(t).declarations;if(n&&e.last(n)===t)for(var i=e.getEffectiveTypeParameterDeclarations(t),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if(mE(c)){var l=e.idText(c.name),u=c.parent;if(190!==u.kind&&u.typeParameters.every(mE)){if(e.tryAddToSet(a,u)){var d=e.getSourceFileOfNode(u),p=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(d,u.typeParameters),_=1===u.typeParameters.length,f=_?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,m=_?l:void 0;r(c,1,e.createFileDiagnostic(d,p.pos,p.end-p.pos,f,m))}}else r(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function mE(e){return!(262144&ca(e.symbol).isReferenced||dE(e.name))}function gE(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function hE(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function yE(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!dE(t.name)):dE(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||xE(t))&&dE(t.name)}function vE(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((t=>{var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol)&&t.declarations)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!yE(l))if(xE(l))gE(n,267===(o=l).kind?o:268===o.kind?o.parent:o.parent.parent,l,O);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||gE(i,l.parent,l,O);else if(e.isVariableDeclaration(l))gE(a,l.parent,l,O);else{var u=t.valueDeclaration&&hE(t.valueDeclaration),d=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);u&&d?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||dE(d)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?gE(i,l.parent,l,O):r(u,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):uE(l,e.symbolName(t),r)}}})),n.forEach((t=>{var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?268===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];uE(c,e.idText(c.name),r)}})),i.forEach((t=>{var n=t[0],i=t[1],o=hE(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&254===n.parent.kind&&255===n.parent.parent.kind?gE(a,n.parent.parent,n.parent,O):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bE(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bE(l.name)))}})),a.forEach((t=>{var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bE(e.first(i).name)):e.createDiagnosticForNode(237===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,bE(s.name)))}}))}function bE(t){switch(t.kind){case 79:return e.idText(t);case 202:case 201:return bE(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function xE(e){return 267===e.kind||270===e.kind||268===e.kind}function EE(t){if(235===t.kind&&ST(t),e.isFunctionOrModuleBlock(t)){var r=Yr;e.forEach(t.statements,zS),Yr=r}else e.forEach(t.statements,zS);t.locals&&cE(t)}function SE(t,r,n){if((null==r?void 0:r.escapedText)!==n)return!1;if(167===t.kind||166===t.kind||169===t.kind||168===t.kind||172===t.kind||173===t.kind||296===t.kind)return!1;if(16777216&t.flags)return!1;if((e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t))&&e.isTypeOnlyImportOrExportDeclaration(t))return!1;var i=e.getRootDeclaration(t);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function DE(t){e.findAncestor(t,(r=>!!(4&wD(r))&&(79!==t.kind?Un(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Un(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function TE(t){e.findAncestor(t,(r=>!!(8&wD(r))&&(79!==t.kind?Un(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Un(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function CE(t){67108864&wD(e.getEnclosingBlockScopeContainer(t))&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&"string"==typeof t.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Bn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText))}function kE(t){var r=!1;if(e.isClassExpression(t)){for(var n=0,i=t.members;n<i.length;n++)if(134217728&wD(i[n])){r=!0;break}}else if(e.isFunctionExpression(t))134217728&wD(t)&&(r=!0);else{var a=e.getEnclosingBlockScopeContainer(t);a&&134217728&wD(a)&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name),"The target of a Reflect collision check should be an identifier"),Bn("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(t.name),"Reflect"))}function AE(t,r){r&&(((t,r)=>{if((!(H>=e.ModuleKind.ES2015)||H>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(SE(t,r,"require")||SE(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=lo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&Bn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}})(t,r),((t,r)=>{if(r&&!(J>=4)&&SE(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=lo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Bn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}})(t,r),((e,t)=>{J<=8&&(SE(e,t,"WeakMap")||SE(e,t,"WeakSet"))&&bn.push(e)})(t,r),((e,t)=>{t&&J>=2&&J<=8&&SE(e,t,"Reflect")&&xn.push(e)})(t,r),e.isClassLike(t)?(mS(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||(t=>{J>=1&&"Object"===t.escapedText&&(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&Un(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[H])})(r)):e.isEnumDeclaration(t)&&mS(r,e.Diagnostics.Enum_name_cannot_be_0))}function NE(e){return e===Le?Re:e===Xt?qt:e}function wE(t){var r;if(aE(t),e.isBindingElement(t)||zS(t.type),t.name){if(162===t.name.kind&&(Hh(t.name),t.initializer&&sx(t.initializer)),e.isBindingElement(t)){e.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&J<5&&$D(t,4),t.propertyName&&162===t.propertyName.kind&&Hh(t.propertyName);var n=t.parent.parent,i=fo(n,t.dotDotDotToken?64:0),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=yd(a);if(Ls(o)){var s=Qc(i,Ks(o));s&&(Yy(s,void 0,!1),vy(t,!!n.initializer&&106===n.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(t.name)&&(202===t.name.kind&&J<2&&W.downlevelIteration&&$D(t,512),e.forEach(t.name.elements,zS)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))Un(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&243!==t.parent.parent.kind,l=0===t.name.elements.length;if(c||l){var u=jo(t);if(c){var d=sx(t.initializer);q&&l?Ny(d,t):m_(d,jo(t),t,t.initializer)}l&&(e.isArrayBindingPattern(t.name)?UE(65,u,Je,t):q&&Ny(u,t))}}else{var p=la(t);if(2097152&p.flags&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(203===t.kind?t.parent.parent:t))PS(t);else{var _=NE(Zo(p));if(t===p.valueDeclaration){var f=e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=p.exports)||void 0===r?void 0:r.size)||243===t.parent.parent.kind||m_(sx(f),_,t,f,void 0)),p.declarations&&p.declarations.length>1&&e.some(p.declarations,(r=>r!==t&&e.isVariableLike(r)&&!PE(r,t)))&&Un(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var m=NE(jo(t));_o(_)||_o(m)||a_(_,m)||67108864&p.flags||FE(p.valueDeclaration,_,t,m),t.initializer&&m_(sx(t.initializer),m,t,t.initializer,void 0),p.valueDeclaration&&!PE(t,p.valueDeclaration)&&Un(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}167!==t.kind&&166!==t.kind&&(Wx(t),254!==t.kind&&203!==t.kind||(t=>{if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(254!==t.kind||t.initializer)){var r=la(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=li(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&hy(n)){var i=e.getAncestor(n.valueDeclaration,255),a=237===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(235===a.kind&&e.isFunctionLike(a.parent)||262===a.kind||261===a.kind||305===a.kind)){var o=za(n);Un(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}})(t),AE(t,t.name))}}}}function FE(t,r,n,i){var a=e.getNameOfDeclaration(n),o=167===n.kind||166===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Un(a,o,s,Ja(r),Ja(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function PE(t,r){return 164===t.kind&&254===r.kind||254===t.kind&&164===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function IE(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),(t=>{if(243!==t.parent.parent.kind&&244!==t.parent.parent.kind)if(16777216&t.flags)_T(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return xT(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return xT(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(237!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return xT(t.exclamationToken,r)}!(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)||H===e.ModuleKind.System||16777216&t.parent.parent.flags||!e.hasSyntacticModifier(t.parent.parent,1)||fT(t.name),(e.isLet(t)||e.isVarConst(t))&&mT(t.name)})(t),wE(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function OE(t){qD(t)||gT(t.declarationList)||(t=>{if(!hT(t.parent)){if(e.isLet(t.declarationList))return xT(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&xT(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}})(t),e.forEach(t.declarationList.declarations,zS)}function ME(t,r){if(q)for(n(t,r);e.isBinaryExpression(t)&&56===t.operatorToken.kind;)n(t=t.left,r);function n(t,r){var n=!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind?t:t.right;if(!e.isModuleExportsAccessExpression(n)){var i=LE(n),a=e.isPropertyAccessExpression(n)&&cx(n.expression);if(!Of(i)&&!a){var o=el(i,0),s=!!Jx(i);if(0!==o.length||s){var c=e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?n.name:e.isBinaryExpression(n)&&e.isIdentifier(n.right)?n.right:void 0,l=c&&aD(c);(l||s)&&(l&&e.isBinaryExpression(t.parent)&&((t,r)=>{for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=aD(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1})(t.parent,l)||l&&r&&((t,r,n,i)=>!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=aD(a);if(o&&o===i){if(e.isIdentifier(t)||e.isIdentifier(n)&&e.isBinaryExpression(n.parent))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return aD(s)===aD(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(aD(s.name)!==aD(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,r)})))(t,r,c,l)||(s?zn(n,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,$a(i)):Un(n,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)))}}}}}function RE(t,r){return 16384&t.flags&&Un(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function LE(e,t){return RE(Tx(e,t),e)}function BE(e){var t=e.initializer;t.declarations.length>=1&&IE(t.declarations[0])}function jE(e){return UE(e.awaitModifier?15:13,Ey(e.expression),Je,e.expression)}function UE(e,t,r,n){return po(t)?t:VE(e,t,r,n,!0)||Re}function VE(t,r,n,i,a){var o=0!=(2&t);if(r!==st){var s=J>=2,c=!s&&W.downlevelIteration,l=W.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=$E(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&f_(n,u.nextType,i,d)}if(u||s)return l?lg(u&&u.yieldType):u&&u.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var m=r.types,g=e.filter(m,(e=>!(402653316&e.flags)));g!==m&&(p=ad(g,2))}else 402653316&p.flags&&(p=st);if((f=p!==r)&&(J<1&&i&&(Un(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?lg(Ye):Ye}if(!pf(p)){if(i&&!_){var h=((n,i)=>{var a;return i?n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:KE(t,0,r,void 0)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:(e=>{switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1})(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]})(!!(4&t)&&!f,c),y=h[0];zn(i,h[1]&&!!Jx(p),y,Ja(p))}return f?l?lg(Ye):Ye:void 0}var v=sl(p,Qe);return f&&v?402653316&v.flags&&!W.noUncheckedIndexedAccess?Ye:ad(l?[v,Ye,Je]:[v,Ye],2):128&t?lg(v):v}eS(i,r,o)}function KE(e,t,r,n){if(!po(r)){var i=$E(r,e,n);return i&&i[j(t)]}}function zE(e,t,r){if(void 0===e&&(e=st),void 0===t&&(t=st),void 0===r&&(r=ze),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Gl([e,t,r]),i=Br.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Br.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function WE(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==jr){if(s===Ur)return Ur;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?zE(r&&ad(r),n&&ad(n),i&&_d(i)):jr}function JE(e,t){return e[t]}function HE(e,t,r){return e[t]=r}function $E(t,r,n){if(po(t))return Ur;if(!(1048576&t.flags)){var i=qE(t,r,n);return i===jr?void(n&&eS(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=JE(t,o);if(s)return s===jr?void 0:s;for(var c=0,l=t.types;c<l.length;c++){var u=qE(l[c],r,n);if(u===jr)return n&&eS(n,t,!!(2&r)),void HE(t,o,jr);a=e.append(a,u)}var d=a?WE(a):jr;return HE(t,o,d),d===jr?void 0:d}function GE(e,t){if(e===jr)return jr;if(e===Ur)return Ur;var r=e.yieldType,n=e.returnType,i=e.nextType;return t&&Mu(!0),zE(Yx(r,t)||Re,Yx(n,t)||Re,i)}function qE(e,t,r){if(po(e))return Ur;var n;if(2&t&&(n=XE(e,zr)||QE(e,zr)))return 8&t?GE(n,r):n;if(1&t&&(n=XE(e,Wr)||QE(e,Wr))){if(!(2&t))return n;if(n!==jr)return HE(e,"iterationTypesOfAsyncIterable",GE(n,r))}return 2&t&&(n=ZE(e,zr,r))!==jr?n:1&t&&(n=ZE(e,Wr,r))!==jr?2&t?HE(e,"iterationTypesOfAsyncIterable",n?GE(n,r):jr):n:jr}function XE(e,t){return JE(e,t.iterableCacheKey)}function YE(e,t){var r=XE(e,t)||ZE(e,t,void 0);return r===jr?Kr:r}function QE(e,t){var r;if(ts(e,r=t.getGlobalIterableType(!1))||ts(e,r=t.getGlobalIterableIteratorType(!1))){var n=eu(e)[0],i=YE(r,t),a=i.returnType,o=i.nextType;return HE(e,t.iterableCacheKey,zE(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}if(ts(e,t.getGlobalGeneratorType(!1))){var s=eu(e);return n=s[0],a=s[1],o=s[2],HE(e,t.iterableCacheKey,zE(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}}function ZE(t,r,n){var i,a,o,s,c=Qc(t,(a=r.iteratorSymbolName,(s=(o=Au(!1))&&uo(Zo(o),e.escapeLeadingUnderscores(a)))&&Ls(s)?Ks(s):"__@".concat(a))),l=!c||16777216&c.flags?void 0:Zo(c);if(po(l))return HE(t,r.iterableCacheKey,Ur);var u=l?el(l,0):void 0;if(!e.some(u))return HE(t,r.iterableCacheKey,jr);var d=null!==(i=tS(_d(e.map(u,Al)),r,n))&&void 0!==i?i:jr;return HE(t,r.iterableCacheKey,d)}function eS(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;zn(t,!!Jx(r),i,Ja(r))}function tS(e,t,r){if(po(e))return Ur;var n=rS(e,t)||((e,t)=>{var r=t.getGlobalIterableIteratorType(!1);if(ts(e,r)){var n=eu(e)[0],i=rS(r,t)||sS(r,t,void 0),a=i===jr?Kr:i,o=a.returnType,s=a.nextType;return HE(e,t.iteratorCacheKey,zE(n,o,s))}if(ts(e,t.getGlobalIteratorType(!1))||ts(e,t.getGlobalGeneratorType(!1))){var c=eu(e);return n=c[0],o=c[1],s=c[2],HE(e,t.iteratorCacheKey,zE(n,o,s))}})(e,t)||sS(e,t,r);return n===jr?void 0:n}function rS(e,t){return JE(e,t.iteratorCacheKey)}function nS(e,t){var r=uo(e,"done")||et;return u_(0===t?et:rt,r)}function iS(e){return nS(e,0)}function aS(e){return nS(e,1)}function oS(t,r,n,i){var a,o,s,c,l=Qc(t,n);if(l||"next"===n){var u=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?Zo(l):ag(Zo(l),2097152);if(po(u))return"next"===n?Ur:Vr;var d,p,_,f,m,g=u?el(u,0):e.emptyArray;if(0===g.length)return i&&Un(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n),"next"===n?Ur:void 0;if((null==u?void 0:u.symbol)&&1===g.length){var h=r.getGlobalGeneratorType(!1),y=r.getGlobalIteratorType(!1),v=(null===(o=null===(a=h.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(n))===u.symbol,b=!v&&(null===(c=null===(s=y.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===u.symbol;if(v||b){var x=v?h:y,E=u.mapper;return zE(Pp(x.typeParameters[0],E),Pp(x.typeParameters[1],E),"next"===n?Pp(x.typeParameters[2],E):void 0)}}for(var S=0,D=g;S<D.length;S++){var T=D[S];"throw"!==n&&e.some(T.parameters)&&(d=e.append(d,fb(T,0))),p=e.append(p,Al(T))}if("throw"!==n){var C=d?ad(d):ze;if("next"===n)f=C;else if("return"===n){var k=r.resolveIterationType(C,i)||Re;_=e.append(_,k)}}var A=p?_d(p):st,N=(e=>{if(po(e))return Ur;var t=JE(e,"iterationTypesOfIteratorResult");if(t)return t;if(ts(e,dr||(dr=Du("IteratorYieldResult",1,!1))||kt))return HE(e,"iterationTypesOfIteratorResult",zE(eu(e)[0],void 0,void 0));if(ts(e,pr||(pr=Du("IteratorReturnResult",1,!1))||kt))return HE(e,"iterationTypesOfIteratorResult",zE(void 0,eu(e)[0],void 0));var r=Tg(e,iS),n=r!==st?uo(r,"value"):void 0,i=Tg(e,aS),a=i!==st?uo(i,"value"):void 0;return HE(e,"iterationTypesOfIteratorResult",n||a?zE(n,a||ot,void 0):jr)})(r.resolveIterationType(A,i)||Re);return N===jr?(i&&Un(i,r.mustHaveAValueDiagnostic,n),m=Re,_=e.append(_,Re)):(m=N.yieldType,_=e.append(_,N.returnType)),zE(m,ad(_),f)}}function sS(e,t,r){var n=WE([oS(e,t,"next",r),oS(e,t,"return",r),oS(e,t,"throw",r)]);return HE(e,t.iteratorCacheKey,n)}function cS(e,t,r){if(!po(t)){var n=lS(t,r);return n&&n[j(e)]}}function lS(e,t){if(po(e))return Ur;var r=t?zr:Wr;return $E(e,t?2:1,void 0)||tS(e,r,void 0)}function uS(e,t){var r=!!(2&t);return 1&t?cS(1,e,r)||je:r?Qx(e)||je:e}function dS(t,r){var n=uS(r,e.getFunctionFlags(t));return!!n&&Hb(n,16387)}function pS(t,r,n){var i=al(t);if(0!==i.length){for(var a=0,o=Tc(t);a<o.length;a++){var s=o[a];n&&4194304&s.flags||_S(t,s,vd(s,8576,!0),es(s))}var c=r.valueDeclaration;if(c&&e.isClassLike(c))for(var l=0,u=c.members;l<u.length;l++){var d=u[l];if(!e.isStatic(d)&&!Vs(d)){var p=la(d);_S(t,p,Ex(d.name.expression),es(p))}}if(i.length>1)for(var _=0,f=i;_<f.length;_++)fS(t,f[_])}}function _S(t,r,n,i){var a=r.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=cl(t,n),c=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,l=a&&221===a.kind||o&&162===o.kind||ua(r)===t.symbol?a:void 0,u=n=>{var a=n.declaration&&ua(la(n.declaration))===t.symbol?n.declaration:void 0,o=l||a||(c&&!e.some(ms(t),(e=>!!Cc(e,r.escapedName)&&!!sl(e,n.keyType)))?c:void 0);o&&!u_(i,n.type)&&Un(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,za(r),Ja(i),Ja(n.keyType),Ja(n.type))},d=0,p=s;d<p.length;d++)u(p[d])}function fS(t,r){for(var n=r.declaration,i=cl(t,r.keyType),a=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,o=n&&ua(la(n))===t.symbol?n:void 0,s=n=>{if(n===r)return"continue";var i=n.declaration&&ua(la(n.declaration))===t.symbol?n.declaration:void 0,s=o||i||(a&&!e.some(ms(t),(e=>!!ol(e,r.keyType)&&!!sl(e,n.keyType)))?a:void 0);s&&!u_(r.type,n.type)&&Un(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Ja(r.keyType),Ja(r.type),Ja(n.keyType),Ja(n.type))},c=0,l=i;c<l.length;c++)s(l[c])}function mS(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Un(e,t,e.escapedText)}}function gS(t){var r=!1;if(t)for(var n=0;n<t.length;n++){var i=t[n];Cx(i),_(a(i,n))}function a(n,i){return()=>{var a,o,s;n.default?(r=!0,a=n.default,o=t,s=i,function t(r){if(178===r.kind){var n=gu(r);if(262144&n.flags)for(var i=s;i<o.length;i++)n.symbol===la(o[i])&&Un(r,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(r,t)}(a)):r&&Un(n,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var c=0;c<i;c++)t[c].symbol===n.symbol&&Un(n.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(n.name))}}}function hS(t){if(!t.declarations||1!==t.declarations.length){var r=ri(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=(t=>e.filter(t.declarations,(e=>257===e.kind||258===e.kind)))(t);if(!n||n.length<=1)return;if(!yS(n,ks(t).localTypeParameters,e.getEffectiveTypeParameterDeclarations))for(var i=za(t),a=0,o=n;a<o.length;a++)Un(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function yS(t,r,n){for(var i=e.length(r),a=yl(r),o=0,s=t;o<s.length;o++){var c=n(s[o]),l=c.length;if(l<a||l>i)return!1;for(var u=0;u<l;u++){var d=c[u],p=r[u];if(d.name.escapedText!==p.symbol.escapedName)return!1;var _=e.getEffectiveConstraintOfTypeParameter(d),f=_&&Tp(_),m=wc(p);if(f&&m&&!a_(f,m))return!1;var g=d.default&&Tp(d.default),h=Uc(p);if(g&&h&&!a_(g,h))return!1}}return!0}function vS(t){!(t=>{var r=e.getSourceFileOfNode(t);(t=>{var r=!1,n=!1;if(!qD(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(r)return vT(o,e.Diagnostics.extends_clause_already_seen);if(n)return vT(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return vT(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return vT(o,e.Diagnostics.implements_clause_already_seen);n=!0}rT(o)}})(t)||ZD(t.typeParameters,r)})(t),aE(t),AE(t,t.name),gS(e.getEffectiveTypeParameterDeclarations(t)),Wx(t);var r=la(t),n=ks(r),i=$s(n),a=Zo(r);hS(r),zx(r),(t=>{for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(171===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&h(r,u.name,u.name.escapedText,3)}else{var d=e.isStatic(s),p=s.name;if(!p)continue;var _=e.isPrivateIdentifier(p),f=_&&d?16:0,m=_?i:d?n:r,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 172:h(m,p,g,1|f);break;case 173:h(m,p,g,2|f);break;case 167:h(m,p,g,3|f);break;case 169:h(m,p,g,8|f)}}}function h(t,r,n,i){var a=t.get(n);if(a)if((16&a)!=(16&i))Un(r,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(r));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&Un(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i&-17?Un(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i)}else t.set(n,i)}})(t),16777216&t.flags||(t=>{for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Un(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,ro(la(t)))}}}})(t);var o=e.getEffectiveBaseTypeNode(t);if(o){e.forEach(o.typeArguments,zS),J<2&&$D(o.parent,1);var s=e.getClassExtendsHeritageElement(t);s&&s!==o&&Tx(s.expression);var c=ms(n);c.length&&_((()=>{var r=c[0],s=_s(n),l=Kc(s);if(((t,r)=>{var n=el(t,1);if(n.length){var i=n[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(tD(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||Un(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Wi(t.symbol)))}})(l,o),zS(o.expression),e.some(o.typeArguments)){e.forEach(o.typeArguments,zS);for(var u=0,d=ds(l,o.typeArguments,o);u<d.length;u++){var p=d[u];if(!Lx(o,p.typeParameters))break}}var _=$s(r,n.thisType);if(f_(i,_,void 0)?f_(a,i_(l),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ES(t,i,_,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&s.flags&&(cs(a)?el(s,1).some((e=>4&e.flags))&&!e.hasSyntacticModifier(t,128)&&Un(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Un(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(l.symbol&&32&l.symbol.flags||8650752&s.flags)){var f=ps(l,o.typeArguments,o);e.forEach(f,(e=>!$v(e.declaration)&&!a_(Al(e),r)))&&Un(o.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!((t,r)=>{var n,i;e:for(var a=0,o=Ac(r);a<o.length;a++){var s=o[a],c=SS(s);if(!(4194304&c.flags)){var l=Cc(t,c.escapedName);if(l){var u=SS(l),d=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===c){var p=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&d&&(!p||!e.hasSyntacticModifier(p,128))){for(var _=0,f=ms(t);_<f.length;_++){var m=f[_];if(m!==r){var g=Cc(m,c.escapedName),h=g&&SS(g);if(h&&h!==c)continue e}}226===p.kind?Un(p,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,za(s),Ja(r)):Un(p,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ja(t),za(s),Ja(r))}}else{var y=e.getDeclarationModifierFlagsFromSymbol(u);if(8&d||8&y)continue;var v=void 0,b=98308&c.flags,x=98308&u.flags;if(b&&x){if(128&d&&!(c.valueDeclaration&&e.isPropertyDeclaration(c.valueDeclaration)&&c.valueDeclaration.initializer)||c.valueDeclaration&&258===c.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var E=4!==b&&4===x;if(E||4===b&&4!==x){var S=E?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Un(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,za(c),Ja(r),Ja(t))}else if($){var D=null===(n=u.declarations)||void 0===n?void 0:n.find((e=>167===e.kind&&!e.initializer));if(D&&!(33554432&u.flags)&&!(128&d)&&!(128&y)&&!(null===(i=u.declarations)||void 0===i?void 0:i.some((e=>!!(16777216&e.flags))))){var T=ha(e.getClassLikeDeclarationOfSymbol(t.symbol)),C=D.name;if(D.exclamationToken||!T||!e.isIdentifier(C)||!q||!TS(C,t,T)){var k=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Un(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,k,za(c),Ja(r))}}}continue}if(yy(c)){if(yy(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),v=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else v=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Un(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,Ja(r),za(c),Ja(t))}}}}})(n,r)}))}!((t,r,n,i)=>{for(var a=e.getEffectiveBaseTypeNode(t)&&ms(r),o=(null==a?void 0:a.length)?$s(e.first(a),r.thisType):void 0,s=_s(r),c=a=>{if(e.hasAmbientModifier(a))return"continue";e.isConstructorDeclaration(a)&&e.forEach(a.parameters,(c=>{e.isParameterPropertyDeclaration(c,a)&&bS(t,i,s,o,r,n,c,!0)})),bS(t,i,s,o,r,n,a,!1)},l=0,u=t.members;l<u.length;l++)c(u[l])})(t,n,i,a);var l=e.getEffectiveImplementsTypeNodes(t);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];e.isEntityNameExpression(p.expression)&&!e.isOptionalChain(p.expression)||Un(p.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),jx(p),_(f(p))}function f(r){return()=>{var a=$c(Tp(r));if(!_o(a))if(hs(a)){var o=a.symbol&&32&a.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,s=$s(a,n.thisType);f_(i,s,void 0)||ES(t,i,s,o)}else Un(r,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}_((()=>{pS(n,r),pS(a,r,!0),Fx(t),(t=>{if(q&&Q&&!(16777216&t.flags))for(var r=ha(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&DS(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isComputedPropertyName(o)){var s=Zo(la(a));3&s.flags||32768&Of(s)||r&&TS(o,s,r)||Un(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}})(t)}))}function bS(t,r,n,i,a,o,s,c,l){void 0===l&&(l=!0);var u=s.name&&aD(s.name)||aD(s);return u?xS(t,r,n,i,a,o,e.hasOverrideModifier(s),e.hasAbstractModifier(s),e.isStatic(s),c,e.symbolName(u),l?s:void 0):0}function xS(t,r,n,i,a,o,s,c,l,u,d,p){var _=e.isInJSFile(t),f=!!(16777216&t.flags);if(i&&(s||W.noImplicitOverride)){var m=e.escapeLeadingUnderscores(d),g=l?n:i,h=Qc(l?r:o,m),y=Qc(g,m),v=Ja(i);if(h&&!y&&s){if(p){var b=Wy(d,g);b?Un(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,v,za(b)):Un(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,v)}return 2}if(h&&(null==y?void 0:y.declarations)&&W.noImplicitOverride&&!f){var x=e.some(y.declarations,e.hasAbstractModifier);if(s)return 0;if(!x)return p&&Un(p,u?_?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,v),1;if(c&&x)return p&&Un(p,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,v),1}}else if(s){if(p){var E=Ja(a);Un(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,E)}return 2}return 0}function ES(t,r,n,i){for(var a=!1,o=t=>{if(e.isStatic(t))return"continue";var i=t.name&&aD(t.name)||aD(t);if(i){var o=Qc(r,i.escapedName),s=Qc(n,i.escapedName);o&&s&&(f_(Zo(o),Zo(s),t.name||t,void 0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,za(i),Ja(r),Ja(n))))||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||f_(r,n,t.name||t,i)}function SS(t){return 1&e.getCheckFlags(t)?t.target:t}function DS(t){return 167===t.kind&&!e.hasAbstractModifier(t)&&!t.exclamationToken&&!t.initializer}function TS(t,r,n){var i=e.isComputedPropertyName(t)?e.factory.createElementAccessExpression(e.factory.createThis(),t.expression):e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&Of(qg(i,r,Bf(r))))}function CS(e){var t=ni(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=kS(a,r);ni(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function kS(t,r){if(e.isComputedNonLiteralName(t.name))Un(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);e.isNumericLiteralName(n)&&!e.isInfinityOrNaNString(n)&&Un(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?(t=>{var r=Es(la(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||xs(t)?function r(n){switch(n.kind){case 219:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 221:var a=r(n.left),o=r(n.right);if("number"==typeof a&&"number"==typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return DT(n),+n.text;case 212:return r(n.expression);case 79:var c=n;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,la(t.parent),c.escapedText);case 207:case 206:if(AS(n)){var l,u=Ex(n.expression);if(u.symbol&&384&u.symbol.flags)return l=206===n.kind?n.name.escapedText:e.escapeLeadingUnderscores(e.cast(n.argumentExpression,e.isLiteralExpression).text),s(n,u.symbol,l)}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Un(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return Un(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)Un(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(16777216&t.parent.flags)Un(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=Tx(i);$b(o,296)?f_(o,ks(la(t.parent)),i,void 0):Un(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Ja(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return o&&oi(o,t)&&e.isEnumDeclaration(o.parent)?FD(o):(Un(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Un(r,e.Diagnostics.Property_0_is_used_before_being_assigned,za(a))}}})(t):16777216&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Es(la(t.parent))?void 0:void 0!==r?r:void Un(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function AS(t){return Ex(t)!==je&&(79===t.kind||206===t.kind&&AS(t.expression)||207===t.kind&&AS(t.expression)&&e.isStringLiteralLike(t.argumentExpression))}function NS(t){e.isPrivateIdentifier(t.name)&&Un(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function wS(t,r){var n;switch(t.kind){case 237:for(var i=0,a=t.declarationList.declarations;i<a.length;i++)wS(a[i],r);break;case 271:case 272:vT(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 265:case 266:vT(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 203:case 254:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)wS(c[s],r);break}case 257:case 260:case 256:case 258:case 261:case 259:if(r)return;var l=la(t);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(n=l.parent)||void 0===n?void 0:n.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function FS(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Un(r,e.Diagnostics.String_literal_expected),!1;var n=262===t.parent.kind&&e.isAmbientModule(t.parent.parent);if(305!==t.parent.kind&&!n)return Un(r,272===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&e.isExternalModuleNameRelative(r.text)&&!Za(t))return Un(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(t)&&t.assertClause){for(var i=!1,a=0,o=t.assertClause.elements;a<o.length;a++){var s=o[a];e.isStringLiteral(s.value)||(i=!0,Un(s.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!i}return!0}function PS(t){var r=la(t),n=Li(r);if(n!==Pe){var i=(1160127&(r=ca(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(n.flags&i&&Un(t,275===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,za(r)),W.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(t)&&!(16777216&t.flags)){var a=Ui(r),o=!(111551&n.flags);if(o||a)switch(t.kind){case 267:case 270:case 265:W.preserveValueImports&&(e.Debug.assertIsDefined(t.name,"An ImportClause with a symbol should have a name"),di(Un(t,o?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,s=e.idText(270===t.kind&&t.propertyName||t.name)),o?void 0:a,s)),o&&265===t.kind&&e.hasEffectiveModifier(t,1)&&Un(t,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break;case 275:var s;if(e.getSourceFileOfNode(a)!==e.getSourceFileOfNode(t))return void di(Un(t,o?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,s=e.idText(t.propertyName||t.name)),o?void 0:a,s)}}if(e.isImportSpecifier(t)){var c=OS(r,t);IS(c)&&c.declarations&&Hn(t,c.declarations,c.escapedName)}}}function IS(t){return!!t.declarations&&e.every(t.declarations,(t=>!!(268435456&e.getCombinedNodeFlags(t))))}function OS(t,r){if(!(2097152&t.flags))return t;var n=Li(t);if(n===Pe)return n;for(;2097152&t.flags;){var i=qh(t);if(!i)break;if(i===n)break;if(i.declarations&&e.length(i.declarations)){if(IS(i)){Hn(r,i.declarations,i.escapedName);break}if(t===n)break;t=i}}return n}function MS(t){AE(t,t.name),PS(t),270===t.kind&&"default"===e.idText(t.propertyName||t.name)&&e.getESModuleInterop(W)&&H!==e.ModuleKind.System&&(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&$D(t,131072)}function RS(t){var r;if(t.assertClause){var n=e.isExclusivelyTypeOnlyImportOrExport(t),i=e.getResolutionModeOverrideForClause(t.assertClause,n?xT:void 0);if(n&&i)return e.isNightly()||xT(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.NodeNext?xT(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((H===e.ModuleKind.NodeNext&&t.moduleSpecifier&&Ci(t.moduleSpecifier))!==e.ModuleKind.ESNext&&H!==e.ModuleKind.ESNext)return xT(t.assertClause,H===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(t)?null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly:t.isTypeOnly)return xT(t.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return xT(t.assertClause,e.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function LS(e,t){var r=305===e.parent.kind||262===e.parent.kind||261===e.parent.kind;return r||vT(e,t),!r}function BS(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(e=>!!la(e).isReferenced)))&&!DD(t.importClause,!0)&&!(t=>e.forEachImportClauseDeclaration(t,(e=>!!ri(la(e)).constEnumReferenced)))(t.importClause);var r}function jS(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&la(t).isReferenced&&!DD(t,!1)&&!ri(la(t)).constEnumReferenced}function US(t){if(PS(t),e.getEmitDeclarations(W)&&io(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)e.getESModuleInterop(W)&&H!==e.ModuleKind.System&&(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&"default"===e.idText(t.propertyName||t.name)&&$D(t,131072);else{var r=t.propertyName||t.name,n=li(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===le||n===ue||n.declarations&&ii(lo(n.declarations[0]))))Un(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Vi(t);var i=n&&(2097152&n.flags?Li(n):n);(!i||i===Pe||111551&i.flags)&&sx(t.propertyName||t.name)}}}function VS(t){var r=la(t),n=ri(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&(t=>e.forEachEntry(t.exports,((e,t)=>"export="!==t)))(r)){var a=xi(i)||i.valueDeclaration;!a||Za(a)||e.isInJSFile(a)||Un(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=aa(r);o&&o.forEach(((t,r)=>{var n=t.declarations,i=t.flags;if("__export"!==r&&!(1920&i)){var a=e.countWhere(n,e.and(N,e.not(e.isInterfaceDeclaration)));if(!(524288&i&&a<=2)&&a>1&&!KS(n))for(var o=0,s=n;o<s.length;o++){var c=s[o];L(c)&&Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function KS(t){return t&&t.length>1&&t.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))))}function zS(t){if(t){var n=s;s=t,C=0,(t=>{e.isInJSFile(t)&&e.forEach(t.jsDoc,(t=>{var r=t.tags;return e.forEach(r,zS)}));var n=t.kind;if(r)switch(n){case 261:case 257:case 258:case 256:r.throwIfCancellationRequested()}switch(n>=237&&n<=253&&t.flowNode&&!Wg(t.flowNode)&&Kn(!1===W.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),n){case 163:return Cx(t);case 164:return kx(t);case 167:return Px(t);case 166:return(t=>(e.isPrivateIdentifier(t.name)&&Un(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Px(t)))(t);case 180:case 179:case 174:case 175:case 176:return Nx(t);case 169:case 168:return(t=>{dT(t)||iT(t.name),sE(t),e.hasSyntacticModifier(t,128)&&169===t.kind&&t.body&&Un(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Un(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ix(t)})(t);case 170:return(t=>{qD(t),e.forEachChild(t,zS)})(t);case 171:return(t=>{Nx(t),(t=>{var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return bT(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}})(t)||(t=>{var r=e.getEffectiveReturnTypeNode(t);r&&xT(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)})(t),zS(t.body);var r=la(t),n=e.getDeclarationOfKind(r,t.kind);function i(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||167===t.kind&&!e.isStatic(t)&&!!t.initializer}t===n&&zx(r),e.nodeIsMissing(t.body)||_((()=>{var r=t.parent;if(e.getClassExtendsHeritageElement(r)){oh(t.parent,r);var n=ch(r),a=sh(t.body);if(a){if(n&&Un(a,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(W)||!$)&&(e.some(t.parent.members,i)||e.some(t.parameters,(t=>e.hasSyntacticModifier(t,16476)))))if(((t,r)=>{var n=e.walkUpParenthesizedExpressions(t.parent);return e.isExpressionStatement(n)&&n.parent===r})(a,t.body)){for(var o=void 0,s=0,c=t.body.statements;s<c.length;s++){var l=c[s];if(e.isExpressionStatement(l)&&e.isSuperCall(e.skipOuterExpressions(l.expression))){o=l;break}if(Ox(l))break}void 0===o&&Un(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Un(a,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Un(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}))})(t);case 172:case 173:return Mx(t);case 178:return jx(t);case 177:return(t=>{var r=(e=>{switch(e.parent.kind){case 214:case 174:case 256:case 213:case 179:case 169:case 168:var t=e.parent;if(e===t.type)return t}})(t);if(r){var n=bl(r),i=Cl(n);if(i){zS(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Ep(a);else if(i.parameterIndex>=0)U(n)&&i.parameterIndex===n.parameters.length-1?Un(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&f_(i.type,Zo(n.parameters[i.parameterIndex]),t.type,void 0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)));else if(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&Ax(l,a,i.parameterName)){o=!0;break}}o||Un(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else Un(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)})(t);case 181:return(e=>{yu(e)})(t);case 182:return(t=>{e.forEach(t.members,zS),_((()=>{var e=ip(t);pS(e,e.symbol),Fx(t),wx(t)}))})(t);case 183:return(e=>{zS(e.elementType)})(t);case 184:return(t=>{for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(197!==c.kind&&a){xT(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=ju(c);if(8&l){var u=Tp(c.type);if(!pf(u)){Un(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(sf(u)||kf(u)&&4&u.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){xT(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){xT(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){xT(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,zS),Tp(t)})(t);case 187:case 188:return(t=>{e.forEach(t.types,zS),Tp(t)})(t);case 191:case 185:case 186:return zS(t.type);case 192:return(e=>{Ep(e)})(t);case 193:return(t=>{!(t=>{if(154===t.operator){if(151!==t.type.kind)return xT(t.type,e.Diagnostics._0_expected,e.tokenToString(151));var r=e.walkUpParenthesizedTypes(t.parent);if(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)){var n=e.getJSDocHost(r);n&&(r=e.getSingleVariableOfVariableStatement(n)||n)}switch(r.kind){case 254:var i=r;if(79!==i.name.kind)return xT(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return xT(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&i.parent.flags))return xT(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 167:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return xT(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 166:if(!e.hasSyntacticModifier(r,64))return xT(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:xT(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 145===t.operator&&183!==t.type.kind&&184!==t.type.kind&&vT(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(151))})(t),zS(t.type)})(t);case 189:return(t=>{e.forEachChild(t,zS)})(t);case 190:return(t=>{e.findAncestor(t,(e=>e.parent&&189===e.parent.kind&&e.parent.extendsType===e))||xT(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),zS(t.typeParameter);var r=la(t.typeParameter);if(r.declarations&&r.declarations.length>1){var n=ri(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=Cs(r),a=e.getDeclarationsOfKind(r,163);if(!yS(a,[i],(e=>[e])))for(var o=za(r),s=0,c=a;s<c.length;s++)Un(c[s].name,e.Diagnostics.All_declarations_of_0_must_have_identical_constraints,o)}}cE(t)})(t);case 198:return(e=>{for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];zS(n.type),f_(Tp(n.type),ht,n.type)}Tp(e)})(t);case 200:return(t=>{zS(t.argument),t.assertions&&e.getResolutionModeOverrideForClause(t.assertions.assertClause,xT)&&(e.isNightly()||xT(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(W)!==e.ModuleResolutionKind.NodeNext&&xT(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Tp(t)})(t);case 197:return(t=>{t.dotDotDotToken&&t.questionToken&&xT(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),185===t.type.kind&&xT(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),186===t.type.kind&&xT(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),zS(t.type),Tp(t)})(t);case 328:return(t=>{var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Un(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=oE(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=oE(a.expression);o&&i.escapedText!==o.escapedText&&Un(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Un(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 329:return(t=>{var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Un(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 345:case 338:case 339:return(t=>{t.typeExpression||Un(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&mS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),zS(t.typeExpression),gS(e.getEffectiveTypeParameterDeclarations(t))})(t);case 344:return(e=>{zS(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)zS(r[t])})(t);case 343:case 340:case 347:return(e=>{zS(e.typeExpression)})(t);case 317:!(t=>{_((()=>{t.type||e.isJSDocConstructSignature(t)||im(t,Re)})),Nx(t)})(t);case 315:case 314:case 312:case 313:case 322:return WS(t),void e.forEachChild(t,zS);case 318:return void(t=>{WS(t),zS(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&Un(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||Un(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||Un(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Un(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}})(t);case 309:return zS(t.type);case 333:case 335:case 334:return(t=>{var r=e.getJSDocHost(t);r&&e.isPrivateIdentifierClassElementDeclaration(r)&&Un(t,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)})(t);case 194:return(e=>{zS(e.objectType),zS(e.indexType),Ux(Wd(e),e)})(t);case 195:return(t=>{!(t=>{var r;(null===(r=t.members)||void 0===r?void 0:r.length)&&xT(t.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)})(t),zS(t.typeParameter),zS(t.nameType),zS(t.type),t.type||im(t,Re);var r=Jd(t),n=mc(r);n?f_(n,mt,t.nameType):f_(fc(r),mt,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))})(t);case 256:return(e=>{_((()=>{sE(e),aT(e),AE(e,e.name)}))})(t);case 235:case 262:return EE(t);case 237:return OE(t);case 238:return(e=>{ST(e),Tx(e.expression)})(t);case 239:return(t=>{ST(t),LE(t.expression),ME(t.expression,t.thenStatement),zS(t.thenStatement),236===t.thenStatement.kind&&Un(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),zS(t.elseStatement)})(t);case 240:return(e=>{ST(e),zS(e.statement),LE(e.expression)})(t);case 241:return(e=>{ST(e),LE(e.expression),zS(e.statement)})(t);case 242:return(t=>{ST(t)||t.initializer&&255===t.initializer.kind&&gT(t.initializer),t.initializer&&(255===t.initializer.kind?e.forEach(t.initializer.declarations,IE):Tx(t.initializer)),t.condition&&LE(t.condition),t.incrementor&&Tx(t.incrementor),zS(t.statement),t.locals&&cE(t)})(t);case 243:return(t=>{cT(t);var r,n=Dy(Tx(t.expression));if(255===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Un(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),BE(t)}else{var a=t.initializer,o=Tx(a);204===a.kind||205===a.kind?Un(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):u_(131072&(r=Ed(xd(n))).flags?Ye:r,o)?zb(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Un(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==st&&$b(n,126091264)||Un(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Ja(n)),zS(t.statement),t.locals&&cE(t)})(t);case 244:return(t=>{cT(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier?r&&e.isClassStaticBlockDeclaration(r)?xT(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(r))&&J<99&&$D(t,16384):W.downlevelIteration&&J<2&&$D(t,256),255===t.initializer.kind)BE(t);else{var n=t.initializer,i=jE(t);if(204===n.kind||205===n.kind)Zb(n,i||je);else{var a=Tx(n);zb(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&m_(i,a,n,t.expression)}}zS(t.statement),t.locals&&cE(t)})(t);case 245:case 246:return(t=>{ST(t)||(t=>{for(var r=t;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return xT(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 250:if(t.label&&r.label.escapedText===t.label.escapedText)return!(245!==t.kind||e.isIterationStatement(r.statement,!0))&&xT(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 249:if(246===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?xT(t,246===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):xT(t,246===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)})(t)})(t);case 247:return(t=>{var r;if(!ST(t)){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))vT(t,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(n){var i=Al(bl(n)),a=e.getFunctionFlags(n);if(q||t.expression||131072&i.flags){var o=t.expression?sx(t.expression):Je;if(173===n.kind)t.expression&&Un(t,e.Diagnostics.Setters_cannot_return_a_value);else if(171===n.kind)t.expression&&!m_(o,i,t,t.expression)&&Un(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Nl(n)){var s=null!==(r=uS(i,a))&&void 0!==r?r:i,c=2&a?$x(o,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&m_(c,s,t,t.expression)}}else 171!==n.kind&&W.noImplicitReturns&&!dS(n,i)&&Un(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else vT(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}})(t);case 248:return(t=>{ST(t)||32768&t.flags&&vT(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Tx(t.expression);var r=e.getSourceFileOfNode(t);if(!yT(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;bT(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}})(t);case 249:return(t=>{var r;ST(t);var n=!1,i=Tx(t.expression),a=xf(i);e.forEach(t.caseBlock.clauses,(t=>{290!==t.kind||n||(void 0===r?r=t:(xT(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),289===t.kind&&_((e=>()=>{var t=Tx(e.expression),r=xf(t),n=i;r&&a||(t=r?Ef(t):t,n=Ef(i)),tx(n,t)||D_(t,n,e.expression,void 0)})(t)),e.forEach(t.statements,zS),W.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Wg(t.fallthroughFlowNode)&&Un(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&cE(t.caseBlock)})(t);case 250:return(t=>{ST(t)||e.findAncestor(t.parent,(r=>e.isFunctionLike(r)?"quit":250===r.kind&&r.label.escapedText===t.label.escapedText&&(xT(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0))),zS(t.statement)})(t);case 251:return(t=>{ST(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&((t,r,n,i,a)=>{var o=e.getSourceFileOfNode(t);if(!yT(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Sn.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,void 0,void 0,void 0))}})(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&Tx(t.expression)})(t);case 252:return(t=>{ST(t),EE(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(n));if(i){var a=Co(n,!1,0);!a||3&a.flags||vT(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)vT(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=r.block.locals;o&&e.forEachKey(r.locals,(t=>{var r=o.get(t);(null==r?void 0:r.valueDeclaration)&&0!=(2&r.flags)&&xT(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}EE(r.block)}t.finallyBlock&&EE(t.finallyBlock)})(t);case 254:return IE(t);case 203:return(t=>((t=>{if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return xT(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(QD(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return xT(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}t.dotDotDotToken&&t.initializer&&bT(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)})(t),wE(t)))(t);case 257:return(t=>{e.some(t.decorators)&&e.some(t.members,(t=>e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)))&&xT(t.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),t.name||e.hasSyntacticModifier(t,512)||vT(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),vS(t),e.forEach(t.members,zS),cE(t)})(t);case 258:return(t=>{qD(t)||(t=>{var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(94!==a.token)return e.Debug.assert(117===a.token),vT(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return vT(a,e.Diagnostics.extends_clause_already_seen);r=!0,rT(a)}})(t),gS(t.typeParameters),_((()=>{mS(t.name,e.Diagnostics.Interface_name_cannot_be_0),Wx(t);var r=la(t);hS(r);var n=e.getDeclarationOfKind(r,258);if(t===n){var i=ks(r),a=$s(i);if(((t,r)=>{var n=ms(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Rs(t).declaredProperties,(e=>{i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],l=0,u=Ac($s(c,t.thisType));l<u.length;l++){var d=u[l],p=i.get(d.escapedName);if(p){if(p.containingType!==t&&0===nf(p.prop,d,o_)){a=!1;var _=Ja(p.containingType),f=Ja(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,za(d),_,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ja(t),_,f),Sn.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a})(i,t.name)){for(var o=0,s=ms(i);o<s.length;o++)f_(a,$s(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);pS(i,r)}}wx(t)})),e.forEach(e.getInterfaceBaseTypeNodes(t),(t=>{e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||Un(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),jx(t)})),e.forEach(t.members,zS),_((()=>{Fx(t),cE(t)}))})(t);case 259:return(t=>{qD(t),mS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Wx(t),gS(t.typeParameters),138===t.type.kind?F.has(t.name.escapedText)&&1===e.length(t.typeParameters)||Un(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(zS(t.type),cE(t))})(t);case 260:return(t=>{_((()=>(t=>{qD(t),AE(t,t.name),Wx(t),t.members.forEach(NS),CS(t);var r=la(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations&&r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,(t=>{e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Un(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(t=>{if(260!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Un(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}})(t)))})(t);case 261:return(t=>{t.body&&(zS(t.body),e.isGlobalScopeAugmentation(t)||cE(t)),_((()=>{var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Un(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!LS(t,a)){qD(t)||n||10!==t.name.kind||xT(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&AE(t,t.name),Wx(t);var o,s,c,l,u=la(t);if(512&u.flags&&!n&&u.declarations&&u.declarations.length>1&&R(t,e.shouldPreserveConstEnums(W))){var d=(t=>{var r=t.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if((257===a.kind||256===a.kind&&e.nodeIsPresent(a.body))&&!(16777216&a.flags))return a}})(u);d&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(d)?Un(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<d.pos&&Un(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var p=e.getDeclarationOfKind(u,257);p&&(o=t,s=p,c=e.getEnclosingBlockScopeContainer(o),l=e.getEnclosingBlockScopeContainer(s),ii(c)?ii(l):!ii(l)&&c===l)&&(ni(t).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(t)){if((r||33554432&la(t).flags)&&t.body)for(var _=0,f=t.body.statements;_<f.length;_++)wS(f[_],r)}else ii(t.parent)?r?Un(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&Un(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Un(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}))})(t);case 266:return(t=>{if(!LS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!qD(t)&&e.hasEffectiveModifiers(t)&&vT(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),FS(t)){var r=t.importClause;r&&!(t=>{var r;return t.isTypeOnly&&t.name&&t.namedBindings?xT(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!t.isTypeOnly||269!==(null===(r=t.namedBindings)||void 0===r?void 0:r.kind))&&TT(t.namedBindings)})(r)&&(r.name&&MS(r),r.namedBindings&&(268===r.namedBindings.kind?(MS(r.namedBindings),H!==e.ModuleKind.System&&(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(W)&&$D(t,65536)):$i(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,MS)))}RS(t)}})(t);case 265:return(t=>{if(!LS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(qD(t),e.isInternalModuleImportEqualsDeclaration(t)||FS(t)))if(MS(t),e.hasSyntacticModifier(t,1)&&Vi(t),277!==t.moduleReference.kind){var r=Li(la(t));if(r!==Pe){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Ji(n,112575).flags||Un(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&mS(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&xT(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(H>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||xT(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)})(t);case 272:return(t=>{if(!LS(t,e.isInJSFile(t)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!qD(t)&&e.hasSyntacticModifiers(t)&&vT(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===J&&$D(t,4194304),(t=>{var r;t.isTypeOnly&&(273===(null===(r=t.exportClause)||void 0===r?void 0:r.kind)?TT(t.exportClause):xT(t,e.Diagnostics.Only_named_exports_may_use_export_type))})(t),!t.moduleSpecifier||FS(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,US);var r=262===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&262===t.parent.kind&&!t.moduleSpecifier&&16777216&t.flags;305===t.parent.kind||r||n||Un(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=$i(t,t.moduleSpecifier);i&&ea(i)?Un(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,za(i)):t.exportClause&&PS(t.exportClause),H!==e.ModuleKind.System&&(H<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&(t.exportClause?e.getESModuleInterop(W)&&$D(t,65536):$D(t,32768))}RS(t)}})(t);case 271:return(t=>{if(!LS(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=305===t.parent.kind?t.parent:t.parent.parent;if(261!==r.kind||e.isAmbientModule(r)){!qD(t)&&e.hasEffectiveModifiers(t)&&vT(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&f_(sx(t.expression),Tp(n),t.expression),79===t.expression.kind){var i=t.expression,a=Ji(i,67108863,!0,!0,t);if(a){ih(a,i);var o=2097152&a.flags?Li(a):a;(o===Pe||111551&o.flags)&&sx(t.expression)}else sx(t.expression);e.getEmitDeclarations(W)&&io(t.expression,!0)}else sx(t.expression);VS(r),16777216&t.flags&&!e.isEntityNameExpression(t.expression)&&xT(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||16777216&t.flags||(H>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?xT(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):H===e.ModuleKind.System&&xT(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Un(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Un(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}})(t);case 236:case 253:return void ST(t);case 276:!(e=>{aE(e)})(t)}})(t),s=n}}function WS(t){e.isInJSFile(t)||xT(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function JS(t){var r=ni(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function HS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=s;switch(s=t,C=0,t.kind){case 208:case 209:case 210:case 165:case 280:av(t);break;case 213:case 214:case 169:case 168:!(t=>{e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Nl(t);if(Lb(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Al(bl(t)),235===t.body.kind)zS(t.body);else{var i=Tx(t.body),a=n&&uS(n,r);a&&m_(2==(3&r)?$x(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}})(t);break;case 172:case 173:Mx(t);break;case 226:!(t=>{e.forEach(t.members,zS),cE(t)})(t);break;case 163:!(t=>{if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=Cs(la(t)),n=$_(r);if(n){var i=la(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags(ks(i))){if(32768===n||65536===n){var a=J_(i,r,65536===n?It:Pt),o=J_(i,r,65536===n?Pt:It),s=r;c=r,f_(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),c=s}}else Un(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}})(t);break;case 279:!(e=>{fy(e)})(t);break;case 278:!(e=>{fy(e.openingElement),Qh(e.closingElement.tagName)?ny(e.closingElement):Tx(e.closingElement.tagName),ey(e)})(t)}s=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function $S(t,r){if(r)return!1;switch(t){case 0:return!!W.noUnusedLocals;case 1:return!!W.noUnusedParameters;default:return e.Debug.assertNever(t)}}function GS(t){return $r.get(t.path)||e.emptyArray}function qS(n,i){try{return r=i,(r=>{if(r){XS();var n=Sn.getGlobalDiagnostics(),i=n.length;YS(r);var a=Sn.getDiagnostics(r.fileName),o=Sn.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),YS),Sn.getDiagnostics()})(n)}finally{r=void 0}}function XS(){for(var e=0,t=p;e<t.length;e++)(0,t[e])();p=[]}function YS(r){XS();var n,i=_;_=e=>e(),n=r,null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),(r=>{var n=ni(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,W,t))return;!(t=>{16777216&t.flags&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||237===i.kind)&&ET(i))return!0}})(t)})(r),e.clear(yn),e.clear(vn),e.clear(bn),e.clear(xn),e.forEach(r.statements,zS),zS(r.endOfFileToken),(e=>{var t=ni(e);t.deferredNodes&&t.deferredNodes.forEach(HS)})(r),e.isExternalOrCommonJsModule(r)&&cE(r),_((()=>{r.isDeclarationFile||!W.noUnusedLocals&&!W.noUnusedParameters||lE(GS(r),((t,r,n)=>{!e.containsParseError(t)&&$S(r,!!(16777216&t.flags))&&Sn.add(n)}))})),2===W.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(BS(i)||jS(i))&&Un(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}})(r),e.isExternalOrCommonJsModule(r)&&VS(r),yn.length&&(e.forEach(yn,DE),e.clear(yn)),vn.length&&(e.forEach(vn,TE),e.clear(vn)),bn.length&&(e.forEach(bn,CE),e.clear(bn)),xn.length&&(e.forEach(xn,kE),e.clear(xn)),n.flags|=1}})(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),_=i}function QS(e){switch(e.kind){case 163:case 257:case 258:case 259:case 260:case 345:case 338:case 339:return!0;case 267:return e.isTypeOnly;case 270:case 275:return e.parent.parent.isTypeOnly;default:return!1}}function ZS(e){for(;161===e.parent.kind;)e=e.parent;return 178===e.parent.kind}function eD(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function tD(e,t){return!!eD(e,(e=>e===t))}function rD(e){return void 0!==(e=>{for(;161===e.parent.kind;)e=e.parent;return 265===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:271===e.parent.kind&&e.parent.expression===e?e.parent:void 0})(e)}function nD(t){if(e.isDeclarationName(t))return la(t.parent);if(e.isInJSFile(t)&&206===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=(t=>{switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return la(t.parent);case 4:case 2:case 5:return la(t.parent.parent)}})(t);if(r)return r}if(271===t.parent.kind&&e.isEntityNameExpression(t)){var n=Ji(t,2998271,!0);if(n&&n!==Pe)return n}else if(e.isEntityName(t)&&rD(t)){var i=e.getAncestor(t,265);return e.Debug.assert(void 0!==i),zi(t,!0)}if(e.isEntityName(t)){var a=(t=>{for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&200===r.kind&&r.qualifier===t)return r})(t);if(a){Tp(a);var o=ni(t).resolvedSymbol;return o===Pe?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if((e=>{for(;206===e.parent.kind;)e=e.parent;return 228===e.parent.kind})(t)){var s=0;228===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Ji(t,s):void 0;if(c)return c}if(340===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(163===t.parent.kind&&344===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var u=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&Qh(t))return(f=ny(t.parent))===Pe?void 0:f;var d=Ji(t,s,!1,!0,e.getHostSignatureFromJSDoc(t));if(!d&&u){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return iD(t,la(p))}return d}if(e.isPrivateIdentifier(t))return Oy(t);if(206===t.kind||161===t.kind){var _=ni(t);return _.resolvedSymbol?_.resolvedSymbol:(206===t.kind?wy(t,0):Fy(t,0),!_.resolvedSymbol&&u&&e.isQualifiedName(t)?iD(t):_.resolvedSymbol)}if(e.isJSDocMemberName(t))return iD(t)}else if(ZS(t)){var f;return(f=Ji(t,s=178===t.parent.kind?788968:1920,!1,!0))&&f!==Pe?f:ou(t)}return 177===t.parent.kind?Ji(t,1):void 0}function iD(t,r){if(e.isEntityName(t)){var n=901119,i=Ji(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=ca(ai(ia(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:iD(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Qc(Zo(a),"prototype");return Qc(s?Zo(s):ks(a),o)}}function aD(t,r){if(305===t.kind)return e.isExternalModule(t)?ca(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(33554432&t.flags)){if(B(t)){var a=la(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?qh(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return la(n.parent);if(79===t.kind){if(rD(t))return nD(t);if(203===n.kind&&201===i.kind&&t===n.propertyName){var o=Qc(oD(i),t.escapedText);if(o)return o}else if(e.isMetaProperty(n)&&n.name===t)return 103===n.keywordToken&&"target"===e.idText(t)?sb(n).symbol:100===n.keywordToken&&"meta"===e.idText(t)?Cu().members.get("meta"):void 0}switch(t.kind){case 79:case 80:case 206:case 161:if(!e.isThisInTypeQuery(t))return nD(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=bl(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Tx(t).symbol;case 192:return Ep(t).symbol;case 106:return Tx(t).symbol;case 134:var l=t.parent;return l&&171===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(266===t.parent.kind||272===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return $i(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return la(n);case 8:var u=e.isElementAccessExpression(n)?n.argumentExpression===t?Ex(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?Tp(i.objectType):void 0;return u&&Qc(u,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return la(t.parent);case 200:return e.isLiteralImportTypeNode(t)?aD(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?ob(t.parent).symbol:void 0;case 231:return Tx(t).symbol;default:return}}}function oD(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return je;if(33554432&t.flags)return je;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&ys(la(i.class));if(e.isPartOfTypeNode(t)){var o=Tp(t);return a?$s(o,a.thisType):o}if(e.isExpressionNode(t))return cD(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(ms(a));return s?$s(s,a.thisType):je}if(QS(t))return ks(n=la(t));if(79===(r=t).kind&&QS(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=aD(t))?ks(n):je;if(e.isDeclaration(t))return(n=la(t))?Zo(n):je;if(B(t))return(n=aD(t))?Zo(n):je;if(e.isBindingPattern(t))return Co(t.parent,!0,0)||je;if(rD(t)&&(n=aD(t))){var c=ks(n);return _o(c)?Zo(n):c}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?ob(t.parent):je}function sD(t){if(e.Debug.assert(205===t.kind||204===t.kind),244===t.parent.kind)return Zb(t,jE(t.parent)||je);if(221===t.parent.kind)return Zb(t,Ex(t.parent.right)||je);if(296===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return Yb(r,sD(r)||je,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=sD(n)||je,a=UE(65,i,Je,t.parent)||je;return Qb(n,i,n.elements.indexOf(t),a)}function cD(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),mp(Ex(t))}function lD(t){var r=la(t.parent);return e.isStatic(t)?Zo(r):ks(r)}function uD(t){var r=t.name;switch(r.kind){case 79:return hp(e.idText(r));case 8:case 10:return hp(r.text);case 162:var n=Hh(r);return $b(n,12288)?n:Ye;default:return e.Debug.fail("Unsupported property name.")}}function dD(t){t=Kc(t);var r=e.createSymbolTable(Ac(t)),n=el(t,0).length?Ut:el(t,1).length?Vt:void 0;return n&&e.forEach(Ac(n),(e=>{r.has(e.escapedName)||r.set(e.escapedName,e)})),Da(r)}function pD(t){return e.typeHasCallOrConstructSignatures(t,fe)}function _D(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!(!n||(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r||UD(r)!==pe)}function fD(t){var r=$i(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=ea(r),i=ri(r=Yi(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(aa(r),(e=>(e=Ri(e))&&!!(111551&e.flags)))),i.exportsSomeValue}function mD(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=UD(i,(t=>e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name)(i));if(a){if(1048576&a.flags){var o=ca(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=ua(a);if(s){if(512&s.flags&&305===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(t=>e.isModuleOrEnumDeclaration(t)&&la(t)===s))}}}}function gD(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=UD(r);if(Mi(n,111551)&&!Ui(n))return xi(n)}}function hD(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=ri(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||(t=>t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&292===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind)(t)){var i=ni(t.valueDeclaration);if(li(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=235===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function yD(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=UD(r);if(n&&hD(n))return n.valueDeclaration}}}function vD(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=la(r);if(n)return hD(n)}return!1}function bD(t){switch(t.kind){case 265:return ED(la(t));case 267:case 268:case 270:case 275:var r=la(t);return!!r&&ED(r)&&!Ui(r);case 272:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,bD));case 271:return!t.expression||79!==t.expression.kind||ED(la(t))}return!1}function xD(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||305!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&ED(la(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function ED(t){if(!t)return!1;var r=ma(Li(t));return r===Pe||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(W)||!SD(r))}function SD(e){return Xb(e)||!!e.constEnumOnlyModule}function DD(t,r){if(Ei(t)){var n=la(t),i=n&&ri(n);if(null==i?void 0:i.referenced)return!0;var a=ri(n).aliasTarget;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(W)||!SD(a)))return!0}return!!r&&!!e.forEachChild(t,(e=>DD(e,r)))}function TD(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Sl(la(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function CD(t){return!(!q||ml(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function kD(t){return q&&ml(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function AD(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=la(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(ia(n),(t=>111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)))}function ND(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=la(r);return n&&Ac(Zo(n))||e.emptyArray}function wD(e){var t,r=e.id||0;return r<0||r>=ln.length?0:(null===(t=ln[r])||void 0===t?void 0:t.flags)||0}function FD(e){return CS(e.parent),ni(e).enumMemberValue}function PD(e){switch(e.kind){case 299:case 206:case 207:return!0}return!1}function ID(t){if(299===t.kind)return FD(t);var r=ni(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return FD(n)}}function OD(e){return!!(524288&e.flags)&&el(e,0).length>0}function MD(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Ji(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Ji(a,111551,!0,!0,r),l=c&&2097152&c.flags?Li(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Ji(a,788968,!0,!1,r);if(l&&l===u){var d=Pu(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=Zo(l);if(p&&ls(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=ks(u);return _o(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:$b(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:$b(_,528)?e.TypeReferenceSerializationKind.BooleanType:$b(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:$b(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:$b(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:kf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:$b(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:OD(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:sf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function RD(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=la(o),c=!s||133120&s.flags?je:Sf(Zo(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Bf(c)),se.typeToTypeNode(c,r,1024|n,i)}function LD(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(130);var o=bl(a);return se.typeToTypeNode(Al(o),r,1024|n,i)}function BD(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(130);var o=tm(cD(a));return se.typeToTypeNode(o,r,1024|n,i)}function jD(t){return ce.has(e.escapeLeadingUnderscores(t))}function UD(t,r){var n=ni(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=lo(a))}return li(i,t.escapedText,3257279,void 0,void 0,!0)}function VD(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=UD(r);if(n)return ma(n).valueDeclaration}}}function KD(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&gp(Zo(la(t)))}function zD(t,r){return((t,r,n)=>{var i=1024&t.flags?se.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)})(Zo(la(t)),t,r)}function WD(t){return t?(Mn(t),e.getSourceFileOfNode(t).localJsxFactory||Nr):Nr}function JD(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,J),r.localJsxFragmentFactory}}if(W.jsxFragmentFactory)return e.parseIsolatedEntityName(W.jsxFragmentFactory,J)}function HD(t){var r=261===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Gi(r,r,void 0);if(n)return e.getDeclarationOfKind(n,305)}function $D(t,r){if((n&r)!==r&&W.importHelpers){var a=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(a,W)&&!(16777216&t.flags)){var o=(d=t,i||(i=qi(a,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||Pe),i);if(o!==Pe)for(var s=r&~n,c=1;c<=4194304;c<<=1)if(s&c){var l=GD(c),u=ai(o.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(Sl(u),(e=>hb(e)>3))||Un(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Sl(u),(e=>hb(e)>4))||Un(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Sl(u),(e=>hb(e)>2))||Un(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):Un(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}n|=r}}var d}function GD(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function qD(t){return(t=>{if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 169!==t.kind||e.nodeIsPresent(t.body)?vT(t,e.Diagnostics.Decorators_are_not_valid_here):vT(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(172===t.kind||173===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return vT(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1})(t)||XD(t)}function XD(t){var r,n,i,a,o=(t=>!!t.modifiers&&((t=>{switch(t.kind){case 172:case 173:case 171:case 167:case 166:case 169:case 168:case 176:case 261:case 266:case 265:case 272:case 271:case 213:case 214:case 164:case 163:return!1;default:if(262===t.parent.kind||305===t.parent.kind)return!1;switch(t.kind){case 256:return YD(t,131);case 257:case 180:return YD(t,126);case 258:case 237:case 259:case 170:return!0;case 260:return YD(t,85);default:e.Debug.fail()}}})(t)?vT(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0))(t);if(void 0!==o)return o;for(var s=0,c=0,l=t.modifiers;c<l.length;c++){var u=l[c];if(145!==u.kind){if(166===t.kind||168===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(u.kind));if(176===t.kind&&(124!==u.kind||!e.isClassLike(t.parent)))return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(u.kind))}if(101!==u.kind&&144!==u.kind&&163===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,e.tokenToString(u.kind));switch(u.kind){case 85:if(260!==t.kind)return xT(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 159:if(16384&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"override");if(2&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");s|=16384,a=u;break;case 123:case 122:case 121:var d=Qa(e.modifierToFlag(u.kind));if(28&s)return xT(u,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"override");if(32&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(262===t.parent.kind||305===t.parent.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 121===u.kind?xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(t))return xT(u,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(u.kind);break;case 124:if(32&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(262===t.parent.kind||305===t.parent.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(164===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");s|=32,r=u;break;case 145:if(64&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"readonly");if(167!==t.kind&&166!==t.kind&&176!==t.kind&&164!==t.kind)return xT(u,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64;break;case 93:if(1&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(164===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 88:var p=305===t.parent.kind?t.parent:t.parent.parent;if(261===p.kind&&!e.isAmbientModule(p))return xT(u,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&s))return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");s|=512;break;case 135:if(2&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(164===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&t.parent.flags&&262===t.parent.kind)return xT(u,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(t))return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=u;break;case 126:if(128&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"abstract");if(257!==t.kind&&180!==t.kind){if(169!==t.kind&&167!==t.kind&&172!==t.kind&&173!==t.kind)return xT(u,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(257!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return xT(u,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&s&&i)return xT(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(t)&&80===t.name.kind)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 131:if(256&s)return xT(u,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||16777216&t.parent.flags)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(164===t.kind)return xT(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&s)return xT(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=256,i=u;break;case 101:case 144:var _=101===u.kind?32768:65536,f=101===u.kind?"in":"out";if(163!==t.kind||!(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)))return xT(u,e.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,f);if(s&_)return xT(u,e.Diagnostics._0_modifier_already_seen,f);if(32768&_&&65536&s)return xT(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");s|=_}}return 171===t.kind?32&s?xT(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&s?xT(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(256&s)&&xT(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(266===t.kind||265===t.kind)&&2&s?xT(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):164===t.kind&&16476&s&&e.isBindingPattern(t.name)?xT(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):164===t.kind&&16476&s&&t.dotDotDotToken?xT(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&((t,r)=>{switch(t.kind){case 169:case 256:case 213:case 214:return!1}return xT(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")})(t,i)}function YD(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function QD(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&bT(t[0],t.end-",".length,",".length,r)}function ZD(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return bT(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function eT(t){var r=e.getSourceFileOfNode(t);return qD(t)||ZD(t.typeParameters,r)||(t=>{for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return xT(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(16777216&a.flags||QD(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return xT(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return xT(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(ml(a)){if(r=!0,a.questionToken&&a.initializer)return xT(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return xT(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}})(t.parameters)||((t,r)=>{if(!e.isArrowFunction(t))return!1;t.typeParameters&&!(e.length(t.typeParameters)>1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&xT(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&xT(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)})(t,r)||e.isFunctionLikeDeclaration(t)&&(t=>{if(J>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,(t=>!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t))));if(e.length(n)){e.forEach(n,(t=>{e.addRelatedInfo(Un(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var i=n.map(((t,r)=>0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)));return e.addRelatedInfo.apply(void 0,f([Un(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}var a;return!1})(t)}function tT(t,r){return QD(r)||((t,r)=>{if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return bT(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1})(t,r)}function rT(t){var r=t.types;if(QD(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return bT(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,nT)}function nT(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?xT(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):tT(t,t.typeArguments)}function iT(t){if(162!==t.kind)return!1;var r=t;return 221===r.expression.kind&&27===r.expression.operatorToken.kind&&xT(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function aT(t){if(t.asteriskToken){if(e.Debug.assert(256===t.kind||213===t.kind||169===t.kind),16777216&t.flags)return xT(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return xT(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function oT(e,t){return!!e&&xT(e,t)}function sT(e,t){return!!e&&xT(e,t)}function cT(t){if(ST(t))return!0;if(244===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!yT(r))switch(e.isEffectiveExternalModule(r,W)||Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),H){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(J>=4)break;default:Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!yT(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&171!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return Sn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return xT(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(255===t.initializer.kind){var o=t.initializer;if(!gT(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=243===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,vT(o.declarations[1],n);var c=s[0];if(c.initializer)return n=243===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer,xT(c.name,n);if(c.type)return xT(c,n=243===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function lT(t){if(t.parameters.length===(172===t.kind?1:2))return e.getThisParameter(t)}function uT(t,r){if((t=>e.isDynamicName(t)&&!Bs(t))(t))return xT(t,r)}function dT(t){if(eT(t))return!0;if(169===t.kind){if(205===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||131!==e.first(t.modifiers).kind))return vT(t,e.Diagnostics.Modifiers_cannot_appear_here);if(oT(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(sT(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return bT(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(aT(t))return!0}if(e.isClassLike(t.parent)){if(J<2&&e.isPrivateIdentifier(t.name))return xT(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return uT(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(169===t.kind&&!t.body)return uT(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(258===t.parent.kind)return uT(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(182===t.parent.kind)return uT(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function pT(t){return e.isStringOrNumericLiteralLike(t)||219===t.kind&&40===t.operator&&8===t.operand.kind}function _T(t){var r,n=t.initializer;if(n){var i=!(pT(n)||(t=>{if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&pT(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&sx(t).flags)})(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||219===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return xT(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return xT(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return xT(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function fT(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!yT(e.getSourceFileOfNode(a))&&(Bn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return fT(i.name)}var a,o;return!1}function mT(t){if(79===t.kind){if(119===t.originalKeywordKind)return xT(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||mT(i.name)}return!1}function gT(t){var r=t.declarations;return!!QD(t.declarations)||!t.declarations.length&&bT(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function hT(e){switch(e.kind){case 239:case 240:case 241:case 248:case 242:case 243:case 244:return!1;case 250:return hT(e.parent)}return!0}function yT(e){return e.parseDiagnostics.length>0}function vT(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!yT(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Sn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function bT(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!yT(c)&&(Sn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function xT(t,r,n,i,a){return!yT(e.getSourceFileOfNode(t))&&(Sn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function ET(t){return 258!==t.kind&&259!==t.kind&&266!==t.kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&264!==t.kind&&!e.hasSyntacticModifier(t,515)&&vT(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ST(t){if(16777216&t.flags){if(!ni(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return ni(t).hasReportedStatementInAmbientContext=vT(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(235===t.parent.kind||262===t.parent.kind||305===t.parent.kind){var r=ni(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=vT(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function DT(t){if(32&t.numericLiteralFlags){var r=void 0;if(J>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,196)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,299)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return xT(n?t.parent:t,r,i)}}return(t=>{var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;r||n||+t.text<=Math.pow(2,53)-1||Vn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))})(t),!1}function TT(t){return!!e.forEach(t.elements,(t=>{if(t.isTypeOnly)return vT(t,270===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function CT(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Zm(r,t);if(a)return a;var o=Ac(t);if(o){var s=Xm(o,r);if(s)return U_(r,e.map(s,(e=>[()=>Zo(e),e.escapedName])),n,void 0,i)}}}},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(w||(w={})),e.signatureHasRestParameter=U,e.signatureHasLiteralTypes=V}(p),(e=>{function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var l=-1,u=-1;(i>0||a<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var d=0;d<a;d++){var p=t[d+i],_=void 0!==p?r(p):void 0;if((void 0!==o||void 0===_||_!==p)&&(void 0===o&&(o=t.slice(0,d),s=t.hasTrailingComma,l=t.pos,u=t.end),_))if(e.isArray(_))for(var f=0,m=_;f<m.length;f++){var g=m[f];e.Debug.assertNode(g,n),o.push(g)}else e.Debug.assertNode(_,n),o.push(_)}if(o){var h=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(h,l,u),h}return t}function n(t,n,i,a,o,s){return void 0===s&&(s=r),i.startLexicalEnvironment(),t=s(t,n,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function i(t,n,i,o){var s;return void 0===o&&(o=r),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=o(t,n,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=((t,r)=>{for(var n,i=0;i<t.length;i++){var o=t[i],s=a(o,r);(n||s!==o)&&(n||(n=t.slice(0,i)),n[i]=s)}return n?e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t):t})(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?((e,t)=>{var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)})(t,r):t.initializer?((t,r,n,i)=>{var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)})(t,t.name,t.initializer,r):t}function o(r,n,i,a){void 0===a&&(a=t),i.resumeLexicalEnvironment();var o=a(r,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function s(r,n,i){i.startBlockScope();var a=t(r,n,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=i,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=(a,c,l,u,d,p)=>{if(void 0===u&&(u=r),void 0===p&&(p=t),void 0!==a){var _=a.kind;if(_>0&&_<=160||192===_)return a;var f=l.factory;switch(_){case 79:return e.Debug.type(a),f.updateIdentifier(a,u(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 161:return e.Debug.type(a),f.updateQualifiedName(a,p(a.left,c,e.isEntityName),p(a.right,c,e.isIdentifier));case 162:return e.Debug.type(a),f.updateComputedPropertyName(a,p(a.expression,c,e.isExpression));case 163:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),p(a.constraint,c,e.isTypeNode),p(a.default,c,e.isTypeNode));case 164:return e.Debug.type(a),f.updateParameterDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.name,c,e.isBindingName),p(a.questionToken,d,e.isQuestionToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 165:return e.Debug.type(a),f.updateDecorator(a,p(a.expression,c,e.isExpression));case 166:return e.Debug.type(a),f.updatePropertySignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isToken),p(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),f.updatePropertyDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 168:return e.Debug.type(a),f.updateMethodSignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 169:return e.Debug.type(a),f.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 171:return e.Debug.type(a),f.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,p));case 172:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 173:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,p));case 170:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,p));case 174:return e.Debug.type(a),f.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateTypePredicateNode(a,p(a.assertsModifier,c,e.isAssertsKeyword),p(a.parameterName,c,e.isIdentifierOrThisTypeNode),p(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateTypeReferenceNode(a,p(a.typeName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 180:return e.Debug.type(a),f.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 181:return e.Debug.type(a),f.updateTypeQueryNode(a,p(a.exprName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 182:return e.Debug.type(a),f.updateTypeLiteralNode(a,u(a.members,c,e.isTypeElement));case 183:return e.Debug.type(a),f.updateArrayTypeNode(a,p(a.elementType,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateTupleTypeNode(a,u(a.elements,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateOptionalTypeNode(a,p(a.type,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateRestTypeNode(a,p(a.type,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateUnionTypeNode(a,u(a.types,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateIntersectionTypeNode(a,u(a.types,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateConditionalTypeNode(a,p(a.checkType,c,e.isTypeNode),p(a.extendsType,c,e.isTypeNode),p(a.trueType,c,e.isTypeNode),p(a.falseType,c,e.isTypeNode));case 190:return e.Debug.type(a),f.updateInferTypeNode(a,p(a.typeParameter,c,e.isTypeParameterDeclaration));case 200:return e.Debug.type(a),f.updateImportTypeNode(a,p(a.argument,c,e.isTypeNode),p(a.assertions,c,e.isNode),p(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 295:return e.Debug.type(a),f.updateImportTypeAssertionContainer(a,p(a.assertClause,c,e.isNode),a.multiLine);case 197:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 191:return e.Debug.type(a),f.updateParenthesizedType(a,p(a.type,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateTypeOperatorNode(a,p(a.type,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,p(a.objectType,c,e.isTypeNode),p(a.indexType,c,e.isTypeNode));case 195:return e.Debug.type(a),f.updateMappedTypeNode(a,p(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(a.typeParameter,c,e.isTypeParameterDeclaration),p(a.nameType,c,e.isTypeNode),p(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(a.type,c,e.isTypeNode),u(a.members,c,e.isTypeElement));case 196:return e.Debug.type(a),f.updateLiteralTypeNode(a,p(a.literal,c,e.isExpression));case 198:return e.Debug.type(a),f.updateTemplateLiteralType(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 199:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,p(a.type,c,e.isTypeNode),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 201:return e.Debug.type(a),f.updateObjectBindingPattern(a,u(a.elements,c,e.isBindingElement));case 202:return e.Debug.type(a),f.updateArrayBindingPattern(a,u(a.elements,c,e.isArrayBindingElement));case 203:return e.Debug.type(a),f.updateBindingElement(a,p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.propertyName,c,e.isPropertyName),p(a.name,c,e.isBindingName),p(a.initializer,c,e.isExpression));case 204:return e.Debug.type(a),f.updateArrayLiteralExpression(a,u(a.elements,c,e.isExpression));case 205:return e.Debug.type(a),f.updateObjectLiteralExpression(a,u(a.properties,c,e.isObjectLiteralElementLike));case 206:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,p(a.expression,c,e.isExpression),p(a.name,c,e.isMemberName)));case 207:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,p(a.expression,c,e.isExpression),p(a.argumentExpression,c,e.isExpression)));case 208:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 209:return e.Debug.type(a),f.updateNewExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression));case 210:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,p(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),p(a.template,c,e.isTemplateLiteral));case 211:return e.Debug.type(a),f.updateTypeAssertion(a,p(a.type,c,e.isTypeNode),p(a.expression,c,e.isExpression));case 212:return e.Debug.type(a),f.updateParenthesizedExpression(a,p(a.expression,c,e.isExpression));case 213:return e.Debug.type(a),f.updateFunctionExpression(a,u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 214:return e.Debug.type(a),f.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),p(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(a.body,c,l,p));case 215:return e.Debug.type(a),f.updateDeleteExpression(a,p(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateTypeOfExpression(a,p(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updateVoidExpression(a,p(a.expression,c,e.isExpression));case 218:return e.Debug.type(a),f.updateAwaitExpression(a,p(a.expression,c,e.isExpression));case 219:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,p(a.operand,c,e.isExpression));case 220:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,p(a.operand,c,e.isExpression));case 221:return e.Debug.type(a),f.updateBinaryExpression(a,p(a.left,c,e.isExpression),p(a.operatorToken,d,e.isBinaryOperatorToken),p(a.right,c,e.isExpression));case 222:return e.Debug.type(a),f.updateConditionalExpression(a,p(a.condition,c,e.isExpression),p(a.questionToken,d,e.isQuestionToken),p(a.whenTrue,c,e.isExpression),p(a.colonToken,d,e.isColonToken),p(a.whenFalse,c,e.isExpression));case 223:return e.Debug.type(a),f.updateTemplateExpression(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateSpan));case 224:return e.Debug.type(a),f.updateYieldExpression(a,p(a.asteriskToken,d,e.isAsteriskToken),p(a.expression,c,e.isExpression));case 225:return e.Debug.type(a),f.updateSpreadElement(a,p(a.expression,c,e.isExpression));case 226:return e.Debug.type(a),f.updateClassExpression(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 228:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode));case 229:return e.Debug.type(a),f.updateAsExpression(a,p(a.expression,c,e.isExpression),p(a.type,c,e.isTypeNode));case 230:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,p(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,p(a.expression,c,e.isExpression)));case 231:return e.Debug.type(a),f.updateMetaProperty(a,p(a.name,c,e.isIdentifier));case 233:return e.Debug.type(a),f.updateTemplateSpan(a,p(a.expression,c,e.isExpression),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 235:return e.Debug.type(a),f.updateBlock(a,u(a.statements,c,e.isStatement));case 237:return e.Debug.type(a),f.updateVariableStatement(a,u(a.modifiers,c,e.isModifier),p(a.declarationList,c,e.isVariableDeclarationList));case 238:return e.Debug.type(a),f.updateExpressionStatement(a,p(a.expression,c,e.isExpression));case 239:return e.Debug.type(a),f.updateIfStatement(a,p(a.expression,c,e.isExpression),p(a.thenStatement,c,e.isStatement,f.liftToBlock),p(a.elseStatement,c,e.isStatement,f.liftToBlock));case 240:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,l),p(a.expression,c,e.isExpression));case 241:return e.Debug.type(a),f.updateWhileStatement(a,p(a.expression,c,e.isExpression),s(a.statement,c,l));case 242:return e.Debug.type(a),f.updateForStatement(a,p(a.initializer,c,e.isForInitializer),p(a.condition,c,e.isExpression),p(a.incrementor,c,e.isExpression),s(a.statement,c,l));case 243:return e.Debug.type(a),f.updateForInStatement(a,p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 244:return e.Debug.type(a),f.updateForOfStatement(a,p(a.awaitModifier,d,e.isAwaitKeyword),p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 245:return e.Debug.type(a),f.updateContinueStatement(a,p(a.label,c,e.isIdentifier));case 246:return e.Debug.type(a),f.updateBreakStatement(a,p(a.label,c,e.isIdentifier));case 247:return e.Debug.type(a),f.updateReturnStatement(a,p(a.expression,c,e.isExpression));case 248:return e.Debug.type(a),f.updateWithStatement(a,p(a.expression,c,e.isExpression),p(a.statement,c,e.isStatement,f.liftToBlock));case 249:return e.Debug.type(a),f.updateSwitchStatement(a,p(a.expression,c,e.isExpression),p(a.caseBlock,c,e.isCaseBlock));case 250:return e.Debug.type(a),f.updateLabeledStatement(a,p(a.label,c,e.isIdentifier),p(a.statement,c,e.isStatement,f.liftToBlock));case 251:return e.Debug.type(a),f.updateThrowStatement(a,p(a.expression,c,e.isExpression));case 252:return e.Debug.type(a),f.updateTryStatement(a,p(a.tryBlock,c,e.isBlock),p(a.catchClause,c,e.isCatchClause),p(a.finallyBlock,c,e.isBlock));case 254:return e.Debug.type(a),f.updateVariableDeclaration(a,p(a.name,c,e.isBindingName),p(a.exclamationToken,d,e.isExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 255:return e.Debug.type(a),f.updateVariableDeclarationList(a,u(a.declarations,c,e.isVariableDeclaration));case 256:return e.Debug.type(a),f.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 257:return e.Debug.type(a),f.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 258:return e.Debug.type(a),f.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 259:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),p(a.type,c,e.isTypeNode));case 260:return e.Debug.type(a),f.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 261:return e.Debug.type(a),f.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isModuleName),p(a.body,c,e.isModuleBody));case 262:return e.Debug.type(a),f.updateModuleBlock(a,u(a.statements,c,e.isStatement));case 263:return e.Debug.type(a),f.updateCaseBlock(a,u(a.clauses,c,e.isCaseOrDefaultClause));case 264:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,p(a.name,c,e.isIdentifier));case 265:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.moduleReference,c,e.isModuleReference));case 266:return e.Debug.type(a),f.updateImportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.importClause,c,e.isImportClause),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 293:return e.Debug.type(a),f.updateAssertClause(a,u(a.elements,c,e.isAssertEntry),a.multiLine);case 294:return e.Debug.type(a),f.updateAssertEntry(a,p(a.name,c,e.isAssertionKey),p(a.value,c,e.isExpressionNode));case 267:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.namedBindings,c,e.isNamedImportBindings));case 268:return e.Debug.type(a),f.updateNamespaceImport(a,p(a.name,c,e.isIdentifier));case 274:return e.Debug.type(a),f.updateNamespaceExport(a,p(a.name,c,e.isIdentifier));case 269:return e.Debug.type(a),f.updateNamedImports(a,u(a.elements,c,e.isImportSpecifier));case 270:return e.Debug.type(a),f.updateImportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 271:return e.Debug.type(a),f.updateExportAssignment(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.expression,c,e.isExpression));case 272:return e.Debug.type(a),f.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.exportClause,c,e.isNamedExportBindings),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 273:return e.Debug.type(a),f.updateNamedExports(a,u(a.elements,c,e.isExportSpecifier));case 275:return e.Debug.type(a),f.updateExportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 277:return e.Debug.type(a),f.updateExternalModuleReference(a,p(a.expression,c,e.isExpression));case 278:return e.Debug.type(a),f.updateJsxElement(a,p(a.openingElement,c,e.isJsxOpeningElement),u(a.children,c,e.isJsxChild),p(a.closingElement,c,e.isJsxClosingElement));case 279:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 280:return e.Debug.type(a),f.updateJsxOpeningElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 281:return e.Debug.type(a),f.updateJsxClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression));case 282:return e.Debug.type(a),f.updateJsxFragment(a,p(a.openingFragment,c,e.isJsxOpeningFragment),u(a.children,c,e.isJsxChild),p(a.closingFragment,c,e.isJsxClosingFragment));case 285:return e.Debug.type(a),f.updateJsxAttribute(a,p(a.name,c,e.isIdentifier),p(a.initializer,c,e.isStringLiteralOrJsxExpression));case 286:return e.Debug.type(a),f.updateJsxAttributes(a,u(a.properties,c,e.isJsxAttributeLike));case 287:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,p(a.expression,c,e.isExpression));case 288:return e.Debug.type(a),f.updateJsxExpression(a,p(a.expression,c,e.isExpression));case 289:return e.Debug.type(a),f.updateCaseClause(a,p(a.expression,c,e.isExpression),u(a.statements,c,e.isStatement));case 290:return e.Debug.type(a),f.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 291:return e.Debug.type(a),f.updateHeritageClause(a,u(a.types,c,e.isExpressionWithTypeArguments));case 292:return e.Debug.type(a),f.updateCatchClause(a,p(a.variableDeclaration,c,e.isVariableDeclaration),p(a.block,c,e.isBlock));case 296:return e.Debug.type(a),f.updatePropertyAssignment(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 297:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,p(a.name,c,e.isIdentifier),p(a.objectAssignmentInitializer,c,e.isExpression));case 298:return e.Debug.type(a),f.updateSpreadAssignment(a,p(a.expression,c,e.isExpression));case 299:return e.Debug.type(a),f.updateEnumMember(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 305:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,l));case 350:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,p(a.expression,c,e.isExpression));case 351:return e.Debug.type(a),f.updateCommaListExpression(a,u(a.elements,c,e.isExpression));default:return a}}}})(p),(e=>{e.createSourceMapGenerator=(t,r,n,i,o)=>{var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],_=[],f=new e.Map,m=[],g=[],h="",y=0,v=0,b=0,x=0,E=0,S=0,D=!1,T=0,C=0,k=0,A=0,N=0,w=0,F=!1,P=!1,I=!1;return{getSources:()=>p,addSource:O,setSourceContent:M,addName:R,addMapping:L,appendSourceMap(t,r,n,i,o,s){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var m=void 0,g=void 0,h=void 0,y=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=l[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);l[f.sourceIndex]=m=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,h=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(y=c[f.nameIndex])&&(c[f.nameIndex]=y=R(n.names[f.nameIndex])))}var E=f.generatedLine-(o?o.line:0),S=E+t,D=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;L(S,0===E?D+r:D,m,g,h,y)}}d()},toJSON:V,toString:()=>JSON.stringify(V())};function O(r){u();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=f.get(n);return void 0===a&&(a=_.length,_.push(n),p.push(r),f.set(n,a)),d(),a}function M(e,t){if(u(),null!==t){for(s||(s=[]);s.length<e;)s.push(null);s[e]=t}d()}function R(t){u(),c||(c=new e.Map);var r=c.get(t);return void 0===r&&(r=m.length,m.push(t),c.set(t,r)),d(),r}function L(t,r,n,i,a,o){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(((e,t)=>!F||T!==e||C!==t)(t,r)||((e,t,r)=>void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&N>r))(n,i,a))&&(j(),T=t,C=r,P=!1,I=!1,F=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(w=o,I=!0)),d()}function B(e){g.push(e),g.length>=1024&&U()}function j(){if(F&&(!D||y!==T||v!==C||b!==k||x!==A||E!==N||S!==w)){if(u(),y<T){do{B(59),y++}while(y<T);v=0}else e.Debug.assertEqual(y,T,"generatedLine cannot backtrack"),D&&B(44);K(C-v),v=C,P&&(K(k-b),b=k,K(A-x),x=A,K(N-E),E=N,I&&(K(w-S),S=w)),D=!0,d()}}function U(){g.length>0&&(h+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return j(),U(),{version:3,file:r,sourceRoot:n,sources:_,names:m,mappings:h,sourcesContent:s}}function K(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var p=!1,h=!1;if(a+=g(),f())return d();if(a<0)return _("Invalid generatedCharacter found");if(!m()){if(p=!0,o+=g(),f())return d();if(o<0)return _("Invalid sourceIndex found");if(m())return _("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return d();if(s<0)return _("Invalid sourceLine found");if(m())return _("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return d();if(c<0)return _("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return d();if(l<0)return _("Invalid nameIndex found");if(!m())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:u(p,h),done:r}}n++}else i++,a=0,n++}return d()}};function u(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function d(){return r=!0,{value:void 0,done:!0}}function p(e){void 0===t&&(t=e)}function _(e){return p(e),d()}function f(){return void 0!==t}function m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=(e,t)=>({getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}),e.tryGetSourceMappingURL=n=>{for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=e=>{try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=(e,t)=>e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex,e.isSourceMapping=o,e.createDocumentPositionMapper=(t,r,n)=>{var i,_,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,h=e.getNormalizedAbsolutePath(r.file,m),y=t.getSourceFileLike(h),v=r.sources.map((t=>e.getNormalizedAbsolutePath(t,g))),b=new e.Map(v.map(((e,r)=>[t.getCanonicalFileName(e),r])));return{getSourcePosition(t){var r=(()=>{if(void 0===_){for(var t=[],r=0,n=E();r<n.length;r++){var i=n[r];t.push(i)}_=e.sortAndDeduplicate(t,u,c)}return _})();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=(t=>{if(void 0===f){for(var r=[],n=0,i=E();n<i.length;n++){var a=i[n];if(s(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((t=>e.sortAndDeduplicate(t,l,c)))}return f[t]})(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:h,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function E(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(p),(e=>{function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++)r(o[a])&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&(t=>!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r))(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}function c(t){if(e.isExpressionStatement(t)){var r=e.skipParentheses(t.expression);return e.isSuperCall(r)?r:void 0}}function l(t){return r=t,e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)||e.isClassStaticBlockDeclaration(t);var r}e.getOriginalNodeId=t,e.chainBundle=(t,r)=>n=>305===n.kind?r(n):(n=>t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends))(n),e.getExportNeedsImportStarHelper=t=>!!e.getNamespaceDeclarationNode(t),e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=(r,s,c,l)=>{for(var u,d,p=[],_=e.createMultiMap(),f=[],m=new e.Map,g=!1,h=!1,y=!1,v=!1,b=0,x=s.statements;b<x.length;b++){var E=x[b];switch(E.kind){case 266:p.push(E),!y&&n(E)&&(y=!0),!v&&i(E)&&(v=!0);break;case 265:277===E.moduleReference.kind&&p.push(E);break;case 272:if(E.moduleSpecifier)if(E.exportClause)if(p.push(E),e.isNamedExports(E.exportClause))A(E);else{var S=E.exportClause.name;m.get(e.idText(S))||(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S)),y=!0}else p.push(E),h=!0;else A(E);break;case 271:E.isExportEquals&&!d&&(d=E);break;case 237:if(e.hasSyntacticModifier(E,1))for(var D=0,T=E.declarationList.declarations;D<T.length;D++){var C=T[D];u=a(C,m,u)}break;case 256:e.hasSyntacticModifier(E,1)&&(e.hasSyntacticModifier(E,512)?g||(o(f,t(E),r.factory.getDeclarationName(E)),g=!0):(S=E.name,m.get(e.idText(S))||(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S))));break;case 257:e.hasSyntacticModifier(E,1)&&(e.hasSyntacticModifier(E,512)?g||(o(f,t(E),r.factory.getDeclarationName(E)),g=!0):(S=E.name)&&!m.get(e.idText(S))&&(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S)))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,l,h,y,v);return k&&p.unshift(k),{externalImports:p,exportSpecifiers:_,exportEquals:d,hasExportStarsToExportValues:h,exportedBindings:f,exportedNames:u,externalHelpersImportDeclaration:k};function A(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!m.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||_.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(f,t(l),a.name),m.set(e.idText(a.name),!0),u=e.append(u,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=t=>!e.isIdentifier(t)&&s(t),e.isCompoundAssignment=e=>e>=64&&e<=78,e.getNonAssignmentOperatorForCompoundAssignment=e=>{switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=(e,t)=>{for(var r=t;r<e.length;r+=1)if(c(e[r]))return r;return-1},e.getProperties=(t,r,n)=>e.filter(t.members,(t=>((t,r,n)=>e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n)(t,r,n))),e.getStaticPropertiesAndClassStaticBlock=t=>e.filter(t.members,l),e.isInitializedProperty=e=>167===e.kind&&void 0!==e.initializer,e.isNonStaticMethodOrAccessorWithPrivateName=t=>!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)})(p),(e=>{function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?((r,n)=>{for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++)if(t(a[i],n))return!0;return!1})(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,l){var u=e.getTargetOfBindingOrAssignmentElement(r);if(!l){var d=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);d?s?(s=((e,t,r,n)=>(t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)))(t,s,d,c),!e.isSimpleInlineableExpression(d)&&e.isBindingOrAssignmentPattern(u)&&(s=o(t,s,!0,c))):s=d:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?((t,r,i,s,c)=>{var l,u,d=e.getElementsOfBindingOrAssignmentPattern(i),p=d.length;1!==p&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),g=t.context.getEmitHelperFactory().createRestHelper(s,d,u,i),n(t,f,g,f));else{var m=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(m)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(t,s,m);e.isComputedPropertyName(m)&&(u=e.append(u,g.argumentExpression)),n(t,f,g,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)})(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?((t,r,a,s,c)=>{var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c):(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(t.level>=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var m=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(g=t.context.factory.createArraySliceCall(s,_),n(t,f,g,f));else{var g=t.context.factory.createElementAccessExpression(s,_);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var h=0,y=u;h<y.length;h++){var v=y[h],b=v[0];n(t,f=v[1],b,f)}})(t,r,u,s,c):t.emitBindingOrAssignment(u,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n))return i=e.factory.cloneNode(n),t.context.factory.createElementAccessExpression(r,i);var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=(i,a,c,l,u,d)=>{var p,_,f=i;if(e.isDestructuringAssignment(i))for(p=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);f=i=p,p=i.right}var m={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,g(o)},createArrayBindingOrAssignmentPattern:t=>((t,r)=>t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement)))(c.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement)))(c.factory,t),createArrayBindingOrAssignmentElement:s,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(i,p.escapedText)||r(i)?p=o(m,p,!1,f):u?p=o(m,p,!0,f):e.nodeIsSynthesized(i)&&(f=p)),n(m,i,p,f,e.isDestructuringAssignment(i)),p&&u){if(!e.some(_))return p;_.push(p)}return c.factory.inlineExpressions(_)||c.factory.createOmittedExpression();function g(t){_=e.append(_,t)}},e.flattenDestructuringBinding=(i,a,s,c,l,u,d)=>{var p;void 0===u&&(u=!1);var _=[],f=[],m={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression(t){p=e.append(p,t)},emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)))(s.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)))(s.factory,t),createArrayBindingOrAssignmentElement:e=>((e,t)=>e.createBindingElement(void 0,void 0,t))(s.factory,e),visitor:a};if(e.isVariableDeclaration(i)){var g=e.getInitializerOfBindingOrAssignmentElement(i);g&&(e.isIdentifier(g)&&t(i,g.escapedText)||r(i))&&(g=o(m,e.visitNode(g,m.visitor),!1,g),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,g))}if(n(m,i,l,i,d),p){var h=s.factory.createTempVariable(void 0);if(u){var y=s.factory.inlineExpressions(p);p=void 0,A(h,y,void 0,void 0)}else{s.hoistVariableDeclaration(h);var v=e.last(_);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(h,v.value)),e.addRange(v.pendingExpressions,p),v.value=h}}for(var b=0,x=_;b<x.length;b++){var E=x[b],S=E.pendingExpressions,D=E.name,T=(y=E.value,E.location),C=E.original,k=s.factory.createVariableDeclaration(D,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,y)):y);k.original=C,e.setTextRange(k,T),f.push(k)}return f;function A(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),p&&(r=s.factory.inlineExpressions(e.append(p,r)),p=void 0),_.push({pendingExpressions:p,name:t,value:r,location:n,original:i})}}})(p),(e=>{var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){e.Debug.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!(e=>{e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"})(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=(i,a,o,s,c,l)=>{var u=e.visitNode(a.tag,o,e.isExpression),d=[void 0],p=[],_=[],f=a.template;if(l===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))p.push(r(f)),_.push(n(f,s));else{p.push(r(f.head)),_.push(n(f.head,s));for(var m=0,g=f.templateSpans;m<g.length;m++){var h=g[m];p.push(r(h.literal)),_.push(n(h.literal,s)),d.push(e.visitNode(h.expression,o,e.isExpression))}}var y=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(_));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),d[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,y))}else d[0]=y;return e.factory.createCallExpression(u,void 0,d)}})(p),(e=>{var t,r;!(e=>{e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(t||(t={})),(e=>{e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"})(r||(r={})),e.transformTypeScript=t=>{var r,n,i,a,o,s,c,l,u,d,p=t.factory,_=t.getEmitHelperFactory,m=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,h=t.endLexicalEnvironment,y=t.hoistVariableDeclaration,v=t.getEmitResolver(),b=t.getCompilerOptions(),x=e.getStrictOptionValue(b,"strictNullChecks"),E=e.getEmitScriptTarget(b),S=e.getEmitModuleKind(b),D=t.onEmitNode,T=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{var a=d,o=r;e.isSourceFile(n)&&(r=n),2&l&&(t=>261===e.getOriginalNode(t).kind)(n)&&(d|=2),8&l&&(t=>260===e.getOriginalNode(t).kind)(n)&&(d|=8),D(t,n,i),d=a,r=o},t.onSubstituteNode=(t,r)=>(r=T(t,r),1===t?(t=>{switch(t.kind){case 79:return(t=>(t=>{if(1&l&&33554432&v.getNodeCheckFlags(t)){var r=v.getReferencedValueDeclaration(t);if(r){var n=u[r.id];if(n){var i=p.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}})(t)||Pe(t)||t)(t);case 206:case 207:return(t=>(t=>{var r=(t=>{if(!b.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?v.getConstantValue(t):void 0})(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?p.createStringLiteral(r):p.createNumericLiteral(r);if(!b.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression);e.addSyntheticTrailingComment(n,3," ".concat(e.getTextOfNode(i).replace(/\*\//g,"*_/")," "))}return n}return t})(t))(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{if(2&l){var r=t.name,n=Pe(r);if(n){if(t.objectAssignmentInitializer){var i=p.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(r,i),t)}return e.setTextRange(p.createPropertyAssignment(r,n),t)}}return t})(r):r),t.enableSubstitution(206),t.enableSubstitution(207),t=>306===t.kind?(t=>p.createBundle(t.sourceFiles.map(C),e.mapDefined(t.prepends,(t=>308===t.kind?e.createUnparsedSourceFile(t,"js"):t))))(t):C(t);function C(n){if(n.isDeclarationFile)return n;r=n;var i=k(n,B);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function k(t,r){var n=a,i=o,l=s,u=c;!(t=>{switch(t.kind){case 305:case 263:case 262:case 235:a=t,o=void 0,s=void 0;break;case 257:case 256:if(e.hasSyntacticModifier(t,2))break;t.name?_e(t):e.Debug.assert(257===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(o=t)}})(t);var d=r(t);return a!==n&&(s=l),a=n,o=i,c=u,d}function A(e){return k(e,N)}function N(e){return 1&e.transformFlags?L(e):e}function w(e){return k(e,F)}function F(r){switch(r.kind){case 266:case 265:case 271:case 272:return(r=>{if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,A,t):r;switch(r.kind){case 266:return(t=>{if(!t.importClause)return t;if(!t.importClause.isTypeOnly){var r=e.visitNode(t.importClause,ye,e.isImportClause);return r||1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues?p.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier,t.assertClause):void 0}})(r);case 265:return Ee(r);case 271:return(r=>v.isValueAliasDeclaration(r)?e.visitEachChild(r,A,t):void 0)(r);case 272:return(t=>{if(!t.isTypeOnly){if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;var r=!!t.moduleSpecifier&&(1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues),n=e.visitNode(t.exportClause,(t=>((t,r)=>e.isNamespaceExport(t)?(t=>p.updateNamespaceExport(t,e.visitNode(t.name,A,e.isIdentifier)))(t):((t,r)=>{var n=e.visitNodes(t.elements,xe,e.isExportSpecifier);return r||e.some(n)?p.updateNamedExports(t,n):void 0})(t,r))(t,r)),e.isNamedExportBindings);return n?p.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,n,t.moduleSpecifier,t.assertClause):void 0}})(r);default:e.Debug.fail("Unhandled ellided statement")}})(r);default:return N(r)}}function P(e){return k(e,I)}function I(t){if(272!==t.kind&&266!==t.kind&&267!==t.kind&&(265!==t.kind||277!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?L(t):t}function O(e){return k(e,M)}function M(t){switch(t.kind){case 171:return se(t);case 167:return oe(t);case 176:case 172:case 173:case 169:case 170:return N(t);case 234:return t;default:return e.Debug.failBadSyntaxKind(t)}}function R(t){if(!(116958&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function L(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return p.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return n?void 0:o;case 123:case 121:case 122:case 126:case 159:case 85:case 135:case 145:case 101:case 144:case 183:case 184:case 185:case 186:case 182:case 177:case 163:case 130:case 155:case 133:case 150:case 147:case 143:case 114:case 151:case 180:case 179:case 181:case 178:case 187:case 188:case 189:case 191:case 192:case 193:case 194:case 195:case 196:case 176:case 165:return;case 259:return p.createNotEmittedStatement(o);case 167:return oe(o);case 264:return;case 171:return se(o);case 258:return p.createNotEmittedStatement(o);case 257:return(i=>{if(!(U(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,A,t);var a=((t,r)=>{var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Se(t)?n|=8:(t=>De(t)&&e.hasSyntacticModifier(t,512))(t)?n|=32:Te(t)&&(n|=16),E<=1&&7&n&&(n|=128),n})(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?p.getGeneratedNameForNode(i):void 0),s=2&a?((r,n)=>{var i=e.moveRangePastDecorators(r),a=(r=>{if(16777216&v.getNodeCheckFlags(r)){0==(1&l)&&(l|=1,t.enableSubstitution(79),u=[]);var n=p.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return u[e.getOriginalNodeId(r)]=n,y(n),n}})(r),o=E<=2?p.getInternalName(r,!1,!0):p.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,A,e.isHeritageClause),c=V(r),d=p.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(d,r),e.setTextRange(d,i);var _=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,a?p.createAssignment(a,d):d)],1));return e.setOriginalNode(_,r),e.setTextRange(_,i),e.setCommentRange(_,r),_})(i,o):((t,r,n)=>{var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=p.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),V(t)),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a})(i,o,a),c=[s];if(J(c,i,!1),J(c,i,!0),((t,r)=>{var n=(t=>{var r=W(t,t,(t=>{var r=t.decorators,n=z(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}})(t));if(r){var n=u&&u[e.getOriginalNodeId(t)],i=E<=2?p.getInternalName(t,!1,!0):p.getLocalName(t,!1,!0),a=_().createDecorateHelper(r,i),o=p.createAssignment(i,n?p.createAssignment(n,a):a);return e.setEmitFlags(o,1536),e.setSourceMapRange(o,e.moveRangePastDecorators(t)),o}})(r);n&&t.push(e.setOriginalNode(p.createExpressionStatement(n),r))})(c,i),128&a){var d=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=p.getInternalName(i),m=p.createPartiallyEmittedExpression(f);e.setTextRangeEnd(m,d.end),e.setEmitFlags(m,1536);var g=p.createReturnStatement(m);e.setTextRangePos(g,d.pos),e.setEmitFlags(g,1920),c.push(g),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var h=p.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(h,33554432);var b=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(i,!1,!1),void 0,void 0,h)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?ke(c,i):(128&a||2&a)&&(32&a?c.push(p.createExportDefault(p.getLocalName(i,!1,!0))):16&a&&c.push(p.createExternalModuleExport(p.getLocalName(i,!1,!0)))),c.length>1&&(c.push(p.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)})(o);case 226:return(r=>{if(!U(r))return e.visitEachChild(r,A,t);var n=p.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,A,e.isHeritageClause),V(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n})(o);case 291:return(r=>{if(117!==r.token)return e.visitEachChild(r,A,t)})(o);case 228:return(t=>p.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,A,e.isLeftHandSideExpression),void 0))(o);case 169:return(r=>{if(ae(r)){var n=p.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,ie(r),void 0,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 172:return(r=>{if(le(r)){var n=p.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),ie(r),e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||p.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 173:return(r=>{if(le(r)){var n=p.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),ie(r),e.visitParameterList(r.parameters,A,t),e.visitFunctionBody(r.body,A,t)||p.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 256:return(r=>{if(!ae(r))return p.createNotEmittedStatement(r);var n=p.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||p.createBlock([]));if(Se(r)){var i=[n];return ke(i,r),i}return n})(o);case 213:return(r=>ae(r)?p.updateFunctionExpression(r,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||p.createBlock([])):p.createOmittedExpression())(o);case 214:return(r=>p.updateArrowFunction(r,e.visitNodes(r.modifiers,R,e.isModifier),void 0,e.visitParameterList(r.parameters,A,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,A,t)))(o);case 164:return(t=>{if(!e.parameterIsThisKeyword(t)){var r=p.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,A,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,A,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}})(o);case 212:return(r=>{var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,A,e.isExpression);return p.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,A,t)})(o);case 211:case 229:return(t=>{var r=e.visitNode(t.expression,A,e.isExpression);return p.createPartiallyEmittedExpression(r,t)})(o);case 208:return(t=>p.updateCallExpression(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression)))(o);case 209:return(t=>p.updateNewExpression(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression)))(o);case 210:return(t=>p.updateTaggedTemplateExpression(t,e.visitNode(t.tag,A,e.isExpression),void 0,e.visitNode(t.template,A,e.isExpression)))(o);case 230:return(t=>{var r=e.visitNode(t.expression,A,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(r,t)})(o);case 260:return(t=>{if(!(t=>!e.isEnumConst(t)||e.shouldPreserveConstEnums(b))(t))return p.createNotEmittedStatement(t);var n=[],o=2,s=me(n,t);s&&(S===e.ModuleKind.System&&a===r||(o|=512));var c=we(t),l=Fe(t),u=e.hasSyntacticModifier(t,1)?p.getExternalModuleOrNamespaceExportName(i,t,!1,!0):p.getLocalName(t,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(pe(t)){var _=p.getLocalName(t,!1,!0);d=p.createAssignment(_,d)}var f=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,((t,r)=>{var n=i;i=r;var a=[];m();var o=e.map(t.members,de);return e.insertStatementsAfterStandardPrologue(a,h()),e.addRange(a,o),i=n,p.createBlock(e.setTextRange(p.createNodeArray(a),t.members),!0)})(t,l)),void 0,[d]));return e.setOriginalNode(f,t),s&&(e.setSyntheticLeadingComments(f,void 0),e.setSyntheticTrailingComments(f,void 0)),e.setTextRange(f,t),e.addEmitFlags(f,o),n.push(f),n.push(p.createEndOfDeclarationMarker(t)),n})(o);case 237:return(r=>{if(Se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(n,ue))),r)}return e.visitEachChild(r,A,t)})(o);case 254:return(t=>{var r=p.updateVariableDeclaration(t,e.visitNode(t.name,A,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,A,e.isExpression));return t.type&&e.setTypeNode(r.name,t.type),r})(o);case 261:return ge(o);case 265:return Ee(o);case 279:return(t=>p.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,A,e.isJsxAttributes)))(o);case 280:return(t=>p.updateJsxOpeningElement(t,e.visitNode(t.tagName,A,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,A,e.isJsxAttributes)))(o);default:return e.visitEachChild(o,A,t)}}function B(r){var n=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(r)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return p.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,w,t,0,n))}function j(e){return!!(4096&e.transformFlags)}function U(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function V(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(p.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,O,e.isClassElement)),e.setTextRange(p.createNodeArray(r),t.members)}function K(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.isStatic(t)}function z(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function W(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,$)),e.addRange(i,e.flatMap(n.parameters,G)),((t,r,n)=>{!((t,r,n)=>{b.emitDecoratorMetadata&&((e=>{var t=e.kind;return 169===t||172===t||173===t||167===t})(t)&&n.push(_().createMetadataHelper("design:type",q(t))),(t=>{switch(t.kind){case 257:case 226:return void 0!==e.getFirstConstructorWithBody(t);case 169:case 172:case 173:return!0}return!1})(t)&&n.push(_().createMetadataHelper("design:paramtypes",((t,r)=>{var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=((t,r)=>{if(r&&172===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters})(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(X(e.getRestParameterElementType(c.type))):i.push(q(c)))}return p.createArrayLiteralExpression(i)})(t,r))),(e=>169===e.kind)(t)&&n.push(_().createMetadataHelper("design:returntype",(t=>e.isFunctionLike(t)&&t.type?X(t.type):e.isAsyncFunction(t)?p.createIdentifier("Promise"):p.createVoidZero())(t))))})(t,r,n)})(t,r,i),i}}function J(t,r,n){e.addRange(t,e.map(((t,r)=>{for(var n,i=0,a=((t,r)=>e.filter(t.members,r?e=>K(e,!0,t):e=>K(e,!1,t)))(t,r);i<a.length;i++){var o=H(t,a[i]);o&&(n?n.push(o):n=[o])}return n})(r,n),Ce))}function H(t,r){var n=W(r,t,((t,r)=>{switch(r.kind){case 172:case 173:return((t,r)=>{if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,l=z(o);if(c||l)return{decorators:c,parameters:l}}}})(t,r);case 169:return(e=>{if(e.body){var t=e.decorators,r=z(e);if(t||r)return{decorators:t,parameters:r}}})(r);case 167:return(e=>{var t=e.decorators;if(t)return{decorators:t}})(r);default:return}})(t,r));if(n){var i=((t,r)=>e.isStatic(r)?p.getDeclarationName(t):(e=>p.createPropertyAccessExpression(p.getDeclarationName(e),"prototype"))(t))(t,r),a=ne(r,!e.hasSyntacticModifier(r,2)),o=E>0?167===r.kind?p.createVoidZero():p.createNull():void 0,s=_().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function $(t){return e.visitNode(t.expression,A,e.isExpression)}function G(t,r){var n;if(t){n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i],s=_().createParamHelper($(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function q(t){switch(t.kind){case 167:case 164:return X(t.type);case 173:case 172:return X((t=>{var r=v.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)})(t));case 257:case 226:case 169:return p.createIdentifier("Function");default:return p.createVoidZero()}}function X(t){if(void 0===t)return p.createIdentifier("Object");switch(t.kind){case 114:case 153:case 143:return p.createVoidZero();case 191:return X(t.type);case 179:case 180:return p.createIdentifier("Function");case 183:case 184:return p.createIdentifier("Array");case 177:case 133:return p.createIdentifier("Boolean");case 198:case 150:return p.createIdentifier("String");case 148:return p.createIdentifier("Object");case 196:switch(t.literal.kind){case 10:case 14:return p.createIdentifier("String");case 219:case 8:return p.createIdentifier("Number");case 9:return re();case 110:case 95:return p.createIdentifier("Boolean");case 104:return p.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 147:return p.createIdentifier("Number");case 158:return re();case 151:return E<2?te():p.createIdentifier("Symbol");case 178:return(t=>{var r=v.getTypeReferenceSerializationKind(t.typeName,o||a);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t))))return p.createIdentifier("Object");var n=Z(t.typeName),i=p.createTempVariable(y);return p.createConditionalExpression(p.createTypeCheck(p.createAssignment(i,n),"function"),void 0,i,void 0,p.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ee(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return p.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return re();case e.TypeReferenceSerializationKind.BooleanType:return p.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return p.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return p.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return p.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return E<2?te():p.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return p.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return p.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return p.createIdentifier("Object");default:return e.Debug.assertNever(r)}})(t);case 188:case 187:return Y(t.types);case 189:return Y([t.trueType,t.falseType]);case 193:if(145===t.operator)return X(t.type);break;case 181:case 194:case 195:case 182:case 130:case 155:case 192:case 200:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return X(t.type);default:return e.Debug.failBadSyntaxKind(t)}return p.createIdentifier("Object")}function Y(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];191===a.kind;)a=a.type;if(143!==a.kind&&(x||(196!==a.kind||104!==a.literal.kind)&&153!==a.kind)){var o=X(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return p.createIdentifier("Object")}else r=o}}return r||p.createVoidZero()}function Q(e,t){return p.createLogicalAnd(p.createStrictInequality(p.createTypeOfExpression(e),p.createStringLiteral("undefined")),t)}function Z(e){if(79===e.kind){var t=ee(e);return Q(t,t)}if(79===e.left.kind)return Q(ee(e.left),ee(e));var r=Z(e.left),n=p.createTempVariable(y);return p.createLogicalAnd(p.createLogicalAnd(r.left,p.createStrictInequality(p.createAssignment(n,r.right),p.createVoidZero())),p.createPropertyAccessExpression(n,e.right))}function ee(t){switch(t.kind){case 79:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(a)),r;case 161:return(e=>p.createPropertyAccessExpression(ee(e.left),e.right))(t)}}function te(){return p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("Symbol"),"function"),void 0,p.createIdentifier("Symbol"),void 0,p.createIdentifier("Object"))}function re(){return E<99?p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("BigInt"),"function"),void 0,p.createIdentifier("BigInt"),void 0,p.createIdentifier("Object")):p.createIdentifier("BigInt")}function ne(t,r){var n=t.name;return e.isPrivateIdentifier(n)?p.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?p.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?p.createStringLiteral(e.idText(n)):p.cloneNode(n)}function ie(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&c||e.some(t.decorators))){var n=e.visitNode(r.expression,A,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=p.getGeneratedNameForNode(r);return y(a),p.updateComputedPropertyName(r,p.createAssignment(a,n))}}return e.visitNode(r,A,e.isPropertyName)}function ae(t){return!e.nodeIsMissing(t.body)}function oe(t){if(!(16777216&t.flags||e.hasSyntacticModifier(t,128))){var r=p.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,A,e.isModifier),ie(t),void 0,void 0,e.visitNode(t.initializer,A));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function se(r){if(ae(r))return p.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,A,t),((r,n)=>{var i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(!e.some(i))return e.visitFunctionBody(r,A,t);var a=[];g();var o=p.copyPrologue(r.statements,a,!1,A),s=e.findSuperStatementIndex(r.statements,o);s>=0&&e.addRange(a,e.visitNodes(r.statements,A,e.isStatement,o,s+1-o));var c=e.mapDefined(i,ce);s>=0?e.addRange(a,c):a=f(f(f([],a.slice(0,o),!0),c,!0),a.slice(o),!0),e.addRange(a,e.visitNodes(r.statements,A,e.isStatement,s+1+o)),a=p.mergeLexicalEnvironment(a,h());var l=p.createBlock(e.setTextRange(p.createNodeArray(a),r.statements),!0);return e.setTextRange(l,r),e.setOriginalNode(l,r),l})(r.body,r))}function ce(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(p.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(p.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(p.createExpressionStatement(p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function le(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function ue(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,A,t,0,!1,Ae):e.setTextRange(p.createAssignment(Ne(n),e.visitNode(r.initializer,A,e.isExpression)),r)}function de(r){var n=ne(r,!1),a=(r=>{var n=v.getConstantValue(r);return void 0!==n?"string"==typeof n?p.createStringLiteral(n):p.createNumericLiteral(n):(0==(8&l)&&(l|=8,t.enableSubstitution(79)),r.initializer?e.visitNode(r.initializer,A,e.isExpression):p.createVoidZero())})(r),o=p.createAssignment(p.createElementAccessExpression(i,n),a),s=10===a.kind?o:p.createAssignment(p.createElementAccessExpression(i,o),n);return e.setTextRange(p.createExpressionStatement(e.setTextRange(s,r)),r)}function pe(t){return Se(t)||De(t)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ES2020&&S!==e.ModuleKind.ES2022&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function _e(t){s||(s=new e.Map);var r=fe(t);s.has(r)||s.set(r,t)}function fe(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function me(t,r){var n=p.createVariableStatement(e.visitNodes(r.modifiers,R,e.isModifier),p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(r,!1,!0))],305===a.kind?0:1));if(e.setOriginalNode(n,r),_e(r),(e=>{if(s){var t=fe(e);return s.get(t)===e}return!0})(r))return 260===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=p.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function ge(o){if(!(t=>{var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(b))})(o))return p.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&l)&&(l|=2,t.enableSubstitution(79),t.enableSubstitution(297),t.enableEmitNotification(261));var c=[],u=2,d=me(c,o);d&&(S===e.ModuleKind.System&&a===r||(u|=512));var _=we(o),f=Fe(o),g=e.hasSyntacticModifier(o,1)?p.getExternalModuleOrNamespaceExportName(i,o,!1,!0):p.getLocalName(o,!1,!0),y=p.createLogicalOr(g,p.createAssignment(g,p.createObjectLiteralExpression()));if(pe(o)){var v=p.getLocalName(o,!1,!0);y=p.createAssignment(v,y)}var x=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,_)],void 0,((t,r)=>{var a=i,o=n,c=s;i=r,n=t,s=void 0;var l,u,d=[];if(m(),t.body)if(262===t.body.kind)k(t.body,(t=>e.addRange(d,e.visitNodes(t.statements,P,e.isStatement)))),l=t.body.statements,u=t.body;else{var _=ge(t.body);_&&(e.isArray(_)?e.addRange(d,_):d.push(_));var f=he(t).body;l=e.moveRangePos(f.statements,-1)}e.insertStatementsAfterStandardPrologue(d,h()),i=a,n=o,s=c;var g=p.createBlock(e.setTextRange(p.createNodeArray(d),l),!0);return e.setTextRange(g,u),t.body&&262===t.body.kind||e.setEmitFlags(g,1536|e.getEmitFlags(g)),g})(o,f)),void 0,[y]));return e.setOriginalNode(x,o),d&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,o),e.addEmitFlags(x,u),c.push(x),c.push(p.createEndOfDeclarationMarker(o)),c}function he(e){if(261===e.body.kind)return he(e.body)||e.body}function ye(t){e.Debug.assert(!t.isTypeOnly);var r=Ie(t)?t.name:void 0,n=e.visitNode(t.namedBindings,ve,e.isNamedImportBindings);return r||n?p.updateImportClause(t,!1,r,n):void 0}function ve(t){if(268===t.kind)return Ie(t)?t:void 0;var r=b.preserveValueImports&&(1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues),n=e.visitNodes(t.elements,be,e.isImportSpecifier);return r||e.some(n)?p.updateNamedImports(t,n):void 0}function be(e){return!e.isTypeOnly&&Ie(e)?e:void 0}function xe(e){return!e.isTypeOnly&&v.isValueAliasDeclaration(e)?e:void 0}function Ee(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=Ie(n);return a||1!==b.importsNotUsedAsValues?a?e.visitEachChild(n,A,t):void 0:e.setOriginalNode(e.setTextRange(p.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression,void 0),n),n)}if((t=>Ie(t)||!e.isExternalModule(r)&&v.isTopLevelValueImportEqualsWithEntityName(t))(n)){var o,s,c,l=e.createExpressionFromEntityName(p,n.moduleReference);return e.setEmitFlags(l,3584),Te(n)||!Se(n)?e.setOriginalNode(e.setTextRange(p.createVariableStatement(e.visitNodes(n.modifiers,R,e.isModifier),p.createVariableDeclarationList([e.setOriginalNode(p.createVariableDeclaration(n.name,void 0,void 0,l),n)])),n),n):e.setOriginalNode((o=n.name,s=l,c=n,e.setTextRange(p.createExpressionStatement(p.createAssignment(p.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}}function Se(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function De(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function Te(t){return De(t)&&!e.hasSyntacticModifier(t,512)}function Ce(e){return p.createExpressionStatement(e)}function ke(t,r){var n=p.createAssignment(p.getExternalModuleOrNamespaceExportName(i,r,!1,!0),p.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=p.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function Ae(t,r,n){return e.setTextRange(p.createAssignment(Ne(t),r),n)}function Ne(e){return p.getNamespaceMemberName(i,e,!1,!0)}function we(t){var r=p.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function Fe(e){return p.getGeneratedNameForNode(e)}function Pe(t){if(l&d&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=v.getReferencedExportContainer(t,!1);if(r&&305!==r.kind&&(2&d&&261===r.kind||8&d&&260===r.kind))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(r),t),t)}}function Ie(e){return b.preserveValueImports?v.isValueAliasDeclaration(e):v.isReferencedAliasDeclaration(e)}}})(p),(e=>{var t,r,n;!(e=>{e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(t||(t={})),(n=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",n.Method="m",n.Accessor="a",(e=>{e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(r||(r={})),e.transformClassFields=t=>{var r=t.factory,n=t.hoistVariableDeclaration,i=t.endLexicalEnvironment,a=t.startLexicalEnvironment,o=t.resumeLexicalEnvironment,s=t.addBlockScopedVariable,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=e.getUseDefineForClassFields(l),p=u<9,_=u<9,m=_&&u>=2,g=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=g(t,n),1===t?(t=>{switch(t.kind){case 79:return(t=>(t=>{if(1&h&&33554432&c.getNodeCheckFlags(t)){var n=c.getReferencedValueDeclaration(t);if(n){var i=y[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}})(t)||t)(t);case 108:return(t=>{if(2&h&&E){var n=E.facts,i=E.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t})(t)}return t})(n):n);var h,y,v,b,x=t.onEmitNode;t.onEmitNode=(t,r,n)=>{var i=e.getOriginalNode(r);if(i.id){var a=C.get(i.id);if(a){var o=E,s=S;return E=a,S=a,x(t,r,n),E=o,void(S=s)}}switch(r.kind){case 213:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 256:case 171:return o=E,s=S,E=void 0,S=void 0,x(t,r,n),E=o,void(S=s);case 172:case 173:case 169:case 167:return o=E,s=S,S=E,E=void 0,x(t,r,n),E=o,void(S=s);case 162:return o=E,s=S,E=S,S=void 0,x(t,r,n),E=o,void(S=s)}x(t,r,n)};var E,S,D,T=[],C=new e.Map;return e.chainBundle(t,(r=>{var n=t.getCompilerOptions();if(r.isDeclarationFile||d&&e.getEmitScriptTarget(n)>=9)return r;var i=e.visitEachChild(r,N,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function k(i,a){if(8388608&i.transformFlags)switch(i.kind){case 226:case 257:return(i=>{if(!e.forEach(i.members,j))return e.visitEachChild(i,N,t);var a=v;if(v=void 0,T.push(E),E=void 0,p){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(X().className=e.idText(o));var l=U(i);e.some(l)&&(X().weakSetName=Z("instances",l[0].name))}var u=e.isClassDeclaration(i)?(t=>{var i,a=V(t);if(a&&(q().facts=a),8&a&&$(),2&a){var o=r.createTempVariable(n,!0);q().classConstructor=r.cloneNode(o),i=r.createAssignment(o,r.getInternalName(t))}var s=e.getEffectiveBaseTypeNode(t),c=!(!s||104===e.skipOuterExpressions(s.expression).kind),l=[r.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,w,e.isHeritageClause),K(t,c))];i&&Y().unshift(i),e.some(v)&&l.push(r.createExpressionStatement(r.inlineExpressions(v)));var u=e.getStaticPropertiesAndClassStaticBlock(t);return e.some(u)&&W(l,u,r.getInternalName(t)),l})(i):(i=>{var a=V(i);a&&(q().facts=a),8&a&&$();var o,l=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),d=e.getEffectiveBaseTypeNode(i),_=!(!d||104===e.skipOuterExpressions(d.expression).kind),f=16777216&c.getNodeCheckFlags(i);function m(){var e=c.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?s:n,!!t)}2&a&&(o=m(),q().classConstructor=r.cloneNode(o));var g=r.updateClassExpression(i,e.visitNodes(i.decorators,N,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,w,e.isHeritageClause),K(i,_));if(p&&e.some(u,(t=>e.isClassStaticBlockDeclaration(t)||!!t.initializer||e.isPrivateIdentifier(t.name)))||e.some(v)){if(l)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&v&&e.some(v)&&b.push(r.createExpressionStatement(r.inlineExpressions(v))),b&&e.some(u)&&W(b,u,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,g),o]):g;var x=[];if(o||(o=m()),f){0==(1&h)&&(h|=1,t.enableSubstitution(79),y=[]);var E=r.cloneNode(o);E.autoGenerateFlags&=-9,y[e.getOriginalNodeId(i)]=E}return e.setEmitFlags(g,65536|e.getEmitFlags(g)),x.push(e.startOnNewLine(r.createAssignment(o,g))),e.addRange(x,e.map(v,e.startOnNewLine)),e.addRange(x,((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?L(o):H(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n})(u,o)),x.push(e.startOnNewLine(o)),r.inlineExpressions(x)}return g})(i);return E=T.pop(),v=a,u})(i);case 167:return I(i);case 237:return(r=>{var n=b;b=[];var i=e.visitEachChild(r,N,t),a=e.some(b)?f([i],b,!0):i;return b=n,a})(i);case 80:return(t=>p?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t)(i);case 170:return(r=>{if(!p)return e.visitEachChild(r,P,t)})(i)}if(8388608&i.transformFlags||33554432&i.transformFlags&&m&&D&&E)switch(i.kind){case 219:case 220:return((i,a)=>{if(45===i.operator||46===i.operator)if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o;if(o=te(i.operand.name)){var s=R(e.visitNode(i.operand.expression,N,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=O(o,c),d=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return u=B(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),63),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}else if(m&&e.isSuperProperty(i.operand)&&D&&E){var _=E.classConstructor,f=E.superClassReference;if(1&E.facts){var g=G(i.operand);return e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,g):r.updatePostfixUnaryExpression(i,g)}if(_&&f){var h=void 0,y=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(y=h=r.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?y=h=i.operand.argumentExpression:(y=r.createTempVariable(n),h=r.createAssignment(y,e.visitNode(i.operand.argumentExpression,N,e.isExpression))),h&&y)return u=r.createReflectGetCall(f,y,_),e.setTextRange(u,i.operand),d=a?void 0:r.createTempVariable(n),u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),u=r.createReflectSetCall(f,h,u,_),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}return e.visitEachChild(i,N,t)})(i,a);case 221:return((i,a)=>{if(e.isDestructuringAssignment(i)){var o=v;v=void 0,i=r.updateBinaryExpression(i,e.visitNode(i.left,F),i.operatorToken,e.visitNode(i.right,N));var s=e.some(v)?r.inlineExpressions(e.compact(f(f([],v,!0),[i],!1))):i;return v=o,s}if(e.isAssignmentExpression(i))if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.left)){var c=te(i.left.name);if(c)return e.setTextRange(e.setOriginalNode(B(c,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(m&&e.isSuperProperty(i.left)&&D&&E){var l=E.classConstructor,u=E.superClassReference;if(1&E.facts)return r.updateBinaryExpression(i,G(i.left),i.operatorToken,e.visitNode(i.right,N,e.isExpression));if(l&&u){var d=e.isElementAccessExpression(i.left)?e.visitNode(i.left.argumentExpression,N,e.isExpression):e.isIdentifier(i.left.name)?r.createStringLiteralFromNode(i.left.name):void 0;if(d){var _=e.visitNode(i.right,N,e.isExpression);if(e.isCompoundAssignment(i.operatorToken.kind)){var g=d;e.isSimpleInlineableExpression(d)||(g=r.createTempVariable(n),d=r.createAssignment(g,d));var h=r.createReflectGetCall(u,g,l);e.setOriginalNode(h,i.left),e.setTextRange(h,i.left),_=r.createBinaryExpression(h,e.getNonAssignmentOperatorForCompoundAssignment(i.operatorToken.kind),_),e.setTextRange(_,i)}var y=a?void 0:r.createTempVariable(n);return y&&(_=r.createAssignment(y,_),e.setTextRange(y,i)),_=r.createReflectSetCall(u,d,_,l),e.setOriginalNode(_,i),e.setTextRange(_,i),y&&(_=r.createComma(_,y),e.setTextRange(_,i)),_}}}return 101===i.operatorToken.kind&&e.isPrivateIdentifier(i.left)?(r=>{if(!p)return r;var n=r.left;e.Debug.assertNode(n,e.isPrivateIdentifier),e.Debug.assert(101===r.operatorToken.kind);var i=te(n);if(i){var a=e.visitNode(r.right,N,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(i.brandCheckIdentifier,a),r)}return e.visitEachChild(r,N,t)})(i):e.visitEachChild(i,N,t)})(i,a);case 208:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.expression)){var a=r.createCallBinding(i.expression,n,u),o=a.thisArg,s=a.target;return e.isCallChain(i)?r.updateCallChain(i,r.createPropertyAccessChain(e.visitNode(s,N),i.questionDotToken,"call"),void 0,void 0,f([e.visitNode(o,N,e.isExpression)],e.visitNodes(i.arguments,N,e.isExpression),!0)):r.updateCallExpression(i,r.createPropertyAccessExpression(e.visitNode(s,N),"call"),void 0,f([e.visitNode(o,N,e.isExpression)],e.visitNodes(i.arguments,N,e.isExpression),!0))}if(m&&e.isSuperProperty(i.expression)&&D&&(null==E?void 0:E.classConstructor)){var c=r.createFunctionCallCall(e.visitNode(i.expression,N,e.isExpression),E.classConstructor,e.visitNodes(i.arguments,N,e.isExpression));return e.setOriginalNode(c,i),e.setTextRange(c,i),c}return e.visitEachChild(i,N,t)})(i);case 210:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,u),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,N),"bind"),void 0,[e.visitNode(o,N,e.isExpression)]),void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}if(m&&e.isSuperProperty(i.tag)&&D&&(null==E?void 0:E.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,N,e.isExpression),E.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}return e.visitEachChild(i,N,t)})(i);case 206:return(n=>{if(p&&e.isPrivateIdentifier(n.name)){var i=te(n.name);if(i)return e.setTextRange(e.setOriginalNode(O(i,n.expression),n),n)}if(m&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&D&&E){var a=E.classConstructor,o=E.superClassReference;if(1&E.facts)return G(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,N,t)})(i);case 207:return(n=>{if(m&&e.isSuperProperty(n)&&D&&E){var i=E.classConstructor,a=E.superClassReference;if(1&E.facts)return G(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,N,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,N,t)})(i);case 238:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,A,e.isExpression)))(i);case 242:return(n=>r.updateForStatement(n,e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.condition,N,e.isExpression),e.visitNode(n.incrementor,A,e.isExpression),e.visitIterationBody(n.statement,N,t)))(i);case 256:case 213:case 171:case 169:case 172:case 173:var o=D;D=void 0;var l=e.visitEachChild(i,N,t);return D=o,l}return e.visitEachChild(i,N,t)}function A(e){return k(e,!0)}function N(e){return k(e,!1)}function w(i){switch(i.kind){case 291:return e.visitEachChild(i,w,t);case 228:return(i=>{if(4&((null==E?void 0:E.facts)||0)){var a=r.createTempVariable(n,!0);return q().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,N,e.isExpression)),void 0)}return e.visitEachChild(i,N,t)})(i)}return N(i)}function F(t){switch(t.kind){case 205:case 204:return(t=>e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,ne,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,ie,e.isObjectLiteralElementLike)))(t);default:return N(t)}}function P(n){switch(n.kind){case 171:return;case 172:case 173:case 169:return(n=>{if(e.Debug.assert(!e.some(n.decorators)),!p||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,P,t);var i=te(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=(t=>{e.Debug.assert(e.isPrivateIdentifier(t.name));var r=te(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}})(n);a&&Y().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(t=>!e.isStaticModifier(t))),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,P,t),void 0,e.visitFunctionBody(n.body,P,t))))})(n);case 167:return I(n);case 162:return(n=>{var i=e.visitEachChild(n,N,t);if(e.some(v)){var a=v;a.push(i.expression),v=[],i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i})(n);case 234:return n;default:return N(n)}}function I(i){if(e.Debug.assert(!e.some(i.decorators)),e.isPrivateIdentifier(i.name)){if(!p)return e.isStatic(i)?e.visitEachChild(i,N,t):r.updatePropertyDeclaration(i,void 0,e.visitNodes(i.modifiers,N,e.isModifier),i.name,void 0,void 0,void 0);var a=te(i.name);if(e.Debug.assert(a,"Undeclared private name for property declaration."),!a.isValid)return i}var o=((t,i)=>{if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,N,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),l=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!l&&i){var u=r.getGeneratedNameForNode(t);return 524288&c.getNodeCheckFlags(t)?s(u):n(u),r.createAssignment(u,a)}return l||e.isIdentifier(o)?void 0:a}})(i.name,!!i.initializer||d);if(o&&!e.isSimpleInlineableExpression(o)&&Y().push(o),e.isStatic(i)&&!p&&!d){var l=J(i,r.createThis());if(l){var u=r.createClassStaticBlockDeclaration(void 0,void 0,r.createBlock([l]));return e.setOriginalNode(u,i),e.setCommentRange(u,i),e.setCommentRange(l,{pos:-1,end:-1}),e.setSyntheticLeadingComments(l,void 0),e.setSyntheticTrailingComments(l,void 0),u}}}function O(t,r){return M(t,e.visitNode(r,N,e.isExpression))}function M(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function R(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function L(t){if(p){E&&C.set(e.getOriginalNodeId(t),E),a();var n=D;D=t;var o=e.visitNodes(t.body.statements,N,e.isStatement);o=r.mergeLexicalEnvironment(o,i()),D=n;var s=r.createImmediatelyInvokedArrowFunction(o);return e.setOriginalNode(s,t),e.setTextRange(s,t),e.addEmitFlags(s,2),s}}function B(n,i,a,o){if(i=e.visitNode(i,N,e.isExpression),a=e.visitNode(a,N,e.isExpression),e.isCompoundAssignment(o)){var s=R(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(M(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function j(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||p&&t.name&&e.isPrivateIdentifier(t.name)}function U(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function V(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&p&&(r|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(_&&8192&o.transformFlags&&(1&(r|=8)||(r|=2)),m&&33554432&o.transformFlags&&(1&r||(r|=6))))}return r}function K(n,a){var s,c=[];if(p){for(var l=0,u=n.members;l<u.length;l++){var _=u[l];e.isPrivateIdentifierClassElementDeclaration(_)&&Q(_)}e.some(U(n))&&(s=X().weakSetName,e.Debug.assert(s,"weakSetName should be set in private identifier environment"),Y().push(r.createAssignment(s,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[]))))}var m=((n,a)=>{var s=e.visitNode(e.getFirstConstructorWithBody(n),N,e.isConstructorDeclaration),c=n.members.filter(z);if(!e.some(c))return s;var l=e.visitParameterList(s?s.parameters:void 0,N,t),u=((n,a,s)=>{var c,l=e.getProperties(n,!1,!1);d||(l=e.filter(l,(t=>!!t.initializer||e.isPrivateIdentifier(t.name))));var u=U(n),_=e.some(l)||e.some(u);if(!a&&!_)return e.visitFunctionBody(void 0,N,t);o();var m=!a&&s,g=0,h=0,y=-1,v=[];(null===(c=null==a?void 0:a.body)||void 0===c?void 0:c.statements)&&(h=r.copyPrologue(a.body.statements,v,!1,N),(y=e.findSuperStatementIndex(a.body.statements,h))>=0?(g=y+1,v=f(f(f([],v.slice(0,h),!0),e.visitNodes(a.body.statements,N,e.isStatement,h,g-h),!0),v.slice(h),!0)):h>=0&&(g=h)),m&&v.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var b=0;if(null==a?void 0:a.body)if(d)v=v.filter((t=>!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)));else{for(var x=0,E=a.body.statements;x<E.length;x++){var S=E[x];e.isParameterPropertyDeclaration(e.getOriginalNode(S),a)&&b++}if(b>0){var D=e.visitNodes(a.body.statements,N,e.isStatement,g,b);if(y>=0)e.addRange(v,D);else{var T=h;m&&T++,v=f(f(f([],v.slice(0,T),!0),D,!0),v.slice(T),!0)}g+=b}}var C=r.createThis();return((t,n,i)=>{if(p&&e.some(n)){var a=X().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(((t,r)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t]))(i,a)))}})(v,u,C),W(v,l,C),a&&e.addRange(v,e.visitNodes(a.body.statements,(t=>{if(!d||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a))return N(t)}),e.isStatement,g)),v=r.mergeLexicalEnvironment(v,i()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(v),a?a.body.statements:n.members),!0),a?a.body:void 0)})(n,s,a);return u?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,void 0,null!=l?l:[],u),s||n),s)):void 0})(n,a),g=e.visitNodes(n.members,P,e.isClassElement);return m&&c.push(m),!p&&e.some(v)&&(c.push(r.createClassStaticBlockDeclaration(void 0,void 0,r.createBlock([r.createExpressionStatement(r.inlineExpressions(v))]))),v=void 0),e.addRange(c,g),e.setTextRange(r.createNodeArray(c),n.members)}function z(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(d?u<9:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function W(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!e.isStatic(o)||p||d){var s=J(o,n);s&&t.push(s)}}}function J(t,n){var i=e.isClassStaticBlockDeclaration(t)?L(t):H(t,n);if(i){var a=r.createExpressionStatement(i);return e.setSourceMapRange(a,e.moveRangePastModifiers(t)),e.setCommentRange(a,t),e.setOriginalNode(a,t),e.setSyntheticLeadingComments(i,void 0),e.setSyntheticTrailingComments(i,void 0),a}}function H(t,n){var i=D,a=((t,n)=>{var i,a=!d,o=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?r.updateComputedPropertyName(t.name,r.getGeneratedNameForNode(t.name)):t.name;if(e.hasStaticModifier(t)&&(D=t),p&&e.isPrivateIdentifier(o)){var s=te(o);if(s)return"f"===s.kind?s.isStatic?((t,r)=>e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())])))(s.variableName,e.visitNode(t.initializer,N,e.isExpression)):((t,r,n)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()]))(n,e.visitNode(t.initializer,N,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(t)||t.initializer){var c=e.getOriginalNode(t);if(!e.hasSyntacticModifier(c,128)){var l=t.initializer||a?null!==(i=e.visitNode(t.initializer,N,e.isExpression))&&void 0!==i?i:r.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:r.createVoidZero();if(a||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(r,n,o,o);return r.createAssignment(u,l)}var _=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?r.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,f=r.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(n,_,f)}}})(t,n);return a&&e.hasStaticModifier(t)&&(null==E?void 0:E.facts)&&(e.setOriginalNode(a,t),e.addEmitFlags(a,2),C.set(e.getOriginalNodeId(a),E)),D=i,a}function $(){0==(2&h)&&(h|=2,t.enableSubstitution(108),t.enableEmitNotification(256),t.enableEmitNotification(213),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(169),t.enableEmitNotification(167),t.enableEmitNotification(162))}function G(t){return e.isPropertyAccessExpression(t)?r.updatePropertyAccessExpression(t,r.createVoidZero(),t.name):r.updateElementAccessExpression(t,r.createVoidZero(),e.visitNode(t.argumentExpression,N,e.isExpression))}function q(){return E||(E={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function X(){var t=q();return t.privateIdentifierEnvironment||(t.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),t.privateIdentifierEnvironment}function Y(){return v||(v=[])}function Q(t){var n,i=e.getTextOfPropertyName(t.name),a=q().classConstructor,o=X(),s=o.weakSetName,c=[],l=t.name.escapedText,u=o.identifiers.get(l),d=!(e=>"#constructor"===e.escapedText)(t.name)&&void 0===u;if(e.hasStaticModifier(t))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(t)){var p=ee(i,t);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isMethodDeclaration(t)){var _=ee(i,t);o.identifiers.set(l,{kind:"m",methodName:_,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isGetAccessorDeclaration(t)){var f=ee(i+"_get",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=f:o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isSetAccessorDeclaration(t)){var m=ee(i+"_set",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=m:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else e.Debug.assertNever(t,"Unknown class element type.");else if(e.isPropertyDeclaration(t)){var g=ee(i,t);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:d}),c.push(r.createAssignment(g,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:ee(i,t),brandCheckIdentifier:s,isStatic:!1,isValid:d})):e.isAccessor(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(t)?(f=ee(i+"_get",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.getterName=f):(m=ee(i+"_set",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.setterName=m)):e.Debug.assertNever(t,"Unknown class element type.");(n=Y()).push.apply(n,c)}function Z(e,t){var i=X().className,a=i?"_".concat(i):"",o=r.createUniqueName("".concat(a,"_").concat(e),16);return 524288&c.getNodeCheckFlags(t)?s(o):n(o),o}function ee(e,t){return Z(e.substring(1),t.name)}function te(e){var t;if((null==E?void 0:E.privateIdentifierEnvironment)&&(n=E.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return n;for(var r=T.length-1;r>=0;--r){var n,i=T[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function re(i){var a=r.getGeneratedNameForNode(i),o=te(i.name);if(!o)return e.visitEachChild(i,N,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),Y().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,N,e.isExpression)))),r.createAssignmentTargetWrapper(a,B(o,s,a,63))}function ne(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&D&&E){var a=E.classConstructor,o=E.superClassReference;if(1&E.facts)i=G(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,N,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,F)}function ie(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&D&&E){var a=E.classConstructor,o=E.superClassReference;if(1&E.facts)i=G(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,N,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,N)):i:e.visitNode(t.initializer,F,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,F,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,N)}}})(p),(e=>{var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach(((r,n)=>{var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(e=>{e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"})(r||(r={})),e.transformES2017=t=>{var r,i,a,o,s=t.factory,c=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,u=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getEmitResolver(),_=t.getCompilerOptions(),m=e.getEmitScriptTarget(_),g=0,h=[],y=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{if(1&r&&(e=>{var t=e.kind;return 257===t||171===t||169===t||172===t||173===t})(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==g){var o=g;return g=a,v(t,n,i),void(g=o)}}else if(r&&h[e.getNodeId(n)])return o=g,g=0,v(t,n,i),void(g=o);v(t,n,i)},t.onSubstituteNode=(t,r)=>(r=b(t,r),1===t&&g?(t=>{switch(t.kind){case 206:return U(t);case 207:return V(t);case 208:return(t=>{var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?U(r):V(r);return s.createCallExpression(s.createPropertyAccessExpression(n,"call"),void 0,f([s.createThis()],t.arguments,!0))}return t})(t)}return t})(r):r),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,_));var n=e.visitEachChild(r,C,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){y=t?y|e:y&~e}function E(e){return 0!=(y&e)}function S(){return E(2)}function D(e,t,r){var n=e&~y;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function T(r){return e.visitEachChild(r,C,t)}function C(r){if(0==(256&r.transformFlags))return r;switch(r.kind){case 131:return;case 218:return(r=>E(1)?e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(r.expression,C,e.isExpression)),r),r):e.visitEachChild(r,C,t))(r);case 169:return D(3,A,r);case 256:return D(3,N,r);case 213:return D(3,w,r);case 214:return D(1,F,r);case 206:return a&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&a.add(r.name.escapedText),e.visitEachChild(r,C,t);case 207:return a&&106===r.expression.kind&&(o=!0),e.visitEachChild(r,C,t);case 172:case 173:case 171:case 257:case 226:return D(3,T,r);default:return e.visitEachChild(r,C,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 237:return(r=>{if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?s.createExpressionStatement(n):void 0}return e.visitEachChild(r,C,t)})(r);case 242:return(r=>{var n=r.initializer;return s.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.condition,C,e.isExpression),e.visitNode(r.incrementor,C,e.isExpression),e.visitIterationBody(r.statement,k,t))})(r);case 243:return(r=>s.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,k,t)))(r);case 244:return(r=>s.updateForOfStatement(r,e.visitNode(r.awaitModifier,C,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,k,t)))(r);case 292:return(r=>{var n,a=new e.Set;if(P(r.variableDeclaration,a),a.forEach(((t,r)=>{i.has(r)&&(n||(n=new e.Set(i)),n.delete(r))})),n){var o=i;i=n;var s=e.visitEachChild(r,k,t);return i=o,s}return e.visitEachChild(r,k,t)})(r);case 235:case 249:case 263:case 289:case 290:case 252:case 240:case 241:case 239:case 248:case 250:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return C(r)}function A(r){return s.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function N(r){return s.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function w(r){return s.updateFunctionExpression(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function F(r){return s.updateArrowFunction(r,e.visitNodes(r.modifiers,C,e.isModifier),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function P(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||P(o,r)}}function I(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(L)}function O(t,r){!(t=>{e.forEach(t.declarations,M)})(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(s.converters.convertToAssignmentElementTarget(t.declarations[0].name),C,e.isExpression):void 0:s.inlineExpressions(e.map(n,R))}function M(t){var r=t.name;if(e.isIdentifier(r))d(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||M(a)}}function R(t){var r=e.setSourceMapRange(s.createAssignment(s.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,C,e.isExpression)}function L(t){var r=t.name;if(e.isIdentifier(r))return i.has(r.escapedText);for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)&&L(o))return!0}return!1}function B(d){l();var _=e.getOriginalNode(d,e.isFunctionLike).type,f=m<2?(t=>{var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}})(_):void 0,g=214===d.kind,y=0!=(8192&p.getNodeCheckFlags(d)),v=i;i=new e.Set;for(var b=0,x=d.parameters;b<x.length;b++)P(x[b],i);var E,D=a,T=o;if(g||(a=new e.Set,o=!1),g){var k=c().createAwaiterHelper(S(),y,f,j(d.body)),A=u();e.some(A)?(O=s.converters.convertToFunctionBlock(k),E=s.updateBlock(O,e.setTextRange(s.createNodeArray(e.concatenate(A,O.statements)),O.statements))):E=k}else{var N=[],w=s.copyPrologue(d.body.statements,N,!1,C);N.push(s.createReturnStatement(c().createAwaiterHelper(S(),y,f,j(d.body,w)))),e.insertStatementsAfterStandardPrologue(N,u());var F=m>=2&&6144&p.getNodeCheckFlags(d);if(F&&(0==(1&r)&&(r|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237)),a.size)){var I=n(s,p,d,a);h[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(N,[I])}var O=s.createBlock(N,!0);e.setTextRange(O,d.body),F&&o&&(4096&p.getNodeCheckFlags(d)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(d)&&e.addEmitHelper(O,e.asyncSuperHelper)),E=O}return i=v,g||(a=D,o=T),E}function j(t,r){return e.isBlock(t)?s.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):s.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function U(t){return 106===t.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),t.name),t):t}function V(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&g?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n})(p),(e=>{var t,r;!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(e=>{e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"})(r||(r={})),e.transformES2018=t=>{var r=t.factory,n=t.getEmitHelperFactory,i=t.resumeLexicalEnvironment,a=t.endLexicalEnvironment,o=t.hoistVariableDeclaration,s=t.getEmitResolver(),c=t.getCompilerOptions(),l=e.getEmitScriptTarget(c),u=t.onEmitNode;t.onEmitNode=(t,r,n)=>{if(1&p&&(e=>{var t=e.kind;return 257===t||171===t||169===t||172===t||173===t})(r)){var i=6144&s.getNodeCheckFlags(r);if(i!==x){var a=x;return x=i,u(t,r,n),void(x=a)}}else if(p&&S[e.getNodeId(r)])return a=x,x=0,u(t,r,n),void(x=a);u(t,r,n)};var d=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=d(t,n),1===t&&x?(t=>{switch(t.kind){case 206:return X(t);case 207:return Y(t);case 208:return(t=>{var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?X(n):Y(n);return r.createCallExpression(r.createPropertyAccessExpression(i,"call"),void 0,f([r.createThis()],t.arguments,!0))}return t})(t)}return t})(n):n);var p,_,m,g,h,y,v,b=!1,x=0,E=0,S=[];return e.chainBundle(t,(n=>{if(n.isDeclarationFile)return n;g=n;var i=(n=>{var i=D(2,e.isEffectiveStrictModeSourceFile(n,c)?0:1);b=!1;var a=e.visitEachChild(n,k,t),o=e.concatenate(a.statements,h&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(h))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return T(i),s})(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,h=void 0,i}));function D(e,t){var r=E;return E=3&(E&~e|t),r}function T(e){E=e}function C(t){h=e.append(h,r.createVariableDeclaration(t))}function k(e){return P(e,!1)}function A(e){return P(e,!0)}function N(e){if(131!==e.kind)return e}function w(e,t,r,n){if(((e,t)=>E!==(E&~e|t))(r,n)){var i=D(r,n),a=e(t);return T(i),a}return e(t)}function F(r){return e.visitEachChild(r,k,t)}function P(i,a){if(0==(128&i.transformFlags))return i;switch(i.kind){case 218:return(i=>2&_&&1&_?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,k,e.isExpression))),i),i):e.visitEachChild(i,k,t))(i);case 224:return(i=>{if(2&_&&1&_){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),k,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,R(i.expression?e.visitNode(i.expression,k,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,k,t)})(i);case 247:return(n=>2&_&&1&_?r.updateReturnStatement(n,R(n.expression?e.visitNode(n.expression,k,e.isExpression):r.createVoidZero())):e.visitEachChild(n,k,t))(i);case 250:return(n=>{if(2&_){var i=e.unwrapInnermostStatementOfLabel(n);return 244===i.kind&&i.awaitModifier?M(i,n):r.restoreEnclosingLabel(e.visitNode(i,k,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,k,t)})(i);case 205:return(i=>{if(32768&i.transformFlags){var a=(t=>{for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(298===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,k,e.isExpression))}else n=e.append(n,296===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,k,e.isExpression)):e.visitNode(s,k,e.isObjectLiteralElementLike))}return n&&i.push(r.createObjectLiteralExpression(n)),i})(i.properties);a.length&&205!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,k,t)})(i);case 221:return((n,i)=>e.isDestructuringAssignment(n)&&32768&n.left.transformFlags?e.flattenDestructuringAssignment(n,k,t,1,!i):27===n.operatorToken.kind?r.updateBinaryExpression(n,e.visitNode(n.left,A,e.isExpression),n.operatorToken,e.visitNode(n.right,i?A:k,e.isExpression)):e.visitEachChild(n,k,t))(i,a);case 351:return((n,i)=>{if(i)return e.visitEachChild(n,A,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?A:k,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,l)})(i,a);case 292:return(n=>{if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&32768&n.variableDeclaration.name.transformFlags){var i=r.getGeneratedNameForNode(n.variableDeclaration.name),a=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,i),o=e.flattenDestructuringBinding(a,k,t,1),s=e.visitNode(n.block,k,e.isBlock);return e.some(o)&&(s=r.updateBlock(s,f([r.createVariableStatement(void 0,o)],s.statements,!0))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,i,void 0,void 0,void 0),s)}return e.visitEachChild(n,k,t)})(i);case 237:return(r=>{if(e.hasSyntacticModifier(r,1)){var n=b;b=!0;var i=e.visitEachChild(r,k,t);return b=n,i}return e.visitEachChild(r,k,t)})(i);case 254:return(e=>{if(b){var t=b;b=!1;var r=I(e,!0);return b=t,r}return I(e,!1)})(i);case 240:case 241:case 243:return w(F,i,0,2);case 244:return M(i,void 0);case 242:return w(O,i,0,2);case 217:return(r=>e.visitEachChild(r,A,t))(i);case 171:return w(U,i,2,1);case 169:return w(z,i,2,1);case 172:return w(V,i,2,1);case 173:return w(K,i,2,1);case 256:return w(W,i,2,1);case 213:return w(H,i,2,1);case 214:return w(J,i,2,0);case 164:return B(i);case 238:return(r=>e.visitEachChild(r,A,t))(i);case 212:return((r,n)=>e.visitEachChild(r,n?A:k,t))(i,a);case 210:return(r=>e.processTaggedTemplateExpression(t,r,k,g,C,e.ProcessLevel.LiftRestriction))(i);case 206:return y&&e.isPropertyAccessExpression(i)&&106===i.expression.kind&&y.add(i.name.escapedText),e.visitEachChild(i,k,t);case 207:return y&&106===i.expression.kind&&(v=!0),e.visitEachChild(i,k,t);case 257:case 226:return w(F,i,2,1);default:return e.visitEachChild(i,k,t)}}function I(r,n){return e.isBindingPattern(r.name)&&32768&r.name.transformFlags?e.flattenDestructuringBinding(r,k,t,1,void 0,n):e.visitEachChild(r,k,t)}function O(n){return r.updateForStatement(n,e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.condition,k,e.isExpression),e.visitNode(n.incrementor,A,e.isExpression),e.visitIterationBody(n.statement,k,t))}function M(i,a){var s=D(0,2);32768&i.initializer.transformFlags&&(i=(t=>{var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t})(i));var c=i.awaitModifier?((i,a,s)=>{var c=e.visitNode(i.expression,k,e.isExpression),l=e.isIdentifier(c)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),u=e.isIdentifier(c)?r.getGeneratedNameForNode(l):r.createTempVariable(void 0),d=r.createUniqueName("e"),p=r.getGeneratedNameForNode(d),_=r.createTempVariable(void 0),f=e.setTextRange(n().createAsyncValuesHelper(c),i.expression),m=r.createCallExpression(r.createPropertyAccessExpression(l,"next"),void 0,[]),g=r.createPropertyAccessExpression(u,"done"),h=r.createPropertyAccessExpression(u,"value"),y=r.createFunctionCallCall(_,l,[]);o(d),o(_);var v=2&s?r.inlineExpressions([r.createAssignment(d,r.createVoidZero()),f]):f,b=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(l,void 0,void 0,v),i.expression),r.createVariableDeclaration(u)]),i.expression),2097152),r.createComma(r.createAssignment(u,R(m)),r.createLogicalNot(g)),void 0,((n,i)=>{var a,o,s=e.createForOfBindingStatement(r,n.initializer,i),c=[e.visitNode(s,k,e.isStatement)],l=e.visitIterationBody(n.statement,k,t);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(c),o),!0),a),432)})(i,h)),i),256);return e.setOriginalNode(b,i),r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(b,a)]),r.createCatchClause(r.createVariableDeclaration(p),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(d,r.createObjectLiteralExpression([r.createPropertyAssignment("error",p)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(u,r.createLogicalNot(g)),r.createAssignment(_,r.createPropertyAccessExpression(l,"return"))),r.createExpressionStatement(R(y))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(d,r.createThrowStatement(r.createPropertyAccessExpression(d,"error"))),1)]),1))]))})(i,a,s):r.restoreEnclosingLabel(e.visitEachChild(i,k,t),a);return T(s),c}function R(e){return 1&_?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function L(t){return e.Debug.assertNode(t,e.isParameter),B(t)}function B(n){return(null==m?void 0:m.has(n))?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.isBindingPattern(n.name)?r.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):32768&n.transformFlags?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,k,e.isExpression)):e.visitEachChild(n,k,t)}function j(t){for(var r,n=0,i=t.parameters;n<i.length;n++){var a=i[n];r?r.add(a):32768&a.transformFlags&&(r=new e.Set)}return r}function U(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateConstructorDeclaration(n,void 0,n.modifiers,e.visitParameterList(n.parameters,L,t),G(n));return _=i,m=a,o}function V(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateGetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,k,e.isPropertyName),e.visitParameterList(n.parameters,L,t),void 0,G(n));return _=i,m=a,o}function K(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateSetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,k,e.isPropertyName),e.visitParameterList(n.parameters,L,t),G(n));return _=i,m=a,o}function z(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateMethodDeclaration(n,void 0,1&_?e.visitNodes(n.modifiers,N,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,e.visitNode(n.name,k,e.isPropertyName),e.visitNode(void 0,k,e.isToken),void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?$(n):G(n));return _=i,m=a,o}function W(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateFunctionDeclaration(n,void 0,1&_?e.visitNodes(n.modifiers,N,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?$(n):G(n));return _=i,m=a,o}function J(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,L,t),void 0,n.equalsGreaterThanToken,G(n));return _=i,m=a,o}function H(n){var i=_,a=m;_=e.getFunctionFlags(n),m=j(n);var o=r.updateFunctionExpression(n,1&_?e.visitNodes(n.modifiers,N,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&_&&1&_?$(n):G(n));return _=i,m=a,o}function $(o){i();var c=[],u=r.copyPrologue(o.body.statements,c,!1,k);q(c,o);var d=y,_=v;y=new e.Set,v=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),o.name&&r.getGeneratedNameForNode(o.name),void 0,[],void 0,r.updateBlock(o.body,e.visitLexicalEnvironment(o.body.statements,k,t,u))),!!(1&E))),m=l>=2&&6144&s.getNodeCheckFlags(o);if(m){0==(1&p)&&(p|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237));var g=e.createSuperAccessVariableStatement(r,s,o,y);S[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(c,[g])}c.push(f),e.insertStatementsAfterStandardPrologue(c,a());var h=r.updateBlock(o.body,c);return m&&v&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=d,v=_,h}function G(t){var n;i();var o=0,s=[],c=null!==(n=e.visitNode(t.body,k,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(o=r.copyPrologue(c.statements,s,!1,k)),e.addRange(s,q(void 0,t));var l=a();if(o>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(o)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function q(n,i){for(var a=!1,o=0,s=i.parameters;o<s.length;o++){var c=s[o];if(a){if(e.isBindingPattern(c.name)){if(c.name.elements.length>0){var l=e.flattenDestructuringBinding(c,k,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),_=e.visitNode(c.initializer,k,e.isExpression),f=r.createAssignment(p,_);d=r.createExpressionStatement(f),e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){p=r.cloneNode(c.name),e.setTextRange(p,c.name),e.setEmitFlags(p,48),_=e.visitNode(c.initializer,k,e.isExpression),e.addEmitFlags(_,1584),f=r.createAssignment(p,_),e.setTextRange(f,c),e.setEmitFlags(f,1536);var m=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(m,c),e.setEmitFlags(m,1953);var g=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(g,m),e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else 32768&c.transformFlags&&(a=!0,l=e.flattenDestructuringBinding(c,k,t,1,r.getGeneratedNameForNode(c),!1,!0),e.some(l)&&(u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u),e.setEmitFlags(d,1048576),n=e.append(n,d)))}return n}function X(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function Y(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&x?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}})(p),(e=>{e.transformES2019=t=>{var r=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,n,t)));function n(i){if(0==(64&i.transformFlags))return i;switch(i.kind){case 292:return(i=>i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock)))(i);default:return e.visitEachChild(i,n,t)}}}})(p),(e=>{e.transformES2020=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(32&a.transformFlags))return a;switch(a.kind){case 208:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 206:case 207:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 221:return 60===a.operatorToken.kind?(t=>{var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)})(a):e.visitEachChild(a,i,t);case 215:return(t=>e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression)))(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 212:return a(t,s,l);case 206:case 207:return((t,a,o)=>{if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=206===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l})(t,s,l);case 208:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=(t=>{e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}})(t),u=c.expression,d=c.chain,p=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,m=r.restoreOuterExpressions(u,f,8);e.isSimpleCopiableExpression(f)||(f=r.createTempVariable(n),m=r.createAssignment(f,m));for(var g,h=f,y=0;y<d.length;y++){var v=d[y];switch(v.kind){case 206:case 207:y===d.length-1&&a&&(e.isSimpleCopiableExpression(h)?g=h:(g=r.createTempVariable(n),h=r.createAssignment(g,h))),h=206===v.kind?r.createPropertyAccessExpression(h,e.visitNode(v.name,i,e.isIdentifier)):r.createElementAccessExpression(h,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 208:0===y&&_?(e.isGeneratedIdentifier(_)||(_=r.cloneNode(_),e.addEmitFlags(_,1536)),h=r.createFunctionCallCall(h,106===_.kind?r.createThis():_,e.visitNodes(v.arguments,i,e.isExpression))):h=r.createCallExpression(h,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(h,v)}var b=o?r.createConditionalExpression(l(m,f,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(h)):r.createConditionalExpression(l(m,f,!0),void 0,r.createVoidZero(),void 0,h);return e.setTextRange(b,t),g?r.createSyntheticReferenceExpression(b,g):b}function l(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}})(p),(e=>{e.transformES2021=t=>{var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(16&a.transformFlags))return a;switch(a.kind){case 221:var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return(t=>{var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),d=u?s.expression:n.createTempVariable(r),p=u?s.expression:n.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(d,s.name),s=n.createPropertyAccessExpression(p,s.name);else{var _=e.isSimpleCopiableExpression(s.argumentExpression),f=_?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(d,f),s=n.createElementAccessExpression(p,_?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,l)))})(o);default:return e.visitEachChild(a,i,t)}}}})(p),(e=>{e.transformESNext=t=>{return e.chainBundle(t,(n=>n.isDeclarationFile?n:e.visitEachChild(n,r,t)));function r(n){return 0==(4&n.transformFlags)?n:e.visitEachChild(n,r,t)}}})(p),(e=>{e.transformJsx=r=>{var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(t=>{if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,u,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,d=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<d.length;l++){var p=d[l],_=p[0],f=p[1];if(e.isExternalModule(t)){var m=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(_),void 0);e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}else if(e.isExternalOrCommonJsModule(t)){var g=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.values()),(e=>a.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(_)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=new e.Map);var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=new e.Map,i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_".concat(t),112),d=a.createImportSpecifier(!1,a.createIdentifier(t),u);return u.generatedImportReference=d,l.set(t,d),u}function u(t){return 2&t.transformFlags?(t=>{switch(t.kind){case 278:return _(t,!1);case 279:return f(t,!1);case 282:return m(t,!1);case 288:return N(t);default:return e.visitEachChild(t,u,r)}})(t):t}function d(t){switch(t.kind){case 11:return(t=>{var r=(t=>{for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=C(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?C(r,t.substr(n)):r})(t.text);return void 0===r?void 0:a.createStringLiteral(r)})(t);case 288:return N(t);case 278:return _(t,!0);case 279:return f(t,!0);case 282:return m(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function p(t){return void 0===i.importSpecifier||(t=>{for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1})(t)}function _(e,t){return(p(e.openingElement)?v:h)(e.openingElement,e.children,t,e)}function f(e,t){return(p(e)?v:h)(e,void 0,t,e)}function m(e,t){return(void 0===i.importSpecifier?x:b)(e.openingFragment,e.children,t,e)}function g(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)&&!r[0].dotDotDotToken){var n=d(r[0]);return n&&a.createPropertyAssignment("children",n)}var i=e.mapDefined(t,d);return e.length(i)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(i)):void 0}function h(t,r,n,i){var o=A(t),s=r&&r.length?g(r):void 0,c=e.find(t.attributes.properties,(t=>!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText)),l=c?e.filter(t.attributes.properties,(e=>e!==c)):t.attributes.properties;return y(o,e.length(l)?E(l,s):a.createObjectLiteralExpression(s?[s]:e.emptyArray),c,r||e.emptyArray,n,i)}function y(t,r,i,o,u,d){var p,_=e.getSemanticJsxChildren(o),f=e.length(_)>1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),m=[t,r];if(i&&m.push(T(i.initializer)),5===s.jsx){var g=e.getOriginalNode(n);if(g&&e.isSourceFile(g)){void 0===i&&m.push(a.createVoidZero()),m.push(f?a.createTrue():a.createFalse());var h=e.getLineAndCharacterOfPosition(g,d.pos);m.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(h.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(h.character+1))])),m.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression((e=>l((e=>5===s.jsx?"jsxDEV":e?"jsxs":"jsx")(e)))(f),void 0,m),d);return u&&e.startOnNewLine(y),y}function v(t,o,c,u){var p=A(t),_=t.attributes.properties,f=e.length(_)?E(_):a.createNull(),m=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),g=e.createExpressionForJsxElement(a,m,p,f,e.mapDefined(o,d),u);return c&&e.startOnNewLine(g),g}function b(e,t,r,n){var i;if(t&&t.length){var o=(e=>{var t=g(e);return t&&a.createObjectLiteralExpression([t])})(t);o&&(i=o)}return y(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function x(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(l),l}function E(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>e.map(t,(t=>{return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,u,e.isExpression))):D(t);var n})))));return r&&n.push(r),n})(t,r)):((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,D)))));return e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression()),r&&n.push(a.createObjectLiteralExpression([r])),e.singleOrUndefined(n)||o().createAssignHelper(n)})(t,r)}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function D(t){var r=(t=>{var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)})(t),n=T(t.initializer);return a.createPropertyAssignment(r,n)}function T(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=k(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}return 288===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function C(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((r,n,i,a,o,s,c)=>{if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function A(t){if(278===t.kind)return A(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){var r=e.visitNode(t.expression,u,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(p),(e=>{e.transformES2016=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(512&a.transformFlags))return a;switch(a.kind){case 221:return(a=>{switch(a.operatorToken.kind){case 67:return(t=>{var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)})(a);case 42:return(t=>{var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)})(a);default:return e.visitEachChild(a,i,t)}})(a);default:return e.visitEachChild(a,i,t)}}}})(p),(e=>{var t,r,n,i,a,o;function s(e,t){return{kind:e,expression:t}}!(e=>{e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"})(t||(t={})),(e=>{e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"})(r||(r={})),(e=>{e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"})(n||(n={})),(e=>{e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"})(i||(i={})),(e=>{e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(a||(a={})),(e=>{e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"})(o||(o={})),e.transformES2015=t=>{var r,n,i,a,o,c,l=t.factory,u=t.getEmitHelperFactory,d=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),h=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function b(t){a=e.append(a,l.createVariableDeclaration(t))}return t.onEmitNode=(t,r,n)=>{if(1&c&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void E(i,0,0)}v(t,r,n)},t.onSubstituteNode=(t,r)=>(r=y(t,r),1===t?(t=>{switch(t.kind){case 79:return(t=>{if(2&c&&!e.isInternalName(t)){var r=h.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!((t,r)=>{var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1})(r,t)))return e.setTextRange(l.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t})(t);case 108:return(t=>1&c&&16&i?e.setTextRange(l.createUniqueName("_this",48),t):t)(t)}return t})(r):e.isIdentifier(r)?(t=>{if(2&c&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&(e=>{switch(e.parent.kind){case 203:case 257:case 260:case 254:return e.parent.name===e&&h.isDeclarationWithCollidingName(e.parent)}return!1})(r))return e.setTextRange(l.getGeneratedNameForNode(r),t)}return t})(r):r),e.chainBundle(t,(o=>{if(o.isDeclarationFile)return o;r=o,n=o.text;var s=(t=>{var r=x(8064,64),n=[],i=[];d();var o=l.copyPrologue(t.statements,n,!1,T);return e.addRange(i,e.visitNodes(t.statements,T,e.isStatement,o)),a&&i.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(a))),l.mergeLexicalEnvironment(n,_()),V(n,t),E(r,0,0),l.updateSourceFile(t,e.setTextRange(l.createNodeArray(e.concatenate(n,i)),t.statements))})(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s}));function x(e,t){var r=i;return i=32767&(i&~e|t),r}function E(e,t,r){i=-32768&(i&~t|r)|e}function S(e){return 0!=(8192&i)&&247===e.kind&&!e.expression}function D(t){return 0!=(1024&t.transformFlags)||void 0!==o||8192&i&&(t=>2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t)))(t)||e.isIterationStatement(t,!1)&&fe(t)||0!=(33554432&e.getEmitFlags(t))}function T(e){return D(e)?N(e,!1):e}function C(e){return D(e)?N(e,!0):e}function k(t){if(D(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=N(t,!1);return E(n,98304,0),i}return N(t,!1)}return t}function A(e){return 106===e.kind?Ie(!0):T(e)}function N(n,a){switch(n.kind){case 124:return;case 257:return(t=>{var r=l.createVariableDeclaration(l.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=l.createVariableStatement(void 0,l.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?l.createExportDefault(l.getLocalName(t)):l.createExternalModuleExport(l.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(l.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)})(n);case 226:return(e=>P(e))(n);case 164:return(t=>t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,l.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t)(n);case 256:return(r=>{var n=o;o=void 0;var a=x(32670,65),s=e.visitParameterList(r.parameters,T,t),c=q(r),u=32768&i?l.getLocalName(r):r.name;return E(a,98304,0),o=n,l.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)})(n);case 214:return(r=>{8192&r.transformFlags&&!(16384&i)&&(i|=65536);var n=o;o=void 0;var a=x(15232,66),s=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,q(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),E(a,0,0),o=n,s})(n);case 213:return(r=>{var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,T,t),c=q(r),u=32768&i?l.getLocalName(r):r.name;return E(n,98304,0),o=a,l.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)})(n);case 254:return Q(n);case 79:return F(n);case 255:return(r=>{if(3&r.flags||262144&r.transformFlags){3&r.flags&&Oe();var n=e.flatMap(r.declarations,1&r.flags?Y:Q),i=l.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,(t=>{for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)})(n)),i}return e.visitEachChild(r,T,t)})(n);case 249:return(r=>{if(void 0!==o){var n=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,T,t);return o.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,T,t)})(n);case 263:return(r=>{var n=x(7104,0),i=e.visitEachChild(r,T,t);return E(n,0,0),i})(n);case 235:return((r,n)=>{var a=256&i?x(7104,512):x(6976,128),o=e.visitEachChild(r,T,t);return E(a,0,0),o})(n);case 246:case 245:return(r=>{if(o){var n=246===r.kind?2:4;if(!(r.label&&o.labels&&o.labels.get(e.idText(r.label))||!r.label&&o.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?246===r.kind?(i="break-".concat(a.escapedText),xe(o,!0,e.idText(a),i)):(i="continue-".concat(a.escapedText),xe(o,!1,e.idText(a),i)):246===r.kind?(o.nonLocalJumps|=2,i="break"):(o.nonLocalJumps|=4,i="continue");var s=l.createStringLiteral(i);if(o.loopOutParameters.length){for(var c=o.loopOutParameters,u=void 0,d=0;d<c.length;d++){var p=ve(c[d],1);u=0===d?p:l.createBinaryExpression(u,27,p)}s=l.createBinaryExpression(u,27,s)}return l.createReturnStatement(s)}}return e.visitEachChild(r,T,t)})(n);case 250:return(t=>{o&&!o.labels&&(o.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,o&&Z);return e.isIterationStatement(r,!1)?((e,t)=>{switch(e.kind){case 240:case 241:return re(e,t);case 242:return ne(e,t);case 243:return ie(e,t);case 244:return ae(e,t)}})(r,t):l.restoreEnclosingLabel(e.visitNode(r,T,e.isStatement,l.liftToBlock),t,o&&ee)})(n);case 240:case 241:return re(n,void 0);case 242:return ne(n,void 0);case 243:return ie(n,void 0);case 244:return ae(n,void 0);case 238:return(r=>e.visitEachChild(r,C,t))(n);case 205:return(r=>{for(var n=r.properties,a=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(524288&c.transformFlags&&4&i||(o=162===e.Debug.checkDefined(c.name).kind)){a=s;break}}if(a<0)return e.visitEachChild(r,T,t);var u=l.createTempVariable(m),d=[],p=l.createAssignment(u,e.setEmitFlags(l.createObjectLiteralExpression(e.visitNodes(n,T,e.isObjectLiteralElementLike,0,a),r.multiLine),o?65536:0));return r.multiLine&&e.startOnNewLine(p),d.push(p),((t,r,n,i)=>{for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 172:case 173:var l=e.getAllAccessorDeclarations(r.properties,c);c===l.firstAccessor&&t.push($(n,l,r,!!r.multiLine));break;case 169:t.push(Ce(c,n,r,r.multiLine));break;case 296:t.push(De(c,n,r.multiLine));break;case 297:t.push(Te(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}})(d,r,u,a),d.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(l.cloneNode(u),u),u.parent)):u),l.inlineExpressions(d)})(n);case 292:return(r=>{var n,i,a,o,s=x(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var c=l.createTempVariable(void 0),u=l.createVariableDeclaration(c);e.setTextRange(u,r.variableDeclaration);var d=e.flattenDestructuringBinding(r.variableDeclaration,T,t,0,c),p=l.createVariableDeclarationList(d);e.setTextRange(p,r.variableDeclaration);var _=l.createVariableStatement(void 0,p);n=l.updateCatchClause(r,u,(i=r.block,a=_,o=e.visitNodes(i.statements,T,e.isStatement),l.updateBlock(i,f([a],o,!0))))}else n=e.visitEachChild(r,T,t);return E(s,0,0),n})(n);case 297:return(t=>e.setTextRange(l.createPropertyAssignment(t.name,F(l.cloneNode(t.name))),t))(n);case 162:return(r=>e.visitEachChild(r,T,t))(n);case 204:return(r=>e.some(r.elements,e.isSpreadElement)?Ae(r.elements,!1,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,T,t))(n);case 208:return(t=>{if(33554432&e.getEmitFlags(t))return(t=>{var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=t=>e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer,i=o;o=void 0;var a=e.visitNodes(r.statements,k,e.isStatement);o=i;var s=e.filter(a,n),c=e.filter(a,(e=>!n(e))),u=e.cast(e.first(s),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(u.initializer),p=e.tryCast(d,e.isAssignmentExpression);!p&&e.isBinaryExpression(d)&&27===d.operatorToken.kind&&(p=e.tryCast(d.left,e.isAssignmentExpression));var _=e.cast(p?e.skipOuterExpressions(p.right):d,e.isCallExpression),f=e.cast(e.skipOuterExpressions(_.expression),e.isFunctionExpression),m=f.body.statements,g=0,h=-1,y=[];if(p){var v=e.tryCast(m[g],e.isExpressionStatement);v&&(y.push(v),g++),y.push(m[g]),g++,y.push(l.createExpressionStatement(l.createAssignment(p.left,e.cast(u.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(m,h));)h--;return e.addRange(y,m,g,h),h<-1&&e.addRange(y,m,h+1),e.addRange(y,c),e.addRange(y,s,1),l.restoreOuterExpressions(t.expression,l.restoreOuterExpressions(u.initializer,l.restoreOuterExpressions(p&&p.right,l.updateCallExpression(_,l.restoreOuterExpressions(_.expression,l.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,l.updateBlock(f.body,y))),void 0,_.arguments))))})(t);var r=e.skipOuterExpressions(t.expression);return 106===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement)?ke(t,!0):l.updateCallExpression(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))})(n);case 209:return(r=>{if(e.some(r.arguments,e.isSpreadElement)){var n=l.createCallBinding(l.createPropertyAccessExpression(r.expression,"bind"),m),i=n.target,a=n.thisArg;return l.createNewExpression(l.createFunctionApplyCall(e.visitNode(i,T,e.isExpression),a,Ae(l.createNodeArray(f([l.createVoidZero()],r.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(r,T,t)})(n);case 212:return((r,n)=>e.visitEachChild(r,n?C:T,t))(n,a);case 221:return X(n,a);case 351:return((r,n)=>{if(n)return e.visitEachChild(r,C,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?C:T,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(l.createNodeArray(i),r.elements):r.elements;return l.updateCommaListExpression(r,c)})(n,a);case 14:case 15:case 16:case 17:return(t=>e.setTextRange(l.createStringLiteral(t.text),t))(n);case 10:return(t=>t.hasExtendedUnicodeEscape?e.setTextRange(l.createStringLiteral(t.text),t):t)(n);case 8:return(t=>384&t.numericLiteralFlags?e.setTextRange(l.createNumericLiteral(t.text),t):t)(n);case 210:return(n=>e.processTaggedTemplateExpression(t,n,T,r,b,e.ProcessLevel.All))(n);case 223:return(t=>{for(var r=l.createStringLiteral(t.head.text),n=0,i=t.templateSpans;n<i.length;n++){var a=i[n],o=[e.visitNode(a.expression,T,e.isExpression)];a.literal.text.length>0&&o.push(l.createStringLiteral(a.literal.text)),r=l.createCallExpression(l.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)})(n);case 224:return(r=>e.visitEachChild(r,T,t))(n);case 225:return(t=>e.visitNode(t.expression,T,e.isExpression))(n);case 106:return Ie(!1);case 108:return(e=>(2&i&&!(16384&i)&&(i|=65536),o?2&i?(o.containsLexicalThis=!0,e):o.thisName||(o.thisName=l.createUniqueName("this")):e))(n);case 231:return(e=>103===e.keywordToken&&"target"===e.name.escapedText?(i|=32768,l.createUniqueName("_newTarget",48)):e)(n);case 169:return(t=>{e.Debug.assert(!e.isComputedPropertyName(t.name));var r=G(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(l.createPropertyAssignment(t.name,r),t)})(n);case 172:case 173:return(r=>{e.Debug.assert(!e.isComputedPropertyName(r.name));var n=o;o=void 0;var i,a=x(32670,65),s=e.visitParameterList(r.parameters,T,t),c=q(r);return i=172===r.kind?l.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,r.type,c):l.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,c),E(a,98304,0),o=n,i})(n);case 237:return(r=>{var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(o&&0==(3&r.declarationList.flags)&&!(t=>1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer)))(r)){for(var a=void 0,s=0,c=r.declarationList.declarations;s<c.length;s++){var u=c[s];if(ge(o,u),u.initializer){var d=void 0;e.isBindingPattern(u.name)?d=e.flattenDestructuringAssignment(u,T,t,0):(d=l.createBinaryExpression(u.name,63,e.visitNode(u.initializer,T,e.isExpression)),e.setTextRange(d,u)),a=e.append(a,d)}}n=a?e.setTextRange(l.createExpressionStatement(l.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,T,t);return E(i,0,0),n})(n);case 247:return(r=>o?(o.nonLocalJumps|=8,S(r)&&(r=w(r)),l.createReturnStatement(l.createObjectLiteralExpression([l.createPropertyAssignment(l.createIdentifier("value"),r.expression?e.visitNode(r.expression,T,e.isExpression):l.createVoidZero())]))):S(r)?w(r):e.visitEachChild(r,T,t))(n);case 217:return(r=>e.visitEachChild(r,C,t))(n);default:return e.visitEachChild(n,T,t)}}function w(t){return e.setOriginalNode(l.createReturnStatement(l.createUniqueName("_this",48)),t)}function F(e){return o&&h.isArgumentsLocalBinding(e)?o.argumentsName||(o.argumentsName=l.createUniqueName("arguments")):e}function P(a){a.name&&Oe();var s=e.getClassExtendsHeritageElement(a),c=l.createFunctionExpression(void 0,void 0,void 0,void 0,s?[l.createParameterDeclaration(void 0,void 0,void 0,l.createUniqueName("_super",48))]:[],void 0,((a,s)=>{var c=[],m=l.getInternalName(a),g=e.isIdentifierANonContextualKeyword(m)?l.getGeneratedNameForNode(m):m;d(),((t,r,n)=>{n&&t.push(e.setTextRange(l.createExpressionStatement(u().createExtendsHelper(l.getInternalName(r))),n))})(c,a,s),((r,n,a,s)=>{var c=o;o=void 0;var u=x(32662,73),d=e.getFirstConstructorWithBody(n),m=((t,r)=>{if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||238!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||208!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||225!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText})(d,void 0!==s),g=l.createFunctionDeclaration(void 0,void 0,void 0,a,void 0,((r,n)=>e.visitParameterList(r&&!n?r.parameters:void 0,T,t)||[])(d,m),void 0,((t,r,n,a)=>{var o=!!n&&104!==e.skipOuterExpressions(n.expression).kind;if(!t)return((t,r)=>{var n=[];p(),l.mergeLexicalEnvironment(n,_()),r&&n.push(l.createReturnStatement(M()));var i=l.createNodeArray(n);e.setTextRange(i,t.members);var a=l.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a})(r,o);var s=[],c=[];p();var u,d=e.takeWhile(t.body.statements,e.isPrologueDirective),m=((t,r)=>{for(var n=r.length;n<t.length;n+=1){var i=e.getSuperCallFromStatement(t[n]);if(i)return{superCall:i,superStatementIndex:n}}return{superStatementIndex:-1}})(t.body.statements,d),g=m.superCall,h=m.superStatementIndex,y=-1===h?d.length:h+1,v=y;if(a||(v=l.copyStandardPrologue(t.body.statements,s,v,!1)),a||(v=l.copyCustomPrologue(t.body.statements,c,v,T,void 0)),a?u=M():g&&(u=(e=>ke(e,!1))(g)),u&&(i|=8192),L(s,t),U(s,t,a),e.addRange(c,e.visitNodes(t.body.statements,T,e.isStatement,v)),l.mergeLexicalEnvironment(s,_()),z(s,t,!1),o||u)if(!u||y!==t.body.statements.length||8192&t.body.transformFlags)h<=d.length?K(c,t,u||O()):(K(s,t,O()),u&&((t,r)=>{Me();var n=l.createExpressionStatement(l.createBinaryExpression(l.createThis(),63,r));e.insertStatementAfterCustomPrologue(t,n),e.setCommentRange(n,e.getOriginalNode(r).parent)})(c,u)),I(t.body)||c.push(l.createReturnStatement(l.createUniqueName("_this",48)));else{var b=e.cast(e.cast(u,e.isBinaryExpression).left,e.isCallExpression),x=l.createReturnStatement(u);e.setCommentRange(x,e.getCommentRange(b)),e.setEmitFlags(b,1536),c.push(x)}else V(s,t);var E=l.createBlock(e.setTextRange(l.createNodeArray(f(f(f(f([],d,!0),s,!0),h<=d.length?e.emptyArray:e.visitNodes(t.body.statements,T,e.isStatement,d.length,h-d.length),!0),c,!0)),t.body.statements),!0);return e.setTextRange(E,t.body),E})(d,n,s,m));e.setTextRange(g,d||n),s&&e.setEmitFlags(g,8),r.push(g),E(u,98304,0),o=c})(c,a,g,s),((t,n)=>{for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 234:t.push(W(o));break;case 169:t.push(J(Re(n,o),o,n));break;case 172:case 173:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(H(Re(n,o),s,n));break;case 171:case 170:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}})(c,a);var h=e.createTokenRange(e.skipTrivia(n,a.members.end),19),y=l.createPartiallyEmittedExpression(g);e.setTextRangeEnd(y,h.end),e.setEmitFlags(y,1536);var v=l.createReturnStatement(y);e.setTextRangePos(v,h.pos),e.setEmitFlags(v,1920),c.push(v),e.insertStatementsAfterStandardPrologue(c,_());var b=l.createBlock(e.setTextRange(l.createNodeArray(c),a.members),!0);return e.setEmitFlags(b,1536),b})(a,s));e.setEmitFlags(c,65536&e.getEmitFlags(a)|524288);var m=l.createPartiallyEmittedExpression(c);e.setTextRangeEnd(m,a.end),e.setEmitFlags(m,1536);var g=l.createPartiallyEmittedExpression(m);e.setTextRangeEnd(g,e.skipTrivia(n,a.pos)),e.setEmitFlags(g,1536);var h=l.createParenthesizedExpression(l.createCallExpression(g,void 0,s?[e.visitNode(s.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(h,3,"* @class "),h}function I(t){if(247===t.kind)return!0;if(239===t.kind){var r=t;if(r.elseStatement)return I(r.thenStatement)&&I(r.elseStatement)}else if(235===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&I(n))return!0}return!1}function O(){return e.setEmitFlags(l.createThis(),4)}function M(){return l.createLogicalOr(l.createLogicalAnd(l.createStrictInequality(l.createUniqueName("_super",48),l.createNull()),l.createFunctionApplyCall(l.createUniqueName("_super",48),O(),l.createIdentifier("arguments"))),O())}function R(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function L(t,r){if(!e.some(r.parameters,R))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=B(t,o,s,c)||n:c&&(j(t,o,s,c),n=!0))}return n}function B(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(n,T,t,0,l.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(n),e.visitNode(a,T,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,T,e.isExpression);var a=l.createIfStatement(l.createTypeCheck(l.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function U(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!((e,t)=>!(!e||!e.dotDotDotToken||t))(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?l.cloneNode(o.name):s,u=n.parameters.length-1,d=l.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var p=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(d,void 0,void 0,l.createNumericLiteral(u))]),o),e.setTextRange(l.createLessThan(d,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(d),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===u?d:l.createSubtract(d,l.createNumericLiteral(u))),l.createElementAccessExpression(l.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,T,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function V(e,t){return!!(65536&i&&214!==t.kind)&&(K(e,t,l.createThis()),!0)}function K(t,r,n){Me();var i=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function z(t,r,n){if(32768&i){var a=void 0;switch(r.kind){case 214:return t;case 169:case 172:case 173:a=l.createVoidZero();break;case 171:a=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 256:case 213:a=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),102,l.getLocalName(r))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function W(t){return e.setTextRange(l.createEmptyStatement(),t)}function J(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),u=e.visitNode(n.name,T,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?l.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=l.createObjectDefinePropertyCall(r,d,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(l,r,u,n.name);a=l.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(l.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function H(t,r,n){var i=l.createExpressionStatement($(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function $(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.visitNode(a.name,T,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(l,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var _=G(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=l.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var m=G(s,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var g=l.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var h=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,d,l.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(h),h}function G(r,n,a,s){var c=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.isStatic(r)?x(32670,73):x(32670,65),d=e.visitParameterList(r.parameters,T,t),p=q(r);return 32768&i&&!a&&(256===r.kind||213===r.kind)&&(a=l.getGeneratedNameForNode(r)),E(u,98304,0),o=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,r.asteriskToken,a,void 0,d,void 0,p),n),r)}function q(t){var n,i,a,o=!1,s=!1,c=[],u=[],d=t.body;if(p(),e.isBlock(d)&&(a=l.copyStandardPrologue(d.statements,c,0,!1),a=l.copyCustomPrologue(d.statements,u,a,T,e.isHoistedFunction),a=l.copyCustomPrologue(d.statements,u,a,T,e.isHoistedVariableStatement)),o=L(u,t)||o,o=U(u,t,!1)||o,e.isBlock(d))a=l.copyCustomPrologue(d.statements,u,a,T),n=d.statements,e.addRange(u,e.visitNodes(d.statements,T,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(214===t.kind),n=e.moveRangeEnd(d,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(f,d,r)?s=!0:o=!0);var m=e.visitNode(d,T,e.isExpression),g=l.createReturnStatement(m);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),u.push(g),i=d}if(l.mergeLexicalEnvironment(c,_()),z(c,t,!1),V(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var h=l.createBlock(e.setTextRange(l.createNodeArray(u),n),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function X(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,T,t,0,!n):27===r.operatorToken.kind?l.updateBinaryExpression(r,e.visitNode(r.left,C,e.isExpression),r.operatorToken,e.visitNode(r.right,n?C:T,e.isExpression)):e.visitEachChild(r,T,t)}function Y(r){var n=r.name;return e.isBindingPattern(n)?Q(r):!r.initializer&&(e=>{var t=h.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(4096&i)&&(!h.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&i))})(r)?l.updateVariableDeclaration(r,r.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(r,T,t)}function Q(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,T,t,0,void 0,0!=(32&i)):e.visitEachChild(r,T,t),E(i,0,0),n}function Z(t){o.labels.set(e.idText(t.label),!0)}function ee(t){o.labels.set(e.idText(t.label),!1)}function te(r,n,a,s,c){var u=x(r,n),p=((r,n,a,s)=>{if(!fe(r)){var c=void 0;o&&(c=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var u=s?s(r,n,void 0,a):l.restoreEnclosingLabel(e.isForStatement(r)?(t=>l.updateForStatement(t,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,T,e.isStatement,l.liftToBlock)))(r):e.visitEachChild(r,T,t),n,o&&ee);return o&&(o.allowedNonLabeledJumps=c),u}var p=(t=>{var r;switch(t.kind){case 242:case 243:case 244:var n=t.initializer;n&&255===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=de(t)||pe(t)||_e(t),c=0,l=r.declarations;c<l.length;c++)Se(t,l[c],i,a,s);var u={loopParameters:i,loopOutParameters:a};return o&&(o.argumentsName&&(u.argumentsName=o.argumentsName),o.thisName&&(u.thisName=o.thisName),o.hoistedLocalVariables&&(u.hoistedLocalVariables=o.hoistedLocalVariables)),u})(r),f=[],m=o;o=p;var g,h,y,v,b,x=de(r)?((t,r)=>{var n=l.createUniqueName("_loop_init"),a=0!=(524288&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),a&&4&i&&(o|=262144);var s=[];return s.push(l.createVariableStatement(void 0,t.initializer)),be(r.loopOutParameters,2,1,s),{functionName:n,containsYield:a,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,a?l.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(l.createBlock(s,!0),T,e.isBlock)),o))]),2097152)),part:l.createVariableDeclarationList(e.map(r.loopOutParameters,ye))}})(r,p):void 0,E=me(r)?((t,r,n)=>{var a=l.createUniqueName("_loop");d();var o=e.visitNode(t.statement,T,e.isStatement,l.liftToBlock),s=_(),c=[];(pe(t)||_e(t))&&(r.conditionVariable=l.createUniqueName("inc"),t.incrementor?c.push(l.createIfStatement(r.conditionVariable,l.createExpressionStatement(e.visitNode(t.incrementor,T,e.isExpression)),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))):c.push(l.createIfStatement(l.createLogicalNot(r.conditionVariable),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))),pe(t)&&c.push(l.createIfStatement(l.createPrefixUnaryExpression(53,e.visitNode(t.condition,T,e.isExpression)),e.visitNode(l.createBreakStatement(),T,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),be(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var u=l.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(u,o);var p=0!=(524288&t.statement.transformFlags),f=524288;return r.containsLexicalThis&&(f|=8),p&&0!=(4&i)&&(f|=262144),{functionName:a,containsYield:p,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(a,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,p?l.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,u),f))]),2097152)),part:((t,r,n,i)=>{var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=l.createCallExpression(t,void 0,e.map(r.loopParameters,(e=>e.name))),c=i?l.createYieldExpression(l.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(l.createExpressionStatement(c)),be(r.loopOutParameters,1,0,a);else{var u=l.createUniqueName("state"),d=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(u,void 0,void 0,c)]));if(a.push(d),be(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var p=void 0;n?(n.nonLocalJumps|=8,p=l.createReturnStatement(u)):p=l.createReturnStatement(l.createPropertyAccessExpression(u,"value")),a.push(l.createIfStatement(l.createTypeCheck(u,"object"),p))}if(2&r.nonLocalJumps&&a.push(l.createIfStatement(l.createStrictEquality(u,l.createStringLiteral("break")),l.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var _=[];Ee(r.labeledNonLocalBreaks,!0,u,n,_),Ee(r.labeledNonLocalContinues,!1,u,n,_),a.push(l.createSwitchStatement(u,l.createCaseBlock(_)))}}return a})(a,r,n,p)}})(r,p,m):void 0;if(o=m,x&&f.push(x.functionDeclaration),E&&f.push(E.functionDeclaration),((e,t,r)=>{var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(l.createVariableDeclaration(t.argumentsName,void 0,void 0,l.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(l.createVariableDeclaration(t.thisName,void 0,void 0,l.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(l.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var u=c[s];n.push(l.createVariableDeclaration(u.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(l.createVariableDeclaration(t.conditionVariable,void 0,void 0,l.createFalse()))),n&&e.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(n)))})(f,p,m),x&&f.push((h=x.functionName,y=x.containsYield,v=l.createCallExpression(h,void 0,[]),b=y?l.createYieldExpression(l.createToken(41),e.setEmitFlags(v,8388608)):v,l.createExpressionStatement(b))),E)if(s)g=s(r,n,E.part,a);else{var S=he(r,x,l.createBlock(E.part,!0));g=l.restoreEnclosingLabel(S,n,o&&ee)}else{var D=he(r,x,e.visitNode(r.statement,T,e.isStatement,l.liftToBlock));g=l.restoreEnclosingLabel(D,n,o&&ee)}return f.push(g),f})(a,s,u,c);return E(u,0,0),p}function re(e,t){return te(0,1280,e,t)}function ne(e,t){return te(5056,3328,e,t)}function ie(e,t){return te(3008,5376,e,t)}function ae(e,t){return te(3008,5376,e,t,g.downlevelIteration?le:ce)}function oe(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Oe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,T,t,0,n),u=e.setTextRange(l.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(u,r.initializer),e.setSourceMapRange(u,e.createRange(c[0].pos,e.last(c).end)),a.push(l.createVariableStatement(void 0,u))}else a.push(e.setTextRange(l.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(s?s.name:l.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=l.createAssignment(o,n);e.isDestructuringAssignment(d)?a.push(l.createExpressionStatement(X(d,!0))):(e.setTextRangeEnd(d,o.end),a.push(e.setTextRange(l.createExpressionStatement(e.visitNode(d,T,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return se(e.addRange(a,i));var p=e.visitNode(r.statement,T,e.isStatement,l.liftToBlock);return e.isBlock(p)?l.updateBlock(p,e.setTextRange(l.createNodeArray(e.concatenate(a,p.statements)),p.statements)):(a.push(p),se(a))}function se(t){return e.setEmitFlags(l.createBlock(l.createNodeArray(t),!0),432)}function ce(t,r,n){var i=e.visitNode(t.expression,T,e.isExpression),a=l.createLoopVariable(),s=e.isIdentifier(i)?l.getGeneratedNameForNode(i):l.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(a,void 0,void 0,l.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(l.createLessThan(a,l.createPropertyAccessExpression(s,"length")),t.expression),e.setTextRange(l.createPostfixIncrement(a),t.expression),oe(t,l.createElementAccessExpression(s,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),l.restoreEnclosingLabel(c,r,o&&ee)}function le(t,r,n,i){var a=e.visitNode(t.expression,T,e.isExpression),s=e.isIdentifier(a)?l.getGeneratedNameForNode(a):l.createTempVariable(void 0),c=e.isIdentifier(a)?l.getGeneratedNameForNode(s):l.createTempVariable(void 0),d=l.createUniqueName("e"),p=l.getGeneratedNameForNode(d),_=l.createTempVariable(void 0),f=e.setTextRange(u().createValuesHelper(a),t.expression),g=l.createCallExpression(l.createPropertyAccessExpression(s,"next"),void 0,[]);m(d),m(_);var h=1024&i?l.inlineExpressions([l.createAssignment(d,l.createVoidZero()),f]):f,y=e.setEmitFlags(e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,h),t.expression),l.createVariableDeclaration(c,void 0,void 0,g)]),t.expression),2097152),l.createLogicalNot(l.createPropertyAccessExpression(c,"done")),l.createAssignment(c,g),oe(t,l.createPropertyAccessExpression(c,"value"),n)),t),256);return l.createTryStatement(l.createBlock([l.restoreEnclosingLabel(y,r,o&&ee)]),l.createCatchClause(l.createVariableDeclaration(p),e.setEmitFlags(l.createBlock([l.createExpressionStatement(l.createAssignment(d,l.createObjectLiteralExpression([l.createPropertyAssignment("error",p)])))]),1)),l.createBlock([l.createTryStatement(l.createBlock([e.setEmitFlags(l.createIfStatement(l.createLogicalAnd(l.createLogicalAnd(c,l.createLogicalNot(l.createPropertyAccessExpression(c,"done"))),l.createAssignment(_,l.createPropertyAccessExpression(s,"return"))),l.createExpressionStatement(l.createFunctionCallCall(_,s,[]))),1)]),void 0,e.setEmitFlags(l.createBlock([e.setEmitFlags(l.createIfStatement(d,l.createThrowStatement(l.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function ue(e){return 0!=(131072&h.getNodeCheckFlags(e))}function de(t){return e.isForStatement(t)&&!!t.initializer&&ue(t.initializer)}function pe(t){return e.isForStatement(t)&&!!t.condition&&ue(t.condition)}function _e(t){return e.isForStatement(t)&&!!t.incrementor&&ue(t.incrementor)}function fe(e){return me(e)||de(e)}function me(e){return 0!=(65536&h.getNodeCheckFlags(e))}function ge(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(79===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function he(t,r,n){switch(t.kind){case 242:return((t,r,n)=>{var i=t.condition&&ue(t.condition),a=i||t.incrementor&&ue(t.incrementor);return l.updateForStatement(t,e.visitNode(r?r.part:t.initializer,C,e.isForInitializer),e.visitNode(i?void 0:t.condition,T,e.isExpression),e.visitNode(a?void 0:t.incrementor,C,e.isExpression),n)})(t,r,n);case 243:return((t,r)=>l.updateForInStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r))(t,n);case 244:return((t,r)=>l.updateForOfStatement(t,void 0,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r))(t,n);case 240:return((t,r)=>l.updateDoStatement(t,r,e.visitNode(t.expression,T,e.isExpression)))(t,n);case 241:return((t,r)=>l.updateWhileStatement(t,e.visitNode(t.expression,T,e.isExpression),r))(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ye(e){return l.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function ve(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return l.createBinaryExpression(n,63,r)}function be(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(l.createExpressionStatement(ve(o,r)))}}function xe(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function Ee(e,t,r,n,i){e&&e.forEach(((e,a)=>{var o=[];if(!n||n.labels&&n.labels.get(a)){var s=l.createIdentifier(a);o.push(t?l.createBreakStatement(s):l.createContinueStatement(s))}else xe(n,t,a,e),o.push(l.createReturnStatement(r));i.push(l.createCaseClause(l.createStringLiteral(e),o))}))}function Se(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e.isOmittedExpression(u)||Se(t,u,n,i,a)}else{n.push(l.createParameterDeclaration(void 0,void 0,void 0,o));var d=h.getNodeCheckFlags(r);if(4194304&d||a){var p=l.createUniqueName("out_"+e.idText(o)),_=0;4194304&d&&(_|=1),e.isForStatement(t)&&(t.initializer&&h.isBindingCapturedByNode(t.initializer,r)&&(_|=2),(t.condition&&h.isBindingCapturedByNode(t.condition,r)||t.incrementor&&h.isBindingCapturedByNode(t.incrementor,r))&&(_|=1)),i.push({flags:_,originalName:o,outParamName:p})}}}function De(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),e.visitNode(t.initializer,T,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Te(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),l.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Ce(t,r,n,i){var a=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,T,e.isPropertyName)),G(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function ke(r,n){if(16384&r.transformFlags||106===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=l.createCallBinding(r.expression,m),a=i.target,o=i.thisArg;106===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&r.transformFlags?l.createFunctionApplyCall(e.visitNode(a,A,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),Ae(r.arguments,!0,!1,!1)):e.setTextRange(l.createFunctionCallCall(e.visitNode(a,A,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),e.visitNodes(r.arguments,T,e.isExpression)),r),106===r.expression.kind){var c=l.createLogicalOr(s,O());s=n?l.createAssignment(l.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,T,t)}function Ae(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,Ne,((e,t,r,o)=>t(e,n,i&&o===a))));if(1===o.length){var s=o[0];if(r&&!g.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=u(),d=0!==o[0].kind,p=d?l.createArrayLiteralExpression():o[0].expression,_=d?0:1;_<o.length;_++){var f=o[_];p=c.createSpreadArrayHelper(p,f.expression,1===f.kind&&!r)}return p}function Ne(t){return e.isSpreadElement(t)?we:Pe}function we(t){return e.map(t,Fe)}function Fe(t){var r=e.visitNode(t.expression,T,e.isExpression),n=e.isCallToHelper(r,"___read"),i=n||e.isPackedArrayLiteral(r)?2:1;return!g.downlevelIteration||1!==i||e.isArrayLiteralExpression(r)||n||(r=u().createReadHelper(r,void 0),i=2),s(i,r)}function Pe(t,r,n){return s(0,l.createArrayLiteralExpression(e.visitNodes(l.createNodeArray(t,n),T,e.isExpression),r))}function Ie(e){return 8&i&&!e?l.createPropertyAccessExpression(l.createUniqueName("_super",48),"prototype"):l.createUniqueName("_super",48)}function Oe(){0==(2&c)&&(c|=2,t.enableSubstitution(79))}function Me(){0==(1&c)&&(c|=1,t.enableSubstitution(108),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(214),t.enableEmitNotification(213),t.enableEmitNotification(256))}function Re(t,r){return e.isStatic(r)?l.getInternalName(t):l.createPropertyAccessExpression(l.getInternalName(t),"prototype")}}})(p),(e=>{e.transformES5=t=>{var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=(t,i,a)=>{switch(i.kind){case 280:case 281:case 279:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(280),t.enableEmitNotification(281),t.enableEmitNotification(279),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=(t,r)=>r.id&&n&&n[r.id]?o(t,r):(r=o(t,r),e.isPropertyAccessExpression(r)?(t=>{if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);return r?e.setTextRange(i.createElementAccessExpression(t.expression,r),t):t})(r):e.isPropertyAssignment(r)?(t=>{var r=e.isIdentifier(t.name)&&s(t.name);return r?i.updatePropertyAssignment(t,r,t.initializer):t})(r):r),t.enableSubstitution(206),t.enableSubstitution(296),e.chainBundle(t,(e=>e));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}})(p),(e=>{var t,r,n,i,a;!(e=>{e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"})(t||(t={})),(e=>{e[e.Open=0]="Open",e[e.Close=1]="Close"})(r||(r={})),(e=>{e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"})(n||(n={})),(e=>{e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"})(i||(i={})),(e=>{e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"})(a||(a={})),e.transformGenerators=t=>{var r,n,i,a,o,s,c,l,u,d,p=t.factory,_=t.getEmitHelperFactory,m=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),E=t.onSubstituteNode;t.onSubstituteNode=(t,i)=>(i=E(t,i),1===t?(t=>e.isIdentifier(t)?(t=>{if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t})(t):t)(i):i);var S,D,T,C,k,A,N,w,F,P,I,O,M=1,R=0,L=0;return e.chainBundle(t,(r=>{if(r.isDeclarationFile||0==(2048&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return a?(r=>{switch(r.kind){case 240:case 241:return(r=>a?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t))(r);case 249:return(r=>(a&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,B,t),a&&le(),r))(r);case 250:return(r=>(a&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,B,t),a&&ue(),r))(r);default:return j(r)}})(r):i?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?(t=>{switch(t.kind){case 256:return U(t);case 213:return V(t);default:return e.Debug.failBadSyntaxKind(t)}})(r):2048&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 256:return U(r);case 213:return V(r);case 172:case 173:return(r=>{var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o,r})(r);case 237:return(t=>{if(524288&t.transformFlags)G(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];y(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(a,q))),t)}})(r);case 242:return(r=>{a&&oe();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}var c=e.getInitializedVariables(n);r=p.updateForStatement(r,c.length>0?p.inlineExpressions(e.map(c,q)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);return a&&ce(),r})(r);case 243:return(r=>{a&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];y(s.name)}r=p.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);return a&&ce(),r})(r);case 246:return(r=>{if(a){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)})(r);case 245:return(r=>{if(a){var n=ge(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)})(r);case 247:return(t=>{return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n})(r);default:return 524288&r.transformFlags?(r=>{switch(r.kind){case 221:return(r=>{var n=e.getExpressionAssociativity(r);switch(n){case 0:return(r=>X(r.right)?e.isLogicalOperator(r.operatorToken.kind)?(t=>{var r=ee(),n=Z();return Ee(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Te(r,n,t.left):De(r,n,t.left),Ee(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n})(r):27===r.operatorToken.kind?z(r):p.updateBinaryExpression(r,Q(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression)):e.visitEachChild(r,B,t))(r);case 1:return(r=>{var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 206:a=p.updatePropertyAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 207:a=p.updateElementAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Q(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression(Q(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)})(r);default:return e.Debug.assertNever(n)}})(r);case 351:return(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(z(a)):(X(a)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)})(r);case 222:return(r=>{if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Te(n,e.visitNode(r.condition,B,e.isExpression),r.condition),Ee(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),Ee(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)})(r);case 224:return(t=>{var r,n=ee(),i=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?((e,t)=>{Ce(7,[e],t)})(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(_().createValuesHelper(i),t):i,t):((e,t)=>{Ce(6,[e],t)})(i,t),te(n),r=t,e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[]),r)})(r);case 204:return(e=>W(e.elements,void 0,void 0,e.multiLine))(r);case 205:return(t=>{var r=t.properties,n=t.multiLine,i=Y(r),a=Z();Ee(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,((r,i)=>{X(i)&&r.length>0&&(xe(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o)})(r);case 207:return(r=>X(r.argumentExpression)?p.updateElementAccessExpression(r,Q(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression)):e.visitEachChild(r,B,t))(r);case 208:return(r=>{if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,y,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isLeftHandSideExpression)),a,W(r.arguments)),r),r)}return e.visitEachChild(r,B,t)})(r);case 209:return(r=>{if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),y),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isExpression)),a,W(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)})(r);default:return e.visitEachChild(r,B,t)}})(r):2099200&r.transformFlags?e.visitEachChild(r,B,t):r}}function U(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,K(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o}return i?void h(r):r}function V(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,K(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,B,t),i=n,a=o}return r}function K(t){var r=[],n=i,_=a,f=o,h=s,y=c,v=l,b=u,x=d,E=M,k=S,A=D,N=T,w=C;i=!0,a=!1,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,M=1,S=void 0,D=void 0,T=void 0,C=p.createTempVariable(void 0),m();var F=p.copyPrologue(t.statements,r,!1,B);J(t.statements,F);var P=ke();return e.insertStatementsAfterStandardPrologue(r,g()),r.push(p.createReturnStatement(P)),i=n,a=_,o=f,s=h,c=y,l=v,u=b,d=x,M=E,S=k,D=A,T=N,C=w,e.setTextRange(p.createBlock(r,t.multiLine),t)}function z(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function W(t,r,n,i){var a,o=Y(t);if(o>0){a=Z();var s=e.visitNodes(t,B,e.isExpression,0,o);Ee(a,p.createArrayLiteralExpression(r?f([r],s,!0):s)),r=void 0}var c=e.reduceLeft(t,((t,n)=>{if(X(n)&&t.length>0){var o=void 0!==a;a||(a=Z()),Ee(a,o?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(t,i)]):p.createArrayLiteralExpression(r?f([r],t,!0):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],o);return a?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(c,i)]):e.setTextRange(p.createArrayLiteralExpression(r?f([r],c,!0):c,i),n)}function J(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)$(e[n])}function H(t){e.isBlock(t)?J(t.statements):$(t)}function $(i){var o=a;a||(a=X(i)),(i=>{switch(i.kind){case 235:return(t=>{X(t)?J(t.statements):xe(e.visitNode(t,B,e.isStatement))})(i);case 238:return(t=>{xe(e.visitNode(t,B,e.isStatement))})(i);case 239:return(t=>{if(X(t))if(X(t.thenStatement)||X(t.elseStatement)){var r=ee(),n=t.elseStatement?ee():void 0;Te(t.elseStatement?n:r,e.visitNode(t.expression,B,e.isExpression),t.expression),H(t.thenStatement),t.elseStatement&&(Se(r),te(n),H(t.elseStatement)),te(r)}else xe(e.visitNode(t,B,e.isStatement));else xe(e.visitNode(t,B,e.isStatement))})(i);case 240:return(t=>{if(X(t)){var r=ee(),n=ee();se(r),te(n),H(t.statement),te(r),De(n,e.visitNode(t.expression,B,e.isExpression)),ce()}else xe(e.visitNode(t,B,e.isStatement))})(i);case 241:return(t=>{if(X(t)){var r=ee(),n=se(r);te(r),Te(n,e.visitNode(t.expression,B,e.isExpression)),H(t.statement),Se(r),ce()}else xe(e.visitNode(t,B,e.isStatement))})(i);case 242:return(t=>{if(X(t)){var r=ee(),n=ee(),i=se(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?G(a):xe(e.setTextRange(p.createExpressionStatement(e.visitNode(a,B,e.isExpression)),a))}te(r),t.condition&&Te(i,e.visitNode(t.condition,B,e.isExpression)),H(t.statement),te(n),t.incrementor&&xe(e.setTextRange(p.createExpressionStatement(e.visitNode(t.incrementor,B,e.isExpression)),t.incrementor)),Se(r),ce()}else xe(e.visitNode(t,B,e.isStatement))})(i);case 243:return(t=>{if(X(t)){var r=Z(),n=Z(),i=p.createLoopVariable(),a=t.initializer;y(i),Ee(r,p.createArrayLiteralExpression()),xe(p.createForInStatement(n,e.visitNode(t.expression,B,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(r,"push"),void 0,[n])))),Ee(i,p.createNumericLiteral(0));var o=ee(),s=ee(),c=se(s);te(o),Te(c,p.createLessThan(i,p.createPropertyAccessExpression(r,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,d=a.declarations;u<d.length;u++){var _=d[u];y(_.name)}l=p.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,B,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));Ee(l,p.createElementAccessExpression(r,i)),H(t.statement),te(s),xe(p.createExpressionStatement(p.createPostfixIncrement(i))),Se(o),ce()}else xe(e.visitNode(t,B,e.isStatement))})(i);case 245:return(t=>{var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)})(i);case 246:return(t=>{var r=me(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)})(i);case 247:return(t=>{Ce(8,[e.visitNode(t.expression,B,e.isExpression)],t)})(i);case 248:return(t=>{var r,n,i;X(t)?(r=Q(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),H(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement))})(i);case 249:return(t=>{if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Q(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var l=r.clauses[c];o.push(ee()),290===l.kind&&-1===s&&(s=c)}for(var u=0,d=[];u<n;){var _=0;for(c=u;c<n;c++)if(289===(l=r.clauses[c]).kind){if(X(l.expression)&&d.length>0)break;d.push(p.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else _++;d.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(d))),u+=d.length,d=[]),_>0&&(u+=_,_=0)}for(Se(s>=0?o[s]:i),c=0;c<n;c++)te(o[c]),J(r.clauses[c].statements);le()}else xe(e.visitNode(t,B,e.isStatement));var f})(i);case 250:return(t=>{X(t)?(re({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:ee()}),H(t.statement),ue()):xe(e.visitNode(t,B,e.isStatement))})(i);case 251:return(t=>{var r;Ce(9,[e.visitNode(null!==(r=t.expression)&&void 0!==r?r:p.createVoidZero(),B,e.isExpression)],t)})(i);case 252:return(i=>{var a,o;X(i)?(a=ee(),o=ee(),te(a),re({kind:0,state:0,startLabel:a,endLabel:o}),be(),H(i.tryBlock),i.catchClause&&((i=>{var a;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(i.name))a=i.name,y(i.name);else{var o=e.idText(i.name);a=Z(o),r||(r=new e.Map,n=[],t.enableSubstitution(79)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ie();e.Debug.assert(s.state<1),Se(s.endLabel);var c=ee();te(c),s.state=1,s.catchVariable=a,s.catchLabel=c,Ee(a,p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[])),be()})(i.catchClause.variableDeclaration),H(i.catchClause.block)),i.finallyBlock&&((()=>{e.Debug.assert(0===ae());var t=ie();e.Debug.assert(t.state<2),Se(t.endLabel);var r=ee();te(r),t.state=2,t.finallyLabel=r})(),H(i.finallyBlock)),(()=>{e.Debug.assert(0===ae());var t=ne();t.state<2?Se(t.endLabel):Ce(10),te(t.endLabel),be(),t.state=3})()):xe(e.visitEachChild(i,B,t))})(i);default:xe(e.visitNode(i,B,e.isStatement))}})(i),a=o}function G(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=p.cloneNode(i.name);e.setCommentRange(a,i.name),y(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s&&!(X((i=o[u]).initializer)&&l.length>0);u++)l.push(q(i));l.length&&(xe(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}function q(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(524288&e.transformFlags)}function Y(e){for(var t=e.length,r=0;r<t;r++)if(X(e[r]))return r;return-1}function Q(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=p.createTempVariable(y);return Ee(r,t,t),r}function Z(e){var t=e?p.createUniqueName(e):p.createTempVariable(void 0);return y(t),t}function ee(){u||(u=[]);var e=M;return M++,u[e]=-1,e}function te(t){e.Debug.assert(void 0!==u,"No labels were defined."),u[t]=S?S.length:0}function re(e){o||(o=[],c=[],s=[],l=[]);var t=c.length;return c[t]=0,s[t]=S?S.length:0,o[t]=e,l.push(e),t}function ne(){var t=ie();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=c.length;return c[r]=1,s[r]=S?S.length:0,o[r]=t,l.pop(),t}function ie(){return e.lastOrUndefined(l)}function ae(){var e=ie();return e&&e.kind}function oe(){re({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){var t=ee();return re({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){e.Debug.assert(3===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function le(){e.Debug.assert(2===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function ue(){e.Debug.assert(4===ae());var t=ne();t.isScript||te(t.breakLabel)}function de(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function _e(e){return 3===e.kind}function fe(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function me(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(pe(r=l[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(de(r=l[t]))return r.breakLabel}return 0}function ge(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(_e(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(_e(r=l[t]))return r.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return p.createOmittedExpression()}function ye(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,(e=>{switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}})(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),r)}function be(){Ce(0)}function xe(e){e?Ce(1,[e]):be()}function Ee(e,t,r){Ce(2,[e,t],r)}function Se(e,t){Ce(3,[e],t)}function De(e,t,r){Ce(4,[e,t],r)}function Te(e,t,r){Ce(5,[e,t],r)}function Ce(e,t,r){void 0===S&&(S=[],D=[],T=[]),void 0===u&&te(ee());var n=S.length;S[n]=e,D[n]=t,T[n]=r}function ke(){R=0,L=0,k=void 0,A=!1,N=!1,w=void 0,F=void 0,P=void 0,I=void 0,O=void 0;var t=(()=>{if(S){for(var t=0;t<S.length;t++)Fe(t);Ae(S.length)}else Ae(0);if(w){var r=p.createPropertyAccessExpression(C,"label"),n=p.createSwitchStatement(r,p.createCaseBlock(w));return[e.startOnNewLine(n)]}return F||[]})();return _().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,p.createBlock(t,t.length>0)),524288))}function Ae(e){(e=>{if(!N)return!0;if(!u||!d)return!1;for(var t=0;t<u.length;t++)if(u[t]===e&&d[t])return!0;return!1})(e)&&(we(e),O=void 0,Ie(void 0,void 0)),F&&w&&Ne(!1),(()=>{if(void 0!==d&&void 0!==k)for(var e=0;e<k.length;e++){var t=k[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}})()}function Ne(e){if(w||(w=[]),F){if(O)for(var t=O.length-1;t>=0;t--){var r=O[t];F=[p.createWithStatement(r.expression,p.createBlock(F))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;F.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(C,"trys"),"push"),void 0,[p.createArrayLiteralExpression([he(n),he(i),he(a),he(o)])]))),I=void 0}e&&F.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(C,"label"),p.createNumericLiteral(L+1))))}w.push(p.createCaseClause(p.createNumericLiteral(L),F||[])),F=void 0}function we(e){if(u)for(var t=0;t<u.length;t++)u[t]===e&&(F&&(Ne(!A),A=!1,N=!1,L++),void 0===k&&(k=[]),void 0===k[L]?k[L]=[t]:k[L].push(t))}function Fe(t){if(we(t),(e=>{if(o)for(;R<c.length&&s[R]<=e;R++){var t=o[R],r=c[R];switch(t.kind){case 0:0===r?(P||(P=[]),F||(F=[]),P.push(I),I=t):1===r&&(I=P.pop());break;case 1:0===r?(O||(O=[]),O.push(t)):1===r&&O.pop()}}})(t),!A){A=!1,N=!1;var r=S[t];if(0!==r){if(10===r)return A=!0,void Pe(p.createReturnStatement(p.createArrayLiteralExpression([ye(7)])));var n=D[t];if(1===r)return Pe(n[0]);var i,a,l,u=T[t];switch(r){case 2:return i=n[0],a=n[1],l=u,void Pe(e.setTextRange(p.createExpressionStatement(p.createAssignment(i,a)),l));case 3:return((t,r)=>{A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),r),384))})(n[0],u);case 4:return((t,r,n)=>{Pe(e.setEmitFlags(p.createIfStatement(r,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),n),384)),1))})(n[0],n[1],u);case 5:return((t,r,n)=>{Pe(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(r),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),he(t)])),n),384)),1))})(n[0],n[1],u);case 6:return((t,r)=>{A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(4),t]:[ye(4)])),r),384))})(n[0],u);case 7:return((t,r)=>{A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(5),t])),r),384))})(n[0],u);case 8:return Ie(n[0],u);case 9:return((t,r)=>{A=!0,N=!0,Pe(e.setTextRange(p.createThrowStatement(t),r))})(n[0],u)}}}}function Pe(e){e&&(F?F.push(e):F=[e])}function Ie(t,r){A=!0,N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r),384))}}})(p),(e=>{e.transformModule=r=>{var n=r.factory,i=r.getEmitHelperFactory,a=r.startLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getCompilerOptions(),l=r.getEmitResolver(),u=r.getEmitHost(),d=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),_=r.onSubstituteNode,m=r.onEmitNode;r.onSubstituteNode=(t,r)=>(r=_(t,r)).id&&x[r.id]?r:1===t?(t=>{switch(t.kind){case 79:return Q(t);case 208:return(t=>{if(e.isIdentifier(t.expression)){var r=Q(t.expression);if(x[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.expression)))return e.addEmitFlags(n.updateCallExpression(t,r,void 0,t.arguments),536870912)}return t})(t);case 210:return(t=>{if(e.isIdentifier(t.tag)){var r=Q(t.tag);if(x[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.tag)))return e.addEmitFlags(n.updateTaggedTemplateExpression(t,r,void 0,t.template),536870912)}return t})(t);case 221:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Z(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];x[e.getNodeId(n)]=!0,n=X(o,n,t)}return n}}return t})(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{var r=t.name,i=Q(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t})(r):r,r.onEmitNode=(t,r,n)=>{305===r.kind?(g=r,h=v[e.getOriginalNodeId(g)],m(t,r,n),g=void 0,h=void 0):m(t,r,n)},r.enableSubstitution(208),r.enableSubstitution(210),r.enableSubstitution(79),r.enableSubstitution(221),r.enableSubstitution(297),r.enableEmitNotification(305);var g,h,y,v=[],b=[],x=[];return e.chainBundle(r,(t=>{if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,c)||4194304&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(c)&&e.outFile(c)))return t;g=t,h=e.collectExternalModuleInfo(r,t,l,c),v[e.getOriginalNodeId(t)]=h;var n=(t=>{switch(t){case e.ModuleKind.AMD:return D;case e.ModuleKind.UMD:return T;default:return S}})(p)(t);return g=void 0,h=void 0,y=!1,n}));function E(){return!(h.exportEquals||!e.isExternalModule(g))}function S(t){a();var i=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(g),l=n.copyPrologue(t.statements,i,s&&!e.isJsonSourceFile(t),w);if(E()&&e.append(i,q()),e.length(h.exportedNames))for(var u=0;u<h.exportedNames.length;u+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(h.exportedNames.slice(u,u+50),((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero())));e.append(i,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,w,e.isStatement,l)),N(i,!1),e.insertStatementsAfterStandardPrologue(i,o());var d=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(d,r.readEmitHelpers()),d}function D(t){var i=n.createIdentifier("define"),a=e.tryGetModuleNameFromFile(n,t,u,c),o=e.isJsonSourceFile(t)&&t,s=C(t,!0),l=s.aliasedModuleNames,d=s.unaliasedModuleNames,p=s.importAliasNames,_=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(i,void 0,f(f([],a?[a]:[],!0),[n.createArrayLiteralExpression(o?e.emptyArray:f(f([n.createStringLiteral("require"),n.createStringLiteral("exports")],l,!0),d,!0)),o?o.statements.length?o.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,f([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],p,!0),void 0,A(t))],!1)))]),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function T(t){var i=C(t,!1),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames,l=e.tryGetModuleNameFromFile(n,t,u,c),d=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,f(f([],l?[l]:[],!0),[n.createArrayLiteralExpression(f(f([n.createStringLiteral("require"),n.createStringLiteral("exports")],a,!0),o,!0)),n.createIdentifier("factory")],!1)))])))],!0),void 0)),p=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(d,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,f([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],s,!0),void 0,A(t))]))]),t.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function C(t,r){for(var i=[],a=[],o=[],s=0,d=t.amdDependencies;s<d.length;s++){var p=d[s];p.name?(i.push(n.createStringLiteral(p.path)),o.push(n.createParameterDeclaration(void 0,void 0,void 0,p.name))):a.push(n.createStringLiteral(p.path))}for(var _=0,f=h.externalImports;_<f.length;_++){var m=f[_],y=e.getExternalModuleNameLiteral(n,m,g,u,l,c),v=e.getLocalNameForExternalImport(n,m,g);y&&(r&&v?(e.setEmitFlags(v,4),i.push(y),o.push(n.createParameterDeclaration(void 0,void 0,void 0,v))):a.push(y))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function k(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,g,u,l,c)){var r=e.getLocalNameForExternalImport(n,t,g),i=L(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function A(r){a();var i=[],s=n.copyPrologue(r.statements,i,!c.noImplicitUseStrict,w);E()&&e.append(i,q()),e.length(h.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(h.exportedNames,((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero()))),e.append(i,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(h.externalImports,k)),e.addRange(i,e.visitNodes(r.statements,w,e.isStatement,s)),N(i,!0),e.insertStatementsAfterStandardPrologue(i,o());var l=n.createBlock(i,!0);return y&&e.addEmitHelper(l,t),l}function N(t,r){if(h.exportEquals){var i=e.visitNode(h.exportEquals.expression,P);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,h.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i)),e.setTextRange(a,h.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}function w(t){switch(t.kind){case 266:return(t=>{var r,i=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(B(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,L(t,B(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,L(t,B(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,d>=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=K(b[o],t)}else r=K(r,t);return e.singleOrMany(r)})(t);case 265:return(t=>{var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,B(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(t),n.getLocalName(t))),t),t))),V(t)){var i=e.getOriginalNodeId(t);b[i]=z(b[i],t)}else r=z(r,t);return e.singleOrMany(r)})(t);case 272:return(t=>{if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var a=[];p!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var l=s[o];if(0===d)a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createCreateBindingHelper(r,n.createStringLiteralFromNode(l.propertyName||l.name),l.propertyName?n.createStringLiteralFromNode(l.name):void 0)),l),l));else{var u=!(!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)||"default"!==e.idText(l.propertyName||l.name)),_=n.createPropertyAccessExpression(u?i().createImportDefaultHelper(r):r,l.propertyName||l.name);a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(l),_,void 0,!0)),l),l))}}return e.singleOrMany(a)}return t.exportClause?((a=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.cloneNode(t.exportClause.name),((t,r)=>!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getExportNeedsImportStarHelper(t)?i().createImportStarHelper(r):r)(t,p!==e.ModuleKind.AMD?B(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(a)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createExportStarHelper(p!==e.ModuleKind.AMD?B(t):r)),t),t)}})(t);case 271:return(t=>{if(!t.isExportEquals){var r,i=t.original;if(i&&V(i)){var a=e.getOriginalNodeId(t);b[a]=G(b[a],n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=G(r,n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}})(t);case 237:return(t=>{var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,l=0,u=t.declarationList.declarations;l<u.length;l++){var d=u[l];if(e.isIdentifier(d.name)&&e.isLocalName(d.name))s||(s=e.visitNodes(t.modifiers,Y,e.isModifier)),a=e.append(a,d);else if(d.initializer)if(!e.isBindingPattern(d.name)&&(e.isArrowFunction(d.initializer)||e.isFunctionExpression(d.initializer)||e.isClassExpression(d.initializer))){var p=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),d.name),d.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name))),_=n.createVariableDeclaration(d.name,d.exclamationToken,d.type,e.visitNode(d.initializer,P));a=e.append(a,_),o=e.append(o,p),c=!0}else o=e.append(o,U(d))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,P,r));if(V(t)){var m=e.getOriginalNodeId(t);b[m]=W(b[m],t)}else i=W(i,t);return e.singleOrMany(i)})(t);case 256:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,Y,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,r)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=H(b[a],t)}else i=H(i,t);return e.singleOrMany(i)})(t);case 257:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(void 0,e.visitNodes(t.modifiers,Y,e.isModifier),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=H(b[a],t)}else i=H(i,t);return e.singleOrMany(i)})(t);case 352:return(t=>{if(V(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=W(b[r],t.original)}return t})(t);case 353:return(t=>{var r=e.getOriginalNodeId(t),n=b[r];return n?(delete b[r],e.append(n,t)):t})(t);default:return P(t)}}function F(t,i){if(!(71307264&t.transformFlags))return t;switch(t.kind){case 242:return(t=>n.updateForStatement(t,e.visitNode(t.initializer,I,e.isForInitializer),e.visitNode(t.condition,P,e.isExpression),e.visitNode(t.incrementor,I,e.isExpression),e.visitIterationBody(t.statement,P,r)))(t);case 238:return(t=>n.updateExpressionStatement(t,e.visitNode(t.expression,I,e.isExpression)))(t);case 212:return((t,r)=>n.updateParenthesizedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression)))(t,i);case 350:return((t,r)=>n.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression)))(t,i);case 208:if(e.isImportCall(t)&&void 0===g.impliedNodeFormat)return(t=>{var r=e.getExternalModuleNameLiteral(n,t,g,u,l,c),i=e.visitNode(e.firstOrUndefined(t.arguments),P),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(8192&t.transformFlags);switch(c.module){case e.ModuleKind.AMD:return M(a,o);case e.ModuleKind.UMD:return((t,r)=>{if(y=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(t,r),void 0,M(i,r))}var a=n.createTempVariable(s);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(a,r),void 0,M(a,r)))})(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return R(a,o)}})(t);break;case 221:if(e.isDestructuringAssignment(t))return((t,n)=>O(t.left)?e.flattenDestructuringAssignment(t,P,r,0,!n,j):e.visitEachChild(t,P,r))(t,i);break;case 219:case 220:return((t,i)=>{if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=Z(t.operand);if(a){var o=void 0,c=e.visitNode(t.operand,P,e.isExpression);e.isPrefixUnaryExpression(t)?c=n.updatePrefixUnaryExpression(t,c):(c=n.updatePostfixUnaryExpression(t,c),i||(o=n.createTempVariable(s),c=n.createAssignment(o,c),e.setTextRange(c,t)),c=n.createComma(c,n.cloneNode(t.operand)),e.setTextRange(c,t));for(var l=0,u=a;l<u.length;l++){var d=u[l];x[e.getNodeId(c)]=!0,c=X(d,c),e.setTextRange(c,t)}return o&&(x[e.getNodeId(c)]=!0,c=n.createComma(c,o),e.setTextRange(c,t)),c}}return e.visitEachChild(t,P,r)})(t,i)}return e.visitEachChild(t,P,r)}function P(e){return F(e,!1)}function I(e){return F(e,!0)}function O(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++)switch((o=n[r]).kind){case 296:if(O(o.initializer))return!0;break;case 297:if(O(o.name))return!0;break;case 298:if(O(o.expression))return!0;break;case 169:case 172:case 173:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(O(o.expression))return!0}else if(O(o))return!0}else if(e.isIdentifier(t))return e.length(Z(t))>(e.isExportName(t)?1:0);return!1}function M(t,r){var a,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),l=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);d>=2?a=n.createArrowFunction(void 0,void 0,l,void 0,void 0,u):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,u),r&&e.setEmitFlags(a,8));var p=n.createNewExpression(n.createIdentifier("Promise"),void 0,[a]);return e.getESModuleInterop(c)?n.createCallExpression(n.createPropertyAccessExpression(p,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):p}function R(t,r){var a,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return e.getESModuleInterop(c)&&(s=i().createImportStarHelper(s)),d>=2?a=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(a,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[a])}function L(t,r){return!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?i().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?i().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(n,t,g,u,l,c),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function j(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=X(l,o,i)}return o}return n.createAssignment(t,r)}function U(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,r,0,!1,j):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,P):n.createVoidZero())}function V(t){return 0!=(4194304&e.getEmitFlags(t))}function K(e,t){if(h.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=$(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=$(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=$(e,a[i],!0)}return e}function z(e,t){return h.exportEquals?e:$(e,t)}function W(e,t){if(h.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=J(e,n[r]);return e}function J(t,r){if(h.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=J(t,a))}else e.isGeneratedIdentifier(r.name)||(t=$(t,r));return t}function H(t,r){return h.exportEquals||(e.hasSyntacticModifier(r,1)&&(t=G(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r)),r.name&&(t=$(t,r))),t}function $(t,r,i){var a=n.getDeclarationName(r),o=h.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];t=G(t,l.name,a,l.name,void 0,i)}return t}function G(t,r,i,a,o,s){return e.append(t,((t,r,i,a,o)=>{var s=e.setTextRange(n.createExpressionStatement(X(t,r,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s})(r,i,a,o,s))}function q(){var t;return t=0===d?n.createExpressionStatement(X(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function X(t,r,i,a){return e.setTextRange(a&&0!==d?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function Y(e){switch(e.kind){case 93:case 88:return}return e}function Q(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(g);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=l.getReferencedExportContainer(t,e.isExportName(t));if(o&&305===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=l.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Z(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return h&&h.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}})(p),(e=>{e.transformSystemModule=t=>{var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),l=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=(t,n)=>(e=>h&&e.id&&h[e.id])(n=l(t,n))?n:1===t?(t=>{switch(t.kind){case 79:return(t=>{var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(d);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t})(t);case 221:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++)n=V(a[i],Y(n));return n}}return t})(t);case 231:return(t=>e.isImportMeta(t)?r.createPropertyAccessExpression(f,r.createIdentifier("meta")):t)(t)}return t})(n):4===t?(t=>{switch(t.kind){case 297:return(t=>{var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t})(t)}return t})(n):n,t.onEmitNode=(t,r,n)=>{if(305===r.kind){var i=e.getOriginalNodeId(r);d=r,p=y[i],_=b[i],h=x[i],f=E[i],h&&delete x[i],u(t,r,n),d=void 0,p=void 0,_=void 0,f=void 0,h=void 0}else u(t,r,n)},t.enableSubstitution(79),t.enableSubstitution(297),t.enableSubstitution(221),t.enableSubstitution(231),t.enableEmitNotification(305);var d,p,_,f,m,g,h,y=[],v=[],b=[],x=[],E=[];return e.chainBundle(t,(a=>{if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||4194304&a.transformFlags))return a;var l=e.getOriginalNodeId(a);d=a,g=a,p=y[l]=e.collectExternalModuleInfo(t,a,s,o),_=r.createUniqueName("exports"),b[l]=_,f=E[l]=r.createUniqueName("context");var u=(t=>{for(var n=new e.Map,i=[],a=0,l=t;a<l.length;a++){var u=l[a],p=e.getExternalModuleNameLiteral(r,u,d,c,s,o);if(p){var _=p.text,f=n.get(_);void 0!==f?i[f].externalImports.push(u):(n.set(_,i.length),i.push({name:p,externalImports:[u]}))}}return i})(p.externalImports),v=((t,a)=>{var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),l=r.copyPrologue(t.statements,s,c,T);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,T,e.isStatement);var u=e.visitNodes(t.statements,T,e.isStatement,l);e.addRange(s,m),e.insertStatementsAfterStandardPrologue(s,i());var _=(e=>{if(p.hasExportStarsToExportValues){if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var t=!1,n=0,i=p.externalImports;n<i.length;n++){var a=i[n];if(272===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(u),r.createTrue()))}var d=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(d,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var _=S(d);return e.push(_),_.name}})(s),g=1048576&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,h=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",D(_,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,r.createBlock(u,!0)))],!0);return s.push(r.createReturnStatement(h)),r.createBlock(s,!0)})(a,u),C=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,_),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,v),k=e.tryGetModuleNameFromFile(r,a,c,o),A=r.createArrayLiteralExpression(e.map(u,(e=>e.name))),N=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,A,C]:[A,C]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(N,v,(e=>!e.scoped)),h&&(x[l]=h,h=void 0),d=void 0,p=void 0,_=void 0,f=void 0,m=void 0,g=void 0,N}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(_,void 0,[o]))],!0))}function D(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(t=>e.getLocalNameForExternalImport(r,t,d))),l=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),u=[],p=0,f=s.externalImports;p<f.length;p++){var m=f[p],g=e.getLocalNameForExternalImport(r,m,d);switch(m.kind){case 266:if(!m.importClause)break;case 265:e.Debug.assert(void 0!==g),u.push(r.createExpressionStatement(r.createAssignment(g,l)));break;case 272:if(e.Debug.assert(void 0!==g),m.exportClause)if(e.isNamedExports(m.exportClause)){for(var h=[],y=0,v=m.exportClause.elements;y<v.length;y++){var b=v[y];h.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(l,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createObjectLiteralExpression(h,!0)])))}else u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createStringLiteral(e.idText(m.exportClause.name)),l])));else u.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[l])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,r.createBlock(u,!0)))}return r.createArrayLiteralExpression(i,!0)}function T(t){switch(t.kind){case 266:return(t=>{var n;if(t.importClause&&a(e.getLocalNameForExternalImport(r,t,d)),P(t)){var i=e.getOriginalNodeId(t);v[i]=I(v[i],t)}else n=I(n,t);return e.singleOrMany(n)})(t);case 265:return(t=>{var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,d)),P(t)){var i=e.getOriginalNodeId(t);v[i]=O(v[i],t)}else n=O(n,t);return e.singleOrMany(n)})(t);case 272:return(t=>{e.Debug.assertIsDefined(t)})(t);case 271:return(t=>{if(!t.isExportEquals){var n=e.visitNode(t.expression,H,e.isExpression),i=t.original;if(!i||!P(i))return U(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);v[a]=j(v[a],r.createIdentifier("default"),n,!0)}})(t);default:return K(t)}}function C(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||C(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(305===g.kind||0==(3&e.getOriginalNode(t).flags))}function A(r,n){var i=n?N:w;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,H,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,H,e.isExpression)):r.name}function N(e,t,r){return F(e,t,r,!0)}function w(e,t,r){return F(e,t,r,!1)}function F(t,n,i,o){return a(r.cloneNode(t)),o?V(t,Y(e.setTextRange(r.createAssignment(t,n),i))):Y(e.setTextRange(r.createAssignment(t,n),i))}function P(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(p.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=B(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=B(e,a[i])}return e}function O(e,t){return p.exportEquals?e:B(e,t)}function M(e,t,r){if(p.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=R(e,a,r))}return e}function R(t,n,i){if(p.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=R(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=j(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function L(t,n){if(p.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=j(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(p.exportEquals)return t;var a=r.getDeclarationName(n),o=p.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(t=j(t,l.name,a))}return t}function j(t,r,n,i){return e.append(t,U(r,n,i))}function U(t,n,i){var a=r.createExpressionStatement(V(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(_,void 0,[i,n]),n)}function K(n){switch(n.kind){case 237:return(t=>{if(!k(t.declarationList))return e.visitNode(t,H,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=P(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?n=e.append(n,A(l,a&&!o)):C(l)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var u=e.getOriginalNodeId(t);v[u]=M(v[u],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)})(n);case 256:return(n=>{if(m=e.hasSyntacticModifier(n,1)?e.append(m,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,q,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,H,e.isParameterDeclaration),void 0,e.visitNode(n.body,H,e.isBlock))):e.append(m,e.visitEachChild(n,H,t)),P(n)){var i=e.getOriginalNodeId(n);v[i]=L(v[i],n)}else m=L(m,n)})(n);case 257:return(t=>{var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,H,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,H,e.isHeritageClause),e.visitNodes(t.members,H,e.isClassElement)),t))),t)),P(t)){var o=e.getOriginalNodeId(t);v[o]=L(v[o],t)}else n=L(n,t);return e.singleOrMany(n)})(n);case 242:return z(n,!0);case 243:return(n=>{var i=g;return g=n,n=r.updateForInStatement(n,W(n.initializer),e.visitNode(n.expression,H,e.isExpression),e.visitIterationBody(n.statement,K,t)),g=i,n})(n);case 244:return(n=>{var i=g;return g=n,n=r.updateForOfStatement(n,n.awaitModifier,W(n.initializer),e.visitNode(n.expression,H,e.isExpression),e.visitIterationBody(n.statement,K,t)),g=i,n})(n);case 240:return(n=>r.updateDoStatement(n,e.visitIterationBody(n.statement,K,t),e.visitNode(n.expression,H,e.isExpression)))(n);case 241:return(n=>r.updateWhileStatement(n,e.visitNode(n.expression,H,e.isExpression),e.visitIterationBody(n.statement,K,t)))(n);case 250:return(t=>r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,K,e.isStatement,r.liftToBlock)))(n);case 248:return(t=>r.updateWithStatement(t,e.visitNode(t.expression,H,e.isExpression),e.visitNode(t.statement,K,e.isStatement,r.liftToBlock)))(n);case 249:return(t=>r.updateSwitchStatement(t,e.visitNode(t.expression,H,e.isExpression),e.visitNode(t.caseBlock,K,e.isCaseBlock)))(n);case 263:return(t=>{var n=g;return g=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,K,e.isCaseOrDefaultClause)),g=n,t})(n);case 289:return(t=>r.updateCaseClause(t,e.visitNode(t.expression,H,e.isExpression),e.visitNodes(t.statements,K,e.isStatement)))(n);case 290:case 252:return(r=>e.visitEachChild(r,K,t))(n);case 292:return(t=>{var n=g;return g=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,K,e.isBlock)),g=n,t})(n);case 235:return(r=>{var n=g;return g=r,r=e.visitEachChild(r,K,t),g=n,r})(n);case 352:return(t=>{if(P(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);v[r]=M(v[r],t.original,n)}return t})(n);case 353:return(t=>{var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t})(n);default:return H(n)}}function z(n,i){var a=g;return g=n,n=r.updateForStatement(n,e.visitNode(n.initializer,i?W:$,e.isForInitializer),e.visitNode(n.condition,H,e.isExpression),e.visitNode(n.incrementor,$,e.isExpression),e.visitIterationBody(n.statement,i?K:H,t)),g=a,n}function W(t){if((t=>e.isVariableDeclarationList(t)&&k(t))(t)){for(var n=void 0,i=0,a=t.declarations;i<a.length;i++){var o=a[i];n=e.append(n,A(o,!1)),o.initializer||C(o)}return n?r.inlineExpressions(n):r.createOmittedExpression()}return e.visitNode(t,$,e.isExpression)}function J(n,i){if(!(71307264&n.transformFlags))return n;switch(n.kind){case 242:return z(n,!1);case 238:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,$,e.isExpression)))(n);case 212:return((t,n)=>r.updateParenthesizedExpression(t,e.visitNode(t.expression,n?$:H,e.isExpression)))(n,i);case 350:return((t,n)=>r.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,n?$:H,e.isExpression)))(n,i);case 221:if(e.isDestructuringAssignment(n))return((r,n)=>G(r.left)?e.flattenDestructuringAssignment(r,H,t,0,!n):e.visitEachChild(r,H,t))(n,i);break;case 208:if(e.isImportCall(n))return(t=>{var n=e.getExternalModuleNameLiteral(r,t,d,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),H),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])})(n);break;case 219:case 220:return((n,i)=>{if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var o=X(n.operand);if(o){var s=void 0,c=e.visitNode(n.operand,H,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),i||(s=r.createTempVariable(a),c=r.createAssignment(s,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,u=o;l<u.length;l++)c=V(u[l],Y(c));return s&&(c=r.createComma(c,s),e.setTextRange(c,n)),c}}return e.visitEachChild(n,H,t)})(n,i)}return e.visitEachChild(n,H,t)}function H(e){return J(e,!1)}function $(e){return J(e,!0)}function G(t){if(e.isAssignmentExpression(t,!0))return G(t.left);if(e.isSpreadElement(t))return G(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,G);if(e.isArrayLiteralExpression(t))return e.some(t.elements,G);if(e.isShorthandPropertyAssignment(t))return G(t.name);if(e.isPropertyAssignment(t))return G(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&305===r.kind}return!1}function q(e){switch(e.kind){case 93:case 88:return}return e}function X(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&305===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,p&&p.exportedBindings[e.getOriginalNodeId(i)])}}return n}function Y(t){return void 0===h&&(h=[]),h[e.getNodeId(t)]=!0,t}}})(p),(e=>{e.transformECMAScriptModule=t=>{var r,n,i,a=t.factory,o=t.getEmitHelperFactory,s=t.getEmitHost(),c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{e.isSourceFile(n)?((e.isExternalModule(n)||l.isolatedModules)&&l.importHelpers&&(r=new e.Map),d(t,n,i),r=void 0):d(t,n,i)},t.onSubstituteNode=(t,n)=>(n=p(t,n),r&&e.isIdentifier(n)&&4096&e.getEmitFlags(n)?(t=>{var n=e.idText(t),i=r.get(n);return i||r.set(n,i=a.createUniqueName(n,48)),i})(n):n),t.enableEmitNotification(305),t.enableSubstitution(79),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||l.isolatedModules){n=r,i=void 0;var s=(r=>{var n=e.createExternalHelpersImportDeclarationIfNeeded(a,o(),r,l);if(n){var i=[],s=a.copyPrologue(r.statements,i);return e.append(i,n),e.addRange(i,e.visitNodes(r.statements,_,e.isStatement,s)),a.updateSourceFile(r,e.setTextRange(a.createNodeArray(i),r.statements))}return e.visitEachChild(r,_,t)})(r);return n=void 0,i&&(s=a.updateSourceFile(s,e.setTextRange(a.createNodeArray(e.insertStatementsAfterCustomPrologue(s.statements.slice(),i)),s.statements))),!e.isExternalModule(r)||e.some(s.statements,e.isExternalModuleIndicator)?s:a.updateSourceFile(s,e.setTextRange(a.createNodeArray(f(f([],s.statements,!0),[e.createEmptyExports(a)],!1)),s.statements))}return r}));function _(t){switch(t.kind){case 265:return e.getEmitScriptTarget(l)>=e.ModuleKind.ES2020?(t=>{var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=((t,r)=>(e.hasSyntacticModifier(r,1)&&(t=e.append(t,a.createExportDeclaration(void 0,void 0,r.isTypeOnly,a.createNamedExports([a.createExportSpecifier(!1,void 0,e.idText(r.name))])))),t))(r=e.append(r,e.setOriginalNode(e.setTextRange(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(t.name),void 0,void 0,m(t))],u>=2?2:0)),t),t)),t),e.singleOrMany(r)})(t):void 0;case 271:return(e=>e.isExportEquals?void 0:e)(t);case 272:return(t=>{if(void 0!==l.module&&l.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=a.getGeneratedNameForNode(r),i=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(t)?a.createExportDefault(n):a.createExportDeclaration(void 0,void 0,!1,a.createNamedExports([a.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(o,t),[i,o]})(t)}return t}function m(t){var r=e.getExternalModuleNameLiteral(a,t,e.Debug.checkDefined(n),s,c,l),o=[];if(r&&o.push(r),!i){var d=a.createUniqueName("_createRequire",48),p=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports([a.createImportSpecifier(!1,a.createIdentifier("createRequire"),d)])),a.createStringLiteral("module")),_=a.createUniqueName("__require",48),f=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(_,void 0,void 0,a.createCallExpression(a.cloneNode(d),void 0,[a.createPropertyAccessExpression(a.createMetaProperty(100,a.createIdentifier("meta")),a.createIdentifier("url"))]))],u>=2?2:0));i=[p,f]}var m=i[1].declarationList.declarations[0].name;return e.Debug.assertNode(m,e.isIdentifier),a.createCallExpression(a.cloneNode(m),void 0,o)}}})(p),(e=>{e.transformNodeModule=t=>{var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=(t,n)=>e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n),t.onEmitNode=(t,r,i)=>(e.isSourceFile(r)&&(s=r),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,r,i):u(t,r,i):n(t,r,i)),t.enableSubstitution(305),t.enableEmitNotification(305),r=>305===r.kind?d(r):(r=>t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends))(r);function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}})(p),(e=>{function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?r=>({diagnosticMessage:173===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}):e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?r=>{var n;switch(t.kind){case 175:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 169:case 168:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:257===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 256:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:r=>{var n=(r=>{switch(t.parent.kind){case 171:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 175:case 180:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 169:case 168:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 256:case 179:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 173:case 172:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[t.parent.kind]))}})(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?()=>{var r;switch(t.parent.kind){case 257:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 258:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 195:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 180:case 175:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 168:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 179:case 256:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 259:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?()=>({diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}):e.isImportEqualsDeclaration(t)?()=>({diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}):e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?r=>({diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}):e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[t.kind]));function r(r){var n=(r=>254===t.kind||203===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:167===t.kind||206===t.kind||166===t.kind||164===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:257===t.parent.kind||164===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0)(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=t=>e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t),e.createGetSymbolAccessibilityDiagnosticForNodeName=r=>e.isSetAccessor(r)||e.isGetAccessor(r)?t=>{var n=(t=>e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:257===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1)(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?t=>{var n=(t=>e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:257===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1)(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r),e.createGetSymbolAccessibilityDiagnosticForNode=t})(p),(e=>{function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&164===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(e=>t(e,n)))}e.getDeclarationDiagnostics=(t,r,n)=>{var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,s,c,l,u,d,p,_,g,h,y,v,b=()=>e.Debug.fail("Diagnostic emitted without context"),x=b,E=!0,S=!1,D=!1,T=!1,C=!1,k=t.factory,A=t.getEmitHost(),N={trackSymbol(e,t,r){if(262144&e.flags)return!1;var n=M(w.isSymbolAccessible(e,t,r,!0));return O(w.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,R()))},reportPrivateInBaseOfClassExpression(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,R(),r))},reportTruncationError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule(t,r){var n=w.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);h.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode(e){S||(d||(d=[])).push(e)},reportNonlocalAugmentation(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((t=>e.getSourceFileOfNode(t)===r)),s=e.filter(i.declarations,(t=>e.getSourceFileOfNode(t)!==r));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,r))},reportImportTypeNodeResolutionModeOverride(){e.isNightly()||!p&&!_||t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}},w=t.getEmitResolver(),F=t.getCompilerOptions(),P=F.noResolve,I=F.stripInternal;return r=>{if(305===r.kind&&r.isDeclarationFile)return r;if(306===r.kind){S=!0,h=new e.Map,y=new e.Map;var n=!1,a=k.createBundle(e.map(r.sourceFiles,(r=>{if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,g=r,i=r,c=void 0,u=!1,l=new e.Map,x=b,T=!1,C=!1,B(r,h),j(r,y),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){D=!1,E=!1;var a=e.isSourceFileJS(r)?k.createNodeArray(L(r,!0)):e.visitNodes(r.statements,ne);return k.updateSourceFile(r,[k.createModuleDeclaration([],[k.createModifier(135)],k.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),k.createModuleBlock(e.setTextRange(k.createNodeArray(te(a)),r.statements)))],!0,[],[],!1,[])}E=!0;var o=e.isSourceFileJS(r)?k.createNodeArray(L(r)):e.visitNodes(r.statements,ne);return k.updateSourceFile(r,te(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(t=>{if(308===t.kind){var r=e.createUnparsedSourceFile(t,"dts",I);return n=n||!!r.hasNoDefaultLib,B(r,h),O(e.map(r.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),j(r,y),r}return t})));a.syntheticFileReferences=[],a.syntheticTypeReferences=U(),a.syntheticLibReferences=R(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,A,!0).declarationFilePath)),p=K(a.syntheticFileReferences,o);return h.forEach(p),a}E=!0,T=!1,C=!1,i=r,g=r,x=b,S=!1,D=!1,u=!1,c=void 0,l=new e.Map,s=void 0,h=B(g,new e.Map),y=j(g,new e.Map);var _,N=[],w=K(N,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,A,!0).declarationFilePath)));if(e.isSourceFileJS(g))_=k.createNodeArray(L(r)),h.forEach(w),v=e.filter(_,e.isAnyImportSyntax);else{var P=e.visitNodes(r.statements,ne);_=e.setTextRange(k.createNodeArray(te(P)),r.statements),h.forEach(w),v=e.filter(_,e.isAnyImportSyntax),e.isExternalModule(r)&&(!D||T&&!C)&&(_=e.setTextRange(k.createNodeArray(f(f([],_,!0),[e.createEmptyExports(k)],!1)),_))}var M=k.updateSourceFile(r,_,!0,N,U(),r.hasNoDefaultLib,R());return M.exportedModulesFromDeclarationEmit=d,M;function R(){return e.map(e.arrayFrom(y.keys()),(e=>({fileName:e,pos:-1,end:-1})))}function U(){return s?e.mapDefined(e.arrayFrom(s.keys()),V):[]}function V(t){var r=t[0],n=t[1];if(v)for(var i=0,a=v;i<a.length;i++){var o=a[i];if(e.isImportEqualsDeclaration(o)&&e.isExternalModuleReference(o.moduleReference)){var s=o.moduleReference.expression;if(e.isStringLiteralLike(s)&&s.text===r)return}else if(e.isImportDeclaration(o)&&e.isStringLiteral(o.moduleSpecifier)&&o.moduleSpecifier.text===r)return}return m({fileName:r,pos:-1,end:-1},n?{resolutionMode:n}:void 0)}function K(t,n){return i=>{var a;if(i.isDeclarationFile)a=i.fileName;else{if(S&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,A,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(F,g,e.toPath(n,A.getCurrentDirectory(),A.getCanonicalFileName),e.toPath(a,A.getCurrentDirectory(),A.getCanonicalFileName),A);if(!e.pathIsRelative(s))return void O([[s,void 0]]);var c=e.getRelativePathToDirectoryOrUrl(n,a,A.getCurrentDirectory(),A.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function O(t){if(t){s=s||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];s.add(i)}}}function M(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(c)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=r.aliasesToMakeVisible}else{var o=x(r);if(o)return o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)),!0}return!1}function R(){return p?e.declarationNameToString(p):_&&e.getNameOfDeclaration(_)?e.declarationNameToString(e.getNameOfDeclaration(_)):_&&e.isExportAssignment(_)?_.isExportEquals?"export=":"default":"(Missing)"}function L(t,r){var i=x;x=r=>r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t};var a=w.getDeclarationStatementsForSourceFile(t,n,N,r);return x=i,a}function B(t,r){return P||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(n=>{var i=A.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function j(t,r){return e.forEach(t.libReferenceDirectives,(t=>{A.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function U(t){return 79===t.kind?t:202===t.kind?k.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):k.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(e){return 227===e.kind?e:k.updateBindingElement(e,e.dotDotDotToken,e.propertyName,U(e.name),K(e)?e.initializer:void 0)}}function V(t,r,n){var i;u||(i=x,x=e.createGetSymbolAccessibilityDiagnosticForNode(t));var o=k.updateParameterDeclaration(t,void 0,((t,r,n)=>e.factory.createModifiersFromModifierFlags(a(t,r,void 0)))(t,r),t.dotDotDotToken,U(t.name),w.isOptionalParameter(t)?t.questionToken||k.createToken(57):void 0,W(t,n||t.type,!0),z(t));return u||(x=i),o}function K(t){return(t=>{switch(t.kind){case 167:case 166:return!e.hasEffectiveModifier(t,8);case 164:case 254:return!0}return!1})(t)&&w.isLiteralConstDeclaration(e.getParseTreeNode(t))}function z(t){if(K(t))return w.createLiteralConstValue(e.getParseTreeNode(t),N)}function W(t,r,a){if((a||!e.hasEffectiveModifier(t,8))&&!K(t)){var o,s=164===t.kind&&(w.isRequiredInitializedParameter(t)||w.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,re):e.getParseTreeNode(t)?173===t.kind?k.createKeywordTypeNode(130):(p=t.name,u||(o=x,x=e.createGetSymbolAccessibilityDiagnosticForNode(t)),254===t.kind||203===t.kind?c(w.createTypeOfDeclaration(t,i,n,N)):164===t.kind||167===t.kind||166===t.kind?t.initializer?c(w.createTypeOfDeclaration(t,i,n,N,s)||w.createTypeOfExpression(t.initializer,i,n,N)):c(w.createTypeOfDeclaration(t,i,n,N,s)):c(w.createReturnTypeOfSignatureDeclaration(t,i,n,N))):r?e.visitNode(r,re):k.createKeywordTypeNode(130)}function c(e){return p=void 0,u||(x=o),e||k.createKeywordTypeNode(130)}}function J(t){switch((t=e.getParseTreeNode(t)).kind){case 256:case 261:case 258:case 257:case 259:case 260:return!w.isDeclarationVisible(t);case 254:return!H(t);case 265:case 266:case 272:case 271:return!1;case 170:return!0}return!1}function H(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,H):w.isDeclarationVisible(t))}function $(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(e=>V(e,n)));if(i)return k.createNodeArray(i,r.hasTrailingComma)}}function G(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[V(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);o&&(a=V(o,void 0,ue(t,w.getAllAccessorDeclarations(t))))}a||(a=k.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return k.createNodeArray(n||e.emptyArray)}function q(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,re)}function X(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function Y(e,t){M(w.isEntityNameVisible(e,t)),O(w.getTypeReferenceDirectivesForEntityName(e))}function Q(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Z(r,n){if(n){if(D=D||261!==r.kind&&200!==r.kind,e.isStringLiteralLike(n))if(S){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),w,r);if(i)return k.createStringLiteral(i)}else{var a=w.getSymbolOfExternalModuleSpecifier(n);a&&(d||(d=[])).push(a)}return n}}function ee(r){if(void 0!==e.getResolutionModeOverrideForClause(r))return e.isNightly()||t.addDiagnostic(e.createDiagnosticForNode(r,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),r}function te(t){for(;e.length(c);){var r=c.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=E;E=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&S);var i=ae(r);E=n,l.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(t=>{if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(l.has(r)){var n=l.get(r);return l.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(T=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(D=!0)),n}}return t}))}function re(r){if(!se(r)){if(e.isDeclaration(r)){if(J(r))return;if(e.hasDynamicName(r)&&!w.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&w.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;X(r)&&(n=i,i=r);var a=x,o=e.canProduceDiagnostics(r),s=u,c=(182===r.kind||195===r.kind)&&259!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return v(k.createPropertyDeclaration(void 0,le(r),r.name,void 0,void 0,void 0))}if(o&&!u&&(x=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&Y(r.exprName,i),c&&(u=!0),(e=>{switch(e.kind){case 175:case 171:case 169:case 172:case 173:case 167:case 166:case 168:case 174:case 176:case 254:case 163:case 228:case 178:case 189:case 179:case 180:case 200:return!0}return!1})(r))switch(r.kind){case 228:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&Y(r.expression,i);var l=e.visitEachChild(r,re,t);return v(k.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 178:return Y(r.typeName,i),l=e.visitEachChild(r,re,t),v(k.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 175:return v(k.updateConstructSignature(r,q(r,r.typeParameters),$(r,r.parameters),W(r,r.type)));case 171:return v(k.createConstructorDeclaration(void 0,le(r),$(r,r.parameters,0),void 0));case 169:return e.isPrivateIdentifier(r.name)?v(void 0):v(k.createMethodDeclaration(void 0,le(r),void 0,r.name,r.questionToken,q(r,r.typeParameters),$(r,r.parameters),W(r,r.type),void 0));case 172:if(e.isPrivateIdentifier(r.name))return v(void 0);var d=ue(r,w.getAllAccessorDeclarations(r));return v(k.updateGetAccessorDeclaration(r,void 0,le(r),r.name,G(r,e.hasEffectiveModifier(r,8)),W(r,d),void 0));case 173:return e.isPrivateIdentifier(r.name)?v(void 0):v(k.updateSetAccessorDeclaration(r,void 0,le(r),r.name,G(r,e.hasEffectiveModifier(r,8)),void 0));case 167:return e.isPrivateIdentifier(r.name)?v(void 0):v(k.updatePropertyDeclaration(r,void 0,le(r),r.name,r.questionToken,W(r,r.type),z(r)));case 166:return e.isPrivateIdentifier(r.name)?v(void 0):v(k.updatePropertySignature(r,le(r),r.name,r.questionToken,W(r,r.type)));case 168:return e.isPrivateIdentifier(r.name)?v(void 0):v(k.updateMethodSignature(r,le(r),r.name,r.questionToken,q(r,r.typeParameters),$(r,r.parameters),W(r,r.type)));case 174:return v(k.updateCallSignature(r,q(r,r.typeParameters),$(r,r.parameters),W(r,r.type)));case 176:return v(k.updateIndexSignature(r,void 0,le(r),$(r,r.parameters),e.visitNode(r.type,re)||k.createKeywordTypeNode(130)));case 254:return e.isBindingPattern(r.name)?oe(r.name):(c=!0,u=!0,v(k.updateVariableDeclaration(r,r.name,void 0,W(r,r.type),z(r))));case 163:return(t=>169===t.parent.kind&&e.hasEffectiveModifier(t.parent,8))(r)&&(r.default||r.constraint)?v(k.updateTypeParameterDeclaration(r,r.modifiers,r.name,void 0,void 0)):v(e.visitEachChild(r,re,t));case 189:var _=e.visitNode(r.checkType,re),f=e.visitNode(r.extendsType,re),m=i;i=r.trueType;var h=e.visitNode(r.trueType,re);i=m;var y=e.visitNode(r.falseType,re);return v(k.updateConditionalTypeNode(r,_,f,h,y));case 179:return v(k.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,re),$(r,r.parameters),e.visitNode(r.type,re)));case 180:return v(k.updateConstructorTypeNode(r,le(r),e.visitNodes(r.typeParameters,re),$(r,r.parameters),e.visitNode(r.type,re)));case 200:return e.isLiteralImportTypeNode(r)?v(k.updateImportTypeNode(r,k.updateLiteralTypeNode(r.argument,Z(r,r.argument.literal)),r.assertions,r.qualifier,e.visitNodes(r.typeArguments,re,e.isTypeNode),r.isTypeOf)):v(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[r.kind]))}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(g,r.pos).line===e.getLineAndCharacterOfPosition(g,r.end).line&&e.setEmitFlags(r,1),v(e.visitEachChild(r,re,t))}}function v(t){return t&&o&&e.hasDynamicName(r)&&(t=>{var r;u||(r=x,x=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)),p=t.name,e.Debug.assert(w.isLateBound(e.getParseTreeNode(t))),Y(t.name.expression,i),u||(x=r),p=void 0})(r),X(r)&&(i=n),o&&!u&&(x=a),c&&(u=s),t===r?t:t&&e.setOriginalNode(Q(t,r),r)}}function ne(t){if((e=>{switch(e.kind){case 256:case 261:case 265:case 258:case 257:case 259:case 260:case 237:case 266:case 272:case 271:return!0}return!1})(t)&&!se(t)){switch(t.kind){case 272:return e.isSourceFile(t.parent)&&(D=!0),C=!0,k.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,Z(t,t.moduleSpecifier),e.getResolutionModeOverrideForClause(t.assertClause)?t.assertClause:void 0);case 271:if(e.isSourceFile(t.parent)&&(D=!0),C=!0,79===t.expression.kind)return t;var r=k.createUniqueName("_default",16);x=()=>({diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}),_=t;var i=k.createVariableDeclaration(r,void 0,w.createTypeOfExpression(t.expression,t,n,N),void 0);_=void 0;var a=k.createVariableStatement(E?[k.createModifier(135)]:[],k.createVariableDeclarationList([i],2));return Q(a,t),e.removeAllComments(t),[a,k.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var o=ae(t);return l.set(e.getOriginalNodeId(t),o),t}}function ie(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=k.createModifiersFromModifierFlags(125950&e.getEffectiveModifierFlags(t));return k.updateModifiers(t,r)}function ae(t){if(c)for(;e.orderedRemoveItem(c,t););if(!se(t)){switch(t.kind){case 265:return(t=>{if(w.isDeclarationVisible(t)){if(277===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return k.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.name,k.updateExternalModuleReference(t.moduleReference,Z(t,r)))}var n=x;return x=e.createGetSymbolAccessibilityDiagnosticForNode(t),Y(t.moduleReference,i),x=n,t}})(t);case 266:return(t=>{if(!t.importClause)return k.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Z(t,t.moduleSpecifier),ee(t.assertClause));var r=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Z(t,t.moduleSpecifier),ee(t.assertClause));if(268===t.importClause.namedBindings.kind){var n=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Z(t,t.moduleSpecifier),ee(t.assertClause)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(e=>w.isDeclarationVisible(e)?e:void 0));return i&&i.length||r?k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?k.updateNamedImports(t.importClause.namedBindings,i):void 0),Z(t,t.moduleSpecifier),ee(t.assertClause)):w.isImportRequiredByAugmentation(t)?k.updateImportDeclaration(t,void 0,t.modifiers,void 0,Z(t,t.moduleSpecifier),ee(t.assertClause)):void 0})(t)}if(!(e.isDeclaration(t)&&J(t)||e.isFunctionLike(t)&&w.isImplementationOfOverload(t))){var r;X(t)&&(r=i,i=t);var a=e.canProduceDiagnostics(t),o=x;a&&(x=e.createGetSymbolAccessibilityDiagnosticForNode(t));var s=E;switch(t.kind){case 259:return he(k.updateTypeAliasDeclaration(t,void 0,le(t),t.name,e.visitNodes(t.typeParameters,re,e.isTypeParameterDeclaration),e.visitNode(t.type,re,e.isTypeNode)));case 258:return he(k.updateInterfaceDeclaration(t,void 0,le(t),t.name,q(t,t.typeParameters),de(t.heritageClauses),e.visitNodes(t.members,re)));case 256:var u=he(k.updateFunctionDeclaration(t,void 0,le(t),void 0,t.name,q(t,t.typeParameters),$(t,t.parameters),W(t,t.type),void 0));if(u&&w.isExpandoFunctionDeclaration(t)&&(t=>{var r;if(t.body)return!0;var n=null===(r=t.symbol.declarations)||void 0===r?void 0:r.filter((t=>e.isFunctionDeclaration(t)&&!t.body));return!n||n.indexOf(t)===n.length-1})(t)){var d=w.getPropertiesOfContainerFunction(t),m=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,u.name||k.createIdentifier("_default"),k.createModuleBlock([]),16);e.setParent(m,i),m.locals=e.createSymbolTable(d),m.symbol=d[0].parent;var g=[],h=e.mapDefined(d,(t=>{if(t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)){x=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=w.createTypeOfDeclaration(t.valueDeclaration,m,n,N);x=o;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),s=a?k.getGeneratedNameForNode(t.valueDeclaration):k.createIdentifier(i);a&&g.push([s,i]);var c=k.createVariableDeclaration(s,void 0,r,void 0);return k.createVariableStatement(a?void 0:[k.createToken(93)],k.createVariableDeclarationList([c]))}}));g.length?h.push(k.createExportDeclaration(void 0,void 0,!1,k.createNamedExports(e.map(g,(e=>{var t=e[0],r=e[1];return k.createExportSpecifier(!1,t,r)}))))):h=e.mapDefined(h,(e=>k.updateModifiers(e,0)));var y=k.createModuleDeclaration(void 0,le(t),t.name,k.createModuleBlock(h),16);if(!e.hasEffectiveModifier(u,512))return[u,y];var v=k.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(u)|2),b=k.updateFunctionDeclaration(u,void 0,v,void 0,u.name,u.typeParameters,u.parameters,u.type,void 0),S=k.updateModuleDeclaration(y,void 0,v,y.name,y.body),A=k.createExportAssignment(void 0,void 0,!1,y.name);return e.isSourceFile(t.parent)&&(D=!0),C=!0,[b,S,A]}return u;case 261:E=!1;var F=t.body;if(F&&262===F.kind){var P=T,I=C;C=!1,T=!1;var O=te(e.visitNodes(F.statements,ne));16777216&t.flags&&(T=!1),e.isGlobalScopeAugmentation(t)||(ge=O,e.some(ge,ce))||C||(O=T?k.createNodeArray(f(f([],O,!0),[e.createEmptyExports(k)],!1)):e.visitNodes(O,ie));var M=k.updateModuleBlock(F,O);E=s,T=P,C=I;var R=le(t);return he(k.updateModuleDeclaration(t,void 0,R,e.isExternalModuleAugmentation(t)?Z(t,t.name):t.name,M))}E=s,R=le(t),E=!1,e.visitNode(F,ne);var L=e.getOriginalNodeId(F);return M=l.get(L),l.delete(L),he(k.updateModuleDeclaration(t,void 0,R,t.name,M));case 257:p=t.name,_=t,v=k.createNodeArray(le(t));var B=q(t,t.typeParameters),j=e.getFirstConstructorWithBody(t),U=void 0;if(j){var V=x;U=e.compact(e.flatMap(j.parameters,(t=>{if(e.hasSyntacticModifier(t,16476)&&!se(t))return x=e.createGetSymbolAccessibilityDiagnosticForNode(t),79===t.name.kind?Q(k.createPropertyDeclaration(void 0,le(t),t.name,t.questionToken,W(t,t.type),z(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(k.createPropertyDeclaration(void 0,le(t),s.name,void 0,W(s,void 0),void 0)))}return i}(t.name)}))),x=V}var K=e.some(t.members,(t=>!!t.name&&e.isPrivateIdentifier(t.name)))?[k.createPropertyDeclaration(void 0,void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,G=e.concatenate(e.concatenate(K,U),e.visitNodes(t.members,re)),ae=k.createNodeArray(G),oe=e.getEffectiveBaseTypeNode(t);if(oe&&!e.isEntityNameExpression(oe.expression)&&104!==oe.expression.kind){var ue=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",pe=k.createUniqueName("".concat(ue,"_base"),16);x=()=>({diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:oe,typeName:t.name});var _e=k.createVariableDeclaration(pe,void 0,w.createTypeOfExpression(oe.expression,t,n,N),void 0),fe=k.createVariableStatement(E?[k.createModifier(135)]:[],k.createVariableDeclarationList([_e],2)),me=k.createNodeArray(e.map(t.heritageClauses,(t=>{if(94===t.token){var r=x;x=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=k.updateHeritageClause(t,e.map(t.types,(t=>k.updateExpressionWithTypeArguments(t,pe,e.visitNodes(t.typeArguments,re)))));return x=r,n}return k.updateHeritageClause(t,e.visitNodes(k.createNodeArray(e.filter(t.types,(t=>e.isEntityNameExpression(t.expression)||104===t.expression.kind))),re))})));return[fe,he(k.updateClassDeclaration(t,void 0,v,t.name,B,me,ae))]}return me=de(t.heritageClauses),he(k.updateClassDeclaration(t,void 0,v,t.name,B,me,ae));case 237:return he((t=>{if(e.forEach(t.declarationList.declarations,H)){var r=e.visitNodes(t.declarationList.declarations,re);if(e.length(r))return k.updateVariableStatement(t,k.createNodeArray(le(t)),k.updateVariableDeclarationList(t.declarationList,r))}})(t));case 260:return he(k.updateEnumDeclaration(t,void 0,k.createNodeArray(le(t)),t.name,k.createNodeArray(e.mapDefined(t.members,(e=>{if(!se(e)){var t=w.getConstantValue(e);return Q(k.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?k.createStringLiteral(t):k.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[t.kind]))}}var ge;function he(n){return X(t)&&(i=r),a&&(x=o),261===t.kind&&(E=s),n===t?n:(_=void 0,p=void 0,n&&e.setOriginalNode(Q(n,t),t))}}function oe(t){return e.flatten(e.mapDefined(t.elements,(t=>(t=>{if(227!==t.kind&&t.name){if(!H(t))return;return e.isBindingPattern(t.name)?oe(t.name):k.createVariableDeclaration(t.name,void 0,W(t,void 0),void 0)}})(t))))}function se(e){return!!I&&!!e&&r(e,g)}function ce(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function le(t){var r=e.getEffectiveModifierFlags(t),n=(t=>{var r=109307,n=E&&!(e=>258===e.kind)(t)?2:0,i=305===t.parent.kind;return(!i||S&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0),a(t,r,n)})(t);return r===n?t.modifiers:k.createModifiersFromModifierFlags(n)}function ue(t,r){var n=o(t);return n||t===r.firstAccessor||(n=o(r.firstAccessor),x=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=o(r.secondAccessor),x=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function de(t){return k.createNodeArray(e.filter(e.map(t,(t=>k.updateHeritageClause(t,e.visitNodes(k.createNodeArray(e.filter(t.types,(r=>e.isEntityNameExpression(r.expression)||94===t.token&&104===r.expression.kind))),re)))),(e=>e.types&&!!e.types.length)))}}function a(t,r,n){void 0===r&&(r=125947),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function o(e){if(e)return 172===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=i})(p),(e=>{var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),s=[];return e.addRange(s,r&&e.map(r.before,o)),s.push(e.transformTypeScript),s.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&s.push(e.transformJsx),i<99&&s.push(e.transformESNext),i<8&&s.push(e.transformES2021),i<7&&s.push(e.transformES2020),i<6&&s.push(e.transformES2019),i<5&&s.push(e.transformES2018),i<4&&s.push(e.transformES2017),i<3&&s.push(e.transformES2016),i<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push((t=>{switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}})(a)),i<1&&s.push(e.transformES5),e.addRange(s,r&&e.map(r.after,o)),s}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,s)),r}function a(t,r){return n=>{var i=t(n);return"function"==typeof i?r(n,i):(t=>r=>e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r))(i)}}function o(t){return a(t,e.chainBundle)}function s(e){return a(e,((e,t)=>t))}function c(e,t){return t}function l(e,t,r){r(e,t)}!(e=>{e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"})(t||(t={})),(e=>{e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"})(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=(e,t,r)=>({scriptTransformers:n(e,t,r),declarationTransformers:i(t)}),e.noEmitSubstitution=c,e.noEmitNotification=l,e.transformNodes=(t,r,n,i,a,o,s)=>{for(var u,d,p,_,m,g=new Array(355),h=0,y=[],v=[],b=[],x=[],E=0,S=!1,D=[],T=0,C=c,k=l,A=0,N=[],w={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>t,getEmitHost:()=>r,getEmitHelperFactory:e.memoize((()=>e.createEmitHelperFactory(w))),startLexicalEnvironment(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),y[E]=u,v[E]=d,b[E]=p,x[E]=h,E++,u=void 0,d=void 0,p=void 0,h=0},suspendLexicalEnvironment(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),u||d||p){if(d&&(t=f([],d,!0)),u){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=f(t?f([],t,!0):[],p,!0))}return E--,u=y[E],d=v[E],p=b[E],h=x[E],0===E&&(y=[],v=[],b=[],x=[]),t},setLexicalEnvironmentFlags(e,t){h=t?h|e:h&~e},getLexicalEnvironmentFlags:()=>h,hoistVariableDeclaration(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);u?u.push(r):u=[r],1&h&&(h|=2)},hoistFunctionDeclaration(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},startBlockScope(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),D[T]=_,T++,_=void 0},endBlockScope(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(_)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(_.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return T--,_=D[T],0===T&&(D=[]),t},addBlockScopedVariable(t){e.Debug.assert(T>0,"Cannot add a block scoped variable outside of an iteration body."),(_||(_=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++)t(i[n]);m=e.append(m,r)},readEmitHelpers(){e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=m;return m=void 0,t},enableSubstitution(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:U,isEmitNotificationEnabled:V,get onSubstituteNode(){return C},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),C=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic(e){N.push(e)}},F=0,P=a;F<P.length;F++){var I=P[F];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(I)))}e.performance.mark("beforeTransform");var O=o.map((e=>e(w))),M=e=>{for(var t=0,r=O;t<r.length;t++)e=(0,r[t])(e);return e};A=1;for(var R=[],L=0,B=a;L<B.length;L++)I=B[L],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",305===I.kind?{path:I.path}:{kind:I.kind,pos:I.pos,end:I.end}),R.push((s?M:j)(I)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return A=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:R,substituteNode:(t,r)=>(e.Debug.assert(A<3,"Cannot substitute a node after the result is disposed."),r&&U(r)&&C(t,r)||r),emitNodeWithNotification(t,r,n){e.Debug.assert(A<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(V(r)?k(t,r,n):n(t,r))},isEmitNotificationEnabled:V,dispose(){if(A<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}u=void 0,y=void 0,d=void 0,v=void 0,C=void 0,k=void 0,m=void 0,A=3}},diagnostics:N};function j(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:M(t)}function U(t){return 0!=(1&g[t.kind])&&0==(4&e.getEmitFlags(t))}function V(t){return 0!=(2&g[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:()=>({}),getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:c,onEmitNode:l,addDiagnostic:e.noop}})(p),(e=>{var t,r,n=(()=>{var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e})();function i(t,r,n,i,o,c){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(m=r(s(p,t,i),p))return m}}else{if(!o)for(var _=0,f=l;_<f.length;_++){var m,g=f[_];if(m=r(s(g,t,i),g))return m}if(c){var h=a(u);if(h)return r({buildInfoPath:h},void 0)}}}function a(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function o(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,o=i&&c(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:a(t)}}function s(t,r,n){var i=r.getCompilerOptions();if(306===t.kind)return o(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,l(t.fileName,i)),s=e.isJsonSourceFile(t),u=s&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),d=i.emitDeclarationOnly||u?void 0:a,p=!d||e.isJsonSourceFile(t)?void 0:c(d,i),_=n||e.getEmitDeclarations(i)&&!s?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:_,declarationMapPath:_&&e.getAreDeclarationMapsEnabled(i)?_+".map":void 0,buildInfoPath:void 0}}function c(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function l(t,r){return e.fileExtensionIs(t,".json")?".json":1===r.jsx&&e.fileExtensionIsOneOf(t,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(t,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(t,[".cts",".cjs"])?".cjs":".js"}function u(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():y(r,n),t,n)):t}function d(t,r,n,i){return e.changeExtension(u(t,r,n,r.options.declarationDir||r.options.outDir,i),e.getDeclarationEmitExtensionForPath(t))}function p(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(u(t,r,n,r.options.outDir,i),l(t,r.options));return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function _(){var t;return{addOutput(e){e&&(t||(t=[])).push(e)},getOutputs:()=>t||e.emptyArray}}function m(e,t){var r=o(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,s=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(s),t(c)}function g(t,r,n,i,a){if(!e.isDeclarationFileName(r)){var o=p(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i("".concat(o,".map")),e.getEmitDeclarations(t.options))){var s=d(r,t,n,a);i(s),t.options.declarationMap&&i("".concat(s,".map"))}}}function h(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function y(t,r){var n=t.options,i=t.fileNames;return h(n,(()=>e.filter(i,(t=>!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(t))))),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function v(t,r,n,a,o,s,c){var l,u,d=a.scriptTransformers,p=a.declarationTransformers,_=r.getCompilerOptions(),f=_.sourceMap||_.inlineSourceMap||e.getAreDeclarationMapsEnabled(_)?[]:void 0,m=_.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),h=e.getNewLineCharacter(_,(()=>r.getNewLine())),y=e.createTextWriter(h),v=e.performance.createTimer("printTime","beforePrint","afterPrint"),x=v.enter,S=v.exit,D=!1;return x(),i(r,((i,a)=>{var s,f=i.jsFilePath,h=i.sourceMapFilePath,y=i.declarationFilePath,v=i.declarationMapPath,x=i.buildInfoPath;function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}x&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(x,r.getCurrentDirectory())),l={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((t=>S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:f}),((n,i,a,s)=>{if(n&&!o&&i)if(i&&r.isEmitBlocked(i)||_.noEmit)D=!0;else{var c=e.transformNodes(t,r,e.factory,_,[n],d,!1),u=E({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),C(i,a,c.transformed[0],u,_),c.dispose(),l&&(l.js=u.bundleFileInfo)}})(a,f,h,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:y}),((n,i,a,s)=>{if(n)if(i){var d=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?d:e.filter(d,e.isSourceFileNotJson),m=e.outFile(_)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(_)&&f.forEach(T);var h=e.transformNodes(t,r,e.factory,_,m,p,!1);if(e.length(h.diagnostics))for(var y=0,v=h.diagnostics;y<v.length;y++){var b=v[y];g.add(b)}var x=E({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:h.emitNodeWithNotification,isEmitNotificationEnabled:h.isEmitNotificationEnabled,substituteNode:h.substituteNode}),S=!!h.diagnostics&&!!h.diagnostics.length||!!r.isEmitBlocked(i)||!!_.noEmit;if(D=D||S,(!S||c)&&(e.Debug.assert(1===h.transformed.length,"Should only see one output from the decl transform"),C(i,a,h.transformed[0],x,{sourceMap:!c&&_.declarationMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics}),c&&305===h.transformed[0].kind)){var k=h.transformed[0];u=k.exportedModulesFromDeclarationEmit}h.dispose(),l&&(l.dts=x.bundleFileInfo)}else(o||_.emitDeclarationOnly)&&(D=!0)})(a,y,v,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:x}),((t,i)=>{if(i&&!n&&!D){var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))D=!0;else{var o=e.version;e.writeFile(r,g,i,b({bundle:t,program:a,version:o}),!1)}}})(l,x),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!D&&m&&(o||(f&&m.push(f),h&&m.push(h),x&&m.push(x)),y&&m.push(y),v&&m.push(v))}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:D,diagnostics:g.getDiagnostics(),emittedFiles:m,sourceMaps:f,exportedModulesFromDeclarationEmit:u};function T(r){e.isExportAssignment(r)?79===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,T)}function C(t,n,i,a,o){var s,c,l=306===i.kind?i:void 0,u=305===i.kind?i:void 0,d=l?l.sourceFiles:[u];if(((t,r)=>(t.sourceMap||t.inlineSourceMap)&&(305!==r.kind||!e.fileExtensionIs(r.fileName,".json")))(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),(t=>{var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r})(o),((t,n,i)=>{if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))})(o,t,u),o)),l?a.writeBundle(l,y,s):a.writeFile(u,y,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var p=((t,n,i,a,o)=>{if(t.inlineSourceMap){var s=n.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,".concat(c)}var l=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var u=e.normalizeSlashes(t.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,u))),0===e.getRootLength(u)?(u=e.combinePaths(r.getCommonSourceDirectory(),u),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,l),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(u,l))}return encodeURI(l)})(o,s,t,n,u);if(p&&(y.isAtStartOfLine()||y.rawWrite(h),c=y.getTextPos(),y.writeComment("//# ".concat("sourceMappingURL","=").concat(p))),n){var m=s.toString();e.writeFile(r,g,n,m,!1,d)}}else y.writeLine();e.writeFile(r,g,t,y.getText(),!!_.emitBOM,d,{sourceMapUrlPos:c}),y.clear()}}function b(e){return JSON.stringify(e)}function x(e){return JSON.parse(e)}function E(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x,E,C=r.hasGlobalName,k=r.onEmitNode,A=void 0===k?e.noEmitNotification:k,N=r.isEmitNotificationEnabled,w=r.substituteNode,F=void 0===w?e.noEmitSubstitution:w,P=r.onBeforeEmitNode,I=r.onAfterEmitNode,O=r.onBeforeEmitNodeArray,M=r.onAfterEmitNodeArray,R=r.onBeforeEmitToken,L=r.onAfterEmitToken,B=!!t.extendedDiagnostics,j=e.getNewLineCharacter(t),U=e.getEmitModuleKind(t),V=new e.Map,K=t.preserveSourceNewlines,z=e=>{_.write(e)},W=t.writeBundleFileInfo?{sections:[]}:void 0,J=W?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,H=t.recordInternalSection,$=0,G="text",q=!0,X=-1,Y=-1,Q=-1,Z=-1,ee=-1,te=!1,re=!!t.removeComments,ne=e.performance.createTimerIf(B,"commentTime","beforeComment","afterComment"),ie=ne.enter,ae=ne.exit,oe=e.factory.parenthesizer,se={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},ce=(()=>{return e.createBinaryExpressionTrampoline(((e,t)=>{if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=K,t.containerPosStack[t.stackIndex]=Q,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;var r=t.shouldEmitCommentsStack[t.stackIndex]=Oe(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=Me(e);null==P||P(e),r&&Lr(e),n&&on(e),Fe(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),((e,r,n)=>t(e,n,"left")),((e,t,r)=>{var n=27!==e.kind,i=yr(r,r.left,e),a=yr(r,e,r.right);lr(i,n),qr(e.pos),ar(e,101===e.kind?Gt:qt),Yr(e.end,!0),lr(a,!0)}),((e,r,n)=>t(e,n,"right")),((e,t)=>{if(ur(yr(e,e.left,e.operatorToken),yr(e,e.operatorToken,e.right)),t.stackIndex>0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(r),s&&sn(e),o&&Br(e,n,i,a),null==I||I(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Re(0,1,t);if(a===Ve&&(e.Debug.assertIsDefined(x),a=Le(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===Rr||a===an||a===je)&&e.isBinaryExpression(t))return t;E=i,a(1,t)}})();return Te(),{printNode(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 305:return ue(r);case 306:return le(r);case 307:return i=r,a=be(),o=_,De(a,void 0),Ee(4,i,void 0),Te(),_=o,xe()}var i,a,o;return de(t,r,n,be()),xe()},printList:(e,t,r)=>(pe(e,t,r,be()),xe()),printFile:ue,printBundle:le,writeNode:de,writeList:pe,writeFile:ve,writeBundle:ye,bundleFileInfo:W};function le(e){return ye(e,be(),void 0),xe()}function ue(e){return ve(e,be(),void 0),xe()}function de(e,t,r,n){var i=_;De(n,void 0),Ee(e,t,r),Te(),_=i}function pe(e,t,r,n){var i=_;De(n,void 0),r&&Se(r),Vt(void 0,t,e),Te(),_=i}function _e(){return _.getTextPosWithWriteLine?_.getTextPosWithWriteLine():_.getTextPos()}function fe(t,r,n){var i=e.lastOrUndefined(W.sections);i&&i.kind===n?i.end=r:W.sections.push({pos:t,end:r,kind:n})}function me(t){if(H&&W&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==G){var r=G;return he(_.getTextPos()),$=_e(),G="internal",r}}function ge(e){e&&(he(_.getTextPos()),$=_e(),G=e)}function he(e){return $<e&&(fe($,e,G),!0)}function ye(r,n,i){var a;m=!1;var o=_;De(n,i),kt(r),Ct(r),Ke(r),(t=>{Et(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)ke(o[a]),tr()}})(r);for(var s=0,c=r.prepends;s<c.length;s++){var l=c[s];tr();var u=_.getTextPos(),d=W&&W.sections;if(d&&(W.sections=[]),Ee(4,l,void 0),W){var p=W.sections;W.sections=d,l.oldFileOfCurrentEmit?(a=W.sections).push.apply(a,p):(p.forEach((t=>e.Debug.assert(e.isBundleFileTextLike(t)))),W.sections.push({pos:u,end:_.getTextPos(),kind:"prepend",data:J(l.fileName),texts:p}))}}$=_e();for(var f=0,g=r.sourceFiles;f<g.length;f++){var h=g[f];Ee(0,h,h)}if(W&&r.sourceFiles.length&&he(_.getTextPos())){var y=(t=>{for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;n.has(u.expression.text)||(n.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r})(r);y&&(W.sources||(W.sources={}),W.sources.prologues=y);var v=(r=>{var n;if(U!==e.ModuleKind.None&&!t.noEmitHelpers){for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=ze(s);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];p.scoped||c||i.get(p.name)||(i.set(p.name,!0),(n||(n=[])).push(p.name))}}return n}})(r);v&&(W.sources||(W.sources={}),W.sources.helpers=v)}Te(),_=o}function ve(e,t,r){m=!0;var n=_;De(t,r),kt(e),Ct(e),Ee(0,e,e),Te(),_=n}function be(){return f||(f=e.createTextWriter(j))}function xe(){var e=f.getText();return f.clear(),e}function Ee(e,t,r){r&&Se(r),Ie(e,t,void 0)}function Se(e){i=e,v=void 0,b=void 0,e&&dn(e)}function De(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),g=n,q=!(_=r)||!g}function Te(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],i=void 0,v=void 0,b=void 0,De(void 0,void 0)}function Ce(){return v||(v=e.getLineStarts(e.Debug.checkDefined(i)))}function ke(e,t){if(void 0!==e){var r=me(e);Ie(4,e,t),ge(r)}}function Ae(e){void 0!==e&&Ie(2,e,void 0)}function Ne(e,t){void 0!==e&&Ie(1,e,t)}function we(t){Ie(e.isStringLiteral(t)?6:4,t)}function Fe(t){K&&134217728&e.getEmitFlags(t)&&(K=!1)}function Pe(e){K=e}function Ie(e,t,r){E=r,Re(0,e,t)(e,t),E=void 0}function Oe(t){return!re&&!e.isSourceFile(t)}function Me(t){return!(q||e.isSourceFile(t)||e.isInJsonFile(t)||e.isUnparsedSource(t)||e.isUnparsedPrepend(t))}function Re(t,r,n){switch(t){case 0:if(A!==e.noEmitNotification&&(!N||N(n)))return Be;case 1:if(F!==e.noEmitSubstitution&&(x=F(r,n)||n)!==n)return E&&(x=E(x)),Ve;case 2:if(Oe(n))return Rr;case 3:if(Me(n))return an;case 4:return je;default:return e.Debug.assertNever(t)}}function Le(e,t,r){return Re(e+1,t,r)}function Be(e,t){var r=Le(0,e,t);A(e,t,r)}function je(e,t){if(null==P||P(t),K){var r=K;Fe(t),Ue(e,t),Pe(r)}else Ue(e,t);null==I||I(t),E=void 0}function Ue(t,r,n){if(void 0===n&&(n=!0),n){var a=e.getSnippetElement(r);if(a)return((t,r,n)=>{switch(n.kind){case 1:!((e,t,r)=>{er("${".concat(r.order,":")),Ue(e,t,!1),er("}")})(t,r,n);break;case 0:!((t,r,n)=>{e.Debug.assert(236===r.kind,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(r.kind),".")),e.Debug.assert(5!==t,"A tab stop cannot be attached to an embedded statement."),er("$".concat(n.order))})(t,r,n)}})(t,r,a)}if(0===t)return xt(e.cast(r,e.isSourceFile));if(2===t)return He(e.cast(r,e.isIdentifier));if(6===t)return We(e.cast(r,e.isStringLiteral),!0);if(3===t)return(e=>{ke(e.name),Qt(),Gt("in"),Qt(),ke(e.constraint)})(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Ye(!0);if(4===t){switch(r.kind){case 15:case 16:case 17:return We(r,!1);case 79:return He(r);case 80:return $e(r);case 161:return(e=>{(e=>{79===e.kind?Ne(e):ke(e)})(e.left),Ht("."),ke(e.right)})(r);case 162:return(e=>{Ht("["),Ne(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Ht("]")})(r);case 163:return(e=>{Nt(e,e.modifiers),ke(e.name),e.constraint&&(Qt(),Gt("extends"),Qt(),ke(e.constraint)),e.default&&(Qt(),qt("="),Qt(),ke(e.default))})(r);case 164:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),ke(e.dotDotDotToken),At(e.name,Xt),ke(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?ke(e.type):wt(e.type),Ft(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 165:return d=r,Ht("@"),void Ne(d.expression,oe.parenthesizeLeftSideOfAccess);case 166:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),At(e.name,Zt),ke(e.questionToken),wt(e.type),$t()})(r);case 167:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),ke(e.name),ke(e.questionToken),ke(e.exclamationToken),wt(e.type),Ft(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),$t()})(r);case 168:return(e=>{Sr(e),Mt(e,e.decorators),Nt(e,e.modifiers),ke(e.name),ke(e.questionToken),Lt(e,e.typeParameters),Bt(e,e.parameters),wt(e.type),$t(),Dr(e)})(r);case 169:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),ke(e.asteriskToken),ke(e.name),ke(e.questionToken),ot(e,st)})(r);case 170:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),Gt("static"),ct(e.body)})(r);case 171:return(e=>{Nt(e,e.modifiers),Gt("constructor"),ot(e,st)})(r);case 172:case 173:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),Gt(172===e.kind?"get":"set"),Qt(),ke(e.name),ot(e,st)})(r);case 174:return(e=>{Sr(e),Mt(e,e.decorators),Nt(e,e.modifiers),Lt(e,e.typeParameters),Bt(e,e.parameters),wt(e.type),$t(),Dr(e)})(r);case 175:return(e=>{Sr(e),Mt(e,e.decorators),Nt(e,e.modifiers),Gt("new"),Qt(),Lt(e,e.typeParameters),Bt(e,e.parameters),wt(e.type),$t(),Dr(e)})(r);case 176:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),Vt(e,e.parameters,8848),wt(e.type),$t()})(r);case 177:return(e=>{e.assertsModifier&&(ke(e.assertsModifier),Qt()),ke(e.parameterName),e.type&&(Qt(),Gt("is"),Qt(),ke(e.type))})(r);case 178:return(e=>{ke(e.typeName),Rt(e,e.typeArguments)})(r);case 179:return(e=>{Sr(e),Lt(e,e.typeParameters),jt(e,e.parameters),Qt(),Ht("=>"),Qt(),ke(e.type),Dr(e)})(r);case 180:return(e=>{Sr(e),Nt(e,e.modifiers),Gt("new"),Qt(),Lt(e,e.typeParameters),Bt(e,e.parameters),Qt(),Ht("=>"),Qt(),ke(e.type),Dr(e)})(r);case 181:return(e=>{Gt("typeof"),Qt(),ke(e.exprName),Rt(e,e.typeArguments)})(r);case 182:return(t=>{Ht("{");var r=1&e.getEmitFlags(t)?768:32897;Vt(t,t.members,524288|r),Ht("}")})(r);case 183:return(e=>{ke(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Ht("["),Ht("]")})(r);case 184:return(t=>{et(22,t.pos,Ht,t);var r=1&e.getEmitFlags(t)?528:657;Vt(t,t.elements,524288|r,oe.parenthesizeElementTypeOfTupleType),et(23,t.elements.end,Ht,t)})(r);case 185:return(e=>{ke(e.type,oe.parenthesizeTypeOfOptionalType),Ht("?")})(r);case 187:return(e=>{Vt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)})(r);case 188:return(e=>{Vt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)})(r);case 189:return(e=>{ke(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),Qt(),Gt("extends"),Qt(),ke(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),Qt(),Ht("?"),Qt(),ke(e.trueType),Qt(),Ht(":"),Qt(),ke(e.falseType)})(r);case 190:return(e=>{Gt("infer"),Qt(),ke(e.typeParameter)})(r);case 191:return(e=>{Ht("("),ke(e.type),Ht(")")})(r);case 228:return qe(r);case 192:return void Gt("this");case 193:return(e=>{or(e.operator,Gt),Qt();var t=145===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;ke(e.type,t)})(r);case 194:return(e=>{ke(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Ht("["),ke(e.indexType),Ht("]")})(r);case 195:return(t=>{var r=e.getEmitFlags(t);Ht("{"),1&r?Qt():(tr(),rr()),t.readonlyToken&&(ke(t.readonlyToken),145!==t.readonlyToken.kind&&Gt("readonly"),Qt()),Ht("["),Ie(3,t.typeParameter),t.nameType&&(Qt(),Gt("as"),Qt(),ke(t.nameType)),Ht("]"),t.questionToken&&(ke(t.questionToken),57!==t.questionToken.kind&&Ht("?")),Ht(":"),Qt(),ke(t.type),$t(),1&r?Qt():(tr(),nr()),Vt(t,t.members,2),Ht("}")})(r);case 196:return(e=>{Ne(e.literal)})(r);case 197:return(e=>{ke(e.dotDotDotToken),ke(e.name),ke(e.questionToken),et(58,e.name.end,Ht,e),Qt(),ke(e.type)})(r);case 198:return(e=>{ke(e.head),Vt(e,e.templateSpans,262144)})(r);case 199:return(e=>{ke(e.type),ke(e.literal)})(r);case 200:return(e=>{if(e.isTypeOf&&(Gt("typeof"),Qt()),Gt("import"),Ht("("),ke(e.argument),e.assertions){Ht(","),Qt(),Ht("{"),Qt(),Gt("assert"),Ht(":"),Qt();var t=e.assertions.assertClause.elements;Vt(e.assertions.assertClause,t,526226),Qt(),Ht("}")}Ht(")"),e.qualifier&&(Ht("."),ke(e.qualifier)),Rt(e,e.typeArguments)})(r);case 201:return(e=>{Ht("{"),Vt(e,e.elements,525136),Ht("}")})(r);case 202:return(e=>{Ht("["),Vt(e,e.elements,524880),Ht("]")})(r);case 203:return(e=>{ke(e.dotDotDotToken),e.propertyName&&(ke(e.propertyName),Ht(":"),Qt()),ke(e.name),Ft(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 233:return(e=>{Ne(e.expression),ke(e.literal)})(r);case 234:return void $t();case 235:return(e=>{Xe(e,!e.multiLine&&vr(e))})(r);case 237:return(e=>{Nt(e,e.modifiers),ke(e.declarationList),$t()})(r);case 236:return Ye(!1);case 238:return(t=>{Ne(t.expression,oe.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||$t()})(r);case 239:return(e=>{var t=et(99,e.pos,Gt,e);Qt(),et(20,t,Ht,e),Ne(e.expression),et(21,e.expression.end,Ht,e),Ot(e,e.thenStatement),e.elseStatement&&(sr(e,e.thenStatement,e.elseStatement),et(91,e.thenStatement.end,Gt,e),239===e.elseStatement.kind?(Qt(),ke(e.elseStatement)):Ot(e,e.elseStatement))})(r);case 240:return(t=>{et(90,t.pos,Gt,t),Ot(t,t.statement),e.isBlock(t.statement)&&!K?Qt():sr(t,t.statement,t.expression),Qe(t,t.statement.end),$t()})(r);case 241:return(e=>{Qe(e,e.pos),Ot(e,e.statement)})(r);case 242:return(e=>{var t=et(97,e.pos,Gt,e);Qt();var r=et(20,t,Ht,e);Ze(e.initializer),r=et(26,e.initializer?e.initializer.end:r,Ht,e),It(e.condition),r=et(26,e.condition?e.condition.end:r,Ht,e),It(e.incrementor),et(21,e.incrementor?e.incrementor.end:r,Ht,e),Ot(e,e.statement)})(r);case 243:return(e=>{var t=et(97,e.pos,Gt,e);Qt(),et(20,t,Ht,e),Ze(e.initializer),Qt(),et(101,e.initializer.end,Gt,e),Qt(),Ne(e.expression),et(21,e.expression.end,Ht,e),Ot(e,e.statement)})(r);case 244:return(e=>{var t=et(97,e.pos,Gt,e);Qt(),(e=>{e&&(ke(e),Qt())})(e.awaitModifier),et(20,t,Ht,e),Ze(e.initializer),Qt(),et(160,e.initializer.end,Gt,e),Qt(),Ne(e.expression),et(21,e.expression.end,Ht,e),Ot(e,e.statement)})(r);case 245:return(e=>{et(86,e.pos,Gt,e),Pt(e.label),$t()})(r);case 246:return(e=>{et(81,e.pos,Gt,e),Pt(e.label),$t()})(r);case 247:return(e=>{et(105,e.pos,Gt,e),It(e.expression&&nt(e.expression),nt),$t()})(r);case 248:return(e=>{var t=et(116,e.pos,Gt,e);Qt(),et(20,t,Ht,e),Ne(e.expression),et(21,e.expression.end,Ht,e),Ot(e,e.statement)})(r);case 249:return(e=>{var t=et(107,e.pos,Gt,e);Qt(),et(20,t,Ht,e),Ne(e.expression),et(21,e.expression.end,Ht,e),Qt(),ke(e.caseBlock)})(r);case 250:return(e=>{ke(e.label),et(58,e.label.end,Ht,e),Qt(),ke(e.statement)})(r);case 251:return(e=>{et(109,e.pos,Gt,e),It(nt(e.expression),nt),$t()})(r);case 252:return(e=>{et(111,e.pos,Gt,e),Qt(),ke(e.tryBlock),e.catchClause&&(sr(e,e.tryBlock,e.catchClause),ke(e.catchClause)),e.finallyBlock&&(sr(e,e.catchClause||e.tryBlock,e.finallyBlock),et(96,(e.catchClause||e.tryBlock).end,Gt,e),Qt(),ke(e.finallyBlock))})(r);case 253:return(e=>{ir(87,e.pos,Gt),$t()})(r);case 254:return(e=>{var t,r,n,i,a;ke(e.name),ke(e.exclamationToken),wt(e.type),Ft(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 255:return(t=>{Gt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Qt(),Vt(t,t.declarations,528)})(r);case 256:return(e=>{at(e)})(r);case 257:return(e=>{dt(e)})(r);case 258:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),Gt("interface"),Qt(),ke(e.name),Lt(e,e.typeParameters),Vt(e,e.heritageClauses,512),Qt(),Ht("{"),Vt(e,e.members,129),Ht("}")})(r);case 259:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),Gt("type"),Qt(),ke(e.name),Lt(e,e.typeParameters),Qt(),Ht("="),Qt(),ke(e.type),$t()})(r);case 260:return(e=>{Nt(e,e.modifiers),Gt("enum"),Qt(),ke(e.name),Qt(),Ht("{"),Vt(e,e.members,145),Ht("}")})(r);case 261:return(t=>{Nt(t,t.modifiers),1024&~t.flags&&(Gt(16&t.flags?"namespace":"module"),Qt()),ke(t.name);var r=t.body;if(!r)return $t();for(;r&&e.isModuleDeclaration(r);)Ht("."),ke(r.name),r=r.body;Qt(),ke(r)})(r);case 262:return(t=>{Sr(t),e.forEach(t.statements,Cr),Xe(t,vr(t)),Dr(t)})(r);case 263:return(e=>{et(18,e.pos,Ht,e),Vt(e,e.clauses,129),et(19,e.clauses.end,Ht,e,!0)})(r);case 264:return(e=>{var t=et(93,e.pos,Gt,e);Qt(),t=et(127,t,Gt,e),Qt(),t=et(142,t,Gt,e),Qt(),ke(e.name),$t()})(r);case 265:return(e=>{Nt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,Gt,e),Qt(),e.isTypeOnly&&(et(152,e.pos,Gt,e),Qt()),ke(e.name),Qt(),et(63,e.name.end,Ht,e),Qt(),(e=>{79===e.kind?Ne(e):ke(e)})(e.moduleReference),$t()})(r);case 266:return(e=>{Nt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,Gt,e),Qt(),e.importClause&&(ke(e.importClause),Qt(),et(156,e.importClause.end,Gt,e),Qt()),Ne(e.moduleSpecifier),e.assertClause&&Pt(e.assertClause),$t()})(r);case 267:return(e=>{e.isTypeOnly&&(et(152,e.pos,Gt,e),Qt()),ke(e.name),e.name&&e.namedBindings&&(et(27,e.name.end,Ht,e),Qt()),ke(e.namedBindings)})(r);case 268:return(e=>{var t=et(41,e.pos,Ht,e);Qt(),et(127,t,Gt,e),Qt(),ke(e.name)})(r);case 274:return(e=>{var t=et(41,e.pos,Ht,e);Qt(),et(127,t,Gt,e),Qt(),ke(e.name)})(r);case 269:return(e=>{pt(e)})(r);case 270:return(e=>{_t(e)})(r);case 271:return(e=>{var t=et(93,e.pos,Gt,e);Qt(),e.isExportEquals?et(63,t,qt,e):et(88,t,Gt,e),Qt(),Ne(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(63):oe.parenthesizeExpressionOfExportDefault),$t()})(r);case 272:return(e=>{var t=et(93,e.pos,Gt,e);Qt(),e.isTypeOnly&&(t=et(152,t,Gt,e),Qt()),e.exportClause?ke(e.exportClause):t=et(41,t,Ht,e),e.moduleSpecifier&&(Qt(),et(156,e.exportClause?e.exportClause.end:t,Gt,e),Qt(),Ne(e.moduleSpecifier)),e.assertClause&&Pt(e.assertClause),$t()})(r);case 273:return(e=>{pt(e)})(r);case 275:return(e=>{_t(e)})(r);case 293:return(e=>{et(129,e.pos,Gt,e),Qt(),Vt(e,e.elements,526226)})(r);case 294:return(t=>{ke(t.name),Ht(":"),Qt();var r=t.value;0==(512&e.getEmitFlags(r))&&Yr(e.getCommentRange(r).pos),ke(r)})(r);case 276:return;case 277:return(e=>{Gt("require"),Ht("("),Ne(e.expression),Ht(")")})(r);case 11:return(e=>{_.writeLiteral(e.text)})(r);case 280:case 283:return(t=>{if(Ht("<"),e.isJsxOpeningElement(t)){var r=mr(t.tagName,t);ft(t.tagName),Rt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Qt(),ke(t.attributes),gr(t.attributes,t),ur(r)}Ht(">")})(r);case 281:case 284:return(t=>{Ht("</"),e.isJsxClosingElement(t)&&ft(t.tagName),Ht(">")})(r);case 285:return(e=>{ke(e.name),((e,t,r,n)=>{r&&(t("="),n(r))})(0,Ht,e.initializer,we)})(r);case 286:return(e=>{Vt(e,e.properties,262656)})(r);case 287:return(e=>{Ht("{..."),Ne(e.expression),Ht("}")})(r);case 288:return(t=>{var r,n;if(t.expression||!re&&!e.nodeIsSynthesized(t)&&((t=>{var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n=t.pos)||(t=>{var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&_.increaseIndent();var o=et(18,t.pos,Ht,t);ke(t.dotDotDotToken),Ne(t.expression),et(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Ht,t),a&&_.decreaseIndent()}})(r);case 289:return(e=>{et(82,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma),mt(e,e.statements,e.expression.end)})(r);case 290:return(e=>{var t=et(88,e.pos,Gt,e);mt(e,e.statements,t)})(r);case 291:return(e=>{Qt(),or(e.token,Gt),Qt(),Vt(e,e.types,528)})(r);case 292:return(e=>{var t=et(83,e.pos,Gt,e);Qt(),e.variableDeclaration&&(et(20,t,Ht,e),ke(e.variableDeclaration),et(21,e.variableDeclaration.end,Ht,e),Qt()),ke(e.block)})(r);case 296:return(t=>{ke(t.name),Ht(":"),Qt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&Yr(e.getCommentRange(r).pos),Ne(r,oe.parenthesizeExpressionForDisallowedComma)})(r);case 297:return(e=>{ke(e.name),e.objectAssignmentInitializer&&(Qt(),Ht("="),Qt(),Ne(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))})(r);case 298:return(e=>{e.expression&&(et(25,e.pos,Ht,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma))})(r);case 299:return(e=>{ke(e.name),Ft(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)})(r);case 300:return Je(r);case 307:case 301:return(e=>{for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];tr(),ke(n)}})(r);case 302:case 303:return l=r,u=_e(),Je(l),void(W&&fe(u,_.getTextPos(),302===l.kind?"text":"internal"));case 304:return(t=>{var r=_e();if(Je(t),W){var n=e.clone(t.section);n.pos=r,n.end=_.getTextPos(),W.sections.push(n)}})(r);case 305:return xt(r);case 306:return e.Debug.fail("Bundles should be printed using printBundle");case 308:return e.Debug.fail("InputFiles should not be printed");case 309:return bt(r);case 310:return(e=>{Qt(),Ht("{"),ke(e.name),Ht("}")})(r);case 312:return Ht("*");case 313:return Ht("?");case 314:return(e=>{Ht("?"),ke(e.type)})(r);case 315:return(e=>{Ht("!"),ke(e.type)})(r);case 316:return(e=>{ke(e.type),Ht("=")})(r);case 317:return(e=>{Gt("function"),Bt(e,e.parameters),Ht(":"),ke(e.type)})(r);case 186:case 318:return(e=>{Ht("..."),ke(e.type)})(r);case 319:return;case 320:return(t=>{if(z("/**"),t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r)for(var n=0,i=r.split(/\r\n?|\n/g);n<i.length;n++){var a=i[n];tr(),Qt(),Ht("*"),Qt(),z(a)}}t.tags&&(1!==t.tags.length||343!==t.tags[0].kind||t.comment?Vt(t,t.tags,33):(Qt(),ke(t.tags[0]))),Qt(),z("*/")})(r);case 322:return gt(r);case 323:return ht(r);case 327:case 332:case 337:return yt((c=r).tagName),void vt(c.comment);case 328:case 329:return(e=>{yt(e.tagName),Qt(),Ht("{"),ke(e.class),Ht("}"),vt(e.comment)})(r);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return(e=>{yt(e.tagName),e.name&&(Qt(),ke(e.name)),vt(e.comment),ht(e.typeExpression)})(r);case 340:case 347:return yt((s=r).tagName),bt(s.typeExpression),Qt(),s.isBracketed&&Ht("["),ke(s.name),s.isBracketed&&Ht("]"),void vt(s.comment);case 339:case 341:case 342:case 343:return(e=>{yt(e.tagName),bt(e.typeExpression),vt(e.comment)})(r);case 344:return(e=>{yt(e.tagName),bt(e.constraint),Qt(),Vt(e,e.typeParameters,528),vt(e.comment)})(r);case 345:return(e=>{yt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?bt(e.typeExpression):(Qt(),Ht("{"),z("Object"),e.typeExpression.isArrayType&&(Ht("["),Ht("]")),Ht("}"))),e.fullName&&(Qt(),ke(e.fullName)),vt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&gt(e.typeExpression)})(r);case 346:return(e=>{yt(e.tagName),ke(e.name),vt(e.comment)})(r);case 349:case 353:case 352:return}if(e.isExpression(r)&&(t=1,F!==e.noEmitSubstitution)){var o=F(t,r)||r;o!==r&&(r=o,E&&(r=E(r)))}}var s,c,l,u,d;if(1===t)switch(r.kind){case 8:case 9:return(e=>{We(e,!1)})(r);case 10:case 13:case 14:return We(r,!1);case 79:return He(r);case 80:return $e(r);case 204:return(e=>{Kt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)})(r);case 205:return(t=>{e.forEach(t.properties,kr);var r=65536&e.getEmitFlags(t);r&&rr();var n=t.multiLine?65536:0,a=i&&i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Vt(t,t.properties,526226|a|n),r&&nr()})(r);case 206:return(t=>{Ne(t.expression,oe.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=yr(t,t.expression,r),i=yr(t,r,t.name);lr(n,!1),28===r.kind||!(t=>{if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Er(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}})(t.expression)||_.hasTrailingComment()||_.hasTrailingWhitespace()||Ht("."),t.questionDotToken?ke(r):et(r.kind,t.expression.end,Ht,t),lr(i,!1),ke(t.name),ur(n,i)})(r);case 207:return(e=>{Ne(e.expression,oe.parenthesizeLeftSideOfAccess),ke(e.questionDotToken),et(22,e.expression.end,Ht,e),Ne(e.argumentExpression),et(23,e.argumentExpression.end,Ht,e)})(r);case 208:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Ht("("),Wt("0"),Ht(","),Qt()),Ne(t.expression,oe.parenthesizeLeftSideOfAccess),r&&Ht(")"),ke(t.questionDotToken),Rt(t,t.typeArguments),Kt(t,t.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)})(r);case 209:return(e=>{et(103,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeExpressionOfNew),Rt(e,e.typeArguments),Kt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)})(r);case 210:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Ht("("),Wt("0"),Ht(","),Qt()),Ne(t.tag,oe.parenthesizeLeftSideOfAccess),r&&Ht(")"),Rt(t,t.typeArguments),Qt(),Ne(t.template)})(r);case 211:return(e=>{Ht("<"),ke(e.type),Ht(">"),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 212:return(e=>{var t=et(20,e.pos,Ht,e),r=mr(e.expression,e);Ne(e.expression,void 0),gr(e.expression,e),ur(r),et(21,e.expression?e.expression.end:t,Ht,e)})(r);case 213:return(e=>{Ar(e.name),at(e)})(r);case 214:return(e=>{Mt(e,e.decorators),Nt(e,e.modifiers),ot(e,Ge)})(r);case 215:return(e=>{et(89,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 216:return(e=>{et(112,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 217:return(e=>{et(114,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 218:return(e=>{et(132,e.pos,Gt,e),Qt(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)})(r);case 219:return(e=>{or(e.operator,qt),(e=>{var t=e.operand;return 219===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))})(e)&&Qt(),Ne(e.operand,oe.parenthesizeOperandOfPrefixUnary)})(r);case 220:return(e=>{Ne(e.operand,oe.parenthesizeOperandOfPostfixUnary),or(e.operator,qt)})(r);case 221:return ce(r);case 222:return(e=>{var t=yr(e,e.condition,e.questionToken),r=yr(e,e.questionToken,e.whenTrue),n=yr(e,e.whenTrue,e.colonToken),i=yr(e,e.colonToken,e.whenFalse);Ne(e.condition,oe.parenthesizeConditionOfConditionalExpression),lr(t,!0),ke(e.questionToken),lr(r,!0),Ne(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),ur(t,r),lr(n,!0),ke(e.colonToken),lr(i,!0),Ne(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),ur(n,i)})(r);case 223:return(e=>{ke(e.head),Vt(e,e.templateSpans,262144)})(r);case 224:return(e=>{et(125,e.pos,Gt,e),ke(e.asteriskToken),It(e.expression&&nt(e.expression),it)})(r);case 225:return(e=>{et(25,e.pos,Ht,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma)})(r);case 226:return(e=>{Ar(e.name),dt(e)})(r);case 227:return;case 229:return(e=>{Ne(e.expression,void 0),e.type&&(Qt(),Gt("as"),Qt(),ke(e.type))})(r);case 230:return(e=>{Ne(e.expression,oe.parenthesizeLeftSideOfAccess),qt("!")})(r);case 228:return qe(r);case 231:return(e=>{ir(e.keywordToken,e.pos,Ht),Ht("."),ke(e.name)})(r);case 232:return e.Debug.fail("SyntheticExpression should never be printed.");case 278:return(e=>{ke(e.openingElement),Vt(e,e.children,262144),ke(e.closingElement)})(r);case 279:return(e=>{Ht("<"),ft(e.tagName),Rt(e,e.typeArguments),Qt(),ke(e.attributes),Ht("/>")})(r);case 282:return(e=>{ke(e.openingFragment),Vt(e,e.children,262144),ke(e.closingFragment)})(r);case 348:return e.Debug.fail("SyntaxList should not be printed");case 349:return;case 350:return(t=>{var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||Yr(t.expression.pos),Ne(t.expression),1024&r||t.end===t.expression.end||qr(t.expression.end)})(r);case 351:return(e=>{Kt(e,e.elements,528,void 0)})(r);case 352:case 353:return;case 354:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?ar(r,Gt):e.isTokenKind(r.kind)?ar(r,Ht):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function Ve(t,r){var n=Le(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function Ke(r){var n=!1,a=306===r.kind?r:void 0;if(!a||U!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,d=t.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!m,f=e.isUnparsedSource(l)?l.helpers:ze(l);if(f)for(var g=0,h=f;g<h.length;g++){var y=h[g];if(y.scoped){if(a)continue}else{if(d)continue;if(p){if(V.get(y.name))continue;V.set(y.name,!0)}}var v=_e();"string"==typeof y.text?cr(y.text):cr(y.text(Mr)),W&&W.sections.push({pos:v,end:_.getTextPos(),kind:"emitHelpers",data:y.name}),n=!0}}return n}}function ze(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function We(r,n){var i,a=Er(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?(i=a,_.writeStringLiteral(i)):Wt(a)}function Je(e){_.rawWrite(e.parent.text.substring(e.pos,e.end))}function He(e){(e.symbol?Jt:z)(xr(e,!1),e.symbol),Vt(e,e.typeArguments,53776)}function $e(e){(e.symbol?Jt:z)(xr(e,!1),e.symbol)}function Ge(e){Lt(e,e.typeParameters),jt(e,e.parameters),wt(e.type),Qt(),ke(e.equalsGreaterThanToken)}function qe(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess),Rt(e,e.typeArguments)}function Xe(t,r){et(18,t.pos,Ht,t);var n=r||1&e.getEmitFlags(t)?768:129;Vt(t,t.statements,n),et(19,t.statements.end,Ht,t,!!(1&n))}function Ye(e){e?Ht(";"):$t()}function Qe(e,t){var r=et(115,t,Gt,e);Qt(),et(20,r,Ht,e),Ne(e.expression),et(21,e.expression.end,Ht,e)}function Ze(e){void 0!==e&&(255===e.kind?ke(e):Ne(e))}function et(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=r;if(c&&i&&(r=e.skipTrivia(i.text,r)),c&&a.pos!==l){var u=o&&i&&!e.positionsAreOnSameLine(l,r,i);u&&rr(),qr(l),u&&nr()}if(r=or(t,n,r),c&&a.end!==r){var d=288===a.kind;Yr(r,!d,d)}return r}function tt(e){return 2===e.kind||!!e.hasTrailingNewLine}function rt(t){return!!i&&(!!e.some(e.getLeadingCommentRanges(i.text,t.pos),tt)||!!e.some(e.getSyntheticLeadingComments(t),tt)||!!e.isPartiallyEmittedExpression(t)&&(!(t.pos===t.expression.pos||!e.some(e.getTrailingCommentRanges(i.text,t.expression.pos),tt))||rt(t.expression)))}function nt(t){if(!re&&e.isPartiallyEmittedExpression(t)&&rt(t)){var r=e.getParseTreeNode(t);if(r&&e.isParenthesizedExpression(r)){var n=e.factory.createParenthesizedExpression(t.expression);return e.setOriginalNode(n,t),e.setTextRange(n,r),n}return e.factory.createParenthesizedExpression(t)}return t}function it(e){return nt(oe.parenthesizeExpressionForDisallowedComma(e))}function at(e){Mt(e,e.decorators),Nt(e,e.modifiers),Gt("function"),ke(e.asteriskToken),Qt(),Ae(e.name),ot(e,st)}function ot(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&rr(),Sr(t),e.forEach(t.parameters,Cr),Cr(t.body),r(t),ct(n),Dr(t),i&&nr()}else r(t),Qt(),Ne(n,oe.parenthesizeConciseBodyOfArrowFunction);else r(t),$t()}function st(e){Lt(e,e.typeParameters),Bt(e,e.parameters),wt(e.type)}function ct(t){null==P||P(t),Qt(),Ht("{"),rr();var r=(t=>{if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&i&&!e.rangeIsOnSingleLine(t,i))return!1;if(dr(t,t.statements,2)||_r(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(pr(r,o,2)>0)return!1;r=o}return!0})(t)?lt:ut;zr(t,t.statements,r),nr(),ir(19,t.statements.end,Ht,t),null==I||I(t)}function lt(e){ut(e,!0)}function ut(e,t){var r=Dt(e.statements),n=_.getTextPos();Ke(e),0===r&&n===_.getTextPos()&&t?(nr(),Vt(e,e.statements,768),rr()):Vt(e,e.statements,1,void 0,r)}function dt(t){e.forEach(t.members,kr),Mt(t,t.decorators),Nt(t,t.modifiers),Gt("class"),t.name&&(Qt(),Ae(t.name));var r=65536&e.getEmitFlags(t);r&&rr(),Lt(t,t.typeParameters),Vt(t,t.heritageClauses,0),Qt(),Ht("{"),Vt(t,t.members,129),Ht("}"),r&&nr()}function pt(e){Ht("{"),Vt(e,e.elements,525136),Ht("}")}function _t(e){e.isTypeOnly&&(Gt("type"),Qt()),e.propertyName&&(ke(e.propertyName),Qt(),et(127,e.propertyName.end,Gt,e),Qt()),ke(e.name)}function ft(e){79===e.kind?Ne(e):ke(e)}function mt(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(ir(58,n,Ht,t),Qt(),a&=-130):et(58,n,Ht,t),Vt(t,r,a)}function gt(t){Vt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function ht(t){t.typeParameters&&Vt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Vt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(tr(),Qt(),Ht("*"),Qt(),ke(t.type))}function yt(e){Ht("@"),ke(e)}function vt(t){var r=e.getTextOfJSDocComment(t);r&&(Qt(),z(r))}function bt(e){e&&(Qt(),Ht("{"),ke(e.type),Ht("}"))}function xt(t){tr();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?zr(t,r,St):St(t)}function Et(t,r,n,a){if(t){var o=_.getTextPos();Yt('/// <reference no-default-lib="true"/>'),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"no-default-lib"}),tr()}if(i&&i.moduleName&&(Yt('/// <amd-module name="'.concat(i.moduleName,'" />')),tr()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s<c.length;s++){var l=c[s];l.name?Yt('/// <amd-dependency name="'.concat(l.name,'" path="').concat(l.path,'" />')):Yt('/// <amd-dependency path="'.concat(l.path,'" />')),tr()}for(var u=0,d=r;u<d.length;u++){var p=d[u];o=_.getTextPos(),Yt('/// <reference path="'.concat(p.fileName,'" />')),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"reference",data:p.fileName}),tr()}for(var f=0,m=n;f<m.length;f++){p=m[f],o=_.getTextPos();var g=p.resolutionMode&&p.resolutionMode!==(null==i?void 0:i.impliedNodeFormat)?'resolution-mode="'.concat(p.resolutionMode===e.ModuleKind.ESNext?"import":"require",'"'):"";Yt('/// <reference types="'.concat(p.fileName,'" ').concat(g,"/>")),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),tr()}for(var h=0,y=a;h<y.length;h++)p=y[h],o=_.getTextPos(),Yt('/// <reference lib="'.concat(p.fileName,'" />')),W&&W.sections.push({pos:o,end:_.getTextPos(),kind:"lib",data:p.fileName}),tr()}function St(t){var r=t.statements;Sr(t),e.forEach(t.statements,Cr),Ke(t);var n=e.findIndex(r,(t=>!e.isPrologueDirective(t)));!(e=>{e.isDeclarationFile&&Et(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)})(t),Vt(t,r,1,void 0,-1===n?r.length:n),Dr(t)}function Dt(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,Se(r)),tr();var c=_.getTextPos();ke(s),i&&W&&W.sections.push({pos:c,end:_.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function Tt(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){tr();var a=_.getTextPos();ke(i),W&&W.sections.push({pos:a,end:_.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function Ct(t){if(e.isSourceFile(t))Dt(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++)Tt(i[n].prologues,r);for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];Dt(s.statements,s,r,!0)}Se(void 0)}}function kt(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return Yt(r),tr(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),kt(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++)if(kt(s[o]))return!0}}function At(e,t){if(e){var r=z;z=t,ke(e),z=r}}function Nt(e,t){t&&t.length&&(Vt(e,t,262656),Qt())}function wt(e){e&&(Ht(":"),Qt(),ke(e))}function Ft(e,t,r,n){e&&(Qt(),et(63,t,qt,r),Qt(),Ne(e,n))}function Pt(e){e&&(Qt(),ke(e))}function It(e,t){e&&(Qt(),Ne(e,t))}function Ot(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Qt(),ke(r)):(tr(),rr(),e.isEmptyStatement(r)?Ie(5,r):ke(r),nr())}function Mt(e,t){Vt(e,t,2146305)}function Rt(e,t){Vt(e,t,53776,se)}function Lt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Rt(t,t.typeArguments);Vt(t,r,53776)}function Bt(e,t){Vt(e,t,2576)}function jt(t,r){((t,r)=>{var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)})(t,r)?Vt(t,r,528):Bt(t,r)}function Ut(e){switch(60&e){case 0:break;case 16:Ht(",");break;case 4:Qt(),Ht("|");break;case 32:Qt(),Ht("*"),Qt();break;case 8:Qt(),Ht("&")}}function Vt(e,t,r,n,i,a){zt(ke,e,t,r,n,i,a)}function Kt(e,t,r,n,i,a){zt(Ne,e,t,r,n,i,a)}function zt(t,r,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return O&&O(a),void(M&&M(a));if(15360&o&&(Ht((e=>n[15360&e][0])(o)),u&&a&&Yr(a.pos,!0)),O&&O(a),u)!(1&o)||K&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&Qt():tr();else{e.Debug.type(a);var d=0==(262144&o),_=d,f=dr(r,a,o);f?(tr(f),_=!1):256&o&&Qt(),128&o&&rr();for(var m=((e,t)=>1===e.length?S:"object"==typeof t?D:T)(t,s),g=void 0,h=void 0,y=!1,v=0;v<l;v++){var b=a[c+v];if(32&o)tr(),Ut(o);else if(g){60&o&&g.end!==(r?r.end:-1)&&qr(g.end),Ut(o),ge(h);var x=pr(g,b,o);x>0?(0==(131&o)&&(rr(),y=!0),tr(x),_=!1):g&&512&o&&Qt()}h=me(b),_?Yr(e.getCommentRange(b).pos):_=d,p=b.pos,m(b,t,s,v),y&&(nr(),y=!1),g=b}var E=g?e.getEmitFlags(g):0,C=re||!!(1024&E),k=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;k&&(g&&!C?et(27,g.end,Ht,g):Ht(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!C&&qr(k&&(null==a?void 0:a.end)?a.end:g.end),128&o&&nr(),ge(h);var A=_r(r,a,o);A?tr(A):2097408&o&&Qt()}M&&M(a),15360&o&&(u&&a&&qr(a.end),Ht((e=>n[15360&e][1])(o)))}}function Wt(e){_.writeLiteral(e)}function Jt(e,t){_.writeSymbol(e,t)}function Ht(e){_.writePunctuation(e)}function $t(){_.writeTrailingSemicolon(";")}function Gt(e){_.writeKeyword(e)}function qt(e){_.writeOperator(e)}function Xt(e){_.writeParameter(e)}function Yt(e){_.writeComment(e)}function Qt(){_.writeSpace(" ")}function Zt(e){_.writeProperty(e)}function er(e){_.nonEscapingWrite?_.nonEscapingWrite(e):_.write(e)}function tr(e){void 0===e&&(e=1);for(var t=0;t<e;t++)_.writeLine(t>0)}function rr(){_.increaseIndent()}function nr(){_.decreaseIndent()}function ir(t,r,n,i){return q?or(t,n,r):((t,r,n,i,a)=>{if(q||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||h;return i=cn(l,c?c.pos:i),0==(128&s)&&i>=0&&un(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&un(l,i),i})(i,t,n,r,or)}function ar(t,r){R&&R(t),r(e.tokenToString(t.kind)),L&&L(t)}function or(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function sr(t,r,n){if(1&e.getEmitFlags(t))Qt();else if(K){var i=yr(t,r,n);i?tr(i):Qt()}else tr()}function cr(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(tr(),z(s))}}function lr(e,t){e?(rr(),tr(e)):t&&Qt()}function ur(e,t){e&&nr(),t&&nr()}function dr(t,r,n){if(2&n||K){if(65536&n)return 1;var a=r[0];if(void 0===a)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(a.pos===p)return 0;if(11===a.kind)return 0;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||e.getOriginalNode(a.parent)===e.getOriginalNode(t)))return K?fr((r=>e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,t.pos,i,r))):e.rangeStartPositionsAreOnSameLine(t,a,i)?0:1;if(hr(a,n))return 1}return 1&n?1:0}function pr(t,r,n){if(2&n||K){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(i&&!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r))return K&&((t,r)=>{if(r.pos<t.end)return!1;t=e.getOriginalNode(t),r=e.getOriginalNode(r);var n=t.parent;if(!n||n!==r.parent)return!1;var i=e.getContainingNodeArray(t),a=null==i?void 0:i.indexOf(t);return void 0!==a&&a>-1&&i.indexOf(r)===a+1})(t,r)?fr((n=>e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n))):!K&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(hr(t,n)||hr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function _r(t,r,n){if(2&n||K){if(65536&n)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(K){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return fr((r=>e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)))}return e.rangeEndPositionsAreOnSameLine(t,a,i)?0:1}if(hr(a,n))return 1}return 1&n&&!(131072&n)?1:0}function fr(t){e.Debug.assert(!!K);var r=t(!0);return 0===r?t(!1):r}function mr(e,t){var r=K&&dr(t,[e],0);return r&&lr(r,!1),!!r}function gr(e,t){var r=K&&_r(t,[e],0);r&&tr(r)}function hr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function yr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=br(t),r=br(r),n=br(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:K?fr((t=>e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t))):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function vr(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function br(t){for(;212===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function xr(t,r){if(e.isGeneratedIdentifier(t))return Nr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return xr(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function Er(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:xr(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Er(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function Sr(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,u.push(d))}function Dr(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),d=u.pop())}function Tr(t){d&&d!==e.lastOrUndefined(u)||(d=new e.Set),d.add(t)}function Cr(t){if(t)switch(t.kind){case 235:e.forEach(t.statements,Cr);break;case 250:case 248:case 240:case 241:Cr(t.statement);break;case 239:Cr(t.thenStatement),Cr(t.elseStatement);break;case 242:case 244:case 243:Cr(t.initializer),Cr(t.statement);break;case 249:Cr(t.caseBlock);break;case 263:e.forEach(t.clauses,Cr);break;case 289:case 290:e.forEach(t.statements,Cr);break;case 252:Cr(t.tryBlock),Cr(t.catchClause),Cr(t.finallyBlock);break;case 292:Cr(t.variableDeclaration),Cr(t.block);break;case 237:Cr(t.declarationList);break;case 255:e.forEach(t.declarations,Cr);break;case 254:case 164:case 203:case 257:Ar(t.name);break;case 256:Ar(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Cr),Cr(t.body));break;case 201:case 202:e.forEach(t.elements,Cr);break;case 266:Cr(t.importClause);break;case 267:Ar(t.name),Cr(t.namedBindings);break;case 268:case 274:Ar(t.name);break;case 269:e.forEach(t.elements,Cr);break;case 270:Ar(t.propertyName||t.name)}}function kr(e){if(e)switch(e.kind){case 296:case 297:case 167:case 169:case 172:case 173:Ar(e.name)}}function Ar(t){t&&(e.isGeneratedIdentifier(t)?Nr(t):e.isBindingPattern(t)&&Cr(t))}function Nr(t){if(4==(7&t.autoGenerateFlags))return wr((t=>{for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n})(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=(t=>{switch(7&t.autoGenerateFlags){case 1:return Ir(0,!!(8&t.autoGenerateFlags));case 2:return Ir(268435456,!!(8&t.autoGenerateFlags));case 3:return Or(e.idText(t),32&t.autoGenerateFlags?Pr:Fr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")})(t))}function wr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=((t,r)=>{switch(t.kind){case 79:return Or(xr(t),Fr,!!(16&r),!!(8&r));case 261:case 260:return(t=>{var r=xr(t.name);return((t,r)=>{for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0})(r,t)?r:Or(r)})(t);case 266:case 272:return(t=>{var r=e.getExternalModuleName(t);return Or(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")})(t);case 256:case 257:case 271:return Or("default");case 226:return Or("class");case 169:case 172:case 173:return(t=>e.isIdentifier(t.name)?wr(t.name):Ir(0))(t);case 162:return Ir(0,!0);default:return Ir(0)}})(t,r))}function Fr(e){return Pr(e)&&!s.has(e)&&!(d&&d.has(e))}function Pr(t){return!i||e.isFileLevelUniqueName(i,t,C)}function Ir(e,t){if(e&&!(l&e)&&Fr(r=268435456===e?"_i":"_n"))return l|=e,t&&Tr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&Fr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Tr(r),r}}function Or(e,t,r,n){if(void 0===t&&(t=Fr),r&&t(e))return n?Tr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Tr(a):s.add(a),a;i++}}function Mr(e){return Or(e,Pr,!0)}function Rr(e,t){var r=Le(2,e,t),n=Q,i=Z,a=ee;Lr(t),r(e,t),Br(t,n,i,a)}function Lr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!((t,r,n,i)=>{ie(),te=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Wr(n,349!==t.kind),(!a||n>=0&&0!=(512&r))&&(Q=n),(!o||i>=0&&0!=(1024&r))&&(Z=i,255===t.kind&&(ee=i))),e.forEach(e.getSyntheticLeadingComments(t),Ur),ae()})(t,r,n.pos,n.end),2048&r&&(re=!0)}function Br(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(re=!1),jr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&jr(t,a,s.pos,s.end,r,n,i)}function jr(t,r,n,i,a,o,s){ie();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Vr),(n>0||i>0)&&n!==i&&(Q=a,Z=o,ee=s,c||349===t.kind||(e=>{tn(e,Xr)})(i)),ae()}function Ur(e){(e.hasLeadingNewline||2===e.kind)&&_.writeLine(),Kr(e),e.hasTrailingNewLine||2===e.kind?_.writeLine():_.writeSpace(" ")}function Vr(e){_.isAtStartOfLine()||_.writeSpace(" "),Kr(e),e.hasTrailingNewLine&&_.writeLine()}function Kr(t){var r=(e=>3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text))(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,_,0,r.length,j)}function zr(t,r,n){ie();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=re||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Ce(),_,rn,a,j,re))&&(b?b.push(o):b=[o])),ae(),2048&l&&!re?(re=!0,n(t),re=!1):n(t),ie(),u||(Wr(r.end,!0),te&&!_.isAtStartOfLine()&&_.writeLine()),ae()}function Wr(e,t){te=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?en(e,Hr):en(e,Gr):0===e&&en(e,Jr)}function Jr(e,t,r,n,i){nn(e,t)&&Gr(e,t,r,n,i)}function Hr(e,t,r,n,i){nn(e,t)||Gr(e,t,r,n,i)}function $r(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Gr(t,r,n,a,o){i&&$r(i.text,t)&&(te||(e.emitNewLineBeforeLeadingCommentOfPosition(Ce(),_,o,t),te=!0),ln(t),e.writeCommentRange(i.text,Ce(),_,t,r,j),ln(r),a?_.writeLine():3===n&&_.writeSpace(" "))}function qr(e){re||-1===e||Wr(e,!0)}function Xr(t,r,n,a){i&&$r(i.text,t)&&(_.isAtStartOfLine()||_.writeSpace(" "),ln(t),e.writeCommentRange(i.text,Ce(),_,t,r,j),ln(r),a&&_.writeLine())}function Yr(e,t,r){re||(ie(),tn(e,t?Xr:r?Qr:Zr),ae())}function Qr(t,r,n){i&&(ln(t),e.writeCommentRange(i.text,Ce(),_,t,r,j),ln(r),2===n&&_.writeLine())}function Zr(t,r,n,a){i&&(ln(t),e.writeCommentRange(i.text,Ce(),_,t,r,j),ln(r),a?_.writeLine():_.writeSpace(" "))}function en(t,r){!i||-1!==Q&&t===Q||((t=>void 0!==b&&e.last(b).nodePos===t)(t)?(t=>{if(i){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}})(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function tn(t,r){i&&(-1===Z||t!==Z&&t!==ee)&&e.forEachTrailingCommentRange(i.text,t,r)}function rn(t,r,n,a,o,s){i&&$r(i.text,a)&&(ln(a),e.writeCommentRange(t,r,n,a,o,s),ln(o))}function nn(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function an(e,t){var r=Le(3,e,t);on(t),r(e,t),sn(t)}function on(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=(t=>(void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0))(t.parent);i&&g&&g.appendSourceMap(_.getLine(),_.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||h;349!==t.kind&&0==(16&r)&&n.pos>=0&&un(n.source||h,cn(a,n.pos)),64&r&&(q=!0)}}function sn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(q=!1),349!==t.kind&&0==(32&r)&&n.end>=0&&un(n.source||h,n.end))}function cn(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function ln(t){if(!(q||e.positionIsSynthesized(t)||pn(h))){var r=e.getLineAndCharacterOfPosition(h,t),n=r.line,i=r.character;g.addMapping(_.getLine(),_.getColumn(),X,n,i,void 0)}}function un(e,t){if(e!==h){var r=h,n=X;dn(e),ln(t),((e,t)=>{h=e,X=t})(r,n)}else ln(t)}function dn(e){q||(h=e,e!==y?pn(e)||(X=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(X,e.text),y=e,Y=X):X=Y)}function pn(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,r,n){t(e)}function D(e,t,r,n){t(e,r.select(n))}function T(e,t,r,n){t(e,r)}e.isBuildInfoFile=t=>e.fileExtensionIs(t,".tsbuildinfo"),e.forEachEmittedFile=i,e.getTsBuildInfoEmitOutputFilePath=a,e.getOutputPathsForBundle=o,e.getOutputPathsFor=s,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=y,e.getAllProjectOutputs=(t,r)=>{var n=_(),i=n.addOutput,o=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var s=e.memoize((()=>y(t,r))),c=0,l=t.fileNames;c<l.length;c++){var u=l[c];g(t,u,r,i,s)}i(a(t.options))}return o()},e.getOutputFileNames=(t,r,n)=>{r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=_(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?m(t,a):g(t,r,n,a),o()},e.getFirstProjectOutput=(t,r)=>{if(e.outFile(t.options)){var n=o(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project ".concat(t.options.configFilePath," expected to have at least one output"))}for(var i=e.memoize((()=>y(t,r))),s=0,c=t.fileNames;s<c.length;s++){var l=c[s];if(!e.isDeclarationFileName(l)){if(n=p(l,t,r,i))return n;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(t.options))return d(l,t,r,i)}}return a(t.options)||e.Debug.fail("project ".concat(t.options.configFilePath," expected to have at least one output"))},e.emitFiles=v,e.getBuildInfoText=b,e.getBuildInfo=x,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:e=>!1,collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=(t,r,n,i)=>{var a=o(t.options,!1),s=a.buildInfoPath,c=a.jsFilePath,l=a.sourceMapFilePath,u=a.declarationFilePath,d=a.declarationMapPath,p=r.readFile(e.Debug.checkDefined(s));if(!p)return s;var _=r.readFile(e.Debug.checkDefined(c));if(!_)return c;var m=l&&r.readFile(l);if(l&&!m||t.options.inlineSourceMap)return l||"inline sourcemap decoding";var g=u&&r.readFile(u);if(u&&!g)return u;var h=d&&r.readFile(d);if(d&&!h||t.options.inlineSourceMap)return d||"inline sourcemap decoding";var y=x(p);if(!y.bundle||!y.bundle.js||g&&!y.bundle.dts)return s;var E=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,r.getCurrentDirectory())),S=e.createInputFiles(_,g,l,m,d,h,c,u,s,y,!0),D=[],T=e.createPrependNodes(t.projectReferences,n,(e=>r.readFile(e))),C=((t,r,n)=>{var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(e=>e.file));return t.sourceFiles.map(((t,i)=>{var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((t=>{var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),u=e.factory.createToken(1),d=e.factory.createSourceFile(null!=l?l:[],u,0);return d.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),d.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(d,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(u,d.end,0),e.setParent(u,d),d}))})(y.bundle,E,r),k={getPrependNodes:e.memoize((()=>f(f([],T,!0),[S],!1))),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:()=>e.getNormalizedAbsolutePath(y.bundle.commonSourceDirectory,E),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.getNewLine(),getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:()=>C,getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile(t,r,n){switch(t){case c:if(_===r)return;break;case l:if(m===r)return;break;case s:var i=x(r);i.program=y.program;var a=y.bundle,o=a.js,p=a.dts,f=a.sourceFiles;return i.bundle.js.sources=o.sources,p&&(i.bundle.dts.sources=p.sources),i.bundle.sourceFiles=f,void D.push({name:t,text:b(i),writeByteOrderMark:n});case u:if(g===r)return;break;case d:if(h===r)return;break;default:e.Debug.fail("Unexpected path: ".concat(t))}D.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:e=>r.readFile(e),fileExists:e=>r.fileExists(e),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames(),getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return v(e.notImplementedResolver,k,void 0,e.getTransformers(t.options,i)),D},(e=>{e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"})(t||(t={})),e.createPrinter=E,(e=>{e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"})(r||(r={}))})(p),(e=>{var t,r;function n(e){e.watcher.close()}e.createCachedDirectoryStructureHost=(t,r,n)=>{if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists(e){var r=c(o(e));return r&&p(r.files,l(e))||t.fileExists(e)},readFile:(e,r)=>t.readFile(e,r),directoryExists:t.directoryExists&&(r=>{var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}),getDirectories(e){var r=u(e,o(e));return r?r.directories.slice():t.getDirectories(e)},readDirectory(i,a,s,c,d){var p,_=o(i),m=u(i,_);return void 0!==m?e.matchFiles(i,a,s,c,n,r,d,(t=>{var r=o(t);if(r===_)return m||g(t,r);var n=u(t,r);return void 0!==n?n||g(t,r):e.emptyFileSystemEntries}),f):t.readDirectory(i,a,s,c,d);function g(r,n){if(p&&n===_)return p;var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};return n===_&&(p=i),i}},createDirectory:t.createDirectory&&(e=>{var r=c(o(e)),n=l(e);r&&_(r.directories,n,!0),t.createDirectory(e)}),writeFile:t.writeFile&&((e,r,n)=>{var i=c(o(e));return i&&m(i,l(e),!0),t.writeFile(e,r,n)}),addOrDeleteFileOrDirectory(e,r){if(void 0===s(r)){var n=c(r);if(n){if(t.directoryExists){var i=l(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||p(n.directories,i)?g():m(n,i,a.fileExists),a}g()}}else g()},addOrDeleteFile(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&m(i,l(t),n===e.FileWatcherEventKind.Created)}},clearCache:g,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function l(t){return e.getBaseFileName(e.normalizePath(t))}function u(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return((r,n)=>{var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(o(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),s),s}if(null===(a=t.directoryExists)||void 0===a?void 0:a.call(t,r))return i.set(n,!1),!1})(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function d(e,t){return a(e)===a(t)}function p(t,r){return e.some(t,(e=>d(e,r)))}function _(t,r,n){if(p(t,r)){if(!n)return e.filterMutate(t,(e=>!d(e,r)))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function m(e,t,r){_(e.files,t,r)}function g(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=(t,r,n,i,a)=>{var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach(((e,r)=>{s.has(r)||(e.projects.delete(t),e.close())})),s.forEach(((r,a)=>{var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=(e,t)=>{t.forEach((t=>{t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach(((i,a)=>{var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((e=>n(e)===r)))&&e(t,a,n)}))},e.updatePackageJsonWatch=(t,r,n)=>{var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=(t,r,n)=>{var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=(t,r,i)=>{function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=t=>{var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),m=e.isArray(s)?void 0:(e=>!!e.getState)(s)?s.getProgramOrUndefined():s,g=m||e.isArray(s)?void 0:s;return!(!h(f+".ts")&&!h(f+".tsx")||(d("Project: ".concat(a," Detected output file: ").concat(n)),0));function h(t){return m?!!m.getSourceFileByPath(t):g?g.getState().fileInfos.has(t):!!e.find(s,(e=>p(e)===t))}},e.isEmittedFileOfProgram=(e,t)=>!!e&&e.isEmittedFile(t),(e=>{e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"})(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=(r,n,i,a)=>{e.setSysLog(n===t.Verbose?i:e.noop);var o={watchFile:(e,t,n,i)=>r.watchFile(e,t,n,i),watchDirectory:(e,t,n,i)=>r.watchDirectory(e,t,0!=(1&n),i)},s=n!==t.None?{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")}:void 0,c=n===t.Verbose?{watchFile(e,t,r,n,o,c){i("FileWatcher:: Added:: ".concat(p(e,r,n,o,c,a)));var l=s.watchFile(e,t,r,n,o,c);return{close(){i("FileWatcher:: Close:: ".concat(p(e,r,n,o,c,a))),l.close()}}},watchDirectory(t,r,n,o,c,l){var u="DirectoryWatcher:: Added:: ".concat(p(t,n,o,c,l,a));i(u);var d=e.timestamp(),_=s.watchDirectory(t,r,n,o,c,l),f=e.timestamp()-d;return i("Elapsed:: ".concat(f,"ms ").concat(u)),{close(){var r="DirectoryWatcher:: Close:: ".concat(p(t,n,o,c,l,a));i(r);var s=e.timestamp();_.close();var u=e.timestamp()-s;i("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:s||o,l=n===t.Verbose?(e,t,r,n,o)=>(i("ExcludeWatcher:: Added:: ".concat(p(e,t,r,n,o,a))),{close:()=>i("ExcludeWatcher:: Close:: ".concat(p(e,t,r,n,o,a)))}):e.returnNoopFileWatcher;return{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")};function u(t){return(n,i,a,o,s,u)=>{var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?l(n,a,o,s,u):c[t].call(void 0,n,i,a,o,s,u)}}function d(t){return(r,n,s,c,l,u)=>o[t].call(void 0,r,(function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];var _="".concat("watchFile"===t?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(o[0]," ").concat(void 0!==o[1]?o[1]:"",":: ").concat(p(r,s,c,l,u,a));i(_);var m=e.timestamp();n.call.apply(n,f([void 0],o,!1));var g=e.timestamp()-m;i("Elapsed:: ".concat(g,"ms ").concat(_))}),s,c,l,u)}function p(e,t,r,n,i,a){return"WatchInfo: ".concat(e," ").concat(t," ").concat(JSON.stringify(r)," ").concat(a?a(n,i):void 0===i?n:"".concat(n," ").concat(i))}},e.getFallbackOptions=t=>{var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=n})(p),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var l=e.getNewLineCharacter(t,(()=>n.newLine)),u=n.realpath&&(e=>n.realpath(e)),d={getSourceFile(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=d.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:t=>e.combinePaths(c(),e.getDefaultLibFileName(t)),writeFile(r,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,c,((r,a,o)=>((r,a,o)=>{if(e.isWatchSet(t)&&n.getModifiedTime){i||(i=new e.Map);var c=s(a),l=n.getModifiedTime(r);if(l){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}n.writeFile(r,a,o);var d=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:c,byteOrderMark:o,mtime:d})}else n.writeFile(r,a,o)})(r,a,o)),(e=>(d.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!a.has(t)||!!(d.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>l,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+l),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:u,readDirectory:(e,t,r,i,a)=>n.readDirectory(e,t,r,i,a),createDirectory:e=>n.createDirectory(e),createHash:e.maybeBind(n,n.createHash)};return d}function i(t,r){var n="".concat(e.diagnosticCategoryName(t)," TS").concat(t.code,": ").concat(p(t.messageText,r.getNewLine())).concat(r.getNewLine());if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName,c=e.convertToRelativePath(s,r.getCurrentDirectory(),(e=>r.getCanonicalFileName(e)));return"".concat(c,"(").concat(a+1,",").concat(o+1,"): ")+n}return n}var a;e.findConfigFile=(t,r,n)=>(void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(t=>{var i=e.combinePaths(t,n);return r(i)?i:void 0}))),e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=(t,r,n)=>{var i;return e.forEach(t,(t=>{var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=(t,r,n)=>{var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,l=new e.Map,u=new e.Map,d=new e.Map,p=new e.Map,_=(e,r)=>{var n=i.call(t,r);return l.set(e,void 0!==n&&n),n};t.readFile=n=>{var a=r(n),o=l.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?_(a,n):i.call(t,n)};var m=n?(t,i,a,o)=>{var s=r(t),c=p.get(s);if(c)return c;var l=n(t,i,a,o);return l&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&p.set(s,l),l}:void 0;return t.fileExists=e=>{var n=r(e),i=u.get(n);if(void 0!==i)return i;var o=a.call(t,e);return u.set(n,!!o),o},c&&(t.writeFile=function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=r(e);u.delete(o);var s=l.get(o);if(void 0!==s&&s!==n)l.delete(o),p.delete(o);else if(m){var d=p.get(o);d&&d.text!==n&&p.delete(o)}c.call.apply(c,f([t,e,n],i,!1))}),o&&s&&(t.directoryExists=e=>{var n=r(e),i=d.get(n);if(void 0!==i)return i;var a=o.call(t,e);return d.set(n,!!a),a},t.createDirectory=e=>{var n=r(e);d.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:m,readFileWithCache(e){var t=r(e),n=l.get(t);return void 0!==n?!1!==n?n:void 0:_(t,e)}}},e.getPreEmitDiagnostics=(t,r,n)=>{var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=(e,t)=>{for(var r="",n=0,a=e;n<a.length;n++)r+=i(a[n],t);return r},e.formatDiagnostic=i,(e=>{e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""})(a=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var o="",s="";function c(t){switch(t){case e.DiagnosticCategory.Error:return a.Red;case e.DiagnosticCategory.Warning:return a.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return a.Blue}}function l(e,t){return t+e+s}function u(t,r,n,i,a,c){var u=e.getLineAndCharacterOfPosition(t,r),d=u.line,p=u.character,_=e.getLineAndCharacterOfPosition(t,r+n),f=_.line,m=_.character,g=e.getLineAndCharacterOfPosition(t,t.text.length).line,h=f-d>=4,y=(f+1+"").length;h&&(y=Math.max("...".length,y));for(var v="",b=d;b<=f;b++){v+=c.getNewLine(),h&&d+1<b&&b<f-1&&(v+=i+l(e.padLeft("...",y),o)+" "+c.getNewLine(),b=f-1);var x=e.getPositionOfLineAndCharacter(t,b,0),E=b<g?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,S=t.text.slice(x,E);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),v+=i+l(e.padLeft(b+1+"",y),o)+" ",v+=S+c.getNewLine(),v+=i+l(e.padLeft("",y),o)+" ",v+=a,b===d){var D=b===f?m:void 0;v+=S.slice(0,p).replace(/\S/g," "),v+=S.slice(p,D).replace(/./g,"~")}else v+=b===f?S.slice(0,m).replace(/./g,"~"):S.replace(/./g,"~");v+=s}return v}function d(t,r,n,i){void 0===i&&(i=l);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,c=o.character,u="";return u+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):t.fileName,a.Cyan),u+=":",u+=i("".concat(s+1),a.Yellow),(u+=":")+i("".concat(c+1),a.Yellow)}function p(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++)i+=p(s[o],r,n);return i}function _(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=t;c<l.length;c++){var u=l[c],d=void 0,p=m(u,i),_=e.isString(u)?u:u.fileName.toLowerCase(),f=void 0!==p?"".concat(p,"|").concat(_):_;s.has(f)?d=s.get(f):s.set(f,d=a(_,r,n,p)),o.push(d)}return o}function m(t,r){return(e.isString(t)?r:t.resolutionMode)||r}function g(e,t){if(void 0!==e.impliedNodeFormat)return y(e,I(e,t))}function h(t){var r;return e.isExportDeclaration(t)?t.isTypeOnly:!!(null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly)}function y(t,r){var n,i;if(void 0!==t.impliedNodeFormat){var a;if((e.isImportDeclaration(r.parent)||e.isExportDeclaration(r.parent))&&h(r.parent)&&(a=v(r.parent.assertClause)))return a;if(r.parent.parent&&e.isImportTypeNode(r.parent.parent)&&(a=v(null===(n=r.parent.parent.assertions)||void 0===n?void 0:n.assertClause)))return a;if(t.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(r.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var o=null===(i=e.walkUpParenthesizedExpressions(r.parent))||void 0===i?void 0:i.parent;return o&&e.isImportEqualsDeclaration(o)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}function v(t,r){if(t)if(1===e.length(t.elements)){var n=t.elements[0];if(e.isStringLiteralLike(n.name))if("resolution-mode"===n.name.text){if(e.isStringLiteralLike(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;null==r||r(n.value,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}}else null==r||r(n.name,e.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}else null==r||r(t,e.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require)}function b(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=void 0,_=g(r,c);c++;var f=void 0!==_?"".concat(_,"|").concat(d):d;s.has(f)?p=s.get(f):s.set(f,p=a(d,_,n,i)),o.push(p)}return o}function x(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,((r,i)=>{if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function E(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function S(e){return void 0!==e.pos}function D(t,r){var n,i,a,o,s,c,l,u,d,p,_,f=e.Debug.checkDefined(t(r.file)),m=r.kind,h=r.index;switch(m){case e.FileIncludeKind.Import:var y=I(f,h);if(p=null===(s=null===(o=f.resolvedModules)||void 0===o?void 0:o.get(y.text,g(f,h)))||void 0===s?void 0:s.packageId,-1===y.pos)return{file:f,packageId:p,text:y.text};u=e.skipTrivia(f.text,y.pos),d=y.end;break;case e.FileIncludeKind.ReferenceFile:u=(n=f.referencedFiles[h]).pos,d=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(i=f.typeReferenceDirectives[h]).pos,d=i.end,_=i.resolutionMode,p=null===(l=null===(c=f.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(f.typeReferenceDirectives[h].fileName),_||f.impliedNodeFormat))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(a=f.libReferenceDirectives[h]).pos,d=a.end;break;default:return e.Debug.assertNever(m)}return{file:f,pos:u,end:d,packageId:p}}function T(t,r,n,i){switch(e.getEmitModuleResolutionKind(i)){case e.ModuleResolutionKind.Node16:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(t,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(t,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(t,[".d.ts",".ts",".tsx",".js",".jsx"])?"module"===(null==(a=e.getPackageScopeForPath(t,r,n,i))?void 0:a.packageJsonContent.type)?e.ModuleKind.ESNext:e.ModuleKind.CommonJS:void 0;default:return}var a}function C(t,r,n,i){var a=t.getCompilerOptions();if(a.noEmit)return t.getSemanticDiagnostics(r,i),r||e.outFile(a)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,i);if(a.noEmitOnError){var o=f(f(f(f([],t.getOptionsDiagnostics(i),!0),t.getSyntacticDiagnostics(r,i),!0),t.getGlobalDiagnostics(i),!0),t.getSemanticDiagnostics(r,i),!0);if(0===o.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(o=t.getDeclarationDiagnostics(void 0,i)),o.length){var s;if(!r&&!e.outFile(a)){var c=t.emitBuildInfo(n,i);c.diagnostics&&(o=f(f([],o,!0),c.diagnostics,!0)),s=c.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:s,emitSkipped:!0}}}}function k(t,r){return e.filter(t,(e=>!e.skippedOn||!r[e.skippedOn]))}function A(t,r){return void 0===r&&(r=t),{fileExists:e=>r.fileExists(e),readDirectory:(t,n,i,a,o)=>(e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)),readFile:e=>r.readFile(e),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?e=>t.trace(e):void 0}}function N(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,d=c.declarationFilePath,p=c.declarationMapPath,_=c.buildInfoPath,f=e.createInputFiles(n,l,u,d,p,_);(i||(i=[])).push(f)}}return i||e.emptyArray}function w(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function F(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function P(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((e=>e.text)),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function I(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=l,e.formatLocation=d,e.formatDiagnosticsWithColorAndContext=(t,r)=>{for(var n="",i=0,o=t;i<o.length;i++){var s=o[i];if(s.file&&(n+=d(g=s.file,h=s.start,r),n+=" - "),n+=l(e.diagnosticCategoryName(s),c(s.category)),n+=l(" TS".concat(s.code,": "),a.Grey),n+=p(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=u(s.file,s.start,s.length,"",c(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var _=0,f=s.relatedInformation;_<f.length;_++){var m=f[_],g=m.file,h=m.start,y=m.length,v=m.messageText;g&&(n+=r.getNewLine(),n+=" "+d(g,h,r),n+=u(g,h,y," ",a.Cyan,r)),n+=r.getNewLine(),n+=" "+p(v,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=p,e.loadWithTypeDirectiveCache=_,e.getModeForFileReference=m,e.getModeForResolutionAtIndex=g,e.isExclusivelyTypeOnlyImportOrExport=h,e.getModeForUsageLocation=y,e.getResolutionModeOverrideForClause=v,e.loadWithModeAwareCache=b,e.forEachResolvedProjectReference=(e,t)=>x(void 0,e,((e,r)=>e&&t(e,r))),e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=E,e.isReferenceFileLocation=S,e.getReferencedFileLocation=D,e.isProgramUptoDate=(t,r,n,i,a,o,s,c,l)=>{if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),l,((r,n,i)=>e.projectReferenceIsEqualTo(r,n)&&p(t.getResolvedProjectReferences()[i],r))))return!1;if(t.getSourceFiles().some((e=>!(e=>e.version===i(e.resolvedPath,e.fileName))(e)||o(e.path))))return!1;if(t.getMissingFilePaths().some(a))return!1;var d=t.getCompilerOptions();return!(!e.compareDataObjects(d,n)||d.configFile&&n.configFile&&d.configFile.text!==n.configFile.text);function p(t,r){if(t){if(e.contains(u,t))return!0;var n=w(r),i=c(n);return!!i&&t.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(t.commandLine.fileNames,i.fileNames)&&((u||(u=[])).push(t),!e.forEach(t.references,((e,r)=>!p(e,t.commandLine.projectReferences[r]))))}var a=w(r);return!c(a)}},e.getConfigFileParsingDiagnostics=e=>e.options.configFile?f(f([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors,e.getImpliedNodeFormatForFile=T,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code]),e.createProgram=function(n,i,a,o,s){var c,l,u,d,p,h,y,v,I,O,M,R,L=e.isArray(n)?((e,t,r,n,i)=>({rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}))(n,i,a,o,s):n,B=L.rootNames,j=L.options,U=L.configFileParsingDiagnostics,V=L.projectReferences,K=L.oldProgram,z=new e.Map,W=e.createMultiMap(),J={},H={},$=e.createModeAwareCache(),G="number"==typeof j.maxNodeModuleJsDepth?j.maxNodeModuleJsDepth:0,q=0,X=new e.Map,Y=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:j.configFilePath,rootDir:j.rootDir},!0),e.performance.mark("beforeProgram");var Q,Z,ee,te,re,ne=L.host||r(j),ie=A(ne),ae=j.noLib,oe=e.memoize((()=>ne.getDefaultLibFileName(j))),se=ne.getDefaultLibLocation?ne.getDefaultLibLocation():e.getDirectoryPath(oe()),ce=e.createDiagnosticCollection(),le=ne.getCurrentDirectory(),ue=e.getSupportedExtensions(j),de=e.getSupportedExtensionsWithJsonIfResolveJsonModule(j,ue),pe=new e.Map,_e=ne.hasInvalidatedResolution||e.returnFalse;if(ne.resolveModuleNames)te=(t,r,n,i,a)=>ne.resolveModuleNames(e.Debug.checkEachDefined(t),n,i,a,j,r).map((t=>{if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})),Z=null===(c=ne.getModuleResolutionCache)||void 0===c?void 0:c.call(ne);else{Z=e.createModuleResolutionCache(le,$t,j);var fe=(t,r,n,i)=>e.resolveModuleName(t,n,j,ne,Z,i,r).resolvedModule;te=(t,r,n,i,a)=>b(e.Debug.checkEachDefined(t),r,n,a,fe)}if(ne.resolveTypeReferenceDirectives)re=(t,r,n,i)=>ne.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,j,i);else{ee=e.createTypeReferenceDirectiveResolutionCache(le,$t,void 0,null==Z?void 0:Z.getPackageJsonInfoCache());var me=(t,r,n,i)=>e.resolveTypeReferenceDirective(t,r,j,ne,n,ee,i).resolvedTypeReferenceDirective;re=(t,r,n,i)=>_(e.Debug.checkEachDefined(t),r,n,i,me)}var ge,he,ye,ve,be,xe=new e.Map,Ee=new e.Map,Se=e.createMultiMap(),De=!1,Te=new e.Map,Ce=ne.useCaseSensitiveFileNames()?new e.Map:void 0,ke=!!(null===(l=ne.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(ne))&&!j.disableSourceOfProjectReferenceRedirect,Ae=(t=>{var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;return t.useSourceOfProjectReferenceRedirect?(t.compilerHost.fileExists=c,a&&(n=t.compilerHost.directoryExists=n=>a.call(t.compilerHost,n)?((r=>{var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}})(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((n=>{var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),l(n,!1))),o&&(t.compilerHost.getDirectories=e=>!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]),s&&(t.compilerHost.realpath=e=>{var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)}),{onProgramCreateComplete(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o},fileExists:c,directoryExists:n}):{onProgramCreateComplete:e.noop,fileExists:c};function c(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&!!e.isDeclarationFileName(r)&&l(r,!0)}function l(n,a){var o,s=a?r=>(r=>{var n=t.getSourceOfProjectReferenceRedirect(t.toPath(r));return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0})(r):n=>(n=>{var i=t.toPath(n),a="".concat(i).concat(e.directorySeparator);return e.forEachKey(r,(t=>i===t||e.startsWith(t,a)||e.startsWith(i,"".concat(t,"/"))))})(n),c=s(n);if(void 0!==c)return c;var l=t.getSymlinkCache(),u=l.getSymlinkedDirectories();if(!u)return!1;var d=t.toPath(n);return!!e.stringContains(d,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(d)))||e.firstDefinedIterator(u.entries(),(r=>{var i=r[0],o=r[1];if(o&&e.startsWith(d,i)){var c=s(d.replace(i,o.realPath));if(a&&c){var u=e.getNormalizedAbsolutePath(n,t.compilerHost.getCurrentDirectory());l.setSymlinkedFile(d,"".concat(o.real).concat(u.replace(new RegExp(i,"i"),"")))}return c}}))||!1)}})({compilerHost:ne,getSymlinkCache:pr,useSourceOfProjectReferenceRedirect:ke,toPath:Ye,getResolvedProjectReferences:rt,getSourceOfProjectReferenceRedirect:jt,forEachResolvedProjectReference:Bt}),Ne=Ae.onProgramCreateComplete,we=Ae.fileExists,Fe=Ae.directoryExists,Pe=ne.readFile.bind(ne);null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!K});var Ie,Oe=((t,r)=>!!t&&e.optionsHaveChanges(t.getCompilerOptions(),r,e.sourceFileAffectingCompilerOptions))(K,j);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Ie=(()=>{var t;if(!K)return 0;var r=K.getCompilerOptions();if(e.changesAffectModuleResolution(r,j))return 0;var n=K.getRootFileNames();if(!e.arrayIsEqualTo(n,B))return 0;if(x(K.getProjectReferences(),K.getResolvedProjectReferences(),((t,r,n)=>{var i=qt((r?r.commandLine.projectReferences:V)[n]);return t?!i||i.sourceFile!==t.sourceFile||!e.arrayIsEqualTo(t.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),((t,r)=>{var n=r?Vt(r.sourceFile.path).commandLine.projectReferences:V;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;V&&(he=V.map(qt));var i=[],a=[];if(Ie=2,K.getMissingFilePaths().some((e=>ne.fileExists(e))))return 0;var o,s=K.getSourceFiles();!(e=>{e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"})(o||(o={}));for(var c=new e.Map,l=0,u=s;l<u.length;l++){var d=u[l];if(!(M=ne.getSourceFileByPath?ne.getSourceFileByPath(d.fileName,d.resolvedPath,Ft(d.fileName,Z,ne,j),void 0,Oe):ne.getSourceFile(d.fileName,Ft(d.fileName,Z,ne,j),void 0,Oe)))return 0;e.Debug.assert(!M.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var p=void 0;if(d.redirectInfo){if(M!==d.redirectInfo.unredirected)return 0;p=!1,M=d}else if(K.redirectTargetsMap.has(d.path)){if(M!==d)return 0;p=!1}else p=M!==d;M.path=d.path,M.originalFileName=d.originalFileName,M.resolvedPath=d.resolvedPath,M.fileName=d.fileName;var _=K.sourceFileToPackageName.get(d.path);if(void 0!==_){var f=c.get(_),m=p?1:0;if(void 0!==f&&1===m||1===f)return 0;c.set(_,m)}p?(e.arrayIsEqualTo(d.libReferenceDirectives,M.libReferenceDirectives,Et)||(Ie=1),d.hasNoDefaultLib!==M.hasNoDefaultLib&&(Ie=1),e.arrayIsEqualTo(d.referencedFiles,M.referencedFiles,Et)||(Ie=1),Tt(M),e.arrayIsEqualTo(d.imports,M.imports,St)||(Ie=1),e.arrayIsEqualTo(d.moduleAugmentations,M.moduleAugmentations,St)||(Ie=1),(6291456&d.flags)!=(6291456&M.flags)&&(Ie=1),e.arrayIsEqualTo(d.typeReferenceDirectives,M.typeReferenceDirectives,Et)||(Ie=1),a.push({oldFile:d,newFile:M})):_e(d.path)&&(Ie=1,a.push({oldFile:d,newFile:M})),i.push(M)}if(2!==Ie)return Ie;for(var g=a.map((e=>e.oldFile)),h=0,v=s;h<v.length;h++){var b=v[h];if(!e.contains(g,b))for(var E=0,S=b.ambientModuleNames;E<S.length;E++){var D=S[E];z.set(D,b.fileName)}}for(var T=0,C=a;T<C.length;T++){var k=C[T],A=(d=k.oldFile,P(M=k.newFile)),N=Ze(A,M);e.hasChangesInResolutions(A,N,d.resolvedModules,d,e.moduleResolutionIsEqualTo)?(Ie=1,M.resolvedModules=e.zipToModeAwareCache(M,A,N)):M.resolvedModules=d.resolvedModules;var w=M.typeReferenceDirectives,F=$e(w,M);e.hasChangesInResolutions(w,F,d.resolvedTypeReferenceDirectiveNames,d,e.typeDirectiveIsEqualTo)?(Ie=1,M.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(M,w,F)):M.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}if(2!==Ie)return Ie;if(e.changesAffectingProgramStructure(r,j)||(null===(t=ne.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(ne)))return 1;ge=K.getMissingFilePaths(),e.Debug.assert(i.length===K.getSourceFiles().length);for(var I=0,O=i;I<O.length;I++){var M=O[I];Te.set(M.path,M)}return K.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Te.set(t,Te.get(e.path)):K.isSourceFileFromExternalLibrary(e)&&Y.set(e.path,!0):Te.set(t,e)})),y=i,W=K.getFileIncludeReasons(),R=K.getFileProcessingDiagnostics(),$=K.getResolvedTypeReferenceDirectives(),Ee=K.sourceFileToPackageName,Se=K.redirectTargetsMap,De=K.usesUriStyleNodeCoreModules,2})(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Ie){p=[],h=[],V&&(he||(he=V.map(qt)),B.length&&(null==he||he.forEach(((t,r)=>{if(t){var n=e.outFile(t.commandLine.options);if(ke){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++)At(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}else if(n)At(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!ne.useCaseSensitiveFileNames()))),s=0,c=t.commandLine.fileNames;s<c.length;s++){var l=c[s];e.isDeclarationFileName(l)||e.fileExtensionIs(l,".json")||At(e.getOutputDeclarationFileName(l,t.commandLine,!ne.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:B.length}),e.forEach(B,((t,r)=>xt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r}))),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Me=B.length?e.getAutomaticTypeDirectiveNames(j,ne):e.emptyArray;if(Me.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Me.length});for(var Re=j.configFilePath?e.getDirectoryPath(j.configFilePath):ne.getCurrentDirectory(),Le=$e(Me,e.combinePaths(Re,e.inferredTypesContainingFile)),Be=0;Be<Me.length;Be++)Wt(Me[Be],void 0,Le[Be],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Me[Be],packageId:null===(u=Le[Be])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(B.length&&!ae){var je=oe();!j.lib&&je?xt(je,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(j.lib,((t,r)=>{xt(Jt(t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}ge=e.arrayFrom(e.mapDefinedIterator(Te.entries(),(e=>{var t=e[0];return void 0===e[1]?t:void 0}))),y=e.stableSort(p,((t,r)=>e.compareValues(Xe(t),Xe(r)))).concat(h),p=void 0,h=void 0}if(e.Debug.assert(!!ge),K&&ne.onReleaseOldSourceFile){for(var Ue=0,Ve=K.getSourceFiles();Ue<Ve.length;Ue++){var Ke=Ve[Ue],ze=ct(Ke.resolvedPath);(Oe||!ze||Ke.resolvedPath===Ke.path&&ze.resolvedPath!==Ke.path)&&ne.onReleaseOldSourceFile(Ke,K.getCompilerOptions(),!!ct(Ke.path))}ne.getParsedCommandLine||K.forEachResolvedProjectReference((e=>{Vt(e.sourceFile.path)||ne.onReleaseOldSourceFile(e.sourceFile,K.getCompilerOptions(),!1)}))}K&&ne.onReleaseParsedCommandLine&&x(K.getProjectReferences(),K.getResolvedProjectReferences(),((e,t,r)=>{var n=w((null==t?void 0:t.commandLine.projectReferences[r])||K.getProjectReferences()[r]);(null==ye?void 0:ye.has(Ye(n)))||ne.onReleaseParsedCommandLine(n,e,K.getCompilerOptions())})),ee=void 0,K=void 0;var We={getRootFileNames:()=>B,getSourceFile:st,getSourceFileByPath:ct,getSourceFiles:()=>y,getMissingFilePaths:()=>ge,getModuleResolutionCache:()=>Z,getFilesByNameMap:()=>Te,getCompilerOptions:()=>j,getSyntacticDiagnostics:(e,t)=>lt(e,dt,t),getOptionsDiagnostics:()=>e.sortAndDeduplicateDiagnostics(e.concatenate(ce.getGlobalDiagnostics(),(()=>{if(!j.configFile)return e.emptyArray;var t=ce.getDiagnostics(j.configFile.fileName);return Bt((r=>{t=e.concatenate(t,ce.getDiagnostics(r.sourceFile.fileName))})),t})())),getGlobalDiagnostics:()=>B.length?e.sortAndDeduplicateDiagnostics(at().getGlobalDiagnostics().slice()):e.emptyArray,getSemanticDiagnostics:(e,t)=>lt(e,_t,t),getCachedSemanticDiagnostics(e){var t;return e?null===(t=J.perFile)||void 0===t?void 0:t.get(e.path):J.allDiagnostics},getSuggestionDiagnostics:(e,t)=>pt((()=>at().getSuggestionDiagnostics(e,t))),getDeclarationDiagnostics(t,r){var n=We.getCompilerOptions();return!t||e.outFile(n)?ht(t,r):lt(t,bt,r)},getBindAndCheckDiagnostics:(e,t)=>ft(e,t),getProgramDiagnostics:ut,getTypeChecker:at,getClassifiableNames(){var t;if(!M){at(),M=new e.Set;for(var r=0,n=y;r<n.length;r++)null===(t=n[r].classifiableNames)||void 0===t||t.forEach((e=>M.add(e)))}return M},getCommonSourceDirectory:Qe,emit(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=pt((()=>((t,r,n,i,a,o,s)=>{if(!s){var c=C(t,r,n,i);if(c)return c}var l=at().getEmitResolver(e.outFile(j)?void 0:r,i);e.performance.mark("beforeEmit");var u=e.emitFiles(l,et(n),r,e.getTransformers(j,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u})(We,t,r,n,i,a,o)));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:()=>le,getNodeCount:()=>at().getNodeCount(),getIdentifierCount:()=>at().getIdentifierCount(),getSymbolCount:()=>at().getSymbolCount(),getTypeCount:()=>at().getTypeCount(),getInstantiationCount:()=>at().getInstantiationCount(),getRelationCacheSizes:()=>at().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>R,getResolvedTypeReferenceDirectives:()=>$,isSourceFileFromExternalLibrary:it,isSourceFileDefaultLibrary(t){if(!t.isDeclarationFile)return!1;if(t.hasNoDefaultLib)return!0;if(!j.noLib)return!1;var r=ne.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return j.lib?e.some(j.lib,(e=>r(t.fileName,Jt(e)))):r(t.fileName,oe())},getSourceFileFromReference:(e,r)=>Ct(t(r.fileName,e.fileName),st),getLibFileFromReference(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return st(Jt(n))},sourceFileToPackageName:Ee,redirectTargetsMap:Se,usesUriStyleNodeCoreModules:De,isEmittedFile(t){if(j.noEmit)return!1;var r=Ye(t);if(ct(r))return!1;var n=e.outFile(j);if(n)return dr(r,n)||dr(r,e.removeFileExtension(n)+".d.ts");if(j.declarationDir&&e.containsPath(j.declarationDir,r,le,!ne.useCaseSensitiveFileNames()))return!0;if(j.outDir)return e.containsPath(j.outDir,r,le,!ne.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(r)){var i=e.removeFileExtension(r);return!!ct(i+".ts")||!!ct(i+".tsx")}return!1},getConfigFileParsingDiagnostics:()=>U||e.emptyArray,getResolvedModuleWithFailedLookupLocationsFromCache:(t,r,n)=>Z&&e.resolveModuleNameFromCache(t,r,Z,n),getProjectReferences:()=>V,getResolvedProjectReferences:rt,getProjectReferenceRedirect:Ot,getResolvedProjectReferenceToRedirect:Lt,getResolvedProjectReferenceByPath:Vt,forEachResolvedProjectReference:Bt,isSourceOfProjectReferenceRedirect:Ut,emitBuildInfo(t){e.Debug.assert(!e.outFile(j)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,et(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),r},fileExists:we,readFile:Pe,directoryExists:Fe,getSymlinkCache:pr,realpath:null===(d=ne.realpath)||void 0===d?void 0:d.bind(ne),useCaseSensitiveFileNames:()=>ne.useCaseSensitiveFileNames(),getFileIncludeReasons:()=>W,structureIsReused:Ie,writeFile:tt};return Ne(),null==R||R.forEach((t=>{switch(t.kind){case 1:return ce.add(Xt(t.file&&ct(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=D(ct,t.reason),n=r.file,i=r.pos,a=r.end;return ce.add(e.createFileDiagnostic.apply(void 0,f([n,e.Debug.checkDefined(i),e.Debug.checkDefined(a)-i,t.diagnostic],t.args||e.emptyArray,!1)));default:e.Debug.assertNever(t)}})),(()=>{j.strictPropertyInitialization&&!e.getStrictOptionValue(j,"strictNullChecks")&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),j.exactOptionalPropertyTypes&&!e.getStrictOptionValue(j,"strictNullChecks")&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),j.isolatedModules&&(j.out&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),j.outFile&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),j.inlineSourceMap&&(j.sourceMap&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),j.mapRoot&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),j.composite&&(!1===j.declaration&&ir(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===j.incremental&&ir(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t,r=e.outFile(j);if(j.tsBuildInfoFile?e.isIncrementalCompilation(j)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!j.incremental||r||j.configFilePath||ce.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),t=j.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(j),x(V,he,((r,n,i)=>{var a=(n?n.commandLine.projectReferences:V)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(s.composite&&!s.noEmit||(n?n.commandLine.fileNames:B).length&&(s.composite||or(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&or(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?ne.fileExists(c)||or(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):or(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(or(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),pe.set(Ye(t),!0))}else or(o,i,e.Diagnostics.File_0_not_found,a.path)})),j.composite)for(var n=new e.Set(B.map(Ye)),i=0,a=y;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,We)&&!n.has(o.path)&&Qt(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,j.configFilePath||""])}if(j.paths)for(var s in j.paths)if(e.hasProperty(j.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||er(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(j.paths[s])){var c=j.paths[s].length;0===c&&er(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var u=j.paths[s][l],d=typeof u;"string"===d?(e.hasZeroOrOneAsteriskCharacter(u)||Zt(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,s),j.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||Zt(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Zt(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,s,d)}}else er(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);j.sourceMap||j.inlineSourceMap||(j.inlineSources&&ir(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),j.sourceRoot&&ir(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),j.out&&j.outFile&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!j.mapRoot||j.sourceMap||j.declarationMap||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),j.declarationDir&&(e.getEmitDeclarations(j)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),r&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",j.out?"out":"outFile")),j.declarationMap&&!e.getEmitDeclarations(j)&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),j.lib&&j.noLib&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),j.noImplicitUseStrict&&e.getStrictOptionValue(j,"alwaysStrict")&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var p=e.getEmitScriptTarget(j),_=e.find(y,(t=>e.isExternalModule(t)&&!t.isDeclarationFile));if(j.isolatedModules){j.module===e.ModuleKind.None&&p<2&&ir(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===j.preserveConstEnums&&ir(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(y,(t=>!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind));if(f){var m=e.getErrorSpanForNode(f,f);ce.add(e.createFileDiagnostic(f,m.start,m.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(f.fileName)))}}else _&&p<2&&j.module===e.ModuleKind.None&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),ce.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(r&&!j.emitDeclarationOnly&&(j.module&&j.module!==e.ModuleKind.AMD&&j.module!==e.ModuleKind.System?ir(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,j.out?"out":"outFile","module"):void 0===j.module&&_&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),ce.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,j.out?"out":"outFile")))),j.resolveJsonModule&&(e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeNext?ir(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(j)||ir(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),j.outDir||j.rootDir||j.sourceRoot||j.mapRoot){var g=Qe();j.outDir&&""===g&&y.some((t=>e.getRootLength(t.fileName)>1))&&ir(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(j.useDefineForClassFields&&0===p&&ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),j.checkJs&&!e.getAllowJSCompilerOption(j)&&ce.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),j.emitDeclarationOnly&&(e.getEmitDeclarations(j)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),j.noEmit&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),j.emitDecoratorMetadata&&!j.experimentalDecorators&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),j.jsxFactory?(j.reactNamespace&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==j.jsx&&5!==j.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFactory,p)||ar("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFactory)):j.reactNamespace&&!e.isIdentifierText(j.reactNamespace,p)&&ar("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,j.reactNamespace),j.jsxFragmentFactory&&(j.jsxFactory||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==j.jsx&&5!==j.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+j.jsx)),e.parseIsolatedEntityName(j.jsxFragmentFactory,p)||ar("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFragmentFactory)),j.reactNamespace&&(4!==j.jsx&&5!==j.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+j.jsx))),j.jsxImportSource&&2===j.jsx&&ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+j.jsx)),j.preserveValueImports&&e.getEmitModuleKind(j)<e.ModuleKind.ES2015&&ar("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!j.noEmit&&!j.suppressOutputPathCheck){var h=et(),v=new e.Set;e.forEachEmittedFile(h,(e=>{j.emitDeclarationOnly||b(e.jsFilePath,v),b(e.declarationFilePath,v)}))}function b(t,r){if(t){var n=Ye(t);if(Te.has(n)){var i=void 0;j.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),ur(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=ne.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?ur(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}})(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),We;function Je(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];ce.add(n)}}function He(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,le),a=Ge(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=te(t,r,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),((t,r)=>{var n;if(Z)for(var i=e.getNormalizedAbsolutePath(r.originalFileName,le),a=e.isString(r)?void 0:r.impliedNodeFormat,o=e.getDirectoryPath(i),s=Ge(r),c=0,l=0,u=t;l<u.length;l++){var d=u[l],p="string"==typeof d?g(r,c):m(d,a),_="string"==typeof d?d:d.fileName;c++,e.isExternalModuleNameRelative(_)||Je(null===(n=Z.getOrCreateCacheForModuleName(_,p,s).get(o))||void 0===n?void 0:n.resolutionDiagnostics)}})(t,r),o}function $e(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,le),i=e.isString(r)?void 0:Ge(r),a=e.isString(r)?void 0:r.impliedNodeFormat;null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var o=re(t,n,i,a);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ge(t){var r=Lt(t.originalFileName);if(r||!e.isDeclarationFileName(t.originalFileName))return r;var n=qe(t.path);if(n)return n;if(ne.realpath&&j.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Ye(ne.realpath(t.originalFileName));return i===t.path?void 0:qe(i)}}function qe(t){var r=jt(t);return e.isString(r)?Lt(r):r?Bt((r=>{var n=e.outFile(r.commandLine.options);if(n)return Ye(n)===t?r:void 0})):void 0}function Xe(t){if(e.containsPath(se,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Ye(t){return e.toPath(t,le,$t)}function Qe(){if(void 0===I){var t=e.filter(y,(t=>e.sourceFileMayBeEmitted(t,We)));I=e.getCommonSourceDirectory(j,(()=>e.mapDefined(t,(e=>e.isDeclarationFile?void 0:e.fileName))),le,$t,(r=>((t,r)=>{for(var n=!0,i=ne.getCanonicalFileName(e.getNormalizedAbsolutePath(r,le)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==ne.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,le)).indexOf(i)&&(Qt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n})(t,r)))}return I}function Ze(t,r){if(0===Ie&&!r.ambientModuleNames.length)return He(t,r,void 0);var n,i,a,o=K&&K.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=r.resolvedModules.get(d,g(r,c));c++,s.push(p)}return s}var _={};for(c=0;c<t.length;c++){if(d=t[c],r===o&&!_e(o.path)){var f=e.getResolvedModule(o,d,g(o,c));if(f){e.isTraceEnabled(j,ne)&&e.trace(ne,f.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,d,e.getNormalizedAbsolutePath(r.originalFileName,le),f.resolvedFileName,f.packageId&&e.packageIdToString(f.packageId)),(i||(i=new Array(t.length)))[c]=f,(a||(a=[])).push(d);continue}}var m=!1;e.contains(r.ambientModuleNames,d)?(m=!0,e.isTraceEnabled(j,ne)&&e.trace(ne,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,e.getNormalizedAbsolutePath(r.originalFileName,le))):m=v(d,c),m?(i||(i=new Array(t.length)))[c]=_:(n||(n=[])).push(d)}var h=n&&n.length?He(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(h.length===t.length),h;var y=0;for(c=0;c<i.length;c++)i[c]?i[c]===_&&(i[c]=void 0):(i[c]=h[y],y++);return e.Debug.assert(y===h.length),i;function v(t,r){if(r>=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&g(o,r)),i=n&&K.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=z.get(t);return!!a&&(e.isTraceEnabled(j,ne)&&e.trace(ne,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function et(t){return{getPrependNodes:nt,getCanonicalFileName:$t,getCommonSourceDirectory:We.getCommonSourceDirectory,getCompilerOptions:We.getCompilerOptions,getCurrentDirectory:()=>le,getNewLine:()=>ne.getNewLine(),getSourceFile:We.getSourceFile,getSourceFileByPath:We.getSourceFileByPath,getSourceFiles:We.getSourceFiles,getLibFileFromReference:We.getLibFileFromReference,isSourceFileFromExternalLibrary:it,getResolvedProjectReferenceToRedirect:Lt,getProjectReferenceRedirect:Ot,isSourceOfProjectReferenceRedirect:Ut,getSymlinkCache:pr,writeFile:t||tt,isEmitBlocked:ot,readFile:e=>ne.readFile(e),fileExists(t){var r=Ye(t);return!!ct(r)||!e.contains(ge,r)&&ne.fileExists(t)},useCaseSensitiveFileNames:()=>ne.useCaseSensitiveFileNames(),getProgramBuildInfo:()=>We.getProgramBuildInfo&&We.getProgramBuildInfo(),getSourceFileFromReference:(e,t)=>We.getSourceFileFromReference(e,t),redirectTargetsMap:Se,getFileIncludeReasons:We.getFileIncludeReasons}}function tt(e,t,r,n,i,a){ne.writeFile(e,t,r,n,i,a)}function rt(){return he}function nt(){return N(V,((e,t)=>{var r;return null===(r=he[t])||void 0===r?void 0:r.commandLine}),(e=>{var t=Ye(e),r=ct(t);return r?r.text:Te.has(t)?void 0:ne.readFile(t)}))}function it(e){return!!Y.get(e.path)}function at(){return O||(O=e.createTypeChecker(We))}function ot(e){return pe.has(Ye(e))}function st(e){return ct(Ye(e))}function ct(e){return Te.get(e)||void 0}function lt(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(We.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),r(e,n)))))}function ut(t){var r;if(e.skipTypeChecking(t,j,We))return e.emptyArray;var n=ce.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?gt(t,t.commentDirectives,n).diagnostics:n}function dt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=(t=>pt((()=>{var r=[];return n(t,t),e.forEachChildRecursively(t,n,((t,n)=>{switch(n.decorators!==t||j.experimentalDecorators||r.push(a(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 257:case 226:case 169:case 171:case 172:case 173:case 213:case 256:case 214:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 237:if(t===n.modifiers)return((t,n)=>{for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(n)continue;case 123:case 121:case 122:case 145:case 135:case 126:case 159:case 101:case 144:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}})(n.modifiers,237===n.kind),"skip";break;case 167:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];124!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 164:if(t===n.modifiers)return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 208:case 209:case 228:case 279:case 280:case 210:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 164:case 167:case 169:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 168:case 171:case 172:case 173:case 213:case 256:case 214:case 254:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 267:if(t.isTypeOnly)return r.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 272:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 270:case 275:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(t)?"import...type":"export...type")),"skip";break;case 265:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 271:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 291:if(117===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 258:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 261:var o=16&t.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 259:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 260:var s=e.Debug.checkDefined(e.tokenToString(92));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 230:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 229:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 211:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})))(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function pt(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(O=void 0),t}}function _t(t,r){return e.concatenate(k(ft(t,r),j),ut(t))}function ft(e,t){return vt(e,t,J,mt)}function mt(t,r){return pt((()=>{if(e.skipTypeChecking(t,j,We))return e.emptyArray;var n=at();e.Debug.assert(!!t.bindDiagnostics);var i=(1===t.scriptKind||2===t.scriptKind)&&e.isCheckJsEnabledForFile(t,j),a=e.isPlainJsFile(t,j.checkJs),o=!(t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||i||7===t.scriptKind),s=o?t.bindDiagnostics:e.emptyArray,c=o?n.getDiagnostics(t,r):e.emptyArray;return a&&(s=e.filter(s,(t=>e.plainJSErrors.has(t.code))),c=e.filter(c,(t=>e.plainJSErrors.has(t.code)))),function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=gt(t,t.commentDirectives,o),c=s.diagnostics,l=s.directives,u=0,d=l.getUnusedExpectations();u<d.length;u++){var p=d[u];c.push(e.createDiagnosticForRange(t,p.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,o&&!a,s,c,i?t.jsDocDiagnostics:void 0)}))}function gt(t,r,n){var i=e.createCommentDirectivesMap(t,r);return{diagnostics:n.filter((t=>-1===((t,r)=>{var n=t.file,i=t.start;if(!n)return-1;for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1})(t,i))),directives:i}}function ht(e,t){return vt(e,t,H,yt)}function yt(t,r){return pt((()=>{var n=at().getEmitResolver(t,r);return e.getDeclarationDiagnostics(et(e.noop),n,t)||e.emptyArray}))}function vt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function bt(e,t){return e.isDeclarationFile?[]:ht(e,t)}function xt(t,r,n,i){kt(e.normalizePath(t),r,n,void 0,i)}function Et(e,t){return e.fileName===t.fileName}function St(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Dt(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Tt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((j.isolatedModules||o)&&!t.isDeclarationFile){j.importHelpers&&(r=[Dt(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(j,t),j);s&&(r||(r=[])).push(Dt(s,t))}for(var c=0,l=t.statements;c<l.length;c++)u(l[c],!1);return(2097152&t.flags||a)&&(t=>{for(var n=/import|require/g;null!==n.exec(t.text);){var i=d(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&i.arguments.length>=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}})(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),De||0!==q||t.isDeclarationFile||(De=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,_=d.statements;p<_.length;p++)u(_[p],!0)}}}function d(t,r){for(var n=t,i=e=>{if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function Ct(t,r,n,i){if(e.hasExtension(t)){var a=ne.getCanonicalFileName(t);if(!j.allowNonTsExtensions&&!e.forEach(e.flatten(de),(t=>e.fileExtensionIs(a,t))))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+e.flatten(ue).join("', '")+"'")));var o=r(t);if(n)if(o)E(i)&&a===ne.getCanonicalFileName(ct(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Ot(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=j.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!j.allowNonTsExtensions){var l=e.forEach(ue[0],(e=>r(t+e)));return n&&!l&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+e.flatten(ue).join("', '")+"'"),l}n(e.Diagnostics.File_0_not_found,t)}function kt(e,t,r,n,i){Ct(e,(e=>wt(e,t,r,i,n)),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Yt(void 0,i,e,t)}),i)}function At(e,t){return kt(e,!1,!1,void 0,t)}function Nt(t,r,n){!E(n)&&e.some(W.get(r.path),E)?Yt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Yt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function wt(t,r,n,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[i.kind]});var o=function(t,r,n,i,a){var o=Ye(t);if(ke){var s=jt(o);if(!s&&ne.realpath&&j.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=Ye(ne.realpath(t));c!==o&&(s=jt(c))}if(s){var l=e.isString(s)?wt(s,r,n,i,a):void 0;return l&&It(l,o,void 0),l}}var u,d=t;if(Te.has(o)){var _=Te.get(o);if(Pt(_||void 0,i),_&&j.forceConsistentCasingInFileNames){var f=_.fileName;Ye(f)!==Ye(t)&&(t=Ot(t)||t),e.getNormalizedAbsolutePathWithoutRoot(f,le)!==e.getNormalizedAbsolutePathWithoutRoot(t,le)&&Nt(t,_,i)}return _&&Y.get(_.path)&&0===q?(Y.set(_.path,!1),j.noResolve||(Kt(_,r),zt(_)),j.noLib||Ht(_),X.set(_.path,!1),Gt(_)):_&&X.get(_.path)&&q<G&&(X.set(_.path,!1),Gt(_)),_||void 0}if(E(i)&&!ke){var m=Mt(t);if(m){if(e.outFile(m.commandLine.options))return;var g=Rt(m,t);t=g,u=Ye(g)}}var y=ne.getSourceFile(t,Ft(t,Z,ne,j),(r=>Yt(void 0,i,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])),Oe);if(a){var v=e.packageIdToString(a),b=xe.get(v);if(b){var x=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},Y.set(n,q>0),Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(b,y,t,o,Ye(t),d);return Se.add(b.path,t),It(x,o,u),Pt(x,i),Ee.set(o,e.packageIdToPackageName(a)),h.push(x),x}y&&(xe.set(v,y),Ee.set(o,e.packageIdToPackageName(a)))}if(It(y,o,u),y){if(Y.set(o,q>0),y.fileName=t,y.path=o,y.resolvedPath=Ye(t),y.originalFileName=d,Pt(y,i),ne.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(o),D=Ce.get(S);D?Nt(t,D,i):Ce.set(S,y)}ae=ae||y.hasNoDefaultLib&&!n,j.noResolve||(Kt(y,r),zt(y)),j.noLib||Ht(y),Gt(y),r?p.push(y):h.push(y)}return y}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ft(t,r,n,i){var a=T(Ye(t),null==r?void 0:r.getPackageJsonInfoCache(),n,i);return{languageVersion:e.getEmitScriptTarget(i),impliedNodeFormat:a,setExternalModuleIndicator:e.getSetExternalModuleIndicator(i)}}function Pt(e,t){e&&W.add(e.path,t)}function It(e,t,r){r?(Te.set(r,e),Te.set(t,e||!1)):Te.set(t,e)}function Ot(e){var t=Mt(e);return t&&Rt(t,e)}function Mt(t){if(he&&he.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Lt(t)}function Rt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames())}function Lt(t){void 0===ve&&(ve=new e.Map,Bt((e=>{Ye(j.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>ve.set(Ye(t),e.sourceFile.path)))})));var r=ve.get(Ye(t));return r&&Vt(r)}function Bt(t){return e.forEachResolvedProjectReference(he,t)}function jt(t){if(e.isDeclarationFileName(t))return void 0===be&&(be=new e.Map,Bt((t=>{var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");be.set(Ye(n),!0)}else{var i=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!ne.useCaseSensitiveFileNames())));e.forEach(t.commandLine.fileNames,(r=>{if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames(),i);be.set(Ye(n),r)}}))}}))),be.get(t)}function Ut(e){return ke&&!!Lt(e)}function Vt(e){if(ye)return ye.get(e)||void 0}function Kt(r,n){e.forEach(r.referencedFiles,((i,a)=>{kt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function zt(t){var r=t.typeReferenceDirectives;if(r)for(var n=$e(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o);var c=a.resolutionMode||t.impliedNodeFormat;c&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeNext&&ce.add(e.createDiagnosticForRange(t,a,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Wt(s,c,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function Wt(t,r,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!Ze,refKind:i.kind,refPath:E(i)?i.file:void 0}),((t,r,n,i)=>{var a=$.get(t,r);if(!a||!a.primary){var o=!0;if(n){if(n.isExternalLibraryImport&&q++,n.primary)kt(n.resolvedFileName,!1,!1,n.packageId,i);else if(a){if(n.resolvedFileName!==a.resolvedFileName){var s=ne.readFile(n.resolvedFileName),c=st(a.resolvedFileName);s!==c.text&&Yt(c,i,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[t,n.resolvedFileName,a.resolvedFileName])}o=!1}else kt(n.resolvedFileName,!1,!1,n.packageId,i);n.isExternalLibraryImport&&q--}else Yt(void 0,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);o&&$.set(t,r,n)}})(t,r,n,i),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Jt(t){for(var r=t.split("."),n=r[1],i=2;r[i]&&"d"!==r[i];)n+=(2===i?"/":"-")+r[i],i++;var a=e.combinePaths(le,"__lib_node_modules_lookup_".concat(t,"__.ts")),o=e.resolveModuleName("@typescript/lib-"+n,a,{moduleResolution:e.ModuleResolutionKind.NodeJs},ne,Z);return(null==o?void 0:o.resolvedModule)?o.resolvedModule.resolvedFileName:e.combinePaths(se,t)}function Ht(t){e.forEach(t.libReferenceDirectives,((r,n)=>{var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)xt(Jt(a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(R||(R=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function $t(e){return ne.getCanonicalFileName(e)}function Gt(t){var r;if(Tt(t),t.imports.length||t.moduleAugmentations.length){var n=P(t),i=Ze(n,t);e.Debug.assert(i.length===n.length);for(var a=(ke?null===(r=Ge(t))||void 0===r?void 0:r.commandLine.options:void 0)||j,o=0;o<n.length;o++){var s=i[o];if(e.setResolvedModule(t,n[o],s,g(t,o)),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,d=s.resolvedFileName;c&&q++;var p=u&&q>G,_=d&&!F(a,s)&&!a.noResolve&&o<t.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(t.imports[o])||!(8388608&t.imports[o].flags));p?X.set(t.path,!0):_&&wt(d,!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:o},s.packageId),c&&q--}}}else t.resolvedModules=void 0}function qt(t){ye||(ye=new e.Map);var r,n,i=w(t),a=Ye(i),o=ye.get(a);if(void 0!==o)return o||void 0;if(ne.getParsedCommandLine){if(!(r=ne.getParsedCommandLine(i)))return It(void 0,a,void 0),void ye.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),It(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),ne.getCurrentDirectory());if(It(n=ne.getSourceFile(i,100),a,void 0),void 0===n)return void ye.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,ie,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return ye.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(qt)),c}function Xt(t,r,n,i){var a,o,s,c=E(r)?r:void 0;t&&(null===(a=W.get(t.path))||void 0===a||a.forEach(_)),r&&_(r),c&&1===(null==o?void 0:o.length)&&(o=void 0);var l=c&&D(ct,c),u=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon),d=t&&e.explainIfFileIsRedirect(t),p=e.chainDiagnosticMessages.apply(void 0,f([d?u?f([u],d,!0):d:u,n],i||e.emptyArray,!1));return l&&S(l)?e.createFileDiagnosticFromMessageChain(l.file,l.pos,l.end-l.pos,p,s):e.createCompilerDiagnosticFromMessageChain(p,s);function _(t){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(We,t)),!c&&E(t)?c=t:c!==t&&(s=e.append(s,(t=>{if(E(t)){var r,n=D(ct,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return S(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(j.configFile){var i,a,o,s;switch(t.kind){case e.FileIncludeKind.RootFile:if(!j.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(B[t.index],le),l=e.getMatchedFileSpec(We,c);if(l){i=e.getTsConfigPropArrayElementValue(j.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var u=e.getMatchedIncludeSpec(We,c);if(!u)return;i=e.getTsConfigPropArrayElementValue(j.configFile,"include",u),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=e.Debug.checkDefined(null==he?void 0:he[t.index]),p=x(V,he,((e,t,r)=>e===d?{sourceFile:(null==t?void 0:t.sourceFile)||j.configFile,index:r}:void 0));if(!p)return;var _=p.sourceFile,f=p.index,m=e.firstDefined(e.getTsConfigPropArray(_,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));return m&&m.elements.length>f?e.createDiagnosticForNodeInSourceFile(_,m.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!j.types)return;i=nr("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=nr("lib",j.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var g=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(j)?r:void 0));i=g?(o=g,(s=tr("target"))&&e.firstDefined(s,(t=>e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(j.configFile,i,a)}})(t))),t===r&&(r=void 0)}}function Yt(e,t,r,n){(R||(R=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Qt(e,t,r){ce.add(Xt(e,void 0,t,r))}function Zt(t,r,n,i,a,o){for(var s=!0,c=0,l=rr();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var d=0,p=e.getPropertyAssignment(u.initializer,t);d<p.length;d++){var _=p[d].initializer;e.isArrayLiteralExpression(_)&&_.elements.length>r&&(ce.add(e.createDiagnosticForNodeInSourceFile(j.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&ce.add(e.createCompilerDiagnostic(n,i,a,o))}function er(t,r,n,i){for(var a=!0,o=0,s=rr();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&lr(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&ce.add(e.createCompilerDiagnostic(n,i))}function tr(t){var r=cr();return r&&e.getPropertyAssignment(r,t)}function rr(){return tr("paths")||e.emptyArray}function nr(t,r){var n=cr();return n&&e.getPropertyArrayElementValue(n,t,r)}function ir(e,t,r,n){sr(!0,t,r,e,t,r,n)}function ar(e,t,r,n){sr(!1,e,void 0,t,r,n)}function or(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||j.configFile,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));o&&o.elements.length>r?ce.add(e.createDiagnosticForNodeInSourceFile(t||j.configFile,o.elements[r],n,i,a)):ce.add(e.createCompilerDiagnostic(n,i,a))}function sr(t,r,n,i,a,o,s){var c=cr();(!c||!lr(c,t,r,n,i,a,o,s))&&ce.add(e.createCompilerDiagnostic(i,a,o,s))}function cr(){if(void 0===Q){Q=!1;var t=e.getTsConfigObjectLiteralExpression(j.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){Q=i.initializer;break}}}return Q||void 0}function lr(t,r,n,i,a,o,s,c){for(var l=e.getPropertyAssignment(t,n,i),u=0,d=l;u<d.length;u++){var p=d[u];ce.add(e.createDiagnosticForNodeInSourceFile(j.configFile,r?p.name:p.initializer,a,o,s,c))}return!!l.length}function ur(e,t){pe.set(Ye(e),!0),ce.add(t)}function dr(t,r){return 0===e.comparePaths(t,r,le,!ne.useCaseSensitiveFileNames())}function pr(){return ne.getSymlinkCache?ne.getSymlinkCache():(v||(v=e.createSymlinkCache(le,$t)),y&&$&&!v.hasProcessedResolutions()&&v.setSymlinksFromResolutions(y,$),v)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=C,e.filterSemanticDiagnostics=k,e.parseConfigHostFromCompilerHostLike=A,e.createPrependNodes=N,e.resolveProjectReferencePath=w,e.getResolutionDiagnostic=F,e.getModuleNameStringLiteralAt=I}(p),(e=>{function t(e,t,r,n,i,a){var o=[],s=e.emit(t,((e,t,r)=>{o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=t,(r=>{function n(){return function t(r,n,a){var o={clone:()=>t(new e.Map(r),new e.Map(n),a&&new e.Set(a)),forEach:e=>r.forEach(e),getKeys:e=>n.get(e),getValues:e=>r.get(e),hasKey:e=>r.has(e),keys:()=>r.keys(),deletedKeys:()=>a,deleteKey(t){(a||(a=new e.Set)).add(t);var o=r.get(t);return!!o&&(o.forEach((e=>i(n,e,t))),r.delete(t),!0)},set(t,s){null==a||a.delete(t);var c=r.get(t);return r.set(t,s),null==c||c.forEach((e=>{s.has(e)||i(n,e,t)})),s.forEach((r=>{(null==c?void 0:c.has(r))||((t,r,n)=>{var i=t.get(r);i||(i=new e.Set,t.set(r,i)),i.add(n)})(n,r,t)})),o},clear(){r.clear(),n.clear(),null==a||a.clear()}};return o}(new e.Map,new e.Map,void 0)}function i(e,t,r){var n=e.get(t);return!!(null==n?void 0:n.delete(r))&&(n.size||e.delete(t),!0)}function a(t){return e.mapDefined(t.declarations,(t=>{var r;return null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.resolvedPath}))}function o(e,t){var r=e.getSymbolAtLocation(t);return r&&a(r)}function s(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function c(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var a=t.getTypeChecker(),c=0,l=r.imports;c<l.length;c++){var u=o(a,l[c]);null==u||u.forEach(S)}var d=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];S(s(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((e=>{if(e){var r=e.resolvedFileName;S(s(t,r,d,n))}})),r.moduleAugmentations.length){a=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var h=g[m];if(e.isStringLiteral(h)){var y=a.getSymbolAtLocation(h);y&&E(y)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations&&x.declarations.length>1&&E(x)}return i;function E(t){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(i||(i=new e.Set)).add(t)}}function l(e,t){return t&&!t.referencedMap==!e}function u(e,t){t.forEach(((t,r)=>d(e,t,r)))}function d(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function p(r,n,i,a,o,s,c,l){if(void 0===l&&(l=r.useFileVersionAsSignature),e.Debug.assert(!!i),e.Debug.assert(!c||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(i.resolvedPath)||a.has(i.resolvedPath))return!1;var u=r.fileInfos.get(i.resolvedPath);if(!u)return e.Debug.fail();var d,p=u.signature;if(!i.isDeclarationFile&&!l){var f=t(n,i,!0,o,void 0,!0),m=e.firstOrUndefined(f.outputFiles);m&&(e.Debug.assert(e.isDeclarationFileName(m.name),"File extension for signature expected to be dts",(()=>"Found: ".concat(e.getAnyExtensionFromPath(m.name)," for ").concat(m.name,":: All output files: ").concat(JSON.stringify(f.outputFiles.map((e=>e.name)))))),d=(s||e.generateDjb2Hash)(m.text),c&&d!==p&&_(i,f.exportedModulesFromDeclarationEmit,c))}if(void 0===d&&(d=i.version,c&&d!==p)){var g=r.referencedMap?r.referencedMap.getValues(i.resolvedPath):void 0;g?c.set(i.resolvedPath,g):c.deleteKey(i.resolvedPath)}return a.set(i.resolvedPath,d),d!==p}function _(t,r,n){var i;r?(r.forEach((t=>{var r;(null==(r=a(t))?void 0:r.length)&&(i||(i=new e.Set),r.forEach((e=>i.add(e))))})),i?n.set(t.resolvedPath,i):n.deleteKey(t.resolvedPath)):n.deleteKey(t.resolvedPath)}function f(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((e=>e.fileName))}return t.allFileNames}function m(t,r){var n=t.referencedMap.getKeys(r);return n?e.arrayFrom(n.keys()):[]}function g(t){return(t=>e.some(t.moduleAugmentations,(t=>e.isGlobalScopeAugmentation(t.parent))))(t)||!e.isExternalOrCommonJsModule(t)&&!e.isJsonSourceFile(t)&&!(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0})(t)}function h(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function y(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:h(t,r,n)}function v(t,r,n,i,a,o,s){if(g(n))return h(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var l=new e.Map;l.set(n.resolvedPath,n);for(var u=m(t,n.resolvedPath);u.length>0;){var d=u.pop();if(!l.has(d)){var _=r.getSourceFileByPath(d);l.set(d,_),_&&p(t,r,_,i,a,o,s)&&u.push.apply(u,m(t,_.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(e=>e)))}r.createManyToManyPathMap=n,r.canReuseOldState=l,r.create=(t,r,i,a)=>{var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?n():void 0,u=s?n():void 0,d=new e.Set,p=l(s,i);t.getTypeChecker();for(var _=0,f=t.getSourceFiles();_<f.length;_++){var m=f[_],h=e.Debug.checkDefined(m.version,"Program intended to be used with Builder should have source files with versions set"),y=p?i.fileInfos.get(m.resolvedPath):void 0;if(s){var v=c(t,m,r);if(v&&s.set(m.resolvedPath,v),p){var b=i.exportedModulesMap.getValues(m.resolvedPath);b&&u.set(m.resolvedPath,b)}}o.set(m.resolvedPath,{version:h,signature:y&&y.signature,affectsGlobalScope:g(m)||void 0,impliedFormat:m.impliedNodeFormat})}return{fileInfos:o,referencedMap:s,exportedModulesMap:u,hasCalledUpdateShapeSignature:d,useFileVersionAsSignature:!a&&!p}},r.releaseCache=e=>{e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=t=>{var r,n;return{fileInfos:new e.Map(t.fileInfos),referencedMap:null===(r=t.referencedMap)||void 0===r?void 0:r.clone(),exportedModulesMap:null===(n=t.exportedModulesMap)||void 0===n?void 0:n.clone(),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature),useFileVersionAsSignature:t.useFileVersionAsSignature}},r.getFilesAffectedBy=(t,r,n,i,a,o,s)=>{var c=o||new e.Map,l=r.getSourceFileByPath(n);if(!l)return e.emptyArray;if(!p(t,r,l,c,i,a,s))return[l];var d=(t.referencedMap?v:y)(t,r,l,c,i,a,s);return o||u(t,c),d},r.updateSignaturesFromCache=u,r.updateSignatureOfFile=d,r.updateShapeSignature=p,r.updateExportedModules=_,r.updateExportedFilesMapFromCache=(t,r)=>{var n;r&&(e.Debug.assert(!!t.exportedModulesMap),null===(n=r.deletedKeys())||void 0===n||n.forEach((e=>t.exportedModulesMap.deleteKey(e))),r.forEach(((e,r)=>t.exportedModulesMap.set(r,e))))},r.getAllDependencies=(t,r,n)=>{var i=r.getCompilerOptions();if(e.outFile(i))return f(t,r);if(!t.referencedMap||g(n))return f(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(e=>{var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=m,r.getAllFilesExcludingDefaultLibraryFile=h})(e.BuilderState||(e.BuilderState={}))})(p),(e=>{var t,r;function n(e,t,r){var n=e.file;return m(m({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function a(t,r,n,i){for(var a;;){var o=t.affectedFiles;if(o){for(var s=t.seenAffectedFiles,l=t.affectedFilesIndex;l<o.length;){var u=o[l];if(!s.has(u.resolvedPath))return t.affectedFilesIndex=l,c(t,u,r,n,i),u;l++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap)||void 0===a||a.clear(),t.affectedFiles=void 0}var d=t.changedFilesSet.keys().next();if(d.done)return;var p=e.Debug.checkDefined(t.program),_=p.getCompilerOptions();if(e.outFile(_))return e.Debug.assert(!t.semanticDiagnosticsPerFile),p;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,p,d.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=d.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function o(e){e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}function s(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var r=e.Debug.checkDefined(t.program),n=r.getCompilerOptions();e.forEach(r.getSourceFiles(),(i=>r.isSourceFileDefaultLibrary(i)&&!e.skipTypeChecking(i,n,r)&&u(t,i.resolvedPath)))}}function c(t,r,n,i,a){var o;if(u(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles)return s(t),void e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap);e.Debug.assert(t.hasCalledUpdateShapeSignature.has(r.resolvedPath)||(null===(o=t.currentAffectedFilesSignatures)||void 0===o?void 0:o.has(r.resolvedPath)),"Signature not updated for affected file: ".concat(r.fileName)),t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||((t,r,n,i,a)=>{if(t.exportedModulesMap&&t.changedFilesSet.has(r.resolvedPath)&&d(t,r.resolvedPath)){if(t.compilerOptions.isolatedModules){var o=new e.Map;o.set(r.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);s.length>0;){var c=s.pop();if(!o.has(c)){if(o.set(c,!0),_(t,c,n,i,a))return;if(l(t,c,n,i,a),d(t,c)){var u=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,u.resolvedPath))}}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var m=new e.Set;p(t,r.resolvedPath,(r=>{if(_(t,r,n,i,a))return!0;var o=t.referencedMap.getKeys(r);return o&&e.forEachKey(o,(e=>f(t,e,m,n,i,a)))}))}})(t,r,n,i,a)}function l(t,r,n,i,a){if(u(t,r),!t.changedFilesSet.has(r)){var o=e.Debug.checkDefined(t.program),s=o.getSourceFileByPath(r);s&&(e.BuilderState.updateShapeSignature(t,o,s,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!a.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&D(t,r,0))}}function u(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function d(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function p(t,r,n){var i=t.currentAffectedFilesExportedModulesMap.getKeys(r);return i&&e.forEachKey(i,n)||(i=t.exportedModulesMap.getKeys(r))&&e.forEachKey(i,(e=>{var r;return t.currentAffectedFilesExportedModulesMap.hasKey(e)||(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))?void 0:n(e)}))}function _(t,r,n,i,a){var o;return!!(null===(o=t.fileInfos.get(r))||void 0===o?void 0:o.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((e=>l(t,e.resolvedPath,n,i,a))),s(t),!0)}function f(t,r,n,i,a,o){var s;if(e.tryAddToSet(n,r)){if(_(t,r,i,a,o))return!0;l(t,r,i,a,o),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),p(t,r,(e=>f(t,e,n,i,a,o))),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((e=>!n.has(e)&&l(t,e,i,a,o)))}}function g(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function h(e,t,r){return g(e,r),{result:t,affected:r}}function y(e,t,r,n,i,a){return g(e,r,n,i,a),{result:t,affected:r}}function v(t,r,n){return e.concatenate(((t,r,n)=>{var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)})(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function b(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=s.toLowerCase(),l=i.get(c);((null==l?void 0:l.affectsEmit)||(null==l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((n||(n={}))[s]=x(l,t[s],r))}return n}function x(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function E(t,r){return e.Debug.assert(!!t.length),t.map((e=>{var t=S(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((e=>S(e,r))):[]:void 0,t}))}function S(e,t){var r=e.file;return m(m({},e),{file:r?t(r.resolvedPath):void 0})}function D(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function T(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function C(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:()=>t().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>r,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,a)=>n().emit(e,t,r,i,a),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:e.notImplemented,getCurrentDirectory:()=>n().getCurrentDirectory(),close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",(e=>{e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=(t,r,n,i,a,o)=>{var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=(r,s)=>{var c=s.newProgram,l=s.host,u=s.oldProgram,d=s.configFileParsingDiagnostics,p=u&&u.getState();if(p&&c===p.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,u;var _,f=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),m=e.maybeBind(l,l.createHash),x=((t,r,i,a)=>{var o=e.BuilderState.create(t,r,i,a);o.program=t;var s=t.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,i),l=c?i.compilerOptions:void 0,u=c&&i.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!i.currentChangedFilePath){var d=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||d&&d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=i.changedFilesSet;u&&e.Debug.assert(!p||!e.forEachKey(p,(e=>i.semanticDiagnosticsPerFile.has(e))),"Semantic diagnostics shouldnt be available for changed files"),null==p||p.forEach((e=>o.changedFilesSet.add(e))),!e.outFile(s)&&i.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var _=o.referencedMap,f=c?i.referencedMap:void 0,m=u&&!s.skipLibCheck==!l.skipLibCheck,g=m&&!s.skipDefaultLibCheck==!l.skipDefaultLibCheck;return o.fileInfos.forEach(((a,s)=>{var l,d,p,h;if(!c||!(l=i.fileInfos.get(s))||l.version!==a.version||(p=d=_&&_.getValues(s))!==(h=f&&f.getValues(s))&&(void 0===p||void 0===h||p.size!==h.size||e.forEachKey(p,(e=>!h.has(e))))||d&&e.forEachKey(d,(e=>!o.fileInfos.has(e)&&i.fileInfos.has(e))))o.changedFilesSet.add(s);else if(u){var y=t.getSourceFileByPath(s);if(y.isDeclarationFile&&!m)return;if(y.hasNoDefaultLib&&!g)return;var v=i.semanticDiagnosticsPerFile.get(s);v&&(o.semanticDiagnosticsPerFile.set(s,i.hasReusableDiagnostic?((t,r,i)=>{if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((e=>{var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((e=>n(e,r,o))):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}})(v,t,r):v),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(i.fileInfos,((e,t)=>e.affectsGlobalScope&&!o.fileInfos.has(t)))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,t,void 0).forEach((e=>o.changedFilesSet.add(e.resolvedPath))):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(t.getSourceFiles().forEach((e=>D(o,e.resolvedPath,1))),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),c&&e.forEachEntry(i.fileInfos,((e,t)=>{o.fileInfos.has(t)&&o.fileInfos.get(t).impliedFormat!==e.impliedFormat&&o.changedFilesSet.add(t)})),o.buildInfoEmitPending=!!o.changedFilesSet.size,o})(c,f,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=()=>((t,r)=>{if(!e.outFile(t.compilerOptions)){var n,i,a,o,s,c,l=e.Debug.checkDefined(t.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),l)),d=[],p=new e.Map,_=e.arrayFrom(t.fileInfos.entries(),(r=>{var n=r[0],i=r[1],a=T(n);e.Debug.assert(d[a-1]===D(n));var o=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n),s=null!=o?o:i.signature;return i.version===s?i.affectsGlobalScope||i.impliedFormat?{version:i.version,signature:void 0,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}}));if(t.referencedMap&&(a=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((e=>[T(e),C(t.referencedMap.getValues(e))]))),t.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(e=>{var r;if(t.currentAffectedFilesExportedModulesMap){if(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))return;var n=t.currentAffectedFilesExportedModulesMap.getValues(e);if(n)return[T(e),C(n)]}return[T(e),C(t.exportedModulesMap.getValues(e))]}))),t.semanticDiagnosticsPerFile)for(var f=0,m=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);f<m.length;f++){var g=m[f],h=t.semanticDiagnosticsPerFile.get(g);(s||(s=[])).push(h.length?[T(g),t.hasReusableDiagnostic?h:E(h,D)]:T(g))}if(t.affectedFilesPendingEmit)for(var y=new e.Set,v=0,x=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);v<x.length;v++){var S=x[v];e.tryAddToSet(y,S)&&(c||(c=[])).push([T(S),t.affectedFilesPendingEmitKind.get(S)])}return{fileNames:d,fileInfos:_,options:b(t.compilerOptions,(t=>D(e.getNormalizedAbsolutePath(t,l)))),fileIdsList:n,referencedMap:a,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function D(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,t,r))}function T(e){var t=p.get(e);return void 0===t&&(d.push(D(e)),p.set(e,t=d.length)),t}function C(t){var r=e.arrayFrom(t.keys(),T).sort(e.compareValues),a=r.join(),o=null==i?void 0:i.get(a);return void 0===o&&((n||(n=[])).push(r),(i||(i=new e.Map)).set(a,o=n.length)),o}})(x,f),c=void 0,u=void 0,p=void 0;var S=()=>x,T=C(S,d);return T.getState=S,T.backupState=()=>{e.Debug.assert(void 0===_),_=(t=>{var r,n=e.BuilderState.clone(t);return n.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),n.changedFilesSet=new e.Set(t.changedFilesSet),n.affectedFiles=t.affectedFiles,n.affectedFilesIndex=t.affectedFilesIndex,n.currentChangedFilePath=t.currentChangedFilePath,n.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),n.currentAffectedFilesExportedModulesMap=null===(r=t.currentAffectedFilesExportedModulesMap)||void 0===r?void 0:r.clone(),n.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),n.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,n.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),n.program=t.program,n.compilerOptions=t.compilerOptions,n.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),n.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),n.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,n.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),n.programEmitComplete=t.programEmitComplete,n})(x)},T.restoreState=()=>{x=e.Debug.checkDefined(_),_=void 0},T.getAllDependencies=t=>e.BuilderState.getAllDependencies(x,e.Debug.checkDefined(x.program),t),T.getSemanticDiagnostics=(t,r)=>{i(x,t);var n,a=e.Debug.checkDefined(x.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!x.semanticDiagnosticsPerFile),e.Debug.checkDefined(x.program).getSemanticDiagnostics(t,r);if(t)return v(x,t,r);for(;N(r););for(var o=0,s=e.Debug.checkDefined(x.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,v(x,c,r))}return n||e.emptyArray},T.emit=(n,a,s,c,u)=>{var d;r===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(x,n);var p=e.handleNoEmitOptions(T,n,a,s);if(p)return p;if(!n){if(r===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var _=[],f=!1,m=void 0,g=[],h=void 0;h=k(a,s,c,u);)f=f||h.result.emitSkipped,m=e.addRange(m,h.result.diagnostics),g=e.addRange(g,h.result.emittedFiles),_=e.addRange(_,h.result.sourceMaps);return{emitSkipped:f,diagnostics:m||e.emptyArray,emittedFiles:g,sourceMaps:_}}(null===(d=x.affectedFilesPendingEmitKind)||void 0===d?void 0:d.size)&&(e.Debug.assert(r===t.SemanticDiagnosticsBuilderProgram),c&&!e.every(x.affectedFilesPendingEmit,((e,t)=>t<x.affectedFilesPendingEmitIndex||0===x.affectedFilesPendingEmitKind.get(e)))||o(x))}return e.Debug.checkDefined(x.program).emit(n,e.outFile(x.compilerOptions)||!e.getEmitDeclarations(x.compilerOptions)||u?a||e.maybeBind(l,l.writeFile):A(a),s,c,u)},T.releaseProgram=()=>{!(t=>{e.BuilderState.releaseCache(t),t.program=void 0})(x),_=void 0},r===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=N:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=N,T.emitNextAffectedFile=k,T.emitBuildInfo=(t,r)=>{if(x.buildInfoEmitPending){var n=e.Debug.checkDefined(x.program).emitBuildInfo(t||e.maybeBind(l,l.writeFile),r);return x.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),T;function k(t,r,n,i){var s=a(x,r,m,l),c=1,u=!1;if(!s)if(e.outFile(x.compilerOptions)){var d=e.Debug.checkDefined(x.program);if(x.programEmitComplete)return;s=d}else{var p=(t=>{var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var s=n.get(a.resolvedPath),c=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===s||s<c)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:c}}}o(t)}})(x);if(!p){if(!x.buildInfoEmitPending)return;var _=e.Debug.checkDefined(x.program);return y(x,_.emitBuildInfo(t||e.maybeBind(l,l.writeFile),r),_,1,!1,!0)}s=p.affectedFile,c=p.emitKind,u=!0}return y(x,e.Debug.checkDefined(x.program).emit(s===x.program?void 0:s,s!==x.program&&e.getEmitDeclarations(x.compilerOptions)&&!i?A(t):t||e.maybeBind(l,l.writeFile),r,n||0===c,i),s,c,u)}function A(t){return(r,n,i,a,o,s)=>{var c;if(e.isDeclarationFileName(r)){e.Debug.assert(1===(null==o?void 0:o.length));var u=o[0],d=x.fileInfos.get(u.resolvedPath);if(((null===(c=x.currentAffectedFilesSignatures)||void 0===c?void 0:c.get(u.resolvedPath))||d.signature)===u.version){var p=(m||e.generateDjb2Hash)(void 0!==(null==s?void 0:s.sourceMapUrlPos)?n.substring(0,s.sourceMapUrlPos):n);p!==u.version&&(l.storeFilesChangingSignatureDuringEmit&&(x.filesChangingSignature||(x.filesChangingSignature=new e.Set)).add(u.resolvedPath),x.exportedModulesMap&&e.BuilderState.updateExportedModules(u,u.exportedModulesFromDeclarationEmit,x.currentAffectedFilesExportedModulesMap||(x.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),x.affectedFiles&&x.affectedFilesIndex<x.affectedFiles.length?x.currentAffectedFilesSignatures.set(u.resolvedPath,p):(d.signature=p,x.exportedModulesMap&&e.BuilderState.updateExportedFilesMapFromCache(x,x.currentAffectedFilesExportedModulesMap)))}}t?t(r,n,i,a,o,s):l.writeFile?l.writeFile(r,n,i,a,o,s):x.program.writeFile(r,n,i,a,o,s)}}function N(e,n){for(;;){var i=a(x,e,m,l);if(!i)return;if(i===x.program)return h(x,x.program.getSemanticDiagnostics(void 0,e),i);if((r===t.EmitAndSemanticDiagnosticsBuilderProgram||x.compilerOptions.noEmit||x.compilerOptions.noEmitOnError)&&D(x,i.resolvedPath,1),!n||!n(i))return h(x,v(x,i,e),i);g(x,i)}}},e.toBuilderStateFileInfo=T,e.createBuildProgramUsingProgramBuildInfo=(t,r,n)=>{var i,a=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=t.fileNames.map((t=>e.toPath(t,a,o))),c=null===(i=t.fileIdsList)||void 0===i?void 0:i.map((t=>new e.Set(t.map(d)))),l=new e.Map;t.fileInfos.forEach(((e,t)=>l.set(d(t+1),T(e))));var u={fileInfos:l,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,(t=>e.getNormalizedAbsolutePath(t,a))):{},referencedMap:p(t.referencedMap),exportedModulesMap:p(t.exportedModulesMap),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(t=>d(e.isNumber(t)?t:t[0])),(t=>e.isNumber(t)?e.emptyArray:t[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(e=>d(e[0]))),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(e=>d(e[0])),(e=>e[1])),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:()=>u,backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:()=>u.compilerOptions,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function d(e){return s[e-1]}function p(t){if(t){var r=e.BuilderState.createManyToManyPathMap();return t.forEach((e=>{var t=e[0],n=e[1];return r.set(d(t),c[n-1])})),r}}},e.createRedirectedBuilderProgram=C})(p),(e=>{e.createSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createEmitAndSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createAbstractBuilder=(t,r,n,i,a,o)=>{var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((()=>({program:c,compilerOptions:c.getCompilerOptions()})),l)}})(p),(e=>{function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=(i,a,o)=>{var s,c,l,u,d,p,_=e.createMultiMap(),f=[],m=e.createMultiMap(),g=!1,h=e.memoize((()=>i.getCurrentDirectory())),y=i.getCachedDirectoryStructureHost(),v=new e.Map,b=e.createCacheWithRedirects(),x=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(h(),i.getCanonicalFileName,void 0,b,x),S=new e.Map,D=e.createCacheWithRedirects(),T=e.createTypeReferenceDirectiveResolutionCache(h(),i.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),D),C=[".ts",".tsx",".js",".jsx",".json"],k=new e.Map,A=new e.Map,N=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,h())),w=N&&i.toPath(N),F=void 0!==w?w.split(e.directorySeparator).length:0,P=new e.Map;return{getModuleResolutionCache:()=>E,startRecordingFilesWithChangedResolutions(){s=[]},finishRecordingFilesWithChangedResolutions(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:L,finishCachingPerDirectoryResolution(){l=void 0,L(),A.forEach(((e,t)=>{0===e.refCount&&(A.delete(t),e.watcher.close())})),g=!1},resolveModuleNames:(t,r,n,i,a)=>U({names:t,containingFile:r,redirectedReference:i,cache:v,perDirectoryCacheWithRedirects:b,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:t=>!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension),reusedNames:n,logChanges:o,containingSourceFile:a}),getResolvedModuleWithFailedLookupLocationsFromCache(e,t,r){var n=v.get(i.toPath(t));return n?n.get(e,r):void 0},resolveTypeReferenceDirectives:(e,t,r,n)=>U({names:e,containingFile:t,redirectedReference:r,cache:S,perDirectoryCacheWithRedirects:D,loader:j,getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,containingSourceFileMode:n}),removeResolutionsFromProjectReferenceRedirects(t){if(e.fileExtensionIs(t,".json")){var r=i.getCurrentProgram();if(r){var n=r.getResolvedProjectReferenceByPath(t);n&&n.commandLine.fileNames.forEach((e=>Z(i.toPath(e))))}}},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:()=>g,invalidateResolutionOfFile(t){Z(t);var r=g;ee(m.get(t),e.returnTrue)&&g&&!r&&i.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports(t){e.Debug.assert(l===t||void 0===l),l=t},createHasInvalidatedResolution(t){if(re(),t)return c=void 0,e.returnTrue;var r=c;return c=void 0,e=>!!r&&r.has(e)||R(e)},isFileWithInvalidatedNonRelativeUnresolvedImports:R,updateTypeRootsWatch(){var t=i.getCompilationSettings();if(t.types)ie();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:oe,getCurrentDirectory:h});r?e.mutateMap(P,e.arrayToMap(r,(e=>i.toPath(e))),{createNewValue:ae,onDeleteValue:e.closeFileWatcher}):ie()}},closeTypeRootsWatch:ie,clear(){e.clearMap(A,e.closeFileWatcherOf),k.clear(),_.clear(),ie(),v.clear(),S.clear(),m.clear(),f.length=0,u=void 0,d=void 0,p=void 0,L(),g=!1}};function I(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function M(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function R(e){if(!l)return!1;var t=l.get(e);return!!t&&!!t.length}function L(){E.clear(),T.clear(),_.forEach($),_.clear()}function B(t,r,n,a,o,s,c){var l,u=e.resolveModuleName(t,r,n,a,E,o,c);if(!i.getGlobalCache)return u;var d=i.getGlobalCache();if(!(void 0===d||e.isExternalModuleNameRelative(t)||u.resolvedModule&&e.extensionIsTS(u.resolvedModule.extension))){var p=e.loadModuleFromGlobalCache(e.Debug.checkDefined(i.globalCacheResolutionModuleName)(t),i.projectName,n,a,d,E),_=p.resolvedModule,f=p.failedLookupLocations;if(_)return u.resolvedModule=_,(l=u.failedLookupLocations).push.apply(l,f),u}return u}function j(t,r,n,i,a,o,s){return e.resolveTypeReferenceDirective(t,r,n,i,a,T,s)}function U(t){var r,a,o,c=t.names,l=t.containingFile,u=t.redirectedReference,d=t.cache,p=t.perDirectoryCacheWithRedirects,_=t.loader,f=t.getResolutionWithResolvedFileName,m=t.shouldRetryResolution,g=t.reusedNames,h=t.logChanges,y=t.containingSourceFile,v=t.containingSourceFileMode,b=i.toPath(l),x=d.get(b)||d.set(b,e.createModeAwareCache()).get(b),E=e.getDirectoryPath(b),S=p.getOrCreateMapOfCacheRedirects(u),D=S.get(E);D||(D=e.createModeAwareCache(),S.set(E,D));for(var T=[],C=i.getCompilationSettings(),k=h&&R(b),A=i.getCurrentProgram(),N=A&&A.getResolvedProjectReferenceToRedirect(l),w=N?!u||u.sourceFile.path!==N.sourceFile.path:!!u,F=e.createModeAwareCache(),P=0,I=0,O=c;I<O.length;I++){var M=O[I],L=e.isString(M)?M:M.fileName.toLowerCase(),j=e.isString(M)?y?e.getModeForResolutionAtIndex(y,P):void 0:e.getModeForFileReference(M,v);P++;var U=x.get(L,j);if(!F.has(L,j)&&w||!U||U.isInvalidated||k&&!e.isExternalModuleNameRelative(L)&&m(U)){var V=U,K=D.get(L,j);if(K){U=K;var z=(null===(r=i.getCompilerHost)||void 0===r?void 0:r.call(i))||i;if(e.isTraceEnabled(C,z)){var W=f(U);e.trace(z,_===B?(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,L,l,e.getDirectoryPath(l),null==W?void 0:W.resolvedFileName,(null==W?void 0:W.packagetId)&&e.packageIdToString(W.packagetId))}}else U=_(L,l,C,(null===(a=i.getCompilerHost)||void 0===a?void 0:a.call(i))||i,u,y,j),D.set(L,j,U),i.onDiscoveredSymlink&&n(U)&&i.onDiscoveredSymlink();x.set(L,j,U),J(L,U,b,f),V&&q(V,b,f),h&&s&&!H(V,U)&&(s.push(b),h=!1)}else z=(null===(o=i.getCompilerHost)||void 0===o?void 0:o.call(i))||i,e.isTraceEnabled(C,z)&&!F.has(L,j)&&(W=f(U),e.trace(z,_===B?(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==W?void 0:W.resolvedFileName)?W.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,L,l,null==W?void 0:W.resolvedFileName,(null==W?void 0:W.packagetId)&&e.packageIdToString(W.packagetId)));e.Debug.assert(void 0!==U&&!U.isInvalidated),F.set(L,j,!0),T.push(f(U))}return x.forEach(((t,r,n)=>{F.has(r,n)||e.contains(g,r)||(q(t,b,f),x.delete(r,n))})),T;function H(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=f(e),n=f(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function V(t){return e.endsWith(t,"/node_modules/@types")}function K(t,r){if(M(w,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,h());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: ".concat(t," failedLookupLocationPath: ").concat(r)),n.length>F+1?{dir:i.slice(0,F+1).join(e.directorySeparator),dirPath:n.slice(0,F+1).join(e.directorySeparator)}:{dir:N,dirPath:w,nonRecursive:!1}}return z(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,h())),e.getDirectoryPath(r))}function z(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==w)for(;!M(n,w);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function W(t){return e.fileExtensionIsOneOf(t,C)}function J(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?H(r):_.add(t,r);var o=a(r);o&&o.resolvedFileName&&m.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function H(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){f.push(t);for(var n=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=i.toPath(s),l=K(s,c);if(l){var u=l.dir,d=l.dirPath,p=l.nonRecursive;if(!W(c)){var _=k.get(c)||0;k.set(c,_+1)}d===w?(e.Debug.assert(!p),n=!0):G(u,d,p)}}n&&G(N,w,!0)}}function $(e,t){var r=i.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(H)}function G(t,r,n){var i=A.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):A.set(r,{watcher:Y(t,r,n),refCount:1,nonRecursive:n})}function q(t,r,n){if(e.unorderedRemoveItem(e.Debug.checkDefined(t.files),r),t.refCount--,!t.refCount){var a=n(t);if(a&&a.resolvedFileName&&m.remove(i.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(f,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var l=c[s],u=i.toPath(l),d=K(l,u);if(d){var p=d.dirPath,_=k.get(u);_&&(1===_?k.delete(u):(e.Debug.assert(_>1),k.set(u,_-1))),p===w?o=!0:X(p)}}o&&X(w)}}}function X(e){A.get(e).refCount--}function Y(e,t,r){return i.watchDirectoryOfFailedLookupLocation(e,(e=>{var r=i.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),te(r,t===r)}),r?0:1)}function Q(e,t,r){var n=e.get(t);n&&(n.forEach((e=>q(e,t,r))),e.delete(t))}function Z(e){Q(v,e,I),Q(S,e,O)}function ee(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var s=0,l=e.Debug.checkDefined(o.files);s<l.length;s++){var u=l[s];(c||(c=new e.Set)).add(u),g=g||e.endsWith(u,e.inferredTypesContainingFile)}}}return n}function te(r,n){if(n)(p||(p=[])).push(r);else{var a=t(r);if(!a)return!1;if(r=a,i.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(V(r)||e.isNodeModulesDirectory(r)||V(o)||e.isNodeModulesDirectory(o))(u||(u=[])).push(r),(d||(d=new e.Set)).add(r);else{if(!W(r)&&!k.has(r))return!1;if(e.isEmittedFileOfProgram(i.getCurrentProgram(),r))return!1;(u||(u=[])).push(r);var s=e.parseNodeModuleFromPath(r);s&&(d||(d=new e.Set)).add(s)}}i.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){if(!u&&!d&&!p)return!1;var e=ee(f,ne);return u=void 0,d=void 0,p=void 0,e}function ne(t){return t.failedLookupLocations.some((t=>{var r=i.toPath(t);return e.contains(u,r)||e.firstDefinedIterator((null==d?void 0:d.keys())||e.emptyIterator,(t=>!!e.startsWith(r,t)||void 0))||(null==p?void 0:p.some((e=>M(e,r))))}))}function ie(){e.clearMap(P,e.closeFileWatcher)}function ae(e,t){return i.watchTypeRootsDirectory(t,(r=>{var n=i.toPath(r);y&&y.addOrDeleteFileOrDirectory(r,n),g=!0,i.onChangedAutomaticTypeDirectiveNames();var a=((e,t)=>{if(M(w,t))return w;var r=z(e,t);return r&&A.has(r.dirPath)?r.dirPath:void 0})(t,e);a&&te(n,a===n)}),1)}function oe(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),a=i.toPath(n);return a===w||r(a)}}})(p),(e=>{!(t=>{var r,n,i;function a(t,r,n,i){var a=r.importModuleSpecifierPreference,s=r.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:"project-relative"===a?3:2,ending:(()=>{switch(s){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return(t=>{var r=t.imports;return e.firstDefined(r,(t=>{var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1})(i)||o(n,i.path,t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs?1:0}})()}}function o(t,r,n){var i;return(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)&&e.getImpliedNodeFormatForFile(r,null===(i=n.getPackageJsonInfoCache)||void 0===i?void 0:i.call(n),(t=>{var r;return{fileExists:t.fileExists,readFile:e.Debug.checkDefined(t.readFile),directoryExists:t.directoryExists,getCurrentDirectory:t.getCurrentDirectory,realpath:t.realpath,useCaseSensitiveFileNames:null===(r=t.useCaseSensitiveFileNames)||void 0===r?void 0:r.call(t)}})(n),t)!==e.ModuleKind.CommonJS}function s(t,r,n,i,a,o,s,c){void 0===c&&(c={});var l=u(n,a),p=y(n,i,a,s,c);return e.firstDefined(p,(e=>E(e,l,r,a,t,s,void 0,c.overrideImportMode)))||d(i,l,t,a,o)}function c(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.getSourceFileOfModule(t);if(!s)return e.emptyArray;var c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n),l=null==c?void 0:c.get(r.path,s.path,i,a);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function l(t,r,n,i,o,s,l){void 0===l&&(l={});var p=!1,_=((t,r)=>{var n,i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))));if(i)return i.name.text;var a=e.mapDefined(t.declarations,(t=>{var n,i,a,o;if(e.isModuleDeclaration(t)){var s=(e=>{for(;4&e.flags;)e=e.parent;return e})(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=r.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?r.getAliasedSymbol(l):l)===t.symbol)return s.parent.parent}}}}))[0];return a?a.name.text:void 0})(t,r);if(_)return{moduleSpecifiers:[_],computedWithoutCache:p};var f=c(t,i,o,s,l),m=f[0],g=f[1],h=f[2],y=f[3];if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!g)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:p};p=!0,h||(h=v(i.path,g.originalFileName,o));var b=((t,r,n,i,o,s)=>{void 0===s&&(s={});var c=u(n.path,i),l=a(i,o,r,n),p=e.forEach(t,(t=>e.forEach(i.getFileIncludeReasons().get(e.toPath(t.path,i.getCurrentDirectory(),c.getCanonicalFileName)),(t=>{if(t.kind===e.FileIncludeKind.Import&&t.file===n.path&&(!n.impliedNodeFormat||n.impliedNodeFormat===e.getModeForResolutionAtIndex(n,t.index))){var r=e.getModuleNameStringLiteralAt(n,t.index).text;return 1===l.relativePreference&&e.pathIsRelative(r)?void 0:r}}))));if(p)return[p];for(var _,f,m,g=e.some(t,(e=>e.isInNodeModules)),h=0,y=t;h<y.length;h++){var v=y[h],b=E(v,c,n,i,r,o,void 0,s.overrideImportMode);if(_=e.append(_,b),b&&v.isRedirect)return _;if(!b&&!v.isRedirect){var x=d(v.path,c,r,i,l);e.pathIsBareSpecifier(x)?f=e.append(f,x):g&&!v.isInNodeModules||(m=e.append(m,x))}}return(null==f?void 0:f.length)?f:(null==_?void 0:_.length)?_:e.Debug.checkDefined(m)})(h,n,i,o,s,l);return null==y||y.set(i.path,g.path,s,l,h,b),{moduleSpecifiers:b,computedWithoutCache:p}}function u(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function d(t,r,n,i,a){var o=a.ending,s=a.relativePreference,c=n.baseUrl,l=n.paths,u=n.rootDirs,d=r.sourceDirectory,_=r.getCanonicalFileName,f=u&&((t,r,n,i,a,o)=>{var s=S(r,t,i);if(void 0!==s){var c=S(n,t,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?D(l,a,o):e.removeFileExtension(l)}})(u,t,d,_,o,n)||D(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(d,t,_)),o,n);if(!c&&!l||0===s)return f;var m=k(t,e.getNormalizedAbsolutePath(e.getPathsBasePath(n,i)||c,i.getCurrentDirectory()),_);if(!m)return f;var h=D(m,o,n),y=l&&b(e.removeFileExtension(m),h,l),v=void 0===y&&void 0!==c?h:y;if(!v)return f;if(1===s)return v;if(3===s){var x=n.configFilePath?e.toPath(e.getDirectoryPath(n.configFilePath),i.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(i.getCurrentDirectory()),E=e.toPath(t,x,_),T=e.startsWith(d,x),C=e.startsWith(E,x);if(T&&!C||!T&&C)return v;var N=g(i,e.getDirectoryPath(E));return g(i,d)!==N?v:f}return 2!==s&&e.Debug.assertNever(s),A(v)||p(f)<p(v)?f:v}function p(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function _(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function g(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(r=>!!t.fileExists(e.combinePaths(r,"package.json"))||void 0))}function h(t,r,n,i,a){var o,s=e.hostGetCanonicalFileName(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,u=e.toPath(r,c,s),d=n.redirectTargetsMap.get(u)||e.emptyArray,p=f(f(f([],l?[l]:e.emptyArray,!0),[r],!1),d,!0).map((t=>e.getNormalizedAbsolutePath(t,c))),_=!e.every(p,e.containsIgnoredPath);if(!i){var m=e.forEach(p,(t=>!(_&&e.containsIgnoredPath(t))&&a(t,l===t)));if(m)return m}var g=null===(o=n.getSymlinkCache)||void 0===o?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),h=e.getNormalizedAbsolutePath(r,c);return g&&e.forEachAncestorDirectory(e.getDirectoryPath(h),(r=>{var n=g.get(e.ensureTrailingDirectorySeparator(e.toPath(r,c,s)));if(n)return!e.startsWithDirectory(t,r,s)&&e.forEach(p,(t=>{if(e.startsWithDirectory(t,r,s))for(var i=e.getRelativePathFromDirectory(r,t,s),o=0,c=n;o<c.length;o++){var u=c[o],d=e.resolvePath(u,i),p=a(d,t===l);if(_=!0,p)return p}}))}))||(i?e.forEach(p,(t=>_&&e.containsIgnoredPath(t)?void 0:a(t,t===l))):void 0)}function y(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.toPath(r,n.getCurrentDirectory(),e.hostGetCanonicalFileName(n)),c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n);if(c){var l=c.get(t,s,i,a);if(null==l?void 0:l.modulePaths)return l.modulePaths}var u=v(t,r,n);return c&&c.setModulePaths(t,s,i,a,u),u}function v(t,r,n){var i=e.hostGetCanonicalFileName(n),a=new e.Map,o=!1;h(t,r,n,!0,((t,r)=>{var n=e.pathContainsNodeModules(t);a.set(t,{path:i(t),isRedirect:r,isInNodeModules:n}),o=o||n}));for(var s,c=[],l=t=>{var r,n=e.ensureTrailingDirectorySeparator(t);a.forEach(((t,i)=>{var o=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(o,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),r&&(r.length>1&&r.sort(_),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var d=l(u);if(u=s,"break"===d)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(_),c.push.apply(c,p)}return c}function b(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),d=c.substr(l+1);if(r.length>=u.length+d.length&&e.startsWith(r,u)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(u)){var p=r.substr(u.length,r.length-d.length-u.length);return i.replace("*",p)}}else if(c===r||c===t)return i}}function x(t,r,n,i,a,o,s){if(void 0===s&&(s=0),"string"==typeof a){var c=e.getNormalizedAbsolutePath(e.combinePaths(n,a),void 0),l=e.hasTSFileExtension(r)?e.removeFileExtension(r)+C(r,t):void 0;switch(s){case 0:if(0===e.comparePaths(r,c)||l&&0===e.comparePaths(l,c))return{moduleFileToTry:i};break;case 1:if(e.containsPath(c,r)){var u=e.getRelativePathFromDirectory(c,r,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(i,a),u),void 0)}}break;case 2:var d=c.indexOf("*"),p=c.slice(0,d),_=c.slice(d+1);if(e.startsWith(r,p)&&e.endsWith(r,_)){var f=r.slice(p.length,r.length-_.length);return{moduleFileToTry:i.replace("*",f)}}if(l&&e.startsWith(l,p)&&e.endsWith(l,_))return f=l.slice(p.length,l.length-_.length),{moduleFileToTry:i.replace("*",f)}}}else{if(Array.isArray(a))return e.forEach(a,(e=>x(t,r,n,i,e,o)));if("object"==typeof a&&null!==a){if(e.allKeysStartWithDot(a))return e.forEach(e.getOwnKeys(a),(s=>{var c=e.getNormalizedAbsolutePath(e.combinePaths(i,s),void 0),l=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return x(t,r,n,c,a[s],o,l)}));for(var m=0,g=e.getOwnKeys(a);m<g.length;m++){var h=g[m];if("default"===h||o.indexOf(h)>=0||e.isApplicableVersionedTypesKey(o,h)){var y=a[h],v=x(t,r,n,i,y,o);if(v)return v}}}}}function E(t,r,n,i,o,s,c,l){var u=t.path,d=t.isRedirect,p=r.getCanonicalFileName,_=r.sourceDirectory;if(i.fileExists&&i.readFile){var f=e.getNodeModulePathParts(u);if(f){var g=u,h=!1;if(!c)for(var y=a(i,s,o,n),v=f.packageRootIndex,E=void 0;;){var S=O(v),T=S.moduleFileToTry,k=S.packageRootPath,A=S.blockedByExports,N=S.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(A)return;if(N)return T}if(k){g=k,h=!0;break}if(E||(E=T),-1===(v=u.indexOf(e.directorySeparator,v+1))){g=D(E,y.ending,o,i);break}}if(!d||h){var w=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),F=p(g.substring(0,f.topLevelNodeModulesIndex));if(e.startsWith(_,F)||w&&e.startsWith(p(w),F)){var P=g.substring(f.topLevelPackageNameIndex+1),I=e.getPackageNameFromTypesPackageName(P);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&I===P?void 0:I}}}}function O(t){var r,a,s=u.substring(0,t),c=e.combinePaths(s,"package.json"),d=u,_=null===(a=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===a?void 0:a.getPackageJsonInfo(c);if("object"==typeof _||void 0===_&&i.fileExists(c)){var g=(null==_?void 0:_.packageJsonContent)||JSON.parse(i.readFile(c));if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var h=["node",l||n.impliedNodeFormat===e.ModuleKind.ESNext?"import":"require","types"],y=g.exports&&"string"==typeof g.name?x(o,u,s,e.getPackageNameFromTypesPackageName(g.name),g.exports,h):void 0;if(y){var v=e.hasTSFileExtension(y.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(y.moduleFileToTry)+C(y.moduleFileToTry,o)}:y;return m(m({},v),{verbatimFromExports:!0})}if(g.exports)return{moduleFileToTry:u,blockedByExports:!0}}var E=g.typesVersions?e.getPackageJsonTypesVersionsPaths(g.typesVersions):void 0;if(E){var S=u.slice(s.length+1),T=b(e.removeFileExtension(S),D(S,0,o),E.paths);void 0!==T&&(d=e.combinePaths(s,T))}var k=g.typings||g.types||g.main||"index.js";if(e.isString(k)){var A=e.toPath(k,s,p);if(e.removeFileExtension(A)===e.removeFileExtension(p(d)))return{packageRootPath:s,moduleFileToTry:d}}}else{var N=p(d.substring(f.packageRootIndex+1));if("index.d.ts"===N||"index.js"===N||"index.ts"===N||"index.tsx"===N)return{moduleFileToTry:d,packageRootPath:s}}return{moduleFileToTry:d}}}function S(t,r,n){return e.firstDefined(r,(e=>{var r=k(t,e,n);return void 0!==r&&A(r)?void 0:r}))}function D(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+T(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&((t,r)=>{if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n<i.length;n++){var a=r+i[n];if(t.fileExists(a))return a}})(i,o)?a:o;case 1:return a;case 2:return a+T(t,n);default:return e.Debug.assertNever(r)}}function T(t,r){var n;return null!==(n=C(t,r))&&void 0!==n?n:e.Debug.fail("Extension ".concat(e.extensionFromPath(t)," is unsupported:: FileName:: ").concat(t))}function C(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function k(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function A(t){return e.startsWith(t,"..")}!(e=>{e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"})(r||(r={})),(e=>{e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"})(n||(n={})),t.updateModuleSpecifier=(t,r,n,i,a,c,l)=>{void 0===l&&(l={});var u=s(t,r,n,i,a,((t,r,n,i)=>({relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)||o(t,n,i)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}))(t,c,n,a),{},l);if(u!==c)return u},t.getModuleSpecifier=(e,t,r,n,i,o)=>(void 0===o&&(o={}),s(e,t,r,n,i,a(i,{},e,t),{},o)),t.getNodeModulesPackageName=(t,r,n,i,a,o)=>{void 0===o&&(o={});var s=u(r.path,i),c=y(r.path,n,i,a,o);return e.firstDefined(c,(e=>E(e,s,r,i,t,a,!0,o.overrideImportMode)))},t.tryGetModuleSpecifiersFromCache=(e,t,r,n,i)=>(void 0===i&&(i={}),c(e,t,r,n,i)[0]),t.getModuleSpecifiers=(e,t,r,n,i,a,o)=>(void 0===o&&(o={}),l(e,t,r,n,i,a,o).moduleSpecifiers),t.getModuleSpecifiersWithCacheInfo=l,t.countPathComponents=p,t.forEachFileNameOfModule=h,(e=>{e[e.Exact=0]="Exact",e[e.Directory=1]="Directory",e[e.Pattern=2]="Pattern"})(i||(i={})),t.tryGetJSExtensionForFile=C})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(p),(e=>{var t=e.sys?{getCurrentDirectory:()=>e.sys.getCurrentDirectory(),getNewLine:()=>e.sys.newLine,getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.newLine,getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return t=>r.write(e.formatDiagnostic(t,i));var a=new Array(1);return t=>{a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code)||(t.clearScreen(),0))}function i(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function a(t,r){return r?(r,a,o)=>{n(t,r,o);var s="[".concat(e.formatColorAndReset(i(t),e.ForegroundColorEscapeSequences.Grey),"] ");s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(a+a),t.write(s)}:(r,a,o)=>{var s="";n(t,r,o)||(s+=a),s+="".concat(i(t)," - "),s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(((t,r)=>e.contains(e.screenStartingMessageCodes,t.code)?r+r:r)(r,a)),t.write(s)}}function o(t){return e.countWhere(t,(t=>t.category===e.DiagnosticCategory.Error))}function s(t){return e.filter(t,(t=>t.category===e.DiagnosticCategory.Error)).map((e=>{if(void 0!==e.file)return"".concat(e.file.fileName)})).map((r=>{var n=e.find(t,(e=>void 0!==e.file&&e.file.fileName===r));if(void 0!==n){var i=e.getLineAndCharacterOfPosition(n.file,n.start).line;return{fileName:r,line:i+1}}}))}function c(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function l(t,r){var n=e.formatColorAndReset(":"+t.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(t.fileName)&&e.pathIsAbsolute(r)?e.getRelativePathFromDirectory(r,t.fileName,!1)+n:t.fileName+n}function u(t,r,n,i){if(0===t)return"";var a=r.filter((e=>void 0!==e)),o=a.map((e=>"".concat(e.fileName,":").concat(e.line))).filter(((e,t,r)=>r.indexOf(e)===t)),s=a[0]&&l(a[0],i.getCurrentDirectory()),c=1===t?e.createCompilerDiagnostic(void 0!==r[0]?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,t,s):e.createCompilerDiagnostic(0===o.length?e.Diagnostics.Found_0_errors:1===o.length?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,t,1===o.length?s:o.length),u=o.length>1?((t,r)=>{var n=t.filter(((e,t,r)=>t===r.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";var i=e=>Math.log(e)*Math.LOG10E+1,a=n.map((r=>[r,e.countWhere(t,(e=>e.fileName===r.fileName))])),o=a.reduce(((e,t)=>Math.max(e,t[1]||0)),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,u=Math.max(c,i(o)),d=Math.max(i(o)-c,0),p="";return p+=" ".repeat(d)+s+"\n",a.forEach((e=>{var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i<u?" ".repeat(u-i):"",o=l(t,r.getCurrentDirectory());p+="".concat(a).concat(n," ").concat(o,"\n")})),p})(a,i):"";return"".concat(n).concat(e.flattenDiagnosticMessageText(c.messageText,n)).concat(n).concat(n).concat(u)}function d(e){return!!e.getState}function p(t,r){var n=t.getCompilerOptions();n.explainFiles?_(d(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(e=>{r(e.fileName)}))}function _(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=r=>e.convertToRelativePath(r,t.getCurrentDirectory(),o),c=0,l=t.getSourceFiles();c<l.length;c++){var u=l[c];r("".concat(v(u,s))),null===(n=a.get(u.path))||void 0===n||n.forEach((e=>r(" ".concat(y(t,e,s).messageText)))),null===(i=m(u,s))||void 0===i||i.forEach((e=>r(" ".concat(e.messageText))))}}function m(t,r){var n;return t.path!==t.resolvedPath&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,v(t.originalFileName,r))),t.redirectInfo&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,v(t.redirectInfo.redirectTarget,r))),n}function g(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(t=>a(e.getNormalizedAbsolutePath(t,s))===o))}}function h(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(t=>{if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("(".concat(n,")$"),c).test(r)}))}}function y(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((e=>t.getSourceFileByPath(e)),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'.concat(s.text,'"'),l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,l,c,v(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(g(t,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var d=h(t,u);return d?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,d,v(o.configFile,n)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=r.kind===e.FileIncludeKind.OutputFromProjectReference,_=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,v(_.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var f=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(o)?r:void 0));return e.chainDiagnosticMessages(void 0,f?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,f);default:e.Debug.assertNever(r)}}function v(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function b(t,r,n,i,a,c,l,u){var d=!!t.getCompilerOptions().listFilesOnly,_=t.getConfigFileParsingDiagnostics().slice(),f=_.length;e.addRange(_,t.getSyntacticDiagnostics(void 0,c)),_.length===f&&(e.addRange(_,t.getOptionsDiagnostics(c)),d||(e.addRange(_,t.getGlobalDiagnostics(c)),_.length===f&&e.addRange(_,t.getSemanticDiagnostics(void 0,c))));var m=d?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,c,l,u),g=m.emittedFiles,h=m.diagnostics;e.addRange(_,h);var y=e.sortAndDeduplicateDiagnostics(_);if(y.forEach(r),n){var v=t.getCurrentDirectory();e.forEach(g,(t=>{var r=e.getNormalizedAbsolutePath(t,v);n("TSFILE: ".concat(r))})),p(t,n)}return i&&i(o(y),s(y)),{emitResult:m,diagnostics:y}}function x(t,r,n,i,a,o,s,c){var l=b(t,r,n,i,a,o,s,c),u=l.emitResult,d=l.diagnostics;return u.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function E(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,r){var n=e.memoize((()=>e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:t=>e.combinePaths(n(),e.getDefaultLibFileName(t)),fileExists:e=>t.fileExists(e),readFile:(e,r)=>t.readFile(e,r),directoryExists:e=>t.directoryExists(e),getDirectories:e=>t.getDirectories(e),readDirectory:(e,r,n,i,a)=>t.readDirectory(e,r,n,i,a),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:e=>t.write(e+t.newLine),createDirectory:e=>t.createDirectory(e),writeFile:(e,r,n)=>t.writeFile(e,r,n),createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit}}function D(t,r,n,i){void 0===t&&(t=e.sys);var a=e=>t.write(e+t.newLine),o=S(t,r);return e.copyProperties(o,E(t,i)),o.afterProgramCreate=r=>{var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(()=>t.newLine));b(r,n,a,(t=>o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)))},o}function T(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=i,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=(t,r,n,i,a,o)=>{var s=a;s.onUnRecoverableConfigFileDiagnostic=e=>T(a,o,e);var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=o,e.getFilesInErrorForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.isBuilderProgram=d,e.listFiles=p,e.explainFiles=_,e.explainIfFileIsRedirect=m,e.getMatchedFileSpec=g,e.getMatchedIncludeSpec=h,e.fileIncludeReasonToDiagnostics=y,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=()=>e.noopFileWatcher,e.createWatchHost=E,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},e.createWatchFactory=(t,r)=>{var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?e=>t.trace(e):e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=(t,r,n)=>{void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((()=>t.getNewLine()));return{getSourceFile(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,((e,r,n)=>t.writeFile(e,r,n)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e))),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:()=>e.getNewLineCharacter(r(),a),fileExists:e=>t.fileExists(e),readFile:e=>t.readFile(e),trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||(()=>""),createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit}},e.setGetSourceFileAsHashVersioned=(t,r)=>{var n=t.getSourceFile,i=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=n.call.apply(n,f([t],e,!1));return a&&(a.version=i(a.text)),a}},e.createProgramHost=S,e.createWatchCompilerHostOfConfigFile=e=>{var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||r(o),d=D(o,s,u,l);return d.onUnRecoverableConfigFileDiagnostic=e=>T(o,u,e),d.configFileName=t,d.optionsToExtend=n,d.watchOptionsToExtend=i,d.extraFileExtensions=a,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=e=>{var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=D(o,s,c||r(o),l);return u.rootFiles=t,u.options=n,u.watchOptions=i,u.projectReferences=a,u},e.performIncrementalCompilation=t=>{var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=x(a,t.reportDiagnostic||r(n),(e=>i.trace&&i.trace(e)),t.reportErrorSummary||t.options.pretty?(e,t)=>n.write(u(e,t,n.newLine,i)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}})(p),(e=>{function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),n.disableUseFileVersionAsSignature=r.disableUseFileVersionAsSignature,n.storeFilesChangingSignatureDuringEmit=r.storeFilesChangingSignatureDuringEmit,e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(t=>e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName))),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=n=>{var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,l=n.createProgram;return c=c||r(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=(t,r,n,i,a,o,s,c)=>e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}),e.createWatchProgram=r=>{var n,i,a,o,s,c,l,u,d,p,_,g,h=r.extendedConfigCache,y=!1,v=!1,b=new e.Map,x=!1,E=r.useCaseSensitiveFileNames(),S=r.getCurrentDirectory(),D=r.configFileName,T=r.optionsToExtend,C=void 0===T?{}:T,k=r.watchOptionsToExtend,A=r.extraFileExtensions,N=r.createProgram,w=r.rootFiles,F=r.options,P=r.watchOptions,I=r.projectReferences,O=!1,M=!1,R=void 0===D?void 0:e.createCachedDirectoryStructureHost(r,S,E),L=R||r,B=e.parseConfigHostFromCompilerHostLike(r,L),j=ee();D&&r.configFileParsingResult&&(me(r.configFileParsingResult),j=ee()),se(e.Diagnostics.Starting_compilation_in_watch_mode),D&&!r.configFileParsingResult&&(j=e.getNewLineCharacter(C,(()=>r.getNewLine())),e.Debug.assert(!w),fe(),j=ee());var U,V=e.createWatchFactory(r,F),K=V.watchFile,z=V.watchDirectory,W=V.writeLog,J=e.createGetCanonicalFileName(E);W("Current directory: ".concat(S," CaseSensitiveFileNames: ").concat(E)),D&&(U=K(D,(()=>{e.Debug.assert(!!D),i=e.ConfigFileProgramReloadLevel.Full,de()}),e.PollingInterval.High,P,e.WatchType.ConfigFile));var H=e.createCompilerHostFromProgramHost(r,(()=>F),L);e.setGetSourceFileAsHashVersioned(H,r);var $=H.getSourceFile;H.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ie.apply(void 0,f([e,te(e)],t,!1))},H.getSourceFileByPath=ie,H.getNewLine=()=>j,H.fileExists=ne,H.onReleaseOldSourceFile=(e,t,r)=>{var n=b.get(e.resolvedPath);void 0!==n&&(re(n)?(p||(p=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),b.delete(e.resolvedPath),r||G.removeResolutionsOfFile(e.path)))},H.onReleaseParsedCommandLine=t=>{var r,n=te(t),i=null==u?void 0:u.get(n);i&&(u.delete(n),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(r=i.watcher)||void 0===r||r.close(),e.clearSharedExtendedConfigFileWatcher(n,d))},H.toPath=te,H.getCompilationSettings=()=>F,H.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),H.watchDirectoryOfFailedLookupLocation=(t,r,n)=>z(t,r,n,P,e.WatchType.FailedLookupLocations),H.watchTypeRootsDirectory=(t,r,n)=>z(t,r,n,P,e.WatchType.TypeRoots),H.getCachedDirectoryStructureHost=()=>R,H.scheduleInvalidateResolutionsOfFailedLookupLocations=()=>{if(!r.setTimeout||!r.clearTimeout)return G.invalidateResolutionsOfFailedLookupLocations();var e=le();W("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),l=r.setTimeout(ue,250)},H.onInvalidatedResolution=de,H.onChangedAutomaticTypeDirectiveNames=de,H.fileIsOpen=e.returnFalse,H.getCurrentProgram=Q,H.writeLog=W,H.getParsedCommandLine=ge;var G=e.createResolutionCache(H,D?e.getDirectoryPath(e.getNormalizedAbsolutePath(D,S)):S,!1);H.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:(e,t,r,n,i,a)=>G.resolveModuleNames(e,t,r,n,a),H.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:(e,t,r,n,i)=>G.resolveTypeReferenceDirectives(e,t,r,i);var q=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(F,H),Z(),De(),D&&Ce(te(D),F,P,e.WatchType.ExtendedConfigFile),D?{getCurrentProgram:Y,getProgram:_e,close:X}:{getCurrentProgram:Y,getProgram:_e,updateRootFileNames(t){e.Debug.assert(!D,"Cannot update root file names with config file watch mode"),w=t,de()},close:X};function X(){le(),G.clear(),e.clearMap(b,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),U&&(U.close(),U=void 0),null==h||h.clear(),h=void 0,d&&(e.clearMap(d,e.closeFileWatcherOf),d=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),a&&(e.clearMap(a,e.closeFileWatcher),a=void 0),u&&(e.clearMap(u,(t=>{var r;null===(r=t.watcher)||void 0===r||r.close(),t.watcher=void 0,t.watchedDirectories&&e.clearMap(t.watchedDirectories,e.closeFileWatcherOf),t.watchedDirectories=void 0})),u=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function Y(){return n}function Q(){return n&&n.getProgramOrUndefined()}function Z(){W("Synchronizing program"),le();var t=Y();x&&(j=ee(),t&&(y||e.changesAffectModuleResolution(t.getCompilerOptions(),F))&&G.clear());var i=G.createHasInvalidatedResolution(q||y);return e.isProgramUptoDate(Q(),w,F,oe,ne,i,ce,ge,I)?M&&(v&&se(e.Diagnostics.File_change_detected_Starting_incremental_compilation),n=N(void 0,void 0,H,n,g,I),M=!1):(v&&se(e.Diagnostics.File_change_detected_Starting_incremental_compilation),(t=>{W("CreatingProgramWith::"),W(" roots: ".concat(JSON.stringify(w))),W(" options: ".concat(JSON.stringify(F))),I&&W(" projectReferences: ".concat(JSON.stringify(I)));var r=x||!Q();x=!1,M=!1,G.startCachingPerDirectoryResolution(),H.hasInvalidatedResolution=t,H.hasChangedAutomaticTypeDirectiveNames=ce,n=N(w,F,H,n,g,I);var i=e.map(G.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(e=>{var t=e[0],r=e[1];return[H.realpath?te(H.realpath(t)):t,r]}));if(G.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=new e.Map),be),e.updatePackageJsonWatch(i,o||(o=new e.Map),xe),r&&G.updateTypeRootsWatch(),p){for(var s=0,c=p;s<c.length;s++){var l=c[s];a.has(l)||b.delete(l)}p=void 0}})(i)),y=!1,v=!1,r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function ee(){return e.getNewLineCharacter(F||C,(()=>r.getNewLine()))}function te(t){return e.toPath(t,S,J)}function re(e){return"boolean"==typeof e}function ne(e){var t=te(e);return!re(b.get(t))&&L.fileExists(e)}function ie(t,r,n,i,a){var o=b.get(r);if(!re(o)){if(void 0===o||a||(e=>"boolean"==typeof e.version)(o)){var s=$(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=he(r,t,ye,e.PollingInterval.Low,P,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),b.set(r,!1));else if(s){var c=he(r,t,ye,e.PollingInterval.Low,P,e.WatchType.SourceFile);b.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else b.set(r,!1);return s&&(s.impliedNodeFormat=e.getImpliedNodeFormatForFile(r,G.getModuleResolutionCache().getPackageJsonInfoCache(),H,H.getCompilationSettings())),s}return o.sourceFile}}function ae(e){var t=b.get(e);void 0!==t&&(re(t)?b.set(e,{version:!1}):t.version=!1)}function oe(e){var t=b.get(e);return t&&t.version?t.version:void 0}function se(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),j,F||C)}function ce(){return G.hasChangedAutomaticTypeDirectiveNames()}function le(){return!!l&&(r.clearTimeout(l),l=void 0,!0)}function ue(){l=void 0,G.invalidateResolutionsOfFailedLookupLocations()&&de()}function de(){r.setTimeout&&r.clearTimeout&&(c&&r.clearTimeout(c),W("Scheduling update"),c=r.setTimeout(pe,250))}function pe(){c=void 0,v=!0,_e()}function _e(){switch(i){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),W("Reloading new file names and options"),i=e.ConfigFileProgramReloadLevel.None,w=e.getFileNamesFromConfigSpecs(F.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(D),S),F,B,A),e.updateErrorForNoInputFiles(w,e.getNormalizedAbsolutePath(D,S),F.configFile.configFileSpecs,g,O)&&(M=!0),Z();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),W("Reloading config file: ".concat(D)),i=e.ConfigFileProgramReloadLevel.None,R&&R.clearCache(),fe(),x=!0,Z(),De(),Ce(te(D),F,P,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Z()}return e.perfLogger.logStopUpdateProgram("Done"),Y()}function fe(){me(e.getParsedCommandLineOfConfigFile(D,C,B,h||(h=new e.Map),k,A))}function me(t){w=t.fileNames,F=t.options,P=t.watchOptions,I=t.projectReferences,_=t.wildcardDirectories,g=e.getConfigFileParsingDiagnostics(t).slice(),O=e.canJsonReportNoInputFiles(t.raw),M=!0}function ge(t){var n=te(t),i=null==u?void 0:u.get(n);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!r.getParsedCommandLine){W("Reloading new file names and options");var a=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),S),F,B);return i.parsedCommandLine=m(m({},i.parsedCommandLine),{fileNames:a}),i.reloadLevel=void 0,i.parsedCommandLine}}W("Loading config file: ".concat(t));var o=r.getParsedCommandLine?r.getParsedCommandLine(t):(t=>{var r=B.onUnRecoverableConfigFileDiagnostic;B.onUnRecoverableConfigFileDiagnostic=e.noop;var n=e.getParsedCommandLineOfConfigFile(t,void 0,B,h||(h=new e.Map),k);return B.onUnRecoverableConfigFileDiagnostic=r,n})(t);return i?(i.parsedCommandLine=o,i.reloadLevel=void 0):(u||(u=new e.Map)).set(n,i={parsedCommandLine:o}),((t,r,n)=>{var i,a,o,s,c;n.watcher||(n.watcher=K(t,((n,i)=>{ve(t,r,i);var a=null==u?void 0:u.get(r);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),G.removeResolutionsFromProjectReferenceRedirects(r),de()}),e.PollingInterval.High,(null===(i=n.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||P,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=n.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(n.watchedDirectories||(n.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),((i,a)=>{var o;return z(i,(n=>{var a=te(n);R&&R.addOrDeleteFileOrDirectory(n,a),ae(a);var o=null==u?void 0:u.get(r);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:te(i),fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:t,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:S,useCaseSensitiveFileNames:E,writeLog:W,toPath:te})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,de()))}),a,(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||P,e.WatchType.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0),Ce(r,null===(s=n.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=n.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||P,e.WatchType.ExtendedConfigOfReferencedProject)})(t,n,i),o}function he(e,t,r,n,i,a){return K(t,((t,n)=>r(t,n,e)),n,i,a)}function ye(t,r,n){ve(t,n,r),r===e.FileWatcherEventKind.Deleted&&b.has(n)&&G.invalidateResolutionOfFile(n),ae(n),de()}function ve(e,t,r){R&&R.addOrDeleteFile(e,t,r)}function be(t){return(null==u?void 0:u.has(t))?e.noopFileWatcher:he(t,t,Se,e.PollingInterval.Medium,P,e.WatchType.MissingFile)}function xe(t){return b.has(t)?e.noopFileWatcher:he(t,t,Ee,e.PollingInterval.High,P,e.WatchType.PackageJson)}function Ee(t,r,n){ve(t,n,r),i=e.ConfigFileProgramReloadLevel.Full,y=!0,de()}function Se(t,r,n){ve(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),ae(n),de())}function De(){_?e.updateWatchingWildcardDirectories(s||(s=new e.Map),new e.Map(e.getEntries(_)),Te):s&&e.clearMap(s,e.closeFileWatcherOf)}function Te(t,r){return z(t,(r=>{e.Debug.assert(!!D);var n=te(r);R&&R.addOrDeleteFileOrDirectory(r,n),ae(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:te(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:D,extraFileExtensions:A,options:F,program:Y()||w,currentDirectory:S,useCaseSensitiveFileNames:E,writeLog:W,toPath:te})||i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,de())}),r,P,e.WatchType.WildcardDirectory)}function Ce(t,r,n,a){e.updateSharedExtendedConfigFileWatcher(t,r,d||(d=new e.Map),((t,r)=>K(t,((n,a)=>{var o;ve(t,r,a),h&&e.cleanExtendedConfigCache(h,r,te);var s=null===(o=d.get(r))||void 0===o?void 0:o.projects;(null==s?void 0:s.size)&&s.forEach((t=>{if(te(D)===t)i=e.ConfigFileProgramReloadLevel.Full;else{var r=null==u?void 0:u.get(t);r&&(r.reloadLevel=e.ConfigFileProgramReloadLevel.Full),G.removeResolutionsFromProjectReferenceRedirects(t)}de()}))}),e.PollingInterval.High,n,a)),te)}}})(p),(e=>{var t;(t=e.UpToDateStatusType||(e.UpToDateStatusType={}))[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.UpstreamOutOfDate=7]="UpstreamOutOfDate",t[t.UpstreamBlocked=8]="UpstreamBlocked",t[t.ComputingUpstream=9]="ComputingUpstream",t[t.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",t[t.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=t=>e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")})(p),(e=>{var t,r,n,i=new Date(-864e13),a=new Date(864e13);function o(t,r){return((t,r,n)=>{var i,a=t.get(r);return a||(i=new e.Map,t.set(r,i)),a||i})(t,r)}function s(e,t){return t>e?t:e}function c(e){return!!e&&!!e.buildOrder}function l(e){return c(e)?e.buildOrder:e}function u(t,r){return n=>{var i=r?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(t)," - ");i+="".concat(e.flattenDiagnosticMessageText(n.messageText,t.newLine)).concat(t.newLine+t.newLine),t.write(i)}}function d(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?e=>t.getModifiedTime(e):e.returnUndefined,a.setModifiedTime=t.setModifiedTime?(e,r)=>t.setModifiedTime(e,r):e.noop,a.deleteFile=t.deleteFile?e=>t.deleteFile(e):e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||u(t),a.now=e.maybeBind(t,t.now),a}function p(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function _(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=p(e,t);return r.set(t,i),i}function m(e){return!!e.options}function g(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,l=t.baseCompilerOptions,u=t.baseWatchOptions,d=t.extendedConfigCache,p=t.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=e=>i=e,s=e.getParsedCommandLineOfConfigFile(r,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function y(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function v(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,l=r;c<l.length;c++)u(l[c]);return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function u(r,c){var l=_(t,r);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(r);var d=h(t,r,l);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];u(y(t,m.path),c||m.circular)}s.pop(),o.set(l,!0),(n||(n=[])).push(r)}}}function b(t){return t.buildOrder||(t=>{var r=v(t,t.rootNames.map((e=>y(t,e))));t.resolvedConfigFilePaths.clear();var n=new e.Map(l(r).map((e=>[_(t,e),!0]))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcherOf)}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)}),e.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)})),t.buildOrder=r})(t)}function x(t,r,n){var i=r&&y(t,r),a=b(t);if(c(a))return a;if(i){var o=_(t,i);if(-1===e.findIndex(a,(e=>_(t,e)===o)))return}var s=i?v(t,[i]):a;return e.Debug.assert(!c(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function E(t){t.cache&&S(t);var r=t.compilerHost,n=t.host,i=t.readFileWithCache,a=r.getSourceFile,o=e.changeCompilerHostLikeToUseCache(n,(e=>p(t,e)),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.call.apply(a,f([r],e,!1))})),s=o.originalReadFile,c=o.originalFileExists,l=o.originalDirectoryExists,u=o.originalCreateDirectory,d=o.originalWriteFile,_=o.getSourceFileWithCache,m=o.readFileWithCache;t.readFileWithCache=m,r.getSourceFile=_,t.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:l,originalCreateDirectory:u,originalWriteFile:d,originalReadFileWithCache:i,originalGetSourceFile:a}}function S(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function D(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function T(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function C(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&ee(t,e.Diagnostics.Starting_compilation_in_watch_mode),E(t),l(b(t)).forEach((r=>t.projectPendingBuild.set(_(t,r),e.ConfigFileProgramReloadLevel.None))),r&&r.throwIfCancellationRequested())}function k(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function A(e,t,n,i,a){var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.currentDirectory,updateOutputFileStatmps(){B(e,i,n),o=!1},done:()=>(o&&B(e,i,n),k(e,n))}}function N(o,c,l,u,d,m,g){var v,b,x,E=o===r.Build?n.CreateProgram:n.EmitBundle;return o===r.Build?{kind:o,project:l,projectPath:u,buildOrder:g,getCompilerOptions:()=>m.options,getCurrentDirectory:()=>c.currentDirectory,getBuilderProgram:()=>D(e.identity),getProgram:()=>D((e=>e.getProgramOrUndefined())),getSourceFile:e=>D((t=>t.getSourceFile(e))),getSourceFiles:()=>T((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>T((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>T((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>T((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>T((r=>r.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>T((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>T((r=>r.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>D((r=>r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,t,r,i,a)=>e||i?D((n=>{var o,s;return n.emit(e,t,r,i,a||(null===(s=(o=c.host).getCustomTransformers)||void 0===s?void 0:s.call(o,l)))})):(V(n.SemanticDiagnostics,r),E===n.EmitBuildInfo?R(t,r):E===n.Emit?M(t,r,a):void 0),done:S}:{kind:o,project:l,projectPath:u,buildOrder:g,getCompilerOptions:()=>m.options,getCurrentDirectory:()=>c.currentDirectory,emit:(e,t)=>E!==n.EmitBundle?x:U(e,t),done:S};function S(e,t,r){return V(n.Done,e,t,r),k(c,u)}function D(e){return V(n.CreateProgram),v&&e(v)}function T(t){return D(t)||e.emptyArray}function C(){var r,i;if(e.Debug.assert(void 0===v),c.options.dry)return Z(c,e.Diagnostics.A_non_dry_build_would_build_project_0,l),b=t.Success,void(E=n.QueueReferencingProjects);if(c.options.verbose&&Z(c,e.Diagnostics.Building_project_0,l),0===m.fileNames.length)return re(c,u,e.getConfigFileParsingDiagnostics(m)),b=t.None,void(E=n.QueueReferencingProjects);var a=c.host,o=c.compilerHost;c.projectCompilerOptions=m.options,null===(r=c.moduleResolutionCache)||void 0===r||r.update(m.options),null===(i=c.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(m.options),v=a.createProgram(m.fileNames,m.options,o,((t,r,n)=>{var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(!i.force)return a.get(r)||e.readBuilderProgram(n.options,o)})(c,u,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),c.watch&&(c.lastCachedPackageJsonLookups.set(u,c.moduleResolutionCache&&e.map(c.moduleResolutionCache.getPackageJsonInfoCache().entries(),(e=>{var t=e[0],r=e[1];return[c.host.realpath&&r?p(c,c.host.realpath(t)):t,r]}))),c.builderPrograms.set(u,v)),E++}function A(e,t,r){var n;e.length?(n=O(c,u,v,m,e,t,r),b=n.buildResult,E=n.step):E++}function w(r){e.Debug.assertIsDefined(v),A(f(f(f(f([],v.getConfigFileParsingDiagnostics(),!0),v.getOptionsDiagnostics(r),!0),v.getGlobalDiagnostics(r),!0),v.getSyntacticDiagnostics(void 0,r),!0),t.SyntaxErrors,"Syntactic")}function F(r){A(e.Debug.checkDefined(v).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,a,o){var d,_,f,g;e.Debug.assertIsDefined(v),e.Debug.assert(E===n.Emit),v.backupState();var h=[],y=e.emitFilesAndReportErrors(v,(e=>(g||(g=[])).push(e)),void 0,void 0,((e,t,r)=>h.push({name:e,text:t,writeByteOrderMark:r})),a,!1,o||(null===(f=(_=c.host).getCustomTransformers)||void 0===f?void 0:f.call(_,l))).emitResult;if(g)return v.restoreState(),d=O(c,u,v,m,g,t.DeclarationEmitErrors,"Declaration file"),b=d.buildResult,E=d.step,{emitSkipped:!0,diagnostics:y.diagnostics};var x=c.host,S=c.compilerHost,D=t.DeclarationOutputUnchanged,T=i,C=!1,k=e.createDiagnosticCollection(),A=new e.Map;return h.forEach((n=>{var i,a=n.name,o=n.text,l=n.writeByteOrderMark;!C&&e.isDeclarationFileName(a)&&(x.fileExists(a)&&c.readFileWithCache(a)===o?i=x.getModifiedTime(a):(D&=~t.DeclarationOutputUnchanged,C=!0)),A.set(p(c,a),a),e.writeFile(r?{writeFile:r}:S,k,a,o,l),void 0!==i&&(T=s(i,T))})),B(k,A,T,C,h.length?h[0].name:e.getFirstProjectOutput(m,!x.useCaseSensitiveFileNames()),D),y}function R(r,i){e.Debug.assertIsDefined(v),e.Debug.assert(E===n.EmitBuildInfo);var a=v.emitBuildInfo(r,i);return a.diagnostics.length&&(te(c,a.diagnostics),c.diagnostics.set(u,f(f([],c.diagnostics.get(u),!0),a.diagnostics,!0)),b=t.EmitErrors&b),a.emittedFiles&&c.write&&a.emittedFiles.forEach((e=>P(c,m,e))),I(c,v,m),E=n.QueueReferencingProjects,a}function B(r,i,o,s,l,d){var p,_=r.getDiagnostics();if(_.length)return p=O(c,u,v,m,_,t.EmitErrors,"Emit"),b=p.buildResult,E=p.step,_;c.write&&i.forEach((e=>P(c,m,e)));var f=L(c,m,o,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return c.diagnostics.delete(u),c.projectStatus.set(u,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?a:f,oldestOutputFileName:l}),I(c,v,m),E=n.QueueReferencingProjects,b=d,_}function U(a,s){var f,v;if(e.Debug.assert(o===r.UpdateBundle),c.options.dry)return Z(c,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,l),b=t.Success,void(E=n.QueueReferencingProjects);c.options.verbose&&Z(c,e.Diagnostics.Updating_output_of_project_0,l);var S=c.compilerHost;c.projectCompilerOptions=m.options;var D=e.emitUsingBuildInfo(m,S,(e=>{var t=y(c,e.path);return h(c,t,_(c,t))}),s||(null===(v=(f=c.host).getCustomTransformers)||void 0===v?void 0:v.call(f,l)));if(e.isString(D))return Z(c,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,l,Q(c,D)),E=n.BuildInvalidatedProjectOfBundle,x=N(r.Build,c,l,u,d,m,g);e.Debug.assert(!!D.length);var T=e.createDiagnosticCollection(),C=new e.Map;return D.forEach((t=>{var r=t.name,n=t.text,i=t.writeByteOrderMark;C.set(p(c,r),r),e.writeFile(a?{writeFile:a}:S,T,r,n,i)})),{emitSkipped:!1,diagnostics:B(T,C,i,!1,D[0].name,t.DeclarationOutputUnchanged)}}function V(t,r,i,a){for(;E<=t&&E<n.Done;){var o=E;switch(E){case n.CreateProgram:C();break;case n.SyntaxDiagnostics:w(r);break;case n.SemanticDiagnostics:F(r);break;case n.Emit:M(i,r,a);break;case n.EmitBuildInfo:R(i,r);break;case n.EmitBundle:U(i,a);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(x).done(r,i,a),E=n.Done;break;case n.QueueReferencingProjects:j(c,l,u,d,m,g,e.Debug.checkDefined(b)),E++;break;case n.Done:default:e.assertType(E)}e.Debug.assert(E>o)}}}function w(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function F(t,n,i){if(t.projectPendingBuild.size&&!c(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var l=n[s],u=_(t,l),d=t.projectPendingBuild.get(u);if(void 0!==d){i&&(i=!1,ae(t,n));var p=h(t,l,u);if(p){d===e.ConfigFileProgramReloadLevel.Full?(H(t,l,u,p),$(t,u,p),G(t,l,u,p),q(t,l,u,p),X(t,l,u,p)):d===e.ConfigFileProgramReloadLevel.Partial&&(p.fileNames=e.getFileNamesFromConfigSpecs(p.options.configFile.configFileSpecs,e.getDirectoryPath(l),p.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(p.fileNames,l,p.options.configFile.configFileSpecs,p.errors,e.canJsonReportNoInputFiles(p.raw)),q(t,l,u,p),X(t,l,u,p));var f=R(t,p,u);if(oe(t,l,f),!a.force){if(f.type===e.UpToDateStatusType.UpToDate){re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.dry&&Z(t,e.Diagnostics.Project_0_is_up_to_date,l);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return re(t,u,e.getConfigFileParsingDiagnostics(p)),A(t,l,u,p,n)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return N(w(t,f,p)?r.Build:r.UpdateBundle,t,l,u,s,p,n);re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u)}else re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.verbose&&Z(t,f.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,f.upstreamProjectName)}else ne(t,u),o.delete(u)}}}}function P(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: ".concat(r))}function I(t,r,n){r?(r&&t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function O(r,i,a,o,s,c,l){var u=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return re(r,i,s),r.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(l," errors")}),u?{buildResult:c,step:n.EmitBuildInfo}:(I(r,a,o),{buildResult:c,step:n.QueueReferencingProjects})}function M(t,r,n,i){if(n<e.getModifiedTime(t.host,r))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(n);if(void 0!==o)return o;var c=((t,r,n)=>{for(var o=!!t.options.force,c=void 0,l=i,u=t.host,d=0,p=r.fileNames;d<p.length;d++){var f=p[d];if(!u.fileExists(f))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(f," does not exist")};if(!o){var m=e.getModifiedTime(u,f);m>l&&(c=f,l=m)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var g,y=e.getAllProjectOutputs(r,!u.useCaseSensitiveFileNames()),v="(none)",b=a,x="(none)",E=i,S=i,D=!1;if(!o)for(var T=0,C=y;T<C.length;T++){var k=C[T];if(!u.fileExists(k)){g=k;break}var A=e.getModifiedTime(u,k);if(A<b&&(b=A,v=k),A<l){D=!0;break}A>E&&(E=A,x=k),e.isDeclarationFileName(k)&&(S=s(S,e.getModifiedTime(u,k)))}var N,w=!1,F=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var P=0,I=r.projectReferences;P<I.length;P++){var O=I[P];F=F||!!O.prepend;var L=e.resolveProjectReferencePath(O),B=_(t,L),j=R(t,h(t,L,B),B);if(j.type!==e.UpToDateStatusType.ComputingUpstream&&j.type!==e.UpToDateStatusType.ContainerOnly){if(j.type===e.UpToDateStatusType.Unbuildable||j.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:O.path,upstreamProjectBlocked:j.type===e.UpToDateStatusType.UpstreamBlocked};if(j.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:O.path};if(!o&&!g){if(j.newestInputFileTime&&j.newestInputFileTime<=b)continue;if(j.newestDeclarationFileContentChangedTime&&j.newestDeclarationFileContentChangedTime<=b){w=!0,N=O.path;continue}return e.Debug.assert(void 0!==v,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v,newerProjectName:O.path}}}}}if(void 0!==g)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:g};if(D)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:v,newerInputFileName:c};var U=M(t,r.options.configFilePath,b,v);if(U)return U;var V=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(e=>M(t,e,b,v)));if(V)return V;var K=e.forEach(t.lastCachedPackageJsonLookups.get(n)||e.emptyArray,(e=>{var r=e[0];return M(t,r,b,v)}));if(K)return K;if(!o&&!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var z=e.getTsBuildInfoEmitOutputFilePath(r.options);if(z){var W=t.readFileWithCache(z),J=W&&e.getBuildInfo(W);if(J&&(J.bundle||J.program)&&J.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:J.version}}}return F&&w?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v,newerProjectName:N}:{type:w?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:l,newestOutputFileTime:E,newestInputFileName:c,newestOutputFileName:x,oldestOutputFileName:v}})(t,r,n);return t.projectStatus.set(n,c),c}function L(t,r,n,i,a){if(r.options.noEmit)return n;var o=t.host,c=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||c.length!==a.size)for(var l=!!t.options.verbose,u=o.now?o.now():new Date,d=0,_=c;d<_.length;d++){var f=_[d];a&&a.has(p(t,f))||(l&&(l=!1,Z(t,i,r.options.configFilePath)),e.isDeclarationFileName(f)&&(n=s(n,e.getModifiedTime(o,f))),o.setModifiedTime(f,u))}return n}function B(t,r,n){if(t.options.dry)return Z(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var a=L(t,r,i,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:a,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function j(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var u=s[l],d=_(r,u);if(!r.projectPendingBuild.has(d)){var p=h(r,u,d);if(p&&p.projectReferences)for(var f=0,m=p.projectReferences;f<m.length;f++){var g=m[f];if(_(r,y(r,g.path))===i){var v=r.projectStatus.get(d);if(v)switch(v.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n}):v.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v.type===e.UpToDateStatusType.OutOfDateWithPrepend?v.outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:_(r,y(r,v.upstreamProjectName))===i&&D(r,d)}T(r,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function U(t,r,n,i,a,o){var s=x(t,r,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;C(t,n);for(var u=!0,d=0;;){var p=F(t,s,u);if(!p)break;u=!1,p.done(n,i,null==a?void 0:a(p.project)),t.diagnostics.has(p.projectPath)||d++}return S(t),ie(t,s),((e,t)=>{if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=l(t);r<n.length;r++){var i=n[r],a=_(e,i),o=h(e,i,a);H(e,i,a,o),$(e,a,o),o&&(G(e,i,a,o),q(e,i,a,o),X(e,i,a,o))}}})(t,s),c(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((e=>t.diagnostics.has(_(t,e))))?d?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function V(t,r,n){var i=x(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(c(i))return te(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,l=0,u=i;l<u.length;l++){var d=u[l],f=_(t,d),m=h(t,d,f);if(void 0!==m){var g=e.getAllProjectOutputs(m,!o.useCaseSensitiveFileNames());if(g.length)for(var y=new e.Set(m.fileNames.map((e=>p(t,e)))),v=0,b=g;v<b.length;v++){var E=b[v];y.has(p(t,E))||o.fileExists(E)&&(s?s.push(E):(o.deleteFile(E),K(t,f,e.ConfigFileProgramReloadLevel.None)))}}else ne(t,f)}return s&&Z(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((e=>"\r\n * ".concat(e))).join("")),e.ExitStatus.Success}function K(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,D(t,r),T(t,r,n),E(t)}function z(e,t,r){e.reportFileChangeDetected=!0,K(e,t,r),W(e)}function W(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(J,250,e))}function J(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),ee(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=b(t),n=F(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&W(t):(S(t),ie(t,r))}function H(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(r,(()=>{z(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function $(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,null==n?void 0:n.options,t.allWatchedExtendedConfigFiles,((r,i)=>t.watchFile(r,(()=>{var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((r=>z(t,r,e.ConfigFileProgramReloadLevel.Full)))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)),(e=>p(t,e)))}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(o(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),((a,o)=>t.watchDirectory(a,(o=>{var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:p(t,a),fileOrDirectory:o,fileOrDirectoryPath:p(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n)||(null===(s=g(t,n))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:e=>t.writeLog(e),toPath:e=>p(t,e)})||z(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)))}function q(t,r,n,i){t.watch&&e.mutateMap(o(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(e=>p(t,e))),{createNewValue:(a,o)=>t.watchFile(o,(()=>z(t,n,e.ConfigFileProgramReloadLevel.None)),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r),onDeleteValue:e.closeFileWatcher})}function X(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&e.mutateMap(o(t.allWatchedPackageJsonFiles,n),new e.Map(t.lastCachedPackageJsonLookups.get(n)),{createNewValue:(a,o)=>t.watchFile(a,(()=>z(t,n,e.ConfigFileProgramReloadLevel.None)),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,r),onDeleteValue:e.closeFileWatcher})}function Y(t,r,n,i,a){var o=((t,r,n,i,a)=>{var o,s,c=r,l=r,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=i,s={},e.commonOptionsWithBuild.forEach((t=>{e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),f=e.createCompilerHostFromProgramHost(c,(()=>D.projectCompilerOptions));e.setGetSourceFileAsHashVersioned(f,c),f.getParsedCommandLine=e=>h(D,e,_(D,e)),f.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),f.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=f.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d),g=f.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(u,d,void 0,null==m?void 0:m.getPackageJsonInfoCache());if(!f.resolveModuleNames){var y=(t,r,n,i)=>e.resolveModuleName(t,n,D.projectCompilerOptions,f,m,i,r).resolvedModule;f.resolveModuleNames=(t,r,n,i,a,o)=>e.loadWithModeAwareCache(e.Debug.checkEachDefined(t),e.Debug.checkDefined(o),r,i,y),f.getModuleResolutionCache=()=>m}if(!f.resolveTypeReferenceDirectives){var v=(t,r,n,i)=>e.resolveTypeReferenceDirective(t,r,D.projectCompilerOptions,f,n,D.typeReferenceDirectiveResolutionCache,i).resolvedTypeReferenceDirective;f.resolveTypeReferenceDirectives=(t,r,n,i,a)=>e.loadWithTypeDirectiveCache(e.Debug.checkEachDefined(t),r,n,a,v)}var b=e.createWatchFactory(l,i),x=b.watchFile,E=b.watchDirectory,S=b.writeLog,D={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:p,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:f,moduleResolutionCache:m,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:e=>c.readFile(e),projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:E,writeLog:S};return D})(t,r,n,i,a);return{build:(e,t,r,n)=>U(o,e,t,r,n),clean:e=>V(o,e),buildReferences:(e,t,r,n)=>U(o,e,t,r,n,!0),cleanReferences:e=>V(o,e,!0),getNextInvalidatedProject:e=>(C(o,e),F(o,b(o),!1)),getBuildOrder:()=>b(o),getUpToDateStatusOfProject(e){var t=y(o,e),r=_(o,t);return R(o,h(o,t,r),r)},invalidateProject:(t,r)=>K(o,t,r||e.ConfigFileProgramReloadLevel.None),buildNextInvalidatedProject:()=>J(o),getAllParsedConfigs:()=>e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(e=>m(e)?e:void 0))),close:()=>(t=>{e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(t.allWatchedWildcardDirectories,(t=>e.clearMap(t,e.closeFileWatcherOf))),e.clearMap(t.allWatchedInputFiles,(t=>e.clearMap(t,e.closeFileWatcher))),e.clearMap(t.allWatchedPackageJsonFiles,(t=>e.clearMap(t,e.closeFileWatcher)))})(o)}}function Q(t,r){return e.convertToRelativePath(r,t.currentDirectory,(e=>t.getCanonicalFileName(e)))}function Z(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,f([r],n,!1)))}function ee(t,r){for(var n,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];null===(i=(n=t.hostWithWatch).onWatchStatusChange)||void 0===i||i.call(n,e.createCompilerDiagnostic.apply(void 0,f([r],a,!1)),t.host.getNewLine(),t.baseCompilerOptions)}function te(e,t){var r=e.host;t.forEach((e=>r.reportDiagnostic(e)))}function re(e,t,r){te(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ne(e,t){re(e,t,[e.configFileCache.get(t)])}function ie(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0,o=[];c(r)?(ae(t,r.buildOrder),te(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics)),n&&(o=f(f([],o,!0),e.getFilesInErrorForSummary(r.circularDiagnostics),!0))):(r.forEach((r=>{var n=_(t,r);t.projectErrorsReported.has(n)||te(t,i.get(n)||e.emptyArray)})),n&&i.forEach((t=>a+=e.getErrorCountForSummary(t))),n&&i.forEach((t=>f(f([],o,!0),e.getFilesInErrorForSummary(t),!0)))),t.watch?ee(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a,o)}}function ae(t,r){t.options.verbose&&Z(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((e=>"\r\n * "+Q(t,e))).join(""))}function oe(t,r,n){t.options.verbose&&((t,r,n)=>{if(t.options.force&&(n.type===e.UpToDateStatusType.UpToDate||n.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Z(t,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Q(t,r));switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Q(t,r),Q(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return Z(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Q(t,r),Q(t,n.newestInputFileName||""),Q(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Q(t,r),Q(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Z(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Q(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Z(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Z(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Q(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Q(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}})(t,r,n)}!(e=>{e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"})(t||(t={})),e.isCircularBuildOrder=c,e.getBuildOrderFromAnyBuildOrder=l,e.createBuilderStatusReporter=u,e.createSolutionBuilderHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=d(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=d(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=(e,t,r)=>Y(!1,e,t,r),e.createSolutionBuilderWithWatch=(e,t,r,n)=>Y(!0,e,t,r,n),(e=>{e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),(e=>{e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"})(n||(n={}))})(p),(e=>{var t,r;(t=e.server||(e.server={})).ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",(r=t.Arguments||(t.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",t.hasArgument=t=>e.sys.args.indexOf(t)>=0,t.findArgument=t=>{var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=()=>{var t=new Date;return"".concat(e.padLeft(t.getHours().toString(),2,"0"),":").concat(e.padLeft(t.getMinutes().toString(),2,"0"),":").concat(e.padLeft(t.getSeconds().toString(),2,"0"),".").concat(e.padLeft(t.getMilliseconds().toString(),3,"0"))}})(p),(e=>{!(t=>{function r(t,r){return new e.Version(e.getProperty(r,"ts".concat(e.versionMajorMinor))||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r;var n,i=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function a(e){return t.nodeCoreModules.has(e)?"node":e}function o(e,t){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=o(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=o(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function s(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=i.map((e=>"node:".concat(e))),t.nodeCoreModuleList=f(f([],i,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=a,t.loadSafeList=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=(t,n,i,o,s,c,l,u,d)=>{if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var p=new e.Map;i=e.mapDefined(i,(t=>{var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var _=[];l.include&&S(l.include,"Explicitly included types");var f=l.exclude||[],m=new e.Set(i.map(e.getDirectoryPath));m.add(o),m.forEach((e=>{D(e,"bower.json","bower_components",_),D(e,"package.json","node_modules",_)})),l.disableFilenameBasedTypeAcquisition||(t=>{var r=e.mapDefined(t,(t=>{if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names"),e.some(t,(t=>e.fileExtensionIs(t,".jsx")))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),E("react"))})(i),u&&S(e.deduplicate(u.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(((e,t)=>{var n=d.get(t);p.has(t)&&void 0===p.get(t)&&void 0!==n&&r(e,n)&&p.set(t,e.typingLocation)}));for(var g=0,h=f;g<h.length;g++){var y=h[g];p.delete(y)&&n&&n("Typing for ".concat(y," is in exclude list, will be ignored."))}var v=[],b=[];p.forEach(((e,t)=>{void 0!==e?b.push(e):v.push(t)}));var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:_};return n&&n("Result: ".concat(JSON.stringify(x))),x;function E(e){p.has(e)||p.set(e,void 0)}function S(t,r){n&&n("".concat(r,": ").concat(JSON.stringify(t))),e.forEach(t,E)}function D(r,i,a,o){var s,c,l=e.combinePaths(r,i);t.fileExists(l)&&(o.push(l),s=e.readConfigFile(l,(e=>t.readFile(e))).config,S(c=e.flatMap([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],e.getOwnKeys),"Typing names in '".concat(l,"' dependencies")));var u=e.combinePaths(r,a);if(o.push(u),t.directoryExists(u)){var d=[],_=c?c.map((t=>e.combinePaths(u,t,i))):t.readDirectory(u,[".json"],void 0,void 0,3).filter((t=>{if(e.getBaseFileName(t)!==i)return!1;var r=e.getPathComponents(e.normalizePath(t)),n="@"===r[r.length-3][0];return n&&r[r.length-4].toLowerCase()===a||!n&&r[r.length-3].toLowerCase()===a}));n&&n("Searching for typing names in ".concat(u,"; all files: ").concat(JSON.stringify(_)));for(var f=0,m=_;f<m.length;f++){var g=m[f],h=e.normalizePath(g),y=e.readConfigFile(h,(e=>t.readFile(e))).config;if(y.name){var v=y.types||y.typings;if(v){var b=e.getNormalizedAbsolutePath(v,e.getDirectoryPath(h));t.fileExists(b)?(n&&n(" Package '".concat(y.name,"' provides its own types.")),p.set(y.name,b)):n&&n(" Package '".concat(y.name,"' provides its own types but they are missing."))}else d.push(y.name)}}S(d," Found package names")}}},(n=t.NameValidationResult||(t.NameValidationResult={}))[n.Ok=0]="Ok",n[n.EmptyName=1]="EmptyName",n[n.NameTooLong=2]="NameTooLong",n[n.NameStartsWithDot=3]="NameStartsWithDot",n[n.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",n[n.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t.validatePackageName=e=>o(e,!0),t.renderPackageNameValidationFailure=(e,t)=>"object"==typeof e?s(t,e.result,e.name,e.isScopeName):s(t,e,t,!1)})(e.JsTyping||(e.JsTyping={}))})(p),function(e){var t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x;function E(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}b=e.ScriptSnapshot||(e.ScriptSnapshot={}),x=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=()=>{},e}(),b.fromString=e=>new x(e),(v=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[v.Dependencies=1]="Dependencies",v[v.DevDependencies=2]="DevDependencies",v[v.PeerDependencies=4]="PeerDependencies",v[v.OptionalDependencies=8]="OptionalDependencies",v[v.All=15]="All",(y=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[y.Off=0]="Off",y[y.On=1]="On",y[y.Auto=2]="Auto",(h=e.LanguageServiceMode||(e.LanguageServiceMode={}))[h.Semantic=0]="Semantic",h[h.PartialSemantic=1]="PartialSemantic",h[h.Syntactic=2]="Syntactic",e.emptyOptions={},(g=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",g.TwentyTwenty="2020",(m=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[m.Invoked=1]="Invoked",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(f=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",f.Parameter="Parameter",f.Enum="Enum",(_=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",_.definition="definition",_.reference="reference",_.writtenReference="writtenReference",(e=>{e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"})(t=e.IndentStyle||(e.IndentStyle={})),(e=>{e.Ignore="ignore",e.Insert="insert",e.Remove="remove"})(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=E,e.testFormatSettings=E("\n"),(p=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[p.aliasName=0]="aliasName",p[p.className=1]="className",p[p.enumName=2]="enumName",p[p.fieldName=3]="fieldName",p[p.interfaceName=4]="interfaceName",p[p.keyword=5]="keyword",p[p.lineBreak=6]="lineBreak",p[p.numericLiteral=7]="numericLiteral",p[p.stringLiteral=8]="stringLiteral",p[p.localName=9]="localName",p[p.methodName=10]="methodName",p[p.moduleName=11]="moduleName",p[p.operator=12]="operator",p[p.parameterName=13]="parameterName",p[p.propertyName=14]="propertyName",p[p.punctuation=15]="punctuation",p[p.space=16]="space",p[p.text=17]="text",p[p.typeParameterName=18]="typeParameterName",p[p.enumMemberName=19]="enumMemberName",p[p.functionName=20]="functionName",p[p.regularExpressionLiteral=21]="regularExpressionLiteral",p[p.link=22]="link",p[p.linkName=23]="linkName",p[p.linkText=24]="linkText",(d=e.CompletionInfoFlags||(e.CompletionInfoFlags={}))[d.None=0]="None",d[d.MayIncludeAutoImports=1]="MayIncludeAutoImports",d[d.IsImportStatementCompletion=2]="IsImportStatementCompletion",d[d.IsContinuation=4]="IsContinuation",d[d.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",d[d.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",d[d.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",(u=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",u.Region="region",u.Code="code",u.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(n=e.ClassificationType||(e.ClassificationType={}))[n.comment=1]="comment",n[n.identifier=2]="identifier",n[n.keyword=3]="keyword",n[n.numericLiteral=4]="numericLiteral",n[n.operator=5]="operator",n[n.stringLiteral=6]="stringLiteral",n[n.regularExpressionLiteral=7]="regularExpressionLiteral",n[n.whiteSpace=8]="whiteSpace",n[n.text=9]="text",n[n.punctuation=10]="punctuation",n[n.className=11]="className",n[n.enumName=12]="enumName",n[n.interfaceName=13]="interfaceName",n[n.moduleName=14]="moduleName",n[n.typeParameterName=15]="typeParameterName",n[n.typeAliasName=16]="typeAliasName",n[n.parameterName=17]="parameterName",n[n.docCommentTagName=18]="docCommentTagName",n[n.jsxOpenTagName=19]="jsxOpenTagName",n[n.jsxCloseTagName=20]="jsxCloseTagName",n[n.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",n[n.jsxAttribute=22]="jsxAttribute",n[n.jsxText=23]="jsxText",n[n.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",n[n.bigintLiteral=25]="bigintLiteral"}(p),(e=>{function t(t){switch(t.kind){case 254:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 164:case 203:case 167:case 166:case 296:case 297:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 292:case 285:return 1;case 163:case 258:case 259:case 182:return 2;case 345:return void 0===t.name?3:2;case 299:case 257:return 3;case 261:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 260:case 269:case 270:case 265:case 266:case 271:case 272:return 7;case 305:return 5}return 7}function r(t){for(;161===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function a(e){return e.tagName}function o(t,r,n,i,a){var o=i?c(t):s(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function s(e){return d(e)?e.parent:e}function c(e){return d(e)||p(e)?e.parent:e}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}var _;e.scanner=e.createScanner(99,!0),(_=e.SemanticMeaning||(e.SemanticMeaning={}))[_.None=0]="None",_[_.Value=1]="Value",_[_.Type=2]="Type",_[_.Namespace=4]="Namespace",_[_.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=n=>{var i=(n=P(n)).parent;return 305===n.kind?1:e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name?7:r(n)?(t=>{var r=161===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&265===r.parent.kind?7:4})(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:(t=>{switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 108:return!e.isExpressionNode(t);case 192:return!0}switch(t.parent.kind){case 178:return!0;case 200:return!t.parent.isTypeOf;case 228:return e.isPartOfTypeNode(t.parent)}return!1})(n)?2:(e=>(e=>{var t=e,r=!0;if(161===t.parent.kind){for(;t.parent&&161===t.parent.kind;)t=t.parent;r=t.right===e}return 178===t.parent.kind&&!r})(e)||(e=>{var t=e,r=!0;if(206===t.parent.kind){for(;t.parent&&206===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&228===t.parent.kind&&291===t.parent.parent.kind){var n=t.parent.parent.parent;return 257===n.kind&&117===t.parent.parent.token||258===n.kind&&94===t.parent.parent.token}return!1})(e))(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallExpression,n,r,i)),e.isNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isNewExpression,n,r,i)),e.isCallOrNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallOrNewExpression,n,r,i)),e.isTaggedTemplateTag=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isTaggedTemplateExpression,i,r,n)),e.isDecoratorTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isDecorator,n,r,i)),e.isJsxOpeningLikeElementTagName=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isJsxOpeningLikeElement,a,r,n)),e.climbPastPropertyAccess=s,e.climbPastPropertyOrElementAccess=c,e.getTargetLabel=(e,t)=>{for(;e;){if(250===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=(t,r)=>!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r,e.isJumpStatementTarget=l,e.isLabelOfLabeledStatement=u,e.isLabelName=e=>u(e)||l(e),e.isTagName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=d,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=t=>{var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=t=>{switch(t.parent.kind){case 167:case 166:case 296:case 299:case 169:case 168:case 172:case 173:case 261:return e.getNameOfDeclaration(t.parent)===t;case 207:return t.parent.argumentExpression===t;case 162:return!0;case 196:return 194===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=t=>e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t,e.getContainerNode=t=>{for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 305:case 169:case 168:case 256:case 213:case 172:case 173:case 257:case 258:case 260:case 261:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 305:return e.isExternalModule(r)?"module":"script";case 261:return"module";case 257:case 226:return"class";case 258:return"interface";case 259:case 338:case 345:return"type";case 260:return"enum";case 254:return c(r);case 203:return c(e.getRootDeclaration(r));case 214:case 256:case 213:return"function";case 172:return"getter";case 173:return"setter";case 169:case 168:return"method";case 296:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 167:case 166:case 297:case 298:return"property";case 176:return"index";case 175:return"construct";case 174:return"call";case 171:case 170:return"constructor";case 163:return"type parameter";case 299:return"enum member";case 164:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 265:case 270:case 275:case 268:case 274:return"alias";case 221:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 271:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=t=>{switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&164===t.parent.kind;default:return!1}};var f,g=/^\/\/\/\s*</;function h(e,t){return v(e.pos,e.end,t)}function y(e,t){return e.pos<t&&t<e.end}function v(e,t,r){return e<=r.pos&&t>=r.end}function b(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function x(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 257:case 258:case 260:case 205:case 201:case 182:case 235:case 262:case 263:case 269:case 273:return E(t,19,r);case 292:return x(t.block,r);case 209:if(!t.arguments)return!0;case 208:case 212:case 191:return E(t,21,r);case 179:case 180:return x(t.type,r);case 171:case 172:case 173:case 256:case 213:case 169:case 168:case 175:case 174:case 214:return t.body?x(t.body,r):t.type?x(t.type,r):S(t,21,r);case 261:return!!t.body&&x(t.body,r);case 239:return t.elseStatement?x(t.elseStatement,r):x(t.thenStatement,r);case 238:return x(t.expression,r)||S(t,26,r);case 204:case 202:case 207:case 162:case 184:return E(t,23,r);case 176:return t.type?x(t.type,r):S(t,23,r);case 289:case 290:return!1;case 242:case 243:case 244:case 241:return x(t.statement,r);case 240:return S(t,115,r)?E(t,21,r):x(t.statement,r);case 181:return x(t.exprName,r);case 216:case 215:case 217:case 224:case 225:return x(t.expression,r);case 210:return x(t.template,r);case 223:return x(e.lastOrUndefined(t.templateSpans),r);case 233:return e.nodeIsPresent(t.literal);case 272:case 266:return e.nodeIsPresent(t.moduleSpecifier);case 219:return x(t.operand,r);case 221:return x(t.right,r);case 222:return x(t.whenFalse,r);default:return!0}}function E(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function S(e,t,r){return!!D(e,t,r)}function D(t,r,n){return e.find(t.getChildren(n),(e=>e.kind===r))}function T(t){var r=e.find(t.parent.getChildren(),(r=>e.isSyntaxList(r)&&h(r,t)));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function C(e){return 88===e.kind}function k(e){return 84===e.kind}function A(e){return 98===e.kind}function N(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function w(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function F(t,r){var n=t.parent;if((e.isModifier(t)&&(r||88!==t.kind)?e.contains(n.modifiers,t):84===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):98===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):118===t.kind?e.isInterfaceDeclaration(n):92===t.kind?e.isEnumDeclaration(n):152===t.kind?e.isTypeAliasDeclaration(n):142===t.kind||141===t.kind?e.isModuleDeclaration(n):100===t.kind?e.isImportEqualsDeclaration(n):136===t.kind?e.isGetAccessorDeclaration(n):149===t.kind&&e.isSetAccessorDeclaration(n))&&(a=((t,r)=>{if(!r)switch(t.kind){case 257:case 226:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=t.modifiers&&e.find(t.modifiers,C);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),k);if(n)return n}})(t);case 256:case 213:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,C);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),A);if(n)return n}})(t)}if(e.isNamedDeclaration(t))return t.name})(n,r)))return a;if((113===t.kind||85===t.kind||119===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(152===t.kind){if(e.isImportClause(n)&&n.isTypeOnly&&(a=N(n.parent,r)))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly&&(a=w(n,r)))return a}if(127===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(100===t.kind&&e.isImportDeclaration(n)&&(a=N(n,r)))return a;if(93===t.kind){var a;if(e.isExportDeclaration(n)&&(a=w(n,r)))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(146===t.kind&&e.isExternalModuleReference(n))return n.expression;if(156===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===t.kind||117===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind&&(a=(e=>{if(1===e.types.length)return e.types[0].expression})(n)))return a;if(94===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(137===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(101===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(140===t.kind&&e.isTypeOperatorNode(n)&&140===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(145===t.kind&&e.isTypeOperatorNode(n)&&145===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((103===t.kind&&e.isNewExpression(n)||114===t.kind&&e.isVoidExpression(n)||112===t.kind&&e.isTypeOfExpression(n)||132===t.kind&&e.isAwaitExpression(n)||125===t.kind&&e.isYieldExpression(n)||89===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((101===t.kind||102===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(127===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(101===t.kind&&e.isForInStatement(n)||160===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function P(e){return F(e,!1)}function I(e,t,r){return M(e,t,!1,r,!1)}function O(e,t){return M(e,t,!0,void 0,!1)}function M(t,r,n,i,a){var o,s=t,c=()=>{var a=s.getChildren(t),c=e.binarySearchKey(a,r,((e,t)=>t),((e,o)=>{var s=n?a[e].getFullStart():a[e].getStart(t,!0);return s>r?1:u(a[e])?a[e-1]&&u(a[e-1])?1:0:i&&s===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};e:for(;;){var l=c();if("object"==typeof l)return l.value;switch(l){case"continue-outer":continue e}}function u(e){if((n?e.getFullStart():e.getStart(t,!0))>r)return!1;var s=e.getEnd();if(r<s||r===s&&(1===e.kind||a))return!0;if(i&&s===r){var c=L(r,t,e);if(c&&i(c))return o=c,!0}return!1}}function R(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(n),(e=>(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&$(e,n)?r(e):void 0))}(r)}function L(t,r,n,i){var a=function a(o){if(B(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,((e,t)=>t),((e,r)=>t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1));if(c>=0&&s[c]){var l=s[c];if(t<l.end){if(l.getStart(r,!i)>=t||!$(l,r)||V(l)){var u=U(s,c,r,o.kind);return u&&j(u,r)}return a(l)}}e.Debug.assert(void 0!==n||305===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=U(s,s.length,r,o.kind);return d&&j(d,r)}(n||r);return e.Debug.assert(!(a&&V(a))),a}function B(t){return e.isToken(t)&&!V(t)}function j(e,t){if(B(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=U(r,r.length,t,e.kind);return n&&j(n,t)}function U(t,r,n,i){for(var a=r-1;a>=0;a--)if(V(t[a]))0!==a||11!==i&&279!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if($(t[a],n))return t[a]}function V(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function K(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=L(s+1,n);if(c&&c.kind===r)return c}for(var l=t.kind,u=0;;){var d=L(t.getFullStart(),n);if(!d)return;if((t=d).kind===r){if(0===u)return t;u--}else t.kind===l&&u++}}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function W(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=z(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=r))}function J(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=K(n,18,r)))return;break;case 21:if(!(n=K(n,20,r)))return;break;case 23:if(!(n=K(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function H(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function $(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function G(e,t,r){var n=H(e,t,void 0);return!!n&&r===g.test(e.text.substring(n.pos,n.end))}function q(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function X(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Y(e,t){return{span:e,newText:t}}function Q(e){return 152===e.kind}function Z(t,r){return{fileExists:e=>t.fileExists(e),getCurrentDirectory:()=>r.getCurrentDirectory(),readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function ee(e,t){return m(m({},Z(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?re(n,i):n,void 0)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(t=>e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)));return n?ne(n,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(t=>{var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(t=>!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"))}e.getLineStartPositionForPosition=(t,r)=>e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line],e.rangeContainsRange=h,e.rangeContainsRangeExclusive=(e,t)=>y(e,t.pos)&&y(e,t.end),e.rangeContainsPosition=(e,t)=>e.pos<=t&&t<=e.end,e.rangeContainsPositionExclusive=y,e.startEndContainsRange=v,e.rangeContainsStartEnd=(e,t,r)=>e.pos<=t&&e.end>=r,e.rangeOverlapsWithStartEnd=(e,t,r)=>b(e.pos,e.end,t,r),e.nodeOverlapsWithStartEnd=(e,t,r,n)=>b(e.getStart(t),e.end,r,n),e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=(t,r,n)=>(e.Debug.assert(t.pos<=r),r<t.end||!x(t,n)),e.findListItemInfo=t=>{var r=T(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=S,e.findChildOfKind=D,e.findContainingList=T,e.getContextualTypeFromParentOrAncestorTypeNode=(t,r)=>{var n=Re(t,r);if(n)return n;var i=(t=>{var r;return e.findAncestor(t,(t=>(e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)))),r})(t);return i&&r.getTypeAtLocation(i)},e.getAdjustedReferenceLocation=P,e.getAdjustedRenameLocation=e=>F(e,!0),e.getTouchingPropertyName=(t,r)=>I(t,r,(t=>e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t))),e.getTouchingToken=I,e.getTokenAtPosition=O,e.findFirstNonJsxWhitespaceToken=(e,t)=>{for(var r=O(e,t);V(r);){var n=R(r,r.parent,e);if(!n)return;r=n}return r},e.findTokenOnLeftOfPosition=(t,r)=>{var n=O(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:L(r,t)},e.findNextToken=R,e.findPrecedingToken=L,e.isInString=(t,r,n)=>{if(void 0===n&&(n=L(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=(e,t)=>{var r=O(e,t);return!!r&&(11===r.kind||29===r.kind&&11===r.parent.kind||29===r.kind&&288===r.parent.kind||!(!r||19!==r.kind||288!==r.parent.kind)||29===r.kind&&281===r.parent.kind)},e.isInTemplateString=(t,r)=>{var n=O(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=(t,r)=>{var n=O(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=(e,t)=>(r=>{for(;r;)if(r.kind>=279&&r.kind<=288||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(278!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1})(O(e,t)),e.findPrecedingMatchingToken=K,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=J(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==W(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=W,e.getPossibleTypeArgumentsInfo=J,e.isInComment=H,e.hasDocComment=(t,r)=>{var n=O(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=(t,r)=>{void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),271===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=t=>178===t.kind||208===t.kind?t.typeArguments:e.isFunctionLike(t)||257===t.kind||258===t.kind?t.typeParameters:void 0,e.isComment=e=>2===e||3===e,e.isStringOrRegularExpressionOrTemplateLiteral=t=>!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t)),e.isPunctuation=e=>18<=e&&e<=78,e.isInsideTemplateLiteral=(t,r,n)=>e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end,e.isAccessibilityModifier=e=>{switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=t=>{var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(204===t.kind||205===t.kind){if(221===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(244===t.parent.kind&&t.parent.initializer===t)return!0;if(e(296===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=(e,t)=>G(e,t,!0),e.isInNonReferenceComment=(e,t)=>G(e,t,!1),e.getReplacementSpanForContextToken=e=>{if(e)switch(e.kind){case 10:case 14:return X(e);default:return q(e)}},e.createTextSpanFromNode=q,e.createTextSpanFromStringLiteralLikeContent=X,e.createTextRangeFromNode=(t,r)=>e.createRange(t.getStart(r),t.end),e.createTextSpanFromRange=t=>e.createTextSpanFromBounds(t.pos,t.end),e.createTextRangeFromSpan=t=>e.createRange(t.start,t.start+t.length),e.createTextChangeFromStartLength=(t,r,n)=>Y(e.createTextSpan(t,r),n),e.createTextChange=Y,e.typeKeywords=[130,128,158,133,95,137,140,143,104,147,148,145,150,151,110,114,153,154,155],e.isTypeKeyword=t=>e.contains(e.typeKeywords,t),e.isTypeKeywordToken=Q,e.isTypeKeywordTokenOrIdentifier=t=>Q(t)||e.isIdentifier(t)&&"type"===t.text,e.isExternalModuleSymbol=e=>!!(1536&e.flags)&&34===e.name.charCodeAt(0),e.nodeSeenTracker=()=>{var t=[];return r=>{var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=e=>e.getText(0,e.getLength()),e.repeatString=(e,t)=>{for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=e=>e.isTypeParameter()&&e.getConstraint()||e,e.getNameFromPropertyName=t=>162===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t),e.programContainsModules=e=>e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator))),e.programContainsEsModules=e=>e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)),e.compilerOptionsIndicateEsModules=t=>!!t.module||e.getEmitScriptTarget(t)>=2||!!t.noEmit,e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.moduleResolutionRespectsExports=t=>t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext,e.moduleResolutionUsesNodeModules=t=>t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext,e.makeImportIfNecessary=(e,t,r,n)=>e||t&&t.length?te(e,t,r,n):void 0,e.makeImport=te,e.makeStringLiteral=re,(f=e.QuotePreference||(e.QuotePreference={}))[f.Single=0]="Single",f[f.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=t=>{switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=t=>{var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=t=>e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t),e.isObjectBindingElementWithoutPropertyName=t=>e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName,e.getPropertySymbolFromBindingElement=(e,t)=>{var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=(t,r,n)=>{if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=(t,r)=>t.modifiers&&e.find(t.modifiers,(e=>e.kind===r)),e.insertImports=(t,r,n,i)=>{var a=237===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===d){var p=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],u,!1,p)}else{var _=o[d-1];t.insertNodeAfter(r,_,u)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=(t,r)=>(e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),Q)),e.textSpansEqual=se,e.documentSpansEqual=(e,t)=>e.fileName===t.fileName&&se(e.textSpan,t.textSpan),e.forEachUnique=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=(t,r,n)=>{for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=ce;var le=(()=>{var t,r,n,i,a=10*e.defaultMaximumTruncationLength;l();var o=t=>c(t,e.SymbolDisplayPartKind.text);return{displayParts(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(de(" ",e.SymbolDisplayPartKind.space)),t.push(de("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:t=>c(t,e.SymbolDisplayPartKind.keyword),writeOperator:t=>c(t,e.SymbolDisplayPartKind.operator),writePunctuation:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeTrailingSemicolon:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeSpace:t=>c(t,e.SymbolDisplayPartKind.space),writeStringLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeParameter:t=>c(t,e.SymbolDisplayPartKind.parameterName),writeProperty:t=>c(t,e.SymbolDisplayPartKind.propertyName),writeLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeSymbol(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))},writeLine(){i>a||(i+=1,t.push(he()),r=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:e.notImplemented,getIndent:()=>n,increaseIndent(){n++},decreaseIndent(){n--},clear:l,trackSymbol:()=>!1,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(de(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(de(e,r)))}function l(){t=[],r=!0,n=0,i=0}})();function ue(t,r){return de(t,(t=>{var r=t.flags;return 3&r?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text})(r))}function de(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function pe(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function _e(t){return de(t,e.SymbolDisplayPartKind.text)}function fe(t){return de(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:q(r)}}}function ge(t){return de(t,e.SymbolDisplayPartKind.link)}function he(){return de("\n",e.SymbolDisplayPartKind.lineBreak)}function ye(e){try{return e(le),le.displayParts()}finally{le.clear()}}function ve(e){return 0!=(33554432&e.flags)}function be(e){return 0!=(2097152&e.flags)}function xe(e,t){void 0===t&&(t=!0);var r=e&&Se(e);return r&&!t&&Ce(r),r}function Ee(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Se(t,n),i&&!r&&Ce(i),i}function Se(t,r){var n=r?e=>Ee(e,!0,r):xe,i=r?e=>e&&Te(e,!0,r):e=>e&&De(e),a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function De(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((e=>xe(e,r))),t.hasTrailingComma)}function Te(t,r,n){return e.factory.createNodeArray(t.map((e=>Ee(e,r,n))),t.hasTrailingComma)}function Ce(e){ke(e),Ae(e)}function ke(e){Ne(e,512,we)}function Ae(t){Ne(t,1024,e.getLastChild)}function Ne(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ne(i,r,n)}function we(e){return e.forEachChild((e=>e))}function Fe(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Pe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Oe(r,n,i,a,e.addSyntheticTrailingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Oe(e,t,r,n,i){return(a,o,s,c)=>{3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Me(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Re(e,t){var r=e.parent;switch(r.kind){case 209:return t.getContextualType(r);case 221:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Le(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 289:return r.expression===e?Be(r,t):void 0;default:return t.getContextualType(e)}}function Le(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Be(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function je(e){return 174===e||175===e||176===e||166===e||168===e}function Ue(e){return 256===e||171===e||169===e||172===e||173===e}function Ve(e){return 261===e}function Ke(e){return 237===e||238===e||240===e||245===e||246===e||247===e||251===e||253===e||167===e||259===e||266===e||265===e||272===e||264===e||271===e}function ze(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Ke(a.kind))26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:n++;else if(je(a.kind)){var o;26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:o&&27!==o.kind&&e.getLineAndCharacterOfPosition(t,o.getStart(t)).line!==e.getLineAndCharacterOfPosition(t,e.getSpanOfTokenAtPosition(t,o.end).start).line&&n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function We(e,t){return He(e,e.fileExists,t)}function Je(e){try{return e()}catch(e){return}}function He(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Je((()=>t&&t.apply(e,r)))}function $e(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(t=>{var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Ge(i,r);a&&n.push(a)}})),n}function Ge(t,r){if(r.readFile){var n=(e=>{try{return JSON.parse(e)}catch(e){return}})(r.readFile(t)||""),i={};if(n)for(var a=0,o=["dependencies","devDependencies","optionalDependencies","peerDependencies"];a<o.length;a++){var s=o[a],c=n[s];if(c){var l=new e.Map;for(var u in c)l.set(u,c[u]);i[s]=l}}var d=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return m(m({},i),{parseable:!!n,fileName:t,get:p,has:(e,t)=>!!p(e,t)})}function p(e,t){void 0===t&&(t=15);for(var r=0,n=d;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function qe(t){return e.some(t.imports,(t=>{var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))}function Xe(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Ye(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function Qe(t){return e.firstDefined(t.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))}function Ze(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(t.flags),". ")+"Declarations: ".concat(null===(r=t.declarations)||void 0===r?void 0:r.map((t=>{var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: ".concat(e.Debug.formatSyntaxKind(i.kind),")"):"")})).join(", "),"."))}function et(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.symbolPart=ue,e.displayPart=de,e.spacePart=()=>de(" ",e.SymbolDisplayPartKind.space),e.keywordPart=pe,e.punctuationPart=t=>de(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation),e.operatorPart=t=>de(e.tokenToString(t),e.SymbolDisplayPartKind.operator),e.parameterNamePart=t=>de(t,e.SymbolDisplayPartKind.parameterName),e.propertyNamePart=t=>de(t,e.SymbolDisplayPartKind.propertyName),e.textOrKeywordPart=t=>{var r=e.stringToToken(t);return void 0===r?_e(t):pe(r)},e.textPart=_e,e.typeAliasNamePart=t=>de(t,e.SymbolDisplayPartKind.aliasName),e.typeParameterNamePart=t=>de(t,e.SymbolDisplayPartKind.typeParameterName),e.linkTextPart=fe,e.linkNamePart=me,e.linkPart=ge,e.buildLinkParts=(t,r)=>{var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[ge("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=(e=>{if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;for(var t=0,r=0;r<e.length;)if("<"===e[r]&&t++,">"===e[r]&&t--,r++,!t)return r;return 0})(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=(e=>{var t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e})(t.text.slice(s)),u=(null==o?void 0:o.valueDeclaration)||(null===(n=null==o?void 0:o.declarations)||void 0===n?void 0:n[0]);u?(a.push(me(c,u)),l&&a.push(fe(l))):a.push(fe(c+(s||0===l.indexOf("://")?"":" ")+l))}else t.text&&a.push(fe(t.text));return a.push(ge("}")),a},e.getNewLineOrDefaultFromHost=(e,t)=>{var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=he,e.mapToDisplayParts=ye,e.typeToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),ye((i=>{e.writeType(t,r,17408|n,i)}))),e.symbolToDisplayParts=(e,t,r,n,i)=>(void 0===i&&(i=0),ye((a=>{e.writeSymbol(t,r,n,8|i,a)}))),e.signatureToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),n|=25632,ye((i=>{e.writeSignature(t,r,n,void 0,i)}))),e.nodeToDisplayParts=(t,r)=>{var n=r.getSourceFile();return ye((r=>{e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}).writeNode(4,t,n,r)}))},e.isImportOrExportSpecifierName=t=>!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t,e.getScriptKind=(t,r)=>e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t)),e.getSymbolTarget=(t,r)=>{for(var n=t;be(n)||ve(n)&&n.target;)n=ve(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=(t,r)=>e.getSymbolId(e.skipAlias(t,r)),e.getFirstNonSpaceCharacterPosition=(t,r)=>{for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=(t,r)=>{for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=xe,e.getSynthesizedDeepCloneWithReplacements=Ee,e.getSynthesizedDeepClones=De,e.getSynthesizedDeepClonesWithReplacements=Te,e.suppressLeadingAndTrailingTrivia=Ce,e.suppressLeadingTrivia=ke,e.suppressTrailingTrivia=Ae,e.copyComments=(e,t)=>{var r=e.getSourceFile();((e,t)=>{for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1})(e,r.text)?Fe(e,t,r):Ie(e,t,r),Pe(e,t,r)},e.getUniqueName=(t,r)=>{for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n="".concat(t,"_").concat(i);return n},e.getRenameLocation=(t,r,n,i)=>{for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var l=c[s],u=l.fileName,d=l.textChanges;e.Debug.assert(u===r);for(var p=0,_=d;p<_.length;p++){var f=_[p],m=f.span,g=f.newText,h=Me(g,n);if(-1!==h&&(o=m.start+a+h,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=Fe,e.copyTrailingComments=Pe,e.copyTrailingAsLeadingComments=Ie,e.needsParentheses=t=>e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression),e.getContextualTypeFromParent=Re,e.quote=(t,r,n)=>{var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Le,e.isStringLiteralOrTemplate=e=>{switch(e.kind){case 10:case 14:case 223:case 210:return!0;default:return!1}},e.hasIndexSignature=e=>!!e.getStringIndexType()||!!e.getNumberIndexType(),e.getSwitchedType=Be,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=(e,t,r,n)=>{var i=r.getTypeChecker(),a=!0,o=()=>a=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,r)=>!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility),reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=Ke,e.syntaxMayBeASICandidate=e.or(je,Ue,Ve,Ke),e.positionIsASICandidate=(t,r,n)=>{var i=e.findAncestor(r,(r=>r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)));return!!i&&((t,r)=>{var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(je(t.kind)){if(n&&27===n.kind)return!1}else if(Ve(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Ue(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ke(t.kind))return!1;if(240===t.kind)return!0;var a=R(t,e.findAncestor(t,(e=>!e.parent)),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line})(i,n)},e.probablyUsesSemicolons=ze,e.tryGetDirectories=(e,t)=>He(e,e.getDirectories,t)||[],e.tryReadDirectory=(t,r,n,i,a)=>He(t,t.readDirectory,r,n,i,a)||e.emptyArray,e.tryFileExists=We,e.tryDirectoryExists=(t,r)=>Je((()=>e.directoryProbablyExists(r,t)))||!1,e.tryAndIgnoreErrors=Je,e.tryIOAndConsumeErrors=He,e.findPackageJsons=(t,r,n)=>{var i=[];return e.forEachAncestorDirectory(t,(t=>{if(t===n)return!0;var a=e.combinePaths(t,"package.json");We(r,a)&&i.push(a)})),i},e.findPackageJson=(t,r)=>{var n;return e.forEachAncestorDirectory(t,(t=>"node_modules"===t||!!(n=e.findConfigFile(t,(e=>We(r,e)),"package.json"))||void 0)),n},e.getPackageJsonsVisibleToFile=$e,e.createPackageJsonInfo=Ge,e.createPackageJsonImportFilter=(t,r,n)=>{var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||$e(t.fileName,n)).filter((e=>e.parseable));return{allowsImportingAmbientModule(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||o(n)||o(i)},allowsImportingSourceFile(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:t=>!(a.length&&!s(t))||!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t)};function o(t){for(var r=l(t),n=0,i=a;n<i.length;n++){var o=i[n];if(o.has(r)||o.has(e.getTypesPackageName(r)))return!0}return!1}function s(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=qe(t)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t,i,a,r);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?"".concat(r[0],"/").concat(r[1]):r[0]}},e.consumesNodeCoreModules=qe,e.isInsideNodeModules=t=>e.contains(e.getPathComponents(t),"node_modules"),e.isDiagnosticWithLocation=Xe,e.findDiagnosticForNode=(t,r)=>{var n=q(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Xe)}},e.getDiagnosticsWithinSpan=(t,r)=>{var n,i=e.binarySearchKey(r,t.start,(e=>e.start),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Xe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=t=>{var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=(t,r)=>{var n=O(t,r.start);return e.findAncestor(n,(n=>n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(n)&&se(r,q(n,t))))},e.mapOneOrMany=(t,r,n)=>(void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0),e.firstOrOnly=t=>e.isArray(t)?e.first(t):t,e.getNamesForExportedSymbol=(t,r)=>{if(Ye(t)){var n=Qe(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(Ze(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(Ze(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=(t,r,n)=>Ye(t)?Qe(t)||e.codefix.moduleSymbolToValidIdentifier(Ze(t),r,!!n):t.name,e.stringContainsAt=(e,t,r)=>{var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=e=>95===e.charCodeAt(0),e.isGlobalDeclaration=e=>!et(e),e.isNonGlobalDeclaration=et,e.isDeprecatedDeclaration=t=>!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)),e.shouldUseUriStyleNodeCoreModules=(t,r)=>{var n=e.firstDefined(t.imports,(t=>{if(e.JsTyping.nodeCoreModules.has(t.text))return e.startsWith(t.text,"node:")}));return null!=n?n:r.usesUriStyleNodeCoreModules},e.getNewLineKind=e=>"\n"===e?1:0,e.diagnosticToString=t=>e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t),e.getFormatCodeSettingsForWriting=(t,r)=>{var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,a=n.semicolons===e.SemicolonPreference.Remove||i&&!ze(r);return m(m({},n),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})},e.jsxModeNeedsExplicitImport=e=>2===e||3===e})(p),(e=>{function t(t){var r,n=1,i=e.createMultiMap(),a=new e.Map,o=new e.Map,s={isUsableByFile:e=>e===r,isEmpty:()=>!i.size,clear(){i.clear(),a.clear(),r=void 0},add(t,c,l,u,d,p,_,f){var m;if(t!==r&&(s.clear(),r=t),d){var g=e.getNodeModulePathParts(d.fileName);if(g){var h=g.topLevelNodeModulesIndex,y=g.topLevelPackageNameIndex,v=g.packageRootIndex;if(m=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(d.fileName.substring(y+1,v))),e.startsWith(t,d.path.substring(0,h))){var b=o.get(m),x=d.fileName.substring(0,y+1);b?h>b.indexOf(e.nodeModulesPathPart)&&o.set(m,x):o.set(m,x)}}}var E=1===p&&e.getLocalSymbolForExportDefault(c)||c,S=0===p||e.isExternalModuleSymbol(E)?e.unescapeLeadingUnderscores(l):e.getNamesForExportedSymbol(E,void 0),D="string"==typeof S?S:S[0],T="string"==typeof S?void 0:S[1],C=e.stripQuotes(u.name),k=n++,A=e.skipAlias(c,f),N=33554432&c.flags?void 0:c,w=33554432&u.flags?void 0:u;N&&w||a.set(k,[c,u]),i.add(((t,r,n,i)=>{var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)})(D,c,e.isExternalModuleNameRelative(C)?void 0:C,f),{id:k,symbolTableKey:l,symbolName:D,capitalizedSymbolName:T,moduleName:C,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:m,exportKind:p,targetFlags:A.flags,isFromPackageJson:_,symbol:N,moduleSymbol:w})},get(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search(n,a,s,l){n===r&&i.forEach(((r,n)=>{var i=(e=>{var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===r?void 0:r}})(n),u=i.symbolName,d=i.ambientModuleName,p=a&&r[0].capitalizedSymbolName||u;if(s(p,r[0].targetFlags)){var _=r.map(c).filter(((n,i)=>((r,n)=>{if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)})(n,r[i].packageName)));_.length&&l(_,p,!!d,n)}}))},releaseSymbols(){a.clear()},onFileChanged:(t,n,i)=>!(l(t)&&l(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!((t,r)=>{if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=a=>{var o=t=>e.isNonGlobalAmbientModule(t)&&t.name.text===a;if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0})(t,n)?(s.clear(),0):(r=n.path,1)))};return e.Debug.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>i}),s;function c(r){if(r.symbol&&r.moduleSymbol)return r;var n=r.id,i=r.exportKind,o=r.targetFlags,s=r.isFromPackageJson,c=r.moduleFileName,l=a.get(n)||e.emptyArray,u=l[0],d=l[1];if(u&&d)return{symbol:u,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var p=(s?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_=r.moduleSymbol||d||e.Debug.checkDefined(r.moduleFile?p.getMergedSymbol(r.moduleFile.symbol):p.tryFindAmbientModule(r.moduleName)),f=r.symbol||u||e.Debug.checkDefined(2===i?p.resolveExternalModuleSymbol(_):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(r.symbolTableKey),_),"Could not find symbol '".concat(r.symbolName,"' by key '").concat(r.symbolTableKey,"' in module ").concat(_.name));return a.set(n,[f,_]),{symbol:f,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function r(t,r,i,a){var o,s;n(t.getTypeChecker(),t.getSourceFiles(),((e,r)=>a(e,r,t,!1)));var c=i&&(null===(o=r.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(r));if(c){var l=e.timestamp();n(c.getTypeChecker(),c.getSourceFiles(),((e,t)=>a(e,t,c,!0))),null===(s=r.log)||void 0===s||s.call(r,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-l))}}function n(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){var o=a[i];e.stringContains(o.name,"*")||n(o,void 0)}for(var s=0,c=r;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&n(t.getMergedSymbol(l.symbol),l)}}function i(e,t,r){var n=((e,t)=>{var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};var n=t.tryGetMemberInModuleExports("default",e);return n?{symbol:n,exportKind:1}:void 0})(e,t);if(n){var i=n.symbol,a=n.exportKind,s=o(i,t,r);return s&&m({symbol:i,exportKind:a},s)}}function a(t,r){return!(r.isUndefinedSymbol(t)||r.isUnknownSymbol(t)||e.isKnownSymbol(t)||e.isPrivateIdentifierSymbol(t))}function o(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,s=(a=t).declarations&&e.firstDefined(a.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==s)return{symbolForMeaning:t,name:s};if(2097152&t.flags){var c=r.getImmediateAliasedSymbol(t);if(c&&c.parent)return o(c,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}var s,c;(c=e.ImportKind||(e.ImportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.Namespace=2]="Namespace",c[c.CommonJS=3]="CommonJS",(s=e.ExportKind||(e.ExportKind={}))[s.Named=0]="Named",s[s.Default=1]="Default",s[s.ExportEquals=2]="ExportEquals",s[s.UMD=3]="UMD",e.createCacheableExportInfoMap=t,e.isImportableFile=(t,r,n,i,a,o,s)=>{var c;if(r===n)return!1;var l=null==s?void 0:s.get(r.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies;var u=e.hostGetCanonicalFileName(o),d=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,o,!1,(i=>{var a=t.getSourceFile(i);return(a===n||!a)&&((t,r,n,i)=>{var a=e.forEachAncestorDirectory(r,(t=>"node_modules"===e.getBaseFileName(t)?t:void 0)),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)})(r.fileName,i,u,d)}));if(a){var _=p&&a.allowsImportingSourceFile(n,o);return null==s||s.setBlockedByPackageJsonDependencies(r.path,n.path,i,{},!_),_}return p},e.forEachExternalModuleToImportFrom=r,e.getExportInfoMap=(n,o,s,c)=>{var l,u,d,p,_,f=e.timestamp();null===(l=o.getPackageJsonAutoImportProvider)||void 0===l||l.call(o);var m=(null===(u=o.getCachedExportInfoMap)||void 0===u?void 0:u.call(o))||t({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider(){var e;return null===(e=o.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(o)},getGlobalTypingsCacheLocation(){var e;return null===(e=o.getGlobalTypingsCacheLocation)||void 0===e?void 0:e.call(o)}});if(m.isUsableByFile(n.path))return null===(d=o.log)||void 0===d||d.call(o,"getExportInfoMap: cache hit"),m;null===(p=o.log)||void 0===p||p.call(o,"getExportInfoMap: cache miss or empty; calculating new results");var g=s.getCompilerOptions(),h=0;try{r(s,o,!0,((t,r,o,s)=>{++h%100==0&&(null==c||c.throwIfCancellationRequested());var l=new e.Map,u=o.getTypeChecker(),d=i(t,u,g);d&&a(d.symbol,u)&&m.add(n.path,d.symbol,1===d.exportKind?"default":"export=",t,r,d.exportKind,s,u),u.forEachExportAndPropertyOfModule(t,((i,o)=>{i!==(null==d?void 0:d.symbol)&&a(i,u)&&e.addToSeen(l,o)&&m.add(n.path,i,o,t,r,0,s,u)}))}))}catch(e){throw m.clear(),e}return null===(_=o.log)||void 0===_||_.call(o,"getExportInfoMap: done in ".concat(e.timestamp()-f," ms")),m},e.getDefaultLikeExportInfo=i})(p),(e=>{e.createClassifier=()=>{var o=e.createScanner(99,!1);function s(i,s,c){var l=0,u=0,d=[],p=(t=>{switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}})(s),_=p.prefix,f=p.pushTemplate;i=_+i;var m=_.length;f&&d.push(15),o.setText(i);var g=0,h=[],y=0;do{l=o.scan(),e.isTrivia(l)||(x(),u=l);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(l),h),v>=i.length){var b=r(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&y++;break;case 31:y>0&&y--;break;case 130:case 150:case 147:case 133:case 151:y>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!((t,r)=>{if(!e.isAccessibilityModifier(t))return!0;switch(r){case 136:case 149:case 134:case 124:return!0;default:return!1}})(u,l))&&(l=79)}}return{endOfLineState:g,spans:h}}return{getClassificationsForLine:(t,r,n)=>((t,r)=>{for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],u=a[s+2];if(o>=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var p=r.length-o;return p>0&&n.push({length:p,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}})(s(t,r,n),t),getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(e=>e),(()=>!0));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if((e=>{switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}})(t)||(e=>{switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}})(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 261:case 257:case 258:case 256:case 226:case 213:case 214:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&((t,r,n)=>{var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)})(u.getStart(n),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&(t=>e.some(t.declarations,(t=>e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t))))(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:l(r[i+2])});return n}function d(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),l=[];return y(r),{spans:l,endOfLineState:0};function u(e,t,r){l.push(e),l.push(t),l.push(r)}function d(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void(e=>{var t,r,n,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,d=e.tags;l<d.length;l++){var f=d[l];f.pos!==c&&p(c,f.pos-c),u(f.pos,1,10),u(f.tagName.pos,f.tagName.end-f.tagName.pos,18),c=f.tagName.end;var m=f.tagName.end;switch(f.kind){case 340:var g=f;b(g),m=g.isNameFirst&&(null===(t=g.typeExpression)||void 0===t?void 0:t.end)||g.name.end;break;case 347:var h=f;m=h.isNameFirst&&(null===(r=h.typeExpression)||void 0===r?void 0:r.end)||h.name.end;break;case 344:_(f),c=f.end,m=f.typeParameters.end;break;case 345:var v=f;m=309===(null===(n=v.typeExpression)||void 0===n?void 0:n.kind)&&(null===(i=v.fullName)||void 0===i?void 0:i.end)||(null===(a=v.typeExpression)||void 0===a?void 0:a.end)||m;break;case 338:m=f.typeExpression.end;break;case 343:y(f.typeExpression),c=f.end,m=f.typeExpression.end;break;case 342:case 339:m=f.typeExpression.end;break;case 341:y(f.typeExpression),c=f.end,m=(null===(o=f.typeExpression)||void 0===o?void 0:o.end)||m;break;case 346:m=(null===(s=f.name)||void 0===s?void 0:s.end)||m;break;case 328:case 329:m=f.class.end}"object"==typeof f.comment?p(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&p(m,f.end-m)}return void(c!==e.end&&p(c,e.end-c));function b(e){e.isNameFirst&&(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),y(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}})(o.jsDoc)}else if(2===n&&((t,n)=>{var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var _=s+d.index+d[1].length;_>l&&(p(l,_-l),l=_),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(p(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(p(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+n;return s<f&&p(s,f-s),!0})(i,a))return;p(i,a)}function p(e,t){u(e,t,1)}function _(e){for(var t=0,r=e.getChildren();t<r.length;t++)y(r[t])}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(u(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=h(t);n&&u(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=(e=>{switch(e.parent&&e.parent.kind){case 280:if(e.parent.tagName===e)return 19;break;case 281:if(e.parent.tagName===e)return 20;break;case 279:if(e.parent.tagName===e)return 21;break;case 285:if(e.parent.name===e)return 22}})(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:(t=>{for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:d(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,l=c.charCodeAt(n);if(60===l||62===l){u(n,o,1);continue}e.Debug.assert(124===l||61===l),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}})(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||h(t.kind,t);o&&u(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(254===n.kind||167===n.kind||164===n.kind||285===n.kind))return 5;if(221===n.kind||219===n.kind||220===n.kind||222===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&285===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 257:return r.parent.name===r?11:void 0;case 163:return r.parent.name===r?15:void 0;case 258:return r.parent.name===r?13:void 0;case 260:return r.parent.name===r?12:void 0;case 261:return r.parent.name===r?14:void 0;case 164:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var l=c[s];g(l)||y(l)}}}}e.getSemanticClassifications=(e,t,r,n,i)=>u(s(e,t,r,n,i)),e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=(e,t,r)=>u(d(e,t,r)),e.getEncodedSyntacticClassifications=d})(p),(e=>{var t;(t=>{function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,o){var s=[];return t&&r&&((t,r,n,o,s)=>{var c=t.getTypeChecker(),u=!1;!function d(p){switch(p.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 214:s.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(n,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var _=u;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(u=!0),e.isJsxExpression(p)&&(u=!1),e.isIdentifier(p)&&!u&&!(t=>{var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))})(p)&&!e.isInfinityOrNaNString(p.escapedText)){var f=c.getSymbolAtLocation(p);if(f){2097152&f.flags&&(f=c.getAliasedSymbol(f));var m=((t,r)=>{var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)})(f,e.getMeaningFromLocation(p));if(void 0!==m){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===m)&&p.parent.name===p&&(g=1),6===m&&a(p)&&(m=9),m=((t,r,n)=>{if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=e=>e(i)||i.isUnion()&&i.types.some(e);if(6!==n&&o((e=>e.getConstructSignatures().length>0)))return 0;if(o((e=>e.getCallSignatures().length>0))&&!o((e=>e.getProperties().length>0))||(t=>{for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t})(r))return 9===n?11:10}}return n})(c,p,m);var h=f.valueDeclaration;if(h){var y=e.getCombinedModifierFlags(h),v=e.getCombinedNodeFlags(h);32&y&&(g|=2),256&y&&(g|=4),0!==m&&2!==m&&(64&y||2&v||8&f.getFlags())&&(g|=8),7!==m&&10!==m||!((t,r)=>(e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r))(h,r)||(g|=32),t.isSourceFileDefaultLibrary(h.getSourceFile())&&(g|=16)}else f.declarations&&f.declarations.some((e=>t.isSourceFileDefaultLibrary(e.getSourceFile())))&&(g|=16);o(p,m,g)}}}e.forEachChild(p,d),u=_}}(r)})(t,r,n,((e,t,n)=>{s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=(t,n,i,a)=>{var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},t.getEncodedSemanticClassifications=r;var l=new e.Map([[254,7],[164,6],[167,9],[261,3],[260,1],[299,8],[257,0],[169,11],[256,10],[213,10],[168,11],[172,9],[173,9],[166,9],[258,2],[259,5],[163,4],[296,9],[297,9]])})((t=e.classifier||(e.classifier={})).v2020||(t.v2020={}))})(p),(e=>{var t;(r=>{function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((e=>{var r=e.name,n=e.kind,a=e.span;return{name:r,kind:n,kindModifiers:i(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:a}}))}}function i(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(t)}}var a,o;function s(r,n,i,a,o,s,d){var p,_,f=c(n.parent);switch(f.kind){case 196:var g=c(f.parent);switch(g.kind){case 178:var h=g,y=e.findAncestor(f,(e=>e.parent===h));return y?{kind:2,types:u(a.getTypeArgumentConstraint(y)),isNewIdentifier:!1}:void 0;case 194:var v=g,b=v.indexType,x=v.objectType;if(!e.rangeContainsPosition(b,i))return;return l(a.getTypeFromTypeNode(x));case 200:return{kind:0,paths:m(r,n,o,s,a,d)};case 187:if(!e.isTypeReferenceNode(g.parent))return;var E=(p=g,_=f,e.mapDefined(p.types,(t=>t!==_&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0)));return{kind:2,types:u(a.getTypeArgumentConstraint(g)).filter((t=>!e.contains(E,t.value))),isNewIdentifier:!1};default:return}case 296:return e.isObjectLiteralExpression(f.parent)&&f.name===n?((r,n)=>{var i=r.getContextualType(n);if(i){var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}})(a,f.parent):k();case 207:var S=f,D=S.expression,T=S.argumentExpression;return n===e.skipParentheses(T)?l(a.getTypeAtLocation(D)):void 0;case 208:case 209:case 285:if(!(t=>e.isCallExpression(t.parent)&&e.firstOrUndefined(t.parent.arguments)===t&&e.isIdentifier(t.parent.expression)&&"require"===t.parent.expression.escapedText)(n)&&!e.isImportCall(f)){var C=e.SignatureHelp.getArgumentInfoForCompletions(285===f.kind?f.parent:n,i,r);return C?((t,r,n,i)=>{var a=!1,o=new e.Map,s=[],c=e.isJsxOpeningLikeElement(t)?e.Debug.checkDefined(e.findAncestor(r.parent,e.isJsxAttribute)):r;return i.getResolvedSignatureForStringLiteralCompletions(t,c,s),{kind:2,types:e.flatMap(s,(r=>{if(e.signatureHasRestParameter(r)||!(n.argumentCount>r.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),u(s,o)}})),isNewIdentifier:a}})(C.invocation,n,C,a):k()}case 266:case 272:case 277:return{kind:0,paths:m(r,n,o,s,a,d)};default:return k()}function k(){return{kind:2,types:u(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function c(t){switch(t.kind){case 191:return e.walkUpParenthesizedTypes(t);case 212:return e.walkUpParenthesizedExpressions(t);default:return t}}function l(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(t=>!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)))),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(e=>u(e,r))):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function d(e,t,r){return{name:e,kind:t,extension:r}}function p(e){return d(e,"directory",void 0)}function _(t,r,n){var i=((t,r)=>{var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)})(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((t=>{var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function m(t,r,n,i,a,o){return _(r.text,r.getStart(t)+1,((t,r,n,i,a,o)=>{var s,c=e.normalizeSlashes(r.text),l=t.path,u=e.getDirectoryPath(l);return(e=>{if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1})(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?((t,r,n,i,a,o)=>{var s=g(n,o);return n.rootDirs?((t,r,n,i,a,o,s)=>{var c=((t,r,n,i)=>{t=t.map((t=>e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))));var a=e.firstDefined(t,(t=>e.containsPath(t,n,r,i)?n.substr(t.length):void 0));return e.deduplicate(f(f([],t.map((t=>e.combinePaths(t,a))),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)})(t,a.project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return e.flatMap(c,(e=>v(r,e,i,o,s)))})(n.rootDirs,t,r,s,n,i,a):v(t,r,s,i,a)})(c,u,n,i,l,(s=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,"js"===o.importModuleSpecifierEnding||s===e.ModuleKind.ESNext?2:0)):((t,r,n,i,a)=>{var o=n.baseUrl,s=n.paths,c=[],l=g(n);if(o){var u=n.project||i.getCurrentDirectory(),p=e.normalizePath(e.combinePaths(u,o));v(t,p,l,i,void 0,c),s&&b(c,t,p,l.extensions,s,i)}for(var _=x(t),f=0,m=((t,r,n)=>{var i=n.getAmbientModules().map((t=>e.stripQuotes(t.name))).filter((r=>e.startsWith(r,t)));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((t=>e.removePrefix(t,a)))}return i})(t,_,a);f<m.length;f++){var y=m[f];c.push(d(y,"external module name",void 0))}if(S(i,n,r,_,l,c),h(n)){var E=!1;if(void 0===_)for(var D=e=>{c.some((t=>t.name===e))||(E=!0,c.push(d(e,"external module name",void 0)))},C=0,k=((t,r)=>{if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,l=T;c<l.length;c++){var u=s[l[c]];if(u)for(var d in u)u.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&n.push(d)}return n})(i,r);C<k.length;C++)D(k[C]);if(!E){var A=r=>{var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&v(t,n,l,i,void 0,c)};if(_&&(t=>e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)(n)){var N=A;A=r=>{var n=e.getPathComponents(t);n.shift();var a=n.shift();if(!a)return N(r);if(e.startsWith(a,"@")){var o=n.shift();if(!o)return N(r);a=e.combinePaths(a,o)}var s=e.combinePaths(r,"node_modules",a,"package.json");if(e.tryFileExists(i,s)){var l=e.readJson(s,i).exports;if(l){if("object"!=typeof l||null===l)return;var u=e.getOwnKeys(l),p=n.join("/"),_=e.mapDefined(u,(t=>{if("."!==t&&e.startsWith(t,"./")){var r=t.substring(2);if(e.startsWith(r,p))return e.stringContains(r,"*")?r.slice(0,r.indexOf("*")):r}}));return void e.forEach(_,(e=>{e&&c.push(d(e,"external module name",void 0))}))}}return N(r)}}e.forEachAncestorDirectory(r,A)}}return c})(c,u,n,i,a)})(t,r,n,i,a,o))}function g(t,r){return void 0===r&&(r=0),{extensions:e.flatten(y(t)),includeExtensionsOption:r}}function h(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext}function y(t){var r=e.getSupportedExtensions(t);return h(t)?e.getSupportedExtensionsWithJsonIfResolveJsonModule(t,r):r}function v(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensionsOption;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=e.resolvePath(r,t),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),_=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var f=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(f){for(var m=new e.Map,g=0,h=f;g<h.length;g++){var y=h[g];if(y=e.normalizePath(y),!a||0!==e.comparePaths(y,a,r,_)){var v=void 0,x=e.moduleSpecifiers.tryGetJSExtensionForFile(y,i.getCompilationSettings());0!==c||e.fileExtensionIsOneOf(y,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(e.fileExtensionIsOneOf(y,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===c)&&x?(v=e.changeExtension(e.getBaseFileName(y),x),m.set(v,x)):(v=e.getBaseFileName(y),m.set(v,e.tryGetExtensionFromPath(y))):(v=e.removeFileExtension(e.getBaseFileName(y)),m.set(v,e.tryGetExtensionFromPath(y)))}}m.forEach(((e,t)=>{o.push(d(t,"script",e))}))}var E=e.tryGetDirectories(i,u);if(E)for(var S=0,D=E;S<D.length;S++){var T=D[S],C=e.getBaseFileName(e.normalizePath(T));"@types"!==C&&o.push(p(C))}var k=e.findPackageJson(u,i);if(k){var A=e.readJson(k,i).typesVersions;if("object"==typeof A){var N=e.getPackageJsonTypesVersionsPaths(A),w=N&&N.paths,F=l.slice(e.ensureTrailingDirectorySeparator(u).length);w&&b(o,F,u,s,w,i)}}return o}function b(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=(e,r,n)=>{t.some((t=>t.name===e))||t.push(d(e,r,n))},u=0,p=E(s,c,r,n,i,o);u<p.length;u++){var _=p[u];l(_.name,_.kind,_.extension)}}}function x(t){return C(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function E(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:l(t);var s=t.slice(0,t.length-1),c=e.tryRemovePrefix(n,s);return void 0===c?l(s):e.flatMap(r,(t=>((t,r,n,i,a)=>{if(a.readDirectory){var o=e.tryParsePattern(n);if(void 0!==o&&!e.isString(o)){var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),l=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),u=C(t),_=u?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,m=u?e.combinePaths(c,l+_):c,g=e.normalizePath(o.suffix),h=e.normalizePath(e.combinePaths(r,m)),y=u?h:e.ensureTrailingDirectorySeparator(h)+l,v=g?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(a,h,i,void 0,[v]),(t=>{var r=e.tryGetExtensionFromPath(t),n=E(t);return void 0===n?void 0:d(e.removeFileExtension(n),"script",r)})),x=e.mapDefined(e.tryGetDirectories(a,h).map((t=>e.combinePaths(h,t))),(e=>{var t=E(e);return void 0===t?void 0:p(t)}));return f(f([],b,!0),x,!0)}}function E(t){var r,n,i,a=(r=e.normalizePath(t),n=y,i=g,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:(t=>t[0]===e.directorySeparator?t.slice(1):t)(a)}})(c,i,t,a,o)));function l(t){return e.startsWith(t,n)?[p(t)]:e.emptyArray}}function S(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((()=>e.getEffectiveTypeRoots(r,t)))||e.emptyArray;c<l.length;c++)f(l[c]);for(var u=0,p=e.findPackageJsons(n,t);u<p.length;u++){var _=p[u];f(e.combinePaths(e.getDirectoryPath(_),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,l=e.tryGetDirectories(t,n);c<l.length;c++){var u=l[c],p=e.unmangleScopedPackageName(u);if(!r.types||e.contains(r.types,p))if(void 0===i)s.has(p)||(o.push(d(p,"external module name",void 0)),s.set(p,!0));else{var _=e.combinePaths(n,u),f=e.tryRemoveDirectoryPrefix(i,p,e.hostGetCanonicalFileName(t));void 0!==f&&v(f,_,a,t,void 0,o)}}}}r.getStringLiteralCompletions=(r,i,a,o,c,l,u,d)=>{if(e.isInReferenceComment(r,i))return(p=((t,r,n,i)=>{var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(e=>r>=e.pos&&r<=e.end));if(s){var c=t.text.slice(s.pos,r),l=D.exec(c);if(l){var u=l[1],d=l[2],p=l[3],f=e.getDirectoryPath(t.path),m="path"===d?v(p,f,g(n,1),i,t.path):"types"===d?S(i,n,f,x(p),g(n)):e.Debug.fail();return _(p,s.pos+u.length,m)}}})(r,i,o,c))&&n(p);if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;var p;return((r,i,a,o,s,c,l,u)=>{if(void 0!==r){var d=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,p,i,i,a,a,o,s,99,c,4,u,l,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:d,entries:p};case 2:return p=r.types.map((r=>({name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}))),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:d,entries:p};default:return e.Debug.assertNever(r)}}})(p=s(r,a,i,l.getTypeChecker(),o,c,d),a,r,c,l,u,o,d)}},r.getStringLiteralCompletionDetails=(r,n,a,o,c,l,u,d,p)=>{if(o&&e.isStringLiteralLike(o)){var _=s(n,o,a,c,l,u,p);return _&&((r,n,a,o,s,c)=>{switch(a.kind){case 0:return(l=e.find(a.paths,(e=>e.name===r)))&&t.createCompletionDetails(r,i(l.extension),l.kind,[e.textPart(r)]);case 1:var l;return(l=e.find(a.symbols,(e=>e.name===r)))&&t.createCompletionDetailsForSymbol(l,s,o,n,c);case 2:return e.find(a.types,(e=>e.value===r))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}})(r,o,_,n,c,d)}},(e=>{e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"})(a||(a={})),(e=>{e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(o||(o={}));var D=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,T=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function C(t){return e.stringContains(t,e.directorySeparator)}})((t=e.Completions||(e.Completions={})).StringCompletions||(t.StringCompletions={}))})(p),function(e){!function(t){var r,n,i,a,o,s;function c(e){return!!(e&&4&e.kind)}function l(e){return!(!e||32!==e.kind)}function u(e){return(c(e)||l(e))&&!!e.isFromPackageJson}function d(e){return!!(e&&64&e.kind)}function p(e){return!!(e&&128&e.kind)}function _(r,n,i,a,o,s,c,l,u){var d,p,_,f=e.timestamp(),m=c||e.moduleResolutionRespectsExports(e.getEmitModuleResolutionKind(a.getCompilerOptions())),g=!1,h=0,y=0,v=0,b=0,x=u({tryResolve(e,r,n){if(n){var a=i.getModuleSpecifierForBestExportInfo(e,r,o,l);return a&&h++,a||"failed"}var c=m||s.allowIncompleteCompletions&&y<t.moduleSpecifierResolutionLimit,u=!c&&s.allowIncompleteCompletions&&b<t.moduleSpecifierResolutionCacheAttemptLimit,d=c||u?i.getModuleSpecifierForBestExportInfo(e,r,o,l,u):void 0;return(!c&&!u||u&&!d)&&(g=!0),y+=(null==d?void 0:d.computedWithoutCacheCount)||0,v+=e.length-((null==d?void 0:d.computedWithoutCacheCount)||0),u&&b++,d||(m?"failed":"skipped")},skippedAny:()=>g,resolvedAny:()=>y>0,resolvedBeyondLimit:()=>y>t.moduleSpecifierResolutionLimit}),E=b?" (".concat((v/b*100).toFixed(1),"% hit rate)"):"";return null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": resolved ").concat(y," module specifiers, plus ").concat(h," ambient and ").concat(v," from cache").concat(E)),null===(p=n.log)||void 0===p||p.call(n,"".concat(r,": response is ").concat(g?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": ").concat(e.timestamp()-f)),x}function f(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function h(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function y(e,t,r){return{kind:4,keywordCompletions:W(e,t),isNewIdentifierLocation:r}}function v(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function b(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function x(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function E(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function S(e,r,n){return{name:E(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function D(n,i,a,o,s,d,_,f,m,g,h,y,v,b,x,E,S,D,C,A,P,I){var O,M,R,L,B,j,U,V,K=e.getReplacementSpanForContextToken(a),z=F(h),W=f.getTypeChecker(),J=h&&(e=>!!(16&e.kind))(h),H=h&&(e=>!!(2&e.kind))(h)||g;if(h&&(e=>!!(1&e.kind))(h))R=g?"this".concat(J?"?.":"","[").concat(N(d,D,m),"]"):"this".concat(J?"?.":".").concat(m);else if((H||J)&&v){R=H?"[".concat(g?N(d,D,m):m,"]"):m,(J||v.questionDotToken)&&(R="?.".concat(R));var $=e.findChildOfKind(v,24,d)||e.findChildOfKind(v,28,d);if(!$)return;var G=e.startsWith(m,v.name.text)?v.name.end:$.end;K=e.createTextSpanFromBounds($.getStart(d),G)}if(b&&(void 0===R&&(R=m),R="{".concat(R,"}"),"boolean"!=typeof b&&(K=e.createTextSpanFromNode(b,d))),h&&(e=>!!(8&e.kind))(h)&&v){void 0===R&&(R=m);var q=e.findPrecedingToken(v.pos,d),X="";q&&e.positionIsASICandidate(q.end,q.parent,d)&&(X=";"),X+="(await ".concat(v.expression.getText(),")"),R=g?"".concat(X).concat(R):"".concat(X).concat(J?"?.":".").concat(R),K=e.createTextSpanFromBounds(v.getStart(d),v.end)}if(l(h)&&(j=[e.textPart(h.moduleSpecifier)],x&&(R=(O=((t,r,n,i,a,o,s)=>{var c,l,u,d=r.getSourceFile(),p=e.createTextSpanFromNode(e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||r,d),_=e.quote(d,s,i.moduleSpecifier),f=i.isDefaultExport?1:"export="===i.exportName?2:0,m=s.includeCompletionsWithSnippetText?"$1":"",g=e.codefix.getImportKind(d,f,o,!0),h=(null===(l=null===(c=e.tryCast(r,e.isImportDeclaration))||void 0===c?void 0:c.importClause)||void 0===l?void 0:l.isTypeOnly)||(null===(u=e.tryCast(r,e.isImportEqualsDeclaration))||void 0===u?void 0:u.isTypeOnly),y=ne(r,n),v=h?" ".concat(e.tokenToString(152)," "):" ",b=y?"".concat(e.tokenToString(152)," "):"",x=a?";":"";switch(g){case 3:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," = require(").concat(_,")").concat(x)};case 1:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," from ").concat(_).concat(x)};case 2:return{replacementSpan:p,insertText:"import".concat(v,"* as ").concat(e.escapeSnippetText(t)," from ").concat(_).concat(x)};case 0:return{replacementSpan:p,insertText:"import".concat(v,"{ ").concat(b).concat(e.escapeSnippetText(t)).concat(m," } from ").concat(_).concat(x)}}})(m,x,o,h,E,S,D)).insertText,K=O.replacementSpan,B=!!D.includeCompletionsWithSnippetText||void 0)),64===(null==h?void 0:h.kind)&&(U=!0),D.includeCompletionsWithClassMemberSnippets&&D.includeCompletionsWithInsertText&&3===C&&((t,r)=>!e.isInJSFile(r)&&!!(106500&t.flags)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent)))(n,s)){var Y=void 0;R=(M=T(_,f,S,D,m,n,s,o,A)).insertText,B=M.isSnippet,Y=M.importAdder,K=M.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==Y?void 0:Y.hasFixes())&&(U=!0,z=r.ClassMemberSnippet)}if(h&&p(h)&&(R=h.insertText,B=h.isSnippet,V=h.labelDetails,D.useLabelDetailsInCompletionEntries||(m+=V.detail,V=void 0),z=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),P&&!I&&D.includeCompletionsWithSnippetText&&D.jsxAttributeCompletionStyle&&"none"!==D.jsxAttributeCompletionStyle){var Q="braces"===D.jsxAttributeCompletionStyle,Z=W.getTypeOfSymbolAtLocation(n,s);"auto"!==D.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,(e=>!!(528&e.flags)))||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,(e=>!!(402686084&e.flags)))?(R="".concat(e.escapeSnippetText(m),"=").concat(e.quote(d,D,"$1")),B=!0):Q=!0),Q&&(R="".concat(e.escapeSnippetText(m),"={$1}"),B=!0)}if(void 0===R||D.includeCompletionsWithInsertText)return(c(h)||l(h))&&(L=k(h),U=!x),{name:m,kind:e.SymbolDisplay.getSymbolKind(W,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(W,n),sortText:i,source:z,hasAction:!!U||void 0,isRecommended:w(n,y,W)||void 0,insertText:R,replacementSpan:K,sourceDisplay:j,labelDetails:V,isSnippet:B,isPackageJsonImport:u(h)||void 0,isImportStatementCompletion:!!x||void 0,data:L}}function T(t,r,n,i,a,o,s,c,l){var u,d,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var _,f=a,m=r.getTypeChecker(),g=s.getSourceFile(),h=C({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),y=e.codefix.createImportAdder(g,r,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var v=e.factory.createEmptyStatement();_=e.factory.createBlock([v],!0),e.setSnippetElement(v,{kind:0,order:0})}else _=e.factory.createBlock([],!0);var b=0,x=(t=>{if(!t)return{modifiers:0};var r,n,i,a=0;return i=t,(n=e.isModifier(i)?i.kind:e.isIdentifier(i)&&i.originalKeywordKind&&e.isModifierKind(i.originalKeywordKind)?i.originalKeywordKind:void 0)&&(a|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t)),e.isPropertyDeclaration(t.parent)&&(a|=e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent)),{modifiers:a,span:r}})(c),E=x.modifiers,S=x.span,D=!!(128&E),T=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,g,{program:r,host:t},i,y,(t=>{var r=0;D&&(r|=128),e.isClassElement(t)&&1===m.getMemberOverrideModifierStatus(p,t)&&(r|=16384),T.length||(b=t.modifierFlagsCache|r|E),t=e.factory.updateModifiers(t,b),T.push(t)}),_,2,D),T.length){var k=131073;d=S,f=l?h.printAndFormatSnippetList(k,e.factory.createNodeArray(T),g,l):h.printSnippetList(k,e.factory.createNodeArray(T),g)}return{insertText:f,isSnippet:u,importAdder:y,replacementSpan:d}}function C(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),a=m(m({},n),{write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))});return{printSnippetList(t,n,i){var a=s(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList(t,n,i,a){var o={text:s(t,n,i),getLineAndCharacterOfPosition(t){return e.getLineAndCharacterOfPosition(this,t)}},c=e.getFormatCodeSettingsForWriting(a,i),l=e.flatMap(n,(t=>{var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,o,i.languageVariant,0,0,m(m({},a),{options:c}))})),u=r?e.stableSort(e.concatenate(l,r),((t,r)=>e.compareTextSpans(t.span,r.span))):l;return e.textChanges.applyChanges(o.text,u)}};function o(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function s(e,t,n){return r=void 0,a.clear(),i.writeList(e,t,n,a),a.getText()}}function k(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return l(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function A(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function N(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function w(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function F(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):l(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function P(r,n,i,a,o,s,c,l,u,_,m,g,h,y,v,b,x,E,S,T,C,k,A,N){for(var w,F,P=e.timestamp(),I=(F=o,e.findAncestor(F,(t=>e.isFunctionBlock(t)||(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t)(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)))),O=e.probablyUsesSemicolons(s),M=l.getTypeChecker(),R=new e.Map,L=0;L<r.length;L++){var B=r[L],j=null==C?void 0:C[L],U=V(B,u,j,m,!!x);if(U&&(!R.get(U.name)||j&&p(j))&&(1!==m||!k||$(B,k))){var K=U.name,z=U.needsConvertPropertyAccess,W=null!==(w=null==k?void 0:k[e.getSymbolId(B)])&&void 0!==w?w:t.SortText.LocationPriority,J=D(B,se(B,M)?t.SortText.Deprecated(W):W,i,a,o,s,c,l,K,z,j,T,b,E,S,O,h,g,m,y,A,N);if(J){var H=(!j||d(j))&&!(void 0===B.parent&&!e.some(B.declarations,(e=>e.getSourceFile()===o.getSourceFile())));R.set(K,H),e.insertSorted(n,J,f,!0)}}}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-P)),{has:e=>R.has(e),add:e=>R.set(e,!0)};function $(r,n){var i=r.flags;if(!e.isSourceFile(o)){if(e.isExportAssignment(o.parent))return!0;if(I&&r.valueDeclaration===I)return!1;var a=e.skipAlias(r,M);if(s.externalModuleIndicator&&!h.allowUmdGlobalAccess&&n[e.getSymbolId(r)]===t.SortText.GlobalsOrKeywords&&(n[e.getSymbolId(a)]===t.SortText.AutoImportSuggestions||n[e.getSymbolId(a)]===t.SortText.LocationPriority))return!1;if(i|=e.getCombinedLocalAndExportSymbolFlags(a),e.isInRightSideOfInternalImportEqualsDeclaration(o))return!!(1920&i);if(v)return oe(r,M)}return!!(111551&i)}}function I(t,n,i,a,o,s,c){if(o.data){var l=U(o.name,o.data,t,s);if(l){var u=j(a,i),d=u.contextToken,p=u.previousToken;return{type:"symbol",symbol:l.symbol,location:e.getTouchingPropertyName(i,a),previousToken:p,contextToken:d,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:l.origin}}}var _=t.getCompilerOptions(),f=B(t,n,i,_,a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!f)return{type:"none"};if(0!==f.kind)return{type:"request",request:f};var m=f.symbols,g=f.literals,h=f.location,y=f.completionKind,v=f.symbolToOriginInfoMap,b=f.contextToken,x=f.previousToken,S=f.isJsxInitializer,D=f.isTypeOnlyLocation,T=e.find(g,(e=>E(i,c,e)===o.name));return void 0!==T?{type:"literal",literal:T}:e.firstDefined(m,((t,n)=>{var i=v[n],a=V(t,e.getEmitScriptTarget(_),i,y,f.isJsxIdentifierExpected);return a&&a.name===o.name&&(o.source===r.ClassMemberSnippet&&106500&t.flags||o.source===r.ObjectLiteralMethodSnippet&&8196&t.flags||F(i)===o.source)?{type:"symbol",symbol:t,location:h,origin:i,contextToken:b,previousToken:x,isJsxInitializer:S,isTypeOnlyLocation:D}:void 0}))||{type:"none"}}function O(t,r,n){return R(t,"",r,[e.displayPart(t,n)])}function M(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(r=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7))),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return R(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),d,l,u,p,o,s)}function R(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function L(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&((e=>{var t;return!!(null===(t=e.declarations)||void 0===t?void 0:t.some((e=>305===e.kind)))})(t.parent)?t:L(t.parent,r,n))}function B(r,n,i,a,o,s,c,l,u,d){var p=r.getTypeChecker(),f=b(i,a),g=e.timestamp(),h=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-g)),g=e.timestamp();var v=e.isInComment(i,o,h);n("getCompletionData: Is inside comment: "+(e.timestamp()-g));var x=!1,E=!1;if(v){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var S=e.getLineStartPositionForPosition(o,i);if(!/[^\*|\s(/)]/.test(i.text.substring(S,o)))return{kind:2}}var D=((t,r)=>e.findAncestor(t,(t=>!(!e.isJSDocTag(t)||!e.rangeContainsPosition(t,r))||!!e.isJSDoc(t)&&"quit")))(h,o);if(D){if(D.tagName.pos<=o&&o<=D.tagName.end)return{kind:1};var T=(t=>{if((e=>{switch(e.kind){case 340:case 347:case 341:case 343:case 345:return!0;case 344:return!!e.constraint;default:return!1}})(t)){var r=e.isJSDocTemplateTag(t)?t.constraint:t.typeExpression;return r&&309===r.kind?r:void 0}})(D);if(T&&((h=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(h)||347===h.parent.kind&&h.parent.name===h)||(x=Le(T))),!x&&e.isJSDocParameterTag(D)&&(e.nodeIsMissing(D.name)||D.name.pos<=o&&o<=D.name.end))return{kind:3,tag:D}}if(!x)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}g=e.timestamp();var k=!x&&e.isSourceFileJS(i),A=j(o,i),N=A.previousToken,w=A.contextToken;n("getCompletionData: Get previous token: "+(e.timestamp()-g));var F,P,I,O=h,M=!1,R=!1,B=!1,U=!1,K=!1,z=!1,W=e.getTouchingPropertyName(i,o),J=0,G=!1,Y=0;if(w){var ie=re(w);if(G=ie.isNewIdentifierLocation,ie.keywordCompletion){if(ie.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(I=ie.keywordCompletion,{name:e.tokenToString(I),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})],isNewIdentifierLocation:G};J=(t=>{switch(t){case 152:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}})(ie.keywordCompletion)}if(ie.replacementNode&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(P=ie.replacementNode,Y|=2),!P&&(t=>{var r=e.timestamp(),a=(t=>(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),o)||o===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t))))(t)||(t=>{var r=t.parent,n=r.kind;switch(t.kind){case 27:return 254===n||(t=>255===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,p))(t)||237===n||260===n||Ie(n)||258===n||202===n||259===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 202===n;case 58:return 203===n;case 22:return 202===n;case 20:return 292===n||Ie(n);case 18:return 260===n;case 29:return 257===n||226===n||258===n||259===n||e.isFunctionLikeKind(n);case 124:return 167===n&&!e.isClassLike(r.parent);case 25:return 164===n||!!r.parent&&202===r.parent.kind;case 123:case 121:case 122:return 164===n&&!e.isConstructorDeclaration(r.parent);case 127:return 270===n||275===n||268===n;case 136:case 149:return!ee(t);case 79:if(270===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 152:return 270!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if($(q(t))&&ee(t))return!1;if(Fe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(q(t))||Le(t)))return!1;switch(q(t)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===N&&Pe(t,o))return!1;var a=e.getAncestor(t.parent,167);if(a&&t!==N&&e.isClassLike(N.parent.parent)&&o<=N.end){if(Pe(t,N.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(a)||e.hasType(a)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==N||o>N.end))})(t)||(e=>{if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1})(t)||(e=>{if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(W===e.parent&&(280===W.kind||279===W.kind))return!1;if(280===e.parent.kind)return 280!==W.parent.kind;if(281===e.parent.kind||279===e.parent.kind)return!!e.parent.parent&&278===e.parent.parent.kind}return!1})(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a})(w))return n("Returning an empty list because completion was requested in an invalid position."),J?y(J,k,we()):void 0;var ae=w.parent;if(24===w.kind||28===w.kind)switch(M=24===w.kind,R=28===w.kind,ae.kind){case 206:O=(F=ae).expression;var se=e.getLeftmostAccessExpression(F);if(e.nodeIsMissing(se)||(e.isCallExpression(O)||e.isFunctionLike(O))&&O.end===w.pos&&O.getChildCount(i)&&21!==e.last(O.getChildren(i)).kind)return;break;case 161:O=ae.left;break;case 261:O=ae.name;break;case 200:O=ae;break;case 231:O=ae.getFirstToken(i),e.Debug.assert(100===O.kind||103===O.kind);break;default:return}else if(!P&&1===i.languageVariant){if(ae&&206===ae.kind&&(w=ae,ae=ae.parent),h.parent===W)switch(h.kind){case 31:278!==h.parent.kind&&280!==h.parent.kind||(W=h);break;case 43:279===h.parent.kind&&(W=h)}switch(ae.kind){case 281:43===w.kind&&(U=!0,W=w);break;case 221:if(!te(ae))break;case 279:case 278:case 280:z=!0,29===w.kind&&(B=!0,W=w);break;case 288:case 287:19===N.kind&&31===h.kind&&(z=!0);break;case 285:if(ae.initializer===N&&N.end<o){z=!0;break}switch(N.kind){case 63:K=!0;break;case 79:z=!0,ae!==N.parent&&!ae.initializer&&e.findChildOfKind(ae,63,i)&&(K=N)}}}}var le,ue=e.timestamp(),de=5,pe=!1,_e=!1,fe=[],me=[],ge=[],he=new e.Map,ye=x||!!P&&e.isTypeOnlyImportOrExportDeclaration(W.parent)||!(t=>t&&(112===t.kind&&(181===t.parent.kind||e.isTypeOfExpression(t.parent))||128===t.kind&&177===t.parent.kind))(w)&&(e.isPossiblyTypeArgumentPosition(w,i,p)||e.isPartOfTypeNode(W)||(t=>{if(t){var r=t.parent.kind;switch(t.kind){case 58:return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r);case 63:return 259===r;case 127:return 229===r;case 29:return 178===r||211===r;case 94:return 163===r}}return!1})(w)),ve=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?l.getPackageJsonAutoImportProvider():r,l)));if(M||R)!(()=>{de=2;var t,r,n=e.isLiteralImportTypeNode(O),a=x||n&&!O.isTypeOf||e.isPartOfTypeNode(O.parent)||e.isPossiblyTypeArgumentPosition(w,i,p),o=e.isInRightSideOfInternalImportEqualsDeclaration(O);if(e.isEntityName(O)||n||e.isPropertyAccessExpression(O)){var c=e.isModuleDeclaration(O.parent);c&&(G=!0);var l=p.getSymbolAtLocation(O);if(l&&1920&(l=e.skipAlias(l,p)).flags){var u=p.getExportsOfModule(l);e.Debug.assertEachIsDefined(u,"getExportsOfModule() should all be defined");for(var d=e=>p.isValidPropertyAccess(n?O:O.parent,e.name),_=e=>oe(e,p),f=c?e=>{var t;return!!(1920&e.flags)&&!(null===(t=e.declarations)||void 0===t?void 0:t.every((e=>e.parent===O.parent)))}:o?e=>_(e)||d(e):a?_:d,m=0,g=u;m<g.length;m++){var h=g[m];f(h)&&fe.push(h)}if(!a&&l.declarations&&l.declarations.some((e=>305!==e.kind&&261!==e.kind&&260!==e.kind))){var y=!1;(t=p.getTypeOfSymbolAtLocation(l,O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==s.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(y=!0)),Te(t,!!(32768&O.flags),y)}return}}a||(p.tryGetThisTypeAt(O,!1),y=!1,(t=p.getTypeAtLocation(O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==s.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(y=!0)),Te(t,!!(32768&O.flags),y))})();else if(B)fe=p.getJsxIntrinsicTagNamesAt(W),e.Debug.assertEachIsDefined(fe,"getJsxIntrinsicTagNames() should all be defined"),Ae(),de=1,J=0;else if(U){var be=w.parent.parent.openingElement.tagName,xe=p.getSymbolAtLocation(be);xe&&(fe=[xe]),de=1,J=0}else if(!Ae())return J?y(J,k,G):void 0;n("getCompletionData: Semantic work: "+(e.timestamp()-ue));var Ee=N&&((t,r,n,i)=>{var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 254:return i.getContextualType(a.initializer);case 221:return i.getTypeAtLocation(a.left);case 285:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:var o=e.tryCast(a,e.isCaseClause);return o?e.getSwitchedType(o,i):void 0;case 18:return!e.isJsxExpression(a)||e.isJsxElement(a.parent)||e.isJsxFragment(a.parent)?void 0:i.getContextualTypeForJsxAttribute(a.parent);default:var s=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return s?i.getContextualTypeForArgumentAtIndex(s.invocation,s.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}})(N,o,i,p),Se=e.mapDefined(Ee&&(Ee.isUnion()?Ee.types:[Ee]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),De=N&&Ee&&((t,r,n)=>e.firstDefined(r&&(r.isUnion()?r.types:[r]),(r=>{var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?L(i,t,n):void 0})))(N,Ee,p);return{kind:0,symbols:fe,completionKind:de,isInSnippetScope:E,propertyAccessToConvert:F,isNewIdentifierLocation:G,location:W,keywordFilters:J,literals:Se,symbolToOriginInfoMap:me,recommendedCompletion:De,previousToken:N,contextToken:w,isJsxInitializer:K,insideJsDocTagTypeExpression:x,symbolToSortTextMap:ge,isTypeOnlyLocation:ye,isJsxIdentifierExpected:z,isRightOfOpenTag:B,importCompletionNode:P,hasUnresolvedAutoImports:_e,flags:Y};function Te(t,r,n){G=!!t.getStringIndexType(),R&&e.some(t.getCallSignatures())&&(G=!0);var i=200===O.kind?O:O.parent;if(f)fe.push.apply(fe,e.filter(Q(t,p),(e=>p.isValidPropertyAccessForCompletions(i,t,e))));else for(var a=0,o=t.getApparentProperties();a<o.length;a++){var c=o[a];p.isValidPropertyAccessForCompletions(i,t,c)&&Ce(c,!1,n)}if(r&&s.includeCompletionsWithInsertText){var l=p.getPromisedTypeOfPromise(t);if(l)for(var u=0,d=l.getApparentProperties();u<d.length;u++)c=d[u],p.isValidPropertyAccessForCompletions(i,l,c)&&Ce(c,!0,n)}}function Ce(n,a,c){var u,d=e.firstDefined(n.declarations,(t=>e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)));if(d){var _=ke(d.expression),f=_&&p.getSymbolAtLocation(_),m=f&&L(f,w,p);if(m&&e.addToSeen(he,e.getSymbolId(m))){var g=fe.length;fe.push(m);var h=m.parent;if(h&&e.isExternalModuleSymbol(h)&&p.tryGetMemberInModuleExportsAndProperties(m.name,h)===m){var y=e.isExternalModuleNameRelative(e.stripQuotes(h.name))?null===(u=e.getSourceFileOfModule(h))||void 0===u?void 0:u.fileName:void 0,v=((le||(le=e.codefix.createImportSpecifierResolver(i,r,l,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:y,isFromPackageJson:!1,moduleSymbol:h,symbol:m,targetFlags:e.skipAlias(m,p).flags}],m.name,o,e.isValidTypeOnlyAliasUseSite(W))||{}).moduleSpecifier;if(v){var b={kind:S(6),moduleSymbol:h,isDefaultExport:!1,symbolName:m.name,exportName:m.name,fileName:y,moduleSpecifier:v};me[g]=b}}else me[g]={kind:S(2)}}else s.includeCompletionsWithInsertText&&(E(n),x(n),fe.push(n))}else E(n),x(n),fe.push(n);function x(r){(t=>!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent)))(r)&&(ge[e.getSymbolId(r)]=t.SortText.LocalDeclarationPriority)}function E(t){s.includeCompletionsWithInsertText&&(a&&e.addToSeen(he,e.getSymbolId(t))?me[fe.length]={kind:S(8)}:c&&(me[fe.length]={kind:16}))}function S(e){return c?16|e:e}}function ke(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?ke(t.expression):void 0}function Ae(){return 1===((()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:if(e.isTypeLiteralNode(r))return r;break;case 26:case 27:case 79:if(166===r.kind&&e.isTypeLiteralNode(r.parent))return r.parent}}})(w);if(!t)return 0;var r=(e.isIntersectionTypeNode(t.parent)?t.parent:void 0)||t,n=Z(r,p);if(!n)return 0;var i=p.getTypeFromTypeNode(r),a=Q(n,p),o=Q(i,p),s=new e.Set;return o.forEach((e=>s.add(e.escapedName))),fe=e.concatenate(fe,e.filter(a,(e=>!s.has(e.escapedName)))),de=0,G=!0,1})()||(()=>{var n,i,o,c,d=fe.length,_=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}})(w);if(!_)return 0;if(de=0,205===_.kind){var f=((t,r)=>{var n=r.getContextualType(t);if(n)return n;var i=e.walkUpParenthesizedExpressions(t.parent);return e.isBinaryExpression(i)&&63===i.operatorToken.kind&&t===i.left?r.getTypeAtLocation(i):e.isExpression(i)?r.getContextualType(i):void 0})(_,p);if(void 0===f)return 33554432&_.flags?2:(pe=!0,0);var g=p.getContextualType(_,4),h=(g||f).getStringIndexType(),y=(g||f).getNumberIndexType();if(G=!!h||!!y,n=X(f,g,_,p),i=_.properties,0===n.length&&!y)return pe=!0,0}else{e.Debug.assert(201===_.kind),G=!1;var v=e.getRootDeclaration(_.parent);if(!e.isVariableLike(v))return e.Debug.fail("Root declaration is not variable-like.");var b=e.hasInitializer(v)||!!e.getEffectiveTypeAnnotationNode(v)||244===v.parent.parent.kind;if(b||164!==v.kind||(e.isExpression(v.parent)?b=!!p.getContextualType(v.parent):169!==v.parent.kind&&173!==v.parent.kind||(b=e.isExpression(v.parent.parent)&&!!p.getContextualType(v.parent.parent))),b){var x=p.getTypeAtLocation(_);if(!x)return 2;n=p.getPropertiesOfType(x).filter((e=>p.isPropertyAccessible(_,!1,!1,x,e))),i=_.elements}}if(n&&n.length>0){var E=((t,r)=>{if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((296===s.kind||297===s.kind||203===s.kind||169===s.kind||172===s.kind||173===s.kind||298===s.kind)&&!Le(s)){var c=void 0;if(e.isSpreadAssignment(s))Oe(s,n);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var u=t.filter((e=>!i.has(e.escapedName)));return Re(n,u),u})(n,e.Debug.checkDefined(i));fe=e.concatenate(fe,E),Me(),205===_.kind&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&((r=>{for(var n,i=r;i<fe.length;i++){var o=fe[i],s=e.getSymbolId(o),c=null==me?void 0:me[i],l=V(o,e.getEmitScriptTarget(a),c,0,!1);if(l){var u=null!==(n=ge[s])&&void 0!==n?n:t.SortText.LocationPriority,d=l.name;ge[s]=t.SortText.ObjectLiteralProperty(u,d)}}})(d),o=E,c=_,e.isInJSFile(W)||o.forEach((t=>{if(8196&t.flags){var n=V(t,e.getEmitScriptTarget(a),void 0,0,!1);if(n){var i=((t,r,n,i,a,o,s,c)=>{var l=s.includeCompletionsWithSnippetText||void 0,u=r,d=n.getSourceFile(),p=((t,r,n,i,a,o)=>{var s=t.getDeclarations();if(s&&s.length){var c=i.getTypeChecker(),l=s[0],u=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l),!1),d=c.getWidenedType(c.getTypeOfSymbolAtLocation(t,r)),p=0===e.getQuotePreference(n,o)?268435456:void 0;switch(l.kind){case 166:case 167:case 168:case 169:var _=1048576&d.flags&&d.types.length<10?c.getUnionType(d.types,2):d;if(1048576&_.flags){var f=e.filter(_.types,(e=>c.getSignaturesOfType(e,0).length>0));if(1!==f.length)return;_=f[0]}if(1!==c.getSignaturesOfType(_,0).length)return;var m=c.typeToTypeNode(_,r,p,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var g=void 0;if(o.includeCompletionsWithSnippetText){var h=e.factory.createEmptyStatement();g=e.factory.createBlock([h],!0),e.setSnippetElement(h,{kind:0,order:0})}else g=e.factory.createBlock([],!0);var y=m.parameters.map((t=>e.factory.createParameterDeclaration(void 0,void 0,t.dotDotDotToken,t.name,t.questionToken,void 0,t.initializer)));return e.factory.createMethodDeclaration(void 0,void 0,void 0,u,void 0,void 0,y,void 0,g);default:return}}})(t,n,d,i,a,s);if(p){var _=C({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?_.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),d,c):_.printSnippetList(80,e.factory.createNodeArray([p],!0),d);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),m=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:u,labelDetails:{detail:f.printNode(4,m,d)}}}})(t,n.name,c,r,l,a,s,u);if(i){var o=m({kind:128},i);Y|=32,me[fe.length]=o,fe.push(t)}}}})))}return 1})()||(P?(G=!0,Ne(),1):0)||(()=>{if(!w)return 0;var t=18===w.kind||27===w.kind?e.tryCast(w.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(w)?e.tryCast(w.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(w)||(J=8);var r=(269===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return G=!0,269===t.kind?2:0;var n=p.getSymbolAtLocation(r);if(!n)return G=!0,2;de=3,G=!1;var i=p.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((e=>!Le(e))).map((e=>(e.propertyName||e.name).escapedText))),o=i.filter((e=>"default"!==e.escapedName&&!a.has(e.escapedName)));return fe=e.concatenate(fe,o),o.length||(J=0),1})()||(()=>{var r,n=!w||18!==w.kind&&27!==w.kind?void 0:e.tryCast(w.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return de=5,G=!1,null===(r=i.locals)||void 0===r||r.forEach(((r,n)=>{var a,o;fe.push(r),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(ge[e.getSymbolId(r)]=t.SortText.OptionalMember)})),1})()||((t=>{if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(Fe(t))return r.parent}}})(w)?(de=5,G=!0,J=4,1):0)||(()=>{var t=((t,r,n,i)=>{switch(n.kind){case 348:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(ee(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(134===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return ee(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!ee(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?$:H;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}})(i,w,W,o);if(!t)return 0;if(de=3,G=!0,J=41===w.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===w.kind?w.parent.parent:w.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===w.kind&&!Le(w))switch(w.getText()){case"private":n|=8;break;case"static":n|=32;break;case"override":n|=16384}if(e.isClassStaticBlockDeclaration(r)&&(n|=32),!(8&n)){var a=e.isClassLike(t)&&16384&n?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),s=e.flatMap(a,(e=>{var r=p.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&p.getPropertiesOfType(p.getTypeOfSymbolAtLocation(r.symbol,t)):r&&p.getPropertiesOfType(r)}));fe=e.concatenate(fe,((t,r,n)=>{for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if(!(167!==s.kind&&169!==s.kind&&172!==s.kind&&173!==s.kind||Le(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((t=>!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))))})(s,t.members,n))}return 1})()||(()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 206:case 286:case 285:case 287:if(r&&(279===r.kind||280===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(285===r.kind)return r.parent.parent;break;case 10:if(r&&(285===r.kind||287===r.kind))return r.parent.parent;break;case 19:if(r&&288===r.kind&&r.parent&&285===r.parent.kind)return r.parent.parent.parent;if(r&&287===r.kind)return r.parent.parent}}})(w),r=t&&p.getContextualType(t.attributes);if(!r)return 0;var n=t&&p.getContextualType(t.attributes,4);return fe=e.concatenate(fe,((t,r)=>{for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];Le(s)||(285===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&Oe(s,i))}var c=t.filter((e=>!n.has(e.escapedName)));return Re(i,c),c})(X(r,n,t.attributes,p),t.attributes.properties)),Me(),de=3,G=!1,1})()||((()=>{J=(t=>{if(t){var r,n=e.findAncestor(t.parent,(t=>e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)));return n&&n}})(w)?5:1,de=1,G=we(),N!==w&&e.Debug.assert(!!N,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=N!==w?N.getStart():o,n=((t,r,n)=>{for(var i=t;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i})(w,r,i)||i;E=(t=>{switch(t.kind){case 305:case 223:case 288:case 235:return!0;default:return e.isStatement(t)}})(n);var a=2887656|(ye?0:111551),c=N&&!e.isValidTypeOnlyAliasUseSite(N);fe=e.concatenate(fe,p.getSymbolsInScope(n,a)),e.Debug.assertEachIsDefined(fe,"getSymbolsInScope() should all be defined");for(var l=0;l<fe.length;l++){var u=fe[l];if(p.isArgumentsSymbol(u)||e.some(u.declarations,(e=>e.getSourceFile()===i))||(ge[e.getSymbolId(u)]=t.SortText.GlobalsOrKeywords),c&&!(111551&u.flags)){var d=u.declarations&&e.find(u.declarations,e.isTypeOnlyImportOrExportDeclaration);if(d){var _={kind:64,declaration:d};me[l]=_}}}if(s.includeCompletionsWithInsertText&&305!==n.kind){var f=p.tryGetThisTypeAt(n,!1);if(f&&!((e,t,r)=>{var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);return!(!a||r.getTypeOfSymbolAtLocation(a,t)!==e)})(f,i,p))for(var m=0,g=Q(f,p);m<g.length;m++)u=g[m],me[fe.length]={kind:1},fe.push(u),ge[e.getSymbolId(u)]=t.SortText.SuggestedClassMembers}Ne(),ye&&(J=w&&e.isAssertionExpression(w.parent)?6:7)})(),1))}function Ne(){var n,a;if((P||!pe&&s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(r.getCompilerOptions())||e.programContainsModules(r)))&&(e.Debug.assert(!(null==c?void 0:c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!c||c.source)){Y|=1;var u=N===w&&P&&ne(P,w)?"":N&&e.isIdentifier(N)?N.text.toLowerCase():"",p=null===(n=l.getModuleSpecifierCache)||void 0===n?void 0:n.call(l),f=e.getExportInfoMap(i,l,r,d),m=null===(a=l.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(l),g=c?void 0:e.createPackageJsonImportFilter(i,s,l);_("collectAutoImports",l,le||(le=e.codefix.createImportSpecifierResolver(i,r,l,s)),r,o,s,!!P,e.isValidTypeOnlyAliasUseSite(W),(r=>{f.search(i.path,B,((t,r)=>{if(!e.isIdentifierText(t,e.getEmitScriptTarget(l.getCompilationSettings())))return!1;if(!c&&e.isStringANonContextualKeyword(t))return!1;if(!(ye||P||111551&r))return!1;if(ye&&!(790504&r))return!1;var n=t.charCodeAt(0);return(!B||!(n<65||n>90))&&(!!c||ce(t,u))}),((n,i,a,o)=>{var s,l,u,d;if(!c||e.some(n,(t=>c.source===e.stripQuotes(t.moduleSymbol.name)))){var p=e.find(n,h);if(p){var _=r.tryResolve(n,i,a)||{};if("failed"!==_){var f,m=p;"skipped"!==_&&(m=void 0===(s=_.exportInfo)?p:s,f=_.moduleSpecifier);var g=1===m.exportKind;l=g&&e.getLocalSymbolForExportDefault(m.symbol)||m.symbol,u={kind:f?32:4,moduleSpecifier:f,symbolName:i,exportMapKey:o,exportName:2===m.exportKind?"export=":m.symbol.name,fileName:m.moduleFileName,isDefaultExport:g,moduleSymbol:m.moduleSymbol,isFromPackageJson:m.isFromPackageJson},d=e.getSymbolId(l),ge[d]!==t.SortText.GlobalsOrKeywords&&(me[fe.length]=u,ge[d]=P?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,fe.push(l))}}}})),_e=r.skippedAny(),Y|=r.resolvedAny()?8:0,Y|=r.resolvedBeyondLimit()?16:0}))}function h(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!g||g.allowsImportingAmbientModule(t.moduleSymbol,ve(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?m:r,i,n,s,g,ve(t.isFromPackageJson),p)}}function we(){if(w){var e=w.parent.kind,t=q(w);switch(t){case 27:return 208===e||171===e||209===e||204===e||221===e||179===e||205===e;case 20:return 208===e||171===e||209===e||212===e||191===e;case 22:return 204===e||176===e||162===e;case 141:case 142:case 100:return!0;case 24:return 261===e;case 18:return 257===e||205===e;case 63:return 254===e||221===e;case 15:return 223===e;case 16:return 233===e;case 131:return 169===e||297===e;case 41:return 169===e}if($(t))return!0}return!1}function Fe(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Pe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function Ie(t){return e.isFunctionLikeKind(t)&&171!==t}function Oe(e,t){var r=e.expression,n=p.getSymbolAtLocation(r),i=n&&p.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((e=>{t.add(e.name)}))}function Me(){fe.forEach((r=>{var n;if(16777216&r.flags){var i=e.getSymbolId(r);ge[i]=null!==(n=ge[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Re(r,n){if(0!==r.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];r.has(o.name)&&(ge[e.getSymbolId(o)]=t.SortText.MemberDeclaredBySpreadAssignment)}}function Le(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function j(t,r){var n=e.findPrecedingToken(t,r);return n&&t<=n.end&&(e.isMemberName(n)||e.isKeyword(n.kind))?{contextToken:e.findPrecedingToken(n.getFullStart(),r,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function U(t,r,n,i){var a=r.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=a.getTypeChecker(),s=r.ambientModuleName?o.tryFindAmbientModule(r.ambientModuleName):r.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(r.fileName)).symbol):void 0;if(s){var c="export="===r.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(r.exportName,s);if(c)return{symbol:c="default"===r.exportName&&e.getLocalSymbolForExportDefault(c)||c,origin:A(r,t,s)}}}function V(t,r,n,i,a){var o=(e=>c(e)||l(e))(n)?n.symbolName:t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}t.moduleSpecifierResolutionLimit=100,t.moduleSpecifierResolutionCacheAttemptLimit=1e3,t.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>"".concat(e,"\0").concat(t,"\0"),SortBelow:e=>e+"1"},(e=>{e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/"})(r=t.CompletionSource||(t.CompletionSource={})),(e=>{e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"})(n||(n={})),(e=>{e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.TypeKeyword=8]="TypeKeyword",e[e.Last=8]="Last"})(i||(i={})),(e=>{e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"})(a||(a={})),t.getCompletionsAtPosition=(r,n,i,a,o,s,c,l,u,d)=>{var p,y=j(o,a).previousToken;if(!c||e.isInString(a,o,y)||((t,r,n,i)=>{switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||te(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));case" ":return!!n&&e.isImportKeyword(n)&&305===n.parent.kind;default:return e.Debug.assertNever(r)}})(a,c,y,o)){if(" "===c)return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var E=n.getCompilerOptions(),D=s.allowIncompleteCompletions?null===(p=r.getIncompleteCompletionsCache)||void 0===p?void 0:p.call(r):void 0;if(D&&3===l&&y&&e.isIdentifier(y)){var T=((t,r,n,i,a,o,s)=>{var c=t.get();if(c){var l=n.text.toLowerCase(),u=e.getExportInfoMap(r,a,i,s),d=_("continuePreviousIncompleteResponse",a,e.codefix.createImportSpecifierResolver(r,i,a,o),i,n.getStart(),o,!1,e.isValidTypeOnlyAliasUseSite(n),(t=>{var n=e.mapDefined(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||g(n.data))return n;if(ce(n.name,l)){var s=e.Debug.checkDefined(U(n.name,n.data,i,a)).origin,c=u.get(r.path,n.data.exportMapKey),d=c&&t.tryResolve(c,n.name,!e.isExternalModuleNameRelative(e.stripQuotes(s.moduleSymbol.name)));if("skipped"===d)return n;if(d&&"failed"!==d){var p=m(m({},s),{kind:32,moduleSpecifier:d.moduleSpecifier});return n.data=k(p),n.source=F(p),n.sourceDisplay=[e.textPart(p.moduleSpecifier)],n}null===(o=a.log)||void 0===o||o.call(a,"Unexpected failure resolving auto import for '".concat(n.name,"' from '").concat(n.source,"'"))}}));return t.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c}})(D,a,y,n,r,s,u);if(T)return T}else null==D||D.clear();var C=t.StringCompletions.getStringLiteralCompletions(a,o,y,E,r,n,i,s);if(C)return C;if(y&&e.isBreakOrContinueStatement(y.parent)&&(81===y.kind||86===y.kind||79===y.kind))return(r=>{var n=(r=>{for(var n=[],i=new e.Map,a=r;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:t.SortText.LocationPriority}))}a=a.parent}return n})(r);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}})(y.parent);var A,N=B(n,i,a,E,o,s,void 0,r,d,u);if(N)switch(N.kind){case 0:var w=((r,n,i,a,o,s,c,l,u)=>{var d=s.symbols,p=s.contextToken,_=s.completionKind,m=s.isInSnippetScope,g=s.isNewIdentifierLocation,h=s.location,y=s.propertyAccessToConvert,E=s.keywordFilters,D=s.literals,T=s.symbolToOriginInfoMap,C=s.recommendedCompletion,k=s.isJsxInitializer,A=s.isTypeOnlyLocation,N=s.isJsxIdentifierExpected,w=s.isRightOfOpenTag,F=s.importCompletionNode,I=s.insideJsDocTagTypeExpression,O=s.symbolToSortTextMap,M=s.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(r.scriptKind)){var R=((r,n)=>{var i=e.findAncestor(r,(e=>{switch(e.kind){case 281:return!0;case 43:case 31:case 79:case 206:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,n),o=i.parent.openingElement.tagName.getText(n)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}})(h,r);if(R)return R}var L=e.createSortedArray();if(b(r,a)){var B=P(d,L,void 0,p,h,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,A,y,N,k,F,C,T,O,N,w);!((r,n,i,a,o)=>{e.getNameTable(r).forEach(((r,s)=>{if(r!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),e.insertSorted(o,{name:c,kind:"warning",kindModifiers:"",sortText:t.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},f))}}))})(r,h.pos,B,e.getEmitScriptTarget(a),L)}else{if(!(g||d&&0!==d.length||0!==E))return;P(d,L,void 0,p,h,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,A,y,N,k,F,C,T,O,N,w)}if(0!==E)for(var j=new e.Set(L.map((e=>e.name))),U=0,V=W(E,!I&&e.isSourceFileJS(r));U<V.length;U++){var K=V[U];(A&&e.isTypeKeyword(e.stringToToken(K.name))||!j.has(K.name))&&e.insertSorted(L,K,f,!0)}for(var z=new e.Set(L.map((e=>e.name))),J=0,H=((r,n)=>{var i=[];if(r){var a=r.getSourceFile(),o=r.parent,s=a.getLineAndCharacterOfPosition(r.end).line,c=a.getLineAndCharacterOfPosition(n).line;(e.isImportDeclaration(o)||e.isExportDeclaration(o)&&o.moduleSpecifier)&&r===o.moduleSpecifier&&s===c&&i.push({name:e.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})}return i})(p,u);J<H.length;J++)K=H[J],z.has(K.name)||e.insertSorted(L,K,f,!0);for(var $=0,G=D;$<G.length;$++){var q=G[$];e.insertSorted(L,S(r,c,q),f,!0)}return{flags:s.flags,isGlobalCompletion:m,isIncomplete:!(!c.allowIncompleteCompletions||!M)||void 0,isMemberCompletion:x(_),isNewIdentifierLocation:g,optionalReplacementSpan:v(h),entries:L}})(a,r,n,E,i,N,s,d,o);return(null==w?void 0:w.isIncomplete)&&(null==D||D.set(w)),w;case 1:return h(e.JsDoc.getJSDocTagNameCompletions());case 2:return h(e.JsDoc.getJSDocTagCompletions());case 3:return h(e.JsDoc.getJSDocParameterNameCompletions(N.tag));case 4:return A=N.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:N.isNewIdentifierLocation,entries:A.slice()};default:return e.Debug.assertNever(N)}}},t.getCompletionEntriesFromSymbols=P,t.getCompletionEntryDetails=(n,i,a,o,s,u,p,_,f)=>{var m=n.getTypeChecker(),g=n.getCompilerOptions(),h=s.name,y=s.source,v=s.data,b=e.findPrecedingToken(o,a);if(e.isInString(a,o,b))return t.StringCompletions.getStringLiteralCompletionDetails(h,a,o,b,m,g,u,f,_);var x=I(n,i,a,o,s,u,_);switch(x.type){case"request":var S=x.request;switch(S.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(h);case 2:return e.JsDoc.getJSDocTagCompletionDetails(h);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(h);case 4:return e.some(S.keywordCompletions,(e=>e.name===h))?O(h,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(S)}case"symbol":var D=x.symbol,C=x.location,k=x.contextToken,A=x.origin,N=x.previousToken,w=((t,n,i,a,o,s,u,p,_,f,m,g,h,y,v)=>{if((null==y?void 0:y.moduleSpecifier)&&m&&re(i||m).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(y.moduleSpecifier)]};if(v===r.ClassMemberSnippet){var b=T(u,s,p,h,t,o,n,i,g).importAdder;if(b)return{sourceDisplay:void 0,codeActions:[{changes:e.textChanges.ChangeTracker.with({host:u,formatContext:g,preferences:h},b.writeFixes),description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,t])}]}}if(d(a)){var x=e.codefix.getPromoteTypeOnlyCompletionAction(_,a.declaration.name,s,u,g,h);return e.Debug.assertIsDefined(x,"Expected to have a code action for promoting type-only alias"),{codeActions:[x],sourceDisplay:void 0}}if(!a||!c(a)&&!l(a))return{codeActions:void 0,sourceDisplay:void 0};var E=a.isFromPackageJson?u.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),S=a.moduleSymbol,D=E.getMergedSymbol(e.skipAlias(o.exportSymbol||o,E)),C=29===(null==i?void 0:i.kind)&&e.isJsxOpeningLikeElement(i.parent),k=e.codefix.getImportCompletionAction(D,S,_,e.getNameForExportedSymbol(o,e.getEmitScriptTarget(p),C),C,u,s,g,m&&e.isIdentifier(m)?m.getStart(_):f,h),A=k.moduleSpecifier,N=k.codeAction;return e.Debug.assert(!(null==y?void 0:y.moduleSpecifier)||A===y.moduleSpecifier),{sourceDisplay:[e.textPart(A)],codeActions:[N]}})(h,C,k,A,D,n,u,g,a,o,N,p,_,v,y);return M(D,m,a,C,f,w.codeActions,w.sourceDisplay);case"literal":var F=x.literal;return O(E(a,_,F),"string","string"==typeof F?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return z().some((e=>e.name===h))?O(h,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(x)}},t.createCompletionDetailsForSymbol=M,t.createCompletionDetails=R,t.getCompletionEntrySymbol=(e,t,r,n,i,a,o)=>{var s=I(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},(e=>{e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"})(o||(o={})),(s=t.CompletionKind||(t.CompletionKind={}))[s.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",s[s.Global=1]="Global",s[s.PropertyAccess=2]="PropertyAccess",s[s.MemberLike=3]="MemberLike",s[s.String=4]="String",s[s.None=5]="None";var K=[],z=e.memoize((()=>{for(var r=[],n=81;n<=160;n++)r.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords});return r}));function W(t,r){if(!r)return J(t);var n=t+8+1;return K[n]||(K[n]=J(t).filter((t=>!(e=>{switch(e){case 126:case 130:case 158:case 133:case 135:case 92:case 157:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 147:case 148:case 159:case 121:case 122:case 123:case 145:case 150:case 151:case 152:case 154:case 155:return!0;default:return!1}})(e.stringToToken(t.name)))))}function J(t){return K[t]||(K[t]=z().filter((r=>{var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return G(n)||135===n||141===n||152===n||142===n||126===n||e.isTypeKeyword(n)&&153!==n;case 5:return G(n);case 2:return $(n);case 3:return H(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);case 8:return 152===n;default:return e.Debug.assertNever(t)}})))}function H(e){return 145===e}function $(t){switch(t){case 126:case 134:case 136:case 149:case 131:case 135:case 159:return!0;default:return e.isClassMemberModifier(t)}}function G(t){return 131===t||132===t||127===t||!e.isContextualKeyword(t)&&!$(t)}function q(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function X(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=((t,r,n)=>t.isUnion()?n.getAllPossiblePropertiesOfTypes(e.filter(t.types,(t=>!(131068&t.flags||n.isArrayLikeType(t)||n.isTypeInvalidDueToUnionDiscriminant(t,r)||e.typeHasCallOrConstructSignatures(t,n)||t.isClass()&&Y(t.getApparentProperties()))))):t.getApparentProperties())(o,n,i);return o.isClass()&&Y(s)?[]:a?e.filter(s,(t=>!e.length(t.declarations)||e.some(t.declarations,(e=>e.parent!==n)))):s}function Y(t){return e.some(t,(t=>!!(24&e.getDeclarationModifierFlagsFromSymbol(t))))}function Q(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function Z(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=Z(t.parent,r);if(n)switch(t.kind){case 166:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 188:case 182:case 187:return n}}}function ee(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function te(t){var r=t.left;return e.nodeIsMissing(r)}function re(t){var r,n=!1,i=(()=>{var i=t.parent;if(e.isImportEqualsDeclaration(i))return r=152===t.kind?void 0:152,ae(i.moduleReference)?i:void 0;if(ne(i,t)&&ie(i.parent))return i;if(!e.isNamedImports(i)&&!e.isNamespaceImport(i))return e.isImportKeyword(t)&&e.isSourceFile(i)?(r=152,t):e.isImportKeyword(t)&&e.isImportDeclaration(i)?(r=152,ae(i.moduleSpecifier)?i:void 0):void 0;if(i.parent.isTypeOnly||18!==t.kind&&100!==t.kind&&27!==t.kind||(r=152),ie(i)){if(19!==t.kind&&79!==t.kind)return i.parent.parent;n=!0,r=156}})();return{isKeywordOnlyCompletion:n,keywordCompletion:r,isNewIdentifierLocation:!(!i&&152!==r),replacementNode:i&&e.rangeIsOnSingleLine(i,i.getSourceFile())?i:void 0}}function ne(t,r){return e.isImportSpecifier(t)&&(t.isTypeOnly||r===t.name&&e.isTypeKeywordTokenOrIdentifier(r))}function ie(t){return ae(t.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(t)||t.elements.length<2)&&!t.parent.name}function ae(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function oe(t,r,n){return void 0===n&&(n=new e.Map),i(t)||i(e.skipAlias(t.exportSymbol||t,r));function i(t){return!!(788968&t.flags)||r.isUnknownSymbol(t)||!!(1536&t.flags)&&e.addToSeen(n,e.getSymbolId(t))&&r.getExportsOfModule(t).some((e=>oe(e,r,n)))}}function se(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function ce(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(n||(n=void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s),n&&i++,i===t.length))return!0;r=s}var l;return!1}t.getPropertiesForObjectExpression=X}(e.Completions||(e.Completions={}))}(p),(e=>{!(t=>{function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild((t=>{var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function o(e,t){var r=s(t);return!!r&&r===e}function s(t){return e.findAncestor(t,(r=>{switch(r.kind){case 249:if(245===t.kind)return!1;case 242:case 243:case 244:case 241:case 240:return!t.label||((t,r)=>!!e.findAncestor(t.parent,(t=>e.isLabeledStatement(t)?t.label.escapedText===r:"quit")))(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind)||(t.push(r),0))}function l(t){var r=[];if(c(r,t.getFirstToken(),97,115,90)&&240===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],115);a--);return e.forEach(i(t.statement),(e=>{o(t,e)&&c(r,e.getFirstToken(),81,86)})),r}function u(e){var t=s(e);if(t)switch(t.kind){case 242:case 243:case 244:case 240:case 241:return l(t);case 249:return d(t)}}function d(t){var r=[];return c(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(n=>{c(r,n.getFirstToken(),82,88),e.forEach(i(n),(e=>{o(t,e)&&c(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];return c(n,t.getFirstToken(),111),t.catchClause&&c(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&c(n,e.findChildOfKind(t,96,r),96),n}function _(t,r){var i=(t=>{for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||305===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}})(t);if(i){var a=[];return e.forEach(n(i),(t=>{a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(t=>{a.push(e.findChildOfKind(t,105,r))})),a}}function m(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(t=>{a.push(e.findChildOfKind(t,105,r))})),e.forEach(n(i.body),(t=>{a.push(e.findChildOfKind(t,109,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((e=>{c(n,e,131)})),e.forEachChild(r,(t=>{h(t,(t=>{e.isAwaitExpression(t)&&c(n,t.getFirstToken(),132)}))})),n}}function h(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(e=>h(e,r)))}t.getDocumentHighlights=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,v=[y.openingElement,y.closingElement].map((e=>r(e.tagName,i)));return[{fileName:i.fileName,highlightSpans:v}]}return((t,r,n,i,a)=>{var o=new e.Set(a.map((e=>e.fileName))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(e=>e.fileName),(e=>e.span)),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(t=>{var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===s)).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}})(a,s,t,n,o)||((t,n)=>{var i=((t,n)=>{switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?((t,n)=>{for(var i=((t,r)=>{for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],99);for(var a=i.length-1;a>=0&&!c(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n})(t,n),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],l=i[o+1],u=!0,d=l.getStart(n)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a})(t.parent,n):void 0;case 105:return s(t.parent,e.isReturnStatement,m);case 109:return s(t.parent,e.isThrowStatement,_);case 111:case 83:case 96:return s(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return s(t.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return s(t.parent,e.isBreakOrContinueStatement,u);case 97:case 115:case 90:return s(t.parent,(t=>e.isIterationStatement(t,!0)),l);case 134:return o(e.isConstructorDeclaration,[134]);case 136:case 149:return o(e.isAccessor,[136,149]);case 132:return s(t.parent,e.isAwaitExpression,g);case 131:return y(g(t));case 125:return y((t=>{var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(t=>{h(t,(t=>{e.isYieldExpression(t)&&c(n,t.getFirstToken(),125)}))})),n}})(t));case 101:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((i=t.kind,a=t.parent,e.mapDefined(((t,r)=>{var n=t.parent;switch(n.kind){case 262:case 305:case 235:case 289:case 290:return 128&r&&e.isClassDeclaration(t)?f(f([],t.members,!0),[t],!1):n.statements;case 171:case 169:case 256:return f(f([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 257:case 226:case 258:case 182:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return f(f([],i,!0),a.parameters,!0)}else if(128&r)return f(f([],i,!0),[n],!1);return i;case 205:return;default:e.Debug.assertNever(n,"Invalid container kind.")}})(a,e.modifierToFlag(i)),(t=>e.findModifier(t,i))))):void 0}var i,a;function o(r,i){return s(t.parent,r,(t=>e.mapDefined(t.symbol.declarations,(t=>r(t)?e.find(t.getChildren(n),(t=>e.contains(i,t.kind))):void 0))))}function s(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map((e=>r(e,n)))}})(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]})(s,i)}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(p),(e=>{function t(e){return!!e.sourceFile}function r(r,n,a){void 0===n&&(n="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function l(e,t,r,n,i,a,o){return p(e,t,r,n,i,a,!0,o)}function u(e,t,r,n,i,a,o){return p(e,t,c(r),n,i,a,!1,o)}function d(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function p(r,n,i,s,l,u,p,_){var f,m,g,h;_=e.ensureScriptKind(r,_);var y=c(i),v=i===y?void 0:i,b={languageVersion:6===_?100:e.getEmitScriptTarget(y),impliedNodeFormat:v&&e.getImpliedNodeFormatForFile(n,null===(h=null===(g=null===(m=null===(f=v.getCompilerHost)||void 0===f?void 0:f.call(v))||void 0===m?void 0:m.getModuleResolutionCache)||void 0===g?void 0:g.call(m))||void 0===h?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:e.getSetExternalModuleIndicator(y)},x=o.size,E=e.getOrUpdate(o,s,(()=>new e.Map));if(e.tracing){o.size>x&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:s});var S=!e.isDeclarationFileName(n)&&e.forEachEntry(o,((e,t)=>t!==s&&e.has(n)&&t));S&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:S,key2:s})}var D=E.get(n),T=D&&d(D,_);if(!T&&a&&(C=a.getDocument(s,n))&&(e.Debug.assert(p),T={sourceFile:C,languageServiceRefCount:0},k()),T)T.sourceFile.version!==u&&(T.sourceFile=e.updateLanguageServiceSourceFile(T.sourceFile,l,u,l.getChangeRange(T.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,T.sourceFile)),p&&T.languageServiceRefCount++;else{var C=e.createLanguageServiceSourceFile(r,l,b,u,!1,_);a&&a.setDocument(s,n,C),T={sourceFile:C,languageServiceRefCount:1},k()}return e.Debug.assert(0!==T.languageServiceRefCount),T.sourceFile;function k(){if(D)if(t(D)){var r=new e.Map;r.set(D.sourceFile.scriptKind,D),r.set(_,T),E.set(n,r)}else D.set(_,T);else E.set(n,T)}}function _(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=d(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:(t,r,a,o,u)=>l(t,e.toPath(t,n,s),r,i(c(r)),a,o,u),acquireDocumentWithKey:l,updateDocument:(t,r,a,o,l)=>u(t,e.toPath(t,n,s),r,i(c(r)),a,o,l),updateDocumentWithKey:u,releaseDocument:(t,r,a)=>_(e.toPath(t,n,s),i(r),a),releaseDocumentWithKey:_,getLanguageServiceRefCounts:(t,r)=>e.arrayFrom(o.entries(),(e=>{var n=e[0],i=e[1].get(t),a=i&&d(i,r);return[n,a&&a.languageServiceRefCount]})),reportStats(){var r=e.arrayFrom(o.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{var r=o.get(e),n=[];return r.forEach(((e,r)=>{t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,t)=>n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(e=>n(e))))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasOwnProperty.call(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((r=>n(e.getCompilerOptionValue(t,r)))).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}e.createDocumentRegistry=(e,t)=>r(e,t),e.createDocumentRegistryInternal=r})(p),(e=>{!(t=>{function r(t,r){return e.forEach(305===t.kind?t.statements:t.body.statements,(t=>r(t)||s(t)&&e.forEach(t.body&&t.body.statements,r)))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(t=>{switch(t.kind){case 272:case 266:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 265:var r;c(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function a(e,t){return t.getMergedSymbol(o(e).symbol)}function o(t){if(208===t.kind)return t.getSourceFile();var r=t.parent;return 305===r.kind?r:(e.Debug.assert(262===r.kind),e.cast(r.parent,s))}function s(e){return 261===e.kind&&10===e.name.kind}function c(e){return 277===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var l,u;t.createImportTracker=(t,i,l,u)=>{var d=((t,r,i)=>{for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,((t,n)=>{var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a})(t,l,u);return(n,p,_)=>{var f=((t,n,i,c,l,u)=>{var d=c.exportingModuleSymbol,p=c.exportKind,_=e.nodeSeenTracker(),f=e.nodeSeenTracker(),m=[],g=!!d.globalExports,h=g?void 0:[];return function t(r){var n,i=x(r);if(i)for(var c=0,d=i;c<d.length;c++){var f=d[c];if(_(f))switch(u&&u.throwIfCancellationRequested(),f.kind){case 208:if(e.isImportCall(f)){n=f,b(e.findAncestor(n,s)||n.getSourceFile(),!!y(n,!0));break}if(!g){var h=f.parent;if(2===p&&254===h.kind){var E=h.name;if(79===E.kind){m.push(E);break}}}break;case 79:break;case 265:v(f,f.name,e.hasSyntacticModifier(f,1),!1);break;case 266:m.push(f);var S=f.importClause&&f.importClause.namedBindings;S&&268===S.kind?v(f,S.name,!1,!0):!g&&e.isDefaultImport(f)&&b(o(f));break;case 272:f.exportClause?274===f.exportClause.kind?b(o(f),!0):m.push(f):t(a(f,l));break;case 200:f.isTypeOf&&!f.qualifier&&y(f)&&b(f.getSourceFile(),!0),m.push(f);break;default:e.Debug.failBadSyntaxKind(f,"Unexpected import kind.")}}}(d),{directImports:m,indirectUsers:(()=>{if(g)return t;if(d.declarations)for(var r=0,i=d.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return h.map(e.getSourceFileOfNode)})()};function y(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(t=>r&&s(t)?"quit":e.some(t.modifiers,(e=>93===e.kind))))}function v(t,n,i,a){if(2===p)a||m.push(t);else if(!g){var s=o(t);e.Debug.assert(305===s.kind||261===s.kind),i||((t,n,i)=>{var a=i.getSymbolAtLocation(n);return!!r(t,(t=>{if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((e=>i.getExportSpecifierLocalTargetSymbol(e)===a))}}))})(s,n,l)?b(s,!0):b(s)}}function b(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!g),f(t)&&(h.push(t),r)){var n=l.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=x(n);if(i)for(var a=0,s=i;a<s.length;a++){var c=s[a];e.isImportTypeNode(c)||b(o(c),!0)}}}}function x(t){return i.get(e.getSymbolId(t).toString())}})(t,i,d,p,l,u),g=f.directImports,h=f.indirectUsers;return m({indirectUsers:h},((t,r,n,i,a)=>{var o=[],s=[];function l(e,t){o.push([e,t])}if(t)for(var u=0,d=t;u<d.length;u++)p(d[u]);return{importSearches:o,singleReferences:s};function p(t){if(265!==t.kind)if(79!==t.kind)if(200!==t.kind){if(10===t.moduleSpecifier.kind)if(272!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},u=o.name,d=o.namedBindings;if(d)switch(d.kind){case 268:_(d.name);break;case 269:0!==n&&1!==n||f(d);break;default:e.Debug.assertNever(d)}!u||1!==n&&2!==n||a&&u.escapedText!==e.symbolEscapedNameNoDefault(r)||l(u,i.getSymbolAtLocation(u))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var p=e.getFirstIdentifier(t.qualifier);p.escapedText===e.symbolName(r)&&s.push(p)}else 2===n&&s.push(t.argument.literal);else _(t);else c(t)&&_(t.name)}function _(e){2!==n||a&&!m(e.escapedText)||l(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],c=o.name,u=o.propertyName;m((u||c).escapedText)&&(u?(s.push(u),a&&c.escapedText!==r.escapedName||l(c,i.getSymbolAtLocation(c))):l(c,275===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(c)))}}function m(e){return e===r.escapedName||0!==n&&"default"===e}})(g,n,p.exportKind,l,_))}},(u=t.ExportKind||(t.ExportKind={}))[u.Named=0]="Named",u[u.Default=1]="Default",u[u.ExportEquals=2]="ExportEquals",(l=t.ImportExport||(t.ImportExport={}))[l.Import=0]="Import",l[l.Export=1]="Export",t.findModuleReferences=(e,t,r)=>{for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],l=r.valueDeclaration;if(305===(null==l?void 0:l.kind)){for(var u=0,d=c.referencedFiles;u<d.length;u++){var p=d[u];e.getSourceFileFromReference(c,p)===l&&i.push({kind:"reference",referencingFile:c,ref:p})}for(var _=0,f=c.typeReferenceDirectives;_<f.length;_++){p=f[_];var m=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||c.impliedNodeFormat);void 0!==m&&m.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:p})}}n(c,((e,t)=>{a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=(t,r,n,a)=>{return a?o():o()||(()=>{if((t=>{var r=t.parent;switch(r.kind){case 265:return r.name===t&&c(r);case 270:return!r.propertyName;case 267:case 268:return e.Debug.assert(r.name===t),!0;case 203:return e.isInJSFile(t)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.parent.parent);default:return!1}})(t)){var i=n.getImmediateAliasedSymbol(r);if(i){"export="===(i=((t,r)=>{if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t})(i,n)).escapedName&&(i=((t,r)=>{if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=e.Debug.checkDefined(t.valueDeclaration);return e.isExportAssignment(n)?e.Debug.checkDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.checkDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.checkDefined(n.symbol):e.Debug.fail()})(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}})();function o(){var i,o=t.parent,c=o.parent;if(r.exportSymbol)return 206===o.kind?(null===(i=r.declarations)||void 0===i?void 0:i.some((e=>e===o)))&&e.isBinaryExpression(c)?p(c,!1):void 0:s(r.exportSymbol,l(o));var u=((t,r)=>{var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t})(o,t);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,l(u))}if(e.isNamespaceExport(o))return s(r,0);if(e.isExportAssignment(o))return d(o);if(e.isExportAssignment(c))return d(c);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(c))return p(c,!0);if(e.isJSDocTypedefTag(o))return s(r,0);function d(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function p(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function l(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i})(e.FindAllReferences||(e.FindAllReferences={}))})(p),function(e){!function(t){var r,n,i,a;function o(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:c(e)}}function s(e){return e&&void 0===e.kind}function c(t){if(e.isDeclaration(t))return l(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return l(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(t=>e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)));return e.isDeclaration(i)?l(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?l(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||88===t.kind&&e.hasSyntacticModifier(t.parent,513)?l(t.parent):void 0}}function l(t){if(t)switch(t.kind){case 254:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?l(t.parent.parent):t.parent:t;case 203:return l(t.parent.parent);case 270:return t.parent.parent.parent;case 275:case 268:return t.parent.parent;case 267:case 274:return t.parent;case 221:return e.isExpressionStatement(t.parent)?t.parent:t;case 244:case 243:return{start:t.initializer,end:t.expression};case 296:case 297:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?l(e.findAncestor(t.parent,(t=>e.isBinaryExpression(t)||e.isForInOrOfStatement(t)))):t;default:return t}}function u(e,t,r){if(r){var n=s(r)?b(r.start,t,r.end):b(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function d(t,n,i,a,s){if(305!==a.kind){var c=t.getTypeChecker();if(297===a.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(a,c,(e=>l.push(o(e)))),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=c.getSymbolAtLocation(a);return u.valueDeclaration&&[o(u.valueDeclaration)]}return p(s,a,t,i,n,{implementations:!0,use:1})}}function p(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((e=>e.fileName)))),_(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function _(t){return t&&e.flatMap(t,(e=>e.references))}function g(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:b(e.isComputedPropertyName(t)?t.expression:t,r)}}function h(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function y(e){var t=v(e);if(0===e.kind)return m(m({},t),{isWriteAccess:!1});var r=e.kind,n=e.node;return m(m({},t),{isWriteAccess:E(n),isInString:2===r||void 0})}function v(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=b(e.node,t);return m({textSpan:r,fileName:t.fileName},u(r,t,e.context))}function b(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&a-i>2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function x(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function E(t){var r=e.getDeclarationFromName(t);return!!r&&(t=>{if(16777216&t.flags)return!0;switch(t.kind){case 221:case 203:case 257:case 226:case 88:case 260:case 299:case 275:case 267:case 265:case 270:case 258:case 338:case 345:case 285:case 261:case 264:case 268:case 274:case 164:case 297:case 259:case 163:return!0;case 296:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 256:case 213:case 171:case 169:case 172:case 173:return!!t.body;case 254:case 167:return!!t.initializer||e.isCatchClause(t.parent);case 168:case 166:case 347:case 340:return!1;default:return e.Debug.failBadSyntaxKind(t)}})(r)||88===t.kind||e.isWriteAccess(t)}function S(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((e=>e===i||e===a))))}(a=t.DefinitionKind||(t.DefinitionKind={}))[a.Symbol=0]="Symbol",a[a.Label=1]="Label",a[a.Keyword=2]="Keyword",a[a.This=3]="This",a[a.String=4]="String",a[a.TripleSlashReference=5]="TripleSlashReference",(i=t.EntryKind||(t.EntryKind={}))[i.Span=0]="Span",i[i.Node=1]="Node",i[i.StringLiteral=2]="StringLiteral",i[i.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",i[i.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=o,t.isContextWithStartAndEndNode=s,t.getContextNode=l,t.toContextSpan=u,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(a,o),c={use:1},d=r.getReferencedSymbolsForNode(o,s,t,i,n,c),p=t.getTypeChecker(),_=r.getAdjustedNode(s,c),f=(t=>88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent))(_)?p.getSymbolAtLocation(_):void 0;return d&&d.length?e.mapDefined(d,(t=>{var r=t.definition,i=t.references;return r&&{definition:p.runWithCancellationToken(n,(t=>((t,r,n)=>{var i=(()=>{switch(t.type){case 0:var i=h(p=t.symbol,r,n),a=i.displayParts,o=i.kind,s=a.map((e=>e.text)).join(""),c=p.declarations&&e.firstOrUndefined(p.declarations),u=c?e.getNameOfDeclaration(c)||c:n;return m(m({},g(u)),{name:s,kind:o,displayParts:a,context:l(c)});case 1:return u=t.node,m(m({},g(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var d=e.tokenToString(u.kind);return m(m({},g(u)),{name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]});case 3:u=t.node;var p,_=(p=r.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,p,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return m(m({},g(u)),{name:"this",kind:"var",displayParts:_});case 4:return u=t.node,m(m({},g(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}})(),a=i.sourceFile,o=i.textSpan,s=i.name,c=i.kind,d=i.displayParts,p=i.context;return m({containerKind:"",containerName:"",fileName:a.fileName,kind:c,name:s,textSpan:o,displayParts:d},u(o,a,p))})(r,t,s))),references:i.map((e=>((e,t)=>{var r=y(e);return t?m(m({},r),{isDefinition:0!==e.kind&&S(e.node,t)}):r})(e,f)))}})):void 0},t.getImplementationsAtPosition=(t,r,n,i,a)=>{var o,s=e.getTouchingPropertyName(i,a),c=d(t,r,n,s,a);if(206===s.parent.kind||203===s.parent.kind||207===s.parent.kind||106===s.kind)o=c&&f([],c,!0);else for(var l=c&&f([],c,!0),u=new e.Map;l&&l.length;){var p=l.shift();if(e.addToSeen(u,e.getNodeId(p.node))){o=e.append(o,p);var _=d(t,r,n,p.node,p.node.pos);_&&l.push.apply(l,_)}}var g=t.getTypeChecker();return e.map(o,(t=>((t,r)=>{var n=v(t);if(0!==t.kind){var i=t.node;return m(m({},n),((t,r)=>{var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?h(n,r,t):205===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:226===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}})(i,r))}return m(m({},n),{kind:"",displayParts:[]})})(t,g)))},t.findReferenceOrRenameEntries=(t,n,i,a,o,s,c)=>e.map(_(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(e=>c(e,a,t.getTypeChecker()))),t.getReferenceEntriesForNode=p,t.toRenameLocation=(t,r,n,i)=>m(m({},v(t)),i&&((t,r,n)=>{if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions})(t,r,n)),t.toReferenceEntry=y,t.toHighlightSpan=e=>{var t=v(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=E(e.node),n=m({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=x,function(r){function n(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function i(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function a(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function s(t,r,n,i,a,o){var s=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(s){var l=t.exports.get("export="),d=u(r,t,!!l,n,o);if(!l||!o.has(s.fileName))return d;var _=r.getTypeChecker();return c(r,d,p(t=e.skipAlias(l,_),void 0,n,o,_,i,a))}}function c(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s&&s.length)if(r)for(var c=n=>{if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===i));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort(((r,n)=>{var i=l(t,r),a=l(t,n);if(i!==a)return e.compareValues(i,a);var o=x(r),s=x(n);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},u=0,d=s;u<d.length;u++){var p=d[u];c(p)}else r=s}return r}function l(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function u(r,n,i,a,s){e.Debug.assert(!!n.valueDeclaration);var c=e.mapDefined(t.findModuleReferences(r,a,n),(t=>{if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return o(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var l=0,u=n.declarations;l<u.length;l++)switch((f=u[l]).kind){case 305:break;case 261:s.has(f.getSourceFile().fileName)&&c.push(o(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var d=n.exports.get("export=");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f,m=(f=_[p]).getSourceFile();if(s.has(m.fileName)){var g=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,93,m)):e.getNameOfDeclaration(f)||f;c.push(o(g))}}return c.length?[{definition:{type:0,symbol:n},references:c}]:e.emptyArray}function d(t){return 145===t.kind&&e.isTypeOperatorNode(t.parent)&&145===t.parent.operator}function p(t,r,n,i,a,o,s){var c=r&&((t,r,n,i)=>{var a=r.parent;return e.isExportSpecifier(a)&&i?w(r,t,a,n):e.firstDefined(t.declarations,(i=>{if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(r.kind),": ").concat(e.Debug.formatSymbol(t)))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))})(t,r,a,!z(s))||t,l=r?U(r,c):7,u=[],d=new m(n,i,r?(t=>{switch(t.kind){case 171:case 134:return 1;case 79:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}})(r):0,a,o,l,s,u),p=z(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(p)N(p.name,c,p,d.createSearch(r,t,void 0),d,!0,!0);else if(r&&88===r.kind&&"default"===c.escapedName&&c.parent)F(r,c,d),g(r,c,{exportingModuleSymbol:c.parent,exportKind:1},d);else{var f=d.createSearch(r,c,void 0,{allSearchSymbols:r?L(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});_(c,d,f)}return u}function _(t,r,n){var i=(t=>{var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(213===a.kind||226===a.kind))return a;if(r){if(8196&n){var o=e.find(r,(t=>e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t)));return o?e.getAncestor(o,257):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,u=r;l<u.length;l++){var d=u[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||305===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var _=void 0;_=e.getNextJSDocCommentLocation(s);)s=_}return c?s.getSourceFile():s}}}})(t);if(i)C(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),v(s,n,r)}}var f;r.getReferencedSymbolsForNode=(t,r,l,_,f,m,g)=>{var h,y;if(void 0===m&&(m={}),void 0===g&&(g=new e.Set(_.map((e=>e.fileName)))),r=n(r,m),e.isSourceFile(r)){var v=e.GoToDefinition.getReferenceAtPosition(r,t,l);if(!(null==v?void 0:v.file))return;var b=l.getTypeChecker().getMergedSymbol(v.file.symbol);if(b)return u(l,b,!1,_,g);if(!(N=l.getFileIncludeReasons()))return;return[{definition:{type:5,reference:v.reference,file:r},references:i(v.file,N,l)||e.emptyArray}]}if(!m.implementations){var x=((t,r,n)=>{if(e.isTypeKeyword(t.kind)){if(114===t.kind&&e.isVoidExpression(t.parent))return;if(145===t.kind&&!d(t))return;return((t,r,n,i)=>{var a=e.flatMap(t,(t=>(n.throwIfCancellationRequested(),e.mapDefined(E(t,e.tokenToString(r),t),(e=>{if(e.kind===r&&(!i||i(e)))return o(e)})))));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0})(r,t.kind,n,145===t.kind?d:void 0)}if(e.isImportMeta(t.parent)&&t.parent.name===t)return((t,r)=>{var n=e.flatMap(t,(t=>(r.throwIfCancellationRequested(),e.mapDefined(E(t,"meta",t),(t=>{var r=t.parent;if(e.isImportMeta(r))return o(r)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0})(r,n);if(e.isStaticModifier(t)&&e.isClassStaticBlockDeclaration(t.parent))return[{definition:{type:2,node:t},references:[o(t)]}];if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&D(i.parent,i)}return e.isLabelOfLabeledStatement(t)?D(t.parent,t):e.isThis(t)?((t,r,n)=>{var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 169:case 168:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 167:case 166:case 171:case 172:case 173:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 305:if(e.isExternalModule(i)||R(t))return;case 256:case 213:break;default:return}var s=e.flatMap(305===i.kind?r:[i.getSourceFile()],(t=>(n.throwIfCancellationRequested(),E(t,"this",e.isSourceFile(i)?t:i).filter((t=>{if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 213:case 256:return i.symbol===r.symbol;case 169:case 168:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 226:case 257:case 205:return r.parent&&i.symbol===r.parent.symbol&&e.isStatic(r)===!!a;case 305:return 305===r.kind&&!e.isExternalModule(r)&&!R(t)}}))))).map((e=>o(e)));return[{definition:{type:3,node:e.firstDefined(s,(t=>e.isParameter(t.node.parent)?t.node:void 0))||t},references:s}]})(t,r,n):106===t.kind?(t=>{var r=e.getSuperContainer(t,!1);if(r){var n=32;switch(r.kind){case 167:case 166:case 169:case 168:case 171:case 172:case 173:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),a=e.mapDefined(E(i,"super",r),(t=>{if(106===t.kind){var i=e.getSuperContainer(t,!1);return i&&e.isStatic(i)===!!n&&i.parent.symbol===r.symbol?o(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:a}]}})(t):void 0})(r,_,f);if(x)return x}var S=l.getTypeChecker(),T=S.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(T){if("export="===T.escapedName)return u(l,T.parent,!1,_,g);var C=s(T,l,_,f,m,g);if(C&&!(33554432&T.flags))return C;var k=a(r,T,S),A=k&&s(k,l,_,f,m,g);return c(l,C,p(T,r,_,g,S,f,m),A)}if(!m.implementations&&e.isStringLiteralLike(r)){if(e.isModuleSpecifierLike(r)){var N=l.getFileIncludeReasons(),w=null===(y=null===(h=r.getSourceFile().resolvedModules)||void 0===h?void 0:h.get(r.text,e.getModeForUsageLocation(r.getSourceFile(),r)))||void 0===y?void 0:y.resolvedFileName,F=w?l.getSourceFile(w):void 0;if(F)return[{definition:{type:4,node:r},references:i(F,N,l)||e.emptyArray}]}return((t,r,n,i)=>{var a=e.getContextualTypeFromParentOrAncestorTypeNode(t,n),s=e.flatMap(r,(r=>(i.throwIfCancellationRequested(),e.mapDefined(E(r,t.text),(i=>{if(e.isStringLiteralLike(i)&&i.text===t.text){if(!a)return e.isNoSubstitutionTemplateLiteral(i)&&!e.rangeIsOnSingleLine(i,r)?void 0:o(i,2);var s=e.getContextualTypeFromParentOrAncestorTypeNode(i,n);if(a!==n.getStringType()&&a===s)return o(i,2)}})))));return[{definition:{type:4,node:t},references:s}]})(r,_,S,f)}},r.getAdjustedNode=n,r.getReferencesForFileName=(t,r,n,a)=>{var o,s;void 0===a&&(a=new e.Set(n.map((e=>e.fileName))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=u(r,c,!1,n,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var l=r.getFileIncludeReasons(),d=r.getSourceFile(t);return d&&l&&i(d,l,r)||e.emptyArray},(e=>{e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"})(f||(f={}));var m=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||(t=>{if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(t=>!e.isSourceFile(t)&&!e.isModuleDeclaration(t)));return r&&r.symbol}})(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?((t,r,n)=>{var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o})(t,r,this.checker):void 0,allSearchSymbols:c,includes:t=>e.contains(c,t)}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),(e,t)=>n.push(o(e,t))},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function g(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),l=0,u=o;l<u.length;l++){var d=u[l];h(d,n)&&c(d)}for(var p=0,_=a;p<_.length;p++){var f=_[p],m=f[0],g=f[1];T(m.getSourceFile(),n.createSearch(m,g,1),n)}if(s.length){var y=void 0;switch(r.exportKind){case 0:y=n.createSearch(e,t,1);break;case 1:y=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(y)for(var b=0,x=s;b<x.length;b++)v(x[b],y,n)}}function h(t,r){return!(!k(t,r)||2===r.options.use&&(!e.isIdentifier(t)||e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function y(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();T(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function v(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&T(t,r,n)}function b(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=E(n,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==t&&l.escapedText===t.escapedText){var u=r.getSymbolAtLocation(l);if(u===o||r.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&w(l,u,l.parent,r)===o){var d=i(l);if(d)return d}}}}function E(t,r,n){return void 0===n&&(n=t),S(t,r,n).map((r=>e.getTouchingPropertyName(t,r)))}function S(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function D(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(E(n,i,t),(t=>t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?o(t):void 0));return[{definition:{type:1,node:r},references:a}]}function T(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=S(t,r.text,e);a<o.length;a++)A(t,o[a],r,n,i)}function k(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function A(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(((t,r)=>{switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent))return!0;case 79:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return!1}})(s,i.text)){if(k(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void N(s,c,l,i,a,o);var u=((t,r,n,i)=>{var a=i.checker;return B(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,((n,i,a,o)=>(a&&j(r)!==j(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0)),(e=>!(t.parents&&!t.parents.some((t=>M(e.parent,t,i.inheritsFromCache,a))))))})(i,c,s,a);if(u){switch(a.specialSearchKind){case 0:o&&F(s,u,a);break;case 1:!((t,r,n,i)=>{e.isNewExpressionTarget(t)&&F(t,n.symbol,i);var a,o=()=>i.referenceAdder(n.symbol);if(e.isClassLike(t.parent))e.Debug.assert(88===t.kind||t.parent.name===t),((t,r,n)=>{var i=P(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,134,r);e.Debug.assert(171===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((t=>{var r=t.valueDeclaration;if(r&&169===r.kind){var i=r.body;i&&K(i,108,(t=>{e.isNewExpressionTarget(t)&&n(t)}))}}))})(n.symbol,r,o());else{var s=(a=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(((t,r)=>{var n=P(t.symbol);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(171===o.kind);var s=o.body;s&&K(s,106,(t=>{e.isCallExpressionTarget(t)&&r(t)}))}})(s,o()),((e,t)=>{if(!(e=>!!P(e.symbol))(e)){var r=e.symbol,n=t.createSearch(void 0,r,void 0);_(r,t,n)}})(s,i))}})(s,r,i,a);break;case 2:!((t,r,n)=>{F(t,r.symbol,n);var i=t.parent;if(2!==n.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function t(r){108===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}})(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}e.isInJSFile(s)&&203===s.parent.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(s.parent.parent.parent)&&!(c=s.parent.symbol)||((e,r,n,i)=>{var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(a){var o=a.symbol;0===a.kind?z(i.options)||y(o,i):g(e,o,a.exportInfo,i)}})(s,c,i,a)}else!((t,r,n)=>{var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||F(s,o,n)})(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function N(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,u=i.propertyName,d=i.name,p=l.parent,_=w(r,n,i,o.checker);if(c||a.includes(_)){if(u?r===u?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&F(d,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===d.escapedText||b(),!z(o.options)||c){var f=88===r.originalKeywordKind||88===i.name.originalKeywordKind?1:0,m=e.Debug.checkDefined(i.symbol),h=t.getExportInfo(m,f,o.checker);h&&g(r,m,h,o)}if(1!==a.comingFrom&&p.moduleSpecifier&&!u&&!z(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&y(v,o)}}function b(){s&&F(r,_,o)}}function w(t,r,n,i){return((t,r)=>{var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier})(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function F(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol;if(2!==n.options.use||88!==t.kind){var s=n.referenceAdder(o);n.options.implementations?((t,r,n)=>{var i;if(!e.isDeclarationName(t)||(16777216&(i=t.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===t.kind){297===t.parent.kind&&V(t,n.checker,r);var a=I(t);if(a)r(a);else{var o=e.findAncestor(t,(t=>!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent))),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;235===c.kind?e.forEachReturnStatement(c,(e=>{e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else r(t);function l(e){O(e)&&r(e)}})(t,s,n):s(t,a)}}function P(e){return e.members&&e.members.get("__constructor")}function I(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?I(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function O(e){switch(e.kind){case 212:return O(e.expression);case 214:case 213:case 205:case 226:case 204:return!0;default:return!1}}function M(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((t=>e.getAllSuperTypeNodes(t).some((e=>{var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&M(t.symbol,r,n,i)}))));return n.set(a,s),s}function R(e){return 79===e.kind&&164===e.parent.kind&&e.parent.name===e}function L(e,t,r,n,i,a){var o=[];return B(e,t,r,n,!(n&&i),((t,r,n)=>{n&&j(e)!==j(n)&&(n=void 0),o.push(n||r||t)}),(()=>!a)),o}function B(t,r,n,i,o,s,c){var l=e.getContainingObjectLiteralElement(r);if(l){var u=n.getShorthandAssignmentValueSymbol(r.parent);if(u&&i)return s(u,void 0,void 0,3);var d=n.getContextualType(l.parent),p=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,n,d,!0),(e=>D(e,4)));if(p)return p;var _=((t,r)=>e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0)(r,n),f=_&&s(_,void 0,void 0,4);if(f)return f;var m=u&&s(u,void 0,void 0,3);if(m)return m}var g=a(r,t,n);if(g){var h=s(g,void 0,void 0,1);if(h)return h}var y=D(t);if(y)return y;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),D(1&t.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(t,275);if(!i||b&&!b.propertyName){var x=b&&n.getExportSpecifierLocalTargetSymbol(b);if(x){var E=s(x,void 0,void 0,1);if(E)return E}}if(!i){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:T(t,n))&&D(S,4)}if(e.Debug.assert(i),o)return(S=T(t,n))&&D(S,4);function D(t,r){return e.firstDefined(n.getRootSymbols(t),(i=>s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?((t,r,n,i)=>{var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,(a=>e.firstDefined(e.getAllSuperTypeNodes(a),(a=>{var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))}))))}(t)})(i.parent,i.name,n,(e=>s(t,i,e,r))):void 0)))}function T(t,r){var n=e.getDeclarationOfKind(t,203);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function j(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function U(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&n&&(n|=l)}}while(n!==a)}return n}function V(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function K(t,r,n){e.forEachChild(t,(e=>{e.kind===r&&n(e),K(e,r,n)}))}function z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=(r,n,i,a,o,s,c,l)=>{for(var u=t.createImportTracker(r,new e.Set(r.map((e=>e.fileName))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=u.importSearches,p=u.indirectUsers,_=u.singleReferences,f=0,m=d;f<m.length;f++)l(m[f][0]);for(var g=0,h=_;g<h.length;g++){var y=h[g];e.isIdentifier(y)&&e.isImportTypeNode(y.parent)&&l(y)}for(var v=0,b=p;v<b.length;v++)for(var x=0,S=E(b[v],c?"default":s);x<S.length;x++){var D=S[x],T=n.getSymbolAtLocation(D),C=e.some(null==T?void 0:T.declarations,(t=>!!e.tryCast(t,e.isExportAssignment)));!e.isIdentifier(D)||e.isImportOrExportSpecifier(D.parent)||T!==a&&!C||l(D)}},r.isSymbolReferencedInFile=(e,t,r,n)=>(void 0===n&&(n=r),b(e,t,r,(()=>!0),n)||!1),r.eachSymbolReferenceInFile=b,r.getTopMostDeclarationNamesInFile=(t,r)=>e.filter(E(r,t),(t=>!!e.getDeclarationFromName(t))).reduce(((t,r)=>{var n=(t=>{for(var r=0;t;)t=e.getContainerNode(t),r++;return r})(r);return e.some(t.declarationNames)&&n!==t.depth?n<t.depth&&(t.declarationNames=[r],t.depth=n):(t.declarationNames.push(r),t.depth=n),t}),{depth:1/0,declarationNames:[]}).declarationNames,r.someSignatureUsage=(t,r,n,i)=>{if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,l=E(s[o],a.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==t.name&&u.escapedText===t.name.escapedText){var d=e.climbPastPropertyAccess(u),p=e.isCallExpression(d.parent)&&d.parent.expression===d?d.parent:void 0,_=n.getSymbolAtLocation(u);if(_&&n.getRootSymbols(_).some((e=>e===a))&&i(u,p))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=U,r.getReferenceEntriesForShorthandPropertyAssignment=V}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(p),(e=>{!(t=>{function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||(t=>(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t))(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 88===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function l(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));o.sort(((t,r)=>e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos));for(var l=void 0,u=0,d=e.map(o,(e=>a.declarations[e]));u<d.length;u++){var p=d[u];i(p)&&(l&&l.parent===p.parent&&l.end===p.pos||(n=e.append(n,p)),l=p)}}return n}function u(t,r){var n,i,a;return e.isClassStaticBlockDeclaration(r)?r:e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:l(t,r))&&void 0!==i?i:r:null!==(a=l(t,r))&&void 0!==a?a:r}function d(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return u(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&u(o,c);if(e.isDeclarationName(a))return i(a.parent)?u(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&u(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function p(t,n){var i=n.getSourceFile(),a=((t,n)=>{if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(n)){var a=n.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(n).pos),c=s+6,l=(d=(u=t.getTypeChecker()).getSymbolAtLocation(n.parent))?"".concat(u.symbolToString(d,n.parent)," "):"";return{text:"".concat(l,"static {}"),pos:s,end:c}}var u,d,p=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),_=e.isIdentifier(p)?e.idText(p):e.isStringOrNumericLiteralLike(p)?p.text:e.isComputedPropertyName(p)&&e.isStringOrNumericLiteralLike(p.expression)?p.expression.text:void 0;if(void 0===_&&(d=(u=t.getTypeChecker()).getSymbolAtLocation(p))&&(_=u.symbolToString(d,n)),void 0===_){var f=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});_=e.usingSingleLineStringWriter((e=>f.writeNode(4,n,n.getSourceFile(),e)))}return{text:_,pos:p.getStart(),end:p.getEnd()}})(t,n),s=(t=>{var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 172:case 173:case 169:return 205===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 256:case 257:case 261:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}})(n),c=e.getNodeKind(n),l=e.getNodeModifiers(n),u=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),d=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:u,selectionSpan:d}}function _(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function m(t){return e.getNodeId(t.declaration)}t.resolveCallHierarchyDeclaration=d,t.createCallHierarchyItem=p,t.getIncomingCalls=(t,r,n)=>{if(e.isSourceFile(r)||e.isModuleDeclaration(r)||e.isClassStaticBlockDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),_);return o?e.group(o,m,(r=>((t,r)=>({from:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r))):[]},t.getOutgoingCalls=(t,r)=>16777216&r.flags||e.isMethodSignature(r)?[]:e.group(((t,r)=>{var n=[],a=((t,r)=>{function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)||e.isClassStaticBlockDeclaration(n)?n:n.expression,a=d(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];r.push({declaration:l,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(16777216&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 79:case 265:case 266:case 272:case 258:case 259:return;case 170:return void n(r);case 211:case 229:return void t(r.expression);case 254:case 164:return t(r.name),void t(r.initializer);case 208:case 209:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 210:return n(r),t(r.tag),void t(r.template);case 280:case 279:return n(r),t(r.tagName),void t(r.attributes);case 165:return n(r),void t(r.expression);case 206:case 207:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}})(t,n);switch(r.kind){case 305:!((t,r)=>{e.forEach(t.statements,r)})(r,a);break;case 261:!((t,r)=>{!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)})(r,a);break;case 256:case 213:case 214:case 169:case 172:case 173:!((t,r,n)=>{var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))})(t.getTypeChecker(),r,a);break;case 257:case 226:!((t,r)=>{e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,r),r(o.body)):e.isClassStaticBlockDeclaration(o)&&r(o)}})(r,a);break;case 170:!((e,t)=>{t(e.body)})(r,a);break;default:e.Debug.assertNever(r)}return n})(t,r),m,(r=>((t,r)=>({to:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r)))})(e.CallHierarchy||(e.CallHierarchy={}))})(p),(e=>{function t(t,n,i,a){var o=i(t);return t=>{var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=(t=>{if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r})(s?s.fileName:t);return s?void 0===c?void 0:((t,n,i,a)=>{var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)})(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(((t,r)=>e.normalizePath(e.combinePaths(t,r)))(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=s(r.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(r.failedLookupLocations,(t=>{var r=n(t);return r&&e.find(i,(e=>e.fileName===r))?o(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,o)||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=(o,s,c,l,u,d,p)=>{var _=e.hostUsesCaseSensitiveFileNames(l),f=e.createGetCanonicalFileName(_),m=t(s,c,f,p),g=t(c,s,f,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:d},(t=>{!((t,n,o,s,c,l,u)=>{var d=t.getCompilerOptions().configFile;if(d){var p=e.getDirectoryPath(d.fileName),_=e.getTsConfigObjectLiteralExpression(d);_&&a(_,((t,r)=>{switch(r){case"files":case"include":case"exclude":if(f(t)||"include"!==r||!e.isArrayLiteralExpression(t.initializer))return;var i=e.mapDefined(t.initializer.elements,(t=>e.isStringLiteral(t)?t.text:void 0));if(0===i.length)return;var o=e.getFileMatcherPatterns(p,[],i,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&n.insertNodeAfter(d,e.last(t.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void a(t.initializer,((t,r)=>{var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(t=>{if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++)m(n[r])}))}))}}))}function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++)r=m(i[n])||r;return r}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(p,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(d,i(t,d),g(s)),!0)}function g(t){return e.getRelativePathFromDirectory(p,t,!u)}})(o,t,m,s,c,l.getCurrentDirectory(),_),((t,a,o,s,c,l)=>{for(var u=t.getSourceFiles(),d=d=>{var p=o(d.fileName),_=null!=p?p:d.fileName,f=e.getDirectoryPath(_),m=s(d.fileName),g=m||d.fileName,h=e.getDirectoryPath(g),y=void 0!==p||void 0!==m;!((t,r,n,a)=>{for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=n(c.fileName))&&d!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,d)}for(var l=0,u=t.imports;l<u.length;l++){var d,p=u[l];void 0!==(d=a(p))&&d!==p.text&&r.replaceRangeWithText(t,i(p,t),d)}})(d,a,(t=>{if(e.pathIsRelative(t)){var n=r(h,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,l))}}),(r=>{var i=t.getTypeChecker().getSymbolAtLocation(r);if(!(null==i?void 0:i.declarations)||!i.declarations.some((t=>e.isAmbientModule(t)))){var a=void 0!==m?n(r,e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o,u):((t,r,i,a,o,s)=>{if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}var u=e.getModeForUsageLocation(i,r);return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u),s,a.getSourceFiles())})(i,r,d,t,c,o);return void 0!==a&&(a.updated||y&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),d,l(_),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},p=0,_=u;p<_.length;p++)d(_[p])})(o,t,m,g,l,f)}))},e.getPathUpdater=t})(p),(e=>{!(t=>{function r(t,r,a,u,p){var _,m,g,h,y,v=i(r,a,t),b=v&&[(g=v.reference.fileName,h=v.fileName,y=v.unverified,{fileName:h,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:g,containerName:void 0,containerKind:void 0,unverified:y})]||e.emptyArray;if(null==v?void 0:v.file)return b;var x=e.getTouchingPropertyName(r,a);if(x!==r){var E=x.parent,S=t.getTypeChecker();if(159===x.kind||e.isJSDocOverrideTag(x)&&e.rangeContainsPosition(x.tagName,a))return((t,r)=>{var n=e.findAncestor(r,e.isClassElement);if(n&&n.name){var i=e.findAncestor(n,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?t.getTypeAtLocation(a):void 0;if(o){var c=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name)),l=e.hasStaticModifier(n)?t.getPropertyOfType(t.getTypeOfSymbolAtLocation(o.symbol,i),c):t.getPropertyOfType(o,c);if(l)return s(t,l,r)}}}})(S,x)||e.emptyArray;if(e.isJumpStatementTarget(x)){var D=e.getTargetLabel(x.parent,x.text);return D?[l(S,D,"label",x.text,void 0)]:void 0}if(e.isStaticModifier(x)&&e.isClassStaticBlockDeclaration(x.parent)){var T=x.parent.parent,C=o(T,S,p),k=C.symbol,A=C.failedAliasResolution,N=e.filter(T.members,e.isClassStaticBlockDeclaration),w=k?S.symbolToString(k,T):"",F=x.getSourceFile();return e.map(N,(t=>{var r=e.moveRangePastModifiers(t).pos;return r=e.skipTrivia(F.text,r),l(S,t,"constructor","static {}",w,!1,A,{start:r,length:"static".length})}))}var P=o(x,S,p),I=P.symbol,O=P.failedAliasResolution,M=x;if(u&&O){var R=e.forEach(f([x],(null==I?void 0:I.declarations)||e.emptyArray,!0),(t=>e.findAncestor(t,e.isAnyImportOrBareOrAccessedRequire))),L=R&&e.tryGetModuleSpecifierFromDeclaration(R);L&&(I=(_=o(L,S,p)).symbol,O=_.failedAliasResolution,M=L)}if(!I&&e.isModuleSpecifierLike(M)){var B=null===(m=r.resolvedModules)||void 0===m?void 0:m.get(M.text,e.getModeForUsageLocation(r,M));if(B)return[{name:M.text,fileName:B.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:e.createTextSpan(0,0),failedAliasResolution:O,isAmbient:e.isDeclarationFileName(B.resolvedFileName),unverified:M!==x}]}if(!I)return e.concatenate(b,((t,r)=>e.mapDefined(r.getIndexInfosAtLocation(t),(e=>e.declaration&&d(r,e.declaration))))(x,S));if(!u||!e.every(I.declarations,(e=>e.getSourceFile().fileName===r.fileName))){var j=((t,r)=>{var n=(t=>{var r=e.findAncestor(t,(t=>!e.isRightSideOfPropertyAccess(t))),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0})(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(t=>e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)))})(S,x);if(j&&(!e.isJsxOpeningLikeElement(x.parent)||!(e=>{switch(e.kind){case 171:case 180:case 175:return!0;default:return!1}})(j))){var U=d(S,j,O);if(S.getRootSymbols(I).some((t=>((t,r)=>t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol)(t,j))))return[U];var V=s(S,I,x,O,j)||e.emptyArray;return 106===x.kind?f([U],V,!0):f(f([],V,!0),[U],!1)}if(297===x.parent.kind){var K=S.getShorthandAssignmentValueSymbol(I.valueDeclaration),z=(null==K?void 0:K.declarations)?K.declarations.map((e=>c(e,S,K,x,!1,O))):e.emptyArray;return e.concatenate(z,n(S,x)||e.emptyArray)}if(e.isPropertyName(x)&&e.isBindingElement(E)&&e.isObjectBindingPattern(E.parent)&&x===(E.propertyName||E.name)){var W=e.getNameFromPropertyName(x),J=S.getTypeAtLocation(E.parent);return void 0===W?e.emptyArray:e.flatMap(J.isUnion()?J.types:[J],(e=>{var t=e.getProperty(W);return t&&s(S,t,x)}))}return e.concatenate(b,n(S,x)||s(S,I,x,O))}}}function n(t,r){var n=e.getContainingObjectLiteralElement(r);if(n){var i=n&&t.getContextualType(n.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(n,t,i,!1),(e=>s(t,e,r)))}}function i(t,r,n){var i,a,o=p(t.referencedFiles,r);if(o)return(l=n.getSourceFileFromReference(t,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=p(t.typeReferenceDirectives,r);if(s){var c=n.getResolvedTypeReferenceDirectives().get(s.fileName,s.resolutionMode||t.impliedNodeFormat);return(l=c&&n.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=p(t.libReferenceDirectives,r);if(u)return(l=n.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(i=t.resolvedModules)||void 0===i?void 0:i.size()){var d=e.getTouchingToken(t,r);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&t.resolvedModules.has(d.text,e.getModeForUsageLocation(t,d))){var _=null===(a=t.resolvedModules.get(d.text,e.getModeForUsageLocation(t,d)))||void 0===a?void 0:a.resolvedFileName,f=_||e.resolvePath(e.getDirectoryPath(t.fileName),d.text);return{file:n.getSourceFile(f),fileName:f,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!_}}}}function a(t,r,n,i){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(e=>e.symbol&&s(r,e.symbol,n,i)))}function o(e,t,r){var n=t.getSymbolAtLocation(e),i=!1;if((null==n?void 0:n.declarations)&&2097152&n.flags&&!r&&((e,t)=>79===e.kind&&(e.parent===t||268!==t.kind))(e,n.declarations[0])){var a=t.getAliasedSymbol(n);if(a.declarations)return{symbol:a};i=!0}return{symbol:n,failedAliasResolution:i}}function s(t,r,n,i,a){var o=e.filter(r.declarations,(e=>e!==a)),s=e.filter(o,(t=>!(t=>{if(!e.isAssignmentDeclaration(t))return!1;var r=e.findAncestor(t,(t=>!!e.isAssignmentExpression(t)||!e.isAssignmentDeclaration(t)&&"quit"));return!!r&&5===e.getAssignmentDeclarationKind(r)})(t))),l=e.some(s)?s:o;return(()=>{if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||134===n.kind))return u((e.find(o,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)})()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?u(o,!1):void 0)||e.map(l,(e=>c(e,t,r,n,!1,i)));function u(a,o){if(a){var s=a.filter(o?e.isConstructorDeclaration:e.isFunctionLike),l=s.filter((e=>!!e.body));return s.length?0!==l.length?l.map((e=>c(e,t,r,n))):[c(e.last(s),t,r,n,!1,i)]:void 0}}}function c(t,r,n,i,a,o){var s=r.symbolToString(n),c=e.SymbolDisplay.getSymbolKind(r,n,i),u=n.parent?r.symbolToString(n.parent,i):"";return l(r,t,c,s,u,a,o)}function l(t,r,n,i,a,o,s,c){var l=r.getSourceFile();if(!c){var d=e.getNameOfDeclaration(r)||r;c=e.createTextSpanFromNode(d,l)}return m(m({fileName:l.fileName,textSpan:c,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(c,l,e.FindAllReferences.getContextNode(r))),{isLocal:!u(t,r),isAmbient:!!(16777216&r.flags),unverified:o,failedAliasResolution:s})}function u(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(e.hasInitializer(r.parent)&&r.parent.initializer===r)return u(t,r.parent);switch(r.kind){case 167:case 172:case 173:case 169:if(e.hasEffectiveModifier(r,8))return!1;case 171:case 296:case 297:case 205:case 226:case 214:case 213:return u(t,r.parent);default:return!1}}function d(e,t,r){return c(t,e,t.symbol,t,!1,r)}function p(t,r){return e.find(t,(t=>e.textRangeContainsPositionInclusive(t,r)))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=i,t.getTypeDefinitionAtPosition=(t,r,n)=>{var i=e.getTouchingPropertyName(r,n);if(i!==r){if(e.isImportMeta(i.parent)&&i.parent.name===i)return a(t.getTypeAtLocation(i.parent),t,i.parent,!1);var c=o(i,t,!1),l=c.symbol,u=c.failedAliasResolution;if(l){var d=t.getTypeOfSymbolAtLocation(l,i),p=((t,r,n)=>{if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}})(l,d,t),_=p&&a(p,t,i,u),f=_&&0!==_.length?_:a(d,t,i,u);return f.length?f:!(111551&l.flags)&&788968&l.flags?s(t,e.skipAlias(l,t),i,u):void 0}}},t.getDefinitionAndBoundSpan=(t,n,i)=>{var a=r(t,n,i);if(a&&0!==a.length){var o=p(n.referencedFiles,i)||p(n.typeReferenceDirectives,i)||p(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.createDefinitionInfo=c,t.findReferenceInPosition=p})(e.GoToDefinition||(e.GoToDefinition={}))})(p),(e=>{!(t=>{var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(t,r){return e.arraysEqual(t,r,((e,t)=>e.kind===t.kind&&e.text===t.text))}function o(t,r){return"string"==typeof t?[e.textPart(t)]:e.flatMap(t,(t=>321===t.kind?[e.textPart(t.text)]:e.buildLinkParts(t,r)))}function s(t,r){var n=t.comment,i=t.kind,a=(t=>{switch(t){case 340:return e.parameterNamePart;case 347:return e.propertyNamePart;case 344:return e.typeParameterNamePart;case 345:case 338:return e.typeAliasNamePart;default:return e.textPart}})(i);switch(i){case 329:case 328:return d(t.class);case 344:var s=t,c=[];if(s.constraint&&c.push(e.textPart(s.constraint.getText())),e.length(s.typeParameters)){e.length(c)&&c.push(e.spacePart());var l=s.typeParameters[s.typeParameters.length-1];e.forEach(s.typeParameters,(t=>{c.push(a(t.getText())),l!==t&&c.push.apply(c,[e.punctuationPart(27),e.spacePart()])}))}return n&&c.push.apply(c,f([e.spacePart()],o(n,r),!0)),c;case 343:return d(t.typeExpression);case 345:case 338:case 347:case 340:case 346:var u=t.name;return u?d(u):void 0===n?void 0:o(n,r);default:return void 0===n?void 0:o(n,r)}function d(t){return i=t.getText(),n?i.match(/^https?$/)?f([e.textPart(i)],o(n,r),!0):f([a(i),e.spacePart()],o(n,r),!0):[e.textPart(i)];var i}}function c(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function l(t,r){switch(t.kind){case 256:case 213:case 169:case 171:case 168:case 214:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:u(n,r)};case 296:return l(t.initializer,r);case 257:case 258:case 166:case 260:case 299:case 259:return{commentOwner:t};case 237:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?(t=>{for(;212===t.kind;)t=t.expression;switch(t.kind){case 213:case 214:return t;case 226:return e.find(t.members,e.isConstructorDeclaration)}})(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:u(a,r)}:{commentOwner:t};case 305:return"quit";case 261:return 261===t.parent.kind?void 0:{commentOwner:t};case 238:return l(t.expression,r);case 221:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:u(o.right,r)}:{commentOwner:t};case 167:var s=t.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:t,parameters:s.parameters,hasReturn:u(s,r)}}}function u(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(e=>e)))}t.getJsDocCommentsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{for(var i=0,s=(t=>{switch(t.kind){case 340:case 347:return[t];case 338:case 345:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}})(t);i<s.length;i++){var c=s[i];if(!(void 0===c.comment||e.isJSDoc(c)&&345!==t.kind&&338!==t.kind&&c.tags&&c.tags.some((e=>345===e.kind||338===e.kind))&&!c.tags.some((e=>340===e.kind||341===e.kind)))){var l=o(c.comment,r);e.contains(n,l,a)||n.push(l)}}})),e.flatten(e.intersperse(n,[e.lineBreakPart()]))},t.getJsDocTagsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{var i=e.getJSDocTags(t);if(!i.some((e=>345===e.kind||338===e.kind))||i.some((e=>340===e.kind||341===e.kind)))for(var a=0,o=i;a<o.length;a++){var c=o[a];n.push({name:c.tagName.text,text:s(c,r)})}})),n},t.getJSDocTagNameCompletions=()=>r||(r=e.map(i,(t=>({name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagNameCompletionDetails=c,t.getJSDocTagCompletions=()=>n||(n=e.map(i,(t=>({name:"@".concat(t),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagCompletionDetails=c,t.getJSDocParameterNameCompletions=t=>{if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(i=>{if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((r=>r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=t=>({name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}),t.getDocCommentTemplateAtPosition=(t,r,n,i)=>{var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(r);if(o||!(s<n)){var c=((t,r)=>e.forEachAncestor(t,(e=>l(e,r))))(a,i);if(c){var u=c.commentOwner,d=c.parameters,p=c.hasReturn,_=e.hasJSDocNodes(u)&&u.jsDoc?e.lastOrUndefined(u.jsDoc):void 0;if(!(u.getStart(r)<n||_&&_!==o)){var f=((t,r)=>{for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)})(r,n),m=e.hasJSFileExtension(r.fileName),g=(d?((e,t,r,n)=>e.map(((e,i)=>{var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i,c=t?o?"{...any} ":"{any} ":"";return"".concat(r," * @param ").concat(c).concat(s).concat(n)})).join(""))(d||[],m,f,t):"")+(p?((e,t)=>"".concat(e," * @returns").concat(t))(f,t):"");if(g){var h="/**"+t+f+" * ";return{newText:h+t+g+f+" */"+(s===n?t+f:""),caretOffset:h.length}}return{newText:"/** */",caretOffset:3}}}}}}})(e.JsDoc||(e.JsDoc={}))})(p),(e=>{!(t=>{function r(e,t){switch(e.kind){case 267:case 270:case 265:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||162===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&162===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=(t,n,i,a,l,u)=>{var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var p=[],_=e=>{if(i.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach(((t,i)=>{!((e,t,n,i,a,s)=>{var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var l=0,u=n;l<u.length;l++){var d=u[l];if(r(d,i))if(e.patternContainsDots){var p=e.getFullMatch(o(d),t);p&&s.push({name:t,fileName:a,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:d})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}})(d,i,t,n,e.fileName,p)}))},f=0,m=t;f<m.length;f++)_(m[f]);return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}})(e.NavigateTo||(e.NavigateTo={}))})(p),(e=>{!(t=>{var r,n,i,a,o,s=/\s+/g,c=[],l=[],u=[];function d(){i=void 0,n=void 0,c=[],a=void 0,u=[]}function p(e){return q(e.getText(i))}function _(e){return e.node.kind}function f(e,t){e.children?e.children.push(t):e.children=[t]}function g(t){e.Debug.assert(!c.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=r;for(var n=0,i=t.statements;n<i.length;n++)k(i[n]);return S(),e.Debug.assert(!a&&!c.length),r}function h(e,t){f(a,y(e,t))}function y(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function v(t){o||(o=new e.Map),o.set(t,!0)}function b(e){for(var t=0;t<e;t++)S()}function x(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--)E(t,i=n[o]);return[n.length-1,n[0]]}function E(e,t){var r=y(e,t);f(a,r),c.push(a),l.push(o),o=void 0,a=r}function S(){a.children&&(A(a.children,a),O(a.children)),a=c.pop(),o=l.pop()}function D(e,t,r){E(e,r),k(t),S()}function T(t){t.initializer&&(e=>{switch(e.kind){case 214:case 213:case 226:return!0;default:return!1}})(t.initializer)?(E(t),e.forEachChild(t.initializer,k),S()):D(t,t.initializer)}function C(t){return!e.hasDynamicName(t)||221!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 171:var i=t;D(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&h(c)}break;case 169:case 172:case 173:case 168:C(t)&&D(t,t.body);break;case 167:C(t)&&T(t);break;case 166:C(t)&&h(t);break;case 267:var l=t;l.name&&h(l.name);var u=l.namedBindings;if(u)if(268===u.kind)h(u);else for(var d=0,p=u.elements;d<p.length;d++)h(p[d]);break;case 297:D(t,t.name);break;case 298:var _=t.expression;e.isIdentifier(_)?h(t,_):h(t);break;case 203:case 296:case 254:var f=t;e.isBindingPattern(f.name)?k(f.name):T(f);break;case 256:var m=t.name;m&&e.isIdentifier(m)&&v(m.text),D(t,t.body);break;case 214:case 213:D(t,t.body);break;case 260:E(t);for(var g=0,y=t.members;g<y.length;g++)W(w=y[g])||h(w);S();break;case 257:case 226:case 258:E(t);for(var A=0,N=t.members;A<N.length;A++){var w;k(w=N[A])}S();break;case 261:D(t,z(t).body);break;case 271:var F=t.expression;(f=e.isObjectLiteralExpression(F)||e.isCallExpression(F)?F:e.isArrowFunction(F)||e.isFunctionExpression(F)?F.body:void 0)?(E(t),k(f),S()):h(t);break;case 275:case 265:case 176:case 174:case 175:case 259:h(t);break;case 208:case 221:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void D(t,t.right);case 6:case 3:var I=(U=t).left,O=3===P?I.expression:I,M=0,R=void 0;return e.isIdentifier(O.expression)?(v(O.expression.text),R=O.expression):(M=(r=x(U,O.expression))[0],R=r[1]),6===P?e.isObjectLiteralExpression(U.right)&&U.right.properties.length>0&&(E(U,R),e.forEachChild(U.right,k),S()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?D(t,U.right,R):(E(U,R),D(t,U.right,I.name),S()),void b(M);case 7:case 9:var L=t,B=(R=7===P?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),j=x(t,R);return M=j[0],E(t,j[1]),E(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),k(t.arguments[2]),S(),S(),void b(M);case 5:var U,V=(I=(U=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&o&&o.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?D(t,U.right,V):e.isBindableStaticAccessExpression(I)&&(E(U,V),D(U.left,U.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(t=>{e.forEach(t.tags,(t=>{e.isJSDocTypeAlias(t)&&h(t)}))})),e.forEachChild(t,k)}}function A(t,r){var n=new e.Map;e.filterMutate(t,((t,i)=>{var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(w(u=l[c],t,i,r))return!1}return s.push(t),!0}return!w(u=s,t,i,r)&&(n.set(o,[u,t]),!0)}))}t.getNavigationBarItems=(t,r)=>{n=r,i=t;try{return e.map((a=g(t),o=[],function e(t){if((e=>{if(e.children)return!0;switch(_(e)){case 257:case 226:case 260:case 258:case 261:case 305:case 259:case 345:case 338:return!0;case 214:case 256:case 213:return(e=>{if(!e.node.body)return!1;switch(_(e.parent)){case 262:case 305:case 169:case 171:return!0;default:return!1}})(e);default:return!1}})(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++)e(n[r])}(a),o),j)}finally{d()}var a,o},t.getNavigationTree=(e,t)=>{n=t,i=e;try{return B(g(e))}finally{d()}};var N=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function w(t,r,n,i){return!!((t,r,n,i)=>{function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(N[o]&&N[s]||a(t.node)&&N[o]||a(r.node)&&N[s]||e.isClassDeclaration(t.node)&&F(t.node)&&N[o]||e.isClassDeclaration(r.node)&&N[s]||e.isClassDeclaration(t.node)&&F(t.node)&&a(r.node)||e.isClassDeclaration(r.node)&&a(t.node)&&F(t.node)){var c=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||a(t.node)||a(r.node)){var l=a(t.node)?t.node:a(r.node)?r.node:void 0;if(void 0!==l){var u=y(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),l));u.indent=t.indent+1,u.children=t.node===l?t.children:r.children,t.children=t.node===l?e.concatenate([u],r.children||[r]):e.concatenate(t.children||[m({},t)],[u])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[m({},t)],r.children||[r]),t.children&&(A(t.children,t),O(t.children)));c=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&A(t.children,t);var d=r.node;return i.children[n-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:d.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==o})(t,r,n,i)||!!((t,r,n)=>{if(t.kind!==r.kind||t.parent!==r.parent&&(!P(t,n)||!P(r,n)))return!1;switch(t.kind){case 167:case 169:case 172:case 173:return e.isStatic(t)===e.isStatic(r);case 261:return I(t,r)&&K(t)===K(r);default:return!0}})(t.node,r.node,i)&&(((t,r)=>{var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(A(t.children,t),O(t.children))})(t,r),!0)}function F(e){return!!(8&e.flags)}function P(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function I(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(261!==e.body.kind||I(e.body,t.body)):e.body===t.body}function O(e){e.sort(M)}function M(t,r){return e.compareStringsCaseSensitiveUI(R(t.node),R(r.node))||e.compareValues(_(t),_(r))}function R(t){if(261===t.kind)return V(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 213:case 214:case 226:return $(t);default:return}}function L(t,r){if(261===t.kind)return q(V(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"[".concat(p(r.argumentExpression),"]"):p(r);if(n.length>0)return q(n)}switch(t.kind){case 305:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"<global>";case 271:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 214:case 256:case 213:case 257:case 226:return 512&e.getSyntacticModifierFlags(t)?"default":$(t);case 171:return"constructor";case 175:return"new()";case 174:return"()";case 176:return"[]";default:return"<unknown>"}}function B(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:H(t.node),spans:U(t),nameSpan:t.name&&J(t.name),childItems:e.map(t.children,B)}}function j(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:H(t.node),spans:U(t),childItems:e.map(t.children,(t=>({text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:U(t),childItems:u,indent:0,bolded:!1,grayed:!1})))||u,indent:t.indent,bolded:!1,grayed:!1}}function U(e){var t=[J(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(J(i))}return t}function V(t){return e.isAmbientModule(t)?e.getTextOfNode(t.name):K(t)}function K(t){for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&261===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function z(t){return t.body&&e.isModuleDeclaration(t.body)?z(t.body):t}function W(e){return!e.name||162===e.name.kind}function J(t){return 305===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function H(t){return t.parent&&254===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function $(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return q(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return q(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(s,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=G(r.expression);if(void 0!==n){if((n=q(n)).length>150)return"".concat(n," callback");var a=q(e.mapDefined(r.arguments,(t=>e.isStringLiteralLike(t)?t.getText(i):void 0)).join(", "));return"".concat(n,"(").concat(a,") callback")}}return"<function>"}function G(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=G(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function q(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(p),(e=>{!(t=>{function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s];n(t,l,i)&&o++,a[o]||(a[o]=[]),a[o].push(l)}return a}function n(e,t,r){var n=t.getFullStart(),i=t.getStart();r.setText(e.text,n,i-n);for(var a=0;r.getTokenPos()<i;)if(4===r.scan()&&++a>=2)return!0;return!1}function i(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(t=>e.isStringLiteral(t)&&t.text===n))}function a(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function o(t){var r;if(0===t.length)return t;var n=(t=>{for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,l=s.importClause,u=l.name,d=l.namedBindings;u&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}})(t),i=n.importWithoutClause,a=n.typeOnlyImports,o=n.regularImports,s=[];i&&s.push(i);for(var u=0,d=[o,a];u<d.length;u++){var _=d[u],f=_===a,m=_.defaultImports,h=_.namespaceImports,y=_.namedImports;if(f||1!==m.length||1!==h.length||0!==y.length){for(var v=0,b=e.stableSort(h,((e,t)=>p(e.importClause.namedBindings.name,t.importClause.namedBindings.name)));v<b.length;v++){var x=b[v];s.push(c(x,void 0,x.importClause.namedBindings))}if(0!==m.length||0!==y.length){var E=void 0,S=[];if(1===m.length)E=m[0].importClause.name;else for(var D=0,T=m;D<T.length;D++)N=T[D],S.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),N.importClause.name));S.push.apply(S,g(y));var C=l(S),k=m.length>0?m[0]:y[0],A=0===C.length?E?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&E&&A?(s.push(c(k,E,void 0)),s.push(c(null!==(r=y[0])&&void 0!==r?r:k,void 0,A))):s.push(c(k,E,A))}}else{var N=m[0];s.push(c(N,N.importClause.name,h[0].importClause.namedBindings))}}return s}function s(t){if(0===t.length)return t;var r=(e=>{for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}})(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var s=0,c=[i,a];s<c.length;s++){var u=c[s];if(0!==u.length){var d=[];d.push.apply(d,e.flatMap(u,(t=>t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray)));var p=l(d),_=u[0];o.push(e.factory.updateExportDeclaration(_,_.decorators,_.modifiers,_.isTypeOnly,_.exportClause&&(e.isNamedExports(_.exportClause)?e.factory.updateNamedExports(_.exportClause,p):e.factory.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.assertClause))}}return o}function c(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier,t.assertClause)}function l(t){return e.stableSort(t,u)}function u(t,r){return e.compareBooleans(t.isTypeOnly,r.isTypeOnly)||p(t.propertyName||t.name,r.propertyName||r.name)||p(t.name,r.name)}function d(t,r){var n=void 0===t?void 0:a(t),i=void 0===r?void 0:a(r);return e.compareBooleans(void 0===n,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(n),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(n,i)}function p(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function _(t){var r;switch(t.kind){case 265:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 266:return t.moduleSpecifier;case 237:return t.declarationList.declarations[0].initializer.arguments[0]}}function f(t,r){return d(_(t),_(r))||((t,r)=>e.compareValues(m(t),m(r)))(t,r)}function m(e){var t;switch(e.kind){case 266:return e.importClause?e.importClause.isTypeOnly?1:268===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 265:return 5;case 237:return 6}}function g(t){return e.flatMap(t,(t=>e.map((t=>{var r;return(null===(r=t.importClause)||void 0===r?void 0:r.namedBindings)&&e.isNamedImports(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0})(t),(t=>t.name&&t.propertyName&&t.name.escapedText===t.propertyName.escapedText?e.factory.updateImportSpecifier(t,t.isTypeOnly,void 0,t.name):t))))}t.organizeImports=(t,n,l,u,p,_)=>{var m=e.textChanges.ChangeTracker.fromContext({host:l,formatContext:n,preferences:p}),g=r=>e.stableSort(o(((t,r,n,a)=>{if(a)return t;for(var o=n.getTypeChecker(),s=n.getCompilerOptions(),l=o.getJsxNamespace(r),u=o.getJsxFragmentFactory(r),d=!!(2&r.transformFlags),p=[],_=0,f=t;_<f.length;_++){var m=f[_],g=m.importClause,h=m.moduleSpecifier;if(g){var y=g.name,v=g.namedBindings;if(y&&!x(y)&&(y=void 0),v)if(e.isNamespaceImport(v))x(v.name)||(v=void 0);else{var b=v.elements.filter((e=>x(e.name)));b.length<v.elements.length&&(v=b.length?e.factory.updateNamedImports(v,b):void 0)}y||v?p.push(c(m,y,v)):i(r,h)&&(r.isDeclarationFile?p.push(e.factory.createImportDeclaration(m.decorators,m.modifiers,void 0,h,void 0)):p.push(m))}else p.push(m)}return p;function x(t){return d&&(t.text===l||u&&t.text===u)&&e.jsxModeNeedsExplicitImport(s.jsx)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,o,r)}})(r,t,u,_)),((e,t)=>f(e,t)));r(t,t.statements.filter(e.isImportDeclaration)).forEach((e=>b(e,g))),b(t.statements.filter(e.isExportDeclaration),s);for(var h=0,y=t.statements.filter(e.isAmbientModule);h<y.length;h++){var v=y[h];v.body&&(r(t,v.body.statements.filter(e.isImportDeclaration)).forEach((e=>b(e,g))),b(v.body.statements.filter(e.isExportDeclaration),s))}return m.getChanges();function b(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var o=e.group(r,(e=>a(e.moduleSpecifier))),s=e.stableSort(o,((e,t)=>d(e[0].moduleSpecifier,t[0].moduleSpecifier))),c=e.flatMap(s,(e=>a(e[0].moduleSpecifier)?i(e):e));if(0===c.length)m.deleteNodes(t,r,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var u={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(l,n.options)};m.replaceNodeWithNodes(t,r[0],c,u);var p=m.nodeHasTrailingComment(t,r[0],u);m.deleteNodes(t,r.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},t.coalesceImports=o,t.coalesceExports=s,t.compareImportOrExportSpecifiers=u,t.compareModuleSpecifiers=d,t.importsAreSorted=t=>e.arrayIsSorted(t,f),t.importSpecifiersAreSorted=t=>e.arrayIsSorted(t,u),t.getImportDeclarationInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,f);return n<0?~n:n},t.getImportSpecifierInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,u);return n<0?~n:n},t.compareImportsOrRequireStatements=f})(e.OrganizeImports||(e.OrganizeImports={}))})(p),(e=>{!(t=>{t.collectElements=(t,r)=>{var l=[];return((t,r,n)=>{for(var l=40,u=0,d=f(f([],t.statements,!0),[t.endOfFileToken],!1),p=d.length;u<p;){for(;u<p&&!e.isAnyImportSyntax(d[u]);)g(d[u]),u++;if(u===p)break;for(var _=u;u<p&&e.isAnyImportSyntax(d[u]);)a(d[u],t,r,n),u++;var m=u-1;m!==_&&n.push(o(e.findChildOfKind(d[_],100,t).getStart(t),d[m].getEnd(),"imports"))}function g(u){var d;if(0!==l){r.throwIfCancellationRequested(),(e.isDeclaration(u)||e.isVariableStatement(u)||e.isReturnStatement(u)||e.isCallOrNewExpression(u)||1===u.kind)&&a(u,t,r,n),e.isFunctionLike(u)&&e.isBinaryExpression(u.parent)&&e.isPropertyAccessExpression(u.parent.left)&&a(u.parent.left,t,r,n),(e.isBlock(u)||e.isModuleBlock(u))&&i(u.statements.end,t,r,n),(e.isClassLike(u)||e.isInterfaceDeclaration(u))&&i(u.members.end,t,r,n);var p=((t,r)=>{switch(t.kind){case 235:if(e.isFunctionLike(t.parent))return((t,r,n)=>{var i=((t,r,n)=>{if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)})(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&s(i,a,t,n,214!==t.kind)})(t.parent,t,r);switch(t.parent.kind){case 240:case 243:case 244:case 242:case 239:case 241:case 248:case 292:return u(t.parent);case 252:var n=t.parent;if(n.tryBlock===t)return u(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return u(i)}default:return c(e.createTextSpanFromNode(t,r),"code")}case 262:return u(t.parent);case 257:case 226:case 258:case 260:case 263:case 182:case 201:return u(t);case 184:return u(t,!1,!e.isTupleTypeNode(t.parent),22);case 289:case 290:return(a=t.statements).length?c(e.createTextSpanFromRange(a),"code"):void 0;case 205:return l(t);case 204:return l(t,22);case 278:return(t=>{var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return c(n,"code",n,!1,"<"+i+">...</"+i+">")})(t);case 282:return(t=>{var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...</>")})(t);case 279:case 280:return(e=>{if(0!==e.properties.length)return o(e.getStart(r),e.getEnd(),"code")})(t.attributes);case 223:case 14:return(e=>{if(14!==e.kind||0!==e.text.length)return o(e.getStart(r),e.getEnd(),"code")})(t);case 202:return u(t,!1,!e.isBindingElement(t.parent),22);case 214:return(t=>{if(!(e.isBlock(t.body)||e.isParenthesizedExpression(t.body)||e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r)))return c(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))})(t);case 208:return(t=>{if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return s(n,i,t,r,!1,!0)}})(t);case 212:return(t=>{if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return c(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))})(t)}var a;function l(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(n,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,c,r);return l&&u&&s(l,u,n,r,i,a)}})(u,t);p&&n.push(p),l--,e.isCallExpression(u)?(l++,g(u.expression),l--,u.arguments.forEach(g),null===(d=u.typeArguments)||void 0===d||d.forEach(g)):e.isIfStatement(u)&&u.elseStatement&&e.isIfStatement(u.elseStatement)?(g(u.expression),g(u.thenStatement),l++,g(u.elseStatement),l--):u.forEachChild(g),l++}}})(t,r,l),((t,r)=>{for(var i=[],a=0,o=t.getLineStarts();a<o.length;a++){var s=o[a],l=t.getLineEndOfPosition(s),u=n(t.text.substring(s,l));if(u&&!e.isInComment(t,s))if(u[1]){var d=i.pop();d&&(d.textSpan.length=l-d.textSpan.start,d.hintSpan.length=l-d.textSpan.start,r.push(d))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",s),l);i.push(c(p,"region",p,!1,u[2]||"#region"))}}})(t,l),l.sort(((e,t)=>e.textSpan.start-t.textSpan.start))};var r=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(t){return t=e.trimStringStart(t),e.startsWith(t,"//")?(t=e.trimString(t.slice(2)),r.exec(t)):null}function i(t,r,i,a){var s=e.getLeadingCommentRanges(r.text,t);if(s){for(var c=-1,l=-1,u=0,d=r.getFullText(),p=0,_=s;p<_.length;p++){var f=_[p],m=f.kind,g=f.pos,h=f.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(d.slice(g,h))){y(),u=0;break}0===u&&(c=g),l=h,u++;break;case 3:y(),a.push(o(g,h,"comment")),u=0;break;default:e.Debug.assertNever(m)}}y()}function y(){u>1&&a.push(o(c,l,"comment"))}}function a(t,r,n,a){e.isJsxText(t)||i(t.pos,r,n,a)}function o(t,r,n){return c(e.createTextSpanFromBounds(t,r),n)}function s(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function c(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(p),(e=>{var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=((e,t)=>{for(var r=e.length-t.length,n=r=>{if(D(t,((t,n)=>p(e.charCodeAt(n+r))===t)))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1})(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,_=n(i,o);d<_.length;d++){var f=_[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&u(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!l(i,m,a,!1)||!l(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}function a(e,t,r){if(D(t.totalTextChunk.text,(e=>32!==e&&42!==e))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],r));return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&S(0,i.length,(a=>((e,t,r)=>r?p(e)===p(t):e===t)(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)))}function l(t,r,n,i){for(var a=n.characterSpans,o=0,s=0;;){if(s===a.length)return!0;if(o===r.length)return!1;for(var l=r[o],d=!1;s<a.length;s++){var p=a[s];if(d&&(!u(n.text.charCodeAt(a[s-1].start))||!u(n.text.charCodeAt(a[s].start))))break;if(!c(t,l,n.text,i,p))break;d=!0,l=e.createTextSpan(l.start+p.length,l.length-p.length)}o++}}function u(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)u(a=e.charCodeAt(i))||d(a)||_(a)||95===a||36===a?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0);var a;return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return y(e,!1)}function h(e){return y(e,!0)}function y(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=_(t.charCodeAt(a-1)),s=_(t.charCodeAt(a)),c=E(t,r,a),l=r&&x(t,a,i);(v(t.charCodeAt(a-1))||v(t.charCodeAt(a))||o!==s||c||l)&&(b(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return b(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function v(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function b(e,t,r){return D(e,(e=>v(e)&&95!==e),t,r)}function x(e,t,r){return t!==r&&t+1<e.length&&u(e.charCodeAt(t))&&d(e.charCodeAt(t+1))&&D(e,u,r,t)}function E(e,t,r){var n=u(e.charCodeAt(r-1));return u(e.charCodeAt(r))&&(!t||!n)}function S(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function D(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),S(r,n,(r=>t(e.charCodeAt(r),r)))}!(e=>{e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"})(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=t=>{var r=new e.Map,n=t.trim().split(".").map((e=>{return{totalTextChunk:m(t=e.trim()),subWordTextChunks:f(t)};var t}));if(!n.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(t,i)=>((t,r,n,i)=>{var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],n[c],i));return s}})(t,i,n,r),getMatchForLastSegmentOfPattern:t=>a(t,e.last(n),r),patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=h})(p),(e=>{e.preProcessFile=(t,r,n)=>{void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(u=!0)}function m(){var t=e.scanner.getToken();return 135===t&&(141===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(152===t&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 156!==t&&(41===t||18===t||79===t||e.isKeyword(t))}))&&(t=d()),79===t||e.isKeyword(t))if(156===(t=d())){if(10===(t=d()))return _(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&156===(t=d())&&10===(t=d())&&_()}else 41===t&&127===(t=d())&&(79===(t=d())||e.isKeyword(t))&&156===(t=d())&&10===(t=d())&&_()}return!0}return!1}function h(){var t=e.scanner.getToken();if(93===t){if(f(),152===(t=d())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 41===t||18===t}))&&(t=d()),18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&156===(t=d())&&10===(t=d())&&_()}else if(41===t)156===(t=d())&&10===(t=d())&&_();else if(100===t&&(152===(t=d())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 79===t||e.isKeyword(t)}))&&(t=d()),(79===t||e.isKeyword(t))&&63===(t=d())&&y(!0)))return!0;return!0}return!1}function y(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 146===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&_(),!0)}function v(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||_(),t=d();return!0}return!1}if(r&&(()=>{for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()],i=e.scanner.scan();e:for(;e.length(r);){switch(i){case 1:break e;case 100:g();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}i=e.scanner.scan()}d()}m()||g()||h()||n&&(y(!1,!0)||v())||d()}e.scanner.setText(void 0)})(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var b=0,x=i;b<x.length;b++){var E=x[b];c.push(E.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(i)for(var D=0,T=i;D<T.length;D++)0===(E=T[D]).depth?(S||(S=[]),S.push(E.ref.fileName)):c.push(E.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}})(p),(e=>{!(t=>{function r(e,t,r,n,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:i(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function i(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}function a(t){switch(t.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=(t,i,o,s)=>{var c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,o));if(a(c)){var l=((t,i,a,o,s)=>{var c=i.getSymbolAtLocation(t);if(c){var l=c.declarations;if(l&&0!==l.length){if(l.some((t=>((t,r)=>{var n=r.getSourceFile();return t.isSourceFileDefaultLibrary(n)&&e.fileExtensionIs(n.fileName,".d.ts")})(o,t))))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&88===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?((t,r,i)=>{if(!e.isExternalModuleNameRelative(t.text))return n(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=i.declarations&&e.find(i.declarations,e.isSourceFile);if(a){var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=t.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(t.getStart(r)+1+l,t.text.length-l)}}})(t,a,c):void 0;var u=e.SymbolDisplay.getSymbolKind(i,c,t),d=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&162===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return r(d||i.symbolToString(c),d||i.getFullyQualifiedName(c),u,e.SymbolDisplay.getSymbolModifiers(i,c),t,a)}}}else if(e.isStringLiteralLike(t)){var p=e.getContextualTypeFromParentOrAncestorTypeNode(t,i);if(p&&(128&p.flags||1048576&p.flags&&e.every(p.types,(e=>!!(128&e.flags)))))return r(t.text,t.text,"string","",t,a)}else if(e.isLabelName(t)){var _=e.getTextOfNode(t);return r(_,_,"label","",t,a)}})(c,t.getTypeChecker(),i,t,s);if(l)return l}return n(e.Diagnostics.You_cannot_rename_this_element)},t.nodeIsEligibleForRename=a})(e.Rename||(e.Rename={}))})(p),(e=>{!(t=>{function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=(t,n)=>{var a,o,s,u={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},d=n;e:for(;;){var p=i(d);if(!p.length)break;for(var _=0;_<p.length;_++){var f=p[_-1],g=p[_],h=p[_+1];if(e.getTokenPosOfNode(g,n,!0)>t)break e;var y=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,g.end));if(y&&2===y.kind&&S(y.pos,y.end),r(n,t,g)){if(e.isBlock(g)||e.isTemplateSpan(g)||e.isTemplateHead(g)||e.isTemplateTail(g)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(g)&&e.isVariableStatement(d)||e.isSyntaxList(g)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(g)&&e.isSyntaxList(d)&&1===p.length||e.isJSDocTypeExpression(g)||e.isJSDocSignature(g)||e.isJSDocTypeLiteral(g)){d=g;break}e.isTemplateSpan(d)&&h&&e.isTemplateMiddleOrTemplateTail(h)&&E(g.getFullStart()-"${".length,h.getStart()+"}".length);var v=e.isSyntaxList(g)&&(18===(s=(o=f)&&o.kind)||22===s||20===s||280===s)&&c(h)&&!e.positionsAreOnSameLine(f.getStart(),h.getStart(),n),b=v?f.getEnd():g.getStart(),x=v?h.getStart():l(n,g);e.hasJSDocNodes(g)&&(null===(a=g.jsDoc)||void 0===a?void 0:a.length)&&E(e.first(g.jsDoc).getStart(),x),E(b,x),(e.isStringLiteral(g)||e.isTemplateLiteral(g))&&E(b+1,x-1),d=g;break}if(_===p.length-1)break e}}return u;function E(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!u||!e.textSpansEqual(i,u.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(u=m({textSpan:i},u&&{parent:u}))}}function S(e,t){E(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;E(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return a(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],c=r.slice(1),l=e.Debug.checkDefined(c.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=a(c,(e=>e===t.readonlyToken||145===e.kind||e===t.questionToken||57===e.kind));return[i,s(o(a(u,(e=>{var t=e.kind;return 22===t||163===t||23===t})),(e=>58===e.kind))),l]}if(e.isPropertySignature(t))return o(c=a(t.getChildren(),(r=>r===t.name||e.contains(t.modifiers,r))),(e=>58===e.kind));if(e.isParameter(t)){var d=a(t.getChildren(),(e=>e===t.dotDotDotToken||e===t.name));return o(a(d,(e=>e===d[0]||e===t.questionToken)),(e=>63===e.kind))}return e.isBindingElement(t)?o(t.getChildren(),(e=>63===e.kind)):t.getChildren()}function a(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(s(r)),r=void 0),n.push(o))}return r&&n.push(s(r)),n}function o(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],c=e.last(t),l=n&&26===c.kind,u=t.slice(i+1,l?t.length-1:void 0),d=e.compact([a.length?s(a):void 0,o,u.length?s(u):void 0]);return l?d.concat(c):d}function s(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function c(e){var t=e&&e.kind;return 19===t||23===t||21===t||281===t}function l(e,t){switch(t.kind){case 340:case 338:case 347:case 345:case 342:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))})(p),(e=>{!(t=>{var r,n;function i(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function a(t,r,n){var i=((t,r)=>{if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:l(n,t)}})(t,n);if(i){var a=i.list,o=i.argumentIndex,s=((t,r)=>{var n=t.getChildren(),i=e.countWhere(n,(e=>27!==e.kind));return!r&&n.length>0&&27===e.last(n).kind&&i++,i})(a,e.isInString(n,r,t));return 0!==o&&e.Debug.assertLessThan(o,s),{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:((t,r)=>{var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)})(a,n)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:p,argumentIndex:l,argumentCount:d}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?u(i,0,n):void 0;if(e.isTemplateHead(t)&&210===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(223===_.kind),u(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return u(f,l=((t,r,n,i)=>(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1))(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,h-g),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:p=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.parent)?s(t.parent):t}function c(t){return e.isBinaryExpression(t.left)?c(t.left)+1:2}function l(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function u(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:d(t,n),argumentIndex:r,argumentCount:i}}function d(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();return 223===n.kind&&0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)),e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function _(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!(e=>{e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"})(r||(r={})),t.getSignatureHelpItems=(t,r,n,l,u)=>{var d=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var f=!!l&&"characterTyped"===l.kind;if(!f||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var g=!!l&&"invoked"===l.kind,v=((t,r,n,i,l)=>{for(var u=t=>{e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(()=>"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))));var l=((t,r,n,i)=>((t,r,n,i)=>{var o=((t,r,n,i)=>{if(20===t.kind||27===t.kind){var o=t.parent;switch(o.kind){case 212:case 169:case 213:case 214:var l=a(t,n,r);if(!l)return;var u=l.argumentIndex,d=l.argumentCount,p=l.argumentsSpan,_=e.isMethodDeclaration(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return _&&{contextualType:_,argumentIndex:u,argumentCount:d,argumentsSpan:p};case 221:var f=s(o),m=i.getContextualType(f),g=20===t.kind?0:c(o)-1,h=c(f);return m&&{contextualType:m,argumentIndex:g,argumentCount:h,argumentsSpan:e.createTextSpanFromNode(o)};default:return}}})(t,n,r,i);if(o){var l=o.contextualType,u=o.argumentIndex,d=o.argumentCount,p=o.argumentsSpan,_=l.getNonNullableType(),f=_.symbol;if(void 0!==f){var m,g=e.lastOrUndefined(_.getCallSignatures());return void 0===g?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:g,node:t,symbol:(m=f,"__type"===m.name&&e.firstDefined(m.declarations,(t=>e.isFunctionTypeNode(t)?t.parent.symbol:void 0))||m)},argumentsSpan:p,argumentIndex:u,argumentCount:d}}}})(t,r,n,i)||o(t,r,n))(t,r,n,i);if(l)return{value:l}},d=t;!e.isSourceFile(d)&&(l||!e.isBlock(d));d=d.parent){var p=u(d);if("object"==typeof p)return p.value}})(p,n,r,d,g);if(v){u.throwIfCancellationRequested();var b=((t,r,n,a,o)=>{var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!((t,r,n)=>{if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 29:return i(t,n,r.expression);default:return!1}})(a,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!i(a,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}})(v,d,r,p,f);return u.throwIfCancellationRequested(),b?d.runWithCancellationToken(u,(e=>0===b.kind?h(b.candidates,b.resolvedSignature,v,r,e):((e,t,r,n)=>{var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[y(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0})(b.symbol,v,r,e))):e.isSourceFileJS(r)?((t,r,n)=>{if(2!==t.invocation.kind){var i=_(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(r=>e.firstDefined(r.getNamedDeclarations().get(a),(e=>{var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(e=>h(a,a[0],t,r,e,!0)))}))))}})(v,t,u):void 0}}}},(e=>{e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"})(n||(n={})),t.getArgumentInfoForCompletions=(e,t,r)=>{var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var g=70246400;function h(t,r,n,i,a,o){var s,c=n.isTypeParameterList,l=n.argumentCount,u=n.argumentsSpan,d=n.invocation,p=n.argumentIndex,g=m(d),h=2===d.kind?d.symbol:a.getSymbolAtLocation(_(d))||o&&(null===(s=r.declaration)||void 0===s?void 0:s.symbol),y=h?e.symbolToDisplayParts(a,h,o?i:void 0,void 0):e.emptyArray,E=e.map(t,(t=>((t,r,n,i,a,o)=>{var s=(n?b:x)(t,i,a,o);return e.map(s,(n=>{var o=n.isVariadic,s=n.parameters,c=n.prefix,l=n.suffix,u=f(f([],r,!0),c,!0),d=f(f([],l,!0),((t,r,n)=>e.mapToDisplayParts((e=>{e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})))(t,a,i),!0),p=t.getDocumentationComment(i),_=t.getJsDocTags();return{isVariadic:o,prefixDisplayParts:u,suffixDisplayParts:d,separatorDisplayParts:v,parameters:s,documentation:p,tags:_}}))})(t,y,c,a,g,i)));0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,D=0,T=0;T<E.length;T++){var C=E[T];if(t[T]===r&&(S=D,C.length>1))for(var k=0,A=0,N=C;A<N.length;A++){var w=N[A];if(w.isVariadic||w.parameters.length>=l){S=D+k;break}k++}D+=C.length}e.Debug.assert(-1!==S);var F={items:e.flatMapToMutable(E,e.identity),applicableSpan:u,selectedItemIndex:S,argumentIndex:p,argumentCount:l},P=F.items[S];if(P.isVariadic){var I=e.findIndex(P.parameters,(e=>!!e.isRest));-1<I&&I<P.parameters.length-1?F.argumentIndex=P.parameters.length:F.argumentIndex=Math.min(F.argumentIndex,P.parameters.length-1)}return F}function y(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map((e=>E(e,n,i,a,s))),l=t.getDocumentationComment(n),u=t.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:f(f([],o,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:v,parameters:c,documentation:l,tags:u}}var v=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map((e=>E(e,r,n,i,o))),c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,g)]:[];return r.getExpandedParameters(t).map((t=>{var a=e.factory.createNodeArray(f(f([],c,!0),e.map(t,(e=>r.symbolToParameterDeclaration(e,n,g))),!0)),l=e.mapToDisplayParts((e=>{o.writeList(2576,a,i,e)}));return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(29)],suffix:f([e.punctuationPart(31)],l,!0)}}))}function x(t,r,n,i){var a=e.createPrinter({removeComments:!0}),o=e.mapToDisplayParts((o=>{if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((e=>r.typeParameterToDeclaration(e,n,g))));a.writeList(53776,s,i,o)}})),s=r.getExpandedParameters(t),c=r.hasEffectiveRestParameter(t)?1===s.length?e=>!0:e=>!!(e.length&&32768&e[e.length-1].checkFlags):e=>!1;return s.map((t=>({isVariadic:c(t),parameters:t.map((t=>((t,r,n,i,a)=>{var o=e.mapToDisplayParts((e=>{var o=r.symbolToParameterDeclaration(t,n,g);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}})(t,r,n,i,a))),prefix:f(f([],o,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]})))}function E(t,r,n,i,a){var o=e.mapToDisplayParts((e=>{var o=r.typeParameterToDeclaration(t,n,g);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))})(p),(e=>{!(t=>{function r(e){return"literals"===e.includeInlayParameterNameHints}t.provideInlayHints=t=>{var n=t.file,i=t.program,a=t.span,o=t.cancellationToken,s=t.preferences,c=n.text,l=i.getCompilerOptions(),u=i.getTypeChecker(),d=[];return function t(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 169:case 214:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&!e.isTypeNode(i))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?(t=>{if(t.initializer&&!e.isBindingPattern(t.name)&&!e.getEffectiveTypeAnnotationNode(t)){var r=u.getTypeAtLocation(t);if(!f(r)){var n=b(r);n&&_(n,t.name.end)}}})(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?(e=>{if(!e.initializer){var t,r,n=u.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,d.push({text:"= ".concat(v(t,30)),position:r,kind:"Enum",whitespaceBefore:!0}))}})(i):(e=>"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints)(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?(t=>{var n=t.arguments;if(n&&n.length){var i=[],a=u.getResolvedSignatureForSignatureHelp(t,i);if(a&&i.length)for(var o=0;o<n.length;++o){var c=n[o],l=e.skipParentheses(c);if(!r(s)||h(l)){var d=u.getParameterIdentifierNameAtPosition(a,o);if(d){var _=d[0],f=d[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(l,_)&&!f)continue;var y=e.unescapeLeadingUnderscores(_);if(g(l,y))continue;p(y,c.getStart(),f)}}}}})(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&(t=>{var r=u.getSignatureFromDeclaration(t);if(r)for(var n=0;n<t.parameters.length&&n<r.parameters.length;++n){var i=t.parameters[n];if(!e.getEffectiveTypeAnnotationNode(i)){var a=y(r.parameters[n]);a&&_(a,i.questionToken?i.questionToken.end:i.name.end)}}})(i),s.includeInlayFunctionLikeReturnTypeHints&&(t=>e.isArrowFunction(t)||e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)||e.isGetAccessorDeclaration(t))(i)&&(t=>{if((!e.isArrowFunction(t)||e.findChildOfKind(t,20,n))&&!e.getEffectiveReturnTypeNode(t)&&t.body){var r=u.getSignatureFromDeclaration(t);if(r){var i=u.getReturnTypeOfSignature(r);if(!f(i)){var a=b(i);a&&_(a,(t=>{var r=e.findChildOfKind(t,21,n);return r?r.end:t.parameters.end})(t))}}}})(i)),e.forEachChild(i,t)}}(n),d;function p(e,t,r){d.push({text:"".concat(r?"...":"").concat(v(e,30),":"),position:t,kind:"Parameter",whitespaceAfter:!0})}function _(e,t){d.push({text:": ".concat(v(e,30)),position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(t,r){return e.isIdentifier(t)?t.text===r:!!e.isPropertyAccessExpression(t)&&t.name.text===r}function g(t,r){if(!e.isIdentifierText(r,l.target,e.getLanguageVariant(n.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,t.pos);if(!(null==i?void 0:i.length))return!1;var a=(e=>new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$")))(r);return e.some(i,(e=>a.test(c.substring(e.pos,e.end))))}function h(t){switch(t.kind){case 219:var r=t.operand;return e.isLiteralExpression(r)||e.isIdentifier(r)&&e.isInfinityOrNaNString(r.escapedText);case 110:case 95:case 104:case 14:case 223:return!0;case 79:var n=t.escapedText;return(e=>"undefined"===e)(n)||e.isInfinityOrNaNString(n)}return e.isLiteralExpression(t)}function y(t){var r=t.valueDeclaration;if(r&&e.isParameter(r)){var n=u.getTypeOfSymbolAtLocation(t,r);if(!f(n))return b(n)}}function v(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((i=>{var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}})(e.InlayHints||(e.InlayHints={}))})(p),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==d){var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:(e,t)=>l(e).getLineAndCharacterOfPosition(t),clearCache(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:e=>t.log(e)},n,e.getLineInfo(d.text,e.getLineStarts(d)),(e=>!t.fileExists||t.fileExists(e)?t.readFile(e):void 0))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=(n,i,a,o)=>{var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=u;p<_.length;p++){var f=_[p],m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),g=o(m,d);if(e.isString(g))return r(n,g,m);if(void 0!==g)return g||void 0}}}(p),(e=>{var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 266:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&268===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 265:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((e=>l(e,r))))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((e=>l(e,r))))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length<n||1===n||e.some(t.arguments,(t=>104===t.kind||e.isIdentifier(t)&&"undefined"===t.text)))}function l(r,n){switch(r.kind){case 256:case 213:if(1&e.getFunctionFlags(r))return!1;case 214:t.set(u(r),!0);case 104:return!0;case 79:case 206:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(t=>e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer))));default:return!1}}function u(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function d(e){switch(e.kind){case 256:case 169:case 213:case 214:return!0;default:return!1}}e.computeSuggestionDiagnostics=(o,s,c)=>{s.getSemanticDiagnostics(o,c);var l,p=[],_=s.getTypeChecker();o.impliedNodeFormat!==e.ModuleKind.CommonJS&&!e.fileExtensionIsOneOf(o.fileName,[".cts",".cjs"])&&o.commonJsModuleIndicator&&(e.programContainsEsModules(s)||e.compilerOptionsIndicateEsModules(s.getCompilerOptions()))&&(t=>t.statements.some((t=>{switch(t.kind){case 237:return t.declarationList.declarations.some((t=>!!t.initializer&&e.isRequireCall(r(t.initializer),!0)));case 238:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}})))(o)&&p.push(e.createDiagnosticForNode((l=o.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)((t,r)=>{var n,i,a,o;if(213===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 256===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(n,_)&&p.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&p.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}d(n)&&((r,n,o)=>{((t,r)=>!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&((t,r)=>!!e.forEachReturnStatement(t,(e=>a(e,r))))(t.body,r)&&i(t,r))(r,n)&&!t.has(u(r))&&o.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))})(n,_,p),n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var m=0,g=o.imports;m<g.length;m++){var h=g[m],y=n(e.importFromModuleSpecifier(h));if(y){var v=e.getResolvedModule(o,h.text,e.getModeForUsageLocation(o,h)),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&!0!==b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(y,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort(((e,t)=>e.start-t.start))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=d})(p),(e=>{!(t=>{var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,226)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(108===n.kind&&e.isExpression(n)||e.isThisInTypeQuery(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);return 3&a?e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":o(r)?"local var":"var":16&a?o(r)?"local function":"function":32768&a?"getter":65536&a?"setter":8192&a?"method":16384&a?"constructor":4&a?33554432&a&&6&r.checkFlags?e.forEach(t.getRootSymbols(r),(e=>{if(98311&e.getFlags())return"property"}))||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property"):"property":""}function a(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,(t=>!e.isDeprecatedDeclaration(t)))?8192:0,o=e.getNodeModifiers(n,a);if(o)return o.split(",")}return[]}function o(t){return!t.parent&&e.forEach(t.declarations,(t=>{if(213===t.kind)return!0;if(254!==t.kind&&256!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(305===r.kind||262===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=(t,r)=>{if(!r)return"";var n=new e.Set(a(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(a(i),(e=>{n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var _,f,m,g,h=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",E=!1,S=108===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),D=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){if("getter"===x||"setter"===x)if(J=e.find(o.declarations,(e=>e.name===l)))switch(J.kind){case 172:x="getter";break;case 173:x="setter";break;default:e.Debug.assertNever(J)}else x="property";var T=void 0;if(_=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&206===l.parent.kind){var C=l.parent.name;(C===l||C&&0===C.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){T=a.getResolvedSignature(k);var A=209===k.kind||e.isCallExpression(k)&&106===k.expression.kind,N=A?_.getConstructSignatures():_.getCallSignatures();if(!T||e.contains(N,T.target)||e.contains(N,T)||(T=N.length?N[0]:void 0),T){switch(A&&32&b?(x="constructor",ee(_.symbol,x)):2097152&b?(te(x="alias"),h.push(e.spacePart()),A&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),Z(o)):ee(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(58)),h.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(h,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),h.push(e.lineBreakPart())),A&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),re(T,N,262144);break;default:re(T,N)}E=!0,D=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||134===l.kind&&171===l.parent.kind){var w=l.parent;o.declarations&&e.find(o.declarations,(e=>e===(134===l.kind?w.parent:w)))&&(N=171===w.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),T=a.isImplementationOfOverload(w)?N[0]:a.getSignatureFromDeclaration(w),171===w.kind?(x="constructor",ee(_.symbol,x)):ee(174!==w.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,x),T&&re(T,N),E=!0,D=N.length>1)}}if(32&b&&!E&&!S&&(Y(),e.getDeclarationOfKind(o,226)?te("local class"):h.push(e.keywordPart(84)),h.push(e.spacePart()),Z(o),ne(o,s)),64&b&&2&u&&(X(),h.push(e.keywordPart(118)),h.push(e.spacePart()),Z(o),ne(o,s)),524288&b&&2&u&&(X(),h.push(e.keywordPart(152)),h.push(e.spacePart()),Z(o),ne(o,s),h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(X(),e.some(o.declarations,(t=>e.isEnumDeclaration(t)&&e.isEnumConst(t)))&&(h.push(e.keywordPart(85)),h.push(e.spacePart())),h.push(e.keywordPart(92)),h.push(e.spacePart()),Z(o)),1536&b&&!S){X();var F=(J=e.getDeclarationOfKind(o,261))&&J.name&&79===J.name.kind;h.push(e.keywordPart(F?142:141)),h.push(e.spacePart()),Z(o)}if(262144&b&&2&u)if(X(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),Z(o),o.parent)Q(),Z(o.parent,c),ne(o.parent,c);else{var P=e.getDeclarationOfKind(o,163);if(void 0===P)return e.Debug.fail();(J=P.parent)&&(e.isFunctionLikeKind(J.kind)?(Q(),T=a.getSignatureFromDeclaration(J),175===J.kind?(h.push(e.keywordPart(103)),h.push(e.spacePart())):174!==J.kind&&J.name&&Z(J.symbol),e.addRange(h,e.signatureToDisplayParts(a,T,s,32))):259===J.kind&&(Q(),h.push(e.keywordPart(152)),h.push(e.spacePart()),Z(J.symbol),ne(J.symbol,s)))}if(8&b&&(x="enum member",ee(o,"enum member"),299===(null==(J=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:J.kind))){var I=a.getConstantValue(J);void 0!==I&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(I),"number"==typeof I?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(X(),!E){var O=a.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var M=O.declarations[0],R=e.getNameOfDeclaration(M);if(R){var L=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!L,j=t(a,O,e.getSourceFileOfNode(M),M,R,u,B?o:O);h.push.apply(h,j.displayParts),h.push(e.lineBreakPart()),m=j.documentation,g=j.tags}else m=O.getContextualDocumentationComment(M,a),g=O.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 264:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(142));break;case 271:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 275:h.push(e.keywordPart(93));break;default:h.push(e.keywordPart(100))}h.push(e.spacePart()),Z(o),e.forEach(o.declarations,(t=>{if(265===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.keywordPart(146)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),Z(n,c))}return!0}}))}if(!E)if(""!==x){if(_)if(S?(X(),h.push(e.keywordPart(108))):ee(o,x),"property"===x||"getter"===x||"setter"===x||"JSX attribute"===x||3&b||"local var"===x||S){if(h.push(e.punctuationPart(58)),h.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var U=e.mapToDisplayParts((t=>{var n=a.typeParameterToDeclaration(_,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(h,U)}else e.addRange(h,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var V=o.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.textPart(e.idText(V.name))),h.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x)&&(N=_.getNonNullableType().getCallSignatures()).length&&(re(N[0],N),D=N.length>1)}else x=n(a,o,l);if(0!==y.length||D||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(e=>305===e.kind)))for(var K=0,z=o.declarations;K<z.length;K++)if((J=z[K]).parent&&221===J.parent.kind){var W=a.getSymbolAtLocation(J.parent.right);if(W&&(y=W.getDocumentationComment(a),v=W.getJsDocTags(a),y.length>0))break}if(0===y.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var J,H=(J=o.valueDeclaration).parent;if(e.isIdentifier(J.name)&&e.isObjectBindingPattern(H)){var $=e.getTextOfIdentifierOrLiteral(J.name),G=a.getTypeAtLocation(H);y=e.firstDefined(G.isUnion()?G.types:[G],(e=>{var t=e.getProperty($);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==v.length||D||(v=o.getContextualJsDocTags(c,a)),0===y.length&&m&&(y=m),0===v.length&&g&&(v=g),{displayParts:h,documentation:y,symbolKind:x,tags:0===v.length?void 0:v};function q(){return f||(f=e.createPrinter({removeComments:!0})),f}function X(){h.length&&h.push(e.lineBreakPart()),Y()}function Y(){d&&(te("alias"),h.push(e.spacePart()))}function Q(){h.push(e.spacePart()),h.push(e.keywordPart(101)),h.push(e.spacePart())}function Z(t,r){d&&t===o&&(t=d);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(h,n),16777216&o.flags&&h.push(e.punctuationPart(57))}function ee(t,r){X(),r&&(te(r),t&&!e.some(t.declarations,(t=>e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name))&&(h.push(e.spacePart()),Z(t)))}function te(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function re(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(39)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function ne(t,n){var i=e.mapToDisplayParts((i=>{var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(h,i)}}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(p),(e=>{function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];a[u.name]=u.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var d,p,_=e.getNewLineCharacter(a),f={getSourceFile:t=>t===e.normalizePath(m)?g:void 0,writeFile(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(p,void 0,"Unexpected multiple source map outputs, file:",t),p=r):(e.Debug.assertEqual(d,void 0,"Unexpected multiple outputs, file:",t),d=r)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>_,fileExists:e=>e===m,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},m=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),g=e.createSourceFile(m,t,{languageVersion:e.getEmitScriptTarget(a),impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(m,"",f.getCanonicalFileName),void 0,f,a),setExternalModuleIndicator:e.getSetExternalModuleIndicator(a)});r.moduleName&&(g.moduleName=r.moduleName),r.renamedDependencies&&(g.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var h=e.createProgram([m],a,f);return r.reportDiagnostics&&(e.addRange(i,h.getSyntacticDiagnostics(g)),e.addRange(i,h.getOptionsDiagnostics())),h.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===d?e.Debug.fail("Output generation failed"):{outputText:d,diagnostics:i,sourceMapText:p}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(t=>"object"==typeof t.type&&!e.forEachEntry(t.type,(e=>"number"!=typeof e)))),t=e.cloneCompilerOptions(t);for(var i=r=>{if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(e=>e===i))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=(r,n,i,a,o)=>{var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n})(p),function(e){!function(t){var r;(r=t.FormattingRequestKind||(t.FormattingRequestKind={}))[r.FormatDocument=0]="FormatDocument",r[r.FormatSelection=1]="FormatSelection",r[r.FormatOnEnter=2]="FormatOnEnter",r[r.FormatOnSemicolon=3]="FormatOnSemicolon",r[r.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",r[r.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(p),(e=>{var t,r,n,i;t=e.formatting||(e.formatting={}),n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),(e=>{e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(r||(r={})),t.getFormattingScanner=(r,a,o,s,c)=>{var l=1===a?i:n;l.setText(r),l.setTextPos(o);var u,d,p,_,f,m=!0,g=c({advance(){f=void 0,l.getStartPos()!==o?m=!!d&&4===e.last(d).kind:l.scan(),u=void 0,d=void 0;for(var t=l.getStartPos();t<s;){var r=l.getToken();if(!e.isTrivia(r))break;l.scan();var n={pos:t,end:l.getStartPos(),kind:r};t=l.getStartPos(),u=e.append(u,n)}p=l.getStartPos()},readTokenInfo(r){e.Debug.assert(h());var n,i=(e=>{switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1})(r)?1:13===r.kind?2:(e=>16===e.kind||17===e.kind)(r)?3:(t=>{if(t.parent)switch(t.parent.kind){case 285:case 280:case 281:case 279:return e.isKeyword(t.kind)||79===t.kind}return!1})(r)?4:(n=r,e.isJsxText(n)?5:(t=>t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t)(r)?6:0);if(f&&i===_)return v(f,r);l.getStartPos()!==p&&(e.Debug.assert(void 0!==f),l.setTextPos(p),l.scan());var a=((t,r)=>{var n,i=l.getToken();switch(_=0,r){case 1:if(31===i){_=1;var a=l.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(43===(n=i)||68===n)return _=2,a=l.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(19===i)return _=3,l.reScanTemplateToken(!1);break;case 4:return _=4,l.scanJsxIdentifier();case 5:return _=5,l.reScanJsxToken(!1);case 6:return _=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return i})(r,i),o=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(d&&(d=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(d||(d=[]),d.push(c),4===a){l.scan();break}}return v(f={leadingTrivia:u,trailingTrivia:d,token:o},r)},readEOFTokenRange:()=>(e.Debug.assert(y()),t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)),isOnToken:h,isOnEOF:y,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>m,skipToEndOf(e){l.setTextPos(e.end),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0},skipToStartOf(e){l.setTextPos(e.pos),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0},getStartPos(){var e;return null!==(e=null==f?void 0:f.token.pos)&&void 0!==e?e:l.getTokenPos()}});return f=void 0,l.setText(void 0),g;function h(){var t=f?f.token.kind:l.getToken();return 1!==t&&!e.isTrivia(t)}function y(){return 1===(f?f.token.kind:l.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}})(p),(e=>{var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(n=t.RuleAction||(t.RuleAction={}))[n.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",n[n.StopProcessingTokenActions=2]="StopProcessingTokenActions",n[n.InsertSpace=4]="InsertSpace",n[n.InsertNewLine=8]="InsertNewLine",n[n.DeleteSpace=16]="DeleteSpace",n[n.DeleteToken=32]="DeleteToken",n[n.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",n[n.StopAction=3]="StopAction",n[n.ModifySpaceAction=28]="ModifySpaceAction",n[n.ModifyTokenAction=96]="ModifyTokenAction",(r=t.RuleFlags||(t.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"})(p),(e=>{!(t=>{function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e,t){return r=>r.options&&r.options[e]===t}function s(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}function c(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}function l(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}function u(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}function d(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}function p(e){return 242===e.contextNode.kind}function _(e){return!p(e)}function m(e){switch(e.contextNode.kind){case 221:return 27!==e.contextNode.operatorToken.kind;case 222:case 189:case 229:case 275:case 270:case 177:case 187:case 188:return!0;case 203:case 259:case 265:case 271:case 254:case 164:case 299:case 167:case 166:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:case 163:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 244:return 160===e.currentTokenSpan.kind||160===e.nextTokenSpan.kind}return!1}function g(e){return!m(e)}function h(e){return!y(e)}function y(t){var r=t.contextNode.kind;return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r)}function v(e){return 222===e.contextNode.kind||189===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||T(e)}function x(e){return 201===e.contextNode.kind||195===e.contextNode.kind||(e=>D(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine()))(e)}function E(e){return T(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return D(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function D(e){return C(e.contextNode)}function T(e){return C(e.nextTokenParent)}function C(e){if(F(e))return!0;switch(e.kind){case 235:case 263:case 205:case 262:return!0}return!1}function k(e){switch(e.contextNode.kind){case 256:case 169:case 168:case 172:case 173:case 174:case 213:case 171:case 214:case 258:return!0}return!1}function A(e){return!k(e)}function N(e){return 256===e.contextNode.kind||213===e.contextNode.kind}function w(e){return F(e.contextNode)}function F(e){switch(e.kind){case 257:case 226:case 258:case 260:case 182:case 261:case 272:case 273:case 266:case 269:return!0}return!1}function P(e){switch(e.currentTokenParent.kind){case 257:case 261:case 260:case 292:case 262:case 249:return!0;case 235:var t=e.currentTokenParent.parent;if(!t||214!==t.kind&&213!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 239:case 249:case 242:case 243:case 244:case 241:case 252:case 240:case 248:case 292:return!0;default:return!1}}function O(e){return 205===e.contextNode.kind}function M(e){return(e=>208===e.contextNode.kind)(e)||(e=>209===e.contextNode.kind)(e)}function R(e){return 27!==e.currentTokenSpan.kind}function L(e){return 23!==e.nextTokenSpan.kind}function B(e){return 21!==e.nextTokenSpan.kind}function j(e){return 214===e.contextNode.kind}function U(e){return 200===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function K(e){return 11!==e.contextNode.kind}function z(e){return 278!==e.contextNode.kind&&282!==e.contextNode.kind}function W(e){return 288===e.contextNode.kind||287===e.contextNode.kind}function J(e){return 285===e.nextTokenParent.kind}function H(e){return 285===e.contextNode.kind}function $(e){return 279===e.contextNode.kind}function G(e){return!k(e)&&!T(e)}function q(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&X(e.currentTokenParent)&&!X(e.nextTokenParent)}function X(t){for(;e.isExpressionNode(t);)t=t.parent;return 165===t.kind}function Y(e){return 255===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Q(e){return 2!==e.formattingRequestKind}function Z(e){return 261===e.contextNode.kind}function ee(e){return 182===e.contextNode.kind}function te(e){return 175===e.contextNode.kind}function re(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 178:case 211:case 259:case 257:case 226:case 258:case 256:case 213:case 214:case 169:case 168:case 174:case 175:case 208:case 209:case 228:return!0;default:return!1}}function ne(e){return re(e.currentTokenSpan,e.currentTokenParent)||re(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 211===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&217===e.currentTokenParent.kind}function oe(e){return 224===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 230===e.contextNode.kind}function ce(e){return!(e=>{switch(e.contextNode.kind){case 239:case 242:case 243:case 244:case 240:case 241:return!0;default:return!1}})(e)}function le(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(e=>!e.parent)),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:234!==r&&26!==r&&(258===t.contextNode.kind||259===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:242!==t.currentTokenParent.kind&&236!==t.currentTokenParent.kind&&234!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&223!==r&&15!==r&&14!==r&&24!==r)}function ue(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=()=>{for(var i=[],D=0;D<=160;D++)1!==D&&i.push(D);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter((t=>!e.some((e=>e===t)))),isSpecific:!1}}var F={tokens:i,isSpecific:!1},X=n(f(f([],i,!0),[3],!1)),re=n(f(f([],i,!0),[1],!1)),de=a(81,160),pe=a(29,78),_e=[101,102,160,127,139],fe=f([79],e.typeKeywords,!0),me=X,ge=n([79,3,84,93,100]),he=n([21,3,90,111,96,91]),ye=[r("IgnoreBeforeComment",F,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,F,t.anyContext,1),r("NotSpaceBeforeColon",F,58,[V,g,h],16),r("SpaceAfterColon",58,F,[V,g],4),r("NoSpaceBeforeQuestionMark",F,57,[V,g,h],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,F,[V,v],4),r("NoSpaceAfterQuestionMark",57,F,[V],16),r("NoSpaceBeforeDot",F,[24,28],[V],16),r("NoSpaceAfterDot",[24,28],F,[V],16),r("NoSpaceBetweenImportParenInImportType",100,20,[V,U],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[V,g],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[V],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[V],16),r("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[V,ce],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[V,ce],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[V,m],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[V,m],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[V,m],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[V,m],4),r("NoSpaceAfterCloseBrace",19,[27,26],[V],16),r("NewLineBeforeCloseBraceInBlockContext",X,19,[S],8),r("SpaceAfterCloseBrace",19,C(21),[V,P],4),r("SpaceBetweenCloseBraceAndElse",19,91,[V],4),r("SpaceBetweenCloseBraceAndWhile",19,115,[V],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("SpaceAfterConditionalClosingParen",21,22,[I],4),r("NoSpaceBetweenFunctionKeywordAndStar",98,41,[N],16),r("SpaceAfterStarInGeneratorDeclaration",41,79,[N],4),r("SpaceAfterFunctionInFuncDecl",98,F,[k],4),r("NewLineAfterOpenBraceInBlockContext",18,F,[S],8),r("SpaceAfterGetSetInMember",[136,149],79,[k],4),r("NoSpaceBetweenYieldKeywordAndStar",125,41,[V,oe],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],F,[V,oe],4),r("NoSpaceBetweenReturnAndSemicolon",105,26,[V],16),r("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],F,[V],4),r("SpaceAfterLetConstInVariableDeclaration",[119,85],F,[V,Y],4),r("NoSpaceBeforeOpenParenInFuncCall",F,20,[V,M,R],16),r("SpaceBeforeBinaryKeywordOperator",F,_e,[V,m],4),r("SpaceAfterBinaryKeywordOperator",_e,F,[V,m],4),r("SpaceAfterVoidOperator",114,F,[V,ae],4),r("SpaceBetweenAsyncAndOpenParen",131,20,[j,V],4),r("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[V],4),r("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[V],16),r("SpaceBeforeJsxAttribute",F,79,[J,V],4),r("SpaceBeforeSlashInJsxOpeningElement",F,43,[$,V],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[$,V],16),r("NoSpaceBeforeEqualInJsxAttribute",F,63,[H,V],16),r("NoSpaceAfterEqualInJsxAttribute",63,F,[H,V],16),r("NoSpaceAfterModuleImport",[141,146],20,[V],16),r("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,145,149,124,152,156,140,137],F,[V],4),r("SpaceBeforeCertainTypeScriptKeywords",F,[94,117,156],[V],4),r("SpaceAfterModuleName",10,18,[Z],4),r("SpaceBeforeArrow",F,38,[V],4),r("SpaceAfterArrow",38,F,[V],4),r("NoSpaceAfterEllipsis",25,79,[V],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[V,g],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,ee],16),r("NoSpaceBeforeOpenAngularBracket",fe,29,[V,ne],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[V,ne],16),r("NoSpaceAfterOpenAngularBracket",29,F,[V,ne],16),r("NoSpaceBeforeCloseAngularBracket",F,31,[V,ne],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[V,ne,A],16),r("SpaceBeforeAt",[21,79],59,[V],4),r("NoSpaceAfterAt",59,F,[V],16),r("SpaceAfterDecorator",F,[126,79,93,88,84,124,123,121,122,136,149,22,41],[q],4),r("NoSpaceBeforeNonNullAssertionOperator",F,53,[V,se],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[V,te],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[V],4)],ve=[r("SpaceAfterConstructor",134,20,[s("insertSpaceAfterConstructor"),V],4),r("NoSpaceAfterConstructor",134,20,[l("insertSpaceAfterConstructor"),V],16),r("SpaceAfterComma",27,F,[s("insertSpaceAfterCommaDelimiter"),V,z,L,B],4),r("NoSpaceAfterComma",27,F,[l("insertSpaceAfterCommaDelimiter"),V,z],16),r("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],4),r("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],16),r("SpaceAfterKeywordInControl",de,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),r("NoSpaceAfterKeywordInControl",de,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),r("SpaceAfterOpenParen",20,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBeforeCloseParen",F,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("NoSpaceBetweenParens",20,21,[V],16),r("NoSpaceAfterOpenParen",20,F,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("NoSpaceBeforeCloseParen",F,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("SpaceAfterOpenBracket",22,F,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("SpaceBeforeCloseBracket",F,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("NoSpaceBetweenBrackets",22,23,[V],16),r("NoSpaceAfterOpenBracket",22,F,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("NoSpaceBeforeCloseBracket",F,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("SpaceAfterOpenBrace",18,F,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("SpaceBeforeCloseBrace",F,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("NoSpaceAfterOpenBrace",18,F,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("NoSpaceBeforeCloseBrace",F,19,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[s("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),V],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],F,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],4,1),r("SpaceBeforeTemplateMiddleAndTail",F,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],F,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",F,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16),r("SpaceAfterOpenBraceInJsxExpression",18,F,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],4),r("SpaceBeforeCloseBraceInJsxExpression",F,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,F,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],16),r("NoSpaceBeforeCloseBraceInJsxExpression",F,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,W],16),r("SpaceAfterSemicolonInFor",26,F,[s("insertSpaceAfterSemicolonInForStatements"),V,p],4),r("NoSpaceAfterSemicolonInFor",26,F,[l("insertSpaceAfterSemicolonInForStatements"),V,p],16),r("SpaceBeforeBinaryOperator",F,pe,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("SpaceAfterBinaryOperator",pe,F,[s("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("NoSpaceBeforeBinaryOperator",F,pe,[l("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("NoSpaceAfterBinaryOperator",pe,F,[l("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("SpaceBeforeOpenParenInFuncDecl",F,20,[s("insertSpaceBeforeFunctionParenthesis"),V,k],4),r("NoSpaceBeforeOpenParenInFuncDecl",F,20,[l("insertSpaceBeforeFunctionParenthesis"),V,k],16),r("NewLineBeforeOpenBraceInControl",he,18,[s("placeOpenBraceOnNewLineForControlBlocks"),I,E],8,1),r("NewLineBeforeOpenBraceInFunction",me,18,[s("placeOpenBraceOnNewLineForFunctions"),k,E],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[s("placeOpenBraceOnNewLineForFunctions"),w,E],8,1),r("SpaceAfterTypeAssertion",31,F,[s("insertSpaceAfterTypeAssertion"),V,ie],4),r("NoSpaceAfterTypeAssertion",31,F,[l("insertSpaceAfterTypeAssertion"),V,ie],16),r("SpaceBeforeTypeAnnotation",F,[57,58],[s("insertSpaceBeforeTypeAnnotation"),V,y],4),r("NoSpaceBeforeTypeAnnotation",F,[57,58],[l("insertSpaceBeforeTypeAnnotation"),V,y],16),r("NoOptionalSemicolon",26,re,[o("semicolons",e.SemicolonPreference.Remove),le],32),r("OptionalSemicolon",F,re,[o("semicolons",e.SemicolonPreference.Insert),ue],64)],be=[r("NoSpaceBeforeSemicolon",F,26,[V],16),r("SpaceBeforeOpenBraceInControl",he,18,[u("placeOpenBraceOnNewLineForControlBlocks"),I,Q,b],4,1),r("SpaceBeforeOpenBraceInFunction",me,18,[u("placeOpenBraceOnNewLineForFunctions"),k,T,Q,b],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[u("placeOpenBraceOnNewLineForFunctions"),w,Q,b],4,1),r("NoSpaceBeforeComma",F,27,[V],16),r("NoSpaceBeforeOpenBracket",C(131,82),22,[V],16),r("NoSpaceAfterCloseBracket",23,F,[V,G],16),r("SpaceAfterSemicolon",26,F,[V],4),r("SpaceBetweenForAndAwaitKeyword",97,132,[V],4),r("SpaceBetweenStatements",[21,90,91,82],F,[V,z,_],4),r("SpaceAfterTryCatchFinally",[111,83,96],18,[V],4)];return f(f(f([],ye,!0),ve,!0),be,!0)}})(e.formatting||(e.formatting={}))})(p),(e=>{!(t=>{var r;function n(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function i(t,r){return e.Debug.assert(t<=160&&r<=160,"Must compute formatting context from tokens"),t*o+r}t.getFormatContext=(a,c)=>{return{options:a,getRules:(void 0===r&&(l=t.getAllRules(),u=(e=>{for(var t=new Array(o*o),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var c=a[n],l=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific,u=0,d=c.leftTokenRange.tokens;u<d.length;u++)for(var p=d[u],_=0,f=c.rightTokenRange.tokens;_<f.length;_++){var m=i(p,f[_]),g=t[m];void 0===g&&(g=t[m]=[]),s(g,c.rule,l,r,m)}return t})(l),r=t=>{var r=u[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s],d=~n(o);l.action&d&&e.every(l.context,(e=>e(t)))&&(a.push(l),o|=l.action)}if(a.length)return a}}),r),host:c};var l,u};var a,o=161;function s(r,n,i,o,s){var c,l,u,d=3&n.action?i?a.StopRulesSpecific:a.StopRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,p=o[s]||0;r.splice(((e,t)=>{for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r})(p,d),0,n),o[s]=(u=1+((c=p)>>(l=d)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<l)|u<<l)}!(e=>{e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"})(a||(a={}))})(e.formatting||(e.formatting={}))})(p),(e=>{!(t=>{var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,r){switch(t.kind){case 257:case 258:return e.rangeContainsRange(t.members,r);case 261:var n=t.body;return!!n&&262===n.kind&&e.rangeContainsRange(n.statements,r);case 305:case 235:case 262:return e.rangeContainsRange(t.statements,r);case 292:return e.rangeContainsRange(t.block.statements,r)}return!1}function u(t,r,n,i){return t?d({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function d(r,n,i,a){var o=((t,r)=>function n(i){var a=e.forEachChild(i,(n=>e.startEndContainsRange(n.getStart(r),n.end,t)&&n));if(a){var o=n(a);if(o)return o}return i}(r))(r,n);return t.getFormattingScanner(n.text,n.languageVariant,((t,r,n)=>{var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos})(o,r,n),r.end,(s=>p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),((e,r,n)=>{for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0})(o,i.options,n),s,i,a,((t,r)=>{if(!t.length)return a;var n=t.filter((t=>e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return a;var i=0;return t=>{for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}})(n.parseDiagnostics,r),n)))}function p(r,n,i,a,o,s,c,l,u){var d,p,f,m,g,h=s.options,y=s.getRules,v=s.host,b=new t.FormattingContext(u,c,h),x=-1,E=[];if(o.advance(),o.isOnToken()){var S=u.getLineAndCharacterOfPosition(n.getStart(u)).line,D=S;n.decorators&&(D=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,d,_){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var f=N(i,s,d,_),m=a;for(e.forEachChild(i,(e=>{v(e,-1,i,f,s,c,!1)}),(n=>{!((n,a,s,c)=>{e.Debug.assert(e.isNodeArray(n));var l=((e,t)=>{switch(e.kind){case 171:case 256:case 213:case 169:case 168:case 214:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 208:case 209:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 178:if(e.typeArguments===t)return 29;break;case 182:return 18}return 0})(a,n),d=c,p=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()<r.end&&!((y=o.readTokenInfo(a)).token.end>n.pos);)if(y.token.kind===l){p=u.getLineAndCharacterOfPosition(y.token.pos).line,b(y,a,c,a);var _=void 0;if(-1!==x)_=x;else{var f=e.getLineStartPositionForPosition(y.token.pos,u);_=t.SmartIndenter.findFirstNonWhitespaceColumn(f,y.token.pos,u,h)}d=N(a,s,_,h.indentSize)}else b(y,a,c,a);for(var m=-1,g=0;g<n.length;g++)m=v(n[g],m,i,d,p,p,!0,0===g);var y,E=(e=>{switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0})(l);0!==E&&o.isOnToken()&&o.getStartPos()<r.end&&(27===(y=o.readTokenInfo(a)).token.kind&&e.isCallLikeExpression(a)&&p!==u.getLineAndCharacterOfPosition(y.token.pos).line&&(o.advance(),y=o.isOnToken()?o.readTokenInfo(a):void 0),y&&y.token.kind===E&&e.rangeContainsRange(a,y.token)&&b(y,a,d,a,!0))}else n.end<r.pos&&o.skipToEndOf(n)})(n,i,s,f)}));o.isOnToken()&&o.getStartPos()<r.end;){var y=o.readTokenInfo(i);if(y.token.end>Math.min(i.end,r.end))break;b(y,i,f,i)}}function v(a,s,c,l,d,p,_,f){if(e.nodeIsMissing(a))return s;var y=a.getStart(u),v=u.getLineAndCharacterOfPosition(y).line,E=v;a.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var S=-1;if(_&&e.rangeContainsRange(r,c)&&-1!==(S=((r,n,i,a,o)=>{if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,h);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(h);return d>l?d:l}}return-1})(y,a.end,d,r,s))&&(s=S),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken()&&o.getStartPos()<r.end;){if((D=o.readTokenInfo(i)).token.end>r.end)return s;if(D.token.end>y){D.token.pos>y&&o.skipToStartOf(a);break}b(D,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)return s;if(e.isToken(a)){var D=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(D.token.end===a.end,"Token end is child end"),b(D,i,l,a),s}var T=165===a.kind?v:p,C=((e,r,n,i,a,o)=>{var s=t.SmartIndenter.shouldIndentChildNode(h,e)?h.indentSize:0;return o===r?{indentation:r===g?x:a.getIndentation(),delta:Math.min(h.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}})(a,v,S,i,l,T);return n(a,m,v,E,C.indentation,C.delta),m=i,f&&204===c.kind&&-1===s&&(s=C.indentation),s}function b(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&F(t.leadingTrivia,n,m,i);var _=0,f=e.rangeContainsRange(r,t.token),h=u.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=l(t.token),v=p;if(_=P(t.token,h,n,m,i),!y)if(0===_){var b=v&&u.getLineAndCharacterOfPosition(v.end).line;d=c&&h.line!==b}else d=1===_}if(t.trailingTrivia&&F(t.trailingTrivia,n,m,i),d){var E=f&&!l(t.token)?i.getIndentationForToken(h.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var D=i.getIndentationForComment(t.token.kind,E,a);S=w(t.leadingTrivia,D,S,(e=>O(e.pos,D,!1)))}-1!==E&&S&&(O(t.token.pos,E,1===_),g=h.line,x=E)}o.advance(),m=n}}(n,n,S,D,i,a)}if(!o.isOnToken()){var T=t.SmartIndenter.nodeWillIndentChild(h,n,void 0,u,!1)?i+h.indentSize:i,C=o.getCurrentLeadingTrivia();C&&(w(C,T,!1,(e=>P(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0))),!1!==h.trimTrailingWhitespace&&(t=>{for(var n=p?p.end:r.pos,i=0,a=t;i<a.length;i++){var o=a[i];e.isComment(o.kind)&&(n<o.pos&&B(n,o.pos-1,p),n=o.end+1)}n<r.end&&B(n,r.end,p)})(C))}if(p&&o.getStartPos()>=r.end){var k=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(k){var A=(null===(d=e.findPrecedingToken(k.end,u,n))||void 0===d?void 0:d.parent)||f;I(k,u.getLineAndCharacterOfPosition(k.pos).line,A,p,m,f,A,void 0)}}return E;function N(r,n,i,a){return{getIndentationForComment(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:(t,a,s,c)=>!c&&((t,i,a)=>{switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 280:case 281:case 279:case 228:return!1}break;case 22:case 23:if(195!==a.kind)return!1}return n!==t&&!(r.decorators&&i===(t=>{if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 257:return 84;case 258:return 118;case 256:return 98;case 260:return 260;case 172:return 136;case 173:return 149;case 169:if(t.asteriskToken)return 41;case 167:case 164:var r=e.getNameOfDeclaration(t);if(r)return r.kind}})(r))})(t,a,s)?i+o(s):i,getIndentation:()=>i,getDelta:o,recomputeIndentation(e,n){t.SmartIndenter.shouldIndentChildNode(h,n,r,u)&&(i+=e?h.indentSize:-h.indentSize,a=t.SmartIndenter.shouldIndentChildNode(h,r)?h.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(h,r,e,u,!0)?a:0}}function w(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(r,c);switch(c.kind){case 3:l&&M(c,n,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function F(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(r,c)&&P(c,u.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function P(e,t,n,i,a){var o=0;return l(e)||(p?o=I(e,t.line,n,p,m,f,i,a):R(u.getLineAndCharacterOfPosition(r.pos).line,t.line)),p=e,f=n,m=t.line,o}function I(t,r,n,i,a,o,s,c){b.updateContext(i,o,t,n,s);var l=y(b),d=!1!==b.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(o=>{if(p=((t,r,n,i,a)=>{var o,s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return j(r.end,i.pos-r.end),s?2:0;break;case 32:j(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!=a-n)return U(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(v,h)),s?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!=i.pos-r.end||32!==u.text.charCodeAt(r.end))return U(r.end,i.pos-r.end," "),s?2:0;break;case 64:o=r.end,E.push(e.createTextChangeFromStartLength(o,0,";"))}return 0})(o,i,a,t,r),c)switch(p){case 2:n.getStart(u)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(u)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==t.kind,r!==a&&d&&R(a,r,i),p}function O(t,r,n){var i=_(r,h);if(n)U(t,0,i);else{var a=u.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,u);(r!==((e,t)=>{for(var r=0,n=0;n<t;n++)9===u.text.charCodeAt(e+n)?r+=h.tabSize-r%h.tabSize:r++;return r})(o,a.character)||((e,t)=>e!==u.text.substr(t,e.length))(i,o))&&U(o,a.character,i)}}function M(r,n,i,a){void 0===a&&(a=!0);var o=u.getLineAndCharacterOfPosition(r.pos).line,s=u.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],l=r.pos,d=o;d<s;d++){var p=e.getEndLinePosition(d,u);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(d+1,u)}if(a&&c.push({pos:l,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,u),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,u,h),g=0;i&&(g=1,o++);for(var y=n-m.column,v=g;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,u),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,u,h),E=x.column+y;if(E>0){var S=_(E,h);U(b,x.character,S)}else j(b,x.character)}}}else i||O(r.pos,n,!1)}function R(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,u),o=e.getEndLinePosition(i,u);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=L(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),j(s,o+1-s))}}}function L(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function B(e,t,r){R(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function j(t,r){r&&E.push(e.createTextChangeFromStartLength(t,r,""))}function U(t,r,n){(r||n)&&E.push(e.createTextChangeFromStartLength(t,r,n))}}function _(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=(t,r,n)=>{var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>e.Debug.formatSyntaxKind(n)}),i},(e=>{e[e.Unknown=-1]="Unknown"})(r||(r={})),t.formatOnEnter=(t,r,n)=>{var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=(e,t,r)=>u(c(s(e,26,t)),t,r,3),t.formatOnOpeningCurly=(t,r,n)=>{var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=(e,t,r)=>u(c(s(e,19,t)),t,r,5),t.formatDocument=(e,t)=>d({pos:0,end:e.text.length},e,t,0),t.formatSelection=(t,r,n,i)=>d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1),t.formatNodeGivenIndentation=(e,r,n,i,a,o)=>{var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(t=>p(s,e,i,a,t,o,1,(e=>!1),r)))},(e=>{e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"})(n||(n={})),t.getRangeOfEnclosingComment=(t,r,n,i)=>{void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(n=>e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())))}},t.getIndentationString=_})(e.formatting||(e.formatting={}))})(p),(e=>{var t;(r=>{var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,l){for(var f,m=e.parent;m;){var h=!0;if(r){var y=e.getStart(i);h=y<r.pos||y>r.end}var v=s(m,e,i),b=v.line===t.line||p(m,e,t.line,i);if(h){var x=null===(f=_(e,i))||void 0===f?void 0:f[0],S=g(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,m,t,b,i,l)))return S+n}E(l,m,e,i,o)&&!b&&(n+=l.indentSize);var D=d(m,e,t.line,i);m=(e=m).parent,t=D?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=_(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||305!==r.kind&&i?-1:y(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function p(t,r,n,i){if(239===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 178:return a(n.typeArguments);case 205:return a(n.properties);case 204:return a(n.elements);case 182:return a(n.members);case 256:case 213:case 214:case 169:case 168:case 174:case 171:case 180:case 175:return a(n.typeParameters)||a(n.parameters);case 172:return a(n.parameters);case 257:case 226:case 258:case 259:case 344:return a(n.typeParameters);case 209:case 208:return a(n.typeArguments)||a(n.arguments);case 255:return a(n.declarations);case 269:case 273:return a(n.elements);case 201:case 202:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(((e,t,r)=>{for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t})(n,a,i),t,r)?a:void 0}}function m(e,t,r){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&255===e.parent.kind)return-1;var i=_(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=h(i,a,t,r);if(-1!==o)return o}return m(i,t,r)+(n?r.indentSize:0)}return-1}function h(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=u(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=u(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 238:case 257:case 226:case 258:case 260:case 259:case 204:case 235:case 262:case 205:case 182:case 195:case 184:case 263:case 290:case 289:case 212:case 206:case 208:case 209:case 237:case 271:case 247:case 222:case 202:case 201:case 280:case 283:case 279:case 288:case 168:case 174:case 175:case 164:case 179:case 180:case 191:case 210:case 218:case 273:case 269:case 275:case 270:case 167:return!0;case 254:case 296:case 221:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&205===o)return S(i,n);if(221===r.kind&&i&&n&&278===o)return i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,r.pos)).line!==i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,n.pos)).line;if(221!==r.kind)return!0;break;case 240:case 241:case 243:case 244:case 242:case 239:case 256:case 213:case 169:case 171:case 172:case 173:return 235!==o;case 214:return i&&212===o?S(i,n):235!==o;case 272:return 273!==o;case 266:return 267!==o||!!n.namedBindings&&269!==n.namedBindings.kind;case 278:return 281!==o;case 282:return 284!==o;case 188:case 187:if(182===o||184===o)return!1}return a}function E(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&((e,t)=>{switch(e){case 247:case 251:case 245:case 246:return 235!==t.kind;default:return!1}})(r.kind,t))}function S(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!(e=>{e[e.Unknown=-1]="Unknown"})(n||(n={})),r.getIndentation=(r,n,i,s)=>{if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return((t,r,n,i)=>{var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l})(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var p=n.getLineAndCharacterOfPosition(r).line,_=e.getTokenAtPosition(n,r),y=18===_.kind&&205===_.parent.kind;if(i.indentStyle===e.IndentStyle.Block||y)return((t,r,n)=>{for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)})(n,r,i);if(27===c.kind&&221!==c.parent.kind){var x=((t,r,n)=>{var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1})(c,n,i);if(-1!==x)return x}var S=((e,t,r)=>t&&f(e,e,t,r))(r,c.parent,n);if(S&&!e.rangeContainsRange(S,c)){var D=-1!==[213,214].indexOf(_.parent.kind)?0:i.indentSize;return m(S,n,i)+D}return((t,r,n,i,s,c)=>{for(var d,p=n;p;){if(e.positionBelongsToNode(p,r,t)&&E(c,p,d,t,!0)){var _=u(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var m=g(p,t,c,!0);if(-1!==m)return m;d=p,p=p.parent}return a(c)})(n,r,c,p,s,i)},r.getIndentationForNode=(e,t,r,n)=>{var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,(e=>{e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"})(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=(t,r,n,i)=>{if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=(t,r,n,i)=>{if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(e=>e.pos===r.pos));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=E})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))})(p),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,s;function c(t,r){return e.skipTrivia(t,r,!1,!0)}!(e=>{e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"})(o=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),(e=>{e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"})(s=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var l,u={leadingTriviaOption:o.Exclude,trailingTriviaOption:s.Exclude};function d(e,t,r,n){return{pos:p(e,t,n),end:g(e,r,n)}}function p(t,r,n,i){var a,s;void 0===i&&(i=!1);var l=n.leadingTriviaOption;if(l===o.Exclude)return r.getStart(t);if(l===o.StartLine){var u=r.getStart(t),d=e.getLineStartPositionForPosition(u,t);return e.rangeContainsPosition(r,d)?d:u}if(l===o.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var m=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===m)return l===o.IncludeAll?_:f;if(i){var g=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(s=e.getTrailingCommentRanges(t.text,_))||void 0===s?void 0:s[0]);if(g)return e.skipTrivia(t.text,g.end,!0,!0)}var h=_>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+h,t);return y=c(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function _(t,r,n){var i=r.end;if(n.trailingTriviaOption===s.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),c=0,l=a;c<l.length;c++){var u=l[c];if(2===u.kind||e.getLineOfLocalPosition(t,u.pos)>o)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function g(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===s.Exclude)return a;if(o===s.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==c?void 0:c[c.length-1])||void 0===i?void 0:i.end)||a}var l=_(t,r,n);if(l)return l;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==s.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function h(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&205===e.parent.kind)}!(e=>{e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"})(l||(l={})),t.isThisTypeAnnotatable=t=>e.isFunctionExpression(t)||e.isFunctionDeclaration(t);var y,v=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=r=>new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext),t.with=(e,r)=>{var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:l.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:l.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll}),this.deleteRange(e,d(e,t,t,r))},t.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});for(var i=0,a=t;i<a.length;i++){var s=a[i],c=p(e,s,r,n),l=g(e,s,r);this.deleteRange(e,{pos:c,end:l}),n=!!_(e,s,r)}},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=g(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=void 0===r?e.text.length:p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=u),this.replaceRange(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=u),this.replaceRange(e,d(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=u),this.replaceRangeWithNodes(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,d(e,t,t,u),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=u),this.replaceRangeWithNodes(e,d(e,t,r,i),n,i)},t.prototype.nodeHasTrailingComment=(e,t,r)=>(void 0===r&&(r=u),!!_(e,t,r)),t.prototype.nextCommaToken=(t,r)=>{var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=(t=>{for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,m(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,m());var l,u,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var p=0,_=d;p<_.length;p++){var f=_[p];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){l={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){l={range:f,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u<t.getLineAndCharacterOfPosition(f.end).line+2))break;l={range:f,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,m()),o;function m(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}})(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,p(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=A(t,o),c=e.getTouchingToken(t,s?o:n),l=t.text.slice(a,o),u="".concat(s?"":this.newLineCharacter,"//").concat(i).concat(this.newLineCharacter).concat(l);this.insertText(t,c.getStart(t),u)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:g(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),l=t.text.slice(c,i);this.insertNodeAt(t,i,n,{suffix:this.newLineCharacter+l})},t.prototype.createJSDocText=(t,r)=>{var n=e.flatMap(r.jsDoc,(t=>e.isString(t.comment)?e.factory.createJSDocText(t.comment):t.comment)),i=e.singleOrUndefined(r.jsDoc);return i&&e.positionsAreOnSameLine(i.pos,i.end,t)&&0===e.length(n)?void 0:e.factory.createNodeArray(e.intersperse(n,e.factory.createJSDocText("\n")))},t.prototype.replaceJSDocComment=function(t,r,n){this.insertJsdocCommentBefore(t,(e=>{if(214!==e.kind)return e;var t=167===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t.jsDocCache=e.jsDocCache,t})(r),e.factory.createJSDocComment(this.createJSDocText(t,r),e.factory.createNodeArray(n)))},t.prototype.addJSDocTags=function(t,r,n){var i=e.flatMapToMutable(r.jsDoc,(e=>e.tags)),a=n.filter((t=>!i.some(((r,n)=>{var a=((t,r)=>{if(t.kind===r.kind)switch(t.kind){case 340:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 341:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment);case 343:return e.factory.createJSDocTypeTag(void 0,r.typeExpression,t.comment)}})(r,t);return a&&(i[n]=a),!!a}))));this.replaceJSDocComment(t,r,f(f([],i,!0),a,!0))},t.prototype.filterJSDocTags=function(t,r,n){this.replaceJSDocComment(t,r,e.filter(e.flatMapToMutable(r.jsDoc,(e=>e.tags)),n))},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:l.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=254===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,f([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var i=e.find(r.body.statements,(t=>e.isExpressionStatement(t)&&e.isSuperCall(t.expression)));i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,f(f([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,f(f([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=p(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=l;else if(l!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===x(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&162===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),g(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return m(m({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n".concat(n.prefix):"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 257:case 261:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 254:case 10:case 79:return{prefix:", "};case 296:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 164:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),214===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(98),e.factory.createIdentifier(n)],{joiner:" "}),N(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function ".concat(n,"(")),this.replaceRange(t,i,e.factory.createToken(21))),235!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,213===r.kind?98:84,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertImportSpecifierAtIndex=function(t,r,n,i){var a=n.elements[i-1];a?this.insertNodeInListAfter(t,a,r):this.insertNodeBefore(t,n.elements[0],r,!e.positionsAreOnSameLine(n.elements[0].getStart(),n.parent.parent.getStart(),t))},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&h(r,s)){var l=i[a+1],u=c(t.text,l.getFullStart()),d="".concat(e.tokenToString(s.kind)).concat(t.text.substring(s.end,u));this.insertNodesAt(t,u,[n],{suffix:d})}}else{var p=r.getStart(t),_=e.getLineStartPositionForPosition(p,t),f=void 0,m=!1;if(1===i.length)f=27;else{var g=e.findPrecedingToken(r.pos,t);f=h(r,g)?g.kind:27,m=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==_}if(((t,r)=>{for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1})(t.text,r.end)&&(m=!0),m){this.replaceRange(t,e.createRange(o),e.factory.createToken(f));for(var y=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(_,p,t,this.formatContext.options),v=e.skipTrivia(t.text,o,!0,!1);v!==o&&e.isLineBreak(t.text.charCodeAt(v-1));)v--;this.replaceRange(t,e.createRange(v),n,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:"".concat(e.tokenToString(f)," ")})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((r=>{var n=r.node,i=r.sourceFile,a=((t,r)=>{var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]})(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===x(n).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),l&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=(t,n)=>{i.deletedNodes.some((r=>r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):S.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((n=>{var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(e=>!r.has(e)),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:b(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=y.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(y.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function b(t,r){return e.skipTrivia(t.text,p(t,r,{leadingTriviaOption:o.IncludeAll}),!1,!0)}function x(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function E(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=v,t.getNewFileText=(e,t,r,n)=>y.newFileChangesWorker(void 0,t,e,r,n),function(t){function r(t,r,i,a,o){var s=i.map((e=>4===e?"":n(e,t,a).text)).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return E(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=k(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:T(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.mapDefined(e.group(t,(e=>e.sourceFile.path)),(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end)),c=t=>{e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",(()=>"".concat(JSON.stringify(s[t].range)," and ").concat(JSON.stringify(s[t+1].range))))},u=0;u<s.length-1;u++)c(u);var d=e.mapDefined(s,(function(t){var s=e.createTextSpanFromRange(t.range),c=function(t,r,i,a,o){var s;if(t.kind===l.Remove)return"";if(t.kind===l.Text)return t.text;var c=t.options,u=void 0===c?{}:c,d=t.range.pos,p=function(t){return function(t,r,i,a,o,s,c){var l=a.indentation,u=a.prefix,d=a.delta,p=n(t,r,o),_=p.node,f=p.text;c&&c(_,f);var g=e.getFormatCodeSettingsForWriting(s,r),h=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(i,r,g,u===o||e.getLineStartPositionForPosition(i,r)===i);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)&&g.indentSize||0);var y={text:f,getLineAndCharacterOfPosition(t){return e.getLineAndCharacterOfPosition(this,t)}};return E(f,e.formatting.formatNodeGivenIndentation(_,y,r.languageVariant,h,d,m(m({},s),{options:g})))}(t,r,d,u,i,a,o)},_=t.kind===l.ReplaceWithMultipleNodes?t.nodes.map((t=>e.removeSuffix(p(t),i))).join((null===(s=t.options)||void 0===s?void 0:s.joiner)||i):p(t.node),f=void 0!==u.indentation||e.getLineStartPositionForPosition(d,r)===d?_:_.replace(/^\s+/,"");return(u.prefix||"")+f+(!u.suffix||e.endsWith(f,u.suffix)?"":u.suffix)}(t,o,r,i,a);if(s.length!==c.length||!e.stringContainsAt(o.text,c,s.start))return e.createTextChange(s,c)}));return d.length>0?{fileName:o.fileName,textChanges:d}:void 0}))},t.newFileChanges=(t,n,i,a,o)=>{var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(y||(y={})),t.applyChanges=E;var S,D=m(m({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function T(t){var n=e.visitEachChild(t,T,D,C,T),a=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(a,r(t),i(t)),a}function C(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),i(t)),l}function k(t){var r=0,i=e.createTextWriter(t);function o(t,n){if(n||!(t=>e.skipTrivia(t,0)===t.length)(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode(e){e&&n(e,r)},onAfterEmitNode(e){e&&a(e,r)},onBeforeEmitNodeArray(e){e&&n(e,r)},onAfterEmitNodeArray(e){e&&a(e,r)},onBeforeEmitToken(e){e&&n(e,r)},onAfterEmitToken(e){e&&a(e,r)},write(e){i.write(e),o(e,!1)},writeComment(e){i.writeComment(e)},writeKeyword(e){i.writeKeyword(e),o(e,!1)},writeOperator(e){i.writeOperator(e),o(e,!1)},writePunctuation(e){i.writePunctuation(e),o(e,!1)},writeTrailingSemicolon(e){i.writeTrailingSemicolon(e),o(e,!1)},writeParameter(e){i.writeParameter(e),o(e,!1)},writeProperty(e){i.writeProperty(e),o(e,!1)},writeSpace(e){i.writeSpace(e),o(e,!1)},writeStringLiteral(e){i.writeStringLiteral(e),o(e,!1)},writeSymbol(e,t){i.writeSymbol(e,t),o(e,!1)},writeLine(e){i.writeLine(e)},increaseIndent(){i.increaseIndent()},decreaseIndent(){i.decreaseIndent()},getText:()=>i.getText(),rawWrite(e){i.rawWrite(e),o(e,!1)},writeLiteral(e){i.writeLiteral(e),o(e,!0)},getTextPos:()=>i.getTextPos(),getLine:()=>i.getLine(),getColumn:()=>i.getColumn(),getIndent:()=>i.getIndent(),isAtStartOfLine:()=>i.isAtStartOfLine(),hasTrailingComment:()=>i.hasTrailingComment(),hasTrailingWhitespace:()=>i.hasTrailingWhitespace(),clear(){i.clear(),r=0}}}function A(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function N(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function w(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?g(n,i,{}):b(n,a[o+1])})):N(t,n,i)}t.assignPositionsToNode=T,t.createWriter=k,t.isValidLocationToAddComment=A,(t=>{function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else N(t,r,e.getAncestor(n,266))}t.deleteDeclaration=(t,n,i,a)=>{switch(a.kind){case 164:var c=a.parent;e.isArrowFunction(c)&&1===c.parameters.length&&!e.findChildOfKind(c,20,i)?t.replaceNodeWithText(i,a,"()"):w(t,n,i,a);break;case 266:case 265:N(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;case 203:var l=a.parent;202===l.kind&&a!==e.last(l.elements)?N(t,i,a):w(t,n,i,a);break;case 254:!((t,r,n,i)=>{var a=i.parent;if(292!==a.kind)if(1===a.declarations.length){var s=a.parent;switch(s.kind){case 244:case 243:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 242:N(t,n,a);break;case 237:N(t,n,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}else w(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))})(t,n,i,a);break;case 163:w(t,n,i,a);break;case 270:var u=a.parent;1===u.elements.length?r(t,i,u):w(t,n,i,a);break;case 268:r(t,i,a);break;case 26:N(t,i,a,{trailingTriviaOption:s.Exclude});break;case 98:N(t,i,a,{leadingTriviaOption:o.Exclude});break;case 257:case 256:N(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?((t,r,n)=>{if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else N(t,r,n.name)}else N(t,r,n.parent)})(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?w(t,n,i,a):N(t,i,a):N(t,i,a)}}})(S||(S={})),t.deleteNode=N}(e.textChanges||(e.textChanges={}))}(p),(e=>{!(t=>{var r=e.createMultiMap(),n=new e.Map;function i(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function a(e,t){return{changes:e,commands:t}}function o(t,r,n){for(var i=0,a=s(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function s(t){var r=t.program,n=t.sourceFile,i=t.cancellationToken;return f(f(f([],r.getSemanticDiagnostics(n,i),!0),r.getSyntacticDiagnostics(n,i),!0),e.computeSuggestionDiagnostics(n,r,i),!0)}t.createCodeFixActionWithoutFixAll=(t,r,n)=>i(t,e.diagnosticToString(n),r,void 0,void 0),t.createCodeFixAction=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,e.diagnosticToString(o),s),t.createCodeFixActionMaybeFixAll=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,o&&e.diagnosticToString(o),s),t.registerCodeFix=t=>{for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!n.has(l)),n.set(l,t)}},t.getSupportedErrorCodes=()=>e.arrayFrom(r.keys()),t.getFixes=t=>{var n=s(t),i=r.get(String(t.errorCode));return e.flatMap(i,(r=>e.map(r.getCodeActions(t),((t,r)=>{for(var n=t.errorCodes,i=0,a=0,o=r;a<o.length;a++){var s=o[a];if(e.contains(n,s.code)&&i++,i>1)break}var c=i<2;return e=>{var t=e.fixId,r=e.fixAllDescription,n=y(e,["fixId","fixAllDescription"]);return c?n:m(m({},n),{fixId:t,fixAllDescription:r})}})(r,n))))},t.getAllFixes=t=>n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t),t.createCombinedCodeActions=a,t.createFileTextChanges=(e,t)=>({fileName:e,textChanges:t}),t.codeFixAll=(t,r,n)=>{var i=[];return a(e.textChanges.ChangeTracker.with(t,(e=>o(t,r,(t=>n(e,t,i))))),0===i.length?void 0:i)},t.eachDiagnostic=o})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=(e,t)=>{r.set(e,t)},t.getApplicableRefactors=n=>e.arrayFrom(e.flatMapIterator(r.values(),(e=>{var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((e=>t.refactorKindBeginsWith(e,n.kind))))?void 0:e.getAvailableActions(n)}))),t.getEditsForRefactor=(e,t,n)=>{var i=r.get(t);return i&&i.getEditsForAction(e,n)}})(p),(e=>{!(t=>{var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(155)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(155),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(t=>e.isAsExpression(t)||e.isTypeAssertionExpression(t)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=a(t.file,t.start);r&&i(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(t=>{var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(p),(e=>{!(t=>{var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((t=>((t,r,n,i)=>{if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}})(t,n.sourceFile,i,o)));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(n=>n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),((t,r)=>n=>{var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code))})(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)));if(u)return[i(t,u,(r=>e.textChanges.ChangeTracker.with(t,r)))]},getAllCodeActions(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,((t,n)=>{var c=n.relatedInformation&&e.find(n.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)),l=a(o,c);if(l)return i(r,l,(e=>(e(t),[])),s)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],a=f([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],i,!0);function o(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&((t,r,n,i,a)=>{var o=a.getTypeChecker().getDiagnostics(t,i);return e.some(o,(t=>{var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(t=>t.code===e.Diagnostics.Did_you_forget_to_use_await.code))}))})(t,r,n,i,a)&&l(o)?o:void 0}function s(r,n,i,o,s,c){var d=r.sourceFile,p=r.program,_=r.cancellationToken,f=((t,r,n,i,o)=>{var s=((t,r)=>{if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}})(t,o);if(s){for(var c,u=s.isCompleteFix,d=t=>{var s=o.getSymbolAtLocation(t);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=d&&e.tryCast(d.name,e.isIdentifier),_=e.getAncestor(d,237);if(!d||!_||d.type||!d.initializer||_.getSourceFile()!==r||e.hasSyntacticModifier(_,1)||!p||!l(d.initializer))return u=!1,"continue";var f=i.getSemanticDiagnostics(r,n);if(e.FindAllReferences.Core.eachSymbolReferenceInFile(p,o,r,(n=>t!==n&&!((t,r,n,i)=>{var o=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(e=>e.start===o.getStart(n)&&e.start+e.length===o.getEnd()));return s&&e.contains(a,s.code)||1&i.getTypeAtLocation(o).flags})(n,f,r,o))))return u=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},p=0,_=s.identifiers;p<_.length;p++)d(_[p]);return c&&{initializers:c,needsSecondPassForFixAll:!u}}})(n,d,_,p,o);if(f){var m=s((t=>{e.forEach(f.initializers,(e=>{var r=e.expression;return u(t,i,d,o,r,c)})),c&&f.needsSecondPassForFixAll&&u(t,i,d,o,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",m,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(n,i,a,o,s,c){var l=s((e=>u(e,a,n.sourceFile,o,i,c)));return t.createCodeFixAction(r,l,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(t){return 32768&t.kind||!!e.findAncestor(t,(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(256===t.parent.kind||213===t.parent.kind||214===t.parent.kind||169===t.parent.kind)))}function u(t,r,a,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var p=u[l];if(!(c&&e.isIdentifier(p)&&(m=o.getSymbolAtLocation(p))&&c.has(e.getSymbolId(m)))){var _=o.getTypeAtLocation(p),f=o.getPromisedTypeOfPromise(_)?e.factory.createAwaitExpression(p):p;t.replaceNode(a,p,f)}}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(m=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),d(t,s.parent.expression,a)}else if(e.contains(i,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(m=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),d(t,s,a)}else{var m;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(m=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createAwaitExpression(s))}}function d(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:a,getCodeActions(t){var r=t.sourceFile,n=t.errorCode,i=o(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),l=r=>e.textChanges.ChangeTracker.with(t,r);return e.compact([s(t,i,n,a,l),c(t,i,n,a,l)])}},getAllCodeActions(r){var n=r.sourceFile,i=r.program,l=r.cancellationToken,u=r.program.getTypeChecker(),d=new e.Set;return t.codeFixAll(r,a,((e,t)=>{var a=o(n,t.code,t,l,i);if(a){var p=t=>(t(e),[]);return s(r,a,t.code,u,p,d)||c(r,a,t.code,u,p,d)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),l=e.findAncestor(c,(t=>e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!(e=>{switch(e.kind){case 79:case 204:case 205:case 296:case 297:return!0;default:return!1}})(t)&&"quit"));if(l)return a(t,l,r,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(u)){var d=i.getTypeChecker();if(!e.every(u.elements,(t=>{return r=t,n=d,!!(i=e.isIdentifier(r)?r:e.isAssignmentExpression(r,!0)&&e.isIdentifier(r.left)?r.left:void 0)&&!n.getSymbolAtLocation(i);var r,n,i})))return;return a(t,u,r,s)}var p=e.findAncestor(c,(t=>!!e.isExpressionStatement(t.parent)||!(e=>{switch(e.kind){case 79:case 221:case 27:return!0;default:return!1}})(t)&&"quit"));if(p){if(!o(p,i.getTypeChecker()))return;return a(t,p,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,85,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(e=>o(e,r))):63===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,r.program,a)))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;167!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,135,o)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,a)))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function i(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var a=r.getSymbolAtLocation(t.parent.expression);if(!(null==a?void 0:a.valueDeclaration)||!e.isFunctionLikeKind(a.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=a.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=i(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getTypeChecker(),o=((t,r,n)=>{var a,o,s=i(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=((t,r,n)=>e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType())(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null===(o=null===(a=u.symbol)||void 0===a?void 0:a.declarations)||void 0===o?void 0:o.some((t=>e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/))))?e.emptyArray:n.getExactOptionalProperties(u)})(n.sourceFile,n.span,a);if(o.length){var s=e.textChanges.ChangeTracker.with(n,(t=>((t,r)=>{for(var n=0,i=r;n<i.length;n++){var a=i[n].valueDeclaration;if(a&&(e.isPropertySignature(a)||e.isPropertyDeclaration(a))&&a.type){var o=e.factory.createUnionTypeNode(f(f([],187===a.type.kind?a.type.types:[a.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));t.replaceNode(a.getSourceFile(),a.type,o)}}})(t,o)));return[t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[r]})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return(t=>e.isFunctionLikeDeclaration(t)||254===t.kind||166===t.kind||167===t.kind)(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((t=>!!e.getJSDocType(t))))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&t.tryInsertTypeAnnotation(r,l,c(u))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var d=e.getJSDocReturnType(n);d&&t.tryInsertTypeAnnotation(r,n,c(d))}}else{var p=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(p))}}function c(t){switch(t.kind){case 312:case 313:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 316:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)]))(t);case 315:return c(t.type);case 314:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)]))(t);case 318:return(t=>e.factory.createArrayTypeNode(e.visitNode(t.type,c)))(t);case 317:return(t=>{var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(l),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(130))})(t);case 178:return(t=>{var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return(t=>{var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,147===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(147===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n})(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)})(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function l(t){var r=t.parent.parameters.indexOf(t),n=318===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(e=>s(e,n.sourceFile,a)));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&s(e,t.file,r)}))}),t.parameterShouldGetTypeFromJSDoc=a})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))t.replaceNode(r,u,(t=>{var r=_(l);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,93);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)})(u));else if(e.isVariableDeclaration(u)){var d=(t=>{var r=t.initializer;if(r&&e.isFunctionExpression(r)&&e.isIdentifier(t.name)){var n=_(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,93);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}})(u);if(!d)return;var p=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(t.delete(r,u),t.insertNodeAfter(r,p,d)):t.replaceNode(r,p,d)}}function _(n){var i=[];return n.exports&&n.exports.forEach((t=>{if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(124)],i)})),n.members&&n.members.forEach(((a,s)=>{var c,u,d,p;if("constructor"===s&&a.valueDeclaration){var _=null===(p=null===(d=null===(u=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===p?void 0:p.parent;_&&e.isBinaryExpression(_)&&e.isObjectLiteralExpression(_.right)&&e.some(_.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var u,d,p=n.valueDeclaration,_=p.parent,f=_.right;if(u=p,d=f,(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(t=>!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t)))))&&!e.some(l,(t=>{var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var m=_.parent&&238===_.parent.kind?_.parent:_;if(t.delete(r,m),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var g=e.getQuotePreference(r,s),h=((t,r,n)=>{if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0})(p,c,g);h&&v(l,f,h)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,(t=>{(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&v(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(p)){var y=e.factory.createPropertyDeclaration(void 0,i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,y,r),void l.push(y)}}else l.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0))}}function v(t,n,o){return e.isFunctionExpression(n)?((t,n,o)=>{var s=e.concatenate(i,a(n,131)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),void t.push(c)})(t,n,o):((t,n,o)=>{var s,c=n.body;s=235===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,131)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(_,u,r),t.push(u)})(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(e=>e.kind===r))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function o(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var c=new e.Map,l=e.isInJSFile(a),_=((t,r)=>{if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){s(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):s(i,r,"catch")||s(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n})(a,i),f=((t,r,n)=>{var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=D(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,p=a.get(u);if(p&&p.some((e=>e!==s))){var _=d(o,a);i.set(l,_.identifier),n.set(l,_),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,A(f)),a.add(u,s)}}}else{var m=e.firstOrUndefined(c.parameters),g=(null==m?void 0:m.valueDeclaration)&&e.isParameter(m.valueDeclaration)&&e.tryCast(m.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=d(g,a);n.set(l,h),a.add(g.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(t=>{if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))})(a,i,c);if(e.returnsPromise(f,i)){var g=f.body&&e.isBlock(f.body)?((t,r)=>{var n=[];return e.forEachReturnStatement(t,(t=>{e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n})(f.body,i):e.emptyArray,h={checker:i,synthNamesMap:c,setOfExpressionsToReturn:_,isInJSFile:l};if(g.length){var y=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),v=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,y,131,v);for(var b=n=>{if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=m(a,a,h,!1);if(p())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),p()))return!0})),p())return{value:void 0}},x=0,E=g;x<E.length;x++){var S=b(E[x]);if("object"==typeof S)return S.value}}}}}function s(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function c(t,r){return 0!=(4&e.getObjectFlags(t))&&t.target===r}function l(t,r,n){if("finally"!==t.expression.name.escapedText){var i=n.getTypeAtLocation(t.expression.expression);if(c(i,n.getPromiseType())||c(i,n.getPromiseLikeType())){if("then"!==t.expression.name.escapedText)return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,0))return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,1))return e.elementAt(t.typeArguments,1)}}}function u(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function d(t,r){var n=(r.get(t.text)||e.emptyArray).length;return A(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function p(){return!a}function _(){return a=!1,e.emptyArray}function m(t,r,n,i,a){if(s(r,n.checker,"then"))return((t,r,n,i,a,o)=>{if(!r||g(i,r))return v(t,n,i,a,o);if(n&&!g(i,n))return _();var s=C(r,i),c=m(t.expression.expression,t.expression.expression,i,!0,s);if(p())return _();var l=E(r,a,o,s,t,i);return p()?_():e.concatenate(c,l)})(r,e.elementAt(r.arguments,0),e.elementAt(r.arguments,1),n,i,a);if(s(r,n.checker,"catch"))return v(r,e.elementAt(r.arguments,0),n,i,a);if(s(r,n.checker,"finally"))return((t,r,n,i,a)=>{if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=h(t,n,a),s=m(t,t.expression.expression,n,!0,o);if(p())return _();var c=E(r,i,void 0,void 0,t,n);if(p())return _();var l=e.factory.createBlock(s),u=e.factory.createBlock(c);return y(t,n,e.factory.createTryStatement(l,void 0,u),o,a)})(r,e.elementAt(r.arguments,0),n,i,a);if(e.isPropertyAccessExpression(r))return m(t,r.expression,n,i,a);var o=n.checker.getTypeAtLocation(r);return o&&n.checker.getPromisedTypeOfPromise(o)?(e.Debug.assertNode(e.getOriginalNode(r).parent,e.isPropertyAccessExpression),((t,r,n,i,a)=>{if(O(t,n)){var o=e.getSynthesizedDeepClone(r);return i&&(o=e.factory.createAwaitExpression(o)),[e.factory.createReturnStatement(o)]}return b(a,e.factory.createAwaitExpression(r),void 0)})(t,r,n,i,a)):_()}function g(t,r){var n=t.checker;if(104===r.kind)return!0;if(e.isIdentifier(r)&&!e.isGeneratedIdentifier(r)&&"undefined"===e.idText(r)){var i=n.getSymbolAtLocation(r);return!i||n.isUndefinedSymbol(i)}return!1}function h(t,r,n){var i;return n&&!O(t,r)&&(I(n)?(i=n,r.synthNamesMap.forEach(((t,i)=>{if(t.identifier.text===n.identifier.text){var a=(o=n,A(e.factory.createUniqueName(o.identifier.text,16)));r.synthNamesMap.set(i,a)}var o}))):i=A(e.factory.createUniqueName("result",16),n.types),P(i)),i}function y(t,r,n,i,a){var o,s=[];if(i&&!O(t,r)){o=e.getSynthesizedDeepClone(P(i));var c=i.types,l=r.checker.getUnionType(c,2),u=r.isInJSFile?void 0:r.checker.typeToTypeNode(l,void 0,void 0),d=[e.factory.createVariableDeclaration(o,void 0,u)],p=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(d,1));s.push(p)}return s.push(n),a&&o&&1===a.kind&&s.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(F(a)),void 0,void 0,o)],2))),s}function v(t,r,n,i,a){if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=C(r,n),s=h(t,n,a),c=m(t,t.expression.expression,n,!0,s);if(p())return _();var l=E(r,i,s,o,t,n);if(p())return _();var u=e.factory.createBlock(c),d=e.factory.createCatchClause(o&&e.getSynthesizedDeepClone(w(o)),e.factory.createBlock(l));return y(t,n,e.factory.createTryStatement(u,d,void 0),s,a)}function b(t,r,n){return!t||k(t)?[e.factory.createExpressionStatement(r)]:I(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(N(t)),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(w(t)),void 0,n,r)],2))]}function x(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return f(f([],b(A(n),t,r),!0),[e.factory.createReturnStatement(n)],!1)}return[e.factory.createReturnStatement(t)]}function E(t,r,n,i,a,o){var s;switch(t.kind){case 104:break;case 206:case 79:if(!i)break;var c=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,I(i)?[N(i)]:[]);if(O(a,o))return x(c,l(a,t,o.checker));var d=o.checker.getTypeAtLocation(t),p=o.checker.getSignaturesOfType(d,0);if(!p.length)return _();var f=p[0].getReturnType(),m=b(n,e.factory.createAwaitExpression(c),l(a,t,o.checker));return n&&n.types.push(o.checker.getAwaitedType(f)||f),m;case 213:case 214:var g=t.body,h=null===(s=D(o.checker.getTypeAtLocation(t),o.checker))||void 0===s?void 0:s.getReturnType();if(e.isBlock(g)){for(var y=[],v=!1,E=0,C=g.statements;E<C.length;E++){var k=C[E];if(e.isReturnStatement(k))if(v=!0,e.isReturnStatementWithFixablePromiseHandler(k,o.checker))y=y.concat(T(o,k,r,n));else{var A=h&&k.expression?S(o.checker,h,k.expression):k.expression;y.push.apply(y,x(A,l(a,t,o.checker)))}else{if(r&&e.forEachReturnStatement(k,e.returnTrue))return _();y.push(k)}}return O(a,o)?y.map((t=>e.getSynthesizedDeepClone(t))):((t,r,n,i)=>{for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=u(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):I(r)&&r.hasBeenDeclared?a.push(e.factory.createExpressionStatement(e.factory.createAssignment(N(r),l))):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(w(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(w(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a})(y,n,o,v)}var F=e.isFixablePromiseHandler(g,o.checker)?T(o,e.factory.createReturnStatement(g),r,n):e.emptyArray;if(F.length>0)return F;if(h){if(A=S(o.checker,h,g),O(a,o))return x(A,l(a,t,o.checker));var P=b(n,A,void 0);return n&&n.types.push(o.checker.getAwaitedType(h)||h),P}return _();default:return _()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function D(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function T(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=m(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function C(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):((t,r,n)=>(void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}))(r,e.flatMap(r.elements,(r=>e.isOmittedExpression(r)?[]:[t(r.name)])))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=(e=>e.symbol?e.symbol:r.checker.getSymbolAtLocation(e))((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||A(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function A(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function N(e){return e.hasBeenReferenced=!0,e.identifier}function w(e){return I(e)?P(e):F(e)}function F(e){for(var t=0,r=e.elements;t<r.length;t++)w(r[t]);return e.bindingPattern}function P(e){return e.hasBeenDeclared=!0,e.identifier}function I(e){return 0===e.kind}function O(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:i,getCodeActions(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(e=>o(e,r.sourceFile,r.span.start,r.program.getTypeChecker())));return a?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,r.file,r.start,e.program.getTypeChecker())))}),(e=>{e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"})(r||(r={}))})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text,e.getModeForUsageLocation(t,s));if(c&&c.resolvedFileName===r.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 265:n.replaceNode(t,l,e.makeImport(l.name,void 0,s,i));break;case 208:e.isRequireCall(l,!1)&&n.replaceNode(t,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,l,u,d,_,f){switch(r.kind){case 237:return a(t,r,i,n,l,u,f),!1;case 238:var h=r.expression;switch(h.kind){case 208:return e.isRequireCall(h,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,h.arguments[0],f)),!1;case 221:return 63===h.operatorToken.kind&&((t,r,n,i,a,l)=>{var u=n.left,d=n.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(t,u)){if(!e.isExportsOrModuleExportsOrAlias(t,d)){var _=e.isObjectLiteralExpression(d)?((t,r)=>{var n=e.mapAllOrFail(t.properties,(t=>{switch(t.kind){case 172:case 173:case 297:case 298:return;case 296:return e.isIdentifier(t.name)?((t,r,n)=>{var i=[e.factory.createToken(93)];switch(r.kind){case 213:var a=r.name;if(a&&a.text!==t)return o();case 214:return p(t,i,r,n);case 226:return((t,r,n,i)=>e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i)))(t,i,r,n);default:return o()}function o(){return m(i,e.factory.createIdentifier(t),c(r,n))}})(t.name.text,t.initializer,r):void 0;case 169:return e.isIdentifier(t.name)?p(t.name.text,[e.factory.createToken(93)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind ".concat(t.kind))}}));return n&&[n,!1]})(d,l):e.isRequireCall(d,!0)?((t,r)=>{var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]})(d.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&((t,r,n,i)=>{var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[m(void 0,o,r.right),g([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!((t,r,n)=>{var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}})(r,t,n)})(t,n,i,a);return!1})(t,n,h,i,d,_)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,p=!1,g=e.map(d.declarations,(n=>{var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return p=!0,h([]);if(e.isRequireCall(u,!0))return p=!0,((r,n,i,a,o,s)=>{switch(r.kind){case 201:var c=e.mapAllOrFail(r.elements,(t=>t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)));if(c)return h([e.makeImport(void 0,c,n,s)]);case 202:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return h([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),m(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return((t,r,n,i,a)=>{for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d<p.length;d++){var _=p[d];if(n.getSymbolAtLocation(_)===s&&_!==t){var f=_.parent;if(e.isPropertyAccessExpression(f)){var m=f.name.text;if("default"===m){u=!0;var g=_.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(g))}else{e.Debug.assert(f.expression===_,"Didn't expect expression === use");var y=c.get(m);void 0===y&&(y=l(m,i),c.set(m,y)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(y))}}else u=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(t=>{var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return v||(u=!0),h([e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,v,r,a)],o)})(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}})(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return p=!0,((t,r,n,i,a)=>{switch(t.kind){case 201:case 202:var o=l(r,i);return h([_(o,r,n,a),m(void 0,t,e.factory.createIdentifier(o))]);case 79:return h([_(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}})(i,u.name.text,u.expression.arguments[0],o,c)}return h([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(p)return i.replaceNodeWithNodes(r,n,e.flatMap(g,(e=>e.newImports))),e.forEach(g,(t=>{t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(t){return g([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(r=>e.rangeContainsRange(t,r)))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(206===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function u(t){var r=e.createMultiMap();return d(t,(e=>r.add(e.text,e))),r}function d(t,r){e.isIdentifier(t)&&(e=>{var t=e.parent;switch(t.kind){case 206:return t.name!==e;case 203:case 270:return t.propertyName!==e;default:return!0}})(t)&&r(t),t.forEachChild((e=>d(e,r)))}function p(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function _(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function m(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function g(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function h(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(o){var s=o.sourceFile,c=o.program,d=o.preferences,p=e.textChanges.ChangeTracker.with(o,(t=>{if(((t,r,o,s,c)=>{var d={original:u(t),additional:new e.Set},p=((t,r,i)=>{var a=new e.Map;return n(t,(t=>{var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_".concat(o),i))})),a})(t,r,d);!((t,r,i)=>{n(t,((n,a)=>{if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))})(t,p,o);for(var _,f=!1,m=0,g=e.filter(t.statements,e.isVariableStatement);m<g.length;m++){var h=g[m],y=a(t,h,o,r,d,s,c);y&&e.copyEntries(y,null!=_?_:_=new e.Map)}for(var v=0,b=e.filter(t.statements,(t=>!e.isVariableStatement(t)));v<b.length;v++){h=b[v];var x=i(t,h,r,o,d,s,p,_,c);f=f||x}return null==_||_.forEach(((e,r)=>{o.replaceNode(t,r,e)})),f})(s,c.getTypeChecker(),t,e.getEmitScriptTarget(c.getCompilerOptions()),e.getQuotePreference(s,d)))for(var o=0,p=c.getSourceFiles();o<p.length;o++){var _=p[o];r(_,s,t,e.getQuotePreference(_,d))}}));return[t.createCodeFixActionWithoutFixAll("convertToEsModule",p,e.Diagnostics.Convert_to_ES_module)]}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>a(e,n.sourceFile,o))),c="".concat(o.left.text,'["').concat(o.right.text,'"]');return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=((t,n)=>{var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(n=>{var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))})(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,152,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(t=>!e.contains(s,t)))),o.moduleSpecifier,void 0),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier,void 0);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,l)}}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>a(e,i(r.span,r.sourceFile),r)));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier,void 0)))}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>{a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(r,e.sourceFile),e)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="convertLiteralTypeToMappedType",n=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(void 0,s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a,void 0))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=c.name,u=c.constraint,d=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,d,[e.Diagnostics.Convert_0_to_1_in_0,u,l],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var l=r.program.getTypeChecker(),u=((t,r)=>{var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))})(o,l),d=l.getTypeAtLocation(n),p=l.getPropertiesOfType(d).filter(e.and(a,(e=>!u.has(e.escapedName)))),_=l.getTypeAtLocation(o),f=e.find(o.members,(t=>e.isConstructorDeclaration(t)));_.getNumberIndexType()||g(d,1),_.getStringIndexType()||g(d,0);var m=t.createImportAdder(i,r.program,c,r.host);function g(e,n){var a=l.getIndexInfoOfType(e,n);a&&h(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function h(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertMemberAtStart(e,t,r)}t.createMissingMemberNodes(o,p,i,r,c,m,(e=>h(i,o,e))),m.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(i=>{var s=e.textChanges.ChangeTracker.with(r,(e=>o(r,i,a,c,e,r.preferences)));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions(n){var a=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(n,u,r.file,s,t,n.preferences)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{t.importFixName="import";var r,n,i="fixMissingImport",a=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];function o(t,r,n,i,a){var o=r.getCompilerOptions(),c=[],l=[],d=new e.Map,p=new e.Map;return{addImportFromDiagnostic(e,t){var r=h(t,e.code,e.start,n);r&&r.fixes.length&&_(r)},addImportFromExportedSymbol(c,l){var d=e.Debug.checkDefined(c.parent),p=e.getNameForExportedSymbol(c,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),m=f.getMergedSymbol(e.skipAlias(c,f)),h=u(t,m,d,p,!1,a,r,i,n),y=g(t,r),v=s(t,h,d,r,void 0,!!l,y,a,i);v&&_({fixes:[v],symbolName:p,errorIdentifierText:void 0})},writeFixes(r){for(var n,a=e.getQuotePreference(t,i),s=0,u=c;s<u.length;s++){var _=u[s];A(r,t,_)}for(var f=0,m=l;f<m.length;f++)_=m[f],N(r,t,_,a);d.forEach((n=>{var i=n.importClauseOrBindingPattern,a=n.defaultImport,s=n.namedImports;k(r,t,i,a,e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),o)})),p.forEach(((t,r)=>{var i=t.useRequire,o=t.defaultImport,s=t.namedImports,c=t.namespaceLikeImport,l=(i?I:P)(r.slice(2),a,o,s&&e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),c);n=e.combine(n,l)})),n&&e.insertImports(r,t,n,!0)},hasFixes:()=>c.length>0||l.length>0||d.size>0||p.size>0};function _(t){var r,n,i=t.fixes,a=t.symbolName,o=e.first(i);switch(o.kind){case 0:c.push(o);break;case 1:l.push(o);break;case 2:var s=o.importClauseOrBindingPattern,u=o.importKind,_=o.addAsTypeOnly,f=String(e.getNodeId(s));if((y=d.get(f))||d.set(f,y={importClauseOrBindingPattern:s,defaultImport:void 0,namedImports:new e.Map}),0===u){var m=null==y?void 0:y.namedImports.get(a);y.namedImports.set(a,v(m,_))}else e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(r=y.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,_)};break;case 3:var g=o.moduleSpecifier,h=(u=o.importKind,o.useRequire),y=((e,t,r,n)=>{var i=b(e,!0),a=b(e,!1),o=p.get(i),s=p.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};return 1===t&&2===n?o||(p.set(i,c),c):1===n&&(o||s)?o||s:s||(p.set(a,c),c)})(g,u,h,_=o.addAsTypeOnly);switch(e.Debug.assert(y.useRequire===h,"(Add new) Tried to add an `import` and a `require` for the same module"),u){case 1:e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(n=y.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,_)};break;case 0:m=(y.namedImports||(y.namedImports=new e.Map)).get(a),y.namedImports.set(a,v(m,_));break;case 3:case 2:e.Debug.assert(void 0===y.namespaceLikeImport||y.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),y.namespaceLikeImport={importKind:u,name:a,addAsTypeOnly:_}}break;case 4:break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function v(e,t){return Math.max(null!=e?e:0,t)}function b(e,t){return"".concat(t?1:0,"|").concat(e)}}}function s(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((e=>e.moduleSymbol===n||e.symbol.parent===n)),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return v(d(r,a,o,s,i,t,c,l).fixes,t,i,u,c)}function c(e){return{description:e.description,changes:e.changes,commands:e.commands}}function l(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function u(t,r,n,i,a,o,s,c,l){var u=[],d=s.getCompilerOptions(),p=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?o.getPackageJsonAutoImportProvider():s,o)));return e.forEachExternalModuleToImportFrom(s,o,l,((o,s,c,l)=>{var p=c.getTypeChecker();if(!s||o===n||!e.startsWith(t.fileName,e.getDirectoryPath(s.fileName))){var f=e.getDefaultLikeExportInfo(o,p,d);f&&(f.name===i||R(o,e.getEmitScriptTarget(d),a)===i)&&e.skipAlias(f.symbol,p)===r&&_(c,s,l)&&u.push({symbol:f.symbol,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:f.exportKind,targetFlags:e.skipAlias(f.symbol,p).flags,isFromPackageJson:l});for(var m=0,g=p.getExportsAndPropertiesOfModule(o);m<g.length;m++){var h=g[m];h.name===i&&p.getMergedSymbol(e.skipAlias(h,p))===r&&_(c,s,l)&&u.push({symbol:h,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:0,targetFlags:e.skipAlias(h,p).flags,isFromPackageJson:l})}}})),u;function _(r,n,i){var a;return!n||e.isImportableFile(r,t,n,c,void 0,p(i),null===(a=o.getModuleSpecifierCache)||void 0===a?void 0:a.call(o))}}function d(t,r,n,i,a,o,s,c,l,u){void 0===l&&(l=_(a.getTypeChecker(),o,a.getCompilerOptions()));var d=a.getTypeChecker(),m=e.flatMap(t,l.getImportsForExportInfo),g=r&&((t,r,n,i)=>e.firstDefined(t,(t=>{var a,o=t.declaration,s=(t=>{var r,n,i;switch(t.kind){case 254:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 265:return t.name.text;case 266:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}})(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=((t,r)=>{var n;switch(t.kind){case 254:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 265:return r.getAliasedSymbol(t.symbol);case 266:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}})(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}})))(m,r.symbolName,r.position,d),h=((t,r,n,i)=>e.firstDefined(t,(t=>{var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&265!==a.kind){if(254===a.kind)return 0!==o&&1!==o||201!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var _=p(r,!1,s,c,n,i);if(!(1===o&&(u||2===_&&d)||0===o&&268===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:_}}}}})))(m,n,d,a.getCompilerOptions());if(h)return{computedWithoutCacheCount:0,fixes:f(f([],g?[g]:e.emptyArray,!0),[h],!1)};var y=((t,r,n,i,a,o,s,c,l,u)=>{var d=e.firstDefined(r,(t=>((t,r,n,i,a)=>{var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d)return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:n?4:p(r,!0,l,u,i,a),useRequire:n}})(t,o,s,n.getTypeChecker(),n.getCompilerOptions())));return d?{fixes:[d]}:((t,r,n,i,a,o,s,c,l)=>{var u=e.isSourceFileJS(r),d=t.getCompilerOptions(),_=e.createModuleSpecifierResolutionHost(t,s),f=e.memoizeOne((e=>e?s.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())),m=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),g=l?t=>({moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,_,c),computedWithoutCache:!1}):(t,n)=>e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,d,r,_,c),h=0,y=e.flatMap(o,((t,o)=>{var s=f(t.isFromPackageJson),c=g(t.moduleSymbol,s),l=c.computedWithoutCache,_=c.moduleSpecifiers,y=!!(111551&t.targetFlags),v=p(i,!0,t.symbol,t.targetFlags,s,d);return h+=l?1:0,e.mapDefined(_,(i=>m&&e.pathContainsNodeModules(i)?void 0:!y&&u&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:E(r,t.exportKind,d),useRequire:a,addAsTypeOnly:v,exportInfo:t,isReExport:o>0}))}));return{computedWithoutCacheCount:h,fixes:y}})(n,i,a,o,s,t,c,l,u)})(t,m,a,o,null==r?void 0:r.position,n,i,s,c,u),v=y.fixes,b=y.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===b?0:b,fixes:f(f([],g?[g]:e.emptyArray,!0),v,!0)}}function p(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function _(t,r,n){for(var i,a=0,o=r.imports;a<o.length;a++){var s=o[a],c=e.importFromModuleSpecifier(s);if(e.isVariableDeclarationInitializedToRequire(c.parent))(l=t.resolveExternalModuleName(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c.parent);else if(266===c.kind||265===c.kind){var l;(l=t.getSymbolAtLocation(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c)}}return{getImportsForExportInfo(t){var a=t.moduleSymbol,o=t.exportKind,s=t.targetFlags,c=t.symbol;if(!(111551&s)&&e.isSourceFileJS(r))return e.emptyArray;var l=null==i?void 0:i.get(e.getSymbolId(a));if(!l)return e.emptyArray;var u=E(r,o,n);return l.map((e=>({declaration:e,importKind:u,symbol:c,targetFlags:s})))}}}function g(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function h(t,r,n,i){var a,o=e.getTokenAtPosition(t.sourceFile,n);if(r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=((t,r)=>{var n,i=t.sourceFile,a=t.program,o=t.host,s=t.preferences,c=a.getTypeChecker(),l=((t,r)=>{var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0})(r,c);if(l){var u=c.getAliasedSymbol(l),p=l.name,_=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],f=g(i,a),m=e.isIdentifier(r)?r.getStart(i):void 0;return{fixes:d(_,m?{position:m,symbolName:p}:void 0,!1,f,a,i,o,s).fixes,symbolName:p,errorIdentifierText:null===(n=e.tryCast(r,e.isIdentifier))||void 0===n?void 0:n.text}}})(t,o);else{if(!e.isIdentifier(o))return;if(r===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var s=D(t.sourceFile,t.program.getTypeChecker(),o,t.program.getCompilerOptions()),c=S(t.sourceFile,o,s,t.program);return c&&{fixes:[c],symbolName:s,errorIdentifierText:o.text}}a=((t,r,n)=>{var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,l=a.getTypeChecker(),u=a.getCompilerOptions(),p=D(i,l,r,u);if("default"!==p){var _=e.isValidTypeOnlyAliasUseSite(r),f=g(i,a),m=((t,r,n,i,a,o,s,c,l)=>{var u,d=e.createMultiMap(),p=e.createPackageJsonImportFilter(a,l,c),_=null===(u=c.getModuleSpecifierCache)||void 0===u?void 0:u.call(c),f=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?c.getPackageJsonAutoImportProvider():o,c)));function m(t,r,n,i,o,s){var c=f(s);if(r&&e.isImportableFile(o,a,r,l,p,c,_)||!r&&p.allowsImportingAmbientModule(t,c)){var u=o.getTypeChecker();d.add(e.getUniqueSymbolId(n,u).toString(),{symbol:n,moduleSymbol:t,moduleFileName:null==r?void 0:r.fileName,exportKind:i,targetFlags:e.skipAlias(n,u).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(o,c,s,((a,o,s,c)=>{var l=s.getTypeChecker();i.throwIfCancellationRequested();var u=s.getCompilerOptions(),d=e.getDefaultLikeExportInfo(a,l,u);d&&(d.name===t||R(a,e.getEmitScriptTarget(u),r)===t)&&M(d.symbolForMeaning,n)&&m(a,o,d.symbol,d.exportKind,s,c);var p=l.tryGetMemberInModuleExportsAndProperties(t,a);p&&M(p,n)&&m(a,o,p,0,s,c)})),d})(p,e.isJSXTagName(r),e.getMeaningFromLocation(r),o,i,a,n,s,c);return{fixes:e.arrayFrom(e.flatMapIterator(m.entries(),(e=>d(e[1],{symbolName:p,position:r.getStart(i)},_,f,a,i,s,c).fixes))),symbolName:p,errorIdentifierText:r.text}}})(t,o,i)}var l=e.createPackageJsonImportFilter(t.sourceFile,t.preferences,t.host);return a&&m(m({},a),{fixes:y(a.fixes,t.sourceFile,t.program,l,t.host)})}function y(t,r,n,i,a){var o=t=>e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a));return e.sort(t,((t,a)=>e.compareValues(t.kind,a.kind)||b(t,a,r,n,i.allowsImportingSpecifier,o)))}function v(t,r,n,i,a){if(e.some(t))return 0===t[0].kind||2===t[0].kind?t[0]:t.reduce(((t,o)=>-1===b(o,t,r,n,i.allowsImportingSpecifier,(t=>e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a))))?o:t))}function b(t,r,n,i,a,o){return 0!==t.kind&&0!==r.kind?e.compareBooleans(a(r.moduleSpecifier),a(t.moduleSpecifier))||((t,r,n,i)=>e.startsWith(t,"node:")&&!e.startsWith(r,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?-1:1:e.startsWith(r,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?1:-1:0)(t.moduleSpecifier,r.moduleSpecifier,n,i)||e.compareBooleans(x(t,n,i.getCompilerOptions(),o),x(r,n,i.getCompilerOptions(),o))||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function x(t,r,n,i){var a,o;if(t.isReExport&&(null===(a=t.exportInfo)||void 0===a?void 0:a.moduleFileName)&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs&&(o=t.exportInfo.moduleFileName,"index"===e.getBaseFileName(o,[".js",".jsx",".d.ts",".ts",".tsx"],!0))){var s=i(e.getDirectoryPath(t.exportInfo.moduleFileName));return e.startsWith(r.path,s)}return!1}function E(t,r,n,i){switch(r){case 0:return 0;case 1:return 1;case 2:return((t,r,n)=>{var i=e.getAllowSyntheticDefaultImports(r),a=e.isInJSFile(t);if(!a&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3})(t,n,!!i);case 3:return((t,r,n)=>{if(e.getAllowSyntheticDefaultImports(r))return 1;var i=e.getEmitModuleKind(r);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&(e.isExternalModule(t)||n)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return t.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(i,"Unexpected moduleKind ".concat(i))}})(t,n,!!i);default:return e.Debug.assertNever(r)}}function S(t,r,n,i){var a=i.getTypeChecker(),o=a.resolveName(n,r,111551,!0);if(o){var s=a.getTypeOnlyAliasDeclaration(o);if(s&&e.getSourceFileOfNode(s)===t)return{kind:4,typeOnlyAliasDeclaration:s}}}function D(t,r,n,i){var a=n.parent;if((e.isJsxOpeningLikeElement(a)||e.isJsxClosingElement(a))&&a.tagName===n&&e.jsxModeNeedsExplicitImport(i.jsx)){var o=r.getJsxNamespace(t);if(((t,r,n)=>{if(e.isIntrinsicJsxName(r.text))return!0;var i=n.resolveName(t,r,111551,!0);return!i||e.some(i.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(111551&i.flags)})(o,n,r))return o}return n.text}function T(r,n,a,o,s,c,l){var u,d=e.textChanges.ChangeTracker.with(r,(t=>{u=((t,r,n,i,a,o,s)=>{switch(i.kind){case 0:return A(t,r,i),[e.Diagnostics.Change_0_to_1,n,"".concat(i.namespacePrefix,".").concat(n)];case 1:return N(t,r,i,o),[e.Diagnostics.Change_0_to_1,n,w(i.moduleSpecifier,o)+n];case 2:var c=i.importClauseOrBindingPattern,l=i.importKind,u=i.addAsTypeOnly,d=i.moduleSpecifier;k(t,r,c,1===l?{name:n,addAsTypeOnly:u}:void 0,0===l?[{name:n,addAsTypeOnly:u}]:e.emptyArray,s);var p=e.stripQuotes(d);return a?[e.Diagnostics.Import_0_from_1,n,p]:[e.Diagnostics.Update_import_from_0,p];case 3:l=i.importKind,d=i.moduleSpecifier,u=i.addAsTypeOnly;var _=i.useRequire?I:P,f=1===l?{name:n,addAsTypeOnly:u}:void 0,m=0===l?[{name:n,addAsTypeOnly:u}]:void 0,g=2===l||3===l?{importKind:l,name:n,addAsTypeOnly:u}:void 0;return e.insertImports(t,r,_(d,o,f,m,g),!0),a?[e.Diagnostics.Import_0_from_1,n,d]:[e.Diagnostics.Add_import_from_0,d];case 4:var h=((t,r,n,i)=>{var a=n.preserveValueImports&&n.isolatedModules;switch(r.kind){case 270:if(r.isTypeOnly){if(r.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 267:return c(r),r;case 268:return c(r.parent),r.parent;case 265:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&270===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];l===r||l.isTypeOnly||t.insertModifierBefore(i,152,l)}}}}})(t,i.typeOnlyAliasDeclaration,s,r);return 270===h.kind?[e.Diagnostics.Remove_type_from_import_of_0_from_1,n,C(h.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,C(h)];default:return e.Debug.assertNever(i,"Unexpected fix kind ".concat(i.kind))}})(t,n,a,o,s,c,l)}));return t.createCodeFixAction(t.importFixName,d,u,i,e.Diagnostics.Add_all_missing_imports)}function C(t){var r,n;return 265===t.kind?(null===(n=e.tryCast(null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===n?void 0:n.text)||t.moduleReference.getText():e.cast(t.parent.moduleSpecifier,e.isStringLiteral).text}function k(t,r,n,i,a,o){var s;if(201!==n.kind){var c=n.isTypeOnly&&e.some(f([i],a,!0),(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=n.namedBindings&&(null===(s=e.tryCast(n.namedBindings,e.isNamedImports))||void 0===s?void 0:s.elements),u=c&&o.preserveValueImports&&o.isolatedModules;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i.name),{suffix:", "})),a.length){var d=e.stableSort(a.map((t=>e.factory.createImportSpecifier((!n.isTypeOnly||c)&&F(t),void 0,e.factory.createIdentifier(t.name)))),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==l?void 0:l.length)&&e.OrganizeImports.importSpecifiersAreSorted(l))for(var p=0,_=d;p<_.length;p++){var m=_[p],g=u&&!m.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(l,m);t.insertImportSpecifierAtIndex(r,m,n.namedBindings,g)}else if(null==l?void 0:l.length)for(var h=0,y=d;h<y.length;h++)m=y[h],t.insertNodeInListAfter(r,e.last(l),m,l);else if(d.length){var v=e.factory.createNamedImports(d);n.namedBindings?t.replaceNode(r,n.namedBindings,v):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),v)}}if(c&&(t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r)),u&&l))for(var b=0,x=l;b<x.length;b++)D=x[b],t.insertModifierBefore(r,152,D)}else{i&&T(n,i.name,"default");for(var E=0,S=a;E<S.length;E++){var D=S[E];T(n,D.name,void 0)}}function T(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function A(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function N(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,w(i,n))}function w(t,r){var n=e.getQuoteFromPreference(r);return"import(".concat(n).concat(t).concat(n,").")}function F(e){return 2===e.addAsTypeOnly}function P(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(void 0!==n||(null==i?void 0:i.length)){var c=(!n||F(n))&&e.every(i,F);o=e.combine(o,e.makeImport(n&&e.factory.createIdentifier(n.name),null==i?void 0:i.map((t=>{var r=t.addAsTypeOnly,n=t.name;return e.factory.createImportSpecifier(!c&&2===r,void 0,e.factory.createIdentifier(n))})),t,r,c))}if(a){var l=3===a.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,F(a),e.factory.createIdentifier(a.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(F(a),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(a.name))),s,void 0);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function I(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(n||(null==i?void 0:i.length)){var c=(null==i?void 0:i.map((t=>{var r=t.name;return e.factory.createBindingElement(void 0,void 0,r)})))||[];n&&c.unshift(e.factory.createBindingElement(void 0,"default",n.name));var l=O(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return a&&(l=O(a.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function O(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function M(t,r){var n=t.declarations;return e.some(n,(t=>!!(e.getMeaningFromDeclaration(t)&r)))}function R(t,r,n){return L(e.removeFileExtension(e.stripQuotes(t.name)),r,n)}function L(t,r,n){var i=e.getBaseFileName(e.removeSuffix(t,"/index")),a="",o=!0,s=i.charCodeAt(0);e.isIdentifierStart(s,r)?(a+=String.fromCharCode(s),n&&(a=a.toUpperCase())):o=!1;for(var c=1;c<i.length;c++){var l=i.charCodeAt(c),u=e.isIdentifierPart(l,r);if(u){var d=String.fromCharCode(l);o||(d=d.toUpperCase()),a+=d}o=u}return e.isStringANonContextualKeyword(a)?"_".concat(a):a||"_"}t.registerCodeFix({errorCodes:a,getCodeActions(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=t.program,s=h(t,r,a.start,!0);if(s){var c=s.fixes,l=s.symbolName,u=s.errorIdentifierText,d=e.getQuotePreference(i,n);return c.map((e=>T(t,i,l,e,l!==u,d,o.getCompilerOptions())))}},fixIds:[i],getAllCodeActions(r){var n=o(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,a,(e=>n.addImportFromDiagnostic(e,r))),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=(e,t,r,n)=>o(e,t,!1,r,n),t.createImportSpecifierResolver=(t,r,n,i)=>{var a=e.createPackageJsonImportFilter(t,i,n),o=_(r.getTypeChecker(),t,r.getCompilerOptions());return{getModuleSpecifierForBestExportInfo(e,s,c,l,u){var p=d(e,{symbolName:s,position:c},l,!1,r,t,n,i,o,u),_=p.fixes,f=p.computedWithoutCacheCount,g=v(_,t,r,a,n);return g&&m(m({},g),{computedWithoutCacheCount:f})}}},(e=>{e[e.UseNamespace=0]="UseNamespace",e[e.JsdocTypeImport=1]="JsdocTypeImport",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",e[e.PromoteTypeOnly=4]="PromoteTypeOnly"})(r||(r={})),(e=>{e[e.Allowed=1]="Allowed",e[e.Required=2]="Required",e[e.NotAllowed=4]="NotAllowed"})(n||(n={})),t.getImportCompletionAction=(t,r,n,i,a,o,d,p,_,f)=>{var m=d.getCompilerOptions(),h=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[l(t,r,d,o)]:u(n,t,r,i,a,o,d,f,!0),y=g(n,d),v=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,_)),b=e.Debug.checkDefined(s(n,h,r,d,{symbolName:i,position:_},v,y,o,f));return{moduleSpecifier:b.moduleSpecifier,codeAction:c(T({host:o,formatContext:p,preferences:f},n,i,b,!1,e.getQuotePreference(n,f),m))}},t.getPromoteTypeOnlyCompletionAction=(e,t,r,n,i,a)=>{var o=r.getCompilerOptions(),s=D(e,r.getTypeChecker(),t,o),l=S(e,t,s,r),u=s!==t.text;return l&&c(T({host:n,formatContext:i,preferences:a},e,s,l,u,1,o))},t.getImportKind=E,t.moduleSymbolToValidIdentifier=R,t.moduleSpecifierToValidIdentifier=L})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],s=((r={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},r[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r);function c(t,r,n,i){switch(n){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return((t,r,n)=>{var i=u(r,n);if(e.isSourceFileJS(r))t.addJSDocTags(r,i,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);else{var a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(t=>e.isAccessibilityModifier(t.kind))),l=s?s.end:o?o.end:c?c.end:i.decorators?e.skipTrivia(r.text,i.decorators.end):i.getStart(r),d=c||o||s?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,l,159,d)}})(t,r.sourceFile,i);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return((t,r,n)=>{var i=u(r,n);if(e.isSourceFileJS(r))t.filterJSDocTags(r,i,e.not(e.isJSDocOverrideTag));else{var a=i.modifiers&&e.find(i.modifiers,(e=>159===e.kind));e.Debug.assertIsDefined(a),t.deleteModifier(r,a)}})(t,r.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+n)}}function l(t){switch(t.kind){case 171:case 167:case 169:case 172:case 173:return!0;case 164:return e.isParameterPropertyDeclaration(t,t.parent);default:return!1}}function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.findAncestor(n,(t=>e.isClassLike(t)?"quit":l(t)));return e.Debug.assert(i&&l(i)),i}t.registerCodeFix({errorCodes:o,getCodeActions(r){var i=r.errorCode,a=r.span,o=s[i];if(!o)return e.emptyArray;var l=o.descriptions,u=o.fixId,d=o.fixAllDescriptions,p=e.textChanges.ChangeTracker.with(r,(e=>c(e,r,i,a.start)));return[t.createCodeFixActionMaybeFixAll(n,p,l,u,d)]},fixIds:[n,i,a],getAllCodeActions:e=>t.codeFixAll(e,o,((t,r)=>{var n=r.code,i=r.start,a=s[n];a&&a.fixId===e.fixId&&c(t,e,n,i)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.span,c=n.preferences,l=a(o,s.start),u=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,l,c)));return[t.createCodeFixAction(r,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,a(r.file,r.start),e.preferences)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isThis(a)){var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.checkDefined(e.findChildOfKind(o,98,r)),c=o.name,l=e.Debug.checkDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,l))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(e=>{a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{i(t,r.file,r.start,e.program.getTypeChecker())}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=((t,r)=>{var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(e=>197===e.kind))})(i,a.start),s=e.textChanges.ChangeTracker.with(n,(t=>((t,r,n)=>{if(n){for(var i=n.type,a=!1,o=!1;185===i.kind||186===i.kind||191===i.kind;)185===i.kind?a=!0:186===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}})(t,i,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})})(p),(e=>{!(t=>{var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=((t,r,n)=>{if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}})(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),g=m?e.getEffectiveBaseTypeNode(m):void 0,h=g?c.getTypeAtLocation(g):void 0;h&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,(e=>{var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t})(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,l,u,d)));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>{var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=(t=>{switch(t.kind){case 254:case 164:case 203:case 167:case 296:return t.initializer;case 285:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 297:case 166:case 299:case 347:case 340:return}})(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function _(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function m(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(e=>p(e,r.sourceFile,a,o)));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(e=>f(e,r.sourceFile,i,a)));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!(e=>{e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"})(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([m(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?((r,i,o,s)=>{var c=e.textChanges.ChangeTracker.with(r,(e=>_(e,r.sourceFile,i,o,s,!1)));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)})(i,u.declaration,u.expression,u.commentSource):void 0):[g(i,u.declaration,u.expression)]},getAllCodeActions:r=>t.codeFixAll(r,s,((t,n)=>{var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r,n="fixMissingMember",i="fixMissingProperties",a="fixMissingAttributes",o="fixMissingFunctionDeclaration",s=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function c(t,r,n,i,a){var o=e.getTokenAtPosition(t,r),s=o.parent;if(n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(e=>e===s));if(c<0)return;var u=e.singleOrUndefined(i.getSignaturesOfType(i.getTypeAtLocation(s.parent.expression),0));if(!(u&&u.declaration&&u.parameters[c]))return;var d=u.parameters[c].valueDeclaration;if(!(d&&e.isParameter(d)&&e.isIdentifier(d.name)))return;var p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s),i.getParameterType(u,c),!1,!1));if(!e.length(p))return;return{kind:3,token:d.name,properties:p,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){if(p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s.initializer),i.getTypeAtLocation(o),!1,!1)),!e.length(p))return;return{kind:3,token:o,properties:p,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var _=((t,r,n)=>{var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s<c.length;s++){var l=c[s];if(e.isJsxAttribute(l)&&o.add(l.name.escapedText),e.isJsxSpreadAttribute(l))for(var u=0,d=t.getTypeAtLocation(l.expression).getProperties();u<d.length;u++){var p=d[u];o.add(p.escapedName)}}return e.filter(a,(t=>e.isIdentifierText(t.name,r,1)&&!(16777216&t.flags||48&e.getCheckFlags(t)||o.has(t.escapedName))))})(i,e.getEmitScriptTarget(a.getCompilerOptions()),o.parent);if(!e.length(_))return;return{kind:4,token:o,attributes:_,parentDeclaration:o.parent}}if(e.isIdentifier(o)&&e.isCallExpression(s))return{kind:2,token:o,call:s,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(s)){var f=e.skipConstraint(i.getTypeAtLocation(s.expression)),m=f.symbol;if(m&&m.declarations){if(e.isIdentifier(o)&&e.isCallExpression(s.parent)){var g=e.find(m.declarations,e.isModuleDeclaration),h=null==g?void 0:g.getSourceFile();if(g&&h&&!l(a,h))return{kind:2,token:o,call:s.parent,sourceFile:t,modifierFlags:1,parentDeclaration:g};var y=e.find(m.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(y&&!l(a,y))return{kind:2,token:o,call:s.parent,sourceFile:y,modifierFlags:1,parentDeclaration:y}}var v=e.find(m.declarations,e.isClassLike);if(v||!e.isPrivateIdentifier(o)){var b=v||e.find(m.declarations,(t=>e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)));if(b&&!l(a,b.getSourceFile())){var x=!e.isTypeLiteralNode(b)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(m);if(x&&(e.isPrivateIdentifier(o)||e.isInterfaceDeclaration(b)))return;var E=b.getSourceFile(),S=e.isTypeLiteralNode(b)?0:(x?32:0)|(e.startsWithUnderscore(o.text)?8:0),D=e.isSourceFileJS(E);return{kind:0,token:o,call:e.tryCast(s.parent,e.isCallExpression),modifierFlags:S,parentDeclaration:b,declSourceFile:E,isJSFile:D}}var T=e.find(m.declarations,e.isEnumDeclaration);return!T||e.isPrivateIdentifier(o)||l(a,T.getSourceFile())?void 0:{kind:1,token:o,parentDeclaration:T}}}}}}function l(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function u(t,r,n,i,a){var o=i.text;if(a){if(226===n.kind)return;var s=n.name.getText(),c=d(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=m(n);u?t.insertNodeAfter(r,u,l):t.insertMemberAtStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var _=d(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,_)}}function d(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),E()))}function p(t,r,n){var i;if(221===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,1)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(130)}function _(t,r,n,i,a,o){var s=o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,c=e.isClassLike(n)?e.factory.createPropertyDeclaration(void 0,s,i,void 0,a,void 0):e.factory.createPropertySignature(void 0,i,void 0,a),l=m(n);l?t.insertNodeAfter(r,l,c):t.insertMemberAtStart(r,n,c)}function m(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function g(r,n,i,a,o,s,c){var l=t.createImportAdder(c,r.program,r.preferences,r.host),u=e.isClassLike(s)?169:168,d=t.createSignatureDeclarationFromCallExpression(u,r,l,i,a,o,s),p=((t,r)=>{if(!e.isTypeLiteralNode(t)){var n=e.findAncestor(r,(t=>e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)));return n&&n.parent===t?n:void 0}})(s,i);p?n.insertNodeAfter(c,p,d):n.insertMemberAtStart(c,s,d),l.writeFixes(n)}function h(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(e=>{var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function y(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(256,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}function v(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=n.program.getTypeChecker(),c=i.parentDeclaration.attributes,l=e.some(c.properties,e.isJsxSpreadAttribute),u=e.map(i.attributes,(t=>{var r=x(n,s,a,o,s.getTypeOfSymbol(t)),i=e.factory.createIdentifier(t.name),c=e.factory.createJsxAttribute(i,e.factory.createJsxExpression(void 0,r));return e.setParent(i,c),c})),d=e.factory.createJsxAttributes(l?f(f([],u,!0),c.properties,!0):f(f([],c.properties,!0),u,!0)),p={prefix:c.pos===c.end?" ":void 0};r.replaceNode(n.sourceFile,c,d,p)}function b(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=e.getEmitScriptTarget(n.program.getCompilerOptions()),c=n.program.getTypeChecker(),l=e.map(i.properties,(t=>{var r=x(n,c,a,o,c.getTypeOfSymbol(t));return e.factory.createPropertyAssignment(e.createPropertyNameNodeForIdentifierOrLiteral(t.name,s,0===o),r)})),u={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:i.indentation};r.replaceNode(n.sourceFile,i.parentDeclaration,e.factory.createObjectLiteralExpression(f(f([],i.parentDeclaration.properties,!0),l,!0),!0),u)}function x(r,n,i,a,o){if(3&o.flags)return E();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=n.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,n.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(e=>x(r,n,i,a,e)));return null!=l?l:E()}if(n.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if((t=>524288&t.flags&&(128&e.getObjectFlags(t)||t.symbol&&e.tryCast(e.singleOrUndefined(t.symbol.declarations),e.isTypeLiteralNode)))(o)){var u=e.map(n.getPropertiesOfType(o),(t=>{var o=t.valueDeclaration?x(r,n,i,a,n.getTypeAtLocation(t.valueDeclaration)):E();return e.factory.createPropertyAssignment(t.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return E();var d=n.getSignaturesOfType(o,0);if(void 0===d)return E();var p=t.createSignatureDeclarationFromSignature(213,r,a,d[0],t.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=p?p:E()}if(1&e.getObjectFlags(o)){var _=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===_||e.hasAbstractModifier(_))return E();var f=e.getFirstConstructorWithBody(_);return f&&e.length(f.parameters)?E():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return E()}function E(){return e.factory.createIdentifier("undefined")}t.registerCodeFix({errorCodes:s,getCodeActions(r){var s=r.program.getTypeChecker(),l=c(r.sourceFile,r.span.start,r.errorCode,s,r.program);if(l){if(3===l.kind){var d=e.textChanges.ChangeTracker.with(r,(e=>b(e,r,l)));return[t.createCodeFixAction(i,d,e.Diagnostics.Add_missing_properties,i,e.Diagnostics.Add_all_missing_properties)]}return 4===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>v(e,r,l))),[t.createCodeFixAction(a,d,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]):2===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>y(e,r,l))),[t.createCodeFixAction(o,d,[e.Diagnostics.Add_missing_function_declaration_0,l.token.text],o,e.Diagnostics.Add_all_missing_function_declarations)]):1===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>h(e,r.program.getTypeChecker(),l))),[t.createCodeFixAction(n,d,[e.Diagnostics.Add_missing_enum_member_0,l.token.text],n,e.Diagnostics.Add_all_missing_members)]):e.concatenate(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var u=c.text,d=t=>e.textChanges.ChangeTracker.with(r,(e=>g(r,e,l,c,t,a,o))),p=[t.createCodeFixAction(n,d(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],n,e.Diagnostics.Add_all_missing_members)];return 8&s&&p.unshift(t.createCodeFixActionWithoutFixAll(n,d(8),[e.Diagnostics.Declare_private_method_0,u])),p}})(r,l),((r,i)=>i.isJSFile?e.singleElementArray(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)&&!e.isTypeLiteralNode(a)){var l=e.textChanges.ChangeTracker.with(r,(e=>u(e,o,a,c,!!(32&s))));if(0!==l.length){var d=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[d,c.text],n,e.Diagnostics.Add_all_missing_members)}}})(r,i)):((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,d=p(r.program.getTypeChecker(),a,c),f=t=>e.textChanges.ChangeTracker.with(r,(e=>_(e,o,a,l,d,t))),m=[t.createCodeFixAction(n,f(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],n,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&m.unshift(t.createCodeFixActionWithoutFixAll(n,f(8),[e.Diagnostics.Declare_private_property_0,l])),m.push(((r,i,a,o,s)=>{var c=e.factory.createKeywordTypeNode(150),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),d=e.textChanges.ChangeTracker.with(r,(e=>e.insertMemberAtStart(i,a,u)));return t.createCodeFixActionWithoutFixAll(n,d,[e.Diagnostics.Add_index_signature_for_property_0,o])})(r,o,a,c.text,d))),m})(r,i))(r,l))}},fixIds:[n,o,i,a],getAllCodeActions(r){var n=r.program,l=r.fixId,d=n.getTypeChecker(),f=new e.Map,m=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(n=>{t.eachDiagnostic(r,s,(t=>{var s=c(t.file,t.start,t.code,d,r.program);if(s&&e.addToSeen(f,e.getNodeId(s.parentDeclaration)+"#"+s.token.text))if(l===o&&2===s.kind)y(n,r,s);else if(l===i&&3===s.kind)b(n,r,s);else if(l===a&&4===s.kind)v(n,r,s);else if(1===s.kind&&h(n,d,s),0===s.kind){var u=s.parentDeclaration,p=s.token,_=e.getOrUpdate(m,u,(()=>[]));_.some((e=>e.token.text===p.text))||_.push(s)}})),m.forEach(((i,a)=>{for(var o=e.isTypeLiteralNode(a)?void 0:t.getAllSupers(a,d),s=t=>{if(null==o?void 0:o.some((e=>{var r=m.get(e);return!!r&&r.some((e=>e.token.text===t.token.text))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,s=t.modifierFlags,c=t.token,l=t.call,f=t.isJSFile;if(l&&!e.isPrivateIdentifier(c))g(r,n,l,c,32&s,i,a);else if(!f||e.isInterfaceDeclaration(i)||e.isTypeLiteralNode(i)){var h=p(d,i,c);_(n,a,i,c.text,h,32&s)}else u(n,a,i,c,!!(32&s))},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),(e=>{e[e.TypeLikeDeclaration=0]="TypeLikeDeclaration",e[e.Enum=1]="Enum",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"})(r||(r={}))})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(((t,r)=>{for(var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);n.end<i;)n=n.parent;return n})(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(e=>i(e,a,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,e.sourceFile,r)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.tryCast(e.getTokenAtPosition(t,r),e.isStringLiteral);if(n){var i=n.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.host,c=n.sourceFile,l=o(c,n.span.start);if(void 0!==l){var u=s(l,i,n.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,u))]}},fixIds:[r],getAllCodeActions:n=>t.codeFixAll(n,i,((t,i,c)=>{var l=o(i.file,i.start);if(void 0!==l)switch(n.fixId){case r:var u=s(l,n.host,i.code);u&&c.push(a(i.file.fileName,u));break;default:e.Debug.fail("Bad fixId: ".concat(n.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),l=i.program.getTypeChecker(),u=l.getTypeAtLocation(c),d=l.getPropertiesOfType(u).filter(o),p=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,d,n,i,s,p,(e=>a.insertMemberAtStart(n,r,e))),p.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(e=>a(i(o,s.start),o,r,e,r.preferences)));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(108===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((t=>e.isPropertyAccessExpression(t)&&t.expression===n))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var l=c.constructor,u=c.superCall,d=e.textChanges.ChangeTracker.with(n,(e=>i(e,o,l,u)));return[t.createCodeFixAction(r,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,((t,r)=>{var n=a(r.file,r.start);if(n){var c=n.constructor,l=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,l)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="enableExperimentalDecorators",n=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(r=>{t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(r,(r=>{if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})})(p),(e=>{!(t=>{var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,a(t.file,t.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,l)));return[t.createCodeFixAction(r,u,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>o(e,i,s)));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>{var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!1))),u=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!0)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,e.preferences,r.file,r.start,e.fixId===n)))});var a={">":"&gt;","}":"&rbrace;"};function o(t,r,n,i,o){var s=n.getText()[i];if((t=>e.hasProperty(a,t))(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,((n,i)=>{var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(e=>e.filterJSDocTags(n.sourceFile,o,(e=>e!==s))));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)})(i,s)),e.append(o,((r,i)=>{var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(e.length(o.parameters)){for(var c=r.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,p=l;d<p.length;d++){var _=p[d];e.isJSDocParameterTag(_)&&e.isIdentifier(_.name)&&u.add(_.name.escapedText)}var f=e.firstDefined(o.parameters,(t=>e.isIdentifier(t.name)&&!u.has(t.name.escapedText)?t.name.getText(c):void 0));if(void 0!==f){var m=e.factory.updateJSDocParameterTag(s,s.tagName,e.factory.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),g=e.textChanges.ChangeTracker.with(r,(t=>t.replaceJSDocComment(c,o,e.map(l,(e=>e===s?m:e)))));return t.createCodeFixActionWithoutFixAll(n,g,[e.Diagnostics.Rename_param_tag_name_0_to_1,a.getText(c),f])}}})(i,s)),o},getAllCodeActions(n){var o=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,(s=>{t.eachDiagnostic(n,i,(t=>{var r=a(t.file,t.start);r&&o.set(r.signature,e.append(o.get(r.signature),r.jsDocParameterTag))})),o.forEach(((t,i)=>{if(n.fixId===r){var a=new e.Set(t);s.filterJSDocTags(i.getSourceFile(),i,(e=>!a.has(e)))}}))})))}})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixUnreferenceableDecoratorMetadata",n=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=((t,r,n)=>{var i=e.tryCast(e.getTokenAtPosition(t,n),e.isIdentifier);if(i&&178===i.parent.kind){var a=r.getTypeChecker().getSymbolAtLocation(i);return e.find((null==a?void 0:a.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}})(n.sourceFile,n.program,n.span.start);if(i){var a,o=e.textChanges.ChangeTracker.with(n,(t=>270===i.kind&&((t,r,n,i)=>{e.refactor.doChangeNamedToNamespaceOrDefault(r,i,t,n.parent)})(t,n.sourceFile,i,n.program))),s=e.textChanges.ChangeTracker.with(n,(t=>((t,r,n,i)=>{if(265!==n.kind){var a=267===n.kind?n:n.parent.parent;if(!a.name||!a.namedBindings){var o=i.getTypeChecker();e.forEachImportClauseDeclaration(a,(t=>{if(111551&e.skipAlias(t.symbol,o).flags)return!0}))||t.insertModifierBefore(r,152,a)}}else t.insertModifierBefore(r,152,n.name)})(t,n.sourceFile,i,n.program)));return o.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Convert_named_imports_to_namespace_import))),s.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Convert_to_type_only_import))),a}},fixIds:[r]})})(p),(e=>{!(t=>{var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(155))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(270===e.parent.kind||267===e.parent.kind)}function p(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,237===r.parent.kind?r.parent:r)}function m(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&(e=>{switch(e.parent.kind){case 164:case 163:return!0;case 254:switch(e.parent.parent.parent.kind){case 244:case 243:return!0}}return!1})(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((r=>{e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function g(t,r,n,i,a,o,s,c){!((t,r,n,i,a,o,s,c)=>{var l=t.parent;if(e.isParameter(l))!((t,r,n,i,a,o,s,c)=>{void 0===c&&(c=!1),((t,r,n,i,a,o,s)=>{var c=n.parent;switch(c.kind){case 169:case 171:var l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var p=0,_=d;p<_.length;p++)for(var f=0,m=_[p].references;f<m.length;f++){var g=m[f];if(1===g.kind){var h=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==n.parent&&g.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 256:return!c.name||!((t,r,n)=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(t=>e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0)))(t,r,c.name)||y(c,n,s);case 213:case 214:return y(c,n,s);case 173:return!1;case 172:return!0;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((e=>t.deleteModifier(r,e))):!n.initializer&&h(n,i,a)&&t.delete(r,n))})(r,n,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var u=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==n,"should not delete whole source file"),r.delete(n,u)}})(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(r=>{var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&n.delete(t,r.parent.parent)}))}function h(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,((e,t)=>!t||t.arguments.length>i))}function y(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((t=>e.isIdentifier(t.name)&&!t.symbol.isReferenced)):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions(i){var s=i.errorCode,h=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles(),E=e.getTokenAtPosition(h,i.span.start);if(e.isJSDocTemplateTag(E))return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,E))),e.Diagnostics.Remove_template_tag)];if(29===E.kind)return[l(D=e.textChanges.ChangeTracker.with(i,(e=>u(e,h,E))),e.Diagnostics.Remove_type_parameters)];var S=p(E);if(S){var D=e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,S)));return[t.createCodeFixAction(r,D,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(E)&&(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,E,e,b,x,y,v,!1)))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,E.getText(h)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(E.parent)||e.isArrayBindingPattern(E.parent)){if(e.isParameter(E.parent.parent)){var T=E.parent.elements,C=[T.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(T,(e=>e.getText(h))).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(t=>((t,r,n)=>{e.forEach(n.elements,(e=>t.delete(r,e)))})(t,h,E.parent))),C)]}return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,E.parent.parent))),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(h,E))return[l(e.textChanges.ChangeTracker.with(i,(e=>f(e,h,E.parent))),e.Diagnostics.Remove_variable_statement)];var k=[];if(137===E.kind){D=e.textChanges.ChangeTracker.with(i,(e=>c(e,h,E)));var A=e.cast(E.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,D,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,E,e,b,x,y,v,!1)))).length&&(A=e.isComputedPropertyName(E.parent)?E.parent:E,k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(h)])))}var w=e.textChanges.ChangeTracker.with(i,(e=>m(e,s,h,E)));return w.length&&k.push(t.createCodeFixAction(r,w,[e.Diagnostics.Prefix_0_with_an_underscore,E.getText(h)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions(r){var l=r.sourceFile,y=r.program,v=r.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles();return t.codeFixAll(r,s,((t,s)=>{var E=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:m(t,s.code,l,E);break;case a:var S=p(E);S?t.delete(l,S):d(E)&&g(l,E,t,b,x,y,v,!0);break;case i:if(137===E.kind||d(E))break;if(e.isJSDocTemplateTag(E))t.delete(l,E);else if(29===E.kind)u(t,l,E);else if(e.isObjectBindingPattern(E.parent)){if(E.parent.parent.initializer)break;e.isParameter(E.parent.parent)&&!h(E.parent.parent,b,x)||t.delete(l,E.parent.parent)}else{if(e.isArrayBindingPattern(E.parent.parent)&&E.parent.parent.parent.initializer)break;_(l,E)?f(t,l,E.parent):g(l,E,t,b,x,y,v,!0)}break;case o:137===E.kind&&c(t,l,E);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 239:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 241:case 242:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(((e,t)=>{for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.pos<u))break;r=a}return r})(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");t.deleteNodeRange(r,s,d)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions(n){if(!n.program.getSyntacticDiagnostics(n.sourceFile,n.cancellationToken).length){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start,t.length,t.code)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 229:case 174:case 175:case 256:case 172:case 176:case 195:case 169:case 168:case 164:case 167:case 166:case 173:case 259:case 211:case 254:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var u=l.typeNode,d=l.type,p=u.getText(s),_=[f(d,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 314===u.kind&&_.push(f(c.getNullableType(d,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function f(r,n,o){var l=e.textChanges.ChangeTracker.with(i,(e=>a(e,s,u,r,c)));return t.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions(e){var r=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return t.codeFixAll(e,i,((e,t)=>{var i=o(t.file,t.start,l);if(i){var s=i.typeNode,u=i.type,d=314===s.kind&&r===n?l.getNullableType(u,32768):u;a(e,c,s,d,l)}}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,"".concat(r.text,"()"))}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=a(t.file,t.start);r&&i(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 169:a=i.name;break;case 256:case 213:a=e.findChildOfKind(i,98,t);break;case 214:var s=i.typeParameters?29:20;a=e.findChildOfKind(i,s,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,131,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions(r){var o=new e.Map;return t.codeFixAll(r,n,((t,n)=>{var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),u=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=u.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(t.getAllSupers(d,l));if(!p)return[];var _=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),f=l.getPropertyOfType(l.getTypeAtLocation(p),_);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="inferFromUsage",n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function a(r,n,i,a,u,f,m,g,h){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var y=i.parent,v=t.createImportAdder(n,u,h,g);switch(a=(t=>{switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t})(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(y)&&m(y)||e.isPropertyDeclaration(y)||e.isPropertySignature(y))return o(r,v,n,y,u,g,f),v.writeFixes(r),y;if(e.isPropertyAccessExpression(y)){var b=d(y.name,u,f),x=e.getTypeNodeIfAccessible(b,y,u,g);if(x){var E=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(x),void 0);r.addJSDocTags(n,e.cast(y.parent.parent,e.isExpressionStatement),[E])}return v.writeFixes(r),y}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var S=u.getTypeChecker().getSymbolAtLocation(i);return S&&S.valueDeclaration&&e.isVariableDeclaration(S.valueDeclaration)&&m(S.valueDeclaration)?(o(r,v,e.getSourceFileOfNode(S.valueDeclaration),S.valueDeclaration,u,g,f),v.writeFixes(r),S.valueDeclaration):void 0}var D=e.getContainingFunction(i);if(void 0!==D){var T;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(D)){s(r,v,n,D,u,g,f),T=D;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(D)){var C=e.cast(y,e.isParameter);!((t,r,n,i,a,o,s,u)=>{if(e.isIdentifier(i.name)){var f=((t,r,n,i)=>{var a=p(t,r,n,i);return a&&_(n,a,i).parameters(t)||t.parameters.map((t=>({declaration:t,type:e.isIdentifier(t.name)?d(t.name,n,i):n.getTypeChecker().getAnyType()})))})(a,n,o,u);if(e.Debug.assert(a.parameters.length===f.length,"Parameter count and inference count should match"),e.isInJSFile(a))l(t,n,f,o,s);else{var m=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);m&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var g=0,h=f;g<h.length;g++){var y=h[g],v=y.declaration,b=y.type;!v||v.type||v.initializer||c(t,r,n,v,b,o,s)}m&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}})(r,v,n,C,D,u,g,f),T=C}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(D)&&e.isIdentifier(D.name)&&(c(r,v,n,D,d(D.name,u,f),u,g),T=D);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(D)&&(s(r,v,n,D,u,g,f),T=D);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(D)&&m(D)&&(((t,r,n,i,a,o)=>{var s=p(n,r,i,o);if(s&&s.length){var c=_(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,n,i,a);l&&(e.isInJSFile(n)?((t,r,n,i)=>{t.addJSDocTags(r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])})(t,r,n,l):t.tryInsertThisTypeAnnotation(r,n,l))}})(r,n,D,u,g,f),T=D);break;default:return e.Debug.fail(String(a))}return v.writeFixes(r),T}}}function o(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&c(t,r,n,i,d(i.name,a,s),a,o)}function s(t,r,n,i,a,o,s){var u=e.firstOrUndefined(i.parameters);if(u&&e.isIdentifier(i.name)&&e.isIdentifier(u.name)){var p=d(i.name,a,s);p===a.getTypeChecker().getAnyType()&&(p=d(u.name,a,s)),e.isInJSFile(i)?l(t,n,[{declaration:u,type:p}],a,o):c(t,r,n,u,p,a,o)}}function c(r,n,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&166!==a.kind){var u=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!u)return;var d=e.factory.createJSDocTypeExpression(l),p=e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,d,void 0):e.factory.createJSDocTypeTag(void 0,d,void 0);r.addJSDocTags(i,u,[p])}else((r,n,i,a,o,s)=>{var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);return!(!c||!a.tryInsertTypeAnnotation(i,n,c.typeNode)||(e.forEach(c.symbols,(e=>o.addImportFromExportedSymbol(e,!0))),0))})(l,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,l)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(t=>{var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(n=>{var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(t=>{var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,void 0)}));t.addJSDocTags(r,o,l)}}}function u(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(t=>0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0))}function d(e,t,r){return _(t,u(e,t,r),r).single()}function p(t,r,n,i){var a;switch(t.kind){case 171:a=e.findChildOfKind(t,134,r);break;case 214:case 213:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 256:case 169:case 168:a=t.name}if(a)return u(a,n,i)}function _(t,r,n){var i=t.getTypeChecker(),a={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:e=>i.createArrayType(e),Promise:e=>i.createPromiseType(e)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:()=>_(c(r)),parameters(a){if(0!==r.length&&a.parameters){for(var o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},s=0,d=r;s<d.length;s++){var p=d[s];n.throwIfCancellationRequested(),l(p,o)}var m=f(f([],o.constructs||[],!0),o.calls||[],!0);return a.parameters.map(((r,o)=>{for(var s=[],l=e.isRestParameter(r),d=!1,p=0,f=m;p<f.length;p++){var g=f[p];if(g.argumentTypes.length<=o)d=e.isInJSFile(a),s.push(i.getUndefinedType());else if(l)for(var h=o;h<g.argumentTypes.length;h++)s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[h]));else s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[o]))}if(e.isIdentifier(r.name)){var y=c(u(r.name,t,n));s.push.apply(s,l?e.mapDefined(y,i.getElementTypeOfArrayType):y)}var v=_(s);return{type:l?i.createArrayType(v):v,isOptional:d&&!l,declaration:r}}))}},thisParameter(){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),l(o,t)}return _(t.candidateThisTypes||e.emptyArray)}};function s(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach(((e,t)=>{r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach(((e,t)=>{o.set(t,s(e))})),{isNumber:t.some((e=>e.isNumber)),isString:t.some((e=>e.isString)),isNumberOrString:t.some((e=>e.isNumberOrString)),candidateTypes:e.flatMap(t,(e=>e.candidateTypes)),properties:o,calls:e.flatMap(t,(e=>e.calls)),constructs:e.flatMap(t,(e=>e.constructs)),numberIndex:e.forEach(t,(e=>e.numberIndex)),stringIndex:e.forEach(t,(e=>e.stringIndex)),candidateThisTypes:e.flatMap(t,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),l(a,t)}return m(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 238:!((t,r)=>{v(r,e.isCallExpression(t)?i.getVoidType():i.getAnyType())})(t,r);break;case 220:r.isNumber=!0;break;case 219:!((e,t)=>{switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}})(t.parent,r);break;case 221:!((t,r,n)=>{switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var a=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&a.flags?v(n,a):n.isNumber=!0;break;case 64:case 39:var o=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:v(n,i.getTypeAtLocation(r.left===t?r.right:r.left));break;case 101:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||254!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||v(n,i.getTypeAtLocation(r.right))}})(t,t.parent,r);break;case 289:case 290:!((e,t)=>{v(t,i.getTypeAtLocation(e.parent.parent.expression))})(t.parent,r);break;case 208:case 209:t.parent.expression===t?((e,t)=>{var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,a=e.arguments;n<a.length;n++){var o=a[n];r.argumentTypes.push(i.getTypeAtLocation(o))}l(e,r.return_),208===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)})(t.parent,r):d(t,r);break;case 206:!((t,r)=>{var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(t,i),r.properties.set(n,i)})(t.parent,r);break;case 207:!((e,t,r)=>{if(t!==e.argumentExpression){var n=i.getTypeAtLocation(e.argumentExpression),a={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,a),296&n.flags?r.numberIndex=a:r.stringIndex=a}else r.isNumberOrString=!0})(t.parent,t,r);break;case 296:case 297:!((t,r)=>{var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;b(r,i.getTypeAtLocation(n))})(t.parent,r);break;case 167:!((e,t)=>{b(t,i.getTypeAtLocation(e.parent))})(t.parent,r);break;case 254:var n=t.parent,a=n.name,o=n.initializer;if(t===a){o&&v(r,i.getTypeAtLocation(o));break}default:return d(t,r)}}function d(t,r){e.isExpressionNode(t)&&v(r,i.getContextualType(t))}function p(e){return _(m(e))}function _(t){if(!t.length)return i.getAnyType();var r=i.getUnionType([i.getStringType(),i.getNumberType()]),n=((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var l=c[s],u=l.high,d=l.low;u(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),n.push(d))}return t.filter((e=>n.every((t=>!t(e)))))})(t,[{high:e=>e===i.getStringType()||e===i.getNumberType(),low:e=>e===r},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:t=>!(114689&t.flags||16&e.getObjectFlags(t)),low:t=>!!(16&e.getObjectFlags(t))}]),a=n.filter((t=>16&e.getObjectFlags(t)));return a.length&&(n=n.filter((t=>!(16&e.getObjectFlags(t))))).push((t=>{if(1===t.length)return t[0];for(var r=[],n=[],a=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,d=t;u<d.length;u++){for(var p=d[u],_=0,f=i.getPropertiesOfType(p);_<f.length;_++){var m=f[_];l.add(m.name,m.valueDeclaration?i.getTypeOfSymbolAtLocation(m,m.valueDeclaration):i.getAnyType())}r.push.apply(r,i.getSignaturesOfType(p,0)),n.push.apply(n,i.getSignaturesOfType(p,1));var g=i.getIndexInfoOfType(p,0);g&&(a.push(g.type),s=s||g.isReadonly);var h=i.getIndexInfoOfType(p,1);h&&(o.push(h.type),c=c||h.isReadonly)}var y=e.mapEntries(l,((e,r)=>{var n=r.length<t.length?16777216:0,a=i.createSymbol(4|n,e);return a.type=i.getUnionType(r),[e,a]})),v=[];return a.length&&v.push(i.createIndexInfo(i.getStringType(),i.getUnionType(a),s)),o.length&&v.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(o),c)),i.createAnonymousType(t[0].symbol,y,r,n,v)})(a)),i.getWidenedType(i.getUnionType(n.map(i.getBaseTypeOfLiteralType),2))}function m(t){var r,n,s,c=[];t.isNumber&&c.push(i.getNumberType()),t.isString&&c.push(i.getStringType()),t.isNumberOrString&&c.push(i.getUnionType([i.getStringType(),i.getNumberType()])),t.numberIndex&&c.push(i.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.constructs)||void 0===n?void 0:n.length)||t.stringIndex)&&c.push(g(t));var l=(t.candidateTypes||[]).map((e=>i.getBaseTypeOfLiteralType(e))),u=(null===(s=t.calls)||void 0===s?void 0:s.length)?g(t):void 0;return u&&l?c.push(i.getUnionType(f([u],l,!0),2)):(u&&c.push(u),e.length(l)&&c.push.apply(c,l)),c.push.apply(c,(t=>{if(!t.properties||!t.properties.size)return[];var r=o.filter((r=>((t,r)=>!!r.properties&&!e.forEachEntry(r.properties,((r,n)=>{var a,o=i.getTypeOfPropertyOfType(t,n);return!(o&&(r.calls?i.getSignaturesOfType(o,0).length&&i.isTypeAssignableTo(o,(a=r.calls,i.createAnonymousType(void 0,e.createSymbolTable(),[y(a)],e.emptyArray,e.emptyArray))):i.isTypeAssignableTo(o,p(r))))})))(r,t)));return 0<r.length&&r.length<3?r.map((r=>((t,r)=>{if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,o=e.singleOrUndefined(n.typeParameters);if(!o)return t;var s=[];return r.properties.forEach(((t,r)=>{var a=i.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!a,"generic should have all the properties of its reference."),s.push.apply(s,h(a,p(t),o))})),a[t.symbol.escapedName](_(s))})(r,t))):[]})(t)),c}function g(t){var r=new e.Map;t.properties&&t.properties.forEach(((e,t)=>{var n=i.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],a=t.constructs?[y(t.constructs)]:[],o=t.stringIndex?[i.createIndexInfo(i.getStringType(),p(t.stringIndex),!1)]:[];return i.createAnonymousType(void 0,r,n,a,o)}function h(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(e=>h(e,r,n)));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var a=i.getTypeArguments(t),o=i.getTypeArguments(r),s=[];if(a&&o)for(var c=0;c<a.length;c++)o[c]&&s.push.apply(s,h(a[c],o[c],n));return s}var l=i.getSignaturesOfType(t,0),u=i.getSignaturesOfType(r,0);return 1===l.length&&1===u.length?((t,r,n)=>{for(var a=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],l=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?i.getTypeOfSymbolAtLocation(s,s.valueDeclaration):i.getAnyType(),d=l&&i.getElementTypeOfArrayType(u);d&&(u=d);var p=c.type||(c.valueDeclaration?i.getTypeOfSymbolAtLocation(c,c.valueDeclaration):i.getAnyType());a.push.apply(a,h(u,p,n))}var _=i.getReturnTypeOfSignature(t),f=i.getReturnTypeOfSignature(r);return a.push.apply(a,h(_,f,n)),a})(l[0],u[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((e=>e.argumentTypes.length))),a=n=>{var a=i.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(n)));a.type=_(t.map((e=>e.argumentTypes[n]||i.getUndefinedType()))),t.some((e=>void 0===e.argumentTypes[n]))&&(a.flags|=16777216),r.push(a)},o=0;o<n;o++)a(o);var c=p(s(t.map((e=>e.return_))));return i.createSignature(void 0,void 0,void 0,r,c,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o,s=n.sourceFile,c=n.program,l=n.span.start,u=n.errorCode,d=n.cancellationToken,p=n.host,_=n.preferences,f=e.getTokenAtPosition(s,l),m=e.textChanges.ChangeTracker.with(n,(t=>{o=a(t,s,f,u,c,d,e.returnTrue,p,_)})),g=o&&e.getNameOfDeclaration(o);return g&&0!==m.length?[t.createCodeFixAction(r,m,[i(u,f),e.getTextOfNode(g)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions(r){var i=r.sourceFile,o=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,u=e.nodeSeenTracker();return t.codeFixAll(r,n,((t,r)=>{a(t,i,e.getTokenAtPosition(r.file,r.start),r.code,o,s,u,c,l)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixReturnTypeInAsyncFunction",n=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),l=r.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.program,c=n.span,l=s.getTypeChecker(),u=i(o,s.getTypeChecker(),c.start);if(u){var d=u.returnTypeNode,p=u.returnType,_=u.promisedTypeNode,f=u.promisedType,m=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,d,_)));return[t.createCodeFixAction(r,m,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(t=>{var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,u=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),p=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(d))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(e=>a(e,o,c.start))),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[n],getAllCodeActions(r){var n=new e.Set;return t.codeFixAll(r,i,((t,r)=>{e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t){return{trackSymbol:()=>!1,moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,a,c,l,u,d,_,m,g){void 0===m&&(m=3),void 0===g&&(g=!1);var h=t.getDeclarations();if(h&&h.length){var y=c.program.getTypeChecker(),v=e.getEmitScriptTarget(c.program.getCompilerOptions()),b=h[0],x=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),E=(t=>4&t?e.factory.createToken(123):16&t?e.factory.createToken(122):void 0)(e.getEffectiveModifierFlags(b)),S=E?e.factory.createNodeArray([E]):void 0,D=y.getWidenedType(y.getTypeOfSymbolAtLocation(t,n)),T=!!(16777216&t.flags),C=!!(16777216&n.flags)||g,k=e.getQuotePreference(a,l);switch(b.kind){case 166:case 167:var A=0===k?268435456:void 0,N=y.typeToTypeNode(D,n,A,r(c));u&&(w=p(N,v))&&(N=w.typeNode,f(u,w.symbols)),d(e.factory.createPropertyDeclaration(void 0,S,x,T&&2&m?e.factory.createToken(57):void 0,N,void 0));break;case 172:case 173:var w,F=y.typeToTypeNode(D,n,void 0,r(c)),P=e.getAllAccessorDeclarations(h,b),I=P.secondAccessor?[P.firstAccessor,P.secondAccessor]:[P.firstAccessor];u&&(w=p(F,v))&&(F=w.typeNode,f(u,w.symbols));for(var O=0,M=I;O<M.length;O++){var R=M[O];if(e.isGetAccessorDeclaration(R))d(e.factory.createGetAccessorDeclaration(void 0,S,x,e.emptyArray,F,C?void 0:_||s(k)));else{e.Debug.assertNode(R,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var L=e.getSetAccessorValueParameter(R),B=L&&e.isIdentifier(L.name)?e.idText(L.name):void 0;d(e.factory.createSetAccessorDeclaration(void 0,S,x,o(1,[B],[F],1,!1),C?void 0:_||s(k)))}}break;case 168:case 169:var j=y.getSignaturesOfType(D,0);if(!e.some(j))break;if(1===h.length){e.Debug.assert(1===j.length,"One declaration implies one signature"),K(k,j[0],S,x,C?void 0:_||s(k));break}for(var U=0,V=j;U<V.length;U++)K(k,V[U],e.getSynthesizedDeepClones(S,!1),e.getSynthesizedDeepClone(x,!1));C||(h.length>j.length?K(k,y.getSignatureFromDeclaration(h[h.length-1]),S,x,_||s(k)):(e.Debug.assert(h.length===j.length,"Declarations and signatures should match count"),d(((t,n,i,a,c,l,u,d,p)=>{for(var _=a[0],f=a[0].minArgumentCount,m=!1,g=0,h=a;g<h.length;g++){var y=h[g];f=Math.min(y.minArgumentCount,f),e.signatureHasRestParameter(y)&&(m=!0),y.parameters.length>=_.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(_))&&(_=y)}var v=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((e=>e.name)),x=o(v,b,void 0,f,!1);if(m){var E=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(155)),void 0);x.push(E)}return((t,r,n,i,a,o,c,l)=>e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,l||s(c)))(u,c,l,0,x,((t,n,i,a)=>{if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}})(a,t,n,i),d,p)})(y,c,n,j,x,T&&!!(1&m),S,k,_))))}}function K(e,t,r,a,o){var s=i(169,c,e,t,o,a,r,T&&!!(1&m),n,u);s&&d(s)}}function i(t,n,i,a,o,s,c,l,u,d){var _=n.program,m=_.getTypeChecker(),g=e.getEmitScriptTarget(_.getCompilerOptions()),h=524545|(0===i?268435456:0),y=m.signatureToSignatureDeclaration(a,t,u,h,r(n));if(y){var v=y.typeParameters,b=y.parameters,x=y.type;if(d){if(v){var E=e.sameMap(v,(t=>{var r,n=t.constraint,i=t.default;return n&&(r=p(n,g))&&(n=r.typeNode,f(d,r.symbols)),i&&(r=p(i,g))&&(i=r.typeNode,f(d,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));v!==E&&(v=e.setTextRange(e.factory.createNodeArray(E,v.hasTrailingComma),v))}var S=e.sameMap(b,(t=>{var r=p(t.type,g),n=t.type;return r&&(n=r.typeNode,f(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var D=p(x,g);D&&(x=D.typeNode,f(d,D.symbols))}}var T=l?e.factory.createToken(57):void 0,C=y.asteriskToken;return e.isFunctionExpression(y)?e.factory.updateFunctionExpression(y,c,y.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:y.body):e.isArrowFunction(y)?e.factory.updateArrowFunction(y,c,v,b,x,y.equalsGreaterThanToken,null!=o?o:y.body):e.isMethodDeclaration(y)?e.factory.updateMethodDeclaration(y,void 0,c,C,null!=s?s:e.factory.createIdentifier(""),T,v,b,x,o):void 0}}function a(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=p(c,a);l&&(f(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function o(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg".concat(s),void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(155),void 0);o.push(c)}return o}function s(t){return c(e.Diagnostics.Method_not_implemented.message,t)}function c(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function l(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=d(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var l=c[s],p=l[0],_=l[1],f=d(o,p);void 0===f?t.insertNodeAtObjectStart(r,o,u(p,_)):t.replaceNode(r,f.initializer,_)}}else t.insertNodeAtObjectStart(r,i,u("compilerOptions",e.factory.createObjectLiteralExpression(n.map((e=>u(e[0],e[1]))),!0)))}}function u(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function d(t,r){return e.find(t.properties,(t=>e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r))}function p(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?_(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function _(t,r){return 79===t.kind?r:e.factory.createQualifiedName(_(t.left,r),t.right)}function f(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}var m;t.createMissingMemberNodes=(e,t,r,i,a,o,s)=>{for(var c=e.symbol.members,l=0,u=t;l<u.length;l++){var d=u[l];c.has(d.escapedName)||n(d,e,r,i,a,o,s,void 0)}},t.getNoopSymbolTrackerWithResolver=r,(m=t.PreserveOptionalFlags||(t.PreserveOptionalFlags={}))[m.Method=1]="Method",m[m.Property=2]="Property",m[m.All=3]="All",t.addNewNodeForMemberSymbol=n,t.createSignatureDeclarationFromSignature=i,t.createSignatureDeclarationFromCallExpression=(t,n,i,l,u,d,p)=>{var _=e.getQuotePreference(n.sourceFile,n.preferences),f=e.getEmitScriptTarget(n.program.getCompilerOptions()),m=r(n),g=n.program.getTypeChecker(),h=e.isInJSFile(p),y=l.typeArguments,v=l.arguments,b=l.parent,x=h?void 0:g.getContextualType(l),E=e.map(v,(t=>e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0)),S=h?[]:e.map(v,(e=>a(g,i,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),p,f,void 0,m))),D=d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,T=e.isYieldExpression(b)?e.factory.createToken(41):void 0,C=h||void 0===y?void 0:e.map(y,((t,r)=>e.factory.createTypeParameterDeclaration(void 0,84+y.length-1<=90?String.fromCharCode(84+r):"T".concat(r)))),k=o(v.length,E,S,void 0,h),A=h||void 0===x?void 0:g.typeToTypeNode(x,p,void 0,m);switch(t){case 169:return e.factory.createMethodDeclaration(void 0,D,T,u,void 0,C,k,A,s(_));case 168:return e.factory.createMethodSignature(D,u,void 0,C,k,A);case 256:return e.factory.createFunctionDeclaration(void 0,D,T,u,C,k,A,c(e.Diagnostics.Function_not_implemented.message,_));default:e.Debug.fail("Unexpected kind")}},t.typeToAutoImportableTypeNode=a,t.createStubbedBody=c,t.setJsonCompilerOptionValues=l,t.setJsonCompilerOptionValue=(e,t,r,n)=>{l(e,t,[[r,n]])},t.createJsonPropertyAssignment=u,t.findJsonProperty=d,t.tryGetAutoImportableReferenceFromTypeNode=p,t.importSymbols=f})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function i(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function a(t,i,a,o,c){void 0===c&&(c=!0);var l=e.getTokenAtPosition(t,a),u=a===o&&c,d=e.findAncestor(l.parent,r);if(!d||!e.nodeOverlapsWithStartEnd(d.name,t,a,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!(t=>e.isIdentifier(t)||e.isStringLiteral(t))(d.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(d)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=d.name.text,_=e.startsWithUnderscore(p),f=n(_?p:e.getUniqueName("_".concat(p),t),d.name),m=n(_?e.getUniqueName(p.substring(1),t):p,d.name);return{isStatic:e.hasStaticModifier(d),isReadonly:e.hasEffectiveReadonlyModifier(d),type:s(d,i),container:164===d.kind?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:f,accessorName:m,renameAccessor:_}}function o(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertMemberAtStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function s(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var i=r.getTypeChecker(),a=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){var o=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(f(f([],o,!0),[e.factory.createKeywordTypeNode(153)],!1))}}return n}t.generateAccessorFromProperty=(t,r,n,s,c,l)=>{var u=a(t,r,n,s);if(u&&!e.refactor.isRefactorErrorInfo(u)){var d,p,_=e.textChanges.ChangeTracker.fromContext(c),f=u.isStatic,m=u.isReadonly,g=u.fieldName,h=u.accessorName,y=u.originalName,v=u.type,b=u.container,x=u.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(x),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var E=e.getEffectiveModifierFlags(x);if(e.isSourceFileJS(t)){var S=e.createModifiers(E);d=S,p=S}else d=e.createModifiers((e=>(e&=-65,16&(e&=-9)||(e|=4),e))(E)),p=e.createModifiers((e=>8|-5&e&-17)(E))}!((t,r,n,i,a,o)=>{e.isPropertyDeclaration(n)?((t,r,n,i,a,o)=>{var s=e.factory.updatePropertyDeclaration(n,n.decorators,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)})(t,r,n,i,a,o):e.isPropertyAssignment(n)?((t,r,n,i)=>{var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)})(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))})(_,t,x,v,g,p);var D=((t,r,n,a,o,s)=>e.factory.createGetAccessorDeclaration(void 0,a,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(i(t,o,s))],!0)))(g,h,v,d,f,b);if(e.suppressLeadingAndTrailingTrivia(D),o(_,t,D,x,b),m){var T=e.getFirstConstructorWithBody(b);T&&((t,r,n,i,a)=>{n.body&&n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))})(_,t,T,g.text,y)}else{var C=((t,r,n,a,o,s)=>e.factory.createSetAccessorDeclaration(void 0,a,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(i(t,o,s),e.factory.createIdentifier("value")))],!0)))(g,h,v,d,f,b);e.suppressLeadingAndTrailingTrivia(C),o(_,t,C,x,b)}return _.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=a,t.getAllSupers=(t,r)=>{for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(e=>e.replaceNode(i,a,o)));return t.createCodeFixActionWithoutFixAll(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,((t,r)=>{var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s})(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,u=e.textChanges.ChangeTracker.with(i,(t=>t.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})));s.push(t.createCodeFixActionWithoutFixAll(r,u,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?208:209,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.kind===n));return a?i(t,a.expression):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length));return n?i(t,n):[]}})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)&&e.isPropertyDeclaration(n.parent)){var i=e.getEffectiveTypeAnnotationNode(n.parent);if(i)return{type:i,prop:n.parent,isJs:e.isInJSFile(n.parent)}}}function c(t,r,n){e.suppressLeadingAndTrailingTrivia(n);var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function l(t,r,n){var i=e.factory.createKeywordTypeNode(153),a=e.isUnionTypeNode(n.type)?n.type.types.concat(i):[n.type,i],o=e.factory.createUnionTypeNode(a);n.isJs?t.addJSDocTags(r,n.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(o))]):t.replaceNode(r,n.type,o)}function u(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function d(e,t){return p(e,e.getTypeFromTypeNode(t.type))}function p(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(e=>p(t,e)));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions(o){var p=s(o.sourceFile,o.span.start);if(p){var _=[];return e.append(_,((n,a)=>{var o=e.textChanges.ChangeTracker.with(n,(e=>l(e,n.sourceFile,a)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.prop.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)})(o,p)),e.append(_,((i,a)=>{if(!a.isJs){var o=e.textChanges.ChangeTracker.with(i,(e=>c(e,i.sourceFile,a.prop)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.prop.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}})(o,p)),e.append(_,((n,i)=>{if(!i.isJs){var o=d(n.program.getTypeChecker(),i.prop);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>u(e,n.sourceFile,i.prop,o)));return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.prop.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}})(o,p)),_}},fixIds:[n,i,a],getAllCodeActions:r=>t.codeFixAll(r,o,((t,o)=>{var p=s(o.file,o.start);if(p)switch(r.fixId){case n:c(t,o.file,p.prop);break;case i:l(t,o.file,p);break;case a:var _=d(r.program.getTypeChecker(),p.prop);if(!_)return;u(t,o.file,p.prop,_);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c,void 0))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(!1,e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)})(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,n.preferences)));return[t.createCodeFixAction(r,l,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(200===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=(t=>{for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}})(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function a(t,r,n){var i,a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((t=>!e.isIndexSignatureDeclaration(t))),l=e.first(o.parameters),u=e.factory.createTypeParameterDeclaration(void 0,e.cast(l.name,e.isIdentifier),l.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(145):void 0,u,void 0,o.questionToken,o.type,void 0),p=e.factory.createIntersectionTypeNode(f(f(f([],e.getAllSuperTypeNodes(s),!0),[d],!1),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray,!0));t.replaceNode(r,s,(i=s,a=p,e.factory.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c))),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(e=>{e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})})(p),(e=>{!(t=>{var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(e=>132===e.kind)),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>a(e,i(r.sourceFile,r.span),r)));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(e.sourceFile,r),e)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=n.program,s=((t,r,n)=>{var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}})(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(e=>((e,t,r)=>{e.replaceRangeWithText(t,r,"let")})(e,i,s)));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})})(p),(e=>{!(t=>{var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,s)));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=(t=>{var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}})(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],m=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!m||3&m.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!m||2&m.flags)&&t.insertText(r,l.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span,n.program)));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>i(t,n.file,n,r.program,new e.Set)))})})(e.codefix||(e.codefix={}))})(p),(e=>{!(t=>{var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function a(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=i.getTypeChecker(),p=t=>e.isIdentifier(t)&&d.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)};switch(s.kind){case 256:case 257:case 258:case 260:case 259:case 261:if(!(m=s).name)return;return p(m.name)||{exportNode:m,exportName:m.name,wasDefault:u,exportingModuleSymbol:c};case 237:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 271:var m;if((m=s).isExportEquals)return;return p(m.expression)||{exportNode:m,exportName:m.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function o(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function s(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=s.wasDefault?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[m(m({},n),{notApplicableReason:s.error}),m(m({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction(r,c){e.Debug.assert(c===n.name||c===i.name,"Unexpected action name");var l=a(r);return e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{((t,r,n,i)=>{var a=r.wasDefault,o=r.exportNode,c=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=s(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 256:case 257:case 258:n.insertNodeAfter(t,d,e.factory.createToken(88));break;case 237:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 260:case 259:case 261:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(c.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),((t,r,n,i)=>{var a=r.wasDefault,c=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(c),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,c.text,a,(t=>{var r=t.getSourceFile();a?((t,r,n,i)=>{var a=r.parent;switch(a.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 270:case 275:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 267:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=o(i,r.text);var l=c.namedBindings;if(l)if(268===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;case 200:var p=a;n.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}})(r,t,n,c.text):((t,r,n)=>{var i=r.parent;switch(i.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 270:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 275:n.replaceNode(t,i,s("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}})(r,t,n)}))})(r,n,i,a)})(r.file,r.program,l,t,r.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})})(e.refactor||(e.refactor={}))})(p),(e=>{!(t=>{var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),s=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!s||!e.isImportDeclaration(s))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(s,s.parent,n);if(!(l&&c>l.getStart())){var u=s.importClause;return u?u.namedBindings?268===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:o(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function o(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&(n=r.parent.moduleSpecifier,!!(a=(i=t.getTypeChecker()).resolveExternalModuleName(n))&&a!==i.resolveExternalModuleSymbol(a));var n,i,a}function s(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function c(t,r,n,i,a){void 0===a&&(a=o(r,i.parent));var s=r.getTypeChecker(),c=i.parent.parent,u=c.moduleSpecifier,d=new e.Set;i.elements.forEach((e=>{var t=s.getSymbolAtLocation(e.name);t&&d.add(t)}));for(var p=u&&e.isStringLiteral(u)?e.codefix.moduleSpecifierToValidIdentifier(u.text,99):"module",_=i.elements.some((r=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(t=>{var r=s.resolveName(p,t,67108863,!0);return!!r&&(!d.has(r)||e.isExportSpecifier(t.parent))}))))?e.getUniqueName(p,t):p,f=new e.Set,m=r=>{var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(a=>{var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(r):n.replaceNode(t,a,o)}))},g=0,h=i.elements;g<h.length;g++)m(h[g]);if(n.replaceNode(t,i,a?e.factory.createIdentifier(_):e.factory.createNamespaceImport(e.factory.createIdentifier(_))),f.size){var y=e.arrayFrom(f.values()).map((t=>e.factory.createImportSpecifier(t.isTypeOnly,t.propertyName&&e.factory.createIdentifier(t.propertyName.text),e.factory.createIdentifier(t.name.text))));n.insertNodeAfter(t,i.parent.parent,l(c,void 0,y))}}function l(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier,void 0)}t.registerRefactor(n,{kinds:e.getOwnValues(i).map((e=>e.kind)),getAvailableActions(r){var o=a(r,"invoked"===r.triggerReason);if(!o)return e.emptyArray;if(!t.isRefactorErrorInfo(o)){var s=i[o.convertTo];return[{name:n,description:s.description,actions:[s]}]}return r.preferences.provideRefactorNotApplicableReason?e.getOwnValues(i).map((e=>({name:n,description:e.description,actions:[m(m({},e),{notApplicableReason:o.error})]}))):e.emptyArray},getEditsForAction(r,n){e.Debug.assert(e.some(e.getOwnValues(i),(e=>e.name===n)),"Unexpected action name");var o=a(r);return e.Debug.assert(o&&!t.isRefactorErrorInfo(o),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i)=>{var a=r.getTypeChecker();0===i.convertTo?((t,r,n,i,a)=>{var o=!1,c=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(t=>{if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=s(t.parent).text;r.resolveName(n,t,67108863,!0)&&u.set(n,!0),e.Debug.assert((t=>e.isPropertyAccessExpression(t)?t.expression:t.left)(t.parent)===t,"Parent expression should match id"),c.push(t.parent)}else o=!0}));for(var d=new e.Map,p=0,_=c;p<_.length;p++){var f=_[p],m=s(f).text,g=d.get(m);void 0===g&&d.set(m,g=u.has(m)?e.getUniqueName(m,t):m),n.replaceNode(t,f,e.factory.createIdentifier(g))}var h=[];d.forEach(((t,r)=>{h.push(e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var y=i.parent.parent;o&&!a?n.insertNodeAfter(t,y,l(y,void 0,h)):n.replaceNode(t,y,l(y,o?e.factory.createIdentifier(i.name.text):void 0,h))})(t,a,n,i.import,e.getAllowSyntheticDefaultImports(r.getCompilerOptions())):c(t,r,n,i.import,1===i.convertTo)})(r.file,r.program,t,o))),renameFilename:void 0,renameLocation:void 0}}}),t.doChangeNamedToNamespaceOrDefault=c})(e.refactor||(e.refactor={}))})(p),(e=>{var t;(r=>{var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),a={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function o(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function s(t){return o(t)||(t=>e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t))(t)}function c(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),c=0===a.length;if(!c||r){var d=e.getTokenAtPosition(n,a.start),_=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(d.pos,_&&_.end>=d.pos?_.getEnd():d.getEnd()),m=c?(e=>{for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}})(d):((e,t)=>{for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}})(d,f),g=m&&s(m)?(t=>{if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0})(m):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(g)?((t,r)=>{var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}})(g,h):(t=>{if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}})(g)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return((t,r)=>{for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()})(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=_(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))})(r.file,r.program.getTypeChecker(),t,i))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions(r){var o=c(r,"invoked"===r.triggerReason);return o?t.isRefactorErrorInfo(o)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))})(p),(e=>{var t;(r=>{var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 168:case 169:case 174:case 171:case 175:case 256:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(r=>e.getSourceFileOfNode(r)===t))&&o(l[0])){var u=l[0].kind;if(e.every(l,(e=>e.kind===u))){var d=l;if(!e.some(d,(t=>!!t.typeParameters||e.some(t.parameters,(t=>!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)))))){var p=e.mapDefined(d,(e=>s.getSignatureFromDeclaration(e)));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(e=>s.getReturnTypeOfSignature(e)===_)))return d}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 168:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 169:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 174:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 171:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 175:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 256:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(e=>{e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(t=>!!e.length(e.getSyntheticLeadingComments(t))))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(130)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((e=>" * ".concat(e))).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:t=>s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(p),(e=>{var t;(r=>{var n,i,a,o,s="Extract Symbol",c={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function u(r){var n=r.kind,i=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return t.refactorKindBeginsWith(l.kind,n)&&o.push({name:s,description:l.description,actions:[m(m({},l),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(c.kind,n)&&o.push({name:s,description:c.description,actions:[m(m({},c),{notApplicableReason:N(i.errors)})]}),o}var u=((t,r)=>{var n=g(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(((t,r)=>{var n,i,a=(t=>e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function")(t),c=(t=>e.isClassLike(t)?"readonly field":"constant")(t),l=e.isFunctionLikeDeclaration(t)?(t=>{switch(t.kind){case 171:return"constructor";case 213:case 256:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 214:return"arrow function";case 169:return"method '".concat(t.name.getText(),"'");case 172:return"'get ".concat(t.name.getText(),"'");case 173:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}})(t):e.isClassLike(t)?(e=>257===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression")(t):(e=>262===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1)(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))})(a,r);if(void 0===u)return e.emptyArray;for(var d,_,f=[],h=new e.Map,y=[],v=new e.Map,b=0,x=0,E=u;x<E.length;x++){var S=E[x],D=S.functionExtraction,T=S.constantExtraction,C=D.description;if(t.refactorKindBeginsWith(l.kind,n)&&(0===D.errors.length?h.has(C)||(h.set(C,!0),f.push({description:C,name:"function_scope_".concat(b),kind:l.kind})):d||(d={description:C,name:"function_scope_".concat(b),notApplicableReason:N(D.errors),kind:l.kind})),t.refactorKindBeginsWith(c.kind,n))if(0===T.errors.length){var k=T.description;v.has(k)||(v.set(k,!0),y.push({description:k,name:"constant_scope_".concat(b),kind:c.kind}))}else _||(_={description:C,name:"constant_scope_".concat(b),notApplicableReason:N(T.errors),kind:c.kind});b++}var A=[];return f.length?A.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:f}):r.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[d]}),y.length?A.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:y}):r.preferences.provideRefactorNotApplicableReason&&_&&A.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[_]}),A.length?A:e.emptyArray;function N(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function d(t,r){var n=p(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),((t,r,n)=>{var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o,s)=>{var c,l,u=n.usages,d=n.typeParameterUsages,p=n.substitutions,_=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",g),E=e.isInJSFile(r),D=e.factory.createIdentifier(x),T=[],C=[];u.forEach(((t,n)=>{var i;if(!E){var a=_.getTypeOfSymbolAtLocation(t.symbol,t.node);a=_.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(_,m,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);T.push(o),2===t.usage&&(l||(l=[])).push(t),C.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(d.values()).map((e=>({type:e,declaration:h(e)}))).sort(y),A=0===k.length?void 0:k.map((e=>e.declaration)),N=void 0!==A?A.map((t=>e.factory.createTypeReferenceNode(t.name,void 0))):void 0;if(e.isExpression(t)&&!E){var w=_.getContextualType(t);c=_.typeToTypeNode(w,r,1)}var F,P=((t,r,n,i,a)=>{var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,p})).slice();if(s&&!a&&e.isStatement(t)){var d=v(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}})(t,a,l,p,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var M=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var R=E?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&R.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&R.push(e.factory.createModifier(131)),F=e.factory.createMethodDeclaration(void 0,R.length?R:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,D,void 0,A,T,c,I)}else M&&T.unshift(e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(o.thisNode),r,1),void 0)),F=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,D,A,T,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),B=((t,r)=>e.find((t=>{if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray})(r),(r=>r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r))))((b(o.range)?e.last(o.range):o.range).end,r);B?L.insertNodeBefore(s.file,B,F,!0):L.insertNodeAtEndOfScope(s.file,r,F),m.writeFixes(L);var j=[],U=((t,r,n)=>{var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a})(r,o,x);M&&C.unshift(e.factory.createIdentifier("this"));var V=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(U,"call"):U,N,C);if(o.facts&i.IsGenerator&&(V=e.factory.createYieldExpression(e.factory.createToken(41),V)),o.facts&i.IsAsyncFunction&&(V=e.factory.createAwaitExpression(V)),S(t)&&(V=e.factory.createJsxExpression(void 0,V)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var K=a[0];j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(K.name),void 0,e.getSynthesizedDeepClone(K.type),V)],K.parent.flags)))}else{for(var z=[],W=[],J=a[0].parent.flags,H=!1,$=0,G=a;$<G.length;$++){K=G[$],z.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(K.name)));var q=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(K)),r,1);W.push(e.factory.createPropertySignature(void 0,K.symbol.name,void 0,q)),H=H||void 0!==K.type,J&=K.parent.flags}var X=H?e.factory.createTypeLiteralNode(W):void 0;X&&e.setEmitFlags(X,1),j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(z),void 0,X,V)],J)))}else if(a.length||l){if(a.length)for(var Y=0,Q=a;Y<Q.length;Y++){var Z=(K=Q[Y]).parent.flags;2&Z&&(Z=-3&Z|1),j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(K.symbol.name,void 0,ne(K.type))],Z)))}O&&j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,ne(c))],1)));var ee=v(a,l);O&&ee.unshift(e.factory.createShorthandPropertyAssignment(O)),1===ee.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),j.push(e.factory.createExpressionStatement(e.factory.createAssignment(ee[0].name,V))),o.facts&i.HasReturn&&j.push(e.factory.createReturnStatement())):(j.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(ee),V))),O&&j.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?j.push(e.factory.createReturnStatement(V)):b(o.range)?j.push(e.factory.createExpressionStatement(V)):j.push(V);b(o.range)?L.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),j):L.replaceNodeWithNodes(s.file,o.range,j);var te=L.getChanges(),re=(b(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:re,renameLocation:e.getRenameLocation(te,re,x,!1),edits:te};function ne(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(e=>153===e.kind))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(153)])}}})(c,o[n],l[n],d,t,r)})(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),((t,r,n)=>{var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o)=>{var s,c=n.substitutions,l=o.program.getTypeChecker(),u=r.getSourceFile(),d=!e.isPropertyAccessExpression(t)||e.isClassLike(r)||l.resolveName(t.name.text,t,111551,!1)||e.isPrivateIdentifier(t.name)||e.isKeyword(t.name.originalKeywordKind)?e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u):t.name.text,p=e.isInJSFile(r),_=p||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),r,1),m=((t,r)=>r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t)(e.skipParentheses(t),c);_=(s=((n,i)=>{if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u<d.length;u++){var p=d[u];if(p.type)s.push(p);else{var _=l.getTypeAtLocation(p);_===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(_,r,1),p.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var m=l.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(m,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}})(_,m)).variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var h=[];h.push(e.factory.createModifier(121)),a&i.InStaticRegion&&h.push(e.factory.createModifier(124)),h.push(e.factory.createModifier(145));var y=e.factory.createPropertyDeclaration(void 0,h,d,void 0,_,m),v=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(d));S(t)&&(v=e.factory.createJsxExpression(void 0,v));var b=((t,r)=>{var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n})(t.pos,r);g.insertNodeBefore(o.file,b,y,!0),g.replaceNode(o.file,t,v)}else{var x=e.factory.createVariableDeclaration(d,void 0,_,m),D=((t,r)=>{for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}})(t,r);if(D)g.insertNodeBefore(o.file,D,x),v=e.factory.createIdentifier(d),g.replaceNode(o.file,t,v);else if(238===t.parent.kind&&r===e.findAncestor(t,f)){var T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));g.replaceNode(o.file,t.parent,T)}else T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),0===(b=((t,r)=>{var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)f(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(E(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}})(t,r)).pos?g.insertNodeAtTopOfFile(o.file,T,!1):g.insertNodeBefore(o.file,b,T,!1),238===t.parent.kind?g.delete(o.file,t.parent):(v=e.factory.createIdentifier(d),S(t)&&(v=e.factory.createJsxExpression(void 0,v)),g.replaceNode(o.file,t,v))}var C=g.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(C,k,d,!0),edits:C}})(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)})(n,t,o);e.Debug.fail("Unrecognized action name")}function p(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s,c=0===o&&a,l=e.findFirstNonJsxWhitespaceToken(t,r.start),u=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),d=l&&u&&a?((e,t,r)=>{var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}})(l,u,t):r,p=c?(t=>e.findAncestor(t,(t=>t.parent&&x(t)&&!e.isBinaryExpression(t.parent))))(l):e.getParentNodeInSpan(l,t,d),f=c?p:e.getParentNodeInSpan(u,t,d),m=[],g=i.None;if(!p||!f)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(8388608&p.flags)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(p.parent!==f.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(p!==f){if(!E(p.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var h=[],y=0,v=p.parent.statements;y<v.length;y++){var b=v[y];if(b===p||h.length){var S=k(b);if(S)return{errors:S};h.push(b)}if(b===f)break}return h.length?{targetRange:{range:h,facts:g,declarations:m,thisNode:s}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isReturnStatement(p)&&!p.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var T=(t=>{if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)||e.isVariableDeclarationList(t)){for(var r=0,n=void 0,i=0,a=e.isVariableStatement(t)?t.declarationList.declarations:t.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t})(p),C=(t=>{if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)]})(T)||k(T);return C?{errors:C}:{targetRange:{range:_(T),facts:g,declarations:m,thisNode:s}};function k(t){var a;if((e=>{e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"})(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&x(t)||D(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(16777216&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,c=e.getContainingClass(t);c&&((t,r)=>{for(var n=t;n!==r;){if(167===n.kind){e.isStatic(n)&&(g|=i.InStaticRegion);break}if(164===n.kind){171===e.getContainingFunction(n).kind&&(g|=i.InStaticRegion);break}169===n.kind&&e.isStatic(n)&&(g|=i.InStaticRegion),n=n.parent}})(t,c);var l,u=4;if(function t(a){if(o)return!0;if(e.isDeclaration(a)){var c=254===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(c,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;m.push(a.symbol)}switch(a.kind){case 266:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 271:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 106:if(208===a.parent.kind){var d=e.getContainingClass(a);if(void 0===d||d.pos<r.start||d.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis,s=a;break;case 214:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 257:case 256:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 226:case 213:case 169:case 171:case 172:case 173:return!1}var p=u;switch(a.kind){case 239:case 252:u=0;break;case 235:a.parent&&252===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 290:case 289:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 192:case 108:g|=i.UsesThis,s=a;break;case 250:var _=a.label;(l||(l=[])).push(_.escapedText),e.forEachChild(a,t),l.pop();break;case 246:case 245:(_=a.label)?e.contains(l,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(246===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 218:g|=i.IsAsyncFunction;break;case 224:g|=i.IsGenerator;break;case 247:4&u?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=p}(t),g&i.UsesThis){var d=e.getThisContainer(t,!1);(256===d.kind||169===d.kind&&205===d.parent.kind||213===d.kind)&&(g|=i.UsesThisInFunction)}return o}}function _(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:D(t)?t:void 0}function f(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function g(t,r){var a=r.file,o=(t=>{var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(164===(r=r.parent).kind&&(r=e.findAncestor(r,(t=>e.isFunctionLikeDeclaration(t))).parent),f(r)&&(o.push(r),305===r.kind))return o})(t);return{scopes:o,readsAndWrites:((t,r,a,o,s,c)=>{var l,u,d=new e.Map,p=[],_=[],f=[],m=[],g=[],h=new e.Map,y=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var x=t.range,E=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,E,S-E,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,n.uselessConstantType));for(var D=0,T=r;D<T.length;D++){var C=T[D];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),_.push(new e.Map),f.push([]);var k=[];u&&k.push(u),e.isClassLike(C)&&e.isInJSFile(C)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),m.push(k)}var A,N=new e.Map,w=b(t.range)?e.factory.createBlock(t.range):t.range,F=b(t.range)?e.first(t.range):t.range,P=(A=F,!!e.findAncestor(A,(t=>e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length)));if(function c(l,u){if(void 0===u&&(u=1),P&&z(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&g.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!((c,l,u)=>{var d=((c,l,u)=>{var d=W(c);if(d){var g=e.getSymbolId(d).toString(),h=N.get(g);if(h&&h>=l)return g;if(N.set(g,l),h){for(var y=0,v=p;y<v.length;y++){var b=v[y];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:d,node:c})}return g}var x=d.getDeclarations(),E=x&&e.find(x,(e=>e.getSourceFile()===o));if(E&&!e.rangeContainsStartEnd(a,E.getStart(),E.end)){if(t.facts&i.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),D=0,T=f;D<T.length;D++)T[D].push(S);for(var C=0,k=m;C<k.length;C++)k[C].push(S)}for(var A=0;A<r.length;A++){var w=r[A];if(s.resolveName(d.name,w,d.flags,!1)!==d&&!_[A].has(g)){var F=J(d.exportSymbol||d,w,u);F?_[A].set(g,F):u?262144&d.flags||(S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope),f[A].push(S),m[A].push(S)):p[A].usages.set(c.text,{usage:l,symbol:d,node:c})}}return g}}})(c,l,u);if(d)for(var g=0;g<r.length;g++){var h=_[g].get(d);h&&p[g].substitutions.set(e.getNodeId(c).toString(),h)}})(l,u,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(w),!P||b(t.range)||e.isJsxAttribute(t.range)||z(s.getContextualType(t.range)),d.size>0){for(var I=new e.Map,O=0,M=F;void 0!==M&&O<r.length;M=M.parent)if(M===r[O]&&(I.forEach(((e,t)=>{p[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(M))for(var R=0,L=e.getEffectiveTypeParameterDeclarations(M);R<L.length;R++){var B=L[R],j=s.getTypeAtLocation(B);d.has(j.id.toString())&&I.set(j.id.toString(),j)}e.Debug.assert(O===r.length,"Should have iterated all scopes")}if(g.length){var U=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(U,(function r(n){if(!(n===t.range||b(t.range)&&t.range.indexOf(n)>=0)){var i=e.isIdentifier(n)?W(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,(e=>e.symbol===i));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(y.push(a),h.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=a=>{var o=p[a];if(a>0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;m[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&f[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(p[a].usages.forEach((t=>{2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===y.length,"No variable declarations expected if something was extracted"),u&&!b(t.range)){var d=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[a].push(d),m[a].push(d)}else c&&a>0?(d=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[a].push(d),m[a].push(d)):l&&(d=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[a].push(d),m[a].push(d))},K=0;K<r.length;K++)V(K);return{target:w,usagesPerScope:p,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:y};function z(e){for(var t=0,r=s.getSymbolWalker((()=>(c.throwIfCancellationRequested(),!0))).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&d.set(n.id.toString(),n)}}function W(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function J(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((e=>e.parent===r)))return e.factory.createIdentifier(t.name);var a=J(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}})(t,o,((t,r)=>b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range)(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function h(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function y(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function v(t,r){var n=e.map(t,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name))),i=e.map(r,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name)));return void 0===n?i:void 0===i?n:n.concat(i)}function b(t){return e.isArray(t)}function x(e){var t=e.parent;switch(t.kind){case 299:return!1}switch(e.kind){case 10:return 266!==t.kind&&270!==t.kind;case 225:case 201:case 203:return!1;case 79:return 203!==t.kind&&270!==t.kind&&275!==t.kind}return!0}function E(e){switch(e.kind){case 235:case 305:case 262:case 289:return!0;default:return!1}}function S(t){return D(t)||(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}function D(t){return e.isStringLiteral(t)&&t.parent&&e.isJsxAttribute(t.parent)}t.registerRefactor(s,{kinds:[c.kind,l.kind],getEditsForAction:d,getAvailableActions:u}),r.getRefactorActionsToExtractSymbol=u,r.getRefactorEditsToExtractSymbol=d,(t=>{function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=r("Cannot extract functions containing this to method")})(n=r.Messages||(r.Messages={})),(e=>{e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion"})(i||(i={})),r.getRangeToExtract=p,(e=>{e[e.Module=0]="Module",e[e.Global=1]="Global"})(a||(a={})),(e=>{e[e.Read=1]="Read",e[e.Write=2]="Write"})(o||(o={}))})((t=e.refactor||(e.refactor={})).extractSymbol||(t.extractSymbol={}))})(p),(e=>{!(t=>{var r="Extract type",n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},a={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),l=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),u=l.pos===l.end&&r,d=e.findAncestor(o,(t=>t.parent&&e.isTypeNode(t)&&!c(l,t.parent,n)&&(u||e.nodeOverlapsWithStartEnd(o,n,l.pos,l.end))));if(!d||!e.isTypeNode(d))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=t.program.getTypeChecker(),_=e.Debug.checkDefined(e.findAncestor(d,e.isStatement),"Should find a statement"),f=((t,r,n,i)=>{var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName))for(var l=s.typeName,u=0,d=(null==(m=t.resolveName(l.text,l,262144,!0))?void 0:m.declarations)||e.emptyArray;u<d.length;u++){var p=d[u];if(e.isTypeParameterDeclaration(p)&&p.getSourceFile()===i){if(p.name.escapedText===l.escapedText&&c(p,r,i))return!0;if(c(n,p,i)&&!c(r,p,i)){e.pushIfUnique(a,p);break}}}}else if(e.isInferTypeNode(s)){var _=e.findAncestor(s,(t=>e.isConditionalTypeNode(t)&&c(t.extendsType,s,i)));if(!_||!c(r,_,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var f=e.findAncestor(s.parent,e.isFunctionLike);if(f&&f.type&&c(f.type,s,i)&&!c(r,f,i))return!0}else if(e.isTypeQueryNode(s)){var m;if(e.isIdentifier(s.exprName)){if((null==(m=t.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:m.valueDeclaration)&&c(n,m.valueDeclaration,i)&&!c(r,m.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!c(r,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(r)?void 0:a})(p,d,_,n);return f?{isJS:a,selection:d,firstStatement:_,typeParameters:f,typeElements:s(p,d)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function s(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var c=s(t,o[a]);if(!c||!c.every((t=>t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name)))))return;e.addRange(n,c)}return n}return e.isParenthesizedTypeNode(r)?s(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function c(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,a.kind],getAvailableActions(s){var c=o(s,"invoked"===s.triggerReason);return c?t.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[m(m({},a),{notApplicableReason:c.error}),m(m({},n),{notApplicableReason:c.error}),m(m({},i),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[a]:e.append([n],c.typeElements&&i)}]:e.emptyArray},getEditsForAction(r,s){var c=r.file,l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),d=e.textChanges.ChangeTracker.with(r,(t=>{switch(s){case n.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((t=>e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,t.constraint,void 0))),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,u,l);case a.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters;e.setEmitFlags(o,3584);var c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),l=[];e.forEach(s,(t=>{var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(void 0,t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);l.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))))})(t,c,u,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,n,c,void 0,l);e.setTextRange(u,null===(a=l[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,u,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:d,renameFilename:p,renameLocation:e.getRenameLocation(d,p,u,!1)}}})})(e.refactor||(e.refactor={}))})(p),(e=>{var t,r,n,i;(t=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions(a){if(!a.endPosition)return e.emptyArray;var o=e.codefix.getAccessorConvertiblePropertyAtPosition(a.file,a.program,a.startPosition,a.endPosition,"invoked"===a.triggerReason);return o?t.isRefactorErrorInfo(o)?a.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[m(m({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})})(p),(e=>{var t;(t=e.refactor||(e.refactor={})).isRefactorErrorInfo=e=>void 0!==e.error,t.refactorKindBeginsWith=(e,t)=>!t||e.substr(0,t.length)===t})(p),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),i={name:r,description:n,kind:"refactor.move.newFile"};function a(t){var r=(t=>{var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(e=>e.end>n.pos));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(e=>e.end>n.end),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}})(t);if(void 0!==r){var n=[],i=[],a=r.toMove,s=r.afterLast;return e.getRangesWhere(a,o,((e,t)=>{for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:s})})),0===n.length?void 0:{all:n,ranges:i}}}function o(t){return!(t=>{switch(t.kind){case 266:return!0;case 265:return!e.hasSyntacticModifier(t,1);case 237:return t.declarationList.declarations.every((t=>!!t.initializer&&e.isRequireCall(t.initializer,!0)));default:return!1}})(t)&&!e.isPrologueDirective(t)}function s(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function c(e){return 266===e.kind?e.moduleSpecifier:265===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function l(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function u(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((t=>e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(t))));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((t=>e.factory.createBindingElement(void 0,void 0,t)));return s.length?d(e.factory.createObjectBindingPattern(s),void 0,p(e.factory.createStringLiteral(n))):void 0}function d(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function p(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function _(t,r,n,i){switch(r.kind){case 266:!((t,r,n,i)=>{if(r.importClause){var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(268===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((e=>i(e.name))));if(c&&l)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(l)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(269===s.kind)for(var u=0,d=s.elements;u<d.length;u++){var p=d[u];i(p.name)&&n.delete(t,p)}}})(t,r,n,i);break;case 265:i(r.name)&&n.delete(t,r);break;case 254:!((t,r,n,i)=>{var a=r.name;switch(a.kind){case 79:i(a)&&n.delete(t,a);break;case 202:break;case 201:if(a.elements.every((t=>e.isIdentifier(t.name)&&i(t.name))))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}})(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind ".concat(r.kind))}}function g(t){switch(t.kind){case 265:case 270:case 267:case 268:return!0;case 254:return h(t);case 203:return e.isVariableDeclaration(t.parent.parent)&&h(t.parent.parent);default:return!1}}function h(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function y(t,r,n){switch(t.kind){case 266:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&((t,r)=>{if(268===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((e=>r(e.name)));return n.length?e.factory.createNamedImports(n):void 0})(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r,void 0):void 0;case 265:return n(t.name)?t:void 0;case 254:var s=((t,r)=>{switch(t.kind){case 79:return r(t)?t:void 0;case 202:return t;case 201:var n=t.elements.filter((t=>t.propertyName||!e.isIdentifier(t.name)||r(t.name)));return n.length?e.factory.createObjectBindingPattern(n):void 0}})(t.name,n);return s?d(s,t.type,p(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind ".concat(t.kind))}}function v(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[i.kind],getAvailableActions(t){var o=a(t);return t.preferences.allowTextChangesInNewFiles&&o?[{name:r,description:n,actions:[i]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[m(m({},i),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var i=e.Debug.checkDefined(a(t));return{edits:e.textChanges.ChangeTracker.with(t,(r=>{return n=t.file,a=t.program,o=i,d=r,m=t.host,h=t.preferences,D=a.getTypeChecker(),F=((t,r,n)=>{var i=new b,a=new b,o=new b,s=(t=>{if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,g)?i:void 0}})(e.find(r,(e=>!!(2&e.transformFlags))));s&&a.add(s);for(var c=0,l=r;c<l.length;c++)S(h=l[c],(t=>{i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var u=0,d=r;u<d.length;u++)v(h=d[u],n,(r=>{if(r.declarations)for(var n=0,s=r.declarations;n<s.length;n++){var c=s[n];g(c)?a.add(r):x(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===t)&&!i.has(r)&&o.add(r)}var l}));for(var p=a.clone(),_=new b,f=0,m=t.statements;f<m.length;f++){var h=m[f];e.contains(r,h)||(s&&2&h.transformFlags&&p.delete(s),v(h,n,(e=>{i.has(e)&&_.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:_,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}})(n,o.all,D),P=e.getDirectoryPath(n.fileName),I=e.extensionFromPath(n.fileName),M=(O=((t,r,n,i)=>{for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a="".concat(t,".").concat(o)}})(F.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",I,P,m))+I,d.createNewFile(n,e.combinePaths(P,M),((t,r,n,i,a,o,d)=>{var m=a.getTypeChecker(),g=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return s(t,i.ranges,n),f(f([],g,!0),i.all,!0);var h=!!t.externalModuleIndicator,v=e.getQuotePreference(t,d),b=((t,r,n,i)=>{var a,o=[];return t.forEach((t=>{"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),u(a,o,r,n,i)})(r.oldFileImportsFromNewFile,o,h,v);b&&e.insertImports(n,t,b,!0),((t,r,n,i,a)=>{for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||l(c,(e=>_(t,e,n,(e=>i.has(a.getSymbolAtLocation(e))))))}})(t,i.all,n,r.unusedImportsFromOldFile,m),s(t,i.ranges,n),((t,r,n,i,a)=>{for(var o=r.getTypeChecker(),s=r=>{if(r===n)return"continue";for(var s=s=>{l(s,(l=>{if(o.getSymbolAtLocation(c(l))===n.symbol){var u=t=>{var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};_(r,l,t,u);var d=e.combinePaths(e.getDirectoryPath(c(l).text),a),f=y(l,e.factory.createStringLiteral(d),u);f&&t.insertNodeAfter(r,s,f);var m=(t=>{switch(t.kind){case 266:return t.importClause&&t.importClause.namedBindings&&268===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 265:return t.name;case 254:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(l);m&&((t,r,n,i,a,o,s,c)=>{var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),u=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(t=>{e.isPropertyAccessExpression(t.parent)&&(u=u||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&d.push(t))})),d.length){for(var _=u?e.getUniqueName(l,r):l,f=0,m=d;f<m.length;f++){var g=m[f];t.replaceNode(r,g,e.factory.createIdentifier(_))}t.insertNodeAfter(r,c,((t,r,n)=>{var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 266:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a,void 0);case 265:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 254:return e.factory.createVariableDeclaration(i,void 0,void 0,p(a));default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(c,a,o))}})(t,r,o,i,a,d,m,l)}}))},u=0,d=r.statements;u<d.length;u++)s(d[u])},u=0,d=r.getSourceFiles();u<d.length;u++)s(d[u])})(n,a,t,r.movedSymbols,o);var D=((t,r,n,i,a,o,s)=>{for(var d,p=[],_=0,f=t.statements;_<f.length;_++)l(f[_],(t=>{e.append(p,y(t,c(t),(e=>r.has(a.getSymbolAtLocation(e)))))}));var m=[],g=e.nodeSeenTracker();return n.forEach((r=>{if(r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(x(s)){var c=(u=s,e.isExpressionStatement(u)?e.tryCast(u.expression.left.name,e.isIdentifier):e.tryCast(u.name,e.isIdentifier));if(c){var l=T(s);g(l)&&C(t,l,c,i,o),e.hasSyntacticModifier(s,512)?d=c:m.push(c.text)}}}var u})),e.append(p,u(d,m,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),p})(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,m,h,v),F=((t,r,n,i)=>e.flatMap(r,(r=>{if(o=r,e.Debug.assert(e.isSourceFile(o.parent),"Node parent should be a SourceFile"),(E(o)||e.isVariableStatement(o))&&!k(t,r,i)&&S(r,(t=>n.has(e.Debug.checkDefined(t.symbol))))){var a=((e,t)=>t?[A(e)]:(e=>f([e],N(e).map(w),!0))(e))(r,i);if(a)return a}var o;return r})))(t,i.all,r.oldFileImportsFromNewFile,h);return D.length&&F.length?f(f(f(f([],g,!0),D,!0),[4],!1),F,!0):f(f(f([],g,!0),D,!0),F,!0)})(n,F,d,o,a,O,h)),void((t,r,n,i,a)=>{var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(t=>e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text));u&&e.isArrayLiteralExpression(u.initializer)&&r.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}})(a,d,n.fileName,M,e.hostGetCanonicalFileName(m));var n,a,o,d,m,h,D,F,P,I,O,M})),renameFilename:void 0,renameLocation:void 0}}});var b=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function x(t){return E(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function E(e){switch(e.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return!0;default:return!1}}function S(t,r){switch(t.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return r(t);case 237:return e.firstDefined(t.declarationList.declarations,(e=>D(e.name,r)));case 238:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function D(t,r){switch(t.kind){case 79:return r(e.cast(t.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));case 202:case 201:return e.firstDefined(t.elements,(t=>e.isOmittedExpression(t)?void 0:D(t.name,r)));default:return e.Debug.assertNever(t,"Unexpected name kind ".concat(t.kind))}}function T(t){switch(t.kind){case 254:return t.parent.parent;case 203:return T(e.cast(t.parent.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));default:return t}}function C(t,r,n,i,a){if(!k(t,r,a,n))if(a)e.isExpressionStatement(r)||i.insertExportModifier(t,r);else{var o=N(r);0!==o.length&&i.insertNodesAfter(t,r,o.map(w))}}function k(t,r,n,i){var a;return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1)||!(!i||!(null===(a=t.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):N(r).some((r=>t.symbol.exports.has(e.escapeLeadingUnderscores(r))))}function A(t){var r=e.concatenate([e.factory.createModifier(93)],t.modifiers);switch(t.kind){case 256:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 257:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 237:return e.factory.updateVariableStatement(t,r,t.declarationList);case 261:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 260:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 259:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 258:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 265:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference);case 238:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind ".concat(t.kind))}}function N(t){switch(t.kind){case 256:case 257:return[t.name.text];case 237:return e.mapDefined(t.declarationList.declarations,(t=>e.isIdentifier(t.name)?t.name.text:void 0));case 261:case 260:case 259:case 258:case 265:return e.emptyArray;case 238:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind ".concat(t.kind))}}function w(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),63,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(p),(e=>{var t;(r=>{var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},o={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function s(r,n,i,s){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(t.refactorKindBeginsWith(a.kind,s)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(t.refactorKindBeginsWith(o.kind,s)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction(r,n){var i=r.file,c=r.startPosition,l=s(i,c);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,d=l.expression,p=l.returnStatement,_=l.func;if(n===a.name){var f=e.factory.createReturnStatement(d);u=e.factory.createBlock([f],!0),e.copyLeadingComments(d,f,i,3,!0)}else if(n===o.name&&p){var m=d||e.factory.createVoidZero();u=e.needsParentheses(m)?e.factory.createParenthesizedExpression(m):m,e.copyTrailingAsLeadingComments(p,u,i,3,!1),e.copyLeadingComments(p,u,i,3,!1),e.copyTrailingComments(p,u,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(e=>{e.replaceNode(i,_.body,u)}))}},getAvailableActions(r){var c=s(r.file,r.startPosition,"invoked"===r.triggerReason);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:c.error}),m(m({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[c.addBraces?a:o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(p),(e=>{var t;(r=>{var n="Convert parameters to destructured object",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),a={name:n,description:i,kind:"refactor.rewrite.parameters.toDestructured"};function o(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function s(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function c(t){if(e.isDeclaration(t.node.parent))return t.node}function l(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 208:case 209:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 206:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 207:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 206:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 207:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function d(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function p(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!(t=>{var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(t=>!e.isJSDocNode(t)));return!!n&&e.isFunctionLikeDeclaration(n)}return!1})(i))return!(a&&((t,r)=>{var n;if(!((t,r)=>(e=>h(e)?e.length-1:e.length)(t)>=1&&e.every(t,(t=>((t,r)=>{if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)})(t,r))))(t.parameters,r))return!1;switch(t.kind){case 256:return m(t)&&_(t,r);case 169:if(e.isObjectLiteralExpression(t.parent)){var i=o(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&_(t,r)}return _(t,r);case 171:return e.isClassDeclaration(t.parent)?m(t.parent)&&_(t,r):g(t.parent.parent)&&_(t,r);case 213:case 214:return g(t.parent)}return!1})(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function _(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,88)}function g(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function h(t){return t.length>0&&e.isThis(t[0].name)}function y(t){return h(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function v(t,r){var n=y(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,((t,r)=>{var i,a,o=(i=x(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(x(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=y(t.parameters),l=e.map(c,(t=>{var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,(t=>{var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,x(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,d,o);if(h(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function x(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,a=t.startPosition,_=t.program,m=t.cancellationToken,g=t.host,h=p(i,a,_.getTypeChecker());if(h&&m){var y=((t,r,n)=>{var i=(t=>{switch(t.kind){case 256:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 169:return[t.name];case 171:var r=e.Debug.checkDefined(e.findChildOfKind(t,134,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 226===t.parent.kind?[t.parent.parent.name,r]:[r];case 214:return[t.parent.name];case 213:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}})(t),a=e.isConstructorDeclaration(t)?(t=>{switch(t.parent.kind){case 257:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 226:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}})(t):[],p=e.deduplicate(f(f([],i,!0),a,!0),e.equateValues),_=r.getTypeChecker(),m=(r=>{for(var n={accessExpressions:[],typeUsages:[]},p={functionCalls:[],declarations:[],classReferences:n,valid:!0},f=e.map(i,g),m=e.map(a,g),h=e.isConstructorDeclaration(t),y=e.map(i,(e=>o(e,_))),v=0,b=r;v<b.length;v++){var x=b[v];if(0!==x.kind){if(e.contains(y,g(x.node))){if(k=x.node.parent,e.isMethodSignature(k)&&(e.isInterfaceDeclaration(k.parent)||e.isTypeLiteralNode(k.parent))){p.signature=x.node.parent;continue}if(S=l(x)){p.functionCalls.push(S);continue}}var E=o(x.node,_);if(E&&e.contains(y,E)&&(D=c(x))){p.declarations.push(D);continue}if(e.contains(f,g(x.node))||e.isNewExpressionTarget(x.node)){var S;if(s(x))continue;if(D=c(x)){p.declarations.push(D);continue}if(S=l(x)){p.functionCalls.push(S);continue}}if(h&&e.contains(m,g(x.node))){var D;if(s(x))continue;if(D=c(x)){p.declarations.push(D);continue}var T=u(x);if(T){n.accessExpressions.push(T);continue}if(e.isClassDeclaration(t.parent)){var C=d(x);if(C){n.typeUsages.push(C);continue}}}p.valid=!1}else p.valid=!1}var k;return p})(e.flatMap(p,(t=>e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n))));return e.every(m.declarations,(t=>e.contains(p,t)))||(m.valid=!1),m;function g(t){var r=_.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,_)}})(h,_,m);return y.valid?{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(t=>((t,r,n,i,a,o)=>{var s=o.signature,c=e.map(b(a,r,n),(t=>e.getSynthesizedDeepClone(t)));s&&_(s,e.map(b(s,r,n),(t=>e.getSynthesizedDeepClone(t)))),_(a,c);for(var l=0,u=e.sortAndDeduplicate(o.functionCalls,((t,r)=>e.compareValues(t.pos,r.pos)));l<u.length;l++){var d=u[l];if(d.arguments&&d.arguments.length){var p=e.getSynthesizedDeepClone(v(a,d.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),p,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function _(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}})(i,_,g,t,h,y)))}:{edits:[]}}},getAvailableActions(t){var r=t.file,o=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:p(r,o,t.program.getTypeChecker())?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))})(p),(e=>{var t;(r=>{var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),a={name:n,description:i,kind:"refactor.rewrite.string"};function o(t,r){var n=e.getTokenAtPosition(t,r),i=c(n);return!l(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function s(t,r){var n=c(r),i=t.file,a=((t,r)=>{var n=t.nodes,i=((t,r)=>(n,i)=>{n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)})(t.operators,r),a=((t,r,n)=>(i,a)=>{for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}})(n,r,i),o=d(0,n),s=o[0],c=o[1],l=o[2],_=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(_,f),f}var m=[],g=e.factory.createTemplateHead(c,l);a(_,g);for(var h,y=t=>{var r=(t=>(e.isParenthesizedExpression(t)&&(p(t),t=t.expression),t))(n[t]);i(t,r);var o=d(t+1,n),s=o[0],c=o[1],l=o[2],_=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,((t,n)=>{p(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=u(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f&&i?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var y=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(_,y),m.push(e.factory.createTemplateSpan(r,y))}h=t},v=s;v<n.length;v++)y(v),v=h;return e.factory.createTemplateExpression(g,m)})(l(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],_={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(e=>{e.deleteRange(i,_),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,n,a)))}function c(t){return e.findAncestor(t.parent,(t=>{switch(t.kind){case 206:case 207:return!1;case 223:case 221:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,63!==r.operatorToken.kind));default:return"quit"}var r}))||t}function l(t){var r=t=>{if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var n=r(t.left),i=n.nodes,a=n.operators,o=n.hasString,s=n.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return i.push(t.right),a.push(t.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},n=r(t),i=n.nodes,a=n.operators,o=n.validOperators,s=n.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}function u(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function d(t,r){for(var n=[],i="",a="";t<r.length;){var o=r[t];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=u(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(t),t++}return[t,i,a,n]}function p(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){var n=o(t.file,t.startPosition);switch(r){case i:return{edits:s(t,n)};default:return e.Debug.fail("invalid action")}},getAvailableActions(t){var r=c(o(t.file,t.startPosition)),s={name:n,description:i,actions:[]};return e.isBinaryExpression(r)&&l(r).isValidConcatenation?(s.actions.push(a),[s]):t.preferences.provideRefactorNotApplicableReason?(s.actions.push(m(m({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[s]):e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))})(p),(e=>{var t;(r=>{var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),a={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},o={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function c(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function l(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=((t,r,n)=>{if((t=>e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length)(n)){var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!d(t,r,i))?i:void 0}})(t,a,i.parent);if(o&&!c(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!c(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&d(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function u(t){if(e.isExpression(t)){var r=e.factory.createReturnStatement(t),n=t.getSourceFile();return e.suppressLeadingAndTrailingTrivia(r),e.copyTrailingAsLeadingComments(t,r,n,void 0,!0),e.factory.createBlock([r],!0)}return t}function d(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[a.kind,o.kind,s.kind],getEditsForAction(t,r){var n=l(t.file,t.startPosition,t.program);if(n){var i=n.func,c=[];switch(r){case a.name:c.push.apply(c,((t,r)=>{var n=t.file,i=u(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(n,r,a)))})(t,i));break;case o.name:var d=(t=>{var r=t.parent;if(e.isVariableDeclaration(r)&&e.isVariableDeclarationInVariableStatement(r)){var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}})(i);if(!d)return;c.push.apply(c,((t,r,n)=>{var i=t.file,a=u(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,l=n.name;e.suppressLeadingTrivia(c);var d=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(r),p=e.factory.createModifiersFromModifierFlags(d),_=e.factory.createFunctionDeclaration(r.decorators,e.length(p)?p:void 0,r.asteriskToken,l,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,c,_))):e.textChanges.ChangeTracker.with(t,(e=>{e.delete(i,o),e.insertNodeAfter(i,c,_)}))})(t,i,d));break;case s.name:if(!e.isFunctionExpression(i))return;c.push.apply(c,((t,r)=>{var n,i=t.file,a=r.body.statements[0];((t,r)=>1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression)(r.body,a)?(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n)):n=r.body;var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,r,o)))})(t,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:c}}},getAvailableActions(r){var c=r.file,u=r.startPosition,d=r.program,p=r.kind,_=l(c,u,d);if(!_)return e.emptyArray;var f,g=_.selectedVariableDeclaration,h=_.func,y=[],v=[];return t.refactorKindBeginsWith(o.kind,p)&&((f=g||e.isArrowFunction(h)&&e.isVariableDeclaration(h.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?v.push(m(m({},o),{notApplicableReason:f})):y.push(o)),t.refactorKindBeginsWith(a.kind,p)&&((f=!g&&e.isArrowFunction(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?v.push(m(m({},a),{notApplicableReason:f})):y.push(a)),t.refactorKindBeginsWith(s.kind,p)&&((f=e.isFunctionExpression(h)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?v.push(m(m({},s),{notApplicableReason:f})):y.push(s)),[{name:n,description:i,actions:0===y.length&&r.preferences.provideRefactorNotApplicableReason?v:y}]}})})((t=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))})(p),(e=>{var t;(r=>{var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,a={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function o(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(a.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,(t=>e.isBlock(t)||t.parent&&e.isArrowFunction(t.parent)&&(38===t.kind||t.parent.body===t)?"quit":(e=>{switch(e.kind){case 256:case 213:case 214:case 169:return!0;default:return!1}})(t)));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var o=r.program.getTypeChecker(),s=((t,r)=>{if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(e=>e.getReturnType())))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)})(o,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(t=>{return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions(r){var s=o(r);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[m(m({},a),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))})(p),function(e){function t(t,n,i,a){var l=e.isNodeKind(t)?new r(t,n,i):79===t?new s(79,n,i):80===t?new c(80,n,i):new o(t,n,i);return l.parent=a,l.flags=50720768&a.flags,l}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=((r,i)=>{if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((e=>{a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=e=>{n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(e=>{n(a,o,e.pos,r),a.push(((e,r)=>{var i=t(348,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i})(e,r)),o=e.end})),n(a,o,r.end,r),e.scanner.setText(void 0),a})(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(e=>e.kind<309||e.kind>347));return n.kind<161?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<161?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(a.kind)," to have an Identifier in its trivia")),r.push(t(o,n,s,a))),n=s,1===o)break}}var i=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return this.getChildren().length},t.prototype.getChildAt=function(e){return this.getChildren()[e]},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=()=>{},t.prototype.getLastToken=()=>{},t.prototype.forEachChild=()=>{},t}(),a=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=_([r],t)}else this.documentationComment=_(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 172:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=_(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 173:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=_(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(e){return void 0===this.tags&&(this.tags=p(this.declarations,e)),this.tags},t.prototype.getContextualJsDocTags=function(t,r){switch(null==t?void 0:t.kind){case 172:return this.contextualGetAccessorTags||(this.contextualGetAccessorTags=p(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorTags;case 173:return this.contextualSetAccessorTags||(this.contextualSetAccessorTags=p(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorTags;default:return this.getJsDocTags(r)}},t}(),o=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return v(t,e),t}(i),s=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=79,i}return v(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);s.prototype.kind=79;var c=function(t){function r(e,r,n){return t.call(this,r,n)||this}return v(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);c.prototype.kind=80;var l=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t.prototype.isIndexType=function(){return!!(4194304&this.flags)},Object.defineProperty(t.prototype,"typeArguments",{get(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),u=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getTypeParameterAtPosition=function(t){var r=this.checker.getParameterType(this,t);if(r.isIndexType()&&e.isThisTypeParameter(r.type)){var n=r.type.getConstraint();if(n)return this.checker.getIndexType(n)}return r},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=_(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=p(e.singleElementArray(this.declaration),this.checker))},t}();function d(t){return e.getJSDocTags(t).some((e=>"inheritDoc"===e.tagName.text))}function p(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocTagsFromDeclarations(t,r);if(r&&(0===n.length||t.some(d)))for(var i=new e.Set,a=e=>{var t=g(r,e,(t=>{var n;if(!i.has(t))return i.add(t),172===e.kind||173===e.kind?t.getContextualJsDocTags(e,r):1===(null===(n=t.declarations)||void 0===n?void 0:n.length)?t.getJsDocTags():void 0}));t&&(n=f(f([],t,!0),n,!0))},o=0,s=t;o<s.length;o++)a(s[o]);return n}function _(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t,r);if(r&&(0===n.length||t.some(d)))for(var i=new e.Set,a=t=>{var a=g(r,t,(e=>{if(!i.has(e))return i.add(e),172===t.kind||173===t.kind?e.getContextualDocumentationComment(t,r):e.getDocumentationComment(r)}));a&&(n=0===n.length?a.slice():a.concat(e.lineBreakPart(),n))},o=0,s=t;o<s.length;o++)a(s[o]);return n}function g(t,r,n){var i;if(!e.hasStaticModifier(r)){var a=171===(null===(i=r.parent)||void 0===i?void 0:i.kind)?r.parent.parent:r.parent;if(a)return e.firstDefined(e.getAllSuperTypeNodes(a),(e=>{var i=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return i?n(i):void 0}))}}var h=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=305,i}return v(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 256:case 213:case 169:case 168:var o=a,s=n(o);if(s){var c=(e=>{var r=t.get(e);return r||t.set(e,r=[]),r})(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 257:case 226:case 258:case 259:case 260:case 261:case 265:case 275:case 270:case 267:case 268:case 172:case 173:case 182:r(a),e.forEachChild(a,i);break;case 164:if(!e.hasSyntacticModifier(a,16476))break;case 254:case 203:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 299:case 167:case 166:r(a);break;case 272:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 266:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(268===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 221:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),y=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function b(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!x(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[x(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function x(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=b,e.displayPartsToString=t=>t?e.map(t,(e=>e.text)).join(""):"",e.getDefaultCompilerOptions=()=>({target:1,jsx:1}),e.getSupportedCodeFixes=()=>e.codefix.getSupportedErrorCodes();var E=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;var n=t.getScriptFileNames();null===e.tracing||void 0===e.tracing||e.tracing.push("session","initializeHostCache",{count:n.length});for(var i=0,a=n;i<a.length;i++){var o=a[i];this.createEntry(o,e.toPath(o,this.currentDirectory,r))}null===e.tracing||void 0===e.tracing||e.tracing.pop()}return t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((r=>{e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,p=e.getScriptKind(t,this.host),_=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=T(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},_,!0,p);else if(this.currentFileVersion!==_){var f=u.getChangeRange(this.currentFileScriptSnapshot);d=C(this.currentSourceFile,u,_,f)}return d&&(this.currentFileVersion=_,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function D(e,t,r){e.version=r,e.scriptSnapshot=t}function T(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return D(s,r,i),s}function C(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return D(u,r,n),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}var d={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return T(t.fileName,r,d,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=C;var k={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},A=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),N=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=N;var w=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],F=f(f([],w,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function P(t){var r=(t=>{switch(t.kind){case 10:case 14:case 8:if(162===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||205!==t.parent.parent.kind&&286!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}})(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(n=>(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(e=>e.getProperty(a))):s}e.createLanguageService=(t,r,n)=>{var i,a,o;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),o=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var s,c,l=new S(t),u=0,d=t.getCancellationToken?new A(t.getCancellationToken()):k,p=t.getCurrentDirectory();function _(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(a=t.getLocalizedDiagnosticMessages)||void 0===a?void 0:a.bind(t));var g=e.hostUsesCaseSensitiveFileNames(t),h=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:()=>g,getCurrentDirectory:()=>p,getProgram:D,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:_});function v(e){var t=s.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),r}return t}function x(){var n,i,a;if(e.Debug.assert(o!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var l=t.getProjectVersion();if(l){if(c===l&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;c=l}}var f=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==f&&(_("TypeRoots version has changed; provide new program"),s=void 0,u=f);var m,v=new E(t,h),b=v.getRootFileNames(),x=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,D=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),C={useCaseSensitiveFileNames:g,fileExists:F,readFile:P,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:()=>p,onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(s,b,x,((e,r)=>t.getScriptVersion(r)),F,S,D,w,T)){var k={getSourceFile:M,getSourceFileByPath:R,getCancellationToken:()=>d,getCanonicalFileName:h,useCaseSensitiveFileNames:()=>g,getNewLine:()=>e.getNewLineCharacter(x,(()=>e.getNewLineOrDefaultFromHost(t))),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile:e.noop,getCurrentDirectory:()=>p,fileExists:F,readFile:P,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:r=>e.directoryProbablyExists(r,t),getDirectories:e=>t.getDirectories?t.getDirectories(e):[],readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:D,trace:C.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w};null===(a=t.setCompilerHost)||void 0===a||a.call(t,k);var A=r.getKeyForCompilationSettings(x),N={rootNames:b,options:x,host:k,oldProgram:s,projectReferences:T};return s=e.createProgram(N),v=void 0,m=void 0,y.clearCache(),void s.getTypeChecker()}function w(r){var n=e.toPath(r,p,h),i=null==m?void 0:m.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):(t=>{var r=M(t);return r?(r.path=e.toPath(t,p,h),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,C,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),p),void 0,e.getNormalizedAbsolutePath(t,p))):void 0})(r);return(m||(m=new e.Map)).set(n,a||!1),a}function F(r){var n=e.toPath(r,p,h),i=v&&v.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function P(r){var n=e.toPath(r,p,h),i=v&&v.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function M(t,r,n,i){return R(t,e.toPath(t,p,h),0,0,i)}function R(n,i,a,o,c){e.Debug.assert(void 0!==v,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var l=v&&v.getOrCreateEntryByPath(n,i);if(l){if(!c){var u=s&&s.getSourceFileByPath(i);if(u){if(l.scriptKind===u.scriptKind)return r.updateDocumentWithKey(n,i,t,A,l.scriptSnapshot,l.version,l.scriptKind);r.releaseDocumentWithKey(u.resolvedPath,r.getKeyForCompilationSettings(s.getCompilerOptions()),u.scriptKind)}}return r.acquireDocumentWithKey(n,i,t,A,l.scriptSnapshot,l.version,l.scriptKind)}}}function D(){if(o!==e.LanguageServiceMode.Syntactic)return x(),s;e.Debug.assert(void 0===s)}function T(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((t=>e.normalizePath(t)===i))),x();var a=e.mapDefined(n,(e=>s.getSourceFile(e))),o=v(t);return e.DocumentHighlights.getDocumentHighlights(s,d,o,r,a)}function C(t,r,n,i){x();var a=n&&2===n.use?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(s,d,a,t,r,n,i)}var N=new e.Map(e.getEntries(((i={})[18]=19,i[20]=21,i[22]=23,i[31]=29,i)));function O(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,p,h)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function M(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function R(t,r,n){for(var i=l.getCurrentSourceFile(t),a=[],o=M(i,r),s=o.lineStarts,c=o.firstLine,u=o.lastLine,d=n||!1,p=Number.MAX_VALUE,_=new e.Map,f=new RegExp(/\S/),m=e.isInsideJsxElement(i,s[c]),g=m?"{/*":"//",h=c;h<=u;h++){var y=i.text.substring(s[h],i.getLineEndOfPosition(s[h])),v=f.exec(y);v&&(p=Math.min(p,v.index),_.set(h.toString(),v.index),y.substr(v.index,g.length)!==g&&(d=void 0===n||n))}for(h=c;h<=u;h++)if(c===u||s[h]!==r.end){var b=_.get(h.toString());void 0!==b&&(m?a.push.apply(a,L(t,{pos:s[h]+p,end:i.getLineEndOfPosition(s[h])},d,m)):d?a.push({newText:g,span:{length:0,start:s[h]+p}}):i.text.substr(s[h]+b,g.length)===g&&a.push({newText:"",span:{length:g.length,start:s[h]+b}}))}return a}function L(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,d=n||!1,p=[],_=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,_),m=f?"{/*":"/*",g=f?"*/}":"*/",h=f?"\\{\\/\\*":"\\/\\*",y=f?"\\*\\/\\}":"\\*\\/";_<=r.end;){var v=c.substr(_,m.length)===m?m.length:0,b=e.isInComment(o,_+v);if(b)f&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),u=!0,_=b.end+1;else{var x=c.substring(_,r.end).search("(".concat(h,")|(").concat(y,")"));d=void 0!==n?n:d||!e.isTextWhiteSpaceLike(c,_,-1===x?r.end:_+x),_=-1===x?r.end+1:_+x+g.length}}if(d||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,r.pos,e.compareValues),e.insertSorted(p,r.end,e.compareValues);var E=p[0];c.substr(E,m.length)!==m&&s.push({newText:m,span:{length:0,start:E}});for(var S=1;S<p.length-1;S++)c.substr(p[S]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[S]}}),c.substr(p[S],m.length)!==m&&s.push({newText:m,span:{length:0,start:p[S]}});s.length%2!=0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var D=0,T=p;D<T.length;D++){var C=T[D],k=C-g.length>0?C-g.length:0;v=c.substr(k,g.length)===g?g.length:0,s.push({newText:"",span:{length:m.length,start:C-v}})}return s}function B(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&B(i)}function j(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&j(n)}function U(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:D(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:o,kind:s}}N.forEach(((e,t)=>N.set(e.toString(),Number(t))));var V={dispose(){if(s){var n=r.getKeyForCompilationSettings(s.getCompilerOptions());e.forEach(s.getSourceFiles(),(e=>r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind))),s=void 0}t=void 0},cleanupSemanticCache(){s=void 0},getSyntacticDiagnostics:e=>(x(),s.getSyntacticDiagnostics(v(e),d).slice()),getSemanticDiagnostics(t){x();var r=v(t),n=s.getSemanticDiagnostics(r,d);if(!e.getEmitDeclarations(s.getCompilerOptions()))return n.slice();var i=s.getDeclarationDiagnostics(r,d);return f(f([],n,!0),i,!0)},getSuggestionDiagnostics:t=>(x(),e.computeSuggestionDiagnostics(v(t),s,d)),getCompilerOptionsDiagnostics:()=>(x(),f(f([],s.getOptionsDiagnostics(d),!0),s.getGlobalDiagnostics(d),!0)),getSyntacticClassifications:(t,r)=>e.getSyntacticClassifications(d,l.getCurrentSourceFile(t),r),getSemanticClassifications:(t,r,n)=>(x(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(s,d,v(t),r):e.getSemanticClassifications(s.getTypeChecker(),d,v(t),s.getClassifiableNames(),r)),getEncodedSyntacticClassifications:(t,r)=>e.getEncodedSyntacticClassifications(d,l.getCurrentSourceFile(t),r),getEncodedSemanticClassifications:(t,r,n)=>(x(),"original"===(n||"original")?e.getEncodedSemanticClassifications(s.getTypeChecker(),d,v(t),s.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(s,d,v(t),r)),getCompletionsAtPosition(r,n,i,a){void 0===i&&(i=e.emptyOptions);var o=m(m({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return x(),e.Completions.getCompletionsAtPosition(t,s,_,v(r),n,o,i.triggerCharacter,i.triggerKind,d,a&&e.formatting.getFormatContext(a,t))},getCompletionEntryDetails:(r,n,i,a,o,c,l)=>(void 0===c&&(c=e.emptyOptions),x(),e.Completions.getCompletionEntryDetails(s,_,v(r),n,{name:i,source:o,data:l},t,a&&e.formatting.getFormatContext(a,t),c,d)),getCompletionEntrySymbol:(r,n,i,a,o)=>(void 0===o&&(o=e.emptyOptions),x(),e.Completions.getCompletionEntrySymbol(s,_,v(r),n,{name:i,source:a},t,o)),getSignatureHelpItems(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;x();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(s,a,r,i,d)},getQuickInfoAtPosition(t,r){x();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=s.getTypeChecker(),o=(t=>e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos||e.isImportMeta(t.parent)&&t.parent.name===t?t.parent:t)(i),c=((t,r)=>{var n=P(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)})(o,a);if(!c||a.isUnknownSymbol(c)){var l=((t,r,n)=>{switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 206:case 161:return!e.isInComment(t,n);case 108:case 192:case 106:case 197:return!0;case 231:return e.isImportMeta(r);default:return!1}})(n,o,r)?a.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(d,(t=>e.typeToDisplayParts(t,l,e.getContainerNode(o)))),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(d,(t=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(o),o))),p=u.symbolKind,_=u.displayParts,f=u.documentation,m=u.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,c),textSpan:e.createTextSpanFromNode(o,n),displayParts:_,documentation:f,tags:m}}},getDefinitionAtPosition:(t,r,n,i)=>(x(),e.GoToDefinition.getDefinitionAtPosition(s,v(t),r,n,i)),getDefinitionAndBoundSpan:(t,r)=>(x(),e.GoToDefinition.getDefinitionAndBoundSpan(s,v(t),r)),getImplementationAtPosition:(t,r)=>(x(),e.FindAllReferences.getImplementationsAtPosition(s,d,s.getSourceFiles(),v(t),r)),getTypeDefinitionAtPosition:(t,r)=>(x(),e.GoToDefinition.getTypeDefinitionAtPosition(s.getTypeChecker(),v(t),r)),getReferencesAtPosition:(t,r)=>(x(),C(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)),findReferences:(t,r)=>(x(),e.FindAllReferences.findReferencedSymbols(s,d,s.getSourceFiles(),v(t),r)),getFileReferences:t=>(x(),e.FindAllReferences.Core.getReferencesForFileName(t,s,s.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)),getOccurrencesAtPosition:(t,r)=>e.flatMap(T(t,r,[t]),(e=>e.highlightSpans.map((t=>m(m({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan}))))),getDocumentHighlights:T,getNameOrDottedNameSpan(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 206:case 161:case 10:case 95:case 110:case 104:case 106:case 108:case 192:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(261!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition(t,r){var n=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems(t,r,n,i){void 0===i&&(i=!1),x();var a=n?[v(n)]:s.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,s.getTypeChecker(),d,t,r,i)},getRenameInfo:(t,r,n)=>(x(),e.Rename.getRenameInfo(s,v(t),r,n)),getSmartSelectionRange:(t,r)=>e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t)),findRenameLocations(t,r,n,i,a){x();var o=v(t),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.Rename.nodeIsEligibleForRename(s)){if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((t=>{var r=e.createTextSpanFromNode(t.tagName,o);return m({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return C(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},((t,r,n)=>e.FindAllReferences.toRenameLocation(t,r,n,a||!1)))}},getNavigationBarItems:t=>e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),d),getNavigationTree:t=>e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),d),getOutliningSpans(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)},getTodoComments(t,r){x();var n=v(t);d.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=(()=>{var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(e=>"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")})(),l=void 0;l=c.exec(o);){d.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var u=l[1],p=l.index+u.length;if(e.isInComment(n,p)){for(var _=void 0,f=0;f<r.length;f++)l[f+3]&&(_=r[f]);if(void 0===_)return e.Debug.fail();if(!((i=o.charCodeAt(p+_.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=l[2];s.push({descriptor:_,message:m,position:p})}}}return s},getBraceMatchingAtPosition(t,r){var n=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?N.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(((e,t)=>e.start-t.start)):e.emptyArray},getIndentationAtPosition(t,r,n){var i=e.timestamp(),a=b(n),o=l.getCurrentSourceFile(t);_("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return _("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange(r,n,i,a){var o=l.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:(r,n)=>e.formatting.formatDocument(l.getCurrentSourceFile(r),e.formatting.getFormatContext(b(n),t)),getFormattingEditsAfterKeystroke(r,n,i,a){var o=l.getCurrentSourceFile(r),s=e.formatting.getFormatContext(b(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:(r,n,i)=>e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),l.getCurrentSourceFile(r),n,i),isValidBraceCompletionAtPosition(t,r,n){if(60===n)return!1;var i=l.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition(t,r){var n=l.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&B(a))return{newText:"</".concat(a.openingElement.tagName.getText(n),">")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&j(o)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment(t,r,n){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition(r,n,i,a,o,c){void 0===c&&(c=e.emptyOptions),x();var l=v(r),u=e.createTextSpanFromBounds(n,i),p=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(r=>(d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:l,span:u,program:s,host:t,cancellationToken:d,formatContext:p,preferences:c}))))},getCombinedCodeFix(r,n,i,a){void 0===a&&(a=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=v(r.fileName),c=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:s,host:t,cancellationToken:d,formatContext:c,preferences:a})},applyCodeActionCommand(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((e=>O(e)))):O(n)},organizeImports(r,n,i){void 0===i&&(i=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var a=v(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,s,i,r.skipDestructiveCodeActions)},getEditsForFileRename:(r,n,i,a)=>(void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(D(),r,n,t,e.formatting.getFormatContext(i,t),a,y)),getEmitOutput(r,n,i){x();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(s,a,!!n,d,o,i)},getNonBoundSourceFile:e=>l.getCurrentSourceFile(e),getProgram:D,getAutoImportProvider(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),x();var o=v(t);return e.refactor.getApplicableRefactors(U(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),x();var s=v(t);return e.refactor.getEditsForRefactor(U(s,n,o,r),i,a)},toLineColumnOffset:(e,t)=>0===t?{line:0,character:0}:y.toLineColumnOffset(e,t),getSourceMapper:()=>y,clearSourceMapperCache:()=>y.clearCache(),prepareCallHierarchy(t,r){x();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(s,e.getTouchingPropertyName(v(t),r));return n&&e.mapOneOrMany(n,(t=>e.CallHierarchy.createCallHierarchyItem(s,t)))},provideCallHierarchyIncomingCalls(t,r){x();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(s,i,d):[]},provideCallHierarchyOutgoingCalls(t,r){x();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(s,i):[]},toggleLineComment:R,toggleMultilineComment:L,commentSelection(e,t){var r=M(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):R(e,t,!0)},uncommentSelection(t,r){var n=l.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,R(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints(r,n,i){void 0===i&&(i=e.emptyOptions),x();var a=v(r);return e.InlayHints.provideInlayHints(((e,r,n)=>({file:e,program:D(),host:t,span:r,preferences:n,cancellationToken:d}))(a,n,i))}};switch(o){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:w.forEach((e=>V[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}));break;case e.LanguageServiceMode.Syntactic:F.forEach((e=>V[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}));break;default:e.Debug.assertNever(o)}return V},e.getNameTable=t=>(t.nameTable||(t=>{var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&(t=>e.isDeclarationName(t)||277===t.parent.kind||(e=>e&&e.parent&&207===e.parent.kind&&e.parent.argumentExpression===e)(t)||e.isLiteralComputedPropertyDeclarationName(t))(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else e.isPrivateIdentifier(n)&&(i=n.escapedText,r.set(i,void 0===r.get(i)?n.pos:-1));if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))})(t),t.nameTable),e.getContainingObjectLiteralElement=P,e.getPropertySymbolsFromContextualType=I,e.setObjectAllocator({getNodeConstructor:()=>r,getTokenConstructor:()=>o,getIdentifierConstructor:()=>s,getPrivateIdentifierConstructor:()=>c,getSourceFileConstructor:()=>h,getSymbolConstructor:()=>a,getTypeConstructor:()=>l,getSignatureConstructor:()=>u,getSourceMapSourceConstructor:()=>y})}(p),(e=>{(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=(t,r)=>{if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return d(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 237:return x(r.declarationList.declarations[0]);case 254:case 167:case 166:return x(r);case 164:return function t(r){if(e.isBindingPattern(r.name))return T(r.name);if((t=>!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12))(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return(e=>{if(e.body)return E(e)?o(e):d(e.body)})(r);case 235:if(e.isFunctionBlock(r))return y=(h=r).statements.length?h.statements[0]:h.getLastToken(),E(h.parent)?c(h.parent,y):d(y);case 262:return S(r);case 292:return S(r.block);case 238:return o(r.expression);case 247:return o(r.getChildAt(0),r.expression);case 241:return s(r,r.expression);case 240:return d(r.statement);case 253:return o(r.getChildAt(0));case 239:return s(r,r.expression);case 250:return d(r.statement);case 246:case 245:return o(r.getChildAt(0),r.label);case 242:return(g=r).initializer?D(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 243:return s(r,r.expression);case 244:return D(r);case 249:return s(r,r.expression);case 289:case 290:return d(r.statements[0]);case 252:return S(r.tryBlock);case 251:case 271:return o(r,r.expression);case 265:return o(r,r.moduleReference);case 266:case 272:return o(r,r.moduleSpecifier);case 261:if(1!==e.getModuleInstanceState(r))return;case 257:case 260:case 299:case 203:return o(r);case 248:return d(r.statement);case 165:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 201:case 202:return T(r);case 258:case 259:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(r);case 18:return(r=>{switch(r.parent.kind){case 260:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 257:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 263:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)})(r);case 19:return(t=>{switch(t.parent.kind){case 262:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 260:case 257:return o(t);case 235:if(e.isFunctionBlock(t.parent))return o(t);case 292:return d(e.lastOrUndefined(t.parent.statements));case 263:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 201:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}})(r);case 23:return(t=>{switch(t.parent.kind){case 202:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}})(r);case 20:return(e=>240===e.parent.kind||208===e.parent.kind||209===e.parent.kind?l(e):212===e.parent.kind?u(e):d(e.parent))(r);case 21:return(e=>{switch(e.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return l(e);default:return d(e.parent)}})(r);case 58:return(t=>e.isFunctionLike(t.parent)||296===t.parent.kind||164===t.parent.kind?l(t):d(t.parent))(r);case 31:case 29:return(e=>211===e.parent.kind?u(e):d(e.parent))(r);case 115:return(e=>240===e.parent.kind?s(e,e.parent.expression):d(e.parent))(r);case 91:case 83:case 96:return u(r);case 160:return(e=>244===e.parent.kind?u(e):d(e.parent))(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return C(r);if((79===r.kind||225===r.kind||296===r.kind||297===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(221===r.kind){var i=r,a=i.left,p=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return C(a);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===p.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 240:return l(r);case 165:return d(r.parent);case 242:case 244:return o(r);case 221:if(27===r.parent.operatorToken.kind)return o(r);break;case 214:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 296:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 211:if(r.parent.type===r)return u(r.parent.type);break;case 254:case 164:var _=r.parent,f=_.initializer,m=_.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return l(r);break;case 221:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return d(r.parent)}}var g,h,y,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(243===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?T(r.name):r.initializer||e.hasSyntacticModifier(r,1)||244===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function E(t){return e.hasSyntacticModifier(t,1)||257===t.parent.kind&&171!==t.kind}function S(r){switch(r.parent.kind){case 261:if(1!==e.getModuleInstanceState(r.parent))return;case 241:case 239:case 243:return c(r.parent,r.statements[0]);case 242:case 244:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function D(e){if(255!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function T(t){var r=e.forEach(t.elements,(e=>227!==e.kind?e:void 0));return r?d(r):203===t.parent.kind?o(t.parent):b(t.parent)}function C(t){e.Debug.assert(202!==t.kind&&201!==t.kind);var r=204===t.kind?t.elements:t.properties,n=e.forEach(r,(e=>227!==e.kind?e:void 0));return n?d(n):o(221===t.parent.kind?t.parent:t)}}}})(p),(e=>{e.transform=(t,r,n)=>{var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}})(p);var b=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,n)=>{var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(t=>{var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=e=>r.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,n)=>{var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(t=>e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var i=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>t.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>t.shimHost.realpath(e):this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,r,n){return o(e,t,!0,r,n)}function o(r,n,i,a,o){try{var s=((t,r,n,i)=>{var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o})(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(t,r){return t.map((t=>((t,r)=>({message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}))(t,r)))}e.realizeDiagnostics=c;var l=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return v(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,b&&b.CollectGarbage&&(b.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(()=>null))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(()=>(e.languageService.cleanupSemanticCache(),null)))},r.prototype.realizeDiagnostics=function(t){return c(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>u(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>u(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(()=>t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getQuickInfoAtPosition(e,t)))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNameOrDottedNameSpan(e,t,r)))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBreakpointStatementAtPosition(e,t)))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSignatureHelpItems(e,t,r)))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAtPosition(e,t)))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAndBoundSpan(e,t)))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getTypeDefinitionAtPosition(e,t)))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getImplementationAtPosition(e,t)))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getRenameInfo(e,t,r)))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getSmartSelectionRange(e,t)))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(()=>a.languageService.findRenameLocations(e,t,r,n,i)))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBraceMatchingAtPosition(e,t)))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.isValidBraceCompletionAtPosition(e,t,r)))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSpanOfEnclosingComment(e,t,r)))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(()=>{var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getReferencesAtPosition(e,t)))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(()=>r.languageService.findReferences(e,t)))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(()=>t.languageService.getFileReferences(e)))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getOccurrencesAtPosition(e,t)))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(()=>{var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(t=>e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(()=>i.languageService.getCompletionsAtPosition(e,t,r,n)))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>{var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(()=>{var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getDocCommentTemplateAtPosition(e,t,r)))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNavigateToItems(e,t,r)))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(()=>t.languageService.getNavigationBarItems(e)))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(()=>t.languageService.getNavigationTree(e)))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(()=>t.languageService.getOutliningSpans(e)))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(()=>r.languageService.getTodoComments(e,JSON.parse(t))))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(()=>r.languageService.prepareCallHierarchy(e,t)))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyIncomingCalls(e,t)))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyOutgoingCalls(e,t)))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(()=>n.languageService.provideInlayHints(e,t,r)))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(()=>{var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=y(r,["diagnostics"]);return m(m({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return o(this.logger,"getEmitOutput('".concat(e,"')"),!1,(()=>t.languageService.getEmitOutput(e)),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleLineComment(e,t)))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleMultilineComment(e,t)))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.commentSelection(e,t)))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.uncommentSelection(e,t)))},r}(s);function u(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return v(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(()=>u(n.classifier.getEncodedLexicalClassifications(e,t,r))),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+n.finalLexState},r}(s),p=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return v(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('".concat(t,"')"),(()=>{var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(t,")"),(()=>{var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(t,"')"),(()=>{var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(t,"')"),(()=>{var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=t=>{if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(t,"')"),(()=>{var i=e.parseJsonText(t,e.getSnapshotText(r)),a=e.normalizeSlashes(t),o=e.parseJsonSourceFileConfigFileContent(i,n.host,e.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:c(f(f([],i.parseDiagnostics,!0),o.errors,!0),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>e.getDefaultCompilerOptions()))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(()=>{var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(e=>r.logger.log(e)),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},r}(s),_=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=()=>e.servicesVersion,r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new l(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new d(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new i(e);return new p(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=_}(p),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(void 0===r||r.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=p.TypeScriptServicesFactory,globalThis.toolsVersion=p.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=p),(e=>{var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate(((t,r,n)=>e.factory.createConstructorTypeNode(void 0,t,r,n)),t),e.updateConstructorTypeNode=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((t=>e.factory.createToken(t)),t),e.createIdentifier=e.Debug.deprecate((t=>e.factory.createIdentifier(t,void 0,void 0)),t),e.createTempVariable=e.Debug.deprecate((t=>e.factory.createTempVariable(t,void 0)),t),e.getGeneratedNameForNode=e.Debug.deprecate((t=>e.factory.getGeneratedNameForNode(t,void 0)),t),e.createOptimisticUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,16)),t),e.createFileLevelUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,48)),t),e.createIndexSignature=e.Debug.deprecate(((t,r,n,i)=>e.factory.createIndexSignature(t,r,n,i)),t),e.createTypePredicateNode=e.Debug.deprecate(((t,r)=>e.factory.createTypePredicateNode(void 0,t,r)),t),e.updateTypePredicateNode=e.Debug.deprecate(((t,r,n)=>e.factory.updateTypePredicateNode(t,void 0,r,n)),t),e.createLiteral=e.Debug.deprecate((t=>"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createMethodSignature(void 0,i,a,t,r,n)),t),e.updateMethodSignature=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)),t),e.createTypeOperatorNode=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:(r=t,n=140),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate(((t,r,n)=>{var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate(((t,r,n,i)=>{var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate(((t,r,n,i)=>(void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n))),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createClassExpression(void 0,t,r,n,i,a)),t),e.updateClassExpression=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateClassExpression(t,void 0,r,n,i,a,o)),t),e.createPropertySignature=e.Debug.deprecate(((t,r,n,i,a)=>{var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate(((t,r,n,i,a,o)=>{var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate(((t,r)=>e.factory.createExpressionWithTypeArguments(r,t)),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate(((t,r,n)=>e.factory.updateExpressionWithTypeArguments(t,n,r)),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate(((t,r,n)=>(void 0===n&&(n=!1),e.factory.createImportClause(n,t,r))),t),e.updateImportClause=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateImportClause(t,i,r,n)),t),e.createExportDeclaration=e.Debug.deprecate(((t,r,n,i,a)=>(void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i))),t),e.updateExportDeclaration=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)),t),e.createJSDocParamTag=e.Debug.deprecate(((t,r,n,i)=>e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)),t),e.createComma=e.Debug.deprecate(((t,r)=>e.factory.createComma(t,r)),t),e.createLessThan=e.Debug.deprecate(((t,r)=>e.factory.createLessThan(t,r)),t),e.createAssignment=e.Debug.deprecate(((t,r)=>e.factory.createAssignment(t,r)),t),e.createStrictEquality=e.Debug.deprecate(((t,r)=>e.factory.createStrictEquality(t,r)),t),e.createStrictInequality=e.Debug.deprecate(((t,r)=>e.factory.createStrictInequality(t,r)),t),e.createAdd=e.Debug.deprecate(((t,r)=>e.factory.createAdd(t,r)),t),e.createSubtract=e.Debug.deprecate(((t,r)=>e.factory.createSubtract(t,r)),t),e.createLogicalAnd=e.Debug.deprecate(((t,r)=>e.factory.createLogicalAnd(t,r)),t),e.createLogicalOr=e.Debug.deprecate(((t,r)=>e.factory.createLogicalOr(t,r)),t),e.createPostfixIncrement=e.Debug.deprecate((t=>e.factory.createPostfixIncrement(t)),t),e.createLogicalNot=e.Debug.deprecate((t=>e.factory.createLogicalNot(t)),t),e.createNode=e.Debug.deprecate(((t,r,n)=>(void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(305===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n))),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((t=>{var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((e=>211===e.kind),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((t=>e.isMemberName(t)),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(p);const x="$",E="collection-manifest.json",S=(e,t)=>{let r=0;"shadow"===e.encapsulation?(r|=1,e.shadowDelegatesFocus&&(r|=16)):"scoped"===e.encapsulation&&(r|=2),"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot")&&(r|=4),e.hasMode&&(r|=32);const n=T(e,t),i=P(e);return O([r,e.tagName,Object.keys(n).length>0?n:void 0,i.length>0?i:void 0])},D=e=>{const t=JSON.stringify(e);return t.length>1e4?`JSON.parse(${JSON.stringify(t)})`:t},T=(e,t=!0)=>({...C(e.properties),...w(e.states),...t?F(e.methods):{}}),C=e=>{const t={};return e.forEach((e=>{t[e.name]=O([k(e),A(e)])})),t},k=e=>{let t=N(e.type);return e.mutable&&(t|=1024),e.reflect&&(t|=512),t},A=e=>{if("string"==typeof e.attribute){if(e.name===e.attribute)return;return e.attribute}},N=e=>"string"===e?1:"number"===e?2:"boolean"===e?4:"any"===e?8:16,w=e=>{const t={};return e.forEach((e=>{t[e.name]=[32]})),t},F=e=>{const t={};return e.forEach((e=>{t[e.name]=[64]})),t},P=e=>e.listeners.map((e=>[I(e),e.name,e.method])),I=e=>{let t=0;switch(e.capture&&(t|=2),e.passive&&(t|=1),e.target){case"document":t|=4;break;case"window":t|=8;break;case"body":t|=16;break;case"parent":t|=32}return t},O=e=>{const t=e;for(let e=t.length-1;e>=0&&!t[e];e--)t.pop();return t},M=e=>e.replace(/([A-Z0-9])/g,(e=>` ${e[0]}`)).trim().split(" ").join("-").toLowerCase(),R=e=>e.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),L=e=>e.charAt(0).toUpperCase()+e.slice(1),B=()=>{},j=(e,t)=>e.slice().sort(((e,r)=>{const n=t(e),i=t(r);return n<i?-1:n>i?1:0})),U=e=>e.flat?e.flat(1):e.reduce(((e,t)=>(e.push(...t),e)),[]),V=(e,t=(e=>e))=>{const r=new Set;return e.filter((e=>{const n=t(e);return null==n||!r.has(n)&&(r.add(n),!0)}))},K=(e,t)=>t.reduce(((t,r)=>(e[r]&&(t[r]=e[r]),t)),{}),z=e=>"boolean"==typeof e,W=e=>"function"==typeof e,J=e=>"number"==typeof e,H=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),$=e=>"string"==typeof e,G=e=>(e=>null!=e)(e)&&W(e[Symbol.iterator]),q=e=>!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,X=e=>{const t={"{":"}","(":")","[":"]"},r=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(""===e)return!1;let n;for(;n=r.exec(e);){if(n[2])return!0;let r=n.index+n[0].length;const i=n[1],a=i?t[i]:null;if(i&&a){const t=e.indexOf(a,r);-1!==t&&(r=t+1)}e=e.slice(r)}return!1},Y=e=>"/"===e||Q.test(e),Q=/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/,Z=e=>{const t={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return e&&e.push(t),t},ee=e=>{const t={level:"warn",type:"build",header:"Build Warn",messageText:"build warn",relFilePath:null,absFilePath:null,lines:[]};return e.push(t),t},te=(e,t,r,n,i)=>{const a=Z(t);if(a.messageText=n,a.absFilePath=r,"string"==typeof i)try{const t=e.fs.readFileSync(r).replace(/\r/g,"\n").split("\n");for(let e=0;e<t.length;e++){const r=t[e],n=r.indexOf(i);if(n>-1){const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:n,errorLength:i.length};if(a.lineNumber=o.lineNumber,a.columnNumber=n+1,a.lines.push(o),e>=0){const r={lineIndex:o.lineIndex-1,lineNumber:o.lineNumber-1,text:t[e-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(e<t.length){const r={lineIndex:o.lineIndex+1,lineNumber:o.lineNumber+1,text:t[e+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}break}}}catch(e){}return a},re=(e,t,r)=>{const n={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return $(r)?n.messageText=r.length?r:"UNKNOWN ERROR":null!=t&&(null!=t.stack?n.messageText=t.stack.toString():null!=t.message?n.messageText=t.message.length?t.message:"UNKNOWN ERROR":n.messageText=t.toString()),null==e||ie(n.messageText)||e.push(n),n},ne=e=>null!=e&&0!==e.length&&e.some((e=>"error"===e.level&&"runtime"!==e.type)),ie=e=>e===ae,ae="task canceled",oe=(e,t)=>{const r=[],n=[],i=new Set;for(let a=0;a<t.length;a++){const o=se(e,t[a]),s=o.absFilePath+o.code+o.messageText+o.type;if(i.has(s))continue;i.add(s);const c=r.length+n.length;"error"===o.level?r.push(o):c<25&&n.push(o)}return[...r,...n]},se=(e,t)=>{if(t.messageText&&("string"==typeof t.messageText.message?t.messageText=t.messageText.message:"string"==typeof t.messageText&&0===t.messageText.indexOf("Error: ")&&(t.messageText=t.messageText.slice(7))),t.messageText&&t.messageText.includes("Cannot find name 'h'")){t.header='Missing "h" import for JSX types',t.messageText='In order to load accurate JSX types for components, the "h" function must be imported from "@stencil/core" by each component using JSX. For example: import { Component, h } from \'@stencil/core\';';try{const r=e.fs.readFileSync(t.absFilePath),n=ce(r);for(let e=0;e<n.length;e++){const r=n[e];if(r.includes("@stencil/core")){const i=[],a=e-1;if(a>-1){const e={lineIndex:a,lineNumber:a+1,text:n[a],errorCharStart:-1,errorLength:-1};i.push(e)}const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:0,errorLength:-1};i.push(o),t.lineNumber=o.lineNumber,t.columnNumber=r.indexOf("}");const s=e+1;if(s<n.length){const e={lineIndex:s,lineNumber:s+1,text:n[s],errorCharStart:-1,errorLength:-1};i.push(e)}t.lines=i;break}}}catch(e){}}return t},ce=e=>"string"!=typeof e?[]:(e=e.replace(/\\r/g,"\n")).split("\n"),le=e=>void 0===e?"undefined":null===e?"null":("string"!=typeof e&&(e=e.toString()),e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),ue=(e,t,r,n)=>{const i=fe(n.code),a={level:"error",type:"bundling",language:"javascript",code:n.code,header:"Rollup"+(i.length>0?": "+i:""),messageText:i,relFilePath:null,absFilePath:null,lines:[]};"debug"===e.logLevel&&n.stack?a.messageText=n.stack:n.message&&(a.messageText=n.message),n.plugin&&(a.messageText+=` (plugin: ${n.plugin}${n.hook?`, ${n.hook}`:""})`);const o=n.loc;if(null!=o){const e=o.file||n.id;if($(e))try{const r=t.fs.readFileSync(e);if(r){a.absFilePath=e;try{const e=ce(r),t={lineIndex:o.line-1,lineNumber:o.line,text:e[o.line-1],errorCharStart:o.column,errorLength:0};a.lineNumber=t.lineNumber,a.columnNumber=t.errorCharStart;const n=t.text.slice(o.column);for(let e=0;e<n.length&&!_e.has(n.charAt(e));e++)t.errorLength++;if(a.lines.push(t),0===t.errorLength&&t.errorCharStart>0&&(t.errorLength=1,t.errorCharStart--),t.lineIndex>0){const r={lineIndex:t.lineIndex-1,lineNumber:t.lineNumber-1,text:e[t.lineIndex-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(t.lineIndex+1<e.length){const r={lineIndex:t.lineIndex+1,lineNumber:t.lineNumber+1,text:e[t.lineIndex+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}}catch(e){a.messageText+=`\nError parsing: ${a.absFilePath}, line: ${o.line}, column: ${o.column}`,a.debugText=r}}else"string"==typeof n.frame&&(a.messageText+="\n"+n.frame)}catch(e){}}r.diagnostics.push(a)},de=(e,t)=>{const r=new Set;return n=>{if(null==n||pe.has(n.code)||r.has(n.message))return;r.add(n.message);let i="";t&&(i=t.reduce(((e,t)=>(e.push(...t.cmps),e)),[]).join(", ").trim(),i.length&&(i+=": "));const a=ee(e);a.header=`Bundling Warning ${n.code}`,a.messageText=i+(n.message||n)}},pe=new Set(["THIS_IS_UNDEFINED","NON_EXISTENT_EXPORT","CIRCULAR_DEPENDENCY","EMPTY_BUNDLE","UNUSED_EXTERNAL_IMPORT"]),_e=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),fe=e=>"string"==typeof e?e.split("_").map((e=>L(e.toLowerCase()))).join(" "):(e||"").trim(),me=e=>{if("string"!=typeof e)throw new Error("invalid path to normalize");e=ge(e.trim());const t=Se(e,ve(e)),r=ye(t),n=r[0],i=r[1],a=n+r.slice(1).join("/");return""===a?".":""===n&&i&&e.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")?"./"+a:a},ge=e=>e.replace(he,"/"),he=/\\/g,ye=e=>{if(!Array.isArray(e)||0===e.length)return[];const t=[e[0]];for(let r=1;r<e.length;r++){const n=e[r];if(n&&"."!==n){if(".."===n)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t},ve=e=>{const t=be(e);return t<0?~t:t},be=e=>{if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const r=e.indexOf(47===t?"/":"\\",2);return r<0?e.length:r+1}if(xe(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const r=e.indexOf("://");if(-1!==r){const t=r+"://".length,n=e.indexOf("/",t);if(-1!==n){const i=e.slice(0,r),a=e.slice(t,n);if("file"===i&&(""===a||"localhost"===a)&&xe(e.charCodeAt(n+1))){const t=Ee(e,n+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(n+1)}return~e.length}return 0},xe=e=>e>=97&&e<=122||e>=65&&e<=90,Ee=(e,t)=>{const r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){const r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1},Se=(e,t)=>{const r=e.substring(0,t),n=e.substring(t).split("/"),i=n.length;return i>0&&!n[i-1]&&n.pop(),[r,...n]},De=e=>me(e.split("?")[0].replace(/\0/g,"")),Te=(e,t)=>{if(!t)return e;const r=t.getSourceFile();if(!r)return e;e.absFilePath=me(r.fileName);const n=r.text,i=ce(n),a=t.getStart(),o=t.getEnd(),s=r.getLineAndCharacterOfPosition(a),c={lineIndex:s.line,lineNumber:s.line+1,text:i[s.line],errorCharStart:s.character,errorLength:Math.max(o-a,1)};if(e.lineNumber=c.lineNumber,e.columnNumber=c.errorCharStart+1,e.lines.push(c),0===c.errorLength&&c.errorCharStart>0&&(c.errorLength=1,c.errorCharStart--),c.lineIndex>0){const t={lineIndex:c.lineIndex-1,lineNumber:c.lineNumber-1,text:i[c.lineIndex-1],errorCharStart:-1,errorLength:-1};e.lines.unshift(t)}if(c.lineIndex+1<i.length){const t={lineIndex:c.lineIndex+1,lineNumber:c.lineNumber+1,text:i[c.lineIndex+1],errorCharStart:-1,errorLength:-1};e.lines.push(t)}return e},Ce=e=>{const t=[],r=Math.min(e.length,50);for(let n=0;n<r;n++)t.push(ke(e[n]));return t},ke=e=>{const t={level:"warn",type:"typescript",language:"typescript",header:"TypeScript",code:e.code.toString(),messageText:Ae(e,e.messageText),relFilePath:null,absFilePath:null,lines:[]};if(1===e.category&&(t.level="error"),e.file){t.absFilePath=e.file.fileName;const r=e.file.text,n=ce(r),i=e.file.getLineAndCharacterOfPosition(e.start),a={lineIndex:i.line,lineNumber:i.line+1,text:n[i.line],errorCharStart:i.character,errorLength:Math.max(e.length,1)};if(t.lineNumber=a.lineNumber,t.columnNumber=a.errorCharStart+1,t.lines.push(a),0===a.errorLength&&a.errorCharStart>0&&(a.errorLength=1,a.errorCharStart--),a.lineIndex>0){const e={lineIndex:a.lineIndex-1,lineNumber:a.lineNumber-1,text:n[a.lineIndex-1],errorCharStart:-1,errorLength:-1};t.lines.unshift(e)}if(a.lineIndex+1<n.length){const e={lineIndex:a.lineIndex+1,lineNumber:a.lineNumber+1,text:n[a.lineIndex+1],errorCharStart:-1,errorLength:-1};t.lines.push(e)}}return t},Ae=(e,t)=>{var r,n;if("string"==typeof t)return t;if(void 0===t)return"";const i=[],a=(null!==(n=null===(r=e.file)||void 0===r?void 0:r.fileName)&&void 0!==n?n:"").includes("stencil.config");a&&i.push(2322);let o="";if(!i.includes(t.code)&&(o=t.messageText,G(t.next)))for(const r of t.next)o+=Ae(e,r);return a&&(o=o.replace("type 'StencilConfig'","Stencil Config"),o=o.replace("Object literal may only specify known properties, but ",""),o=o.replace("Object literal may only specify known properties, and ","")),o.trim()},Ne=e=>e?{file:e.file,mappings:e.mappings,names:e.names,sources:e.sources,sourcesContent:e.sourcesContent,version:e.version}:null,we=e=>`\n${(e=>{return`//# sourceMappingURL=${t=e,encodeURIComponent(t).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16)))}`;var t})(e)}.map`,Fe=e=>!!$(e)&&((e=e.toLowerCase()).startsWith("https://")||e.startsWith("http://")),Pe=e=>($(e)&&(e=(e=(e=(e=e.split("?")[0]).split("#")[0]).split("&")[0]).split("=")[0],e=(e=M(e)).replace(/[|;$%@"<>()+,.{}_\!\/\\]/g,"-"),(e=(e=R(e)).length>1?e[0].toLowerCase()+e.slice(1):e.toLowerCase()).length>0&&!isNaN(e[0])&&(e="_"+e)),e),Ie=e=>{const{preamble:t}=e;if(!t)return"";const r=t.split("\n").map((e=>` * ${e}`));return r.unshift("/*!"),r.push(" */"),r.join("\n")},Oe=/\r?\n|\r/g;function Me(e){return null==e?"":`${e.text.replace(Oe," ")}\n${e.tags.filter((e=>"internal"!==e.name)).map((e=>`@${e.name} ${(e.text||"").replace(Oe," ")}`)).join("\n")}`.trim()}const Re=(e,t)=>{const r={diagnostic:null,data:null,filePath:t};try{r.data=JSON.parse(e)}catch(e){r.diagnostic=Z(),r.diagnostic.absFilePath=$(t)?t:void 0,r.diagnostic.header="Error Parsing JSON",e instanceof Error&&(r.diagnostic.messageText=e.message)}return r},Le=["@stencil/core"],Be=e=>{if("string"!=typeof e)return`Tag "${e}" must be a string type`;if(e!==e.trim())return"Tag can not contain white spaces";if(e!==e.toLowerCase())return"Tag can not contain upper case characters";if(0===e.length)return"Received empty tag value";if(e.indexOf(" ")>-1)return`"${e}" tag cannot contain a space`;if(e.indexOf(",")>-1)return`"${e}" tag cannot be used for multiple tags`;const t=e.replace(/\w|-/g,"");return""!==t?`"${e}" tag contains invalid characters: ${t}`:-1===e.indexOf("-")?`"${e}" tag must contain a dash (-) to work as a valid web component`:e.indexOf("--")>-1?`"${e}" tag cannot contain multiple dashes (--) next to each other`:0===e.indexOf("-")?`"${e}" tag cannot start with a dash (-)`:e.lastIndexOf("-")===e.length-1?`"${e}" tag cannot end with a dash (-)`:void 0};function je(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ue(e,t){for(var r,n="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var Ve={resolve(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=r.cwd()),a=e),je(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=Ue(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(je(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=Ue(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(je(e),e.length>0&&47===e.charCodeAt(0)),join(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];je(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":Ve.normalize(e)},relative(e,t){if(je(e),je(t),e===t)return"";if((e=Ve.resolve(e))===(t=Ve.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var o=t.length-a,s=i<o?i:o,c=-1,l=0;l<=s;++l){if(l===s){if(o>s){if(47===t.charCodeAt(a+l))return t.slice(a+l+1);if(0===l)return t.slice(a+l)}else i>s&&(47===e.charCodeAt(r+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(r+l);if(u!==t.charCodeAt(a+l))break;47===u&&(c=l)}var d="";for(l=r+c+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:e=>e,dirname(e){if(je(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');je(e);var r,n=0,i=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,s=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else-1===s&&(a=!1,s=r+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(i=r):(o=-1,i=s))}return n===i?i=s:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname(e){je(e);for(var t=-1,r=0,n=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return((e,t)=>{var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n})(0,e)},parse(e){je(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var a=-1,o=0,s=-1,c=!0,l=e.length-1,u=0;l>=r;--l)if(47!==(n=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===n?-1===a?a=l:1!==u&&(u=1):-1!==a&&(u=-1);else if(!c){o=l+1;break}return-1===a||-1===s||0===u||1===u&&a===s-1&&a===o+1?-1!==s&&(t.base=t.name=0===o&&i?e.slice(1,s):e.slice(o,s)):(0===o&&i?(t.name=e.slice(1,a),t.base=e.slice(1,s)):(t.name=e.slice(o,a),t.base=e.slice(o,s)),t.ext=e.slice(a,s)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ve.posix=Ve;var Ke=Ve;let ze,We,Je,He,$e,Ge,qe,Xe,Ye,Qe,Ze,et,tt;const rt={},nt=e=>{e||(e=Ke),Object.assign(rt,e);const t=rt.normalize,r=rt.join,n=rt.relative,i=rt.resolve;Ge=rt.normalize=(...e)=>me(t.apply(rt,e)),$e=rt.join=(...e)=>me(r.apply(rt,e)),Xe=rt.relative=(...e)=>me(n.apply(rt,e)),Ye=rt.resolve=(...e)=>me(i.apply(rt,e)),ze=rt.basename,We=rt.dirname,Je=rt.extname,He=rt.isAbsolute,qe=rt.parse,Qe=rt.sep,Ze=rt.delimiter,et=rt.posix,rt.win32?tt=rt.win32:(tt={...et},tt.sep="\\")};nt(i?u("path"):Ke);const it={__proto__:null,get basename(){return ze},get dirname(){return We},get extname(){return Je},get isAbsolute(){return He},get join(){return $e},get normalize(){return Ge},get parse(){return qe},get relative(){return Xe},get resolve(){return Ye},get sep(){return Qe},get delimiter(){return Ze},get posix(){return et},get win32(){return tt},path:rt,setPlatformPath:nt,default:rt};function at(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}function ot(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var st=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).process;const ct=Object.assign(Object.create(null),st,{default:st}),lt="4.7.4",ut="2.18.1",dt={stencil:ut,parse5:"6.0.1",rollup:"2.42.3",sizzle:"2.42.3",terser:"5.6.1",typescript:lt},pt=()=>{const e=[],t=t=>{const r=e.findIndex((e=>e.callback===t));return r>-1&&(e.splice(r,1),!0)};return{emit(t,r){const n=t.toLowerCase().trim(),i=e.slice();for(const e of i)if(null==e.eventName)try{e.callback(t,r)}catch(e){console.error(e)}else if(e.eventName===n)try{e.callback(r)}catch(e){console.error(e)}},on(r,n){if("function"==typeof r){const n=null,i=r;return e.push({eventName:n,callback:i}),()=>t(i)}if("string"==typeof r&&"function"==typeof n){const i=r.toLowerCase().trim(),a=n;return e.push({eventName:i,callback:a}),()=>t(a)}return()=>!1},unsubscribeAll(){e.length=0}}},_t=()=>{let e=o,t="info";return{enableColors:t=>e=t,getLevel:()=>t,setLevel:e=>t=e,emoji:e=>e,info:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,magenta:e=>e,cyan:e=>e,gray:e=>e,bold:e=>e,dim:e=>e,bgRed:e=>e,createTimeSpan:(e,t=!1)=>({duration:()=>0,finish:()=>0}),printDiagnostics(t){t.forEach((t=>ft(t,e)))}}},ft=(e,t)=>{let r=ht,n="Build",i="";"error"===e.level?(r=gt,n="Error"):"warn"===e.level&&(r=mt,n="Warning"),e.header&&(n=e.header);const a=e.relFilePath||e.absFilePath;if(a&&(i+=a,"number"==typeof e.lineNumber&&e.lineNumber>0&&(i+=", line "+e.lineNumber,"number"==typeof e.columnNumber&&e.columnNumber>0&&(i+=", column "+e.columnNumber)),i+="\n"),i+=e.messageText,e.lines&&e.lines.length>0&&(e.lines.forEach((e=>{i+="\n"+e.lineNumber+": "+e.text})),i+="\n"),t){const e=["%c"+n,`background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;`];console.log(...e,i)}else"error"===e.level?console.error(i):"warn"===e.level?console.warn(i):console.log(i)},mt="#f39c12",gt="#c0392b",ht="#3498db",yt=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},vt=(...e)=>e.forEach((e=>console.log(e))),bt=e=>"function"==typeof e[bt.custom]?function(...t){return e[bt.custom].apply(this,t)}:function(...t){return new Promise(((r,n)=>{t.push(((e,t)=>{null!=e?n(e):r(t)})),e.apply(this,t)}))};bt.custom=Symbol("promisify.custom");const xt={inherits:yt,inspect:vt,promisify:bt},Et={__proto__:null,inherits:yt,inspect:vt,promisify:bt,default:xt};class St extends Error{constructor(e,t,r="ENOENT",n=-2){super(`ENOENT: no such file or directory, ${e} '${t}'`),this.syscall=e,this.path=t,this.code=r,this.errno=n}}const Dt={__sys:{}},Tt=Dt.exists=(e,t)=>{Dt.__sys.access(e).then(t).catch((()=>t(!1)))};Tt[bt.custom]=e=>Dt.__sys.access(e);const Ct=Dt.existsSync=e=>Dt.__sys.accessSync(e),kt=Dt.mkdir=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,t="function"==typeof t?void 0:t,Dt.__sys.createDir(e,t).then((t=>{r&&(t.error?r(new St("mkdir",e)):r(null))})).catch((e=>{r&&r(e)}))},At=Dt.mkdirSync=(e,t)=>{if(Dt.__sys.createDirSync(e,t).error)throw new St("mkdir",e)},Nt=Dt.readdirSync=e=>Dt.__sys.readDirSync(e).map((e=>ze(e))),wt=Dt.readFile=async(e,t,r)=>{const n="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8";r="function"==typeof r?r:"function"==typeof t?t:null,Dt.__sys.readFile(e,n).then((t=>{r&&r("string"==typeof t?null:new St("open",e),t)})).catch((e=>{r&&r(e)}))},Ft=Dt.readFileSync=(e,t)=>{const r="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8",n=Dt.__sys.readFileSync(e,r);if("string"!=typeof n)throw new St("open",e);return n},Pt=Dt.realpath=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,Dt.__sys.realpath(e).then((e=>{r&&r(e.error,e.path)})).catch((e=>{r&&r(e)}))},It=Dt.realpathSync=e=>{const t=Dt.__sys.realpathSync(e);if(t.error)throw t.error;return me(t.path)},Ot=Dt.statSync=e=>{const t=Dt.__sys.statSync(e);if(t.error)throw new St("statSync",e);return{isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}},Mt=Dt.lstatSync=Ot,Rt=Dt.stat=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,Dt.__sys.stat(e).then((t=>{r&&(t.error?r(new St("stat",e)):r({isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}))})).catch((e=>{r&&r(e)}))},Lt=Dt.watch=()=>{throw new Error("fs.watch() not implemented")},Bt=Dt.writeFile=(e,t,r,n)=>{n="function"==typeof n?n:"function"==typeof r?r:null,Dt.__sys.writeFile(e,t).then((t=>{n&&(t.error?n(new St("writeFile",e)):n(null))})).catch((e=>{n&&n(e)}))},jt={__proto__:null,exists:Tt,existsSync:Ct,mkdir:kt,mkdirSync:At,readdirSync:Nt,readFile:wt,readFileSync:Ft,realpath:Pt,realpathSync:It,statSync:Ot,lstatSync:Mt,stat:Rt,watch:Lt,writeFile:Bt,default:Dt};var Ut=()=>{var e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()},Vt=at((e=>{var t="win32"===r.platform,n=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,i={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,n.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}},a=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,o={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,a.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}};e.exports=t?i.parse:o.parse,e.exports.posix=o.parse,e.exports.win32=i.parse}));const Kt=ot(it);var zt=Kt.parse||Vt,Wt=(e,t)=>{var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var n=[e],i=zt(e);i.dir!==n[n.length-1];)n.push(i.dir),i=zt(i.dir);return n.reduce(((e,n)=>e.concat(t.map((e=>Kt.resolve(r,n,e))))),[])},Jt=(e,t,r)=>{var n=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&"function"==typeof t.paths)return t.paths(r,e,(()=>Wt(e,n)),t);var i=Wt(e,n);return t&&t.paths?i.concat(t.paths):i},Ht=(e,t)=>t||{},$t="Function.prototype.bind called on incompatible ",Gt=Array.prototype.slice,qt=Object.prototype.toString,Xt="[object Function]",Yt=(Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||qt.call(t)!==Xt)throw new TypeError($t+t);for(var r,n=Gt.call(arguments,1),i=function(){if(this instanceof r){var i=t.apply(this,n.concat(Gt.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(Gt.call(arguments)))},a=Math.max(0,t.length-n.length),o=[],s=0;s<a;s++)o.push("$"+s);if(r=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var c=()=>{};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r}).call(Function.call,Object.prototype.hasOwnProperty);const Qt={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};function Zt(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",a=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var s=parseInt(r[o]||0,10),c=parseInt(a[o]||0,10);if(s!==c)return"<"===i?s<c:">="===i&&s>=c}return">="===i}function er(e,t){var r=t.split(/ ?&& ?/);if(0===r.length)return!1;for(var n=0;n<r.length;++n)if(!Zt(e,r[n]))return!1;return!0}var tr=(e,t)=>Yt(Qt,e)&&((e,t)=>{if("boolean"==typeof t)return t;var n=void 0===e?r.versions&&r.versions.node&&r.versions.node:e;if("string"!=typeof n)throw new TypeError(void 0===e?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&"object"==typeof t){for(var i=0;i<t.length;++i)if(er(n,t[i]))return!0;return!1}return er(n,t)})(t,Qt[e]);const rr=ot(jt);var nr=rr.realpath&&"function"==typeof rr.realpath.native?rr.realpath.native:rr.realpath,ir=(e,t)=>{rr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isFile()||r.isFIFO())))},ar=(e,t)=>{rr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isDirectory())))},or=(e,t)=>{nr(e,((r,n)=>{r&&"ENOENT"!==r.code?t(r):t(null,r?e:n)}))},sr=(e,t,r,n)=>{r&&!1===r.preserveSymlinks?e(t,n):n(null,t)},cr=(e,t,r)=>{e(t,((e,t)=>{if(e)r(e);else try{var n=JSON.parse(t);r(null,n)}catch(e){r(null)}}))},lr=(e,t,n)=>{var i=n,a=t;if("function"==typeof t&&(i=a,a={}),"string"!=typeof e){var o=new TypeError("Path must be a string.");return r.nextTick((()=>{i(o)}))}var s=(a=Ht(0,a)).isFile||ir,c=a.isDirectory||ar,l=a.readFile||rr.readFile,u=a.realpath||or,d=a.readPackage||cr;if(a.readFile&&a.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return r.nextTick((()=>{i(p)}))}var _=a.packageIterator,f=a.extensions||[".js"],m=!1!==a.includeCoreModules,g=a.basedir||Kt.dirname(Ut()),h=a.filename||g;a.paths=a.paths||[];var y,v=Kt.resolve(g);function b(t,r,n){t?i(t):r?i(null,r,n):S(y,((t,r,n)=>{if(t)i(t);else if(r)sr(u,r,a,((e,t)=>{e?i(e):i(null,t,n)}));else{var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}function x(e,t,r){var n=t,i=r;"function"==typeof n&&(i=n,n=void 0),function e(t,r,n){if(0===t.length)return i(null,void 0,n);var o=r+t[0],c=n;function l(n,l,d){if(c=l,n)return i(n);if(d&&c&&a.pathFilter){var p=Kt.relative(d,o),_=p.slice(0,p.length-t[0].length),m=a.pathFilter(c,r,_);if(m)return e([""].concat(f.slice()),Kt.resolve(d,m),c)}s(o,u)}function u(n,a){return n?i(n):a?i(null,o,c):(e(t.slice(1),r,c),void 0)}c?l(null,c):E(Kt.dirname(o),l)}([""].concat(f),e,n)}function E(e,t){return""===e||"/"===e||"win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e)?t(null):(sr(u,e,a,((r,n)=>{if(r)return E(Kt.dirname(e),t);var i=Kt.join(n,"package.json");s(i,((r,n)=>{if(!n)return E(Kt.dirname(e),t);d(l,i,((r,n)=>{r&&t(r);var o=n;o&&a.packageFilter&&(o=a.packageFilter(o,i)),t(null,o,e)}))}))})),void 0)}function S(e,t,r){var n=r,i=t;"function"==typeof i&&(n=i,i=a.package),sr(u,e,a,((t,r)=>{if(t)return n(t);var o=Kt.join(r,"package.json");s(o,((t,r)=>t?n(t):r?(d(l,o,((t,r)=>{if(t)return n(t);var i=r;if(i&&a.packageFilter&&(i=a.packageFilter(i,o)),i&&i.main){if("string"!=typeof i.main){var s=new TypeError("package “"+i.name+"” `main` must be a string");return s.code="INVALID_PACKAGE_MAIN",n(s)}return"."!==i.main&&"./"!==i.main||(i.main="index"),x(Kt.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):i?(S(Kt.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):(x(Kt.join(e,"index"),i,n),void 0))),void 0):x(Kt.join(e,"index"),i,n))),void 0}x(Kt.join(e,"/index"),i,n)})),void 0):x(Kt.join(e,"index"),i,n)))}))}function D(e,t){if(0===t.length)return e(null,void 0);var r=t[0];function n(t,n,o){return t?e(t):n?e(null,n,o):(S(r,a.package,i),void 0)}function i(r,n,i){return r?e(r):n?e(null,n,i):(D(e,t.slice(1)),void 0)}c(Kt.dirname(r),((i,o)=>i?e(i):o?(x(r,a.package,n),void 0):D(e,t.slice(1))))}sr(u,v,a,((t,r)=>{t?i(t):!(t=>{if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))y=Kt.resolve(t,e),"."!==e&&".."!==e&&"/"!==e.slice(-1)||(y+="/"),/\/$/.test(e)&&y===t?S(y,a.package,b):x(y,a.package,b);else{if(m&&tr(e))return i(null,e);!((e,t,r)=>{var n=()=>((e,t,r)=>{for(var n=Jt(t,r,e),i=0;i<n.length;i++)n[i]=Kt.join(n[i],e);return n})(e,t,a);D(r,_?_(e,t,n,a):n())})(e,t,((t,r,n)=>{if(t)i(t);else{if(r)return sr(u,r,a,((e,t)=>{e?i(e):i(null,t,n)}));var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}})(r)}))};const ur={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};var dr=r.versions&&r.versions.node&&r.versions.node.split(".")||[];function pr(e){for(var t=e.split(" "),r=t.length>1?t[0]:"=",n=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var a=parseInt(dr[i]||0,10),o=parseInt(n[i]||0,10);if(a!==o)return"<"===r?a<o:">="===r&&a>=o}return">="===r}function _r(e){var t=e.split(/ ?&& ?/);if(0===t.length)return!1;for(var r=0;r<t.length;++r)if(!pr(t[r]))return!1;return!0}function fr(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){for(var t=0;t<e.length;++t)if(_r(e[t]))return!0;return!1}return _r(e)}var mr={};for(var gr in ur)Object.prototype.hasOwnProperty.call(ur,gr)&&(mr[gr]=fr(ur[gr]));var hr=mr,yr=rr.realpathSync&&"function"==typeof rr.realpathSync.native?rr.realpathSync.native:rr.realpathSync,vr=e=>{try{var t=rr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isFile()||t.isFIFO()},br=e=>{try{var t=rr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isDirectory()},xr=e=>{try{return yr(e)}catch(e){if("ENOENT"!==e.code)throw e}return e},Er=(e,t,r)=>r&&!1===r.preserveSymlinks?e(t):t,Sr=(e,t)=>{var r=e(t);try{return JSON.parse(r)}catch(e){}};lr.core=hr,lr.isCore=e=>tr(e),lr.sync=(e,t)=>{if("string"!=typeof e)throw new TypeError("Path must be a string.");var n=Ht(0,t),i=n.isFile||vr,a=n.readFileSync||rr.readFileSync,o=n.isDirectory||br,s=n.realpathSync||xr,c=n.readPackageSync||Sr;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,u=n.extensions||[".js"],d=!1!==n.includeCoreModules,p=n.basedir||Kt.dirname(Ut()),_=n.filename||p;n.paths=n.paths||[];var f=Er(s,Kt.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var m=Kt.resolve(f,e);"."!==e&&".."!==e&&"/"!==e.slice(-1)||(m+="/");var g=v(m)||x(m);if(g)return Er(s,g,n)}else{if(d&&tr(e))return e;var h=((e,t)=>{for(var r=()=>((e,t,r)=>{for(var n=Jt(t,r,e),i=0;i<n.length;i++)n[i]=Kt.join(n[i],e);return n})(e,t,n),i=l?l(e,t,r,n):r(),a=0;a<i.length;a++){var s=i[a];if(o(Kt.dirname(s))){var c=v(s);if(c)return c;var u=x(s);if(u)return u}}})(e,f);if(h)return Er(s,h,n)}var y=new Error("Cannot find module '"+e+"' from '"+_+"'");throw y.code="MODULE_NOT_FOUND",y;function v(e){var t=b(Kt.dirname(e));if(t&&t.dir&&t.pkg&&n.pathFilter){var r=Kt.relative(t.dir,e),a=n.pathFilter(t.pkg,e,r);a&&(e=Kt.resolve(t.dir,a))}if(i(e))return e;for(var o=0;o<u.length;o++){var s=e+u[o];if(i(s))return s}}function b(e){if(""!==e&&"/"!==e&&!("win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e))){var t=Kt.join(Er(s,e,n),"package.json");if(!i(t))return b(Kt.dirname(e));var o=c(a,t);return o&&n.packageFilter&&(o=n.packageFilter(o,e)),{pkg:o,dir:e}}}function x(e){var t=Kt.join(Er(s,e,n),"/package.json");if(i(t)){try{var r=c(a,t)}catch(e){}if(r&&n.packageFilter&&(r=n.packageFilter(r,e)),r&&r.main){if("string"!=typeof r.main){var o=new TypeError("package “"+r.name+"” `main` must be a string");throw o.code="INVALID_PACKAGE_MAIN",o}"."!==r.main&&"./"!==r.main||(r.main="index");try{var l=v(Kt.resolve(e,r.main));if(l)return l;var u=x(Kt.resolve(e,r.main));if(u)return u}catch(e){}}}return v(Kt.join(e,"/index"))}};var Dr=lr;const Tr=[".tsx",".ts",".mjs",".js",".jsx",".json",".md"],Cr=["package.json","index.js","index.mjs"],kr=e=>e.endsWith(".d.ts"),Ar=e=>!kr(e)&&e.endsWith(".ts"),Nr=e=>e.endsWith(".tsx"),wr=e=>e.endsWith(".jsx"),Fr=e=>e.endsWith(".js"),Pr=(e,t)=>e+"/"+t,Ir=e=>Tr.some((t=>e.endsWith(t))),Or=(e,t)=>{try{const r=JSON.parse(t);r.name&&r.version&&((e,t,r)=>{e.set(t,r)})(e,r.name,r.version)}catch(e){}},Mr=e=>e.startsWith(".")||e.startsWith("/"),Rr=e=>l&&o&&Lr(e),Lr=e=>me(e).split("/").includes("node_modules"),Br=e=>{e.startsWith("~")&&(e=e.substring(1));const t=e.split("/"),r={moduleId:null,filePath:null,scope:null,scopeSubModuleId:null};return e.startsWith("@")&&t.length>1?(r.moduleId=t.slice(0,2).join("/"),r.filePath=t.slice(2).join("/"),r.scope=t[0],r.scopeSubModuleId=t[1]):(r.moduleId=t[0],r.filePath=t.slice(1).join("/")),r},jr=(e,t)=>{const r=me(e).split("/"),n=Br(t);for(let e=r.length-1;e>=1;e--)if("node_modules"===r[e-1])if(n.scope){if(r[e]===n.scope&&r[e+1]===n.scopeSubModuleId)return r.slice(0,e+2).join("/")}else if(r[e]===n.moduleId)return r.slice(0,e+1).join("/");return null},Ur=new Map,Vr=new Set,Kr=(e,t)=>{let r=(t=me(t)).split("/");const n=r.lastIndexOf("node_modules");n>-1&&n<r.length-1&&(r=r.slice(n+1),r=r[0].startsWith("@")?r.slice(2):r.slice(1),t=r.join("/"));const i=new URL("../",e).href;return new URL("./"+t,i).href},zr=(e,t,r,n)=>Wr(e,t,r)+"/"+n,Wr=(e,t,r)=>{let n=(r=me(r)).split("/").filter((e=>e.length));const i=n.lastIndexOf("node_modules");i>-1&&i<n.length-1&&(n=n.slice(i+1));let a=n.shift();a.startsWith("@")&&(a+="/"+n.shift());const o=n.join("/");if("@stencil/core"===a){const t=e.getCompilerExecutingPath();return Kr(t,o)}return e.getRemoteModuleUrl({moduleId:a,version:t.get(a),path:o})},Jr=e=>{if(Ar(e)||Nr(e))return!0;const t=e.split("/"),r=t[t.length-2],n=t[t.length-1];return!("node_modules"!==r||!Ir(n))},Hr=e=>$r.some((t=>e.endsWith(t))),$r=["/@stencil/core/internal.js","/@stencil/core/internal.json","/@stencil/core/internal.mjs","/@stencil/core/internal/stencil-core.js/index.json","/@stencil/core/internal/stencil-core.js.json","/@stencil/core/internal/stencil-core.js/package.json","/@stencil/core.js","/@stencil/core.json","/@stencil/core.mjs","/@stencil/core.css","/@stencil/core/index.js","/@stencil/core/index.json","/@stencil/core/index.mjs","/@stencil/core/index.css","/@stencil/package.json"],Gr=async(e,t,r,n,i)=>{if(!(Jr(i)||Vr.has(n)||Hr(n)))try{const a=await((e,t,r)=>e&&W(e.fetch)?e.fetch(t,r):fetch(t,r))(e,n);if(a){if(a.ok){const o=await a.clone().text();return await(async(e,t,r,n,i,a)=>{r.endsWith("package.json")&&Or(a,i);let o=We(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),await t.sys.createDir(o)):await e.createDir(o),o=We(o);t?(t.clearFileCache(n),await t.sys.writeFile(n,i)):await e.writeFile(n,i)})(e,t,n,i,o,r),o}404===a.status&&Vr.add(n)}}catch(e){console.error(e)}},qr=(e,t,r)=>{const n=Xr(e,t,r.exts);return n.basedir=We(De(r.containingFile)),r.packageFilter?n.packageFilter=r.packageFilter:null!==r.packageFilter&&(n.packageFilter=e=>($(e.main)&&""!==e.main||(e.main="package.json"),e)),new Promise(((e,t)=>{Dr(r.moduleId,n,((n,i,a)=>{if(n)t(n);else{i=me(i);const t={moduleId:r.moduleId,resolveId:i,pkgData:a,pkgDirPath:jr(i,r.moduleId)};e(t)}}))}))},Xr=(e,t,r)=>({async isFile(n,i){const a=De(n);if((await t.stat(a)).isFile)return i(null,!0),void 0;if(Rr(a)&&r.some((e=>a.endsWith(e)))){const r=Wr(e,Ur,a);return i(null,"string"==typeof await Gr(e,t,Ur,r,a)),void 0}i(null,!1)},async isDirectory(r,n){const i=De(r);if((await t.stat(i)).isDirectory)return n(null,!0),void 0;if(Rr(i)){if("node_modules"===ze(i))return t.sys.createDirSync(i),t.clearFileCache(i),n(null,!0),void 0;if(Ir(i))return n(null,!1),void 0;for(const r of Cr){const a=zr(e,Ur,i,r),o=Pr(i,r),s=await Gr(e,t,Ur,a,o);if($(s))return n(null,!0),void 0}}n(null,!1)},async readFile(e,r){const n=De(e),i=await t.readFile(n);return $(i)?r(null,i):r(`readFile not found: ${e}`)},async realpath(t,r){const n=De(t),i=await e.realpath(n);i.error&&"ENOENT"!==i.error.code?r(i.error):r(null,i.error?n:i.path)},extensions:r}),Yr=e=>{const t=e&&e.logger?e.logger:_t(),r=new Map,n=new Set,i=e=>n.add(e),a=e=>n.delete(e),l=pt(),u=o&&navigator.hardwareConcurrency||1,d=e=>{if("/"===e||""===e)return"/";const t=We(e),r=ze(e);return t.endsWith("/")?me(`${t}${r}`):me(`${t}/${r}`)},p=e=>{const t=r.get(d(e));return!(!t||!(t.isDirectory||t.isFile&&"string"==typeof t.data))},_=(e,t)=>{e=d(e);const r={basename:ze(e),dirname:We(e),path:e,newDirs:[],error:null};return f(e,t,r),r},f=(e,t,n)=>{const i=We(e);t&&t.recursive&&!Y(i)&&f(i,t,n);const a=r.get(e);a?(a.isDirectory=!0,a.isFile=!1):(r.set(e,{basename:ze(e),dirname:i,isDirectory:!0,isFile:!1,watcherCallbacks:null,data:void 0}),n.newDirs.push(e),S(e,new Set))},m=e=>{e=d(e);const t=[],n=r.get(e);return n&&n.isDirectory&&r.forEach(((r,n)=>{"/"!==n&&(r.isDirectory||r.isFile&&"string"==typeof r.data)&&(e.endsWith("/")&&`${e}${r.basename}`===n||`${e}/${r.basename}`===n)&&t.push(n)})),t.sort()},g=e=>{e=d(e);const t=r.get(e);if(t&&t.isFile)return t.data},h=e=>({path:d(e),error:null}),y=(e,t,n)=>{const i=x(e);if(!i.error&&!n.error)if(i.isFile){const i=We(t),a=_(i,{recursive:!0}),o=r.get(e).data,s=D(t,o);n.newDirs.push(...a.newDirs),n.renamed.push({oldPath:e,newPath:t,isDirectory:!1,isFile:!0}),s.error?n.error=s.error:n.newFiles.push(t)}else if(i.isDirectory){const r=m(e),i=_(t,{recursive:!0});n.newDirs.push(...i.newDirs),n.renamed.push({oldPath:e,newPath:t,isDirectory:!0,isFile:!1});for(const i of r){const r=i.replace(e,t);y(i,r,n)}}},v=(e,t={})=>{const r={basename:ze(e),dirname:We(e),path:e,removedDirs:[],removedFiles:[],error:null};return b(e,t,r),r},b=(e,t,n)=>{if(!n.error){e=d(e);const i=m(e);if(t&&t.recursive)for(const e of i){const i=r.get(e);if(i)if(i.isDirectory)b(e,t,n);else if(i.isFile){const t=E(e);t.error?n.error=t.error:n.removedFiles.push(e)}}else if(i.length>0)return n.error="cannot delete directory that contains files/subdirectories",void 0;r.delete(e),S(e,new Set),n.removedDirs.push(e)}},x=e=>{e=d(e);const t=r.get(e);return t&&(t.isDirectory||t.isFile&&"string"==typeof t.data)?{isDirectory:t.isDirectory,isFile:t.isFile,isSymbolicLink:!1,size:t.isFile&&t.data?t.data.length:0,error:null}:{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,error:`ENOENT: no such file or directory, statSync '${e}'`}},E=e=>{e=d(e);const t={basename:ze(e),dirname:We(e),path:e,error:null},n=r.get(e);if(n){if(n.watcherCallbacks)for(const t of n.watcherCallbacks)t(e,"fileDelete");r.delete(e),S(e,new Set)}return t},S=(e,t)=>{const n=d(We(e)),i=r.get(n);if(i&&i.isDirectory&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,null);t.has(n)||(t.add(n),S(n,t))},D=(e,t)=>{const n={path:e=d(e),error:null},i=r.get(e);if(i){const r=i.data!==t;if(i.data=t,r&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,"fileUpdate")}else r.set(e,{basename:ze(e),dirname:We(e),isDirectory:!1,isFile:!0,watcherCallbacks:null,data:t}),S(e,new Set);return n},T="undefined"!=typeof self?null===self||void 0===self?void 0:self.fetch:"undefined"!=typeof window?null===window||void 0===window?void 0:window.fetch:"undefined"!=typeof global?null===global||void 0===global?void 0:global.fetch:void 0,C=Promise.resolve();_("/");const k={name:"in-memory",version:ut,events:l,access:async e=>p(e),accessSync:p,addDestory:i,copyFile:async(e,t)=>(D(t,g(e)),!0),createDir:async(e,t)=>_(e,t),createDirSync:_,homeDir:()=>(void 0)(),isTTY(){var e;return!!(null===(e=null==ct?void 0:st.stdout)||void 0===e?void 0:e.isTTY)},getEnvironmentVar:e=>null==ct?void 0:st.env[e],async destroy(){const e=[];n.forEach((r=>{try{const t=r();t&&t.then&&e.push(t)}catch(e){t.error(`stencil sys destroy: ${e}`)}})),await Promise.all(e),n.clear()},encodeToBase64:e=>btoa(unescape(encodeURIComponent(e))),exit:async e=>t.warn(`exit ${e}`),getCurrentDirectory:()=>"/",getCompilerExecutingPath:()=>s?location.href:k.getRemoteModuleUrl({moduleId:"@stencil/core",path:"compiler/stencil.min.js"}),getLocalModulePath:e=>$e(e.rootDir,"node_modules",e.moduleId,e.path),getRemoteModuleUrl(e){const t=`${e.moduleId}${e.version?"@"+e.version:""}/${e.path}`;return new URL(t,"https://cdn.jsdelivr.net/npm/").href},hardwareConcurrency:u,isSymbolicLink:async e=>!1,nextTick:e=>C.then(e),normalizePath:d,platformPath:Ke,readDir:async e=>m(e),readDirSync:m,readFile:async e=>g(e),readFileSync:g,realpath:async e=>h(e),realpathSync:h,removeDestory:a,async rename(e,t){const r={oldPath:e=me(e),newPath:t=me(t),renamed:[],oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],isFile:!1,isDirectory:!1,error:null},n=x(e);if(n.error)r.error=`${e} does not exist`;else if(n.isFile?r.isFile=!0:n.isDirectory&&(r.isDirectory=!0),y(e,t,r),!r.error)if(r.isDirectory){const t=v(e,{recursive:!0});t.error?r.error=t.error:(r.oldDirs.push(...t.removedDirs),r.oldFiles.push(...t.removedFiles))}else if(r.isFile){const t=E(e);t.error?r.error=t.error:r.oldFiles.push(e)}return r},fetch:T,resolvePath:e=>d(e),removeDir:async(e,t={})=>v(e,t),removeDirSync:v,stat:async e=>x(e),statSync:x,tmpDirSync:()=>"/.tmp",removeFile:async e=>E(e),removeFileSync:E,watchDirectory(e,t){e=d(e);const n=r.get(e),o=()=>{const n=r.get(e);if(n&&n.watcherCallbacks){const e=n.watcherCallbacks.indexOf(t);e>-1&&n.watcherCallbacks.splice(e,1)}};return i(o),n?(n.isDirectory=!0,n.isFile=!1,n.watcherCallbacks=n.watcherCallbacks||[],n.watcherCallbacks.push(t)):r.set(e,{basename:ze(e),dirname:We(e),isDirectory:!0,isFile:!1,watcherCallbacks:[t],data:void 0}),{close(){a(o),o()}}},watchFile(e,t){e=d(e);const n=r.get(e),o=()=>{const n=r.get(e);if(n&&n.watcherCallbacks){const e=n.watcherCallbacks.indexOf(t);e>-1&&n.watcherCallbacks.splice(e,1)}};return i(o),n?(n.isDirectory=!1,n.isFile=!0,n.watcherCallbacks=n.watcherCallbacks||[],n.watcherCallbacks.push(t)):r.set(e,{basename:ze(e),dirname:We(e),isDirectory:!1,isFile:!0,watcherCallbacks:[t],data:void 0}),{close(){a(o),o()}}},watchTimeout:32,writeFile:async(e,t)=>D(e,t),writeFileSync:D,async generateContentHash(e,t){const r=await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e));let n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return"number"==typeof t&&(n=n.slice(0,t)),n},createWorkerController:c?e=>((e,t)=>{let r,n=0,i=!1,a=!1,o=0;const s=new Map,c=[],l=[],u=Math.max(Math.min(t,e.hardwareConcurrency),2)-1,d=Promise.resolve(),p=e=>console.error(e),_=()=>{let t=null;const n=e.getCompilerExecutingPath(),a={name:"stencil.worker."+o++};try{t=new Worker(n,a)}catch(e){null==r&&(r=new Blob([`importScripts('${n}');`],{type:"application/javascript"})),t=new Worker(URL.createObjectURL(r),a)}const c={worker:t,activeTasks:0,sendQueue:[]};return t.onerror=p,t.onmessage=e=>((e,t)=>{if(!i){const r=t.data;if(Array.isArray(r))for(const t of r)if(t){const r=s.get(t.stencilId);r?(s.delete(t.stencilId),t.stencilRtnError?r.reject(t.stencilRtnError):r.resolve(t.stencilRtnValue),e.activeTasks--,(e.activeTasks<0||e.activeTasks>50)&&(e.activeTasks=0)):t.stencilRtnError&&console.error(t.stencilRtnError)}}})(c,e),c},f=e=>{e.sendQueue.length>0&&(e.worker.postMessage(e.sendQueue),e.sendQueue.length=0)},m=e=>{let t;if(l.length>0){if(t=l[0],u>1){for(const e of l)e.activeTasks<t.activeTasks&&(t=e);t.activeTasks>0&&l.length<u&&(t=_(),l.push(t))}}else t=_(),l.push(t);t.activeTasks++,t.sendQueue.push(e)},g=()=>{a=!1,c.forEach(m),c.length=0,l.forEach(f)},h=(...e)=>new Promise(((t,r)=>{if(i)r(ae);else{const i={stencilId:n++,args:e};c.push(i),s.set(i.stencilId,{resolve:t,reject:r}),a||(a=!0,d.then(g))}}));return{send:h,destroy(){i=!0,s.forEach((e=>e.reject(ae))),s.clear(),l.forEach((e=>e.worker.terminate())),l.length=0},handler(e){return(...t)=>h(e,...t)},maxWorkers:u}})(k,e):null,details:{cpuModel:"",freemem:()=>0,platform:"",release:"",totalmem:0},copy:async(e,r)=>(t.info("todo, copy task",e.length,r),{diagnostics:[],dirPaths:[],filePaths:[]}),resolveModuleId(e){return qr(k,null,e)}};return k};let Qr;const Zr={overrideBrowserslist:["last 2 versions","iOS >= 9","Android >= 4.4","Explorer >= 11","ExplorerMobile >= 11"],cascade:!1,remove:!1,flexbox:"no-2009"},en=(e,t)=>{let r=1,n=1;const i=[],a=e=>{const t=e.match(/\n/g);t&&(r+=t.length);const i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length},o=()=>{const e={line:r,column:n};return t=>(t.position=new T(e),p(),t)},s=a=>{const o=e.split("\n"),s={level:"error",type:"css",language:"css",header:"CSS Parse",messageText:a,absFilePath:t,lines:[{lineIndex:r-1,lineNumber:r,errorCharStart:n,text:e[r-1]}]};if(r>1){const t={lineIndex:r-1,lineNumber:r-1,text:e[r-2],errorCharStart:-1,errorLength:-1};s.lines.unshift(t)}if(r+2<o.length){const e={lineIndex:r,lineNumber:r+1,text:o[r],errorCharStart:-1,errorLength:-1};s.lines.push(e)}return i.push(s),null},c=()=>u(/^{\s*/),l=()=>u(/^}/),u=t=>{const r=t.exec(e);if(!r)return;const n=r[0];return a(n),e=e.slice(n.length),r},d=()=>{let t;const r=[];for(p(),_(r);e.length&&"}"!==e.charAt(0)&&(t=S()||D());)!1!==t&&(r.push(t),_(r));return r},p=()=>u(/^\s*/),_=e=>{let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e},f=()=>{const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let r=2;for(;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return s("End of comment missing");const i=e.slice(2,r-2);return n+=2,a(i),e=e.slice(r),n+=2,t({type:1,comment:i})},m=()=>{const e=u(/^([^{]+)/);return e?tn(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,"‌"))).split(/\s*(?![^(]*\)),\s*/).map((e=>e.replace(/\u200C/g,","))):null},g=()=>{const e=o();let t=u(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return null;if(t=tn(t[0]),!u(/^:\s*/))return s("property missing ':'");const r=u(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),n=e({type:4,property:t.replace(nn,""),value:r?tn(r[0]).replace(nn,""):""});return u(/^[;\s]*/),n},h=()=>{const e=[];if(!c())return s("missing '{'");let t;for(_(e);t=g();)!1!==t&&(e.push(t),_(e));return l()?e:s("missing '}'")},y=()=>{let e;const t=[],r=o();for(;e=u(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),u(/^,\s*/);return t.length?r({type:9,values:t,declarations:h()}):null},v=(e,t)=>{const r=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),i=u(r);if(!i)return null;const a={type:t};return a[e]=i[1].trim(),n(a)}},b=v("import",7),x=v("charset",0),E=v("namespace",11),S=()=>"@"!==e[0]?null:(()=>{const e=o();let t=u(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const r=t[1];if(t=u(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const n=t[1];if(!c())return s("@keyframes missing '{'");let i,a=_();for(;i=y();)a.push(i),a=a.concat(_());return l()?e({type:8,name:n,vendor:r,keyframes:a}):s("@keyframes missing '}'")})()||(()=>{const e=o(),t=u(/^@media *([^{]+)/);if(!t)return null;const r=tn(t[1]);if(!c())return s("@media missing '{'");const n=_().concat(d());return l()?e({type:10,media:r,rules:n}):s("@media missing '}'")})()||(()=>{const e=o(),t=u(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);return t?e({type:2,name:tn(t[1]),media:tn(t[2])}):null})()||(()=>{const e=o(),t=u(/^@supports *([^{]+)/);if(!t)return null;const r=tn(t[1]);if(!c())return s("@supports missing '{'");const n=_().concat(d());return l()?e({type:15,supports:r,rules:n}):s("@supports missing '}'")})()||b()||x()||E()||(()=>{const e=o(),t=u(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const r=tn(t[1]),n=tn(t[2]);if(!c())return s("@document missing '{'");const i=_().concat(d());return l()?e({type:3,document:n,vendor:r,rules:i}):s("@document missing '}'")})()||(()=>{const e=o();if(!u(/^@page */))return null;const t=m()||[];if(!c())return s("@page missing '{'");let r,n=_();for(;r=g();)n.push(r),n=n.concat(_());return l()?e({type:12,selectors:t,declarations:n}):s("@page missing '}'")})()||(()=>{const e=o();if(!u(/^@host\s*/))return null;if(!c())return s("@host missing '{'");const t=_().concat(d());return l()?e({type:6,rules:t}):s("@host missing '}'")})()||(()=>{const e=o();if(!u(/^@font-face\s*/))return null;if(!c())return s("@font-face missing '{'");let t,r=_();for(;t=g();)r.push(t),r=r.concat(_());return l()?e({type:5,declarations:r}):s("@font-face missing '}'")})(),D=()=>{const e=o(),t=m();return t?(_(),e({type:13,selectors:t,declarations:h()})):s("selector missing")};class T{constructor(e){this.start=e,this.end={line:r,column:n},this.source=t}}return T.prototype.content=e,{diagnostics:i,...rn((()=>{const e=d();return{type:14,stylesheet:{source:t,rules:e}}})())}},tn=e=>e?e.trim():"",rn=(e,t)=>{const r=e&&"string"==typeof e.type,n=r?e:t;for(const t in e){const r=e[t];Array.isArray(r)?r.forEach((e=>{rn(e,n)})):r&&"object"==typeof r&&rn(r,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e},nn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,an=e=>{on.all.length=on.tags.length=on.classNames.length=on.ids.length=on.attrs.length=0;const t=(e=e.replace(/\./g," .").replace(/\#/g," #").replace(/\[/g," [").replace(/\>/g," > ").replace(/\+/g," + ").replace(/\~/g," ~ ").replace(/\*/g," * ").replace(/\:not\((.*?)\)/g," ")).split(" ");for(let e=0,r=t.length;e<r;e++)t[e]=t[e].split(":")[0],0!==t[e].length&&("."===t[e].charAt(0)?on.classNames.push(t[e].slice(1)):"#"===t[e].charAt(0)?on.ids.push(t[e].slice(1)):"["===t[e].charAt(0)?(t[e]=t[e].slice(1).split("=")[0].split("]")[0].trim(),on.attrs.push(t[e].toLowerCase())):/[a-z]/g.test(t[e].charAt(0))&&on.tags.push(t[e].toLowerCase()));return on.classNames=on.classNames.sort(((e,t)=>e.length<t.length?-1:e.length>t.length?1:0)),on},on={all:[],tags:[],classNames:[],ids:[],attrs:[]},sn=(e,t,r,n)=>{const i=t.type;return 4===i?ln(t,r,n):13===i?cn(e,t):1===i?"!"===t.comment[0]?`/*${t.comment}*/`:"":10===i?un(e,t):8===i?dn(e,t):9===i?pn(e,t):5===i?_n(e,t):15===i?fn(e,t):7===i?"@import "+t.import+";":0===i?"@charset "+t.charset+";":12===i?mn(e,t):6===i?"@host{"+hn(e,t.rules)+"}":2===i?"@custom-media "+t.name+" "+t.media+";":3===i?gn(e,t):11===i?"@namespace "+t.namespace+";":""},cn=(e,t)=>{const r=t.declarations,n=e.usedSelectors,i=t.selectors.slice();if(null==r||0===r.length)return"";if(n){let t,r,a=!0;for(t=i.length-1;t>=0;t--){const o=an(i[t]);a=!0;let s=o.classNames.length;if(s>0&&e.hasUsedClassNames)for(r=0;r<s;r++)if(!n.classNames.has(o.classNames[r])){a=!1;break}if(a&&e.hasUsedTags&&(s=o.tags.length,s>0))for(r=0;r<s;r++)if(!n.tags.has(o.tags[r])){a=!1;break}if(a&&e.hasUsedAttrs&&(s=o.attrs.length,s>0))for(r=0;r<s;r++)if(!n.attrs.has(o.attrs[r])){a=!1;break}if(a&&e.hasUsedIds&&(s=o.ids.length,s>0))for(r=0;r<s;r++)if(!n.ids.has(o.ids[r])){a=!1;break}a||i.splice(t,1)}}if(0===i.length)return"";const a=[];let o="";for(const e of t.selectors)o=yn(e),a.includes(o)||a.push(o);return`${a}{${hn(e,r)}}`},ln=(e,t,r)=>""===e.value?"":r-1===t?e.property+":"+e.value:e.property+":"+e.value+";",un=(e,t)=>{const r=hn(e,t.rules);return""===r?"":"@media "+vn(t.media)+"{"+r+"}"},dn=(e,t)=>{const r=hn(e,t.keyframes);return""===r?"":"@"+(t.vendor||"")+"keyframes "+t.name+"{"+r+"}"},pn=(e,t)=>t.values.join(",")+"{"+hn(e,t.declarations)+"}",_n=(e,t)=>{const r=hn(e,t.declarations);return""===r?"":"@font-face{"+r+"}"},fn=(e,t)=>{const r=hn(e,t.rules);return""===r?"":"@supports "+t.supports+"{"+r+"}"},mn=(e,t)=>"@page "+t.selectors.join(", ")+"{"+hn(e,t.declarations)+"}",gn=(e,t)=>{const r=hn(e,t.rules),n="@"+(t.vendor||"")+"document "+t.document;return""===r?"":n+"{"+r+"}"},hn=(e,t)=>{let r="";if(t)for(let n=0,i=t.length;n<i;n++)r+=sn(e,t[n],n,i);return r},yn=e=>{let t="",r="",n=!1;for(let i=0,a=(e=e.trim()).length;i<a;i++)if(r=e[i],"["===r&&"\\"!==t[t.length-1]?n=!0:"]"===r&&"\\"!==t[t.length-1]&&(n=!1),!n&&bn.test(r)){if(xn.test(e[i+1]))continue;if(En.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},vn=e=>{let t="",r="";for(let n=0,i=(e=e.trim()).length;n<i;n++)if(r=e[n],bn.test(r)){if(bn.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},bn=/\s/,xn=/[>\(\)\~\,\+\s]/,En=/[>\(\~\,\+]/,Sn=async e=>{const t=en(e.css);return ne(t.diagnostics)?e.css:(W(e.resolveUrl)&&t.stylesheet&&Array.isArray(t.stylesheet.rules)&&await Dn(t.stylesheet.rules,e.resolveUrl),((e,t)=>{const r={}.usedSelectors||null,n={usedSelectors:r||null,hasUsedAttrs:!!r&&r.attrs.size>0,hasUsedClassNames:!!r&&r.classNames.size>0,hasUsedIds:!!r&&r.ids.size>0,hasUsedTags:!!r&&r.tags.size>0},i=e.rules;if(!i)return"";const a=i.length,o=[];for(let e=0;e<a;e++)o.push(sn(n,i[e],e,a));return o.join("")})(t.stylesheet))},Dn=async(e,t,r)=>{for(const r of e){if(4===r.type&&$(r.value)&&r.value.includes("url(")){const e=r.value.split(",").map((e=>e.trim()));for(let r=0;r<e.length;r++){const n=/url\((.*?)\)/.exec(e[r]);if(n)try{const i=n[1].replace(/(\'|\")/g,""),a=await t(i);e[r]=e[r].replace(i,a)}catch(e){}}r.value=e.join(",")}Array.isArray(r.declarations)&&await Dn(r.declarations,t),Array.isArray(r.rules)&&await Dn(r.rules,t),Array.isArray(r.keyframes)&&await Dn(r.keyframes,t)}},Tn=async e=>{let t={output:e.input,diagnostics:[]};return!1!==e.autoprefixer&&null!==e.autoprefixer&&(t=await(async(e,t)=>{const r={output:e,diagnostics:[]};if(!i)return r;try{const n=(e=>{const{postcss:t,autoprefixer:r}=u("../sys/node/autoprefixer.js");return Qr||(Qr=t([r(e)])),Qr})(null!=t&&"object"==typeof t?t:Zr),i=await n.process(e,{map:null});i.warnings().forEach((e=>{r.diagnostics.push({header:`Autoprefix CSS: ${e.plugin}`,messageText:e.text,level:"warn",type:"css"})})),r.output=i.css}catch(e){const t={header:"Autoprefix CSS",messageText:"CSS Error"+e,level:"error",type:"css"};if("string"==typeof e.name&&(t.header=e.name),"string"==typeof e.reason&&(t.messageText=e.reason),"string"==typeof e.source&&"number"==typeof e.line){const r=e.source.replace(/\r/g,"\n").split("\n");if(r.length>0){const n=e=>{const n=r[e];if("string"==typeof n){const e={lineIndex:-1,lineNumber:-1,text:n,errorCharStart:-1,errorLength:-1};t.lines=t.lines||[],t.lines.push(e)}};n(e.line-3),n(e.line-2),n(e.line-1),n(e.line),n(e.line+1),n(e.line+2),n(e.line+3)}}r.diagnostics.push(t)}return r})(e.input,e.autoprefixer),ne(t.diagnostics))||!1!==e.minify&&(t.output=await Sn({css:t.output,resolveUrl:e.resolveUrl})),t};var Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),kn=e=>{if(0<=e&&e<Cn.length)return Cn[e];throw new TypeError("Must be between 0 and 63: "+e)},An=e=>{var t,r="",n=(e=>e<0?1+(-e<<1):0+(e<<1))(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=kn(t)}while(n>0);return r},Nn=(e,t,r)=>{var n,i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1==(i=65<=(s=e.charCodeAt(t++))&&s<=90?s-65:97<=s&&s<=122?s-97+26:48<=s&&s<=57?s-48+52:43==s?62:47==s?63:-1))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<u,u+=5}while(n);r.value=(o=(a=l)>>1,1==(1&a)?-o:o),r.rest=t},wn=at(((e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=e=>"/"===e.charAt(0)||r.test(e),t.relative=(e,t)=>{""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:e=>u(e)?"$"+e:e,t.fromSetString=c?l:e=>u(e)?e.slice(1):e,t.compareByOriginalPositions=(e,t,r)=>{var n=d(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=(e,t,r)=>{var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=(e,t)=>{var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=e=>JSON.parse(e.replace(/^\)]}'[^\n]*\n/,"")),t.computeSourceURL=(e,t,r)=>{if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}})),Fn=Object.prototype.hasOwnProperty,Pn="undefined"!=typeof Map;function In(){this._array=[],this._set=Pn?new Map:Object.create(null)}In.fromArray=(e,t)=>{for(var r=new In,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},In.prototype.size=function(){return Pn?this._set.size:Object.getOwnPropertyNames(this._set).length},In.prototype.add=function(e,t){var r=Pn?e:wn.toSetString(e),n=Pn?this.has(e):Fn.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(Pn?this._set.set(e,i):this._set[r]=i)},In.prototype.has=function(e){if(Pn)return this._set.has(e);var t=wn.toSetString(e);return Fn.call(this._set,t)},In.prototype.indexOf=function(e){if(Pn){var t=this._set.get(e);if(t>=0)return t}else{var r=wn.toSetString(e);if(Fn.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},In.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},In.prototype.toArray=function(){return this._array.slice()};var On=In;function Mn(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Mn.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Mn.prototype.add=function(e){var t,r,n,i,a,o;r=e,n=(t=this._last).generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||wn.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Mn.prototype.toArray=function(){return this._sorted||(this._array.sort(wn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Rn=On,Ln={MappingList:Mn}.MappingList;function Bn(e){e||(e={}),this._file=wn.getArg(e,"file",null),this._sourceRoot=wn.getArg(e,"sourceRoot",null),this._skipValidation=wn.getArg(e,"skipValidation",!1),this._sources=new Rn,this._names=new Rn,this._mappings=new Ln,this._sourcesContents=null}Bn.prototype._version=3,Bn.fromSourceMap=e=>{var t=e.sourceRoot,r=new Bn({file:e.file,sourceRoot:t});return e.eachMapping((e=>{var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=wn.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((n=>{var i=n;null!==t&&(i=wn.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},Bn.prototype.addMapping=function(e){var t=wn.getArg(e,"generated"),r=wn.getArg(e,"original",null),n=wn.getArg(e,"source",null),i=wn.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Bn.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=wn.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[wn.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[wn.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Bn.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=wn.relative(i,n));var a=new Rn,o=new Rn;this._mappings.unsortedForEach((t=>{if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=wn.join(r,t.source)),null!=i&&(t.source=wn.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||o.has(l)||o.add(l)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=wn.join(r,t)),null!=i&&(t=wn.relative(i,t)),this.setSourceContent(t,n))}),this)},Bn.prototype._validateMapping=(e,t,r,n)=>{if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Bn.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,l=0,u="",d=this._mappings.toArray(),p=0,_=d.length;p<_;p++){if(e="",(t=d[p]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(p>0){if(!wn.compareByGeneratedPositionsInflated(t,d[p-1]))continue;e+=","}e+=An(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=An(n-l),l=n,e+=An(t.originalLine-1-s),s=t.originalLine-1,e+=An(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=An(r-c),c=r)),u+=e}return u},Bn.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=wn.relative(t,e));var r=wn.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Bn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Bn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var jn={SourceMapGenerator:Bn},Un=at(((e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=(e,n,i,a)=>{if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function Vn(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Kn(e,t,r,n){if(r<n){var i=r-1;Vn(e,(c=r,l=n,Math.round(c+Math.random()*(l-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Vn(e,i+=1,o);Vn(e,i+1,o);var s=i+1;Kn(e,t,r,s-1),Kn(e,t,s+1,n)}var c,l}var zn=On,Wn=(e,t)=>{Kn(e,t,0,e.length-1)};function Jn(e,t){var r=e;return"string"==typeof e&&(r=wn.parseSourceMapInput(e)),null!=r.sections?new Xn(r,t):new $n(r,t)}Jn.fromSourceMap=(e,t)=>$n.fromSourceMap(e,t),Jn.prototype._version=3,Jn.prototype.__generatedMappings=null,Object.defineProperty(Jn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Jn.prototype.__originalMappings=null,Object.defineProperty(Jn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Jn.prototype._charIsMappingSeparator=(e,t)=>{var r=e.charAt(t);return";"===r||","===r},Jn.prototype._parseMappings=(e,t)=>{throw new Error("Subclasses must implement _parseMappings")},Jn.GENERATED_ORDER=1,Jn.ORIGINAL_ORDER=2,Jn.GREATEST_LOWER_BOUND=1,Jn.LEAST_UPPER_BOUND=2,Jn.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||Jn.GENERATED_ORDER){case Jn.GENERATED_ORDER:n=this._generatedMappings;break;case Jn.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=wn.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},Jn.prototype.allGeneratedPositionsFor=function(e){var t=wn.getArg(e,"line"),r={source:wn.getArg(e,"source"),originalLine:t,originalColumn:wn.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",wn.compareByOriginalPositions,Un.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:wn.getArg(a,"generatedLine",null),column:wn.getArg(a,"generatedColumn",null),lastColumn:wn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:wn.getArg(a,"generatedLine",null),column:wn.getArg(a,"generatedColumn",null),lastColumn:wn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Hn=Jn;function $n(e,t){var r=e;"string"==typeof e&&(r=wn.parseSourceMapInput(e));var n=wn.getArg(r,"version"),i=wn.getArg(r,"sources"),a=wn.getArg(r,"names",[]),o=wn.getArg(r,"sourceRoot",null),s=wn.getArg(r,"sourcesContent",null),c=wn.getArg(r,"mappings"),l=wn.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=wn.normalize(o)),i=i.map(String).map(wn.normalize).map((e=>o&&wn.isAbsolute(o)&&wn.isAbsolute(e)?wn.relative(o,e):e)),this._names=zn.fromArray(a.map(String),!0),this._sources=zn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((e=>wn.computeSourceURL(o,e,t))),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=l}function Gn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}$n.prototype=Object.create(Jn.prototype),$n.prototype.consumer=Jn,$n.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=wn.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},$n.fromSourceMap=(e,t)=>{var r=Object.create($n.prototype),n=r._names=zn.fromArray(e._names.toArray(),!0),i=r._sources=zn.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((e=>wn.computeSourceURL(r.sourceRoot,e,t)));for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],s=r.__originalMappings=[],c=0,l=a.length;c<l;c++){var u=a[c],d=new Gn;d.generatedLine=u.generatedLine,d.generatedColumn=u.generatedColumn,u.source&&(d.source=i.indexOf(u.source),d.originalLine=u.originalLine,d.originalColumn=u.originalColumn,u.name&&(d.name=n.indexOf(u.name)),s.push(d)),o.push(d)}return Wn(r.__originalMappings,wn.compareByOriginalPositions),r},$n.prototype._version=3,Object.defineProperty($n.prototype,"sources",{get(){return this._absoluteSources.slice()}}),$n.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,l=0,u=0,d=0,p=0,_=e.length,f=0,m={},g={},h=[],y=[];f<_;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new Gn).generatedLine=s,a=f;a<_&&!this._charIsMappingSeparator(e,a);a++);if(i=m[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)Nn(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(r.source=d+i[1],d+=i[1],r.originalLine=l+i[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=u+i[3],u=r.originalColumn,i.length>4&&(r.name=p+i[4],p+=i[4])),y.push(r),"number"==typeof r.originalLine&&h.push(r)}Wn(y,wn.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Wn(h,wn.compareByOriginalPositions),this.__originalMappings=h},$n.prototype._findMapping=(e,t,r,n,i,a)=>{if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Un.search(e,t,i,a)},$n.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},$n.prototype.originalPositionFor=function(e){var t={generatedLine:wn.getArg(e,"line"),generatedColumn:wn.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",wn.compareByGeneratedPositionsDeflated,wn.getArg(e,"bias",Jn.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=wn.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=wn.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=wn.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:wn.getArg(n,"originalLine",null),column:wn.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},$n.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((e=>null==e))},$n.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=wn.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=wn.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},$n.prototype.generatedPositionFor=function(e){var t=wn.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:wn.getArg(e,"line"),originalColumn:wn.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",wn.compareByOriginalPositions,wn.getArg(e,"bias",Jn.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:wn.getArg(i,"generatedLine",null),column:wn.getArg(i,"generatedColumn",null),lastColumn:wn.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var qn=$n;function Xn(e,t){var r=e;"string"==typeof e&&(r=wn.parseSourceMapInput(e));var n=wn.getArg(r,"version"),i=wn.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new zn,this._names=new zn;var a={line:-1,column:0};this._sections=i.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");var r=wn.getArg(e,"offset"),n=wn.getArg(r,"line"),i=wn.getArg(r,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new Jn(wn.getArg(e,"map"),t)}}))}Xn.prototype=Object.create(Jn.prototype),Xn.prototype.constructor=Jn,Xn.prototype._version=3,Object.defineProperty(Xn.prototype,"sources",{get(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Xn.prototype.originalPositionFor=function(e){var t={generatedLine:wn.getArg(e,"line"),generatedColumn:wn.getArg(e,"column")},r=Un.search(t,this._sections,((e,t)=>e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn)),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Xn.prototype.hasContentsOfAllSources=function(){return this._sections.every((e=>e.consumer.hasContentsOfAllSources()))},Xn.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Xn.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(wn.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Xn.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);s=wn.computeSourceURL(n.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=n.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var l={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}Wn(this.__generatedMappings,wn.compareByGeneratedPositionsDeflated),Wn(this.__originalMappings,wn.compareByOriginalPositions)};var Yn={SourceMapConsumer:Hn,BasicSourceMapConsumer:qn,IndexedSourceMapConsumer:Xn},Qn=jn.SourceMapGenerator,Zn=/(\r?\n)/,ei="$$$isSourceNode$$$";function ti(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[ei]=!0,null!=n&&this.add(n)}ti.fromStringWithSourceMap=function(e,t,r){var n=new ti,i=e.split(Zn),a=0,o=()=>{return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,c=0,l=null;return t.eachMapping((e=>{if(null!==l){if(!(s<e.generatedLine)){var t=(r=i[a]||"").substr(0,e.generatedColumn-c);return i[a]=r.substr(e.generatedColumn-c),c=e.generatedColumn,u(l,t),l=e,void 0}u(l,o()),s++,c=0}for(;s<e.generatedLine;)n.add(o()),s++;if(c<e.generatedColumn){var r=i[a]||"";n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),c=e.generatedColumn}l=e}),this),a<i.length&&(l&&u(l,o()),n.add(i.splice(a).join(""))),t.sources.forEach((e=>{var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=wn.join(r,e)),n.setSourceContent(e,i))})),n;function u(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?wn.join(r,e.source):e.source;n.add(new ti(e.originalLine,e.originalColumn,i,t,e.name))}}},ti.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[ei]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},ti.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[ei]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},ti.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[ei]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},ti.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},ti.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[ei]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},ti.prototype.setSourceContent=function(e,t){this.sourceContents[wn.toSetString(e)]=t},ti.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][ei]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(wn.fromSetString(n[t]),this.sourceContents[n[t]])},ti.prototype.toString=function(){var e="";return this.walk((t=>{e+=t})),e},ti.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Qn(e),n=!1,i=null,a=null,o=null,s=null;return this.walk(((e,c)=>{t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++})),this.walkSourceContents(((e,t)=>{r.setSourceContent(e,t)})),{code:t.code,map:r}};var ri={SourceMapGenerator:jn.SourceMapGenerator,SourceMapConsumer:Yn.SourceMapConsumer,SourceNode:{SourceNode:ti}.SourceNode},ni=ri.SourceMapConsumer,ii=ri.SourceMapGenerator;function ai(e){return e.split("")}function oi(e,t){return t.includes(e)}class si extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function ci(e,t,r){!0===e&&(e={}),null!=e&&"object"==typeof e&&(e=Object.assign({},e));const n=e||{};if(r)for(const e in n)if(Si(n,e)&&!Si(t,e))throw new si("`"+e+"` is not a supported option",t);for(const r in t)if(Si(t,r))if(e&&Si(e,r))if("ecma"===r){let t=0|e[r];t>5&&t<2015&&(t+=2009),n[r]=t}else n[r]=e&&Si(e,r)?e[r]:t[r];else n[r]=t[r];return n}function li(){}function ui(){return!1}function di(){return!0}function pi(){return this}function _i(){return null}var fi=function(){function e(e,a,o){var s,c=[],l=[];function u(){var u=a(e[s],s),d=u instanceof i;return d&&(u=u.v),u instanceof r?(u=u.v)instanceof n?l.push.apply(l,o?u.v.slice().reverse():u.v):l.push(u):u!==t&&(u instanceof n?c.push.apply(c,o?u.v.slice().reverse():u.v):c.push(u)),d}if(Array.isArray(e))if(o){for(s=e.length;--s>=0&&!u(););c.reverse(),l.reverse()}else for(s=0;s<e.length&&!u();++s);else for(s in e)if(Si(e,s)&&u())break;return l.concat(c)}e.at_top=e=>new r(e),e.splice=e=>new n(e),e.last=e=>new i(e);var t=e.skip={};function r(e){this.v=e}function n(e){this.v=e}function i(e){this.v=e}return e}();function mi(e,t,r){return r||(r={}),t&&(r.start||(r.start=t.start),r.end||(r.end=t.end)),new e(r)}function gi(e,t){e.includes(t)||e.push(t)}function hi(e,t){return e.replace(/{(.+?)}/g,((e,r)=>t&&t[r]))}function yi(e,t){for(var r=e.length;--r>=0;)e[r]===t&&e.splice(r,1)}function vi(e,t){return e.length<2?e.slice():function e(r){if(r.length<=1)return r;var n=Math.floor(r.length/2),i=r.slice(0,n),a=r.slice(n);return((e,r)=>{for(var n=[],i=0,a=0,o=0;i<e.length&&a<r.length;)t(e[i],r[a])<=0?n[o++]=e[i++]:n[o++]=r[a++];return i<e.length&&n.push.apply(n,e.slice(i)),a<r.length&&n.push.apply(n,r.slice(a)),n})(i=e(i),a=e(a))}(e)}function bi(e){return Array.isArray(e)||(e=e.split(" ")),new Set(e)}function xi(e,t,r){e.has(t)?e.get(t).push(r):e.set(t,[r])}function Ei(e){var t=Object.create(null);return e.forEach(((e,r)=>{t["$"+r]=e})),t}function Si(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Di(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var Ti={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Ci(e){return e.replace(/[\0\n\r\u2028\u2029]/g,((t,r)=>("\\"!=e[r-1]||"\\"==e[r-2]&&!/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,r-1))?"\\":"")+Ti[t]))}function ki(e,t){return e._annotations&t}function Ai(e,t){e._annotations|=t}var Ni="",wi=!0,Fi="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Pi="false null true",Ii="enum implements import interface package private protected public static super this "+Pi+" "+Fi,Oi="return new delete throw else case yield await";Fi=bi(Fi),Ii=bi(Ii),Oi=bi(Oi),Pi=bi(Pi);var Mi=bi(ai("+-*&%=<>!?|~^")),Ri=/[0-9a-f]/i,Li=/^0x[0-9a-f]+$/i,Bi=/^0[0-7]+$/,ji=/^0o[0-7]+$/i,Ui=/^0b[01]+$/i,Vi=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,Ki=/^(0[xob])?[0-9a-f]+n$/i,zi=bi(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),Wi=bi(ai("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),Ji=bi(ai("\n\r\u2028\u2029")),Hi=bi(ai(";]),:")),$i=bi(ai("[{(,;:")),Gi=bi(ai("[]{}(),;:")),qi={ID_Start:/[$A-Z_a-z\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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\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-\uA7AD\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\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\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]|\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]|\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]/,ID_Continue:/(?:[$0-9A-Z_a-z\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\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\u0C81-\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\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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\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\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[\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]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\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]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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])+/};function Xi(e,t){if(Yi(e.charCodeAt(t))){if(Qi(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(Qi(e.charCodeAt(t))&&Yi(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function Yi(e){return e>=55296&&e<=56319}function Qi(e){return e>=56320&&e<=57343}function Zi(e){return e>=48&&e<=57}function ea(e){return qi.ID_Start.test(e)}function ta(e){return qi.ID_Continue.test(e)}const ra=/^[a-z_$][a-z0-9_$]*$/i;function na(e){return ra.test(e)}function ia(e,t){if(ra.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var r=qi.ID_Start.exec(e);return!(!r||0!==r.index||(e=e.slice(r[0].length))&&(!(r=qi.ID_Continue.exec(e))||r[0].length!==e.length))}function aa(e,t=!0){if(!t&&e.includes("e"))return NaN;if(Li.test(e))return parseInt(e.substr(2),16);if(Bi.test(e))return parseInt(e.substr(1),8);if(ji.test(e))return parseInt(e.substr(2),8);if(Ui.test(e))return parseInt(e.substr(2),2);if(Vi.test(e))return parseFloat(e);var r=parseFloat(e);return r==e?r:void 0}class oa extends Error{constructor(e,t,r,n,i){super(),this.name="SyntaxError",this.message=e,this.filename=t,this.line=r,this.col=n,this.pos=i}}function sa(e,t,r,n,i){throw new oa(e,t,r,n,i)}function ca(e,t,r){return e.type==t&&(null==r||e.value==r)}var la={};function ua(e,t,r,n){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function a(){return Xi(i.text,i.pos)}function o(){if(46!==i.text.charCodeAt(i.pos+1))return!1;const e=i.text.charCodeAt(i.pos+2);return e<48||e>57}function s(e,t){var r=Xi(i.text,i.pos++);if(e&&!r)throw la;return Ji.has(r)?(i.newline_before=i.newline_before||!t,++i.line,i.col=0,"\r"==r&&"\n"==a()&&(++i.pos,r="\n")):(r.length>1&&(++i.pos,++i.col),++i.col),r}function c(e){for(;e--;)s()}function l(e){return i.text.substr(i.pos,e.length)==e}function u(e,t){var r=i.text.indexOf(e,i.pos);if(t&&-1==r)throw la;return r}function d(){i.tokline=i.line,i.tokcol=i.col,i.tokpos=i.pos}var p=!1,_=null;function f(e,r,n){i.regex_allowed="operator"==e&&!pa.has(r)||"keyword"==e&&Oi.has(r)||"punc"==e&&$i.has(r)||"arrow"==e,"punc"!=e||"."!=r&&"?."!=r?n||(p=!1):p=!0;const a=i.tokline,o=i.tokcol,s=i.tokpos,c=i.newline_before,l=t;let u=[],d=[];n||(u=i.comments_before,d=i.comments_before=[]),i.newline_before=!1;const f=new xa(e,r,a,o,s,c,u,d,l);return n||(_=f),f}function m(){for(;Wi.has(a());)s()}function g(e){sa(e,t,i.tokline,i.tokcol,i.tokpos)}function h(e){var t=!1,r=!1,n=!1,i="."==e,o=!1,c=!1,l=(e=>{for(var t,r="",n=0;(t=a())&&e(t,n++);)r+=s();return r})(((a,s)=>{if(o)return!1;switch(a.charCodeAt(0)){case 95:return c=!0;case 98:case 66:return n=!0;case 111:case 79:case 120:case 88:return!n&&(n=!0);case 101:case 69:return!!n||!t&&(t=r=!0);case 45:return r||0==s&&!e;case 43:return r;case r=!1,46:return!(i||n||t)&&(i=!0)}return"n"===a?(o=!0,!0):Ri.test(a)}));if(e&&(l=e+l),Ni=l,Bi.test(l)&&w.has_directive("use strict")&&g("Legacy octal literals are not allowed in strict mode"),c&&(l.endsWith("_")?g("Numeric separators are not allowed at the end of numeric literals"):l.includes("__")&&g("Only one underscore is allowed as numeric separator"),l=l.replace(/_/g,"")),l.endsWith("n")){const e=l.slice(0,-1),t=aa(e,Li.test(e));if(!i&&Ki.test(l)&&!isNaN(t))return f("big_int",e);g("Invalid or unexpected token")}var u=aa(l);if(!isNaN(u))return f("num",u);g("Invalid syntax: "+l)}function y(e){return e>="0"&&e<="7"}function v(e,t,r){var n=s(!0,e);switch(n.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(b(2,t));case 117:if("{"==a()){for(s(!0),"}"===a()&&g("Expecting hex-character between {}");"0"==a();)s(!0);var o,c=u("}",!0)-i.pos;return(c>6||(o=b(c,t))>1114111)&&g("Unicode reference out of bounds"),s(!0),(e=>e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e))(o)}return String.fromCharCode(b(4,t));case 10:return"";case 13:if("\n"==a())return s(!0,e),""}return y(n)?(r&&t&&("0"===n&&!y(a())||g("Octal escape sequences are not allowed in template strings")),((e,t)=>{var r=a();return r>="0"&&r<="7"&&(e+=s(!0))[0]<="3"&&(r=a())>="0"&&r<="7"&&(e+=s(!0)),"0"===e?"\0":(e.length>0&&w.has_directive("use strict")&&t&&g("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))})(n,t)):n}function b(e,t){for(var r=0;e>0;--e){if(!t&&isNaN(parseInt(a(),16)))return parseInt(r,16)||"";var n=s(!0);isNaN(parseInt(n,16))&&g("Invalid hex-character pattern in string"),r+=n}return parseInt(r,16)}var x=N("Unterminated string constant",(()=>{const e=i.pos;for(var t=s(),r=[];;){var n=s(!0,!0);if("\\"==n)n=v(!0,!0);else if("\r"==n||"\n"==n)g("Unterminated string constant");else if(n==t)break;r.push(n)}var a=f("string",r.join(""));return Ni=i.text.slice(e,i.pos),a.quote=t,a})),E=N("Unterminated template",(e=>{e&&i.template_braces.push(i.brace_counter);var t,r,n="",o="";for(s(!0,!0);"`"!=(t=s(!0,!0));){if("\r"==t)"\n"==a()&&++i.pos,t="\n";else if("$"==t&&"{"==a())return s(!0,!0),i.brace_counter++,r=f(e?"template_head":"template_substitution",n),Ni=o,wi=!1,r;if(o+=t,"\\"==t){var c=i.pos;t=v(!0,!(_&&("name"===_.type||"punc"===_.type&&(")"===_.value||"]"===_.value))),!0),o+=i.text.substr(c,i.pos-c)}n+=t}return i.template_braces.pop(),r=f(e?"template_head":"template_substitution",n),Ni=o,wi=!0,r}));function S(e){var t,r=i.regex_allowed,n=(()=>{for(var e=i.text,t=i.pos,r=i.text.length;t<r;++t){var n=e[t];if(Ji.has(n))return t}return-1})();return-1==n?(t=i.text.substr(i.pos),i.pos=i.text.length):(t=i.text.substring(i.pos,n),i.pos=n),i.col=i.tokcol+(i.pos-i.tokpos),i.comments_before.push(f(e,t,!0)),i.regex_allowed=r,w}var D=N("Unterminated multiline comment",(()=>{var e=i.regex_allowed,t=u("*/",!0),r=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return c((e=>{for(var t=0,r=0;r<e.length;r++)Yi(e.charCodeAt(r))&&Qi(e.charCodeAt(r+1))&&(t++,r++);return e.length-t})(r)+2),i.comments_before.push(f("comment2",r,!0)),i.newline_before=i.newline_before||r.includes("\n"),i.regex_allowed=e,w})),T=N("Unterminated identifier name",(()=>{var e,t=[],r=!1,n=()=>(r=!0,s(),"u"!==a()&&g("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0));if("\\"===(e=a()))ea(e=n())||g("First identifier char is an invalid identifier char");else{if(!ea(e))return"";s()}for(t.push(e);null!=(e=a());){if("\\"===(e=a()))ta(e=n())||g("Invalid escaped identifier char");else{if(!ta(e))break;s()}t.push(e)}const i=t.join("");return Ii.has(i)&&r&&g("Escaped characters are not allowed in keywords"),i})),C=N("Unterminated regular expression",(e=>{for(var t,r=!1,n=!1;t=s(!0);)if(Ji.has(t))g("Unexpected line terminator");else if(r)e+="\\"+t,r=!1;else if("["==t)n=!0,e+=t;else if("]"==t&&n)n=!1,e+=t;else{if("/"==t&&!n)break;"\\"==t?r=!0:e+=t}return f("regexp","/"+e+"/"+T())}));function k(e){return f("operator",function e(t){if(!a())return t;var r=t+a();return zi.has(r)?(s(),e(r)):t}(e||s()))}function A(){switch(s(),a()){case"/":return s(),S("comment1");case"*":return s(),D()}return i.regex_allowed?C(""):k("/")}function N(e,t){return r=>{try{return t(r)}catch(t){if(t!==la)throw t;g(e)}}}function w(e){if(null!=e)return C(e);for(n&&0==i.pos&&l("#!")&&(d(),c(2),S("comment5"));;){if(m(),d(),r){if(l("\x3c!--")){c(4),S("comment3");continue}if(l("--\x3e")&&i.newline_before){c(3),S("comment4");continue}}var t=a();if(!t)return f("eof");var u=t.charCodeAt(0);switch(u){case 34:case 39:return x();case 46:return s(),Zi(a().charCodeAt(0))?h("."):"."===a()?(s(),s(),f("expand","...")):f("punc",".");case 47:var _=A();if(_===w)continue;return _;case 61:return s(),">"===a()?(s(),f("arrow","=>")):k("=");case 63:if(!o())break;return s(),s(),f("punc","?.");case 96:return E(!0);case 123:i.brace_counter++;break;case 125:if(i.brace_counter--,i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return E(!1)}if(Zi(u))return h();if(Gi.has(t))return f("punc",s());if(Mi.has(t))return k();if(92==u||ea(t))return y=T(),p?f("name",y):Pi.has(y)?f("atom",y):Fi.has(y)?zi.has(y)?f("operator",y):f("keyword",y):f("name",y);if(35==u)return s(),f("privatename",T());break}var y;g("Unexpected character '"+t+"'")}return w.next=s,w.peek=a,w.context=e=>(e&&(i=e),i),w.add_directive=e=>{i.directive_stack[i.directive_stack.length-1].push(e),void 0===i.directives[e]?i.directives[e]=1:i.directives[e]++},w.push_directives_stack=()=>{i.directive_stack.push([])},w.pop_directives_stack=()=>{for(var e=i.directive_stack[i.directive_stack.length-1],t=0;t<e.length;t++)i.directives[e[t]]--;i.directive_stack.pop()},w.has_directive=e=>i.directives[e]>0,w}var da=bi(["typeof","void","delete","--","++","!","~","-","+"]),pa=bi(["--","++"]),_a=bi(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),fa=bi(["??=","&&=","||="]),ma=((e,t)=>{for(var r=0;r<e.length;++r)for(var n=e[r],i=0;i<n.length;++i)t[n[i]]=r+1;return t})([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ga=bi(["atom","num","big_int","string","regexp","name"]);function ha(e,t){const r=new WeakMap;t=ci(t,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var n={input:"string"==typeof e?ua(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function i(e,t){return ca(n.token,e,t)}function a(){return n.peeked||(n.peeked=n.input())}function o(){return n.prev=n.token,n.peeked||a(),n.token=n.peeked,n.peeked=null,n.in_directives=n.in_directives&&("string"==n.token.type||i("punc",";")),n.token}function s(){return n.prev}function c(e,t,r,i){var a=n.input.context();sa(e,a.filename,null!=t?t:a.tokline,null!=r?r:a.tokcol,null!=i?i:a.tokpos)}function l(e,t){c(t,e.line,e.col)}function u(e){null==e&&(e=n.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function d(e,t){if(i(e,t))return o();l(n.token,"Unexpected token "+n.token.type+" «"+n.token.value+"», expected "+e+" «"+t+"»")}function p(e){return d("punc",e)}function _(e){return e.nlb||!e.comments_before.every((e=>!e.nlb))}function f(){return!t.strict&&(i("eof")||i("punc","}")||_(n.token))}function m(){return n.in_generator===n.in_function}function g(){return n.in_async===n.in_function||0===n.in_function&&n.input.has_directive("use strict")}function h(e){i("punc",";")?o():e||f()||u()}function y(){p("(");var e=me(!0);return p(")"),e}function v(e){return(...t)=>{const r=n.token,i=e(...t);return i.start=r,i.end=s(),i}}function b(){(i("operator","/")||i("operator","/="))&&(n.peeked=null,n.token=n.input(n.token.value.substr(1)))}n.token=o();var x=v((function e(r,m,v){switch(b(),n.token.type){case"string":if(n.in_directives){var x=a();!Ni.includes("\\")&&(ca(x,"punc",";")||ca(x,"punc","}")||_(x)||ca(x,"eof"))?n.input.add_directive(n.token.value):n.in_directives=!1}var A=n.in_directives,w=S();return A&&w.body instanceof As?new Ta(w.body):w;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return S();case"name":if("async"==n.token.value&&ca(a(),"keyword","function"))return o(),o(),m&&c("functions are not allowed as the body of a loop"),N(qa,!1,!0,r);if("import"==n.token.value&&!ca(a(),"punc","(")&&!ca(a(),"punc",".")){o();var P=(()=>{var e,t,r=s();i("name")&&(e=ae(ys)),i("punc",",")&&o(),((t=Z(!0))||e)&&d("name","from");var a=n.token;return"string"!==a.type&&u(),o(),new Do({start:r,imported_name:e,imported_names:t,module_name:new As({start:a,value:a.value,quote:a.quote,end:a}),end:n.token})})();return h(),P}return ca(a(),"punc",":")?E():S();case"punc":switch(n.token.value){case"{":return new wa({start:n.token,body:M(),end:s()});case"[":case"(":return S();case";":return n.in_directives=!1,o(),new Fa;default:u()}case"keyword":switch(n.token.value){case"break":return o(),D(ao);case"continue":return o(),D(oo);case"debugger":return o(),h(),new Da;case"do":o();var I=ge(e);d("keyword","while");var L=y();return h(!0),new Ra({body:I,condition:L});case"while":return o(),new La({condition:y(),body:ge((()=>e(!1,!0)))});case"for":return o(),(()=>{var e="`for await` invalid in this context",t=n.token;"name"==t.type&&"await"==t.value?(g()||l(t,e),o()):t=!1,p("(");var r=null;if(i("punc",";"))t&&l(t,e);else{r=i("keyword","var")?(o(),B(!0)):i("keyword","let")?(o(),j(!0)):i("keyword","const")?(o(),U(!0)):me(!0,!0);var a=i("operator","in"),s=i("name","of");if(t&&!s&&l(t,e),a||s)return r instanceof yo?r.definitions.length>1&&l(r.start,"Only one variable declaration allowed in for..in loop"):pe(r)||(r=_e(r))instanceof Xa||l(r.start,"Invalid left-hand side in for..in loop"),o(),a?k(r):C(r,!!t)}return T(r)})();case"class":return o(),m&&c("classes are not allowed as the body of a loop"),v&&c("classes are not allowed as the body of an if"),q(ts);case"function":return o(),m&&c("functions are not allowed as the body of a loop"),N(qa,!1,!1,r);case"if":return o(),O();case"return":0!=n.in_function||t.bare_returns||c("'return' outside of function"),o();var V=null;return i("punc",";")?o():f()||(V=me(!0),h()),new ro({value:V});case"switch":return o(),new uo({expression:y(),body:ge(R)});case"throw":return o(),_(n.token)&&c("Illegal newline after 'throw'"),V=me(!0),h(),new no({value:V});case"try":return o(),(()=>{var e=M(),t=null,r=null;if(i("keyword","catch")){var a=n.token;if(o(),i("punc","{"))var l=null;else p("("),l=F(void 0,hs),p(")");t=new go({start:a,argname:l,body:M(),end:s()})}return i("keyword","finally")&&(a=n.token,o(),r=new ho({start:a,body:M(),end:s()})),t||r||c("Missing catch/finally blocks"),new mo({body:e,bcatch:t,bfinally:r})})();case"var":return o(),P=B(),h(),P;case"let":return o(),P=j(),h(),P;case"const":return o(),P=U(),h(),P;case"with":return n.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),o(),new Va({expression:y(),body:e()});case"export":if(!ca(a(),"punc","("))return o(),P=ee(),i("punc",";")&&h(),P}}u()}));function E(){var e=ae(bs);"await"===e.name&&n.in_async===n.in_function&&l(n.prev,"await cannot be used as label inside async function"),n.labels.some((t=>t.name===e.name))&&c("Label "+e.name+" defined twice"),p(":"),n.labels.push(e);var t=x();return n.labels.pop(),t instanceof Oa||e.references.forEach((t=>{t instanceof oo&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))})),new Ia({body:t,label:e})}function S(e){return new Ca({body:(e=me(!0),h(),e)})}function D(e){var t,r=null;f()||(r=ae(Ds,!0)),null!=r?((t=n.labels.find((e=>e.name===r.name)))||c("Undefined label "+r.name),r.thedef=t):0==n.in_loop&&c(e.TYPE+" not inside a loop or switch"),h();var i=new e({label:r});return t&&t.references.push(i),i}function T(e){p(";");var t=i("punc",";")?null:me(!0);p(";");var r=i("punc",")")?null:me(!0);return p(")"),new Ba({init:e,condition:t,step:r,body:ge((()=>x(!1,!0)))})}function C(e,t){var r=e instanceof yo?e.definitions[0].name:null,n=me(!0);return p(")"),new Ua({await:t,init:e,name:r,object:n,body:ge((()=>x(!1,!0)))})}function k(e){var t=me(!0);return p(")"),new ja({init:e,object:t,body:ge((()=>x(!1,!0)))})}var A=(e,t,r)=>{_(n.token)&&c("Unexpected newline before arrow (=>)"),d("arrow","=>");var a=I(i("punc","{"),!1,r),o=a instanceof Array&&a.length?a[a.length-1].end:a instanceof Array?e:a.end;return new Ga({start:e,end:o,async:r,argnames:t,body:a})},N=(e,t,r,n)=>{var a=e===qa,c=i("operator","*");c&&o();var l=i("name")?ae(a?ds:fs):null;a&&!l&&(n?e=$a:u()),!l||e===Ha||l instanceof as||u(s());var d=[],p=I(!0,c||t,r,l,d);return new e({start:d.start,end:p.end,is_generator:c,async:r,name:l,argnames:d,body:p})};function w(e,t){var r=new Set,n=!1,i=!1,a=!1,o=!!t,s={add_parameter(t){if(r.has(t.value))!1===n&&(n=t),s.check_strict();else if(r.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":o&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:Ii.has(t.value)&&u()}},mark_default_assignment(e){!1===i&&(i=e)},mark_spread(e){!1===a&&(a=e)},mark_strict_mode(){o=!0},is_strict:()=>!1!==i||!1!==a||o,check_strict(){s.is_strict()&&!1!==n&&l(n,"Parameter "+n.value+" was used already")}};return s}function F(e,t){var r,a=!1;return void 0===e&&(e=w(!0,n.input.has_directive("use strict"))),i("expand","...")&&(a=n.token,e.mark_spread(n.token),o()),r=P(e,t),i("operator","=")&&!1===a&&(e.mark_default_assignment(n.token),o(),r=new Vo({start:r.start,left:r,operator:"=",right:me(!1),end:n.token})),!1!==a&&(i("punc",")")||u(),r=new Wa({start:a,expression:r,end:a})),e.check_strict(),r}function P(e,t){var r,l=[],d=!0,_=!1,f=n.token;if(void 0===e&&(e=w(!1,n.input.has_directive("use strict"))),t=void 0===t?us:t,i("punc","[")){for(o();!i("punc","]");){if(d?d=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("punc"))switch(n.token.value){case",":l.push(new Rs({start:n.token,end:n.token}));continue;case"]":break;case"[":case"{":l.push(P(e,t));break;default:u()}else i("name")?(e.add_parameter(n.token),l.push(ae(t))):c("Invalid function parameter");i("operator","=")&&!1===_&&(e.mark_default_assignment(n.token),o(),l[l.length-1]=new Vo({start:l[l.length-1].start,left:l[l.length-1],operator:"=",right:me(!1),end:n.token})),_&&(i("punc","]")||c("Rest element must be last element"),l[l.length-1]=new Wa({start:r,expression:l[l.length-1],end:r}))}return p("]"),e.check_strict(),new Xa({start:f,names:l,is_array:!0,end:s()})}if(i("punc","{")){for(o();!i("punc","}");){if(d?d=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("name")&&(ca(a(),"punc")||ca(a(),"operator"))&&[",","}","="].includes(a().value)){e.add_parameter(n.token);var m=s(),g=ae(t);_?l.push(new Wa({start:r,expression:g,end:g.end})):l.push(new Jo({start:m,key:g.name,value:g,end:g.end}))}else{if(i("punc","}"))continue;var h=n.token,y=te();null===y?u(s()):"name"!==s().type||i("punc",":")?(p(":"),l.push(new Jo({start:h,quote:h.quote,key:y,value:P(e,t),end:s()}))):l.push(new Jo({start:s(),key:y,value:new t({start:s(),name:y,end:s()}),end:s()}))}_?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(n.token),o(),l[l.length-1].value=new Vo({start:l[l.length-1].value.start,left:l[l.length-1].value,operator:"=",right:me(!1),end:n.token}))}return p("}"),e.check_strict(),new Xa({start:f,names:l,is_array:!1,end:s()})}if(i("name"))return e.add_parameter(n.token),ae(t);c("Invalid function parameter")}function I(e,t,r,a,s){var c=n.in_loop,l=n.labels,u=n.in_generator,d=n.in_async;if(++n.in_function,t&&(n.in_generator=n.in_function),r&&(n.in_async=n.in_function),s&&(e=>{var t=w(!0,n.input.has_directive("use strict"));for(p("(");!i("punc",")");){var r=F(t);if(e.push(r),i("punc",")")||p(","),r instanceof Wa)break}o()})(s),e&&(n.in_directives=!0),n.in_loop=0,n.labels=[],e){n.input.push_directives_stack();var _=M();a&&ie(a),s&&s.forEach(ie),n.input.pop_directives_stack()}else _=[new ro({start:n.token,value:me(!1),end:n.token})];return--n.in_function,n.in_loop=c,n.labels=l,n.in_generator=u,n.in_async=d,_}function O(){var e=y(),t=x(!1,!1,!0),r=null;return i("keyword","else")&&(o(),r=x(!1,!1,!0)),new lo({condition:e,body:t,alternative:r})}function M(){p("{");for(var e=[];!i("punc","}");)i("eof")&&u(),e.push(x());return o(),e}function R(){p("{");for(var e,t=[],r=null,a=null;!i("punc","}");)i("eof")&&u(),i("keyword","case")?(a&&(a.end=s()),r=[],a=new fo({start:(e=n.token,o(),e),expression:me(!0),body:r}),t.push(a),p(":")):i("keyword","default")?(a&&(a.end=s()),r=[],a=new _o({start:(e=n.token,o(),p(":"),e),body:r}),t.push(a)):(r||u(),r.push(x()));return a&&(a.end=s()),o(),t}function L(e,t){for(var r,a=[];;){var l="var"===t?os:"const"===t?cs:"let"===t?ls:null;if(i("punc","{")||i("punc","[")?r=new Eo({start:n.token,name:P(void 0,l),value:i("operator","=")?(d("operator","="),me(!1,e)):null,end:s()}):"import"==(r=new Eo({start:n.token,name:ae(l),value:i("operator","=")?(o(),me(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:s()})).name.name&&c("Unexpected token: import"),a.push(r),!i("punc",","))break;o()}return a}var B=e=>new vo({start:s(),definitions:L(e,"var"),end:s()}),j=e=>new bo({start:s(),definitions:L(e,"let"),end:s()}),U=e=>new xo({start:s(),definitions:L(e,"const"),end:s()});function V(){var e,t=n.token;switch(t.type){case"name":e=ne(xs);break;case"num":e=new Ns({start:t,end:t,value:t.value,raw:Ni});break;case"big_int":e=new ws({start:t,end:t,value:t.value});break;case"string":e=new As({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":const[r,n,i]=t.value.match(/^\/(.*)\/(\w*)$/);e=new Fs({start:t,end:t,value:{source:n,flags:i}});break;case"atom":switch(t.value){case"false":e=new js({start:t,end:t});break;case"true":e=new Us({start:t,end:t});break;case"null":e=new Is({start:t,end:t})}}return o(),e}function K(e,t){var r=(e,t)=>t?new Vo({start:e.start,left:e,operator:"=",right:t,end:t.end}):e;return e instanceof zo?r(new Xa({start:e.start,end:e.end,is_array:!1,names:e.properties.map((e=>K(e)))}),t):e instanceof Jo?(e.value=K(e.value),r(e,t)):e instanceof Rs?e:e instanceof Xa?(e.names=e.names.map((e=>K(e))),r(e,t)):e instanceof xs?r(new us({name:e.name,start:e.start,end:e.end}),t):e instanceof Wa?(e.expression=K(e.expression),r(e,t)):e instanceof Ko?r(new Xa({start:e.start,end:e.end,is_array:!0,names:e.elements.map((e=>K(e)))}),t):e instanceof Uo?r(K(e.left,e.right),t):e instanceof Vo?(e.left=K(e.left),e):void c("Invalid function parameter",e.start.line,e.start.col)}var z=(e,t)=>{if(i("operator","new"))return(e=>{var t=n.token;if(d("operator","new"),i("punc","."))return o(),d("name","target"),se(new is({start:t,end:s()}),e);var r,a=z(!1);i("punc","(")?(o(),r=J(")",!0)):r=[];var c=new Ao({start:t,expression:a,args:r,end:s()});return oe(c),se(c,e)})(e);if(i("operator","import"))return(()=>{var e=n.token;return d("operator","import"),d("punc","."),d("name","meta"),se(new To({start:e,end:s()}),!1)})();var c,l=n.token,_=i("name","async")&&"["!=(c=a()).value&&"arrow"!=c.type&&V();if(i("punc")){switch(n.token.value){case"(":if(_&&!e)break;var f=((e,t)=>{var r,a,c,l=[];for(p("(");!i("punc",")");)r&&u(r),i("expand","...")?(r=n.token,t&&(a=n.token),o(),l.push(new Wa({start:s(),expression:me(),end:n.token}))):l.push(me()),i("punc",")")||(p(","),i("punc",")")&&(c=s(),t&&(a=c)));return p(")"),e&&i("arrow","=>")?r&&c&&u(c):a&&u(a),l})(t,!_);if(t&&i("arrow","=>"))return A(l,f.map((e=>K(e))),!!_);var m=_?new ko({expression:_,args:f}):1==f.length?f[0]:new No({expressions:f});if(m.start){const e=l.comments_before.length;if(r.set(l,e),m.start.comments_before.unshift(...l.comments_before),l.comments_before=m.start.comments_before,0==e&&l.comments_before.length>0){var g=l.comments_before[0];g.nlb||(g.nlb=l.nlb,l.nlb=!1)}l.comments_after=m.start.comments_after}m.start=l;var h=s();return m.end&&(h.comments_before=m.end.comments_before,m.end.comments_after.push(...h.comments_after),h.comments_after=m.end.comments_after),m.end=h,m instanceof ko&&oe(m),se(m,e);case"[":return se(H(),e);case"{":return se(G(),e)}_||u()}if(t&&i("name")&&ca(a(),"arrow")){var y=new us({name:n.token.value,start:l,end:l});return o(),A(l,[y],!!_)}if(i("keyword","function")){o();var v=N($a,!1,!!_);return v.start=l,v.end=s(),se(v,e)}if(_)return se(_,e);if(i("keyword","class")){o();var b=q(rs);return b.start=l,b.end=s(),se(b,e)}return i("template_head")?se(W(),e):ga.has(n.token.type)?se(V(),e):void u()};function W(){var e=[],t=n.token;for(e.push(new Za({start:n.token,raw:Ni,value:n.token.value,end:n.token}));!wi;)o(),b(),e.push(me(!0)),e.push(new Za({start:n.token,raw:Ni,value:n.token.value,end:n.token}));return o(),new Qa({start:t,segments:e,end:n.token})}function J(e,t,r){for(var a=!0,c=[];!i("punc",e)&&(a?a=!1:p(","),!t||!i("punc",e));)i("punc",",")&&r?c.push(new Rs({start:n.token,end:n.token})):i("expand","...")?(o(),c.push(new Wa({start:s(),expression:me(),end:n.token}))):c.push(me(!1));return o(),c}var H=v((()=>(p("["),new Ko({elements:J("]",!t.strict,!0)})))),$=v(((e,t)=>N(Ha,e,t))),G=v((()=>{var e=n.token,r=!0,a=[];for(p("{");!i("punc","}")&&(r?r=!1:p(","),t.strict||!i("punc","}"));)if("expand"!=(e=n.token).type){var c,l=te();if(i("punc",":"))null===l?u(s()):(o(),c=me(!1));else{var d=X(l,e);if(d){a.push(d);continue}c=new xs({start:s(),name:l,end:s()})}i("operator","=")&&(o(),c=new Uo({start:e,left:c,operator:"=",right:me(!1),logical:!1,end:s()})),a.push(new Jo({start:e,quote:e.quote,key:l instanceof Ea?l:""+l,value:c,end:s()}))}else o(),a.push(new Wa({start:e,expression:me(!1),end:s()}));return o(),new zo({properties:a})}));function q(e){var t,r,a,c,l=[];for(n.input.push_directives_stack(),n.input.add_directive("use strict"),"name"==n.token.type&&"extends"!=n.token.value&&(a=ae(e===ts?ms:gs)),e!==ts||a||u(),"extends"==n.token.value&&(o(),c=me(!0)),p("{");i("punc",";");)o();for(;!i("punc","}");)for(t=n.token,(r=X(te(),t,!0))||u(),l.push(r);i("punc",";");)o();return n.input.pop_directives_stack(),o(),new e({start:t,name:a,extends:c,properties:l,end:s()})}function X(e,t,r){var a=(e,t)=>"string"==typeof e||"number"==typeof e?new ps({start:t,name:""+e,end:s()}):(null===e&&u(),e),c="privatename"==t.type,l=!1,d=!1,p=!1,_=t;if(r&&"static"===e&&!i("punc","(")&&(d=!0,c="privatename"==(_=n.token).type,e=te()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||i("operator","=")||(l=!0,c="privatename"==(_=n.token).type,e=te()),null===e&&(p=!0,c="privatename"==(_=n.token).type,null===(e=te())&&u()),i("punc","("))return e=a(e,t),new(c?Yo:Xo)({start:t,static:d,is_generator:p,async:l,key:e,quote:e instanceof ps?_.quote:void 0,value:$(p,l),end:s()});const f=n.token;if(("get"===e||"set"===e)&&"privatename"===f.type)return o(),new("get"===e?$o:Ho)({start:t,static:d,key:a(f.value,t),value:$(),end:s()});if("get"==e){if(!i("punc")||i("punc","["))return e=a(te(),t),new qo({start:t,static:d,key:e,quote:e instanceof ps?f.quote:void 0,value:$(),end:s()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=a(te(),t),new Go({start:t,static:d,key:e,quote:e instanceof ps?f.quote:void 0,value:$(),end:s()});if(r){const r=(e=>"string"==typeof e||"number"==typeof e?new _s({start:_,end:_,name:""+e}):(null===e&&u(),e))(e),n=r instanceof _s?_.quote:void 0,a=c?es:Zo;if(i("operator","="))return o(),new a({start:t,static:d,quote:n,key:r,value:me(!1),end:s()});if(i("name")||i("privatename")||i("operator","*")||i("punc",";")||i("punc","}"))return new a({start:t,static:d,quote:n,key:r,end:s()})}}function Y(e){function t(e){return new e({name:te(),start:s(),end:s()})}var r,a,c=e?vs:Ss,l=e?ys:Es,u=n.token;return e?r=t(c):a=t(l),i("name","as")?(o(),e?a=t(l):r=t(c)):e?a=new l(r):r=new c(a),new So({start:u,foreign_name:r,name:a,end:s()})}function Q(e,t){var r,i=e?vs:Ss,a=e?ys:Es,o=n.token,c=s();return t=t||new a({name:"*",start:o,end:c}),r=new i({name:"*",start:o,end:c}),new So({start:o,foreign_name:r,name:t,end:c})}function Z(e){var t;if(i("punc","{")){for(o(),t=[];!i("punc","}");)t.push(Y(e)),i("punc",",")&&o();o()}else if(i("operator","*")){var r;o(),e&&i("name","as")&&(o(),r=ae(e?ys:Ss)),t=[Q(e,r)]}return t}function ee(){var e,t,r,c,l,d=n.token;if(i("keyword","default"))e=!0,o();else if(t=Z(!1)){if(i("name","from")){o();var p=n.token;return"string"!==p.type&&u(),o(),new Co({start:d,is_default:e,exported_names:t,module_name:new As({start:p,value:p.value,quote:p.quote,end:p}),end:s()})}return new Co({start:d,is_default:e,exported_names:t,end:s()})}return i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&ca(a(),"punc")?(c=me(!1),h()):(r=x(e))instanceof yo&&e?u(r.start):r instanceof yo||r instanceof Ja||r instanceof ts?l=r:r instanceof Ca?c=r.body:u(r.start),new Co({start:d,is_default:e,exported_value:c,exported_definition:l,end:s()})}function te(){var e=n.token;switch(e.type){case"punc":if("["===e.value){o();var t=me(!1);return p("]"),t}u(e);case"operator":if("*"===e.value)return o(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||u(e);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return o(),e.value;default:u(e)}}function re(){var e=n.token;return"name"!=e.type&&"privatename"!=e.type&&u(),o(),e.value}function ne(e){var t=n.token.value;return new("this"==t?Ts:"super"==t?Cs:e)({name:String(t),start:n.token,end:n.token})}function ie(e){var t=e.name;m()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),n.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof as&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function ae(e,t){if(!i("name"))return t||c("Name expected"),null;var r=ne(e);return ie(r),o(),r}function oe(e){var t=e.start,n=t.comments_before;const i=r.get(t);for(var a=null!=i?i:n.length;--a>=0;){var o=n[a];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){Ai(e,Hs);break}if(/[@#]__INLINE__/.test(o.value)){Ai(e,$s);break}if(/[@#]__NOINLINE__/.test(o.value)){Ai(e,Gs);break}}}}var se=(e,t,r)=>{var n=e.start;if(i("punc",".")){o();const a=i("privatename")?Po:Fo;return se(new a({start:n,expression:e,optional:!1,property:re(),end:s()}),t,r)}if(i("punc","[")){o();var a=me(!0);return p("]"),se(new Io({start:n,expression:e,optional:!1,property:a,end:s()}),t,r)}if(t&&i("punc","(")){o();var c=new ko({start:n,expression:e,optional:!1,args:ce(),end:s()});return oe(c),se(c,!0,r)}if(i("punc","?.")){let r;if(o(),t&&i("punc","(")){o();const t=new ko({start:n,optional:!0,expression:e,args:ce(),end:s()});oe(t),r=se(t,!0,!0)}else if(i("name")||i("privatename")){const a=i("privatename")?Po:Fo;r=se(new a({start:n,expression:e,optional:!0,property:re(),end:s()}),t,!0)}else if(i("punc","[")){o();const i=me(!0);p("]"),r=se(new Io({start:n,expression:e,optional:!0,property:i,end:s()}),t,!0)}return r||u(),r instanceof Oo?r:new Oo({start:n,expression:r,end:s()})}return i("template_head")?(r&&u(),se(new Ya({start:n,prefix:e,template_string:W(),end:s()}),t)):e};function ce(){for(var e=[];!i("punc",")");)i("expand","...")?(o(),e.push(new Wa({start:s(),expression:me(!1),end:s()}))):e.push(me(!1)),i("punc",")")||p(",");return o(),e}var le=(e,t)=>{var r=n.token;if("name"==r.type&&"await"==r.value&&g())return o(),g()||c("Unexpected await expression outside async function",n.prev.line,n.prev.col,n.prev.pos),new so({start:s(),end:n.token,expression:le(!0)});if(i("operator")&&da.has(r.value)){o(),b();var a=ue(Ro,r,le(e));return a.start=r,a.end=s(),a}for(var l=z(e,t);i("operator")&&pa.has(n.token.value)&&!_(n.token);)l instanceof Ga&&u(),(l=ue(Lo,n.token,l)).start=r,l.end=n.token,o();return l};function ue(e,t,r){var i=t.value;switch(i){case"++":case"--":pe(r)||c("Invalid use of "+i+" operator",t.line,t.col,t.pos);break;case"delete":r instanceof xs&&n.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",r.start.line,r.start.col,r.start.pos)}return new e({operator:i,expression:r})}var de=(e,t,r)=>{var a=i("operator")?n.token.value:null;"in"==a&&r&&(a=null),"**"==a&&e instanceof Ro&&!ca(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&u(e.start);var s=null!=a?ma[a]:null;if(null!=s&&(s>t||"**"===a&&t===s)){o();var c=de(le(!0),s,r);return de(new Bo({start:e.start,left:e,operator:a,right:c,end:c.end}),t,r)}return e};function pe(e){return e instanceof wo||e instanceof xs}function _e(e){if(e instanceof zo)e=new Xa({start:e.start,names:e.properties.map(_e),is_array:!1,end:e.end});else if(e instanceof Ko){for(var t=[],r=0;r<e.elements.length;r++)e.elements[r]instanceof Wa&&(r+1!==e.elements.length&&l(e.elements[r].start,"Spread must the be last element in destructuring array"),e.elements[r].expression=_e(e.elements[r].expression)),t.push(_e(e.elements[r]));e=new Xa({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof Wo?e.value=_e(e.value):e instanceof Uo&&(e=new Vo({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var fe=e=>{b();var t=n.token;if("name"==t.type&&"yield"==t.value){if(m())return o(),(()=>{m()||c("Unexpected yield expression outside generator function",n.prev.line,n.prev.col,n.prev.pos);var e=n.token,t=!1,r=!0;return f()||i("punc")&&Hi.has(n.token.value)?r=!1:i("operator","*")&&(t=!0,o()),new co({start:e,is_star:t,expression:r?me():null,end:s()})})();n.input.has_directive("use strict")&&l(n.token,"Unexpected yield identifier inside strict mode")}var r=(e=>{var t=n.token,r=(e=>de(le(!0,!0),0,e))(e);if(i("operator","?")){o();var a=me(!1);return p(":"),new jo({start:t,condition:r,consequent:a,alternative:me(!1,e),end:s()})}return r})(e),a=n.token.value;if(i("operator")&&_a.has(a)){if(pe(r)||(r=_e(r))instanceof Xa)return o(),new Uo({start:t,left:r,operator:a,right:fe(e),logical:fa.has(a),end:s()});c("Invalid assignment")}return r},me=(e,t)=>{for(var r=n.token,s=[];s.push(fe(t)),e&&i("punc",",");)o(),e=!0;return 1==s.length?s[0]:new No({start:r,expressions:s,end:a()})};function ge(e){++n.in_loop;var t=e();return--n.in_loop,t}return t.expression?me(!0):(()=>{var e=n.token,r=[];for(n.input.push_directives_stack(),t.module&&n.input.add_directive("use strict");!i("eof");)r.push(x());n.input.pop_directives_stack();var a=s(),o=t.toplevel;return o?(o.body=o.body.concat(r),o.end=a):o=new za({start:e,body:r,end:a}),o})()}function ya(e,t,r,n=Ea){var i=t=t?t.split(/\s+/):[];n&&n.PROPS&&(t=t.concat(n.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",o=t.length;--o>=0;)a+="this."+t[o]+" = props."+t[o]+";";const s=n&&Object.create(n.prototype);(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}",a+="this.flags = 0;",a+="}";var c=new Function(a)();if(s&&(c.prototype=s,c.BASE=n),n&&n.SUBCLASSES.push(c),c.prototype.CTOR=c,c.prototype.constructor=c,c.PROPS=t||null,c.SELF_PROPS=i,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(o in r)Si(r,o)&&("$"===o[0]?c[o.substr(1)]=r[o]:c.prototype[o]=r[o]);return c.DEFMETHOD=function(e,t){this.prototype[e]=t},c}const va=(e,t)=>Boolean(e.flags&t),ba=(e,t,r)=>{r?e.flags|=t:e.flags&=~t};class xa{constructor(e,t,r,n,i,a,o,s,c){this.flags=a?1:0,this.type=e,this.value=t,this.line=r,this.col=n,this.pos=i,this.comments_before=o,this.comments_after=s,this.file=c,Object.seal(this)}get nlb(){return va(this,1)}set nlb(e){ba(this,1,e)}get quote(){return va(this,4)?va(this,2)?"'":'"':""}set quote(e){ba(this,2,"'"===e),ba(this,4,!!e)}}var Ea=ya("Node","start end",{_clone(e){if(e){var t=this.clone();return t.transform(new Js((e=>{if(e!==t)return e.clone(!0)})))}return new this.CTOR(this)},clone(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk(e){return e._visit(this)},walk(e){return this._walk(e)},_children_backwards(){}},null),Sa=ya("Statement",null,{$documentation:"Base class of all statements"}),Da=ya("Debugger",null,{$documentation:"Represents a debugger statement"},Sa),Ta=ya("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},Sa),Ca=ya("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk(e){return e._visit(this,(function(){this.body._walk(e)}))},_children_backwards(e){e(this.body)}},Sa);function ka(e,t){const r=e.body;for(var n=0,i=r.length;n<i;n++)r[n]._walk(t)}function Aa(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var Na=ya("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk(e){return e._visit(this,(function(){ka(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:Aa},Sa),wa=ya("BlockStatement",null,{$documentation:"A block statement"},Na),Fa=ya("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},Sa),Pa=ya("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},Sa),Ia=ya("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk(e){return e._visit(this,(function(){this.label._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.label)},clone(e){var t=this._clone(e);if(e){var r=t.label,n=this.label;t.walk(new Ws((e=>{e instanceof io&&e.label&&e.label.thedef===n&&(e.label.thedef=r,r.references.push(e))})))}return t}},Pa),Oa=ya("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:Aa},Pa),Ma=ya("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Oa),Ra=ya("Do",null,{$documentation:"A `do` statement",_walk(e){return e._visit(this,(function(){this.body._walk(e),this.condition._walk(e)}))},_children_backwards(e){e(this.condition),e(this.body)}},Ma),La=ya("While",null,{$documentation:"A `while` statement",_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.condition)}},Ma),Ba=ya("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk(e){return e._visit(this,(function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},Oa),ja=ya("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk(e){return e._visit(this,(function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},Oa),Ua=ya("ForOf","await",{$documentation:"A `for ... of` statement"},ja),Va=ya("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.expression)}},Pa),Ka=ya("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone(e,t){var r=this._clone(e);return e&&this.variables&&t&&!this._block_scope?r.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope}):(this.variables&&(r.variables=new Map(this.variables)),this.functions&&(r.functions=new Map(this.functions)),this.enclosed&&(r.enclosed=this.enclosed.slice()),this._block_scope&&(r._block_scope=this._block_scope)),r},pinned(){return this.uses_eval||this.uses_with}},Na),za=ya("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs(e){var t=this.body,r="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return(r=ha(r)).transform(new Js((e=>{if(e instanceof Ta&&"$ORIG"==e.value)return fi.splice(t)})))},wrap_enclose(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var r=this.body;return ha(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Js((e=>{if(e instanceof Ta&&"$ORIG"==e.value)return fi.splice(r)})))}},Ka),Wa=ya("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk(e){return e._visit(this,(function(){this.expression.walk(e)}))},_children_backwards(e){e(this.expression)}}),Ja=ya("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof Xa?e.push(...this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e);for(var t=this.argnames,r=0,n=t.length;r<n;r++)t[r]._walk(e);ka(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);for(t=this.argnames.length;t--;)e(this.argnames[t]);this.name&&e(this.name)},is_braceless(){return this.body[0]instanceof ro&&this.body[0].value}},Ka),Ha=ya("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},Ja),$a=ya("Function",null,{$documentation:"A function expression"},Ja),Ga=ya("Arrow",null,{$documentation:"An ES6 Arrow function ((a) => b)"},Ja),qa=ya("Defun",null,{$documentation:"A function definition"},Ja),Xa=ya("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk(e){return e._visit(this,(function(){this.names.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols(){var e=[];return this.walk(new Ws((t=>{t instanceof ns&&e.push(t)}))),e}}),Ya=ya("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk(e){return e._visit(this,(function(){this.prefix._walk(e),this.template_string._walk(e)}))},_children_backwards(e){e(this.template_string),e(this.prefix)}}),Qa=ya("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk(e){return e._visit(this,(function(){this.segments.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),Za=ya("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),eo=ya("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},Sa),to=ya("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},eo),ro=ya("Return",null,{$documentation:"A `return` statement"},to),no=ya("Throw",null,{$documentation:"A `throw` statement"},to),io=ya("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},eo),ao=ya("Break",null,{$documentation:"A `break` statement"},io),oo=ya("Continue",null,{$documentation:"A `continue` statement"},io),so=ya("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),co=ya("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),lo=ya("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},Pa),uo=ya("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),ka(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},Na),po=ya("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},Na),_o=ya("Default",null,{$documentation:"A `default` switch branch"},po),fo=ya("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),ka(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},po),mo=ya("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk(e){return e._visit(this,(function(){ka(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(;t--;)e(this.body[t])}},Na),go=ya("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk(e){return e._visit(this,(function(){this.argname&&this.argname._walk(e),ka(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},Na),ho=ya("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},Na),yo=ya("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk(e){return e._visit(this,(function(){for(var t=this.definitions,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.definitions.length;for(;t--;)e(this.definitions[t])}},Sa),vo=ya("Var",null,{$documentation:"A `var` statement"},yo),bo=ya("Let",null,{$documentation:"A `let` statement"},yo),xo=ya("Const",null,{$documentation:"A `const` statement"},yo),Eo=ya("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk(e){return e._visit(this,(function(){this.name._walk(e),this.value&&this.value._walk(e)}))},_children_backwards(e){this.value&&e(this.value),e(this.name)}}),So=ya("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk(e){return e._visit(this,(function(){this.foreign_name._walk(e),this.name._walk(e)}))},_children_backwards(e){e(this.name),e(this.foreign_name)}}),Do=ya("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk(e){return e._visit(this,(function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach((t=>{t._walk(e)})),this.module_name._walk(e)}))},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(;t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),To=ya("ImportMeta",null,{$documentation:"A reference to import.meta"}),Co=ya("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk(e){return e._visit(this,(function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach((t=>{t._walk(e)})),this.module_name&&this.module_name._walk(e)}))},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(;t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},Sa),ko=ya("Call","expression args optional _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){null==this._annotations&&(this._annotations=0)},_walk(e){return e._visit(this,(function(){for(var t=this.args,r=0,n=t.length;r<n;r++)t[r]._walk(e);this.expression._walk(e)}))},_children_backwards(e){let t=this.args.length;for(;t--;)e(this.args[t]);e(this.expression)}}),Ao=ya("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},ko),No=ya("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk(e){return e._visit(this,(function(){this.expressions.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.expressions.length;for(;t--;)e(this.expressions[t])}}),wo=ya("PropAccess","expression property optional",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),Fo=ya("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},wo),Po=ya("DotHash","",{$documentation:"A dotted property access to a private property",_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},wo),Io=ya("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.property._walk(e)}))},_children_backwards(e){e(this.property),e(this.expression)}},wo),Oo=ya("Chain","expression",{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Mo=ya("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Ro=ya("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Mo),Lo=ya("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Mo),Bo=ya("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk(e){return e._visit(this,(function(){this.left._walk(e),this.right._walk(e)}))},_children_backwards(e){e(this.right),e(this.left)}}),jo=ya("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)}))},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),Uo=ya("Assign","logical",{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},Bo),Vo=ya("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Bo),Ko=ya("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk(e){return e._visit(this,(function(){for(var t=this.elements,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.elements.length;for(;t--;)e(this.elements[t])}}),zo=ya("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk(e){return e._visit(this,(function(){for(var t=this.properties,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t])}}),Wo=ya("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk(e){return e._visit(this,(function(){this.key instanceof Ea&&this.key._walk(e),this.value._walk(e)}))},_children_backwards(e){e(this.value),this.key instanceof Ea&&e(this.key)}}),Jo=ya("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof Ea}},Wo),Ho=ya("PrivateSetter","static",{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key:()=>!1},Wo),$o=ya("PrivateGetter","static",{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key:()=>!1},Wo),Go=ya("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof ps)}},Wo),qo=ya("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof ps)}},Wo),Xo=ya("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof ps)}},Wo),Yo=ya("PrivateMethod","",{$documentation:"A private class method inside a class"},Xo),Qo=ya("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach((t=>t._walk(e)))}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},Ka),Zo=ya("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk(e){return e._visit(this,(function(){this.key instanceof Ea&&this.key._walk(e),this.value instanceof Ea&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof Ea&&e(this.value),this.key instanceof Ea&&e(this.key)},computed_key(){return!(this.key instanceof _s)}},Wo),es=ya("ClassProperty","",{$documentation:"A class property for a private property"},Zo),ts=ya("DefClass",null,{$documentation:"A class definition"},Qo),rs=ya("ClassExpression",null,{$documentation:"A class expression."},Qo),ns=ya("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),is=ya("NewTarget",null,{$documentation:"A reference to new.target"}),as=ya("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},ns),os=ya("SymbolVar",null,{$documentation:"Symbol defining a variable"},as),ss=ya("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},as),cs=ya("SymbolConst",null,{$documentation:"A constant declaration"},ss),ls=ya("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},ss),us=ya("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},os),ds=ya("SymbolDefun",null,{$documentation:"Symbol defining a function"},as),ps=ya("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},ns),_s=ya("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},ns),fs=ya("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},as),ms=ya("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ss),gs=ya("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},as),hs=ya("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ss),ys=ya("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},ss),vs=ya("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},ns),bs=ya("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize(){this.references=[],this.thedef=this}},ns),xs=ya("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},ns),Es=ya("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},xs),Ss=ya("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},ns),Ds=ya("LabelRef",null,{$documentation:"Reference to a label symbol"},ns),Ts=ya("This",null,{$documentation:"The `this` symbol"},ns),Cs=ya("Super",null,{$documentation:"The `super` symbol"},Ts),ks=ya("Constant",null,{$documentation:"Base class for all constants",getValue(){return this.value}}),As=ya("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},ks),Ns=ya("Number","value raw",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},ks),ws=ya("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},ks),Fs=ya("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},ks),Ps=ya("Atom",null,{$documentation:"Base class for atoms"},ks),Is=ya("Null",null,{$documentation:"The `null` atom",value:null},Ps),Os=ya("NaN",null,{$documentation:"The impossible value",value:NaN},Ps),Ms=ya("Undefined",null,{$documentation:"The `undefined` value",value:void 0},Ps),Rs=ya("Hole",null,{$documentation:"A hole in an array",value:void 0},Ps),Ls=ya("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Ps),Bs=ya("Boolean",null,{$documentation:"Base class for booleans"},Ps),js=ya("False",null,{$documentation:"The `false` atom",value:!1},Bs),Us=ya("True",null,{$documentation:"The `true` atom",value:!0},Bs);function Vs(e,t,r=[e]){const n=r.push.bind(r);for(;r.length;){const e=r.pop(),i=t(e,r);if(i){if(i===zs)return!0}else e._children_backwards(n)}return!1}function Ks(e,t,r){const n=[e],i=n.push.bind(n),a=r?r.slice():[],o=[];let s;const c={parent:(e=0)=>-1===e?s:r&&e>=a.length?(e-=a.length,r[r.length-(e+1)]):a[a.length-(1+e)]};for(;n.length;){for(s=n.pop();o.length&&n.length==o[o.length-1];)a.pop(),o.pop();const e=t(s,c);if(e){if(e===zs)return!0;continue}const r=n.length;s._children_backwards(i),n.length>r&&(a.push(s),o.push(r-1))}return!1}const zs=Symbol("abort walk");class Ws{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var r=this.visit(e,t?()=>{t.call(e)}:li);return!r&&t&&t.call(e),this.pop(),r}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Ja?this.directives=Object.create(this.directives):e instanceof Ta&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof Qo&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Ja||e instanceof Qo)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,r=t.length;--r>=0;){var n=t[r];if(n instanceof e)return n}}has_directive(e){var t=this.directives[e];if(t)return t;var r=this.stack[this.stack.length-1];if(r instanceof Ka&&r.body)for(var n=0;n<r.body.length;++n){var i=r.body[n];if(!(i instanceof Ta))break;if(i.value==e)return i}}loopcontrol_target(e){var t=this.stack;if(e.label){for(var r=t.length;--r>=0;)if((n=t[r])instanceof Ia&&n.label.name==e.label.name)return n.body}else for(r=t.length;--r>=0;){var n;if((n=t[r])instanceof Oa||e instanceof ao&&n instanceof uo)return n}}}class Js extends Ws{constructor(e,t){super(),this.before=e,this.after=t}}const Hs=1,$s=2,Gs=4,qs=Object.freeze({__proto__:null,AST_Accessor:Ha,AST_Array:Ko,AST_Arrow:Ga,AST_Assign:Uo,AST_Atom:Ps,AST_Await:so,AST_BigInt:ws,AST_Binary:Bo,AST_Block:Na,AST_BlockStatement:wa,AST_Boolean:Bs,AST_Break:ao,AST_Call:ko,AST_Case:fo,AST_Catch:go,AST_Chain:Oo,AST_Class:Qo,AST_ClassExpression:rs,AST_ClassPrivateProperty:es,AST_ClassProperty:Zo,AST_ConciseMethod:Xo,AST_Conditional:jo,AST_Const:xo,AST_Constant:ks,AST_Continue:oo,AST_Debugger:Da,AST_Default:_o,AST_DefaultAssign:Vo,AST_DefClass:ts,AST_Definitions:yo,AST_Defun:qa,AST_Destructuring:Xa,AST_Directive:Ta,AST_Do:Ra,AST_Dot:Fo,AST_DotHash:Po,AST_DWLoop:Ma,AST_EmptyStatement:Fa,AST_Exit:to,AST_Expansion:Wa,AST_Export:Co,AST_False:js,AST_Finally:ho,AST_For:Ba,AST_ForIn:ja,AST_ForOf:Ua,AST_Function:$a,AST_Hole:Rs,AST_If:lo,AST_Import:Do,AST_ImportMeta:To,AST_Infinity:Ls,AST_IterationStatement:Oa,AST_Jump:eo,AST_Label:bs,AST_LabeledStatement:Ia,AST_LabelRef:Ds,AST_Lambda:Ja,AST_Let:bo,AST_LoopControl:io,AST_NameMapping:So,AST_NaN:Os,AST_New:Ao,AST_NewTarget:is,AST_Node:Ea,AST_Null:Is,AST_Number:Ns,AST_Object:zo,AST_ObjectGetter:qo,AST_ObjectKeyVal:Jo,AST_ObjectProperty:Wo,AST_ObjectSetter:Go,AST_PrefixedTemplateString:Ya,AST_PrivateGetter:$o,AST_PrivateMethod:Yo,AST_PrivateSetter:Ho,AST_PropAccess:wo,AST_RegExp:Fs,AST_Return:ro,AST_Scope:Ka,AST_Sequence:No,AST_SimpleStatement:Ca,AST_Statement:Sa,AST_StatementWithBody:Pa,AST_String:As,AST_Sub:Io,AST_Super:Cs,AST_Switch:uo,AST_SwitchBranch:po,AST_Symbol:ns,AST_SymbolBlockDeclaration:ss,AST_SymbolCatch:hs,AST_SymbolClass:gs,AST_SymbolClassProperty:_s,AST_SymbolConst:cs,AST_SymbolDeclaration:as,AST_SymbolDefClass:ms,AST_SymbolDefun:ds,AST_SymbolExport:Es,AST_SymbolExportForeign:Ss,AST_SymbolFunarg:us,AST_SymbolImport:ys,AST_SymbolImportForeign:vs,AST_SymbolLambda:fs,AST_SymbolLet:ls,AST_SymbolMethod:ps,AST_SymbolRef:xs,AST_SymbolVar:os,AST_TemplateSegment:Za,AST_TemplateString:Qa,AST_This:Ts,AST_Throw:no,AST_Token:xa,AST_Toplevel:za,AST_True:Us,AST_Try:mo,AST_Unary:Mo,AST_UnaryPostfix:Lo,AST_UnaryPrefix:Ro,AST_Undefined:Ms,AST_Var:vo,AST_VarDef:Eo,AST_While:La,AST_With:Va,AST_Yield:co,TreeTransformer:Js,TreeWalker:Ws,walk:Vs,walk_abort:zs,walk_body:ka,walk_parent:Ks,_INLINE:$s,_NOINLINE:Gs,_PURE:Hs});function Xs(e,t){e.DEFMETHOD("transform",(function(e,r){let n;if(e.push(this),e.before&&(n=e.before(this,t,r)),void 0===n&&(n=this,t(n,e),e.after)){const t=e.after(n,r);void 0!==t&&(n=t)}return e.pop(),n}))}function Ys(e,t){return fi(e,(e=>e.transform(t,!0)))}function Qs(e){let t=e.parent(-1);for(let r,n=0;r=e.parent(n);n++){if(r instanceof Sa&&r.body===t)return!0;if(!(r instanceof No&&r.expressions[0]===t||"Call"===r.TYPE&&r.expression===t||r instanceof Ya&&r.prefix===t||r instanceof Fo&&r.expression===t||r instanceof Io&&r.expression===t||r instanceof jo&&r.condition===t||r instanceof Bo&&r.left===t||r instanceof Lo&&r.expression===t))return!1;t=r}}function Zs(e){return e instanceof zo||(e instanceof No?Zs(e.expressions[0]):"Call"===e.TYPE?Zs(e.expression):e instanceof Ya?Zs(e.prefix):e instanceof Fo||e instanceof Io?Zs(e.expression):e instanceof jo?Zs(e.condition):e instanceof Bo?Zs(e.left):e instanceof Lo&&Zs(e.expression))}Xs(Ea,li),Xs(Ia,((e,t)=>{e.label=e.label.transform(t),e.body=e.body.transform(t)})),Xs(Ca,((e,t)=>{e.body=e.body.transform(t)})),Xs(Na,((e,t)=>{e.body=Ys(e.body,t)})),Xs(Ra,((e,t)=>{e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),Xs(La,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),Xs(Ba,((e,t)=>{e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),Xs(ja,((e,t)=>{e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),Xs(Va,((e,t)=>{e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),Xs(to,((e,t)=>{e.value&&(e.value=e.value.transform(t))})),Xs(io,((e,t)=>{e.label&&(e.label=e.label.transform(t))})),Xs(lo,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),Xs(uo,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ys(e.body,t)})),Xs(fo,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ys(e.body,t)})),Xs(mo,((e,t)=>{e.body=Ys(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),Xs(go,((e,t)=>{e.argname&&(e.argname=e.argname.transform(t)),e.body=Ys(e.body,t)})),Xs(yo,((e,t)=>{e.definitions=Ys(e.definitions,t)})),Xs(Eo,((e,t)=>{e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),Xs(Xa,((e,t)=>{e.names=Ys(e.names,t)})),Xs(Ja,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.argnames=Ys(e.argnames,t),e.body instanceof Ea?e.body=e.body.transform(t):e.body=Ys(e.body,t)})),Xs(ko,((e,t)=>{e.expression=e.expression.transform(t),e.args=Ys(e.args,t)})),Xs(No,((e,t)=>{const r=Ys(e.expressions,t);e.expressions=r.length?r:[new Ns({value:0})]})),Xs(Fo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Io,((e,t)=>{e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),Xs(Oo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(co,((e,t)=>{e.expression&&(e.expression=e.expression.transform(t))})),Xs(so,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Mo,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(Bo,((e,t)=>{e.left=e.left.transform(t),e.right=e.right.transform(t)})),Xs(jo,((e,t)=>{e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),Xs(Ko,((e,t)=>{e.elements=Ys(e.elements,t)})),Xs(zo,((e,t)=>{e.properties=Ys(e.properties,t)})),Xs(Wo,((e,t)=>{e.key instanceof Ea&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),Xs(Qo,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=Ys(e.properties,t)})),Xs(Wa,((e,t)=>{e.expression=e.expression.transform(t)})),Xs(So,((e,t)=>{e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),Xs(Do,((e,t)=>{e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&Ys(e.imported_names,t),e.module_name=e.module_name.transform(t)})),Xs(Co,((e,t)=>{e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&Ys(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),Xs(Qa,((e,t)=>{e.segments=Ys(e.segments,t)})),Xs(Ya,((e,t)=>{e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})),function(){var e=e=>{for(var t=!0,r=0;r<e.length;r++)t&&e[r]instanceof Sa&&e[r].body instanceof As?e[r]=new Ta({start:e[r].start,end:e[r].end,value:e[r].body.value}):!t||e[r]instanceof Sa&&e[r].body instanceof As||(t=!1);return e},t={Program:t=>new za({start:r(t),end:n(t),body:e(t.body.map(o))}),ArrayPattern:e=>new Xa({start:r(e),end:n(e),names:e.elements.map((e=>null===e?new Rs:o(e))),is_array:!0}),ObjectPattern:e=>new Xa({start:r(e),end:n(e),names:e.properties.map(o),is_array:!1}),AssignmentPattern:e=>new Vo({start:r(e),end:n(e),left:o(e.left),operator:"=",right:o(e.right)}),SpreadElement:e=>new Wa({start:r(e),end:n(e),expression:o(e.argument)}),RestElement:e=>new Wa({start:r(e),end:n(e),expression:o(e.argument)}),TemplateElement:e=>new Za({start:r(e),end:n(e),value:e.value.cooked,raw:e.value.raw}),TemplateLiteral(e){for(var t=[],i=0;i<e.quasis.length;i++)t.push(o(e.quasis[i])),e.expressions[i]&&t.push(o(e.expressions[i]));return new Qa({start:r(e),end:n(e),segments:t})},TaggedTemplateExpression:e=>new Ya({start:r(e),end:n(e),template_string:o(e.quasi),prefix:o(e.tag)}),FunctionDeclaration:t=>new qa({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),FunctionExpression:t=>new $a({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),ArrowFunctionExpression(e){const t="BlockStatement"===e.body.type?o(e.body).body:[mi(ro,{},{value:o(e.body)})];return new Ga({start:r(e),end:n(e),argnames:e.params.map(o),body:t,async:e.async})},ExpressionStatement:e=>new Ca({start:r(e),end:n(e),body:o(e.expression)}),TryStatement(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new mo({start:r(e),end:n(e),body:o(e.block).body,bcatch:o(t[0]),bfinally:e.finalizer?new ho(o(e.finalizer)):null})},Property(e){var t=e.key,i={start:r(t||e.value),end:n(e.value),key:"Identifier"==t.type?t.name:t.value,value:o(e.value)};return e.computed&&(i.key=o(e.key)),e.method?(i.is_generator=e.value.generator,i.async=e.value.async,e.computed?i.key=o(e.key):i.key=new ps({name:i.key}),new Xo(i)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(i.key=o(t)),new Jo(i)):("string"!=typeof i.key&&"number"!=typeof i.key||(i.key=new ps({name:i.key})),i.value=new Ha(i.value),"get"==e.kind?new qo(i):"set"==e.kind?new Go(i):"method"==e.kind?(i.async=e.value.async,i.is_generator=e.value.generator,i.quote=e.computed?'"':null,new Xo(i)):void 0)},MethodDefinition(e){var t={start:r(e),end:n(e),key:e.computed?o(e.key):new ps({name:e.key.name||e.key.value}),value:o(e.value),static:e.static};return"get"==e.kind?new qo(t):"set"==e.kind?new Go(t):(t.is_generator=e.value.generator,t.async=e.value.async,new Xo(t))},FieldDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=o(e.key)}return new Zo({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},PropertyDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in PropertyDefinition");t=o(e.key)}return new Zo({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},ArrayExpression:e=>new Ko({start:r(e),end:n(e),elements:e.elements.map((e=>null===e?new Rs:o(e)))}),ObjectExpression:e=>new zo({start:r(e),end:n(e),properties:e.properties.map((e=>("SpreadElement"===e.type||(e.type="Property"),o(e))))}),SequenceExpression:e=>new No({start:r(e),end:n(e),expressions:e.expressions.map(o)}),MemberExpression:e=>new(e.computed?Io:Fo)({start:r(e),end:n(e),property:e.computed?o(e.property):e.property.name,expression:o(e.object),optional:e.optional||!1}),ChainExpression:e=>new Oo({start:r(e),end:n(e),expression:o(e.expression)}),SwitchCase:e=>new(e.test?fo:_o)({start:r(e),end:n(e),expression:o(e.test),body:e.consequent.map(o)}),VariableDeclaration:e=>new("const"===e.kind?xo:"let"===e.kind?bo:vo)({start:r(e),end:n(e),definitions:e.declarations.map(o)}),ImportDeclaration(e){var t=null,i=null;return e.specifiers.forEach((e=>{"ImportSpecifier"===e.type?(i||(i=[]),i.push(new So({start:r(e),end:n(e),foreign_name:o(e.imported),name:o(e.local)}))):"ImportDefaultSpecifier"===e.type?t=o(e.local):"ImportNamespaceSpecifier"===e.type&&(i||(i=[]),i.push(new So({start:r(e),end:n(e),foreign_name:new vs({name:"*"}),name:o(e.local)})))})),new Do({start:r(e),end:n(e),imported_name:t,imported_names:i,module_name:o(e.source)})},ExportAllDeclaration:e=>new Co({start:r(e),end:n(e),exported_names:[new So({name:new Ss({name:"*"}),foreign_name:new Ss({name:"*"})})],module_name:o(e.source)}),ExportNamedDeclaration:e=>new Co({start:r(e),end:n(e),exported_definition:o(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((e=>new So({foreign_name:o(e.exported),name:o(e.local)}))):null,module_name:o(e.source)}),ExportDefaultDeclaration:e=>new Co({start:r(e),end:n(e),exported_value:o(e.declaration),is_default:!0}),Literal(e){var t=e.value,i={start:r(e),end:n(e)},a=e.regex;if(a&&a.pattern)return i.value={source:a.pattern,flags:a.flags},new Fs(i);if(a){const r=e.raw||t,n=r.match(/^\/(.*)\/(\w*)$/);if(!n)throw new Error("Invalid regex source "+r);const[a,o,s]=n;return i.value={source:o,flags:s},new Fs(i)}if(null===t)return new Is(i);switch(typeof t){case"string":return i.value=t,new As(i);case"number":return i.value=t,i.raw=e.raw||t.toString(),new Ns(i);case"boolean":return new(t?Us:js)(i)}},MetaProperty:e=>"new"===e.meta.name&&"target"===e.property.name?new is({start:r(e),end:n(e)}):"import"===e.meta.name&&"meta"===e.property.name?new To({start:r(e),end:n(e)}):void 0,Identifier(e){var t=a[a.length-2];return new("LabeledStatement"==t.type?bs:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?cs:"let"==t.kind?ls:os:/Import.*Specifier/.test(t.type)?t.local===e?ys:vs:"ExportSpecifier"==t.type?t.local===e?Es:Ss:"FunctionExpression"==t.type?t.id===e?fs:us:"FunctionDeclaration"==t.type?t.id===e?ds:us:"ArrowFunctionExpression"==t.type?t.params.includes(e)?us:xs:"ClassExpression"==t.type?t.id===e?gs:xs:"Property"==t.type?t.key===e&&t.computed||t.value===e?xs:ps:"PropertyDefinition"==t.type||"FieldDefinition"===t.type?t.key===e&&t.computed||t.value===e?xs:_s:"ClassDeclaration"==t.type?t.id===e?ms:xs:"MethodDefinition"==t.type?t.computed?xs:ps:"CatchClause"==t.type?hs:"BreakStatement"==t.type||"ContinueStatement"==t.type?Ds:xs)({start:r(e),end:n(e),name:e.name})},BigIntLiteral:e=>new ws({start:r(e),end:n(e),value:e.value})};function r(e){var t=e.loc,r=t&&t.start,n=e.range;return new xa("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.start,!1,[],[],t&&t.source)}function n(e){var t=e.loc,r=t&&t.end,n=e.range;return new xa("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.end,!1,[],[],t&&t.source)}function i(e,i,a){var c="function From_Moz_"+e+"(M){\n";c+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var u="function To_Moz_"+e+"(M){\n";u+="return {\ntype: "+JSON.stringify(e),a&&a.split(/\s*,\s*/).forEach((e=>{var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var r=t[1],n=t[2],i=t[3];switch(c+=",\n"+i+": ",u+=",\n"+r+": ",n){case"@":c+="M."+r+".map(from_moz)",u+="M."+i+".map(to_moz)";break;case">":c+="from_moz(M."+r+")",u+="to_moz(M."+i+")";break;case"=":c+="M."+r,u+="M."+i;break;case"%":c+="from_moz(M."+r+").body",u+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),c+="\n})\n}",u+="\n}\n}",c=new Function("U2","my_start_token","my_end_token","from_moz","return("+c+")")(qs,r,n,o),u=new Function("to_moz","to_moz_block","to_moz_scope","return("+u+")")(l,d,p),t[e]=c,s(i,u)}t.UpdateExpression=t.UnaryExpression=e=>new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Ro:Lo)({start:r(e),end:n(e),operator:e.operator,expression:o(e.argument)}),t.ClassDeclaration=t.ClassExpression=e=>new("ClassDeclaration"===e.type?ts:rs)({start:r(e),end:n(e),name:o(e.id),extends:o(e.superClass),properties:e.body.body.map(o)}),i("EmptyStatement",Fa),i("BlockStatement",wa,"body@body"),i("IfStatement",lo,"test>condition, consequent>body, alternate>alternative"),i("LabeledStatement",Ia,"label>label, body>body"),i("BreakStatement",ao,"label>label"),i("ContinueStatement",oo,"label>label"),i("WithStatement",Va,"object>expression, body>body"),i("SwitchStatement",uo,"discriminant>expression, cases@body"),i("ReturnStatement",ro,"argument>value"),i("ThrowStatement",no,"argument>value"),i("WhileStatement",La,"test>condition, body>body"),i("DoWhileStatement",Ra,"test>condition, body>body"),i("ForStatement",Ba,"init>init, test>condition, update>step, body>body"),i("ForInStatement",ja,"left>init, right>object, body>body"),i("ForOfStatement",Ua,"left>init, right>object, body>body, await=await"),i("AwaitExpression",so,"argument>expression"),i("YieldExpression",co,"argument>expression, delegate=is_star"),i("DebuggerStatement",Da),i("VariableDeclarator",Eo,"id>name, init>value"),i("CatchClause",go,"param>argname, body%body"),i("ThisExpression",Ts),i("Super",Cs),i("BinaryExpression",Bo,"operator=operator, left>left, right>right"),i("LogicalExpression",Bo,"operator=operator, left>left, right>right"),i("AssignmentExpression",Uo,"operator=operator, left>left, right>right"),i("ConditionalExpression",jo,"test>condition, consequent>consequent, alternate>alternative"),i("NewExpression",Ao,"callee>expression, arguments@args"),i("CallExpression",ko,"callee>expression, optional=optional, arguments@args"),s(za,(e=>p("Program",e))),s(Wa,(e=>({type:u()?"RestElement":"SpreadElement",argument:l(e.expression)}))),s(Ya,(e=>({type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}))),s(Qa,(e=>{for(var t=[],r=[],n=0;n<e.segments.length;n++)n%2!=0?r.push(l(e.segments[n])):t.push({type:"TemplateElement",value:{raw:e.segments[n].raw,cooked:e.segments[n].value},tail:n===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:r}})),s(qa,(e=>({type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:p("BlockStatement",e)}))),s($a,((e,t)=>{var r=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:r,async:e.async,body:p("BlockStatement",e)}})),s(Ga,(e=>{var t={type:"BlockStatement",body:e.body.map(l)};return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:t}})),s(Xa,(e=>e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)})),s(Ta,(e=>({type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string()},directive:e.value}))),s(Ca,(e=>({type:"ExpressionStatement",expression:l(e.body)}))),s(po,(e=>({type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}))),s(mo,(e=>({type:"TryStatement",block:d(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}))),s(go,(e=>({type:"CatchClause",param:l(e.argname),guard:null,body:d(e)}))),s(yo,(e=>({type:"VariableDeclaration",kind:e instanceof xo?"const":e instanceof bo?"let":"var",declarations:e.definitions.map(l)}))),s(Co,(e=>e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map((e=>({type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}))),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)})),s(Do,(e=>{var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach((e=>{t.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})})),{type:"ImportDeclaration",specifiers:t,source:l(e.module_name)}})),s(To,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}))),s(No,(e=>({type:"SequenceExpression",expressions:e.expressions.map(l)}))),s(Po,(e=>({type:"MemberExpression",object:l(e.expression),computed:!1,property:{type:"PrivateIdentifier",name:e.property},optional:e.optional}))),s(wo,(e=>{var t=e instanceof Io;return{type:"MemberExpression",object:l(e.expression),computed:t,property:t?l(e.property):{type:"Identifier",name:e.property},optional:e.optional}})),s(Oo,(e=>({type:"ChainExpression",expression:l(e.expression)}))),s(Mo,(e=>({type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Ro,argument:l(e.expression)}))),s(Bo,(e=>"="==e.operator&&u()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator||"??"===e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)})),s(Ko,(e=>({type:"ArrayExpression",elements:e.elements.map(l)}))),s(zo,(e=>({type:"ObjectExpression",properties:e.properties.map(l)}))),s(Wo,((e,t)=>{var r,n=e.key instanceof Ea?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(n={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(n={type:"Identifier",name:e.key});var i="string"==typeof e.key||"number"==typeof e.key,a=!i&&(!(e.key instanceof ns)||e.key instanceof xs);return e instanceof Jo?(r="init",a=!i):e instanceof qo?r="get":e instanceof Go&&(r="set"),e instanceof $o||e instanceof Ho?{type:"MethodDefinition",computed:!1,kind:e instanceof $o?"get":"set",static:e.static,key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value)}:e instanceof es?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value),computed:!1,static:e.static}:e instanceof Zo?{type:"PropertyDefinition",key:n,value:l(e.value),computed:a,static:e.static}:t instanceof Qo?{type:"MethodDefinition",computed:a,kind:r,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:a,kind:r,key:n,value:l(e.value)}})),s(Xo,((e,t)=>{if(t instanceof zo)return{type:"Property",computed:!(e.key instanceof ns)||e.key instanceof xs,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)};const r=e instanceof Yo?{type:"PrivateIdentifier",name:e.key.name}:l(e.key);return{type:"MethodDefinition",kind:"constructor"===e.key?"constructor":"method",key:r,value:l(e.value),computed:!(e.key instanceof ns)||e.key instanceof xs,static:e.static}})),s(Qo,(e=>({type:e instanceof rs?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}))),s(is,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}))),s(ns,((e,t)=>{if(e instanceof ps&&t.quote)return{type:"Literal",value:e.name};var r=e.definition();return{type:"Identifier",name:r?r.mangled_name||r.name:e.name}})),s(Fs,(e=>{const t=e.value.source,r=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string(),regex:{pattern:t,flags:r}}})),s(ks,(e=>({type:"Literal",value:e.value,raw:e.raw||e.print_to_string()}))),s(Ps,(e=>({type:"Identifier",name:String(e.value)}))),s(ws,(e=>({type:"BigIntLiteral",value:e.value}))),Bs.DEFMETHOD("to_mozilla_ast",ks.prototype.to_mozilla_ast),Is.DEFMETHOD("to_mozilla_ast",ks.prototype.to_mozilla_ast),Rs.DEFMETHOD("to_mozilla_ast",(()=>null)),Na.DEFMETHOD("to_mozilla_ast",wa.prototype.to_mozilla_ast),Ja.DEFMETHOD("to_mozilla_ast",$a.prototype.to_mozilla_ast);var a=null;function o(e){a.push(e);var r=null!=e?t[e.type](e):null;return a.pop(),r}function s(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return r=t(this,e),n=this.start,i=this.end,n&&i?(null!=n.pos&&null!=i.endpos&&(r.range=[n.pos,i.endpos]),n.line&&(r.loc={start:{line:n.line,column:n.col},end:i.endline?{line:i.endline,column:i.endcol}:null},n.file&&(r.loc.source=n.file)),r):r;var r,n,i}))}Ea.from_mozilla_ast=e=>{var t=a;a=[];var r=o(e);return a=t,r};var c=null;function l(e){null===c&&(c=[]),c.push(e);var t=null!=e?e.to_mozilla_ast(c[c.length-2]):null;return c.pop(),0===c.length&&(c=null),t}function u(){for(var e=c.length;e--;)if(c[e]instanceof Xa)return!0;return!1}function d(e){return{type:"BlockStatement",body:e.body.map(l)}}function p(e,t){var r=t.body.map(l);return t.body[0]instanceof Ca&&t.body[0].body instanceof As&&r.unshift(l(new Fa(t.body[0]))),{type:e,body:r}}}();const ec=/^$|[;{][\s\n]*$/,tc=/[@#]__(PURE|INLINE|NOINLINE)__/g;function rc(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function nc(e){var t=!e;void 0===(e=ci(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var r=ui;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var n=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,n-1),e.comments.substr(n+1))}r=t instanceof RegExp?e=>"comment5"!=e.type&&t.test(e.value):"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?rc:di}var i=0,a=0,o=1,s=0,c="";let l=new Set;var u=e.ascii_only?(t,r)=>(e.ecma>=2015&&!e.safari10&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(e=>"\\u{"+((e,t)=>Yi(e.charCodeAt(0))?65536+(e.charCodeAt(0)-55296<<10)+e.charCodeAt(1)-56320:e.charCodeAt(0))(e).toString(16)+"}"))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(e=>{var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!r){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t}))):e=>e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,((e,t)=>t?"\\u"+t.charCodeAt(0).toString(16):e));function d(t,r){var n=((t,r)=>{var n=0,i=0;function a(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,((r,a)=>{switch(r){case'"':return++n,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(Xi(t,a+1))?"\\x00":"\\0"}return r})),t=u(t),"`"===r)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return a();case 2:return o();case 3:return"'"==r?a():o();default:return n>i?a():o()}})(t,r);return e.inline_script&&(n=(n=(n=n.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),n}var p,_,f=!1,m=!1,g=!1,h=0,y=!1,v=!1,b=-1,x="",E=e.source_map&&[],S=E?()=>{E.forEach((t=>{try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){}})),E=[]}:li,D=e.max_line_len?()=>{if(a>e.max_line_len&&h){var t=c.slice(0,h),r=c.slice(h);if(E){var n=r.length-a;E.forEach((e=>{e.line++,e.col+=n}))}c=t+"\n"+r,o++,s++,a=r.length}h&&(h=0,S())}:li,T=bi("( [ + * / - , . `");function C(t){var r=Xi(t=String(t),0);y&&r&&(y=!1,"\n"!==r&&(C("\n"),A())),v&&r&&(v=!1,/[\s;})]/.test(r)||k()),b=-1;var n=x.charAt(x.length-1);g&&(g=!1,(":"!==n||"}"!==r)&&(r&&";}".includes(r)||";"===n)||(e.semicolons||T.has(r)?(c+=";",a++,s++):(D(),a>0&&(c+="\n",s++,o++,a=0),/^\s+$/.test(t)&&(g=!0)),e.beautify||(m=!1))),m&&((ta(n)&&(ta(r)||"\\"==r)||"/"==r&&r==n||("+"==r||"-"==r)&&r==x)&&(c+=" ",a++,s++),m=!1),p&&(E.push({token:p,name:_,line:o,col:a}),p=!1,h||S()),c+=t,f="("==t[t.length-1],s+=t.length;var i=t.split(/\r?\n/),l=i.length-1;o+=l,a+=i[0].length,l>0&&(D(),a=i[l].length),x=t}var k=e.beautify?()=>{C(" ")}:()=>{m=!0},A=e.beautify?t=>{var r;e.beautify&&C((r=t?.5:0," ".repeat(e.indent_start+i-r*e.indent_level)))}:li,N=e.beautify?(e,t)=>{!0===e&&(e=I());var r=i;i=e;var n=t();return i=r,n}:(e,t)=>t(),w=e.beautify?()=>{if(b<0)return C("\n");"\n"!=c[b]&&(c=c.slice(0,b)+"\n"+c.slice(b),s++,o++),b++}:e.max_line_len?()=>{D(),h=c.length}:li,F=e.beautify?()=>{C(";")}:()=>{g=!0};function P(){g=!1,C(";")}function I(){return i+e.indent_level}function O(){return h&&D(),c}function M(){let e=c.length-1;for(;e>=0;){const t=c.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function R(t){return e.preserve_annotations||(t=t.replace(tc," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}var L=[];return{get:O,toString:O,indent:A,in_directive:!1,use_asm:null,active_scope:null,indentation:()=>i,current_width:()=>a-i,should_break(){return e.width&&this.current_width()>=e.width},has_parens:()=>f,newline:w,print:C,star(){C("*")},space:k,comma(){C(","),k()},colon(){C(":"),k()},last:()=>x,semicolon:F,force_semicolon:P,to_utf8:u,print_name(e){C((e=>(e=e.toString(),u(e,!0)))(e))},print_string(e,t,r){var n=d(e,t);!0!==r||n.includes("\\")||(ec.test(c)||P(),P()),C(n)},print_template_string_chars(e){var t=d(e,"`").replace(/\${/g,"\\${");return C(t.substr(1,t.length-2))},encode_string:d,next_indent:I,with_indent:N,with_block(e){var t;return C("{"),w(),N(I(),(()=>{t=e()})),A(),C("}"),t},with_parens(e){C("(");var t=e();return C(")"),t},with_square(e){C("[");var t=e();return C("]"),t},add_mapping:E?(e,t)=>{p=e,_=t}:li,option:t=>e[t],printed_comments:l,prepend_comments:t?li:function(t){var n=t.start;if(!n)return;var i=this.printed_comments;const a=t instanceof to&&t.value;if(n.comments_before&&i.has(n.comments_before)){if(!a)return;n.comments_before=[]}var o=n.comments_before;if(o||(o=n.comments_before=[]),i.add(o),a){var c=new Ws((e=>{var t=c.parent();if(!(t instanceof to||t instanceof Bo&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof jo&&t.condition===e||t instanceof Fo&&t.expression===e||t instanceof No&&t.expressions[0]===e||t instanceof Io&&t.expression===e||t instanceof Lo))return!0;if(e.start){var r=e.start.comments_before;r&&!i.has(r)&&(i.add(r),o=o.concat(r))}}));c.push(t),t.value.walk(c)}if(0==s){o.length>0&&e.shebang&&"comment5"===o[0].type&&!i.has(o[0])&&(C("#!"+o.shift().value+"\n"),A());var l=e.preamble;l&&C(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(r,t).filter((e=>!i.has(e)))).length){var u=M();o.forEach(((e,t)=>{if(i.add(e),u||(e.nlb?(C("\n"),A(),u=!0):t>0&&k()),/comment[134]/.test(e.type))(r=R(e.value))&&(C("//"+r+"\n"),A()),u=!0;else if("comment2"==e.type){var r;(r=R(e.value))&&C("/*"+r+"*/"),u=!1}})),u||(n.nlb?(C("\n"),A()):k())}},append_comments:t||r===ui?li:function(e,t){var n=e.end;if(n){var i=this.printed_comments,a=n[t?"comments_before":"comments_after"];if(a&&!i.has(a)&&(e instanceof Sa||a.every((e=>!/comment[134]/.test(e.type))))){i.add(a);var o=c.length;a.filter(r,e).forEach(((e,r)=>{if(!i.has(e))if(i.add(e),v=!1,y?(C("\n"),A(),y=!1):e.nlb&&(r>0||!M())?(C("\n"),A()):(r>0||!t)&&k(),/comment[134]/.test(e.type)){const t=R(e.value);t&&C("//"+t),y=!0}else if("comment2"==e.type){const t=R(e.value);t&&C("/*"+t+"*/"),v=!0}})),c.length>o&&(b=o)}}},line:()=>o,col:()=>a,pos:()=>s,push_node(e){L.push(e)},pop_node:()=>L.pop(),parent:e=>L[L.length-2-(e||0)]}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,r){Array.isArray(e)?e.forEach((e=>{t(e,r)})):e.DEFMETHOD("needs_parens",r)}function r(e,t,r,n){var i=e.length-1;r.in_directive=n,e.forEach(((e,n)=>{!0!==r.in_directive||e instanceof Ta||e instanceof Fa||e instanceof Ca&&e.body instanceof As||(r.in_directive=!1),e instanceof Fa||(r.indent(),e.print(r),n==i&&t||(r.newline(),t&&r.newline())),!0===r.in_directive&&e instanceof Ca&&e.body instanceof As&&(r.in_directive=!1)})),r.in_directive=!1}function n(e,t){t.print("{"),t.with_indent(t.next_indent(),(()=>{t.append_comments(e,!0)})),t.print("}")}function i(e,t,i){e.body.length>0?t.with_block((()=>{r(e.body,!1,t,i)})):n(e,t)}function a(e,t,r){var n=!1;r&&(n=Vs(e,(e=>e instanceof Ka||(e instanceof Bo&&"in"==e.operator?zs:void 0)))),e.print(t,n)}function o(e,t,r){return r.option("quote_keys")?r.print_string(e):""+ +e==e&&e>=0?r.option("keep_numbers")?r.print(e):r.print(u(e)):(Ii.has(e)?r.option("ie8"):r.option("ecma")<2015||r.option("safari10")?!na(e):!ia(e,!0))||t&&r.option("keep_quoted_props")?r.print_string(e,t):r.print_name(e)}Ea.DEFMETHOD("print",(function(e,t){var r=this,n=r._codegen;function i(){e.prepend_comments(r),r.add_source_map(e),n(r,e),e.append_comments(r)}r instanceof Ka?e.active_scope=r:!e.use_asm&&r instanceof Ta&&"use asm"==r.value&&(e.use_asm=e.active_scope),e.push_node(r),t||r.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),r===e.use_asm&&(e.use_asm=null)})),Ea.DEFMETHOD("_print",Ea.prototype.print),Ea.DEFMETHOD("print_to_string",(function(e){var t=nc(e);return this.print(t),t.get()})),t(Ea,ui),t($a,(function(e){return!((e.has_parens()||!Qs(e))&&!(e.option("webkit")&&(t=e.parent())instanceof wo&&t.expression===this)&&!(e.option("wrap_iife")&&(t=e.parent())instanceof ko&&t.expression===this)&&!(e.option("wrap_func_args")&&(t=e.parent())instanceof ko&&t.args.includes(this)));var t})),t(Ga,(function(e){var t=e.parent();return!!(e.option("wrap_func_args")&&t instanceof ko&&t.args.includes(this))||t instanceof wo&&t.expression===this})),t(zo,(e=>!e.has_parens()&&Qs(e))),t(rs,Qs),t(Mo,(function(e){var t=e.parent();return t instanceof wo&&t.expression===this||t instanceof ko&&t.expression===this||t instanceof Bo&&"**"===t.operator&&this instanceof Ro&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(so,(function(e){var t=e.parent();return t instanceof wo&&t.expression===this||t instanceof ko&&t.expression===this||t instanceof Bo&&"**"===t.operator&&t.left===this||e.option("safari10")&&t instanceof Ro})),t(No,(function(e){var t=e.parent();return t instanceof ko||t instanceof Mo||t instanceof Bo||t instanceof Eo||t instanceof wo||t instanceof Ko||t instanceof Wo||t instanceof jo||t instanceof Ga||t instanceof Vo||t instanceof Wa||t instanceof Ua&&this===t.object||t instanceof co||t instanceof Co})),t(Bo,(function(e){var t=e.parent();if(t instanceof ko&&t.expression===this)return!0;if(t instanceof Mo)return!0;if(t instanceof wo&&t.expression===this)return!0;if(t instanceof Bo){const e=t.operator,r=this.operator;if("??"===r&&("||"===e||"&&"===e))return!0;if("??"===e&&("||"===r||"&&"===r))return!0;const n=ma[e],i=ma[r];if(n>i||n==i&&(this===t.right||"**"==e))return!0}})),t(co,(function(e){var t=e.parent();return t instanceof Bo&&"="!==t.operator||t instanceof ko&&t.expression===this||t instanceof jo&&t.condition===this||t instanceof Mo||t instanceof wo&&t.expression===this||void 0})),t(wo,(function(e){var t=e.parent();if(t instanceof Ao&&t.expression===this)return Vs(this,(e=>e instanceof Ka||(e instanceof ko?zs:void 0)))})),t(ko,(function(e){var t,r=e.parent();return!!(r instanceof Ao&&r.expression===this||r instanceof Co&&r.is_default&&this.expression instanceof $a)||this.expression instanceof $a&&r instanceof wo&&r.expression===this&&(t=e.parent(1))instanceof Uo&&t.left===r})),t(Ao,(function(e){var t=e.parent();if(0===this.args.length&&(t instanceof wo||t instanceof ko&&t.expression===this))return!0})),t(Ns,(function(e){var t=e.parent();if(t instanceof wo&&t.expression===this){var r=this.getValue();if(r<0||/^0/.test(u(r)))return!0}})),t(ws,(function(e){var t=e.parent();if(t instanceof wo&&t.expression===this&&this.getValue().startsWith("-"))return!0})),t([Uo,jo],(function(e){var t=e.parent();return t instanceof Mo||t instanceof Bo&&!(t instanceof Uo)||t instanceof ko&&t.expression===this||t instanceof jo&&t.condition===this||t instanceof wo&&t.expression===this||this instanceof Uo&&this.left instanceof Xa&&!1===this.left.is_array||void 0})),e(Ta,((e,t)=>{t.print_string(e.value,e.quote),t.semicolon()})),e(Wa,((e,t)=>{t.print("..."),e.expression.print(t)})),e(Xa,((e,t)=>{t.print(e.is_array?"[":"{");var r=e.names.length;e.names.forEach(((e,n)=>{n>0&&t.comma(),e.print(t),n==r-1&&e instanceof Rs&&t.comma()})),t.print(e.is_array?"]":"}")})),e(Da,((e,t)=>{t.print("debugger"),t.semicolon()})),Pa.DEFMETHOD("_do_print_body",(function(e){l(this.body,e)})),e(Sa,((e,t)=>{e.body.print(t),t.semicolon()})),e(za,((e,t)=>{r(e.body,!0,t,!0),t.print("")})),e(Ia,((e,t)=>{e.label.print(t),t.colon(),e.body.print(t)})),e(Ca,((e,t)=>{e.body.print(t),t.semicolon()})),e(wa,((e,t)=>{i(e,t)})),e(Fa,((e,t)=>{t.semicolon()})),e(Ra,((e,t)=>{t.print("do"),t.space(),d(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.semicolon()})),e(La,((e,t)=>{t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e._do_print_body(t)})),e(Ba,((e,t)=>{t.print("for"),t.space(),t.with_parens((()=>{e.init?(e.init instanceof yo?e.init.print(t):a(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)})),t.space(),e._do_print_body(t)})),e(ja,((e,t)=>{t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens((()=>{e.init.print(t),t.space(),t.print(e instanceof Ua?"of":"in"),t.space(),e.object.print(t)})),t.space(),e._do_print_body(t)})),e(Va,((e,t)=>{t.print("with"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space(),e._do_print_body(t)})),Ja.DEFMETHOD("_do_print",(function(e,t){var r=this;t||(r.async&&(e.print("async"),e.space()),e.print("function"),r.is_generator&&e.star(),r.name&&e.space()),r.name instanceof ns?r.name.print(e):t&&r.name instanceof Ea&&e.with_square((()=>{r.name.print(e)})),e.with_parens((()=>{r.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),i(r,e,!0)})),e(Ja,((e,t)=>{e._do_print(t)})),e(Ya,((e,t)=>{var r=e.prefix,n=r instanceof Ja||r instanceof Bo||r instanceof jo||r instanceof No||r instanceof Mo||r instanceof Fo&&r.expression instanceof zo;n&&t.print("("),e.prefix.print(t),n&&t.print(")"),e.template_string.print(t)})),e(Qa,((e,t)=>{var r=t.parent()instanceof Ya;t.print("`");for(var n=0;n<e.segments.length;n++)e.segments[n]instanceof Za?r?t.print(e.segments[n].raw):t.print_template_string_chars(e.segments[n].value):(t.print("${"),e.segments[n].print(t),t.print("}"));t.print("`")})),e(Za,((e,t)=>{t.print_template_string_chars(e.value)})),Ga.DEFMETHOD("_do_print",(function(e){var t=this,r=e.parent(),n=r instanceof Bo&&!(r instanceof Uo)||r instanceof Mo||r instanceof ko&&t===r.expression;n&&e.print("("),t.async&&(e.print("async"),e.space()),1===t.argnames.length&&t.argnames[0]instanceof ns?t.argnames[0].print(e):e.with_parens((()=>{t.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),e.print("=>"),e.space();const a=t.body[0];if(1===t.body.length&&a instanceof ro){const t=a.value;t?Zs(t)?(e.print("("),t.print(e),e.print(")")):t.print(e):e.print("{}")}else i(t,e);n&&e.print(")")})),to.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space();const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon()})),e(ro,((e,t)=>{e._do_print(t,"return")})),e(no,((e,t)=>{e._do_print(t,"throw")})),e(co,((e,t)=>{var r=e.is_star?"*":"";t.print("yield"+r),e.expression&&(t.space(),e.expression.print(t))})),e(so,((e,t)=>{t.print("await"),t.space();var r=e.expression,n=!(r instanceof ko||r instanceof xs||r instanceof wo||r instanceof Mo||r instanceof ks||r instanceof so||r instanceof zo);n&&t.print("("),e.expression.print(t),n&&t.print(")")})),io.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()})),e(ao,((e,t)=>{e._do_print(t,"break")})),e(oo,((e,t)=>{e._do_print(t,"continue")})),e(lo,((e,t)=>{t.print("if"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e.alternative?(((e,t)=>{var r=e.body;if(t.option("braces")||t.option("ie8")&&r instanceof Ra)return d(r,t);if(!r)return t.force_semicolon();for(;;)if(r instanceof lo){if(!r.alternative)return void d(e.body,t);r=r.alternative}else{if(!(r instanceof Pa))break;r=r.body}l(e.body,t)})(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof lo?e.alternative.print(t):l(e.alternative,t)):e._do_print_body(t)})),e(uo,((e,t)=>{t.print("switch"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space();var r=e.body.length-1;r<0?n(e,t):t.with_block((()=>{e.body.forEach(((e,n)=>{t.indent(!0),e.print(t),n<r&&e.body.length>0&&t.newline()}))}))})),po.DEFMETHOD("_do_print_body",(function(e){e.newline(),this.body.forEach((t=>{e.indent(),t.print(e),e.newline()}))})),e(_o,((e,t)=>{t.print("default:"),e._do_print_body(t)})),e(fo,((e,t)=>{t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(mo,((e,t)=>{t.print("try"),t.space(),i(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))})),e(go,((e,t)=>{t.print("catch"),e.argname&&(t.space(),t.with_parens((()=>{e.argname.print(t)}))),t.space(),i(e,t)})),e(ho,((e,t)=>{t.print("finally"),t.space(),i(e,t)})),yo.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space(),this.definitions.forEach(((t,r)=>{r&&e.comma(),t.print(e)}));var r=e.parent();(!(r instanceof Ba||r instanceof ja)||r&&r.init!==this)&&e.semicolon()})),e(bo,((e,t)=>{e._do_print(t,"let")})),e(vo,((e,t)=>{e._do_print(t,"var")})),e(xo,((e,t)=>{e._do_print(t,"const")})),e(Do,((e,t)=>{t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.imported_names.length-1&&t.print(",")})),t.space(),t.print("}"))),(e.imported_name||e.imported_names)&&(t.space(),t.print("from"),t.space()),e.module_name.print(t),t.semicolon()})),e(To,((e,t)=>{t.print("import.meta")})),e(So,((e,t)=>{var r=t.parent()instanceof Do,n=e.name.definition();(n&&n.mangled_name||e.name.name)!==e.foreign_name.name?(r?t.print(e.foreign_name.name):e.name.print(t),t.space(),t.print("as"),t.space(),r?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)})),e(Co,((e,t)=>{if(t.print("export"),t.space(),e.is_default&&(t.print("default"),t.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.exported_names.length-1&&t.print(",")})),t.space(),t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof yo))return;e.module_name&&(t.space(),t.print("from"),t.space(),e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof qa||e.exported_value instanceof $a||e.exported_value instanceof Qo)||e.module_name||e.exported_names)&&t.semicolon()})),e(Eo,((e,t)=>{if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var r=t.parent(1),n=r instanceof Ba||r instanceof ja;a(e.value,t,n)}})),e(ko,((e,t)=>{e.expression.print(t),e instanceof Ao&&0===e.args.length||((e.expression instanceof ko||e.expression instanceof Ja)&&t.add_mapping(e.start),e.optional&&t.print("?."),t.with_parens((()=>{e.args.forEach(((e,r)=>{r&&t.comma(),e.print(t)}))})))})),e(Ao,((e,t)=>{t.print("new"),t.space(),ko.prototype._codegen(e,t)})),No.DEFMETHOD("_do_print",(function(e){this.expressions.forEach(((t,r)=>{r>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)}))})),e(No,((e,t)=>{e._do_print(t)})),e(Fo,((e,t)=>{var r=e.expression;r.print(t);var n=e.property,i=Ii.has(n)?t.option("ie8"):!ia(n,t.option("ecma")>=2015||t.option("safari10"));e.optional&&t.print("?."),i?(t.print("["),t.add_mapping(e.end),t.print_string(n),t.print("]")):(r instanceof Ns&&r.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),e.optional||t.print("."),t.add_mapping(e.end),t.print_name(n))})),e(Po,((e,t)=>{e.expression.print(t);var r=e.property;e.optional&&t.print("?"),t.print(".#"),t.print_name(r)})),e(Io,((e,t)=>{e.expression.print(t),e.optional&&t.print("?."),t.print("["),e.property.print(t),t.print("]")})),e(Oo,((e,t)=>{e.expression.print(t)})),e(Ro,((e,t)=>{var r=e.operator;t.print(r),(/^[a-z]/i.test(r)||/[+-]$/.test(r)&&e.expression instanceof Ro&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)})),e(Lo,((e,t)=>{e.expression.print(t),t.print(e.operator)})),e(Bo,((e,t)=>{var r=e.operator;e.left.print(t),">"==r[0]&&e.left instanceof Lo&&"--"==e.left.operator?t.print(" "):t.space(),t.print(r),("<"==r||"<<"==r)&&e.right instanceof Ro&&"!"==e.right.operator&&e.right.expression instanceof Ro&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)})),e(jo,((e,t)=>{e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)})),e(Ko,((e,t)=>{t.with_square((()=>{var r=e.elements,n=r.length;n>0&&t.space(),r.forEach(((e,r)=>{r&&t.comma(),e.print(t),r===n-1&&e instanceof Rs&&t.comma()})),n>0&&t.space()}))})),e(zo,((e,t)=>{e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&(t.print(","),t.newline()),t.indent(),e.print(t)})),t.newline()})):n(e,t)})),e(Qo,((e,t)=>{if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var r=!(e.extends instanceof xs||e.extends instanceof wo||e.extends instanceof rs||e.extends instanceof $a);t.print("extends"),r?t.print("("):t.space(),e.extends.print(t),r?t.print(")"):t.space()}e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&t.newline(),t.indent(),e.print(t)})),t.newline()})):t.print("{}")})),e(is,((e,t)=>{t.print("new.target")})),e(Jo,((e,t)=>{function r(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");n&&e.value instanceof ns&&ia(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value)===e.key&&!Ii.has(e.key)?o(e.key,e.quote,t):n&&e.value instanceof Vo&&e.value.left instanceof ns&&ia(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value.left)===e.key?(o(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof Ea?t.with_square((()=>{e.key.print(t)})):o(e.key,e.quote,t),t.colon(),e.value.print(t))})),e(es,((e,t)=>{e.static&&(t.print("static"),t.space()),t.print("#"),o(e.key.name,e.quote,t),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),e(Zo,((e,t)=>{e.static&&(t.print("static"),t.space()),e.key instanceof _s?o(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),Wo.DEFMETHOD("_print_getter_setter",(function(e,t,r){var n=this;n.static&&(r.print("static"),r.space()),e&&(r.print(e),r.space()),n.key instanceof ps?(t&&r.print("#"),o(n.key.name,n.quote,r)):r.with_square((()=>{n.key.print(r)})),n.value._do_print(r,!0)})),e(Go,((e,t)=>{e._print_getter_setter("set",!1,t)})),e(qo,((e,t)=>{e._print_getter_setter("get",!1,t)})),e(Ho,((e,t)=>{e._print_getter_setter("set",!0,t)})),e($o,((e,t)=>{e._print_getter_setter("get",!0,t)})),e(Yo,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!0,t)})),e(Xo,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!1,t)})),ns.DEFMETHOD("_do_print",(function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)})),e(ns,((e,t)=>{e._do_print(t)})),e(Rs,li),e(Ts,((e,t)=>{t.print("this")})),e(Cs,((e,t)=>{t.print("super")})),e(ks,((e,t)=>{t.print(e.getValue())})),e(As,((e,t)=>{t.print_string(e.getValue(),e.quote,t.in_directive)})),e(Ns,((e,t)=>{(t.option("keep_numbers")||t.use_asm)&&e.raw?t.print(e.raw):t.print(u(e.getValue()))})),e(ws,((e,t)=>{t.print(e.getValue()+"n")}));const s=/(<\s*\/\s*script)/i,c=(e,t)=>t.replace("/","\\/");function l(e,t){t.option("braces")?d(e,t):!e||e instanceof Fa?t.force_semicolon():e.print(t)}function u(e){var t,r,n,i=e.toString(10).replace(/^0\./,".").replace("e+","e"),a=[i];return Math.floor(e)===e&&(e<0?a.push("-0x"+(-e).toString(16).toLowerCase()):a.push("0x"+e.toString(16).toLowerCase())),(t=/^\.0+/.exec(i))?(r=t[0].length,n=i.slice(r),a.push(n+"e-"+(n.length+r-1))):(t=/0+$/.exec(i))?(r=t[0].length,a.push(i.slice(0,-r)+"e"+r)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(i))&&a.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),(e=>{for(var t=e[0],r=t.length,n=1;n<e.length;++n)e[n].length<r&&(r=(t=e[n]).length);return t})(a)}function d(e,t){!e||e instanceof Fa?t.print("{}"):e instanceof wa?e.print(t):t.with_block((()=>{t.indent(),e.print(t),t.newline()}))}function p(e,t){e.forEach((e=>{e.DEFMETHOD("add_source_map",t)}))}e(Fs,((e,t)=>{let{source:r,flags:n}=e.getValue();r=Ci(r),n=n?(e=>{const t=new Set(e.split(""));let r="";for(const e of"gimuy")t.has(e)&&(r+=e,t.delete(e));return t.size&&t.forEach((e=>{r+=e})),r})(n):"",r=r.replace(s,c),t.print(t.to_utf8(`/${r}/${n}`));const i=t.parent();i instanceof Bo&&/^\w/.test(i.operator)&&i.left===e&&t.print(" ")})),p([Ea,Ia,za],li),p([Ko,wa,go,Qo,ks,Da,yo,Ta,ho,eo,Ja,Ao,zo,Pa,ns,uo,po,Qa,Za,mo],(function(e){e.add_mapping(this.start)})),p([qo,Go],(function(e){e.add_mapping(this.start,this.key.name)})),p([Wo],(function(e){e.add_mapping(this.start,this.key)}))}();const ic=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),ac=e=>{const t=Object.keys(e).map((t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)})).join(" && ");return new Function("other","return "+t)},oc=()=>!0;Ea.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},Da.prototype.shallow_cmp=oc,Ta.prototype.shallow_cmp=ac({value:"eq"}),Ca.prototype.shallow_cmp=oc,Na.prototype.shallow_cmp=oc,Fa.prototype.shallow_cmp=oc,Ia.prototype.shallow_cmp=ac({"label.name":"eq"}),Ra.prototype.shallow_cmp=oc,La.prototype.shallow_cmp=oc,Ba.prototype.shallow_cmp=ac({init:"exist",condition:"exist",step:"exist"}),ja.prototype.shallow_cmp=oc,Ua.prototype.shallow_cmp=oc,Va.prototype.shallow_cmp=oc,za.prototype.shallow_cmp=oc,Wa.prototype.shallow_cmp=oc,Ja.prototype.shallow_cmp=ac({is_generator:"eq",async:"eq"}),Xa.prototype.shallow_cmp=ac({is_array:"eq"}),Ya.prototype.shallow_cmp=oc,Qa.prototype.shallow_cmp=oc,Za.prototype.shallow_cmp=ac({value:"eq"}),eo.prototype.shallow_cmp=oc,io.prototype.shallow_cmp=oc,so.prototype.shallow_cmp=oc,co.prototype.shallow_cmp=ac({is_star:"eq"}),lo.prototype.shallow_cmp=ac({alternative:"exist"}),uo.prototype.shallow_cmp=oc,po.prototype.shallow_cmp=oc,mo.prototype.shallow_cmp=ac({bcatch:"exist",bfinally:"exist"}),go.prototype.shallow_cmp=ac({argname:"exist"}),ho.prototype.shallow_cmp=oc,yo.prototype.shallow_cmp=oc,Eo.prototype.shallow_cmp=ac({value:"exist"}),So.prototype.shallow_cmp=oc,Do.prototype.shallow_cmp=ac({imported_name:"exist",imported_names:"exist"}),To.prototype.shallow_cmp=oc,Co.prototype.shallow_cmp=ac({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),ko.prototype.shallow_cmp=oc,No.prototype.shallow_cmp=oc,wo.prototype.shallow_cmp=oc,Oo.prototype.shallow_cmp=oc,Fo.prototype.shallow_cmp=ac({property:"eq"}),Mo.prototype.shallow_cmp=ac({operator:"eq"}),Bo.prototype.shallow_cmp=ac({operator:"eq"}),jo.prototype.shallow_cmp=oc,Ko.prototype.shallow_cmp=oc,zo.prototype.shallow_cmp=oc,Wo.prototype.shallow_cmp=oc,Jo.prototype.shallow_cmp=ac({key:"eq"}),Go.prototype.shallow_cmp=ac({static:"eq"}),qo.prototype.shallow_cmp=ac({static:"eq"}),Xo.prototype.shallow_cmp=ac({static:"eq",is_generator:"eq",async:"eq"}),Qo.prototype.shallow_cmp=ac({name:"exist",extends:"exist"}),Zo.prototype.shallow_cmp=ac({static:"eq"}),ns.prototype.shallow_cmp=ac({name:"eq"}),is.prototype.shallow_cmp=oc,Ts.prototype.shallow_cmp=oc,Cs.prototype.shallow_cmp=oc,As.prototype.shallow_cmp=ac({value:"eq"}),Ns.prototype.shallow_cmp=ac({value:"eq"}),ws.prototype.shallow_cmp=ac({value:"eq"}),Fs.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},Ps.prototype.shallow_cmp=oc;let sc=null,cc=null;class lc{constructor(e,t,r){this.name=t.name,this.orig=[t],this.init=r,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=lc.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof Ea?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),!!(sc&&sc.has(this.id)&&Di(e.keep_fnames,this.orig[0].name))||this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof fs||this.orig[0]instanceof ds)&&Di(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof ps||(this.orig[0]instanceof gs||this.orig[0]instanceof ms)&&Di(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var r=this.scope,n=this.orig[0];e.ie8&&n instanceof fs&&(r=r.parent_scope);const i=uc(this);this.mangled_name=i?i.mangled_name||i.name:r.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function uc(e){if(e.orig[0]instanceof hs&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}function dc(e,t){var r=e.enclosed;e:for(;;){var n=pc(++e.cname);if(!Ii.has(n)&&!(t.reserved.has(n)||cc&&cc.has(n))){for(let e=r.length;--e>=0;){const i=r[e];if(n==(i.mangled_name||i.unmangleable(t)&&i.name))continue e}return n}}}lc.next_id=1,Ka.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:r=this}={}){if(e=ci(e,{cache:null,ie8:!1,safari10:!1}),!(r instanceof za))throw new Error("Invalid toplevel scope");var n=this.parent_scope=t,i=new Map,a=null,o=null,s=[],c=new Ws(((t,r)=>{if(t.is_block_scope()){const i=n;t.block_scope=n=new Ka(t),n._block_scope=!0;const a=t instanceof go?i.parent_scope:i;if(n.init_scope_vars(a),n.uses_with=i.uses_with,n.uses_eval=i.uses_eval,e.safari10&&(t instanceof Ba||t instanceof ja)&&s.push(n),t instanceof uo){const e=n;n=i,t.expression.walk(c),n=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else r();return n=i,!0}if(t instanceof Xa){const e=o;return o=t,r(),o=e,!0}if(t instanceof Ka){t.init_scope_vars(n);var u=n,d=a,p=i;return a=n=t,i=new Map,r(),n=u,a=d,i=p,!0}if(t instanceof Ia){var _=t.label;if(i.has(_.name))throw new Error(hi("Label {name} defined twice",_));return i.set(_.name,_),r(),i.delete(_.name),!0}if(t instanceof Va)for(var f=n;f;f=f.parent_scope)f.uses_with=!0;else{if(t instanceof ns&&(t.scope=n),t instanceof bs&&(t.thedef=t,t.references=[]),t instanceof fs)a.def_function(t,"arguments"==t.name?void 0:a);else if(t instanceof ds)l((t.scope=a.parent_scope.get_defun_scope()).def_function(t,a),1);else if(t instanceof gs)l(a.def_variable(t,a),1);else if(t instanceof ys)n.def_variable(t);else if(t instanceof ms)l((t.scope=a.parent_scope).def_function(t,a),1);else if(t instanceof os||t instanceof ls||t instanceof cs||t instanceof hs){if((m=t instanceof ss?n.def_variable(t,null):a.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig.every((e=>e===t||(t instanceof ss?e instanceof fs:!(e instanceof ls||e instanceof cs))))||sa(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof us||l(m,2),a!==n){t.mark_enclosed();var m=n.find_variable(t);t.thedef!==m&&(t.thedef=m,t.reference())}}else if(t instanceof Ds){var g=i.get(t.name);if(!g)throw new Error(hi("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=g}n instanceof za||!(t instanceof Co||t instanceof Do)||sa(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}}));function l(e,t){if(o){var r=0;do{t++}while(c.parent(r++)!==o)}var n=c.parent(t);if(e.export=n instanceof Co?1:0){var i=n.exported_definition;(i instanceof qa||i instanceof ts)&&n.is_default&&(e.export=2)}}if(this.walk(c),this instanceof za&&(this.globals=new Map),c=new Ws((e=>{if(e instanceof io&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof xs){var t,n=e.name;if("eval"==n&&c.parent()instanceof ko)for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope)i.uses_eval=!0;return c.parent()instanceof So&&c.parent(1).module_name||!(t=e.scope.find_variable(n))?(t=r.def_global(e),e instanceof Es&&(t.export=1)):t.scope instanceof Ja&&"arguments"==n&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference(),!e.scope.is_block_scope()||t.orig[0]instanceof ss||(e.scope=e.scope.get_defun_scope()),!0}var a;if(e instanceof hs&&(a=uc(e.definition())))for(i=e.scope;i&&(gi(i.enclosed,a),i!==a.scope);)i=i.parent_scope})),this.walk(c),(e.ie8||e.safari10)&&Vs(this,(e=>{if(e instanceof hs){var t=e.name,n=e.thedef.references,i=e.scope.get_defun_scope(),a=i.find_variable(t)||r.globals.get(t)||i.def_variable(e);return n.forEach((e=>{e.thedef=a,e.reference()})),e.thedef=a,e.reference(),!0}})),e.safari10)for(const e of s)e.parent_scope.variables.forEach((t=>{gi(e.enclosed,t)}))})),za.DEFMETHOD("def_global",(function(e){var t=this.globals,r=e.name;if(t.has(r))return t.get(r);var n=new lc(this,e);return n.undeclared=!0,n.global=!0,t.set(r,n),n})),Ka.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1})),Ka.DEFMETHOD("conflicting_def",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)})),Ka.DEFMETHOD("conflicting_def_shallow",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)})),Ka.DEFMETHOD("add_child_scope",(function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);return e.reverse(),e})(),r=new Set(e.enclosed),n=[];for(const e of t){n.forEach((t=>gi(e.enclosed,t)));for(const t of e.variables.values())r.has(t)&&(gi(n,t),gi(e.enclosed,t))}})),Ka.DEFMETHOD("create_symbol",(function(e,{source:t,tentative_name:r,scope:n,conflict_scopes:i=[n],init:a=null}={}){let o;if(i=(e=>{const t=new Set;for(const r of new Set(e))!function e(r){null==r||t.has(r)||(t.add(r),e(r.parent_scope))}(r);return[...t]})(i),r){r=o=r.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;for(;i.find((e=>e.conflicting_def_shallow(o)));)o=r+"$"+e++}if(!o)throw new Error("No symbol name could be generated in create_symbol()");const s=mi(e,t,{name:o,scope:n});return this.def_variable(s,a||null),s.mark_enclosed(),s})),Ea.DEFMETHOD("is_block_scope",ui),Qo.DEFMETHOD("is_block_scope",ui),Ja.DEFMETHOD("is_block_scope",ui),za.DEFMETHOD("is_block_scope",ui),po.DEFMETHOD("is_block_scope",ui),Na.DEFMETHOD("is_block_scope",di),Ka.DEFMETHOD("is_block_scope",(function(){return this._block_scope||!1})),Oa.DEFMETHOD("is_block_scope",di),Ja.DEFMETHOD("init_scope_vars",(function(){Ka.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new us({name:"arguments",start:this.start,end:this.end}))})),Ga.DEFMETHOD("init_scope_vars",(function(){Ka.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),ns.DEFMETHOD("mark_enclosed",(function(){for(var e=this.definition(),t=this.scope;t&&(gi(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),ns.DEFMETHOD("reference",(function(){this.definition().references.push(this),this.mark_enclosed()})),Ka.DEFMETHOD("find_variable",(function(e){return e instanceof ns&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),Ka.DEFMETHOD("def_function",(function(e,t){var r=this.def_variable(e,t);return(!r.init||r.init instanceof qa)&&(r.init=t),this.functions.set(e.name,r),r})),Ka.DEFMETHOD("def_variable",(function(e,t){var r=this.variables.get(e.name);return r?(r.orig.push(e),r.init&&(r.scope!==e.scope||r.init instanceof $a)&&(r.init=t)):(r=new lc(this,e,t),this.variables.set(e.name,r),r.global=!this.parent_scope),e.thedef=r})),Ka.DEFMETHOD("next_mangled",(function(e){return dc(this,e)})),za.DEFMETHOD("next_mangled",(function(e){let t;const r=this.mangled_names;do{t=dc(this,e)}while(r.has(t));return t})),$a.DEFMETHOD("next_mangled",(function(e,t){for(var r=t.orig[0]instanceof us&&this.name&&this.name.definition(),n=r?r.mangled_name||r.name:null;;){var i=dc(this,e);if(!n||n!=i)return i}})),ns.DEFMETHOD("unmangleable",(function(e){var t=this.definition();return!t||t.unmangleable(e)})),bs.DEFMETHOD("unmangleable",ui),ns.DEFMETHOD("unreferenced",(function(){return!this.definition().references.length&&!this.scope.pinned()})),ns.DEFMETHOD("definition",(function(){return this.thedef})),ns.DEFMETHOD("global",(function(){return this.thedef.global})),za.DEFMETHOD("_default_mangler_options",(e=>((e=ci(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e))),za.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,r=[];e.keep_fnames&&(sc=new Set);const n=this.mangled_names=new Set;e.cache&&(this.globals.forEach(a),e.cache.props&&e.cache.props.forEach((e=>{n.add(e)})));var i=new Ws(((n,i)=>{if(n instanceof Ia){var o=t;return i(),t=o,!0}if(n instanceof Ka)n.variables.forEach(a);else if(n.is_block_scope())n.block_scope.variables.forEach(a);else if(sc&&n instanceof Eo&&n.value instanceof Ja&&!n.value.name&&Di(e.keep_fnames,n.name.name))sc.add(n.name.definition().id);else{if(n instanceof bs){let e;do{e=pc(++t)}while(Ii.has(e));return n.mangled_name=e,!0}!e.ie8&&!e.safari10&&n instanceof hs&&r.push(n.definition())}}));function a(t){!(e.reserved.has(t.name)||1&t.export)&&r.push(t)}this.walk(i),(e.keep_fnames||e.keep_classnames)&&(cc=new Set,r.forEach((t=>{t.name.length<6&&t.unmangleable(e)&&cc.add(t.name)}))),r.forEach((t=>{t.mangle(e)})),sc=null,cc=null})),za.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,r=new Set;return e.reserved.forEach(n),this.globals.forEach(i),this.walk(new Ws((e=>{e instanceof Ka&&e.variables.forEach(i),e instanceof hs&&i(e.definition())}))),r;function n(e){r.add(e)}function i(r){var i=r.name;if(r.global&&t&&t.has(i))i=t.get(i);else if(!r.unmangleable(e))return;n(i)}})),za.DEFMETHOD("expand_names",(function(e){pc.reset(),pc.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),r=0;function n(n){if(n.global&&e.cache)return;if(n.unmangleable(e))return;if(e.reserved.has(n.name))return;const i=uc(n),a=n.name=i?i.name:(()=>{var e;do{e=pc(r++)}while(t.has(e)||Ii.has(e));return e})();n.orig.forEach((e=>{e.name=a})),n.references.forEach((e=>{e.name=a}))}this.globals.forEach(n),this.walk(new Ws((e=>{e instanceof Ka&&e.variables.forEach(n),e instanceof hs&&n(e.definition())})))})),Ea.DEFMETHOD("tail_node",pi),No.DEFMETHOD("tail_node",(function(){return this.expressions[this.expressions.length-1]})),za.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{Ea.prototype.print=function(r,n){this._print(r,n),this instanceof ns&&!this.unmangleable(e)?pc.consider(this.name,-1):e.properties&&(this instanceof Po?pc.consider("#"+this.property,-1):this instanceof Fo?pc.consider(this.property,-1):this instanceof Io&&t(this.property))},pc.consider(this.print_to_string(),1)}finally{Ea.prototype.print=Ea.prototype._print}function t(e){e instanceof As?pc.consider(e.value,-1):e instanceof jo?(t(e.consequent),t(e.alternative)):e instanceof No&&t(e.tail_node())}pc.sort()}));const pc=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let r,n;function i(){n=new Map,e.forEach((e=>{n.set(e,0)})),t.forEach((e=>{n.set(e,0)}))}function a(e,t){return n.get(t)-n.get(e)}function o(e){var t="",n=54;e++;do{e--,t+=r[e%n],e=Math.floor(e/n),n=64}while(e>0);return t}return o.consider=(e,t)=>{for(var r=e.length;--r>=0;)n.set(e[r],n.get(e[r])+t)},o.sort=()=>{r=vi(e,a).concat(vi(t,a))},o.reset=i,i(),o})();let _c;Ea.prototype.size=function(e,t){_c=e&&e.mangle_options;let r=0;return Ks(this,((e,t)=>{if(r+=e._size(t),e instanceof Ga&&e.is_braceless())return r+=e.body[0].value._size(t),!0}),t||e&&e.stack),_c=void 0,r},Ea.prototype._size=()=>0,Da.prototype._size=()=>8,Ta.prototype._size=function(){return 2+this.value.length};const fc=e=>e.length&&e.length-1;Na.prototype._size=function(){return 2+fc(this.body)},za.prototype._size=function(){return fc(this.body)},Fa.prototype._size=()=>1,Ia.prototype._size=()=>2,Ra.prototype._size=()=>9,La.prototype._size=()=>7,Ba.prototype._size=()=>8,ja.prototype._size=()=>8,Va.prototype._size=()=>6,Wa.prototype._size=()=>3;const mc=e=>(e.is_generator?1:0)+(e.async?6:0);Ha.prototype._size=function(){return mc(this)+4+fc(this.argnames)+fc(this.body)},$a.prototype._size=function(e){return 2*!!Qs(e)+mc(this)+12+fc(this.argnames)+fc(this.body)},qa.prototype._size=function(){return mc(this)+13+fc(this.argnames)+fc(this.body)},Ga.prototype._size=function(){let e=2+fc(this.argnames);1===this.argnames.length&&this.argnames[0]instanceof ns||(e+=2);const t=this.is_braceless()?0:fc(this.body)+2;return mc(this)+e+t},Xa.prototype._size=()=>2,Qa.prototype._size=function(){return 2+3*Math.floor(this.segments.length/2)},Za.prototype._size=function(){return this.value.length},ro.prototype._size=function(){return this.value?7:6},no.prototype._size=()=>6,ao.prototype._size=function(){return this.label?6:5},oo.prototype._size=function(){return this.label?9:8},lo.prototype._size=()=>4,uo.prototype._size=function(){return 8+fc(this.body)},fo.prototype._size=function(){return 5+fc(this.body)},_o.prototype._size=function(){return 8+fc(this.body)},mo.prototype._size=function(){return 3+fc(this.body)},go.prototype._size=function(){let e=7+fc(this.body);return this.argname&&(e+=2),e},ho.prototype._size=function(){return 7+fc(this.body)};const gc=(e,t)=>e+fc(t.definitions);vo.prototype._size=function(){return gc(4,this)},bo.prototype._size=function(){return gc(4,this)},xo.prototype._size=function(){return gc(6,this)},Eo.prototype._size=function(){return this.value?1:0},So.prototype._size=function(){return this.name?4:0},Do.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+fc(this.imported_names)),e},To.prototype._size=()=>11,Co.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+fc(this.exported_names)),this.module_name&&(e+=5),e},ko.prototype._size=function(){return this.optional?4+fc(this.args):2+fc(this.args)},Ao.prototype._size=function(){return 6+fc(this.args)},No.prototype._size=function(){return fc(this.expressions)},Fo.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},Po.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},Io.prototype._size=function(){return this.optional?4:2},Mo.prototype._size=function(){return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},Bo.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof Mo&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},jo.prototype._size=()=>3,Ko.prototype._size=function(){return 2+fc(this.elements)},zo.prototype._size=function(e){let t=2;return Qs(e)&&(t+=2),t+fc(this.properties)};const hc=e=>"string"==typeof e?e.length:0;Jo.prototype._size=function(){return hc(this.key)+1};const yc=e=>e?7:0;qo.prototype._size=function(){return 5+yc(this.static)+hc(this.key)},Go.prototype._size=function(){return 5+yc(this.static)+hc(this.key)},Xo.prototype._size=function(){return yc(this.static)+hc(this.key)+mc(this)},Yo.prototype._size=function(){return Xo.prototype._size.call(this)+1},$o.prototype._size=Ho.prototype._size=function(){return Xo.prototype._size.call(this)+4},Qo.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Zo.prototype._size=function(){return yc(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},es.prototype._size=function(){return Zo.prototype._size.call(this)+1},ns.prototype._size=function(){return!_c||this.definition().unmangleable(_c)?this.name.length:1},_s.prototype._size=function(){return this.name.length},xs.prototype._size=as.prototype._size=function(){const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:ns.prototype._size.call(this)},is.prototype._size=()=>10,vs.prototype._size=function(){return this.name.length},Ss.prototype._size=function(){return this.name.length},Ts.prototype._size=()=>4,Cs.prototype._size=()=>5,As.prototype._size=function(){return this.value.length+2},Ns.prototype._size=function(){const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},ws.prototype._size=function(){return this.value.length},Fs.prototype._size=function(){return this.value.toString().length},Is.prototype._size=()=>4,Os.prototype._size=()=>3,Ms.prototype._size=()=>6,Rs.prototype._size=()=>0,Ls.prototype._size=()=>8,Us.prototype._size=()=>4,js.prototype._size=()=>5,so.prototype._size=()=>6,co.prototype._size=()=>6;const vc=(e,t)=>e.flags&t,bc=(e,t)=>{e.flags|=t},xc=(e,t)=>{e.flags&=~t};class Ec extends Ws{constructor(e,{false_by_default:t=!1,mangle_options:r=!1}){super(),void 0===e.defaults||e.defaults||(t=!0),this.options=ci(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)"@"===i[0]&&Si(n,i)&&(n[i.slice(1)]=ha(n[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var a=this.options.pure_funcs;this.pure_funcs="function"==typeof a?a:a?e=>!a.includes(e.expression.print_to_string()):di;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=e=>o.test(e.name):"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=e=>o.includes(e.name)),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.evaluated_regexps=new Map,this._toplevel=void 0,this.mangle_options=r}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,r=e.orig.length;t<r;t++)if(!this.toplevel[e.orig[t]instanceof ds?"funcs":"vars"])return!0;return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),r=0;e=this.parent(r);r++){if(e instanceof Ca||e instanceof jo&&e.condition===t||e instanceof Ma&&e.condition===t||e instanceof Ba&&e.condition===t||e instanceof lo&&e.condition===t||e instanceof Ro&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof Bo&&("&&"==e.operator||"||"==e.operator||"??"==e.operator)||e instanceof jo||e.tail_node()===t))return!1;t=e}}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var t=+this.options.passes||1,r=1/0,n=!1,i={ie8:this.option("ie8")},a=0;a<t;a++)if(this._toplevel.figure_out_scope(i),0===a&&this.option("drop_console")&&(this._toplevel=this._toplevel.drop_console()),(a>0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),t>1){let e=0;if(Vs(this._toplevel,(()=>{e++})),e<r)r=e,n=!1;else{if(n)break;n=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,t){if(vc(e,256))return e;var r=!1;e instanceof Ka&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var n=e.optimize(this);return r&&n instanceof Ka&&(n.drop_unused(this),t(n,this)),n===e&&bc(n,256),n}}function Sc(e,t){e.DEFMETHOD("optimize",(function(e){var r=this;if(vc(r,512))return r;if(e.has_directive("use asm"))return r;var n=t(r,e);return bc(n,512),n}))}function Dc(e,t){if(!((t=Hc(t))instanceof Ea)){var r;if(e instanceof Ko){var n=e.elements;if("length"==t)return Pc(n.length,e);"number"==typeof t&&t in n&&(r=n[t])}else if(e instanceof zo){t=""+t;for(var i=e.properties,a=i.length;--a>=0;){if(!(i[a]instanceof Jo))return;r||i[a].key!==t||(r=i[a].value)}}return r instanceof xs&&r.fixed_value()||r}}function Tc(e,t,r,n,i,a){var o=t.parent(i),s=Xc(r,o);if(s)return s;if(!a&&o instanceof ko&&o.expression===r&&!(n instanceof Ga)&&!(n instanceof Qo)&&!o.is_expr_pure(e)&&(!(n instanceof $a)||!(o instanceof Ao)&&n.contains_this()))return!0;if(o instanceof Ko)return Tc(e,t,o,o,i+1);if(o instanceof Jo&&r===o.value){var c=t.parent(i+1);return Tc(e,t,c,c,i+2)}if(o instanceof wo&&o.expression===r){var l=Dc(n,o.property);return!a&&Tc(e,t,o,l,i+1)}}function Cc(e){return e instanceof Ga||e instanceof $a}function kc(e){if(e instanceof Ts)return!0;if(e instanceof xs)return e.definition().orig[0]instanceof fs;if(e instanceof wo){if((e=e.expression)instanceof xs){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof Fs)&&(e instanceof ks||kc(e))}return!1}function Ac(e,t){if(!(e instanceof xs))return!1;for(var r=e.definition().orig,n=r.length;--n>=0;)if(r[n]instanceof t)return!0}function Nc(e){for(let t=0;;t++){const r=e.parent(t);if(r instanceof za)return r;if(r instanceof Ja)return r;if(r.block_scope)return r.block_scope}}function wc(e,t){for(var r,n=0;(r=e.parent(n++))&&!(r instanceof Ka);)if(r instanceof go&&r.argname){r=r.argname.definition().scope;break}return r.find_variable(t)}function Fc(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return mi(No,e,{expressions:t.reduce(Oc,[])})}function Pc(e,t){switch(typeof e){case"string":return mi(As,t,{value:e});case"number":return isNaN(e)?mi(Os,t):isFinite(e)?1/e<0?mi(Ro,t,{operator:"-",expression:mi(Ns,t,{value:-e})}):mi(Ns,t,{value:e}):e<0?mi(Ro,t,{operator:"-",expression:mi(Ls,t)}):mi(Ls,t);case"boolean":return mi(e?Us:js,t);case"undefined":return mi(Ms,t);default:if(null===e)return mi(Is,t,{value:null});if(e instanceof RegExp)return mi(Fs,t,{value:{source:Ci(e.source),flags:e.flags}});throw new Error(hi("Can't handle constant of type: {type}",{type:typeof e}))}}function Ic(e,t,r){return e instanceof Ro&&"delete"==e.operator||e instanceof ko&&e.expression===t&&(r instanceof wo||r instanceof xs&&"eval"==r.name)?Fc(t,[mi(Ns,t,{value:0}),r]):r}function Oc(e,t){return t instanceof No?e.push(...t.expressions):e.push(t),e}function Mc(e){if(null===e)return[];if(e instanceof wa)return e.body;if(e instanceof Fa)return[];if(e instanceof Sa)return[e];throw new Error("Can't convert thing to statement array")}function Rc(e){return null===e||e instanceof Fa||e instanceof wa&&0==e.body.length}function Lc(e){return!(e instanceof ts||e instanceof qa||e instanceof bo||e instanceof xo||e instanceof Co||e instanceof Do)}function Bc(e){return e instanceof Oa&&e.body instanceof wa?e.body:e}function jc(e){return"Call"==e.TYPE&&(e.expression instanceof $a||jc(e.expression))}function Uc(e){return e instanceof xs&&e.definition().undeclared}Sc(Ea,(e=>e)),za.DEFMETHOD("drop_console",(function(){return this.transform(new Js((e=>{if("Call"==e.TYPE){var t=e.expression;if(t instanceof wo){for(var r=t.expression;r.expression;)r=r.expression;if(Uc(r)&&"console"==r.name)return mi(Ms,e)}}})))})),Ea.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!ic(e,t))return!1;const r=[e],n=[t],i=r.push.bind(r),a=n.push.bind(n);for(;r.length&&n.length;){const e=r.pop(),t=n.pop();if(!ic(e,t))return!1;if(e._children_backwards(i),t._children_backwards(a),r.length!==n.length)return!1}return 0==r.length&&0==n.length})(this,e)})),Ka.DEFMETHOD("process_expression",(function(e,t){var r=this,n=new Js((i=>{if(e&&i instanceof Ca)return mi(ro,i,{value:i.body});if(!e&&i instanceof ro){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?mi(Ca,i,{body:a}):mi(Fa,i)}return mi(Ca,i,{body:i.value||mi(Ro,i,{operator:"void",expression:mi(Ns,i,{value:0})})})}if(i instanceof Qo||i instanceof Ja&&i!==r)return i;if(i instanceof Na){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(n))}else i instanceof lo?(i.body=i.body.transform(n),i.alternative&&(i.alternative=i.alternative.transform(n))):i instanceof Va&&(i.body=i.body.transform(n));return i}));r.transform(n)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.single_use=void 0,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof cs||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function r(e,r,n){n.variables.forEach((n=>{t(r,n),null===n.fixed?(e.defs_to_safe_ids.set(n.id,e.safe_ids),o(e,n,!0)):n.fixed&&(e.loop_ids.set(n.id,e.in_loop),o(e,n,!0))}))}function n(e,r){r.block_scope&&r.block_scope.variables.forEach((r=>{t(e,r)}))}function i(e){e.safe_ids=Object.create(e.safe_ids)}function a(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function o(e,t,r){e.safe_ids[t.id]=r}function s(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var r=t.orig[0];if(r instanceof us||"arguments"==r.name)return!1;t.fixed=mi(Ms,r)}return!0}return t.fixed instanceof qa}function c(e,t,r,n){if(void 0===t.fixed)return!0;let i;return null===t.fixed&&(i=e.defs_to_safe_ids.get(t.id))?(i[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!Si(e.safe_ids,t.id)&&!!s(e,t)&&!1!==t.fixed&&!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&(t.fixed instanceof qa?n instanceof Ea&&t.fixed.parent_scope===r:t.orig.every((e=>!(e instanceof cs||e instanceof ds||e instanceof fs))))}function l(e,t,r,n,i,a=0,o=1){var s=e.parent(a);if(i){if(i.is_constant())return;if(i instanceof rs)return}if(s instanceof Uo&&("="===s.operator||s.logical)&&n===s.right||s instanceof ko&&(n!==s.expression||s instanceof Ao)||s instanceof to&&n===s.value&&n.scope!==t.scope||s instanceof Eo&&n===s.value||s instanceof co&&n===s.value&&n.scope!==t.scope)return!(o>1)||i&&i.is_constant_expression(r)||(o=1),void((!t.escaped||t.escaped>o)&&(t.escaped=o));if(s instanceof Ko||s instanceof so||s instanceof Bo&&Gc.has(s.operator)||s instanceof jo&&n!==s.condition||s instanceof Wa||s instanceof No&&n===s.tail_node())l(e,t,r,s,s,a+1,o);else if(s instanceof Jo&&n===s.value){var c=e.parent(a+1);l(e,t,r,c,c,a+2,o)}else if(s instanceof wo&&n===s.expression&&(l(e,t,r,s,i=Dc(i,s.property),a+1,o+1),i))return;a>0||s instanceof No&&n!==s.tail_node()||s instanceof Ca||(t.direct_access=!0)}e(Ea,li);const u=e=>Vs(e,(e=>{if(e instanceof ns){var t=e.definition();t&&(e instanceof xs&&t.references.push(e),t.fixed=!1)}}));e(Ha,(function(e,t,n){return i(e),r(e,n,this),t(),a(e),!0})),e(Uo,(function(e,t,r){var n=this;if(n.left instanceof Xa)return void u(n.left);const s=()=>{if(n.logical)return n.left.walk(e),i(e),n.right.walk(e),a(e),!0};var d=n.left;if(!(d instanceof xs))return s();var p=d.definition(),_=c(e,p,d.scope,n.right);if(p.assignments++,!_)return s();var f=p.fixed;if(!f&&"="!=n.operator&&!n.logical)return s();var m="="==n.operator,g=m?n.right:n;return Tc(r,e,n,g,0)?s():(p.references.push(d),n.logical||(m||(p.chained=!0),p.fixed=m?()=>n.right:()=>mi(Bo,n,{operator:n.operator.slice(0,-1),left:f instanceof Ea?f:f(),right:n.right})),n.logical?(o(e,p,!1),i(e),n.right.walk(e),a(e),!0):(o(e,p,!1),n.right.walk(e),o(e,p,!0),l(e,p,d.scope,n,g,0,1),!0))})),e(Bo,(function(e){if(Gc.has(this.operator))return this.left.walk(e),i(e),this.right.walk(e),a(e),!0})),e(Na,(function(e,t,r){n(r,this)})),e(fo,(function(e){return i(e),this.expression.walk(e),a(e),i(e),ka(this,e),a(e),!0})),e(Qo,(function(e,t){return xc(this,16),i(e),t(),a(e),!0})),e(jo,(function(e){return this.condition.walk(e),i(e),this.consequent.walk(e),a(e),i(e),this.alternative.walk(e),a(e),!0})),e(Oo,((e,t)=>{const r=e.safe_ids;return t(),e.safe_ids=r,!0})),e(ko,(function(e){this.expression.walk(e),this.optional&&i(e);for(const t of this.args)t.walk(e);return!0})),e(wo,(function(e){if(this.optional)return this.expression.walk(e),i(e),this.property instanceof Ea&&this.property.walk(e),!0})),e(_o,((e,t)=>(i(e),t(),a(e),!0))),e(Ja,(function(e,t,n){return xc(this,16),i(e),r(e,n,this),this.uses_arguments?(t(),void a(e)):(!this.name&&(s=e.parent())instanceof ko&&s.expression===this&&!s.args.some((e=>e instanceof Wa))&&this.argnames.every((e=>e instanceof ns))&&this.argnames.forEach(((t,r)=>{if(t.definition){var n=t.definition();n.orig.length>1||(void 0!==n.fixed||this.uses_arguments&&!e.has_directive("use strict")?n.fixed=!1:(n.fixed=()=>s.args[r]||mi(Ms,s),e.loop_ids.set(n.id,e.in_loop),o(e,n,!0)))}})),t(),a(e),!0);var s})),e(Ra,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),ul(this)&&(a(e),i(e)),this.condition.walk(e),a(e),e.in_loop=o,!0})),e(Ba,(function(e,t,r){n(r,this),this.init&&this.init.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(ul(this)&&(a(e),i(e)),this.step.walk(e)),a(e),e.in_loop=o,!0})),e(ja,(function(e,t,r){n(r,this),u(this.init),this.object.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),a(e),e.in_loop=o,!0})),e(lo,(function(e){return this.condition.walk(e),i(e),this.body.walk(e),a(e),this.alternative&&(i(e),this.alternative.walk(e),a(e)),!0})),e(Ia,(function(e){return i(e),this.body.walk(e),a(e),!0})),e(hs,(function(){this.definition().fixed=!1})),e(xs,(function(e,t,r){var n,i,a=this.definition();a.references.push(this),1==a.references.length&&!a.fixed&&a.orig[0]instanceof ds&&e.loop_ids.set(a.id,e.in_loop),void 0!==a.fixed&&s(e,a)?a.fixed&&((n=this.fixed_value())instanceof Ja&&fl(e,a)?a.recursive_refs++:n&&!r.exposed(a)&&((e,t,r)=>t.option("unused")&&!r.scope.pinned()&&r.references.length-r.recursive_refs==1&&e.loop_ids.get(r.id)===e.in_loop)(e,r,a)?a.single_use=n instanceof Ja&&!n.pinned()||n instanceof Qo||a.scope===this.scope&&n.is_constant_expression():a.single_use=!1,Tc(r,e,this,n,0,!!(i=n)&&(i.is_constant()||i instanceof Ja||i instanceof Ts))&&(a.single_use?a.single_use="m":a.fixed=!1)):a.fixed=!1,l(e,a,this.scope,this,n,0,1)})),e(za,(function(e,n,i){this.globals.forEach((e=>{t(i,e)})),r(e,i,this)})),e(mo,(function(e,t,r){return n(r,this),i(e),ka(this,e),a(e),this.bcatch&&(i(e),this.bcatch.walk(e),a(e)),this.bfinally&&this.bfinally.walk(e),!0})),e(Mo,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var r=t.expression;if(r instanceof xs){var n=r.definition(),i=c(e,n,r.scope,!0);if(n.assignments++,i){var a=n.fixed;if(a)return n.references.push(r),n.chained=!0,n.fixed=()=>mi(Bo,t,{operator:t.operator.slice(0,-1),left:mi(Ro,t,{operator:"+",expression:a instanceof Ea?a:a()}),right:mi(Ns,t,{value:1})}),o(e,n,!0),!0}}}})),e(Eo,(function(e,t){var r=this;if(r.name instanceof Xa)u(r.name);else{var n=r.name.definition();if(r.value){if(c(e,n,r.name.scope,r.value))return n.fixed=()=>r.value,e.loop_ids.set(n.id,e.in_loop),o(e,n,!1),t(),o(e,n,!0),!0;n.fixed=!1}}})),e(La,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),t(),a(e),e.in_loop=o,!0}))}(((e,t)=>{e.DEFMETHOD("reduce_vars",t)})),za.DEFMETHOD("reset_opt_flags",(function(e){const t=this,r=e.option("reduce_vars"),n=new Ws(((i,a)=>{if(xc(i,1792),r)return e.top_retain&&i instanceof qa&&n.parent()===t&&bc(i,1024),i.reduce_vars(n,a,e)}));n.safe_ids=Object.create(null),n.in_loop=null,n.loop_ids=new Map,n.defs_to_safe_ids=new Map,t.walk(n)})),ns.DEFMETHOD("fixed_value",(function(){var e=this.thedef.fixed;return!e||e instanceof Ea?e:e()})),xs.DEFMETHOD("is_immutable",(function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof fs}));var Vc=bi("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");xs.DEFMETHOD("is_declared",(function(e){return!this.definition().undeclared||e.option("unsafe")&&Vc.has(this.name)}));var Kc=bi("Infinity NaN undefined");function zc(e){return e instanceof Ls||e instanceof Os||e instanceof Ms}function Wc(e,t){var r,n,i=t.find_parent(Ka).get_defun_scope();!(()=>{var e=t.self(),a=0;do{if(e instanceof go||e instanceof ho)a++;else if(e instanceof Oa)r=!0;else{if(e instanceof Ka){i=e;break}e instanceof mo&&(n=!0)}}while(e=t.parent(a++))})();var a,o=10;do{a=!1,c(e),t.option("dead_code")&&u(e,t),t.option("if_return")&&l(e,t),t.sequences_limit>0&&(p(e,t),f(e,t)),t.option("join_vars")&&g(e),t.option("collapse_vars")&&s(e,t)}while(a&&o-- >0);function s(e,t){if(i.pinned())return e;for(var o,s=[],c=e.length,l=new Js((e=>{if(T)return e;if(!D)return e!==d[p]?e:++p<d.length?P(e):(D=!0,(m=R(e,0))===e&&(T=!0),e);var r,i=l.parent();if(e instanceof Uo&&(e.logical||"="!=e.operator&&h.equivalent_to(e.left))||e instanceof so||e instanceof ko&&h instanceof wo&&h.equivalent_to(e.expression)||e instanceof Da||e instanceof Xa||e instanceof Wa&&e.expression instanceof ns&&(e.expression instanceof Ts||e.expression.definition().references.length>1)||e instanceof Oa&&!(e instanceof Ba)||e instanceof io||e instanceof mo||e instanceof Va||e instanceof co||e instanceof Co||e instanceof Qo||i instanceof Ba&&e!==i.init||!x&&e instanceof xs&&!e.is_declared(t)&&!al.has(e)||e instanceof xs&&i instanceof ko&&ki(i,Gs))return T=!0,e;if(g||v&&x||!(i instanceof Bo&&Gc.has(i.operator)&&i.left!==e||i instanceof jo&&i.condition!==e||i instanceof lo&&i.condition!==e)||(g=i),k&&!(e instanceof as)&&h.equivalent_to(e)){if(g)return T=!0,e;if(Xc(e,i))return f&&C++,e;if(C++,f&&_ instanceof Eo)return e;if(a=T=!0,_ instanceof Lo)return mi(Ro,_,_);if(_ instanceof Eo){var o=_.name.definition(),s=_.value;return o.references.length-o.replaced!=1||t.exposed(o)?mi(Uo,_,{operator:"=",logical:!1,left:mi(xs,_.name,_.name),right:s}):(o.replaced++,S&&zc(s)?s.transform(t):Ic(i,e,s))}return xc(_,32),_}return(e instanceof ko||e instanceof to&&(b||h instanceof wo||z(h))||e instanceof wo&&(b||e.expression.may_throw_on_access(t))||e instanceof xs&&(y.get(e.name)||b&&z(e))||e instanceof Eo&&e.value&&(y.has(e.name.name)||b&&z(e.name))||(r=Xc(e.left,e))&&(r instanceof wo||y.has(r.name))||E&&(n?e.has_side_effects(t):W(e)))&&(m=e,e instanceof Ka&&(T=!0)),P(e)}),(e=>{T||(m===e&&(T=!0),g===e&&(g=null))})),u=new Js((e=>{if(T)return e;if(!D){if(e!==d[p])return e;if(++p<d.length)return;return D=!0,e}return e instanceof xs&&e.name==w.name?(--C||(T=!0),Xc(e,u.parent())?e:(w.replaced++,f.replaced--,_.value)):e instanceof _o||e instanceof Ka?e:void 0}));--c>=0;){0==c&&t.option("unused")&&O();var d=[];for(M(e[c]);s.length>0;){d=s.pop();var p=0,_=d[d.length-1],f=null,m=null,g=null,h=L(_);if(h&&!kc(h)&&!h.has_side_effects(t)){var y=j(_),v=V(h);h instanceof xs&&y.set(h.name,!1);var b=(F=_)instanceof Mo?qc.has(F.operator):B(F).has_side_effects(t),x=K(),E=_.may_throw(t),S=_.name instanceof us,D=S,T=!1,C=0,k=!o||!D;if(!k){for(var A=t.self().argnames.lastIndexOf(_.name)+1;!T&&A<o.length;A++)o[A].transform(l);k=!0}for(var N=c;!T&&N<e.length;N++)e[N].transform(l);if(f){var w=_.name.definition();if(T&&w.references.length-w.replaced>C)C=!1;else{for(T=!1,p=0,D=S,N=c;!T&&N<e.length;N++)e[N].transform(u);f.single_use=!1}}C&&!U(_)&&e.splice(c,1)}}}var F;function P(e){if(e instanceof Ka)return e;if(e instanceof uo){e.expression=e.expression.transform(l);for(var t=0,r=e.body.length;!T&&t<r;t++){var n=e.body[t];if(n instanceof fo){if(!D){if(n!==d[p])continue;p++}if(n.expression=n.expression.transform(l),!x)break}}return T=!0,e}}function I(e,t,r){var n=!1,a=!(e instanceof Ga);return t.walk(new Ws(((t,o)=>{if(n)return!0;if(t instanceof xs&&(e.variables.has(t.name)||((e,t)=>{if(e.global)return!1;let r=e.scope;for(;r&&r!==t;){if(r.variables.has(e.name))return!0;r=r.parent_scope}return!1})(t.definition(),e))){var s=t.definition().scope;if(s!==i)for(;s=s.parent_scope;)if(s===i)return!0;return n=!0}if((r||a)&&t instanceof Ts)return n=!0;if(t instanceof Ka&&!(t instanceof Ga)){var c=a;return a=!1,o(),a=c,!0}}))),n}function O(){var e,r=t.self();if(Cc(r)&&!r.name&&!r.uses_arguments&&!r.pinned()&&(e=t.parent())instanceof ko&&e.expression===r&&e.args.every((e=>!(e instanceof Wa)))){var n=t.has_directive("use strict");n&&!oi(n,r.body)&&(n=!1);var i=r.argnames.length;o=e.args.slice(i);for(var a=new Set,c=i;--c>=0;){var l=r.argnames[c],u=e.args[c];const i=l.definition&&l.definition();if(!(i&&i.orig.length>1||(o.unshift(mi(Eo,l,{name:l,value:u})),a.has(l.name))))if(a.add(l.name),l instanceof Wa){var d=e.args.slice(c);d.every((e=>!I(r,e,n)))&&s.unshift([mi(Eo,l,{name:l.expression,value:mi(Ko,e,{elements:d})})])}else u?(u instanceof Ja&&u.pinned()||I(r,u,n))&&(u=null):u=mi(Ms,l).transform(t),u&&s.unshift([mi(Eo,l,{name:l,value:u})])}}}function M(e){if(d.push(e),e instanceof Uo)e.left.has_side_effects(t)||s.push(d.slice()),M(e.right);else if(e instanceof Bo)M(e.left),M(e.right);else if(e instanceof ko&&!ki(e,Gs))M(e.expression),e.args.forEach(M);else if(e instanceof fo)M(e.expression);else if(e instanceof jo)M(e.condition),M(e.consequent),M(e.alternative);else if(e instanceof yo){var r=e.definitions.length,n=r-200;for(n<0&&(n=0);n<r;n++)M(e.definitions[n])}else e instanceof Ma?(M(e.condition),e.body instanceof Na||M(e.body)):e instanceof to?e.value&&M(e.value):e instanceof Ba?(e.init&&M(e.init),e.condition&&M(e.condition),e.step&&M(e.step),e.body instanceof Na||M(e.body)):e instanceof ja?(M(e.object),e.body instanceof Na||M(e.body)):e instanceof lo?(M(e.condition),e.body instanceof Na||M(e.body),!e.alternative||e.alternative instanceof Na||M(e.alternative)):e instanceof No?e.expressions.forEach(M):e instanceof Ca?M(e.body):e instanceof uo?(M(e.expression),e.body.forEach(M)):e instanceof Mo?"++"!=e.operator&&"--"!=e.operator||s.push(d.slice()):e instanceof Eo&&e.value&&(s.push(d.slice()),M(e.value));d.pop()}function R(e,t,r){var n=l.parent(t);return n instanceof Uo?!r||n.logical||n.left instanceof wo||y.has(n.left.name)?e:R(n,t+1,r):n instanceof Bo?!r||Gc.has(n.operator)&&n.left!==e?e:R(n,t+1,r):n instanceof ko||n instanceof fo?e:n instanceof jo?r&&n.condition===e?R(n,t+1,r):e:n instanceof yo?R(n,t+1,!0):n instanceof to?r?R(n,t+1,r):e:n instanceof lo?r&&n.condition===e?R(n,t+1,r):e:n instanceof Oa?e:n instanceof No?R(n,t+1,n.tail_node()!==e):n instanceof Ca?R(n,t+1,!0):n instanceof uo||n instanceof Eo?e:null}function L(e){if(e instanceof Uo&&e.logical)return!1;if(!(e instanceof Eo&&e.name instanceof as)){const t=e instanceof Uo?e.left:e.expression;return!Ac(t,cs)&&!Ac(t,ls)&&t}var r=e.name.definition();if(oi(e.name,r.orig)){var n=r.references.length-r.replaced;if(n)return r.orig.length-r.eliminated>1&&!(e.name instanceof us)||(n>1?(e=>{var t=e.value;if(t instanceof xs&&"arguments"!=t.name){var r=t.definition();if(!r.undeclared)return f=r}})(e):!t.exposed(r))?mi(xs,e.name,e.name):void 0}}function B(e){return e instanceof Uo?e.right:e.value}function j(e){var r=new Map;if(e instanceof Mo)return r;var n=new Ws((e=>{for(var i=e;i instanceof wo;)i=i.expression;(i instanceof xs||i instanceof Ts)&&r.set(i.name,r.get(i.name)||Tc(t,n,e,e,0))}));return B(e).walk(n),r}function U(r){if(r.name instanceof us){var n=t.parent(),i=t.self().argnames,a=i.indexOf(r.name);if(a<0)n.args.length=Math.min(n.args.length,i.length-1);else{var o=n.args;o[a]&&(o[a]=mi(Ns,o[a],{value:0}))}return!0}var s=!1;return e[c].transform(new Js(((e,t,n)=>s?e:e===r||e.body===r?(s=!0,e instanceof Eo?(e.value=e.name instanceof cs?mi(Ms,e.value):null,e):n?fi.skip:null):void 0),(e=>{if(e instanceof No)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function V(e){for(;e instanceof wo;)e=e.expression;return e instanceof xs&&e.definition().scope===i&&!(r&&(y.has(e.name)||_ instanceof Mo||_ instanceof Uo&&!_.logical&&"="!=_.operator))}function K(){if(b)return!1;if(f)return!0;if(h instanceof xs){var e=h.definition();if(e.references.length-e.replaced==(_ instanceof Eo?1:2))return!0}return!1}function z(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof ds||t.scope.get_defun_scope()===i&&t.references.every((e=>{var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===i})))}function W(e,t){if(e instanceof Uo)return W(e.left,!0);if(e instanceof Mo)return W(e.expression,!0);if(e instanceof Eo)return e.value&&W(e.value);if(t){if(e instanceof Fo)return W(e.expression,!0);if(e instanceof Io)return W(e.expression,!0);if(e instanceof xs)return e.definition().scope!==i}return!1}}function c(e){for(var t=[],r=0;r<e.length;){var n=e[r];n instanceof wa&&n.body.every(Lc)?(a=!0,c(n.body),e.splice(r,1,...n.body),r+=n.body.length):n instanceof Fa?(a=!0,e.splice(r,1)):n instanceof Ta?t.indexOf(n.value)<0?(r++,t.push(n.value)):(a=!0,e.splice(r,1)):r++}}function l(e,t){for(var r=t.self(),n=(e=>{for(var t=0,r=e.length;--r>=0;){var n=e[r];if(n instanceof lo&&n.body instanceof ro&&++t>1)return!0}return!1})(e),i=r instanceof Ja,o=e.length;--o>=0;){var s=e[o],c=y(o),l=e[c];if(i&&!l&&s instanceof ro){if(!s.value){a=!0,e.splice(o,1);continue}if(s.value instanceof Ro&&"void"==s.value.operator){a=!0,e[o]=mi(Ca,s,{body:s.value.expression});continue}}if(s instanceof lo){var u;if(m(u=ol(s.body))){u.label&&yi(u.label.thedef.references,u),a=!0,(s=s.clone()).condition=s.condition.negate(t);var p=h(s.body,u);s.body=mi(wa,s,{body:Mc(s.alternative).concat(g())}),s.alternative=mi(wa,s,{body:p}),e[o]=s.transform(t);continue}if(m(u=ol(s.alternative))){u.label&&yi(u.label.thedef.references,u),a=!0,(s=s.clone()).body=mi(wa,s.body,{body:Mc(s.body).concat(g())}),p=h(s.alternative,u),s.alternative=mi(wa,s.alternative,{body:p}),e[o]=s.transform(t);continue}}if(s instanceof lo&&s.body instanceof ro){var _=s.body.value;if(!_&&!s.alternative&&(i&&!l||l instanceof ro&&!l.value)){a=!0,e[o]=mi(Ca,s.condition,{body:s.condition});continue}if(_&&!s.alternative&&l instanceof ro&&l.value){a=!0,(s=s.clone()).alternative=l,e[o]=s.transform(t),e.splice(c,1);continue}if(_&&!s.alternative&&(!l&&i&&n||l instanceof ro)){a=!0,(s=s.clone()).alternative=l||mi(ro,s,{value:null}),e[o]=s.transform(t),l&&e.splice(c,1);continue}var f=e[v(o)];if(t.option("sequences")&&i&&!s.alternative&&f instanceof lo&&f.body instanceof ro&&y(c)==e.length&&l instanceof Ca){a=!0,(s=s.clone()).alternative=mi(wa,l,{body:[l,mi(ro,l,{value:null})]}),e[o]=s.transform(t),e.splice(c,1);continue}}}function m(n){if(!n)return!1;for(var a=o+1,s=e.length;a<s;a++){var c=e[a];if(c instanceof xo||c instanceof bo)return!1}var l=n instanceof io?t.loopcontrol_target(n):null;return n instanceof ro&&i&&(e=>!e||e instanceof Ro&&"void"==e.operator)(n.value)||n instanceof oo&&r===Bc(l)||n instanceof ao&&l instanceof wa&&r===l}function g(){var t=e.slice(o+1);return e.length=o+1,t.filter((t=>!(t instanceof qa&&(e.push(t),1))))}function h(e,t){var r=Mc(e).slice(0,-1);return t.value&&r.push(mi(Ca,t.value,{body:t.value.expression})),r}function y(t){for(var r=t+1,n=e.length;r<n;r++){var i=e[r];if(!(i instanceof vo&&d(i)))break}return r}function v(t){for(var r=t;--r>=0;){var n=e[r];if(!(n instanceof vo&&d(n)))break}return r}}function u(e,t){for(var r,n=t.self(),i=0,o=0,s=e.length;i<s;i++){var c=e[i];if(c instanceof io){var l=t.loopcontrol_target(c);c instanceof ao&&!(l instanceof Oa)&&Bc(l)===n||c instanceof oo&&Bc(l)===n?c.label&&yi(c.label.thedef.references,c):e[o++]=c}else e[o++]=c;if(ol(c)){r=e.slice(i+1);break}}e.length=o,a=o!=s,r&&r.forEach((r=>{Jc(t,r,e)}))}function d(e){return e.definitions.every((e=>!e.value))}function p(e,t){if(!(e.length<2)){for(var r=[],n=0,i=0,o=e.length;i<o;i++){var s=e[i];if(s instanceof Ca){r.length>=t.sequences_limit&&l();var c=s.body;r.length>0&&(c=c.drop_side_effect_free(t)),c&&Oc(r,c)}else s instanceof yo&&d(s)||s instanceof qa||l(),e[n++]=s}l(),e.length=n,n!=o&&(a=!0)}function l(){if(r.length){var t=Fc(r[0],r);e[n++]=mi(Ca,t,{body:t}),r=[]}}}function _(e,t){if(!(e instanceof wa))return e;for(var r=null,n=0,i=e.body.length;n<i;n++){var a=e.body[n];if(a instanceof vo&&d(a))t.push(a);else{if(r)return!1;r=a}}return r}function f(e,t){function r(e){i--,a=!0;var r=n.body;return Fc(r,[r,e]).transform(t)}for(var n,i=0,o=0;o<e.length;o++){var s=e[o];if(n&&(s instanceof to?s.value=r(s.value||mi(Ms,s).transform(t)):s instanceof Ba?s.init instanceof yo||Vs(n.body,(e=>e instanceof Ka||(e instanceof Bo&&"in"===e.operator?zs:void 0)))||(s.init?s.init=r(s.init):(s.init=n.body,i--,a=!0)):s instanceof ja?s.init instanceof xo||s.init instanceof bo||(s.object=r(s.object)):s instanceof lo?s.condition=r(s.condition):(s instanceof uo||s instanceof Va)&&(s.expression=r(s.expression))),t.option("conditionals")&&s instanceof lo){var c=[],l=_(s.body,c),u=_(s.alternative,c);if(!1!==l&&!1!==u&&c.length>0){var d=c.length;c.push(mi(lo,s,{condition:s.condition,body:l||mi(Fa,s.body),alternative:u})),c.unshift(i,1),[].splice.apply(e,c),o+=d,i+=d+1,n=null,a=!0;continue}}e[i++]=s,n=s instanceof Ca?s:null}e.length=i}function m(e,r){if(e instanceof yo){var n,a=e.definitions[e.definitions.length-1];if(a.value instanceof zo&&(r instanceof Uo&&!r.logical?n=[r]:r instanceof No&&(n=r.expressions.slice()),n)){var o=!1;do{var s=n[0];if(!(s instanceof Uo))break;if("="!=s.operator)break;if(!(s.left instanceof wo))break;var c=s.left.expression;if(!(c instanceof xs))break;if(a.name.name!=c.name)break;if(!s.right.is_constant_expression(i))break;var l=s.left.property;if(l instanceof Ea&&(l=l.evaluate(t)),l instanceof Ea)break;l=""+l;var u=t.option("ecma")<2015&&t.has_directive("use strict")?e=>e.key!=l&&e.key&&e.key.name!=l:e=>e.key&&e.key.name!=l;if(!a.value.properties.every(u))break;var d=a.value.properties.filter((e=>e.key===l))[0];d?d.value=new No({start:d.start,expressions:[d.value.clone(),s.right.clone()],end:d.end}):a.value.properties.push(mi(Jo,s,{key:l,value:s.right})),n.shift(),o=!0}while(n.length);return o&&n}}}function g(e){for(var t,r=0,n=-1,i=e.length;r<i;r++){var o=e[r],s=e[n];if(o instanceof yo)s&&s.TYPE==o.TYPE?(s.definitions=s.definitions.concat(o.definitions),a=!0):t&&t.TYPE==o.TYPE&&d(o)?(t.definitions=t.definitions.concat(o.definitions),a=!0):(e[++n]=o,t=o);else if(o instanceof to)o.value=l(o.value);else if(o instanceof Ba)(c=m(s,o.init))?(a=!0,o.init=c.length?Fc(o.init,c):null,e[++n]=o):s instanceof vo&&(!o.init||o.init.TYPE==s.TYPE)?(o.init&&(s.definitions=s.definitions.concat(o.init.definitions)),o.init=s,e[n]=o,a=!0):t&&o.init&&t.TYPE==o.init.TYPE&&d(o.init)?(t.definitions=t.definitions.concat(o.init.definitions),o.init=null,e[++n]=o,a=!0):e[++n]=o;else if(o instanceof ja)o.object=l(o.object);else if(o instanceof lo)o.condition=l(o.condition);else if(o instanceof Ca){var c;if(c=m(s,o.body)){if(a=!0,!c.length)continue;o.body=Fc(o.body,c)}e[++n]=o}else o instanceof uo||o instanceof Va?o.expression=l(o.expression):e[++n]=o}function l(t){e[++n]=o;var r=m(s,t);return r?(a=!0,r.length?Fc(t,r):t instanceof No?t.tail_node().left:t.left):t}e.length=n+1}}function Jc(e,t,r){Vs(t,(n=>n instanceof vo?(n.remove_initializers(),r.push(n),!0):n instanceof qa&&(n===t||!e.has_directive("use strict"))?(r.push(n===t?n:mi(vo,n,{definitions:[mi(Eo,n,{name:mi(os,n.name,n.name),value:null})]})),!0):n instanceof Co||n instanceof Do?(r.push(n),!0):n instanceof Ka||void 0))}function Hc(e){return e instanceof ks?e.getValue():e instanceof Ro&&"void"==e.operator&&e.expression instanceof ks?void 0:e}function $c(e,t){return vc(e,8)||e instanceof Ms||e instanceof Ro&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}Ea.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(Ea,t),e(Is,di),e(Ms,di),e(ks,ui),e(Ko,ui),e(zo,(function(e){if(!t(e))return!1;for(var r=this.properties.length;--r>=0;)if(this.properties[r]._dot_throw(e))return!0;return!1})),e(Qo,ui),e(Wo,ui),e(qo,di),e(Wa,(function(e){return this.expression._dot_throw(e)})),e($a,ui),e(Ga,ui),e(Lo,ui),e(Ro,(function(){return"void"==this.operator})),e(Bo,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(Uo,(function(e){return!!this.logical||"="==this.operator&&this.right._dot_throw(e)})),e(jo,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(Fo,(function(e){return!(!t(e)||"prototype"==this.property&&(this.expression instanceof $a||this.expression instanceof Qo))})),e(Oo,(function(e){return this.expression._dot_throw(e)})),e(No,(function(e){return this.tail_node()._dot_throw(e)})),e(xs,(function(e){if("arguments"===this.name)return!1;if(vc(this,8))return!0;if(!t(e))return!1;if(Uc(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var r=this.fixed_value();return!r||r._dot_throw(e)}))}(((e,t)=>{e.DEFMETHOD("_dot_throw",t)})),function(e){const t=bi("! delete"),r=bi("in instanceof == != === !== < <= >= >");e(Ea,ui),e(Ro,(function(){return t.has(this.operator)})),e(Bo,(function(){return r.has(this.operator)||Gc.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()})),e(jo,(function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()})),e(Uo,(function(){return"="==this.operator&&this.right.is_boolean()})),e(No,(function(){return this.tail_node().is_boolean()})),e(Us,di),e(js,di)}(((e,t)=>{e.DEFMETHOD("is_boolean",t)})),function(e){e(Ea,ui),e(Ns,di);var t=bi("+ - ~ ++ --");e(Mo,(function(){return t.has(this.operator)}));var r=bi("- * / % & | ^ << >> >>>");e(Bo,(function(e){return r.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(Uo,(function(e){return r.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(No,(function(e){return this.tail_node().is_number(e)})),e(jo,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}(((e,t)=>{e.DEFMETHOD("is_number",t)})),function(e){e(Ea,ui),e(As,di),e(Qa,di),e(Ro,(function(){return"typeof"==this.operator})),e(Bo,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),e(Uo,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),e(No,(function(e){return this.tail_node().is_string(e)})),e(jo,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}))}(((e,t)=>{e.DEFMETHOD("is_string",t)}));var Gc=bi("&& || ??"),qc=bi("delete ++ --");function Xc(e,t){return t instanceof Mo&&qc.has(t.operator)?t.expression:t instanceof Uo&&t.left===e?e:void 0}function Yc(e,t){return e.size()>t.size()?t:e}function Qc(e,t){return Yc(mi(Ca,e,{body:e}),mi(Ca,t,{body:t})).body}function Zc(e,t,r){return(Qs(e)?Qc:Yc)(t,r)}function el(e){const t=new Map;for(var r of Object.keys(e))t.set(r,bi(e[r]));return t}!function(e){function t(e,r){if(e instanceof Ea)return mi(e.CTOR,r,e);if(Array.isArray(e))return mi(Ko,r,{elements:e.map((e=>t(e,r)))});if(e&&"object"==typeof e){var n=[];for(var i in e)Si(e,i)&&n.push(mi(Jo,r,{key:i,value:t(e[i],r)}));return mi(zo,r,{properties:n})}return Pc(e,r)}za.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Js((function(t){var r=t._find_defs(e,"");if(r){for(var n,i=0,a=t;(n=this.parent(i++))&&n instanceof wo&&n.expression===a;)a=n;if(!Xc(a,n))return r}})))):this})),e(Ea,li),e(Oo,(function(e,t){return this.expression._find_defs(e,t)})),e(Fo,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(as,(function(){this.global()})),e(xs,(function(e,r){if(this.global()){var n=e.option("global_defs"),i=this.name+r;return Si(n,i)?t(n[i],this):void 0}}))}(((e,t)=>{e.DEFMETHOD("_find_defs",t)}));var tl=["constructor","toString","valueOf"],rl=el({Array:["indexOf","join","lastIndexOf","slice"].concat(tl),Boolean:tl,Function:tl,Number:["toExponential","toFixed","toPrecision"].concat(tl),Object:tl,RegExp:["test"].concat(tl),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(tl)}),nl=el({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});!function(e){Ea.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=bi("! ~ - + void");Ea.DEFMETHOD("is_constant",(function(){return this instanceof ks?!(this instanceof Fs):this instanceof Ro&&this.expression instanceof ks&&t.has(this.operator)})),e(Sa,(function(){throw new Error(hi("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(Ja,pi),e(Qo,pi),e(Ea,pi),e(ks,(function(){return this.getValue()})),e(ws,pi),e(Fs,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Qa,(function(){return 1!==this.segments.length?this:this.segments[0].value})),e($a,(function(e){if(e.option("unsafe")){var t=()=>{};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this})),e(Ko,(function(e,t){if(e.option("unsafe")){for(var r=[],n=0,i=this.elements.length;n<i;n++){var a=this.elements[n],o=a._eval(e,t);if(a===o)return this;r.push(o)}return r}return this})),e(zo,(function(e,t){if(e.option("unsafe")){for(var r={},n=0,i=this.properties.length;n<i;n++){var a=this.properties[n];if(a instanceof Wa)return this;var o=a.key;if(o instanceof ns)o=o.name;else if(o instanceof Ea&&(o=o._eval(e,t))===a.key)return this;if("function"==typeof Object.prototype[o])return this;if(!(a.value instanceof $a)&&(r[o]=a.value._eval(e,t),r[o]===a.value))return this}return r}return this}));var r=bi("! typeof void");e(Ro,(function(e,t){var n=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(n instanceof Ja||n instanceof xs&&n.fixed_value()instanceof Ja))return"function";if(r.has(this.operator)||t++,(n=n._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!n;case"typeof":return n instanceof RegExp?this:typeof n;case"void":return;case"~":return~n;case"-":return-n;case"+":return+n}return this}));var n=bi("&& || ?? === !==");const i=bi("== != === !=="),a=e=>"object"==typeof e||"function"==typeof e||"symbol"==typeof e;e(Bo,(function(e,t){n.has(this.operator)||t++;var r=this.left._eval(e,t);if(r===this.left)return this;var o,s=this.right._eval(e,t);if(s===this.right)return this;if(null!=r&&null!=s&&i.has(this.operator)&&a(r)&&a(s)&&typeof r==typeof s)return this;switch(this.operator){case"&&":o=r&&s;break;case"||":o=r||s;break;case"??":o=null!=r?r:s;break;case"|":o=r|s;break;case"&":o=r&s;break;case"^":o=r^s;break;case"+":o=r+s;break;case"*":o=r*s;break;case"**":o=Math.pow(r,s);break;case"/":o=r/s;break;case"%":o=r%s;break;case"-":o=r-s;break;case"<<":o=r<<s;break;case">>":o=r>>s;break;case">>>":o=r>>>s;break;case"==":o=r==s;break;case"===":o=r===s;break;case"!=":o=r!=s;break;case"!==":o=r!==s;break;case"<":o=r<s;break;case"<=":o=r<=s;break;case">":o=r>s;break;case">=":o=r>=s;break;default:return this}return isNaN(o)&&e.find_parent(Va)?this:o})),e(jo,(function(e,t){var r=this.condition._eval(e,t);if(r===this.condition)return this;var n=r?this.consequent:this.alternative,i=n._eval(e,t);return i===n?this:i}));const o=new Set;e(xs,(function(e,t){if(o.has(this))return this;var r=this.fixed_value();if(!r)return this;o.add(this);const n=r._eval(e,t);if(o.delete(this),n===r)return this;if(n&&"object"==typeof n){var i=this.definition().escaped;if(i&&t>i)return this}return n}));var s={Array,Math,Number,Object,String},c=el({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(wo,(function(e,t){if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")){var r=this.property;if(r instanceof Ea&&(r=r._eval(e,t))===this.property)return this;var n,i=this.expression;if(Uc(i)){var a,o="hasOwnProperty"===i.name&&"call"===r&&(a=e.parent()&&e.parent().args)&&a&&a[0]&&a[0].evaluate(e);if(null==(o=o instanceof Fo?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var l=c.get(i.name);if(!l||!l.has(r))return this;n=s[i.name]}else{if(!(n=i._eval(e,t+1))||n===i||!Si(n,r))return this;if("function"==typeof n)switch(r){case"name":return n.node.name?n.node.name.name:"";case"length":return n.node.argnames.length;default:return this}}return n[r]}return this}})),e(Oo,(function(e,t){const r=this.expression._eval(e,t);return r===this.expression?this:r})),e(ko,(function(e,t){var r=this.expression;if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")&&r instanceof wo){var n,i=r.property;if(i instanceof Ea&&(i=i._eval(e,t))===r.property)return this;var a=r.expression;if(Uc(a)){var o="hasOwnProperty"===a.name&&"call"===i&&this.args[0]&&this.args[0].evaluate(e);if(null==(o=o instanceof Fo?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var c=nl.get(a.name);if(!c||!c.has(i))return this;n=s[a.name]}else{if((n=a._eval(e,t+1))===a||!n)return this;var l=rl.get(n.constructor.name);if(!l||!l.has(i))return this}for(var u=[],d=0,p=this.args.length;d<p;d++){var _=this.args[d],f=_._eval(e,t);if(_===f)return this;u.push(f)}try{return n[i].apply(n,u)}catch(e){}}return this}})),e(Ao,pi)}(((e,t)=>{e.DEFMETHOD("_eval",t)})),function(e){function t(e){return mi(Ro,e,{operator:"!",expression:e})}function r(e,r,n){var i=t(e);if(n){var a=mi(Ca,r,{body:r});return Yc(i,a)===a?r:i}return Yc(i,r)}e(Ea,(function(){return t(this)})),e(Sa,(()=>{throw new Error("Cannot negate a statement")})),e($a,(function(){return t(this)})),e(Ga,(function(){return t(this)})),e(Ro,(function(){return"!"==this.operator?this.expression:t(this)})),e(No,(function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),Fc(this,t)})),e(jo,(function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),r(this,n,t)})),e(Bo,(function(e,n){var i=this.clone(),a=this.operator;if(e.option("unsafe_comps"))switch(a){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(a){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"||":return i.operator="&&",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"??":return i.right=i.right.negate(e),r(this,i,n)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,r){return t.call(this,e,r)}))}));var il=bi("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");ko.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,r=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==r||r.thedef&&r.thedef.undeclared))return!1;if(Uc(t)&&il.has(t.name))return!0;let n;if(t instanceof Fo&&Uc(t.expression)&&(n=nl.get(t.expression.name))&&n.has(t.property))return!0}return!!ki(this,Hs)||!e.pure_funcs(this)})),Ea.DEFMETHOD("is_call_pure",ui),Fo.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let r;return t instanceof Ko?r=rl.get("Array"):t.is_boolean()?r=rl.get("Boolean"):t.is_number(e)?r=rl.get("Number"):t instanceof Fs?r=rl.get("RegExp"):t.is_string(e)?r=rl.get("String"):this.may_throw_on_access(e)||(r=rl.get("Object")),r&&r.has(this.property)}));const al=new Set(["Number","String","Array","Object","Function","Promise"]);function ol(e){return e&&e.aborts()}!function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].has_side_effects(t))return!0;return!1}e(Ea,di),e(Fa,ui),e(ks,ui),e(Ts,ui),e(Na,(function(e){return t(this.body,e)})),e(ko,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(uo,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(fo,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(mo,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(lo,(function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)})),e(Ia,(function(e){return this.body.has_side_effects(e)})),e(Ca,(function(e){return this.body.has_side_effects(e)})),e(Ja,ui),e(Qo,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(Bo,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(Uo,di),e(jo,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e(Mo,(function(e){return qc.has(this.operator)||this.expression.has_side_effects(e)})),e(xs,(function(e){return!this.is_declared(e)&&!al.has(this.name)})),e(_s,ui),e(as,ui),e(zo,(function(e){return t(this.properties,e)})),e(Wo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value&&this.value.has_side_effects(e)})),e(Zo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(Xo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(qo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Go,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Ko,(function(e){return t(this.elements,e)})),e(Fo,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(Io,(function(e){return(!this.optional||!bl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e))})),e(Oo,(function(e){return this.expression.has_side_effects(e)})),e(No,(function(e){return t(this.expressions,e)})),e(yo,(function(e){return t(this.definitions,e)})),e(Eo,(function(){return this.value})),e(Za,ui),e(Qa,(function(e){return t(this.segments,e)}))}(((e,t)=>{e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].may_throw(t))return!0;return!1}e(Ea,di),e(ks,ui),e(Fa,ui),e(Ja,ui),e(as,ui),e(Ts,ui),e(Qo,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(Ko,(function(e){return t(this.elements,e)})),e(Uo,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof xs)&&this.left.may_throw(e)})),e(Bo,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(Na,(function(e){return t(this.body,e)})),e(ko,(function(e){return(!this.optional||!bl(this.expression))&&(!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||!(this.expression instanceof Ja)||t(this.expression.body,e)))})),e(fo,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(jo,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(yo,(function(e){return t(this.definitions,e)})),e(lo,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Ia,(function(e){return this.body.may_throw(e)})),e(zo,(function(e){return t(this.properties,e)})),e(Wo,(function(e){return!!this.value&&this.value.may_throw(e)})),e(Zo,(function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(Xo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(qo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Go,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(ro,(function(e){return this.value&&this.value.may_throw(e)})),e(No,(function(e){return t(this.expressions,e)})),e(Ca,(function(e){return this.body.may_throw(e)})),e(Fo,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(Io,(function(e){return(!this.optional||!bl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e))})),e(Oo,(function(e){return this.expression.may_throw(e)})),e(uo,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(xs,(function(e){return!this.is_declared(e)&&!al.has(this.name)})),e(_s,ui),e(mo,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e(Mo,(function(e){return!("typeof"==this.operator&&this.expression instanceof xs)&&this.expression.may_throw(e)})),e(Eo,(function(e){return!!this.value&&this.value.may_throw(e)}))}(((e,t)=>{e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return Vs(this,(r=>{if(r instanceof xs){if(vc(this,16))return t=!1,zs;var n=r.definition();if(oi(n,this.enclosed)&&!this.variables.has(n.name)){if(e){var i=e.find_variable(r);if(n.undeclared?!i:i===n)return t="f",!0}return t=!1,zs}return!0}if(r instanceof Ts&&this instanceof Ga)return t=!1,zs})),t}e(Ea,ui),e(ks,di),e(Qo,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(Ja,t),e(Mo,(function(){return this.expression.is_constant_expression()})),e(Bo,(function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()})),e(Ko,(function(){return this.elements.every((e=>e.is_constant_expression()))})),e(zo,(function(){return this.properties.every((e=>e.is_constant_expression()))})),e(Wo,(function(){return!(this.key instanceof Ea||!this.value||!this.value.is_constant_expression())}))}(((e,t)=>{e.DEFMETHOD("is_constant_expression",t)})),function(e){function t(){for(var e=0;e<this.body.length;e++)if(ol(this.body[e]))return this.body[e];return null}e(Sa,_i),e(eo,pi),e(Do,(()=>null)),e(wa,t),e(po,t),e(lo,(function(){return this.alternative&&ol(this.body)&&ol(this.alternative)&&this}))}(((e,t)=>{e.DEFMETHOD("aborts",t)}));var sl=new Set(["use asm","use strict"]);function cl(e,t){return Wc(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}Sc(Ta,((e,t)=>!t.option("directives")||sl.has(e.value)&&t.has_directive(e.value)===e?e:mi(Fa,e))),Sc(Da,((e,t)=>t.option("drop_debugger")?mi(Fa,e):e)),Sc(Ia,((e,t)=>e.body instanceof ao&&t.loopcontrol_target(e.body)===e.body?mi(Fa,e):0==e.label.references.length?e.body:e)),Sc(Na,((e,t)=>(Wc(e.body,t),e))),Sc(wa,((e,t)=>{switch(Wc(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof lo&&(e=>!(e instanceof xo||e instanceof bo||e instanceof Qo))(e.body[0])||Lc(e.body[0]))return e.body[0];break;case 0:return mi(Fa,e)}return e})),Sc(Ja,cl);const ll=/keep_assign/;function ul(e,t){var r=!1,n=new Ws((t=>!!(r||t instanceof Ka)||(t instanceof io&&n.loopcontrol_target(t)===e?r=!0:void 0)));return t instanceof Ia&&n.push(t),n.push(e),e.body.walk(n),r}function dl(e,t){var r=e.body instanceof wa?e.body.body[0]:e.body;if(t.option("dead_code")&&i(r)){var n=[];return e.init instanceof Sa?n.push(e.init):e.init&&n.push(mi(Ca,e.init,{body:e.init})),e.condition&&n.push(mi(Ca,e.condition,{body:e.condition})),Jc(t,e.body,n),mi(wa,e,{body:n})}return r instanceof lo&&(i(r.body)?(e.condition?e.condition=mi(Bo,e.condition,{left:e.condition,operator:"&&",right:r.condition.negate(t)}):e.condition=r.condition.negate(t),a(r.alternative)):i(r.alternative)&&(e.condition?e.condition=mi(Bo,e.condition,{left:e.condition,operator:"&&",right:r.condition}):e.condition=r.condition,a(r.body))),e;function i(e){return e instanceof ao&&t.loopcontrol_target(e)===t.self()}function a(r){r=Mc(r),e.body instanceof wa?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=mi(wa,e.body,{body:r}).transform(t),e=dl(e,t)}}function pl(e,t){return t.top_retain&&e instanceof qa&&vc(e,1024)&&e.name&&t.top_retain(e.name)}Ka.DEFMETHOD("drop_unused",(function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned())return;var r=!(t instanceof za)||e.toplevel.funcs,n=!(t instanceof za)||e.toplevel.vars;const i=ll.test(e.option("unused"))?ui:e=>e instanceof Uo&&!e.logical&&(vc(e,32)||"="==e.operator)?e.left:e instanceof Mo&&vc(e,32)?e.expression:void 0;var a=new Map,o=new Map;t instanceof za&&e.top_retain&&t.variables.forEach((t=>{e.top_retain(t)&&!a.has(t.id)&&a.set(t.id,t)}));var s=new Map,c=new Map,l=this,u=new Ws(((i,d)=>{if(i instanceof Ja&&i.uses_arguments&&!u.has_directive("use strict")&&i.argnames.forEach((e=>{if(e instanceof as){var t=e.definition();a.has(t.id)||a.set(t.id,t)}})),i!==t){if(i instanceof qa||i instanceof ts){var _=i.name.definition();if((u.parent()instanceof Co||!r&&l===t)&&_.global&&!a.has(_.id)&&a.set(_.id,_),i instanceof ts){i.extends&&(i.extends.has_side_effects(e)||i.extends.may_throw(e))&&i.extends.walk(u);for(const t of i.properties)(t.has_side_effects(e)||t.may_throw(e))&&t.walk(u)}return xi(c,_.id,i),!0}if(i instanceof us&&l===t&&xi(s,i.definition().id,i),i instanceof yo&&l===t){const t=u.parent()instanceof Co;return i.definitions.forEach((r=>{if(r.name instanceof os&&xi(s,r.name.definition().id,r),!t&&n||Vs(r.name,(e=>{if(e instanceof as){const r=e.definition();!t&&!r.global||a.has(r.id)||a.set(r.id,r)}})),r.value){if(r.name instanceof Xa)r.walk(u);else{var i=r.name.definition();xi(c,i.id,r.value),i.chained||r.name.fixed_value()!==r.value||o.set(i.id,r)}r.value.has_side_effects(e)&&r.value.walk(u)}})),!0}return p(i,d)}}));t.walk(u),u=new Ws(p),a.forEach((e=>{var t=c.get(e.id);t&&t.forEach((e=>{e.walk(u)}))}));var d=new Js((function(c,u,p){var _=d.parent();if(n){const e=i(c);if(e instanceof xs){var f=e.definition(),m=a.has(f.id);if(c instanceof Uo){if(!m||o.has(f.id)&&o.get(f.id)!==c)return Ic(_,c,c.right.transform(d))}else if(!m)return p?fi.skip:mi(Ns,c,{value:0})}}if(l===t){if(c.name&&(c instanceof rs&&!Di(e.option("keep_classnames"),(f=c.name.definition()).name)||c instanceof $a&&!Di(e.option("keep_fnames"),(f=c.name.definition()).name))&&(!a.has(f.id)||f.orig.length>1)&&(c.name=null),c instanceof Ja&&!(c instanceof Ha))for(var g=!e.option("keep_fargs"),h=c.argnames,y=h.length;--y>=0;){var v=h[y];v instanceof Wa&&(v=v.expression),v instanceof Vo&&(v=v.left),v instanceof Xa||a.has(v.definition().id)?g=!1:(bc(v,1),g&&h.pop())}if((c instanceof qa||c instanceof ts)&&c!==t){const t=c.name.definition();if(!(t.global&&!r||a.has(t.id))){if(t.eliminated++,c instanceof ts){const t=c.drop_side_effect_free(e);if(t)return mi(Ca,c,{body:t})}return p?fi.skip:mi(Fa,c)}}if(c instanceof yo&&!(_ instanceof ja&&_.init===c)){var b=!(_ instanceof za||c instanceof vo),x=[],E=[],S=[],D=[];switch(c.definitions.forEach((t=>{t.value&&(t.value=t.value.transform(d));var r=t.name instanceof Xa,i=r?new lc(null,{name:"<destructure>"}):t.name.definition();if(b&&i.global)return S.push(t);if(!n&&!b||r&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||a.has(i.id)){if(t.value&&o.has(i.id)&&o.get(i.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof os){var l=s.get(i.id);if(l.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var u=mi(xs,t.name,t.name);i.references.push(u);var p=mi(Uo,t,{operator:"=",logical:!1,left:u,right:t.value});o.get(i.id)===t&&o.set(i.id,p),D.push(p.transform(d))}return yi(l,t),void i.eliminated++}}t.value?(D.length>0&&(S.length>0?(D.push(t.value),t.value=Fc(t.value,D)):x.push(mi(Ca,c,{body:Fc(c,D)})),D=[]),S.push(t)):E.push(t)}else if(i.orig[0]instanceof hs)(_=t.value&&t.value.drop_side_effect_free(e))&&D.push(_),t.value=null,E.push(t);else{var _;(_=t.value&&t.value.drop_side_effect_free(e))&&D.push(_),i.eliminated++}})),(E.length>0||S.length>0)&&(c.definitions=E.concat(S),x.push(c)),D.length>0&&x.push(mi(Ca,c,{body:Fc(c,D)})),x.length){case 0:return p?fi.skip:mi(Fa,c);case 1:return x[0];default:return p?fi.splice(x):mi(wa,c,{body:x})}}if(c instanceof Ba)return u(c,this),c.init instanceof wa&&(T=c.init,c.init=T.body.pop(),T.body.push(c)),c.init instanceof Ca?c.init=c.init.body:Rc(c.init)&&(c.init=null),T?p?fi.splice(T.body):T:c;if(c instanceof Ia&&c.body instanceof Ba){if(u(c,this),c.body instanceof wa){var T=c.body;return c.body=T.body.pop(),T.body.push(c),p?fi.splice(T.body):T}return c}if(c instanceof wa)return u(c,this),p&&c.body.every(Lc)?fi.splice(c.body):c;if(c instanceof Ka){const e=l;return l=c,u(c,this),l=e,c}}}));function p(e,r){var n;const s=i(e);if(s instanceof xs&&!Ac(e.left,ss)&&t.variables.get(s.name)===(n=s.definition()))return e instanceof Uo&&(e.right.walk(u),n.chained||e.left.fixed_value()!==e.right||o.set(n.id,e)),!0;if(e instanceof xs){if(n=e.definition(),!a.has(n.id)&&(a.set(n.id,n),n.orig[0]instanceof hs)){const e=n.scope.is_block_scope()&&n.scope.get_defun_scope().variables.get(n.name);e&&a.set(e.id,e)}return!0}if(e instanceof Ka){var c=l;return l=e,r(),l=c,!0}}t.transform(d)})),Ka.DEFMETHOD("hoist_declarations",(function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var r=e.option("hoist_funs"),n=e.option("hoist_vars");if(r||n){var i=[],a=[],o=new Map,s=0,c=0;Vs(t,(e=>e instanceof Ka&&e!==t||(e instanceof vo?(++c,!0):void 0))),n=n&&c>1;var l=new Js((c=>{if(c!==t){if(c instanceof Ta)return i.push(c),mi(Fa,c);if(r&&c instanceof qa&&!(l.parent()instanceof Co)&&l.parent()===t)return a.push(c),mi(Fa,c);if(n&&c instanceof vo&&!c.definitions.some((e=>e.name instanceof Xa))){c.definitions.forEach((e=>{o.set(e.name.name,e),++s}));var u=c.to_assignments(e),d=l.parent();if(d instanceof ja&&d.init===c){if(null==u){var p=c.definitions[0].name;return mi(xs,p,p)}return u}return d instanceof Ba&&d.init===c?u:u?mi(Ca,c,{body:u}):mi(Fa,c)}if(c instanceof Ka)return c}}));if(t=t.transform(l),s>0){var u=[];const e=t instanceof Ja,r=e?t.args_as_names():null;if(o.forEach(((t,n)=>{e&&r.some((e=>e.name===t.name.name))?o.delete(n):((t=t.clone()).value=null,u.push(t),o.set(n,t))})),u.length>0){for(;0<t.body.length;){if(t.body[0]instanceof Ca){var d,p,_=t.body[0].body;if(_ instanceof Uo&&"="==_.operator&&(d=_.left)instanceof ns&&o.has(d.name)){if((f=o.get(d.name)).value)break;f.value=_.right,yi(u,f),u.push(f),t.body.splice(0,1);continue}if(_ instanceof No&&(p=_.expressions[0])instanceof Uo&&"="==p.operator&&(d=p.left)instanceof ns&&o.has(d.name)){var f;if((f=o.get(d.name)).value)break;f.value=p.right,yi(u,f),u.push(f),t.body[0].body=Fc(_,_.expressions.slice(1));continue}}if(t.body[0]instanceof Fa)t.body.splice(0,1);else{if(!(t.body[0]instanceof wa))break;t.body.splice(0,1,...t.body[0].body)}}u=mi(vo,t,{definitions:u}),a.push(u)}}t.body=i.concat(a,t.body)}return t})),Ka.DEFMETHOD("hoist_properties",(function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var r=t instanceof za&&e.top_retain||ui,n=new Map,i=new Js((function(a,o){if(a instanceof yo&&i.parent()instanceof Co)return a;if(a instanceof Eo){const s=a.name;let c,l;if(s.scope===t&&1!=(c=s.definition()).escaped&&!c.assignments&&!c.direct_access&&!c.single_use&&!e.exposed(c)&&!r(c)&&(l=s.fixed_value())===a.value&&l instanceof zo&&!l.properties.some((e=>e instanceof Wa||e.computed_key()))){o(a,this);const e=new Map,r=[];return l.properties.forEach((({key:n,value:o})=>{const c=Nc(i),l=t.create_symbol(s.CTOR,{source:s,scope:c,conflict_scopes:new Set([c,...s.definition().references.map((e=>e.scope))]),tentative_name:s.name+"_"+n});e.set(String(n),l.definition()),r.push(mi(Eo,a,{name:l,value:o}))})),n.set(c.id,e),fi.splice(r)}}else if(a instanceof wo&&a.expression instanceof xs){const e=n.get(a.expression.definition().id);if(e){const t=e.get(String(Hc(a.property))),r=mi(xs,a,{name:t.name,scope:a.expression.scope,thedef:t});return r.reference({}),r}}}));return t.transform(i)})),function(e){function t(e,t,r){var n=e.length;if(!n)return null;for(var i=[],a=!1,o=0;o<n;o++){var s=e[o].drop_side_effect_free(t,r);a|=s!==e[o],s&&(i.push(s),r=!1)}return a?i.length?i:null:e}e(Ea,pi),e(ks,_i),e(Ts,_i),e(ko,(function(e,r){if(this.optional&&bl(this.expression))return mi(Ms,this);if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var n=this.args.slice();return n.unshift(this.expression.expression),(n=t(n,e,r))&&Fc(this,n)}if(Cc(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,e),i}return this}var a=t(this.args,e,r);return a&&Fc(this,a)})),e(Ha,_i),e($a,_i),e(Ga,_i),e(Qo,(function(e){const t=[],r=this.extends&&this.extends.drop_side_effect_free(e);r&&t.push(r);for(const r of this.properties){const n=r.drop_side_effect_free(e);n&&t.push(n)}return t.length?Fc(this,t):null})),e(Bo,(function(e,t){var r=this.right.drop_side_effect_free(e);if(!r)return this.left.drop_side_effect_free(e,t);if(Gc.has(this.operator)){if(r===this.right)return this;var n=this.clone();return n.right=r,n}var i=this.left.drop_side_effect_free(e,t);return i?Fc(this,[i,r]):this.right.drop_side_effect_free(e,t)})),e(Uo,(function(e){if(this.logical)return this;var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof wo&&t.expression.is_constant())return this;for(bc(this,32);t instanceof wo;)t=t.expression;return t.is_constant_expression(e.find_parent(Ka))?this.right.drop_side_effect_free(e):this})),e(jo,(function(e){var t=this.consequent.drop_side_effect_free(e),r=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&r===this.alternative)return this;if(!t)return r?mi(Bo,this,{operator:"||",left:this.condition,right:r}):this.condition.drop_side_effect_free(e);if(!r)return mi(Bo,this,{operator:"&&",left:this.condition,right:t});var n=this.clone();return n.consequent=t,n.alternative=r,n})),e(Mo,(function(e,t){if(qc.has(this.operator))return this.expression.has_side_effects(e)?xc(this,32):bc(this,32),this;if("typeof"==this.operator&&this.expression instanceof xs)return null;var r=this.expression.drop_side_effect_free(e,t);return t&&r&&jc(r)?r===this.expression&&"!"==this.operator?this:r.negate(e,t):r})),e(xs,(function(e){return this.is_declared(e)||al.has(this.name)?null:this})),e(zo,(function(e,r){var n=t(this.properties,e,r);return n&&Fc(this,n)})),e(Wo,(function(e,t){const r=this instanceof Jo&&this.key instanceof Ea&&this.key.drop_side_effect_free(e,t),n=this.value&&this.value.drop_side_effect_free(e,t);return r&&n?Fc(this,[r,n]):r||n})),e(Zo,(function(e){const t=this.computed_key()&&this.key.drop_side_effect_free(e),r=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&r?Fc(this,[t,r]):t||r||null})),e(Xo,(function(){return this.computed_key()?this.key:null})),e(qo,(function(){return this.computed_key()?this.key:null})),e(Go,(function(){return this.computed_key()?this.key:null})),e(Ko,(function(e,r){var n=t(this.elements,e,r);return n&&Fc(this,n)})),e(Fo,(function(e,t){return this.optional?bl(this.expression)?mi(Ms,this):this:this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)})),e(Io,(function(e,t){if(this.optional)return bl(this.expression)?mi(Ms,this):this;if(this.expression.may_throw_on_access(e))return this;var r=this.expression.drop_side_effect_free(e,t);if(!r)return this.property.drop_side_effect_free(e,t);var n=this.property.drop_side_effect_free(e);return n?Fc(this,[r,n]):r})),e(Oo,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(No,(function(e){var t=this.tail_node(),r=t.drop_side_effect_free(e);if(r===t)return this;var n=this.expressions.slice(0,-1);return r&&n.push(r),n.length?Fc(this,n):mi(Ns,this,{value:0})})),e(Wa,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(Za,_i),e(Qa,(function(e){var r=t(this.segments,e,Qs);return r&&Fc(this,r)}))}(((e,t)=>{e.DEFMETHOD("drop_side_effect_free",t)})),Sc(Ca,((e,t)=>{if(t.option("side_effects")){var r=e.body,n=r.drop_side_effect_free(t,!0);if(!n)return mi(Fa,e);if(n!==r)return mi(Ca,e,{body:n})}return e})),Sc(La,((e,t)=>t.option("loops")?mi(Ba,e,e).optimize(t):e)),Sc(Ra,((e,t)=>{if(!t.option("loops"))return e;var r=e.condition.tail_node().evaluate(t);if(!(r instanceof Ea)){if(r)return mi(Ba,e,{body:mi(wa,e.body,{body:[e.body,mi(Ca,e.condition,{body:e.condition})]})}).optimize(t);if(!ul(e,t.parent()))return mi(wa,e.body,{body:[e.body,mi(Ca,e.condition,{body:e.condition})]}).optimize(t)}return e})),Sc(Ba,((e,t)=>{if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var r=e.condition.evaluate(t);if(!(r instanceof Ea))if(r)e.condition=null;else if(!t.option("dead_code")){var n=e.condition;e.condition=Pc(r,e.condition),e.condition=Yc(e.condition.transform(t),n)}if(t.option("dead_code")&&(r instanceof Ea&&(r=e.condition.tail_node().evaluate(t)),!r)){var i=[];return Jc(t,e.body,i),e.init instanceof Sa?i.push(e.init):e.init&&i.push(mi(Ca,e.init,{body:e.init})),i.push(mi(Ca,e.condition,{body:e.condition})),mi(wa,e,{body:i}).optimize(t)}}return dl(e,t)})),Sc(lo,((e,t)=>{if(Rc(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var r=e.condition.evaluate(t);if(!(t.option("dead_code")||r instanceof Ea)){var n=e.condition;e.condition=Pc(r,n),e.condition=Yc(e.condition.transform(t),n)}if(t.option("dead_code")){if(r instanceof Ea&&(r=e.condition.tail_node().evaluate(t)),!r){var i=[];return Jc(t,e.body,i),i.push(mi(Ca,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),mi(wa,e,{body:i}).optimize(t)}if(!(r instanceof Ea))return(i=[]).push(mi(Ca,e.condition,{body:e.condition})),i.push(e.body),e.alternative&&Jc(t,e.alternative,i),mi(wa,e,{body:i}).optimize(t)}var a=e.condition.negate(t),o=e.condition.size(),s=a.size(),c=s<o;if(e.alternative&&c){c=!1,e.condition=a;var l=e.body;e.body=e.alternative||mi(Fa,e),e.alternative=l}if(Rc(e.body)&&Rc(e.alternative))return mi(Ca,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof Ca&&e.alternative instanceof Ca)return mi(Ca,e,{body:mi(jo,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(Rc(e.alternative)&&e.body instanceof Ca)return o===s&&!c&&e.condition instanceof Bo&&"||"==e.condition.operator&&(c=!0),c?mi(Ca,e,{body:mi(Bo,e,{operator:"||",left:a,right:e.body.body})}).optimize(t):mi(Ca,e,{body:mi(Bo,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof Fa&&e.alternative instanceof Ca)return mi(Ca,e,{body:mi(Bo,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof to&&e.alternative instanceof to&&e.body.TYPE==e.alternative.TYPE)return mi(e.body.CTOR,e,{value:mi(jo,e,{condition:e.condition,consequent:e.body.value||mi(Ms,e.body),alternative:e.alternative.value||mi(Ms,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof lo&&!e.body.alternative&&!e.alternative&&(e=mi(lo,e,{condition:mi(Bo,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),ol(e.body)&&e.alternative){var u=e.alternative;return e.alternative=null,mi(wa,e,{body:[e,u]}).optimize(t)}return ol(e.alternative)?(i=e.body,e.body=e.alternative,e.condition=c?a:e.condition.negate(t),e.alternative=null,mi(wa,e,{body:[e,i]}).optimize(t)):e})),Sc(uo,((e,t)=>{if(!t.option("switches"))return e;var r,n=e.expression.evaluate(t);if(!(n instanceof Ea)){var i=e.expression;e.expression=Pc(n,i),e.expression=Yc(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;n instanceof Ea&&(n=e.expression.tail_node().evaluate(t));for(var a,o,s=[],c=[],l=0,u=e.body.length;l<u&&!o;l++){if((r=e.body[l])instanceof _o)a?y(r,c[c.length-1]):a=r;else if(!(n instanceof Ea)){if(!((g=r.expression.evaluate(t))instanceof Ea)&&g!==n){y(r,c[c.length-1]);continue}if(g instanceof Ea&&(g=r.expression.tail_node().evaluate(t)),g===n&&(o=r,a)){var d=c.indexOf(a);c.splice(d,1),y(a,c[d-1]),a=null}}if(ol(r)){var p=c[c.length-1];ol(p)&&p.body.length==r.body.length&&mi(wa,p,p).equivalent_to(mi(wa,r,r))&&(p.body=[])}c.push(r)}for(;l<u;)y(e.body[l++],c[c.length-1]);for(c.length>0&&(c[0].body=s.concat(c[0].body)),e.body=c;r=c[c.length-1];){var _=r.body[r.body.length-1];if(_ instanceof ao&&t.loopcontrol_target(_)===e&&r.body.pop(),r.body.length||r instanceof fo&&(a||r.expression.has_side_effects(t)))break;c.pop()===a&&(a=null)}if(0==c.length)return mi(wa,e,{body:s.concat(mi(Ca,e.expression,{body:e.expression}))}).optimize(t);if(1==c.length&&(c[0]===o||c[0]===a)){var f=!1,m=new Ws((t=>{if(f||t instanceof Ja||t instanceof Ca)return!0;t instanceof ao&&m.loopcontrol_target(t)===e&&(f=!0)}));if(e.walk(m),!f){var g,h=c[0].body.slice();return(g=c[0].expression)&&h.unshift(mi(Ca,g,{body:g})),h.unshift(mi(Ca,e.expression,{body:e.expression})),mi(wa,e,{body:h}).optimize(t)}}return e;function y(e,r){r&&!ol(r)?r.body=r.body.concat(e.body):Jc(t,e,s)}})),Sc(mo,((e,t)=>{if(Wc(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Rc)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Rc)){var r=[];return e.bcatch&&Jc(t,e.bcatch,r),e.bfinally&&r.push(...e.bfinally.body),mi(wa,e,{body:r}).optimize(t)}return e})),yo.DEFMETHOD("remove_initializers",(function(){var e=[];this.definitions.forEach((t=>{t.name instanceof as?(t.value=null,e.push(t)):Vs(t.name,(r=>{r instanceof as&&e.push(mi(Eo,t,{name:r,value:null}))}))})),this.definitions=e})),yo.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),r=[];for(const e of this.definitions){if(e.value){var n=mi(xs,e.name,e.name);r.push(mi(Uo,e,{operator:"=",logical:!1,left:n,right:e.value})),t&&(n.definition().fixed=!1)}else if(e.value){var i=mi(Eo,e,{name:e.name,value:e.value}),a=mi(vo,e,{definitions:[i]});r.push(a)}const o=e.name.definition();o.eliminated++,o.replaced--}return 0==r.length?null:Fc(this,r)})),Sc(yo,(e=>0==e.definitions.length?mi(Fa,e):e)),Sc(Eo,(e=>(e.name instanceof ls&&null!=e.value&&$c(e.value)&&(e.value=null),e))),Sc(Do,(e=>e)),Sc(ko,(function(e,t){var r=e.expression,n=r;Sl(e.args);var i=e.args.every((e=>!(e instanceof Wa)));if(t.option("reduce_vars")&&n instanceof xs&&!ki(e,Gs)){const e=n.fixed_value();pl(e,t)||(n=e)}if(e.optional&&bl(n))return mi(Ms,e);var a=n instanceof Ja;if(a&&n.pinned())return e;if(t.option("unused")&&i&&a&&!n.uses_arguments){for(var o=0,s=0,c=0,l=e.args.length;c<l;c++){if(n.argnames[c]instanceof Wa){if(vc(n.argnames[c].expression,1))for(;c<l;)(f=e.args[c++].drop_side_effect_free(t))&&(e.args[o++]=f);else for(;c<l;)e.args[o++]=e.args[c++];s=o;break}var u=c>=n.argnames.length;if(u||vc(n.argnames[c],1)){if(f=e.args[c].drop_side_effect_free(t))e.args[o++]=f;else if(!u){e.args[o++]=mi(Ns,e.args[c],{value:0});continue}}else e.args[o++]=e.args[c];s=o}e.args.length=s}if(t.option("unsafe"))if(Uc(r))switch(r.name){case"Array":if(1!=e.args.length)return mi(Ko,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof Ns&&e.args[0].value<=11){const t=[];for(let r=0;r<e.args[0].value;r++)t.push(new Rs);return new Ko({elements:t})}break;case"Object":if(0==e.args.length)return mi(zo,e,{properties:[]});break;case"String":if(0==e.args.length)return mi(As,e,{value:""});if(e.args.length<=1)return mi(Bo,e,{left:e.args[0],operator:"+",right:mi(As,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return mi(Ns,e,{value:0});if(1==e.args.length&&t.option("unsafe_math"))return mi(Ro,e,{expression:e.args[0],operator:"+"}).optimize(t);break;case"Symbol":1==e.args.length&&e.args[0]instanceof As&&t.option("unsafe_symbols")&&(e.args.length=0);break;case"Boolean":if(0==e.args.length)return mi(js,e);if(1==e.args.length)return mi(Ro,e,{expression:mi(Ro,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var d=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every((e=>{var r=e.evaluate(t);return d.push(r),e!==r}))){let[r,n]=d;r=Ci(new RegExp(r).source);const i=mi(Fs,e,{value:{source:r,flags:n}});if(i._eval(t)!==i)return i}}else if(r instanceof Fo)switch(r.property){case"toString":if(0==e.args.length&&!r.expression.may_throw_on_access(t))return mi(Bo,e,{left:mi(As,e,{value:""}),operator:"+",right:r.expression}).optimize(t);break;case"join":if(r.expression instanceof Ko)e:{var p;if(!(e.args.length>0&&(p=e.args[0].evaluate(t))===e.args[0])){var _,f,m=[],g=[];for(c=0,l=r.expression.elements.length;c<l;c++){var h=r.expression.elements[c];if(h instanceof Wa)break e;var y=h.evaluate(t);y!==h?g.push(y):(g.length>0&&(m.push(mi(As,e,{value:g.join(p)})),g.length=0),m.push(h))}return g.length>0&&m.push(mi(As,e,{value:g.join(p)})),0==m.length?mi(As,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:mi(Bo,m[0],{operator:"+",left:mi(As,e,{value:""}),right:m[0]}):""==p?(_=m[0].is_string(t)||m[1].is_string(t)?m.shift():mi(As,e,{value:""}),m.reduce(((e,t)=>mi(Bo,t,{operator:"+",left:e,right:t})),_).optimize(t)):((f=e.clone()).expression=f.expression.clone(),f.expression.expression=f.expression.expression.clone(),f.expression.expression.elements=m,Zc(t,e,f))}}break;case"charAt":if(r.expression.is_string(t)){var v=e.args[0],b=v?v.evaluate(t):0;if(b!==v)return mi(Io,r,{expression:r.expression,property:Pc(0|b,v||r)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof Ko)return(I=e.args[1].elements.slice()).unshift(e.args[0]),mi(ko,e,{expression:mi(Fo,r,{expression:r.expression,optional:!1,property:"call"}),args:I}).optimize(t);break;case"call":var x=r.expression;if(x instanceof xs&&(x=x.fixed_value()),x instanceof Ja&&!x.contains_this())return(e.args.length?Fc(this,[e.args[0],mi(ko,e,{expression:r.expression,args:e.args.slice(1)})]):mi(ko,e,{expression:r.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&Uc(r)&&"Function"==r.name){if(0==e.args.length)return mi($a,e,{argnames:[],body:[]}).optimize(t);if(e.args.every((e=>e instanceof As)))try{var E=ha(C="n(function("+e.args.slice(0,-1).map((e=>e.value)).join(",")+"){"+e.args[e.args.length-1].value+"})"),S={ie8:t.option("ie8")};E.figure_out_scope(S);var D,T=new Ec(t.options,{mangle_options:t.mangle_options});(E=E.transform(T)).figure_out_scope(S),pc.reset(),E.compute_char_frequency(S),E.mangle_names(S),Vs(E,(e=>{if(Cc(e))return D=e,zs}));var C=nc();return wa.prototype._codegen.call(D,D,C),e.args=[mi(As,e,{value:D.argnames.map((e=>e.print_to_string())).join(",")}),mi(As,e.args[e.args.length-1],{value:C.get().replace(/^{|}$/g,"")})],e}catch(e){if(!(e instanceof oa))throw e}}var k=a&&n.body[0],A=a&&!n.is_generator&&!n.async,N=A&&t.option("inline")&&!e.is_expr_pure(t);if(N&&k instanceof ro){let r=k.value;if(!r||r.is_constant_expression()){r=r?r.clone(!0):mi(Ms,e);const n=e.args.concat(r);return Fc(e,n).optimize(t)}if(1===n.argnames.length&&n.argnames[0]instanceof us&&e.args.length<2&&r instanceof xs&&r.name===n.argnames[0].name){const r=(e.args[0]||mi(Ms)).optimize(t);let n;return r instanceof wo&&(n=t.parent())instanceof ko&&n.expression===e?Fc(e,[mi(Ns,e,{value:0}),r]):r}}if(N){var w,F,P=-1;let a,o,s;if(i&&!n.uses_arguments&&!(t.parent()instanceof Qo)&&!(n.name&&n instanceof $a)&&(o=(e=>{var r=n.body,i=r.length;if(t.option("inline")<3)return 1==i&&M(e);e=null;for(var a=0;a<i;a++){var o=r[a];if(o instanceof vo){if(e&&!o.definitions.every((e=>!e.value)))return!1}else{if(e)return!1;o instanceof Fa||(e=o)}}return M(e)})(k))&&(r===n||ki(e,$s)||t.option("unused")&&1==(a=r.definition()).references.length&&!fl(t,a)&&n.is_constant_expression(r.scope))&&!ki(e,Hs|Gs)&&!n.contains_this()&&(()=>{var e=new Set;do{if((w=t.parent(++P)).is_block_scope()&&w.block_scope&&w.block_scope.variables.forEach((t=>{e.add(t.name)})),w instanceof go)w.argname&&e.add(w.argname.name);else if(w instanceof Oa)F=[];else if(w instanceof xs&&w.fixed_value()instanceof Ka)return!1}while(!(w instanceof Ka));var r=!(w instanceof za)||t.toplevel.vars,i=t.option("inline");return!(!((e,t)=>{for(var r=n.body.length,i=0;i<r;i++){var a=n.body[i];if(a instanceof vo){if(!t)return!1;for(var o=a.definitions.length;--o>=0;){var s=a.definitions[o].name;if(s instanceof Xa||e.has(s.name)||Kc.has(s.name)||w.conflicting_def(s.name))return!1;F&&F.push(s.definition())}}}return!0})(e,i>=3&&r)||!((e,t)=>{for(var r=0,i=n.argnames.length;r<i;r++){var a=n.argnames[r];if(a instanceof Vo){if(vc(a.left,1))continue;return!1}if(a instanceof Xa)return!1;if(a instanceof Wa){if(vc(a.expression,1))continue;return!1}if(!vc(a,1)){if(!t||e.has(a.name)||Kc.has(a.name)||w.conflicting_def(a.name))return!1;F&&F.push(a.definition())}}return!0})(e,i>=2&&r)||F&&0!=F.length&&hl(n,F))})()&&(s=Nc(t))&&!ml(s,n)&&!(()=>{let e,r=0;for(;e=t.parent(r++);){if(e instanceof Vo)return!0;if(e instanceof Na)break}return!1})()&&!(w instanceof Qo))return bc(n,256),s.add_child_scope(n),Fc(e,(r=>{var i=[],a=[];if(((t,r)=>{for(var i=n.argnames.length,a=e.args.length;--a>=i;)r.push(e.args[a]);for(a=i;--a>=0;){var o=n.argnames[a],s=e.args[a];if(vc(o,1)||!o.name||w.conflicting_def(o.name))s&&r.push(s);else{var c=mi(os,o,o);o.definition().orig.push(c),!s&&F&&(s=mi(Ms,e)),R(t,r,c,s)}}t.reverse(),r.reverse()})(i,a),((e,t)=>{for(var r=t.length,i=0,a=n.body.length;i<a;i++){var o=n.body[i];if(o instanceof vo)for(var s=0,c=o.definitions.length;s<c;s++){var l=o.definitions[s],u=l.name;if(R(e,t,u,l.value),F&&n.argnames.every((e=>e.name!=u.name))){var d=n.variables.get(u.name),p=mi(xs,u,u);d.references.push(p),t.splice(r++,0,mi(Uo,l,{operator:"=",logical:!1,left:p,right:mi(Ms,u)}))}}}})(i,a),a.push(r),i.length){const e=w.body.indexOf(t.parent(P-1))+1;w.body.splice(e,0,mi(vo,n,{definitions:i}))}return a.map((e=>e.clone(!0)))})(o)).optimize(t)}if(N&&ki(e,$s))return bc(n,256),(n=mi(n.CTOR===qa?$a:n.CTOR,n,n)).figure_out_scope({},{parent_scope:Nc(t),toplevel:t.get_toplevel()}),mi(ko,e,{expression:n,args:e.args}).optimize(t);if(A&&t.option("side_effects")&&n.body.every(Rc)){var I=e.args.concat(mi(Ms,e));return Fc(e,I).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof Ca&&jc(e))return e.negate(t,!0);var O=e.evaluate(t);return O!==e?(O=Pc(O,e).optimize(t),Zc(t,O,e)):e;function M(t){return t?t instanceof ro?t.value?t.value.clone(!0):mi(Ms,e):t instanceof Ca?mi(Ro,t,{operator:"void",expression:t.body.clone(!0)}):void 0:mi(Ms,e)}function R(t,r,n,i){var a=n.definition();w.variables.has(n.name)||(w.variables.set(n.name,a),w.enclosed.push(a),t.push(mi(Eo,n,{name:n,value:null})));var o=mi(xs,n,n);a.references.push(o),i&&r.push(mi(Uo,e,{operator:"=",logical:!1,left:o,right:i.clone()}))}})),Sc(Ao,((e,t)=>t.option("unsafe")&&Uc(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?mi(ko,e,e).transform(t):e)),Sc(No,((e,t)=>{if(!t.option("side_effects"))return e;var r,n,i=[];r=Qs(t),n=e.expressions.length-1,e.expressions.forEach(((e,a)=>{a<n&&(e=e.drop_side_effect_free(t,r)),e&&(Oc(i,e),r=!1)}));var a=i.length-1;return(()=>{for(;a>0&&$c(i[a],t);)a--;a<i.length-1&&(i[a]=mi(Ro,e,{operator:"void",expression:i[a]}),i.length=a+1)})(),0==a?((e=Ic(t.parent(),t.self(),i[0]))instanceof No||(e=e.optimize(t)),e):(e.expressions=i,e)})),Mo.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")&&this.expression instanceof No){var t=this.expression.expressions.slice(),r=this.clone();return r.expression=t.pop(),t.push(r),Fc(this,t).optimize(e)}return this})),Sc(Lo,((e,t)=>e.lift_sequences(t))),Sc(Ro,((e,t)=>{var r=e.expression;if("delete"==e.operator&&!(r instanceof xs||r instanceof wo||zc(r))){if(r instanceof No){const n=r.expressions.slice();return n.push(mi(Us,e)),Fc(e,n).optimize(t)}return Fc(e,[r,mi(Us,e)]).optimize(t)}var n=e.lift_sequences(t);if(n!==e)return n;if(t.option("side_effects")&&"void"==e.operator)return(r=r.drop_side_effect_free(t))?(e.expression=r,e):mi(Ms,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(r instanceof Ro&&"!"==r.operator)return r.expression;r instanceof Bo&&(e=Zc(t,e,r.negate(t,Qs(t))));break;case"typeof":return(r instanceof xs?mi(Us,e):Fc(e,[r,mi(Us,e)])).optimize(t)}if("-"==e.operator&&r instanceof Ls&&(r=r.transform(t)),r instanceof Bo&&("+"==e.operator||"-"==e.operator)&&("*"==r.operator||"/"==r.operator||"%"==r.operator))return mi(Bo,e,{operator:r.operator,left:mi(Ro,r.left,{operator:e.operator,expression:r.left}),right:r.right});if("-"!=e.operator||!(r instanceof Ns||r instanceof Ls||r instanceof ws)){var i=e.evaluate(t);if(i!==e)return Zc(t,i=Pc(i,e).optimize(t),e)}return e})),Bo.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")){if(this.left instanceof No){var t=this.left.expressions.slice();return(r=this.clone()).left=t.pop(),t.push(r),Fc(this,t).optimize(e)}if(this.right instanceof No&&!this.left.has_side_effects(e)){for(var r,n="="==this.operator&&this.left instanceof xs,i=(t=this.right.expressions).length-1,a=0;a<i&&(n||!t[a].has_side_effects(e));a++);if(a==i)return t=t.slice(),(r=this.clone()).right=t.pop(),t.push(r),Fc(this,t).optimize(e);if(a>0)return(r=this.clone()).right=Fc(this.right,t.slice(a)),(t=t.slice(0,a)).push(r),Fc(this,t).optimize(e)}}return this}));var _l=bi("== === != !== * & | ^");function fl(e,t){for(var r,n=0;r=e.parent(n);n++)if(r instanceof Ja||r instanceof Qo){var i=r.name;if(i&&i.definition()===t)break}return r}function ml(e,t){for(const r of t.enclosed){if(t.variables.has(r.name))continue;const n=e.find_variable(r.name);if(n){if(n===r)continue;return!0}}return!1}function gl(e,t){return e instanceof xs||e.TYPE===t.TYPE}function hl(e,t){const r=e=>{if(e instanceof xs&&oi(e.definition(),t))return zs};return Ks(e,((t,n)=>{if(t instanceof Ka&&t!==e){var i=n.parent();if(i instanceof ko&&i.expression===t)return;return!Vs(t,r)||zs}}))}Sc(Bo,((e,t)=>{function r(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function n(t){if(r()){t&&(e.operator=t);var n=e.left;e.left=e.right,e.right=n}}if(_l.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Bo&&ma[e.left.operator]>=ma[e.operator]||n()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!i&&$c(e.left,t))e.left=mi(Is,e.left);else if(t.option("typeofs")&&e.left instanceof As&&"undefined"==e.left.value&&e.right instanceof Ro&&"typeof"==e.right.operator){var a=e.right.expression;(a instanceof xs?!a.is_declared(t):a instanceof wo&&t.option("ie8"))||(e.right=a,e.left=mi(Ms,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof xs&&e.right instanceof xs&&e.left.definition()===e.right.definition()&&(e=>e instanceof Ko||e instanceof Ja||e instanceof zo||e instanceof Qo)(e.left.fixed_value()))return mi("="==e.operator[0]?Us:js,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof Bo&&o.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Bo&&o.operator==e.right.operator&&($c(o.left,t)&&e.right.left instanceof Is||o.left instanceof Is&&$c(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var s=mi(Bo,e,{operator:o.operator.slice(0,-1),left:mi(Is,e),right:o.right});return o!==e.left&&(s=mi(Bo,e,{operator:e.operator,left:e.left.left,right:s})),s}}if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return Fc(e,[e.right,mi(Us,e)]).optimize(t);if(l&&"string"==typeof l)return Fc(e,[e.left,mi(Us,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Bo)||t.parent()instanceof Uo){var u=mi(Ro,e,{operator:"!",expression:e.negate(t,Qs(t))});e=Zc(t,e,u)}if(t.option("unsafe_comps"))switch(e.operator){case"<":n(">");break;case"<=":n(">=")}}if("+"==e.operator){if(e.right instanceof As&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof As&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof Bo&&"+"==e.left.operator&&e.left.left instanceof As&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!vc(e.left,2)||!vc(e.left,4)&&e.left.evaluate(t)))return Ic(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof Ea))return Fc(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof Ea)&&("&&"==(d=t.parent()).operator&&d.left===t.self()||t.in_boolean_context()))return e.left.optimize(t)}else{if(t.in_boolean_context())return Fc(e,[e.left,mi(js,e)]).optimize(t);bc(e,4)}if("||"==e.left.operator&&!(p=e.left.right.evaluate(t)))return mi(jo,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var d,p;if(!(c=!!vc(e.left,2)||!vc(e.left,4)&&e.left.evaluate(t)))return Fc(e,[e.left,e.right]).optimize(t);if(!(c instanceof Ea))return Ic(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof Ea)){if(t.in_boolean_context())return Fc(e,[e.left,mi(Us,e)]).optimize(t);bc(e,2)}}else if("||"==(d=t.parent()).operator&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t);if("&&"==e.left.operator&&(p=e.left.right.evaluate(t))&&!(p instanceof Ea))return mi(jo,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(bl(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof Ea))return null==c?e.right:e.left;if(t.in_boolean_context()){const r=e.right.evaluate(t);if(!(r instanceof Ea||r))return e.left}}var _=!0;switch(e.operator){case"+":if(e.right instanceof ks&&e.left instanceof Bo&&"+"==e.left.operator&&e.left.is_string(t)){var f=(m=mi(Bo,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);m!==f&&(e=mi(Bo,e,{operator:"+",left:e.left.left,right:f}))}if(e.left instanceof Bo&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof Bo&&"+"==e.right.operator&&e.right.is_string(t)){var m,g=(m=mi(Bo,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);m!==g&&(e=mi(Bo,e,{operator:"+",left:mi(Bo,e.left,{operator:"+",left:e.left.left,right:g}),right:e.right.right}))}if(e.right instanceof Ro&&"-"==e.right.operator&&e.left.is_number(t)){e=mi(Bo,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ro&&"-"==e.left.operator&&r()&&e.right.is_number(t)){e=mi(Bo,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Qa){var h=e.left;if((f=e.right.evaluate(t))!=e.right)return h.segments[h.segments.length-1].value+=String(f),h}if(e.right instanceof Qa&&(f=e.right,(h=e.left.evaluate(t))!=e.left))return f.segments[0].value=String(h)+f.segments[0].value,f;if(e.left instanceof Qa&&e.right instanceof Qa){var y=(h=e.left).segments;f=e.right,y[y.length-1].value+=f.segments[0].value;for(var v=1;v<f.segments.length;v++)y.push(f.segments[v]);return h}case"*":_=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&r()&&!(e.left instanceof Bo&&e.left.operator!=e.operator&&ma[e.left.operator]>=ma[e.operator])){var b=mi(Bo,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof ks&&!(e.left instanceof ks)?Zc(t,b,e):Zc(t,e,b)}_&&e.is_number(t)&&(e.right instanceof Bo&&e.right.operator==e.operator&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof ks&&e.left instanceof Bo&&e.left.operator==e.operator&&(e.left.left instanceof ks?e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof ks&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Bo&&e.left.operator==e.operator&&e.left.right instanceof ks&&e.right instanceof Bo&&e.right.operator==e.operator&&e.right.left instanceof ks&&(e=mi(Bo,e,{operator:e.operator,left:mi(Bo,e.left,{operator:e.operator,left:mi(Bo,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof Bo&&e.right.operator==e.operator&&(Gc.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=mi(Bo,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var x=e.evaluate(t);return x!==e?(x=Pc(x,e).optimize(t),Zc(t,x,e)):e})),Sc(Es,(e=>e)),Sc(xs,((e,t)=>{if(!t.option("ie8")&&Uc(e)&&!t.find_parent(Va))switch(e.name){case"undefined":return mi(Ms,e).optimize(t);case"NaN":return mi(Os,e).optimize(t);case"Infinity":return mi(Ls,e).optimize(t)}const r=t.parent();if(t.option("reduce_vars")&&Xc(e,r)!==e){const a=e.definition(),o=Nc(t);if(t.top_retain&&a.global&&t.top_retain(a))return a.fixed=!1,a.single_use=!1,e;let s=e.fixed_value(),c=a.single_use&&!(r instanceof ko&&r.is_expr_pure(t)||ki(r,Gs))&&!(r instanceof Co&&s instanceof Ja&&s.name);if(c&&(s instanceof Ja||s instanceof Qo))if(pl(s,t))c=!1;else if(a.scope!==e.scope&&(1==a.escaped||vc(s,16)||(e=>{for(var t,r=0;t=e.parent(r++);){if(t instanceof Sa)return!1;if(t instanceof Ko||t instanceof Jo||t instanceof zo)return!0}return!1})(t)))c=!1;else if(fl(t,a))c=!1;else if((a.scope!==e.scope||a.orig[0]instanceof us)&&(c=s.is_constant_expression(e.scope),"f"==c)){var n=e.scope;do{(n instanceof qa||Cc(n))&&bc(n,16)}while(n=n.parent_scope)}if(c&&s instanceof Ja&&(c=a.scope===e.scope&&!ml(o,s)||r instanceof ko&&r.expression===e&&!ml(o,s)&&!(s.name&&s.name.definition().recursive_refs>0)),c&&s instanceof Qo&&(c=!(s.extends&&(s.extends.may_throw(t)||s.extends.has_side_effects(t))||s.properties.some((e=>e.may_throw(t)||e.has_side_effects(t))))),c&&s){if(s instanceof ts&&(bc(s,256),s=mi(rs,s,s)),s instanceof qa&&(bc(s,256),s=mi($a,s,s)),a.recursive_refs>0&&s.name instanceof ds){const e=s.name.definition();let t=s.variables.get(s.name.name),r=t&&t.orig[0];r instanceof fs||(r=mi(fs,s.name,s.name),r.scope=s,s.name=r,t=s.def_function(r)),Vs(s,(r=>{r instanceof xs&&r.definition()===e&&(r.thedef=t,t.references.push(r))}))}return(s instanceof Ja||s instanceof Qo)&&s.parent_scope!==o&&(s=s.clone(!0,t.get_toplevel()),o.add_child_scope(s)),s.optimize(t)}if(s){let r;if(s instanceof Ts)a.orig[0]instanceof us||!a.references.every((e=>a.scope===e.scope))||(r=s);else{var i=s.evaluate(t);i===s||!t.option("unsafe_regexp")&&i instanceof RegExp||(r=Pc(i,s))}if(r){const n=e.size(t),i=r.size(t);let o=0;if(t.option("unused")&&!t.exposed(a)&&(o=(n+2+i)/(a.references.length-a.assignments)),i<=n+o)return r}}}return e})),Sc(Ms,((e,t)=>{if(t.option("unsafe_undefined")){var r=wc(t,"undefined");if(r){var n=mi(xs,e,{name:"undefined",scope:r.scope,thedef:r});return bc(n,8),n}}var i=Xc(t.self(),t.parent());return i&&gl(i,e)?e:mi(Ro,e,{operator:"void",expression:mi(Ns,e,{value:0})})})),Sc(Ls,((e,t)=>{var r=Xc(t.self(),t.parent());return r&&gl(r,e)?e:!t.option("keep_infinity")||r&&!gl(r,e)||wc(t,"Infinity")?mi(Bo,e,{operator:"/",left:mi(Ns,e,{value:1}),right:mi(Ns,e,{value:0})}):e})),Sc(Os,((e,t)=>{var r=Xc(t.self(),t.parent());return r&&!gl(r,e)||wc(t,"NaN")?mi(Bo,e,{operator:"/",left:mi(Ns,e,{value:0}),right:mi(Ns,e,{value:0})}):e}));const yl=bi("+ - / * % >> << >>> | ^ &"),vl=bi("* | ^ &");function bl(e){let t;return e instanceof Is||$c(e)||e instanceof xs&&(t=e.definition().fixed)instanceof Ea&&bl(t)||e instanceof wo&&e.optional&&bl(e.expression)||e instanceof ko&&e.optional&&bl(e.expression)||e instanceof Oo&&bl(e.expression)}function xl(e,t){return e instanceof xs&&(e=e.fixed_value()),!!e&&(!(e instanceof Ja||e instanceof Qo)||!(e instanceof Ja&&e.contains_this())||t.parent()instanceof Ao)}function El(e,t){return t.in_boolean_context()?Zc(t,e,Fc(e,[e,mi(Us,e)]).optimize(t)):e}function Sl(e){for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Wa){var n=r.expression;n instanceof Ko&&!n.elements.some((e=>e instanceof Rs))&&(e.splice(t,1,...n.elements),t--)}}}function Dl(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof ks))return e;if(e.key instanceof As||e.key instanceof Ns){if("__proto__"===e.key.value)return e;if("constructor"==e.key.value&&t.parent()instanceof Qo)return e;e.key=e instanceof Jo?e.key.value:mi(e instanceof Zo?_s:ps,e.key,{name:e.key.value})}return e}Sc(Uo,((e,t)=>{if(e.logical)return e.lift_sequences(t);var r;if(t.option("dead_code")&&e.left instanceof xs&&(r=e.left.definition()).scope===t.find_parent(Ja)){var n,i=0,a=e;do{if(n=a,(a=t.parent(i++))instanceof to){if(o(i,a))break;if(hl(r.scope,[r]))break;return"="==e.operator?e.right:(r.fixed=!1,mi(Bo,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}}while(a instanceof Bo&&a.right===n||a instanceof No&&a.tail_node()===n)}return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof xs&&e.right instanceof Bo&&(e.right.left instanceof xs&&e.right.left.name==e.left.name&&yl.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof xs&&e.right.right.name==e.left.name&&vl.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function o(r,n){var i=e.right;e.right=mi(Is,i);var a=n.may_throw(t);e.right=i;for(var o,s=e.left.definition().scope;(o=t.parent(r++))!==s;)if(o instanceof mo){if(o.bfinally)return!0;if(a&&o.bcatch)return!0}}})),Sc(Vo,((e,t)=>{if(!t.option("evaluate"))return e;var r=e.right.evaluate(t);return void 0===r?e=e.left:r!==e.right&&(r=Pc(r,e.right),e.right=Yc(r,e.right)),e})),Sc(jo,((e,t)=>{if(!t.option("conditionals"))return e;if(e.condition instanceof No){var r=e.condition.expressions.slice();return e.condition=r.pop(),r.push(e),Fc(e,r)}var n=e.condition.evaluate(t);if(n!==e.condition)return Ic(t.parent(),t.self(),n?e.consequent:e.alternative);var i=n.negate(t,Qs(t));Zc(t,n,i)===i&&(e=mi(jo,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var a,o=e.condition,s=e.consequent,c=e.alternative;if(o instanceof xs&&s instanceof xs&&o.definition()===s.definition())return mi(Bo,e,{operator:"||",left:o,right:c});if(s instanceof Uo&&c instanceof Uo&&s.operator===c.operator&&s.logical===c.logical&&s.left.equivalent_to(c.left)&&(!e.condition.has_side_effects(t)||"="==s.operator&&!s.left.has_side_effects(t)))return mi(Uo,e,{operator:s.operator,left:s.left,logical:s.logical,right:mi(jo,e,{condition:e.condition,consequent:s.right,alternative:c.right})});if(s instanceof ko&&c.TYPE===s.TYPE&&s.args.length>0&&s.args.length==c.args.length&&s.expression.equivalent_to(c.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(a=(()=>{for(var e=s.args,t=c.args,r=0,n=e.length;r<n;r++){if(e[r]instanceof Wa)return;if(!e[r].equivalent_to(t[r])){if(t[r]instanceof Wa)return;for(var i=r+1;i<n;i++){if(e[i]instanceof Wa)return;if(!e[i].equivalent_to(t[i]))return}return r}}})())){var l=s.clone();return l.args[a]=mi(jo,e,{condition:e.condition,consequent:s.args[a],alternative:c.args[a]}),l}if(c instanceof jo&&s.equivalent_to(c.consequent))return mi(jo,e,{condition:mi(Bo,e,{operator:"||",left:o,right:c.condition}),consequent:s,alternative:c.alternative}).optimize(t);if(t.option("ecma")>=2020&&((e,t,r)=>{if(t.may_throw(r))return!1;let n;if(e instanceof Bo&&"=="===e.operator&&((n=bl(e.left)&&e.left)||(n=bl(e.right)&&e.right))&&(n===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof Bo&&"||"===e.operator){let r,n;const i=e=>{if(!(e instanceof Bo)||"==="!==e.operator&&"=="!==e.operator)return!1;let i,a=0;return e.left instanceof Is&&(a++,r=e,i=e.right),e.right instanceof Is&&(a++,r=e,i=e.left),$c(e.left)&&(a++,n=e,i=e.right),$c(e.right)&&(a++,n=e,i=e.left),1===a&&!!i.equivalent_to(t)};if(!i(e.left))return!1;if(!i(e.right))return!1;if(r&&n&&r!==n)return!0}return!1})(o,c,t))return mi(Bo,e,{operator:"??",left:c,right:s}).optimize(t);if(c instanceof No&&s.equivalent_to(c.expressions[c.expressions.length-1]))return Fc(e,[mi(Bo,e,{operator:"||",left:o,right:Fc(e,c.expressions.slice(0,-1))}),s]).optimize(t);if(c instanceof Bo&&"&&"==c.operator&&s.equivalent_to(c.right))return mi(Bo,e,{operator:"&&",left:mi(Bo,e,{operator:"||",left:o,right:c.left}),right:s}).optimize(t);if(s instanceof jo&&s.alternative.equivalent_to(c))return mi(jo,e,{condition:mi(Bo,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:c});if(s.equivalent_to(c))return Fc(e,[e.condition,s]).optimize(t);if(s instanceof Bo&&"||"==s.operator&&s.right.equivalent_to(c))return mi(Bo,e,{operator:"||",left:mi(Bo,e,{operator:"&&",left:e.condition,right:s.left}),right:c}).optimize(t);var u=t.in_boolean_context();return p(e.consequent)?_(e.alternative)?d(e.condition):mi(Bo,e,{operator:"||",left:d(e.condition),right:e.alternative}):_(e.consequent)?p(e.alternative)?d(e.condition.negate(t)):mi(Bo,e,{operator:"&&",left:d(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?mi(Bo,e,{operator:"||",left:d(e.condition.negate(t)),right:e.consequent}):_(e.alternative)?mi(Bo,e,{operator:"&&",left:d(e.condition),right:e.consequent}):e;function d(e){return e.is_boolean()?e:mi(Ro,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof Us||u&&e instanceof ks&&e.getValue()||e instanceof Ro&&"!"==e.operator&&e.expression instanceof ks&&!e.expression.getValue()}function _(e){return e instanceof js||u&&e instanceof ks&&!e.getValue()||e instanceof Ro&&"!"==e.operator&&e.expression instanceof ks&&e.expression.getValue()}})),Sc(Bs,((e,t)=>{if(t.in_boolean_context())return mi(Ns,e,{value:+e.value});var r=t.parent();return t.option("booleans_as_integers")?(r instanceof Bo&&("==="==r.operator||"!=="==r.operator)&&(r.operator=r.operator.replace(/=$/,"")),mi(Ns,e,{value:+e.value})):t.option("booleans")?r instanceof Bo&&("=="==r.operator||"!="==r.operator)?mi(Ns,e,{value:+e.value}):mi(Ro,e,{operator:"!",expression:mi(Ns,e,{value:1-e.value})}):e})),wo.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var r=t.option("unsafe_arrows")&&t.option("ecma")>=2015,n=this.expression;if(n instanceof zo)for(var i=n.properties,a=i.length;--a>=0;){var o=i[a];if(""+(o instanceof Xo?o.key.name:o.key)==e){if(!i.every((e=>e instanceof Jo||r&&e instanceof Xo&&!e.is_generator)))break;if(!xl(o.value,t))break;return mi(Io,this,{expression:mi(Ko,n,{elements:i.map((e=>{var t=e.value;t instanceof Ha&&(t=mi($a,t,t));var r=e.key;return r instanceof Ea&&!(r instanceof ps)?Fc(e,[r,t]):t}))}),property:mi(Ns,this,{value:a})})}}}})),Sc(Io,((e,t)=>{var r,n=e.expression,i=e.property;if(t.option("properties")){var a=i.evaluate(t);if(a!==i){"string"==typeof a&&("undefined"==a?a=void 0:(x=parseFloat(a)).toString()==a&&(a=x)),i=e.property=Yc(i,Pc(a,i).transform(t));var o=""+a;if(na(o)&&o.length<=i.size()+1)return mi(Fo,e,{expression:n,optional:e.optional,property:o,quote:i.quote}).optimize(t)}}e:if(t.option("arguments")&&n instanceof xs&&"arguments"==n.name&&1==n.definition().orig.length&&(r=n.scope)instanceof Ja&&r.uses_arguments&&!(r instanceof Ga)&&i instanceof Ns){for(var s=i.getValue(),c=new Set,l=r.argnames,u=0;u<l.length;u++){if(!(l[u]instanceof us))break e;var d=l[u].name;if(c.has(d))break e;c.add(d)}var p=r.argnames[s];if(p&&t.has_directive("use strict")){var _=p.definition();(!t.option("reduce_vars")||_.assignments||_.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&s<r.argnames.length+5)for(;s>=r.argnames.length;)p=r.create_symbol(us,{source:r,scope:r,tentative_name:"argument_"+r.argnames.length}),r.argnames.push(p);if(p){var f=mi(xs,e,p);return f.reference({}),xc(p,1),f}}if(Xc(e,t.parent()))return e;if(a!==i){var m=e.flatten_object(o,t);m&&(n=e.expression=m.expression,i=e.property=m.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof Ns&&n instanceof Ko){s=i.getValue();var g=n.elements,h=g[s];e:if(xl(h,t)){for(var y=!0,v=[],b=g.length;--b>s;)(x=g[b].drop_side_effect_free(t))&&(v.unshift(x),y&&x.has_side_effects(t)&&(y=!1));if(h instanceof Wa)break e;for(h=h instanceof Rs?mi(Ms,h):h,y||v.unshift(h);--b>=0;){var x;if((x=g[b])instanceof Wa)break e;(x=x.drop_side_effect_free(t))?v.unshift(x):s--}return y?(v.push(h),Fc(e,v).optimize(t)):mi(Io,e,{expression:mi(Ko,n,{elements:v}),property:mi(Ns,i,{value:s})})}}var E=e.evaluate(t);return E!==e?Zc(t,E=Pc(E,e).optimize(t),e):e.optional&&bl(e.expression)?mi(Ms,e):e})),Sc(Oo,((e,t)=>(e.expression=e.expression.optimize(t),e))),Ja.DEFMETHOD("contains_this",(function(){return Vs(this,(e=>e instanceof Ts?zs:e!==this&&e instanceof Ka&&!(e instanceof Ga)||void 0))})),Sc(Fo,((e,t)=>{const r=t.parent();if(Xc(e,r))return e;if(t.option("unsafe_proto")&&e.expression instanceof Fo&&"prototype"==e.expression.property){var n=e.expression.expression;if(Uc(n))switch(n.name){case"Array":e.expression=mi(Ko,e.expression,{elements:[]});break;case"Function":e.expression=mi($a,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=mi(Ns,e.expression,{value:0});break;case"Object":e.expression=mi(zo,e.expression,{properties:[]});break;case"RegExp":e.expression=mi(Fs,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=mi(As,e.expression,{value:""})}}if(!(r instanceof ko&&ki(r,Gs))){const r=e.flatten_object(e.property,t);if(r)return r.optimize(t)}let i=e.evaluate(t);return i!==e?(i=Pc(i,e).optimize(t),Zc(t,i,e)):e.optional&&bl(e.expression)?mi(Ms,e):e})),Sc(Ko,((e,t)=>{var r=El(e,t);return r!==e?r:(Sl(e.elements),e)})),Sc(zo,((e,t)=>{var r=El(e,t);return r!==e?r:((e=>{for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Wa){const n=r.expression;n instanceof zo&&n.properties.every((e=>e instanceof Jo))?(e.splice(t,1,...n.properties),t--):n instanceof ks&&!(n instanceof As)&&e.splice(t,1)}}})(e.properties),e)})),Sc(Fs,El),Sc(ro,((e,t)=>(e.value&&$c(e.value,t)&&(e.value=null),e))),Sc(Ga,cl),Sc($a,((e,t)=>(e=cl(e,t),!(t.option("unsafe_arrows")&&t.option("ecma")>=2015)||e.name||e.is_generator||e.uses_arguments||e.pinned()||Vs(e,(e=>{if(e instanceof Ts)return zs}))?e:mi(Ga,e,e).optimize(t)))),Sc(Qo,(e=>e)),Sc(co,((e,t)=>(e.expression&&!e.is_star&&$c(e.expression,t)&&(e.expression=null),e))),Sc(Qa,((e,t)=>{if(!t.option("evaluate")||t.parent()instanceof Ya)return e;for(var r=[],n=0;n<e.segments.length;n++){var i=e.segments[n];if(i instanceof Ea){var a=i.evaluate(t);if(a!==i&&(a+"").length<=i.size()+"${}".length){r[r.length-1].value=r[r.length-1].value+a+e.segments[++n].value;continue}if(i instanceof Qa){var o=i.segments;r[r.length-1].value+=o[0].value;for(var s=1;s<o.length;s++)i=o[s],r.push(i);continue}}r.push(i)}if(e.segments=r,1==r.length)return mi(As,e,r[0]);if(3===r.length&&r[1]instanceof Ea&&(r[1].is_string(t)||r[1].is_number(t)||bl(r[1])||t.option("unsafe"))){if(""===r[2].value)return mi(Bo,e,{operator:"+",left:mi(As,e,{value:r[0].value}),right:r[1]});if(""===r[0].value)return mi(Bo,e,{operator:"+",left:r[1],right:mi(As,e,{value:r[2].value})})}return e})),Sc(Ya,(e=>e)),Sc(Wo,Dl),Sc(Xo,((e,t)=>{if(Dl(e,t),t.option("arrows")&&t.parent()instanceof zo&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof ro&&e.value.body[0].value&&!e.value.contains_this()){var r=mi(Ga,e.value,e.value);return r.async=e.async,r.is_generator=e.is_generator,mi(Jo,e,{key:e.key instanceof ps?e.key.name:e.key,value:r,quote:e.quote})}return e})),Sc(Jo,((e,t)=>{Dl(e,t);var r=t.option("unsafe_methods");if(r&&t.option("ecma")>=2015&&(!(r instanceof RegExp)||r.test(e.key+""))){var n=e.key,i=e.value;if((i instanceof Ga&&Array.isArray(i.body)&&!i.contains_this()||i instanceof $a)&&!i.name)return mi(Xo,e,{async:i.async,is_generator:i.is_generator,key:n instanceof Ea?n:mi(ps,e,{name:n}),value:mi(Ha,i,i),quote:e.quote})}return e})),Sc(Xa,((e,t)=>{if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!(e=>{for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],r=0,n=0,i=t.length;r<i;n++){var a=e.parent(n);if(!a)return!1;if(0!==r||"Destructuring"!=a.TYPE){if(!t[r].test(a.TYPE))return!1;r++}}return!0})(t)&&!(e.names[e.names.length-1]instanceof Wa)){for(var r=[],n=0;n<e.names.length;n++){var i=e.names[n];i instanceof Jo&&"string"==typeof i.key&&i.value instanceof as&&!a(t,i.value.definition())||r.push(i)}r.length!=e.names.length&&(e.names=r)}return e;function a(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}}));var Tl=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-fill-mode","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-hyphens","-moz-image-region","-moz-margin-end","-moz-margin-start","-moz-orient","-moz-osx-font-smoothing","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-padding-end","-moz-padding-start","-moz-perspective","-moz-perspective-origin","-moz-tab-size","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transform-style","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-dragging","-webkit-align-content","-webkit-align-items","-webkit-align-self","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-origin","-webkit-background-size","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-filter","-webkit-flex","-webkit-flex-basis","-webkit-flex-direction","-webkit-flex-flow","-webkit-flex-grow","-webkit-flex-shrink","-webkit-flex-wrap","-webkit-justify-content","-webkit-line-clamp","-webkit-mask","-webkit-mask-clip","-webkit-mask-composite","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-position","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-mask-repeat","-webkit-mask-size","-webkit-order","-webkit-perspective","-webkit-perspective-origin","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-transform","-webkit-transform-origin","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-select","0","1","10","11","12","13","14","15","16","17","18","19","2","20","3","4","5","6","7","8","9","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ACTIVE_UNIFORM_BLOCKS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALREADY_SIGNALED","ALT_MASK","ALWAYS","ANY_SAMPLES_PASSED","ANY_SAMPLES_PASSED_CONSERVATIVE","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AbortController","AbortSignal","AbsoluteOrientationSensor","AbstractRange","Accelerometer","AddSearchProvider","AggregateError","AnalyserNode","Animation","AnimationEffect","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","AnonXMLHttpRequest","Any","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","ArrayType","Atomics","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioParamMap","AudioProcessingEvent","AudioScheduledSourceNode","AudioStreamTrack","AudioWorklet","AudioWorkletNode","AuthenticatorAssertionResponse","AuthenticatorAttestationResponse","AuthenticatorResponse","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BAD_REQUEST","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BackgroundFetchManager","BackgroundFetchRecord","BackgroundFetchRegistration","BarProp","BarcodeDetector","BaseAudioContext","BaseHref","BatteryManager","BeforeInstallPromptEvent","BeforeLoadEvent","BeforeUnloadEvent","BigInt","BigInt64Array","BigUint64Array","BiquadFilterNode","Blob","BlobEvent","Bluetooth","BluetoothCharacteristicProperties","BluetoothDevice","BluetoothRemoteGATTCharacteristic","BluetoothRemoteGATTDescriptor","BluetoothRemoteGATTServer","BluetoothRemoteGATTService","BluetoothUUID","Boolean","BroadcastChannel","ByteLengthQueuingStrategy","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR","COLOR_ATTACHMENT0","COLOR_ATTACHMENT1","COLOR_ATTACHMENT10","COLOR_ATTACHMENT11","COLOR_ATTACHMENT12","COLOR_ATTACHMENT13","COLOR_ATTACHMENT14","COLOR_ATTACHMENT15","COLOR_ATTACHMENT2","COLOR_ATTACHMENT3","COLOR_ATTACHMENT4","COLOR_ATTACHMENT5","COLOR_ATTACHMENT6","COLOR_ATTACHMENT7","COLOR_ATTACHMENT8","COLOR_ATTACHMENT9","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPARE_REF_TO_TEXTURE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONDITION_SATISFIED","CONFIGURATION_UNSUPPORTED","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COPY_READ_BUFFER","COPY_READ_BUFFER_BINDING","COPY_WRITE_BUFFER","COPY_WRITE_BUFFER_BINDING","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSAnimation","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImageValue","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSKeywordValue","CSSMathInvert","CSSMathMax","CSSMathMin","CSSMathNegate","CSSMathProduct","CSSMathSum","CSSMathValue","CSSMatrixComponent","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSNamespaceRule","CSSNumericArray","CSSNumericValue","CSSPageRule","CSSPerspective","CSSPositionValue","CSSPrimitiveValue","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSSkew","CSSSkewX","CSSSkewY","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSStyleValue","CSSSupportsRule","CSSTransformComponent","CSSTransformValue","CSSTransition","CSSTranslate","CSSUnitValue","CSSUnknownRule","CSSUnparsedValue","CSSValue","CSSValueList","CSSVariableReferenceValue","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_QUERY","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","Cache","CacheStorage","CanvasCaptureMediaStream","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","ClipboardItem","CloseEvent","Collator","CommandEvent","Comment","CompileError","CompositionEvent","CompressionStream","Console","ConstantSourceNode","Controllers","ConvolverNode","CountQueuingStrategy","Counter","Credential","CredentialsContainer","Crypto","CryptoKey","CustomElementRegistry","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH","DEPTH24_STENCIL8","DEPTH32F_STENCIL8","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_COMPONENT24","DEPTH_COMPONENT32F","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DEVICE_INELIGIBLE","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DRAW_BUFFER0","DRAW_BUFFER1","DRAW_BUFFER10","DRAW_BUFFER11","DRAW_BUFFER12","DRAW_BUFFER13","DRAW_BUFFER14","DRAW_BUFFER15","DRAW_BUFFER2","DRAW_BUFFER3","DRAW_BUFFER4","DRAW_BUFFER5","DRAW_BUFFER6","DRAW_BUFFER7","DRAW_BUFFER8","DRAW_BUFFER9","DRAW_FRAMEBUFFER","DRAW_FRAMEBUFFER_BINDING","DST_ALPHA","DST_COLOR","DYNAMIC_COPY","DYNAMIC_DRAW","DYNAMIC_READ","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DecompressionStream","DelayNode","DeprecationReportBody","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceMotionEventAcceleration","DeviceMotionEventRotationRate","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Directory","DisplayNames","Document","DocumentFragment","DocumentTimeline","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementInternals","ElementQuery","EnterPictureInPictureEvent","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_32_UNSIGNED_INT_24_8_REV","FLOAT_MAT2","FLOAT_MAT2x3","FLOAT_MAT2x4","FLOAT_MAT3","FLOAT_MAT3x2","FLOAT_MAT3x4","FLOAT_MAT4","FLOAT_MAT4x2","FLOAT_MAT4x3","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE","FRAMEBUFFER_ATTACHMENT_BLUE_SIZE","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE","FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE","FRAMEBUFFER_ATTACHMENT_GREEN_SIZE","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_RED_SIZE","FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_DEFAULT","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_MULTISAMPLE","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","FeaturePolicy","FeaturePolicyViolationReportBody","FederatedCredential","Feed","FeedEntry","File","FileError","FileList","FileReader","FileSystem","FileSystemDirectoryEntry","FileSystemDirectoryReader","FileSystemEntry","FileSystemFileEntry","FinalizationRegistry","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FontFaceSet","FontFaceSetLoadEvent","FormData","FormDataEvent","FragmentDirective","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadAxisMoveEvent","GamepadButton","GamepadButtonEvent","GamepadEvent","GamepadHapticActuator","GamepadPose","Geolocation","GeolocationCoordinates","GeolocationPosition","GeolocationPositionError","GestureEvent","Global","Gyroscope","HALF_FLOAT","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","Hz","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IIRFilterNode","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INTERLEAVED_ATTRIBS","INT_2_10_10_10_REV","INT_SAMPLER_2D","INT_SAMPLER_2D_ARRAY","INT_SAMPLER_3D","INT_SAMPLER_CUBE","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_INDEX","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","IdleDeadline","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","Infinity","InputDeviceCapabilities","InputDeviceInfo","InputEvent","InputMethodContext","InstallTrigger","InstallTriggerImpl","Instance","Int16Array","Int32Array","Int8Array","Intent","InternalError","IntersectionObserver","IntersectionObserverEntry","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","Keyboard","KeyboardEvent","KeyboardLayoutMap","KeyframeEffect","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LargestContentfulPaint","LayoutShift","LayoutShiftAttribution","LinearAccelerationSensor","LinkError","ListFormat","LocalMediaStream","Locale","Location","Lock","LockManager","MAX","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_CLIENT_WAIT_TIMEOUT_WEBGL","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_DRAW_BUFFERS","MAX_ELEMENTS_INDICES","MAX_ELEMENTS_VERTICES","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_PROGRAM_TEXEL_OFFSET","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_LOD_BIAS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MAX_VALUE","MAX_VARYING_COMPONENTS","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MIN","MIN_PROGRAM_TEXEL_OFFSET","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MathMLElement","MediaCapabilities","MediaCapabilitiesInfo","MediaController","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaRecorderErrorEvent","MediaSession","MediaSettingsRange","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackAudioSourceNode","MediaStreamTrackEvent","Memory","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","Module","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","NavigationPreloadManager","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBJECT_TYPE","OBSOLETE","OK","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OTHER_ERROR","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","OffscreenCanvas","OffscreenCanvasRenderingContext2D","Option","OrientationSensor","OscillatorNode","OverconstrainedError","OverflowEvent","PACK_ALIGNMENT","PACK_ROW_LENGTH","PACK_SKIP_PIXELS","PACK_SKIP_ROWS","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PIXEL_PACK_BUFFER","PIXEL_PACK_BUFFER_BINDING","PIXEL_UNPACK_BUFFER","PIXEL_UNPACK_BUFFER_BINDING","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","PasswordCredential","Path2D","PaymentAddress","PaymentInstruments","PaymentManager","PaymentMethodChangeEvent","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","Performance","PerformanceElementTiming","PerformanceEntry","PerformanceEventTiming","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceServerTiming","PerformanceTiming","PeriodicSyncManager","PeriodicWave","PermissionStatus","Permissions","PhotoCapabilities","PictureInPictureWindow","Plugin","PluginArray","PluralRules","PointerEvent","PopStateEvent","PopupBlockedEvent","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","ProcessingInstruction","ProgressEvent","Promise","PromiseRejectionEvent","PropertyNodeList","Proxy","PublicKeyCredential","PushManager","PushSubscription","PushSubscriptionOptions","Q","QUERY_RESULT","QUERY_RESULT_AVAILABLE","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","R11F_G11F_B10F","R16F","R16I","R16UI","R32F","R32I","R32UI","R8","R8I","R8UI","R8_SNORM","RASTERIZER_DISCARD","READ_BUFFER","READ_FRAMEBUFFER","READ_FRAMEBUFFER_BINDING","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED","RED_BITS","RED_INTEGER","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_SAMPLES","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RG","RG16F","RG16I","RG16UI","RG32F","RG32I","RG32UI","RG8","RG8I","RG8UI","RG8_SNORM","RGB","RGB10_A2","RGB10_A2UI","RGB16F","RGB16I","RGB16UI","RGB32F","RGB32I","RGB32UI","RGB565","RGB5_A1","RGB8","RGB8I","RGB8UI","RGB8_SNORM","RGB9_E5","RGBA","RGBA16F","RGBA16I","RGBA16UI","RGBA32F","RGBA32I","RGBA32UI","RGBA4","RGBA8","RGBA8I","RGBA8UI","RGBA8_SNORM","RGBA_INTEGER","RGBColor","RGB_INTEGER","RG_INTEGER","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCCertificate","RTCDTMFSender","RTCDTMFToneChangeEvent","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCError","RTCErrorEvent","RTCIceCandidate","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceErrorEvent","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCRtpTransceiver","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","RadioNodeList","Range","RangeError","RangeException","ReadableStream","ReadableStreamDefaultReader","RecordErrorEvent","Rect","ReferenceError","Reflect","RegExp","RelativeOrientationSensor","RelativeTimeFormat","RemotePlayback","Report","ReportBody","ReportingObserver","Request","ResizeObserver","ResizeObserverEntry","ResizeObserverSize","Response","RuntimeError","SAMPLER_2D","SAMPLER_2D_ARRAY","SAMPLER_2D_ARRAY_SHADOW","SAMPLER_2D_SHADOW","SAMPLER_3D","SAMPLER_BINDING","SAMPLER_CUBE","SAMPLER_CUBE_SHADOW","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SEPARATE_ATTRIBS","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SIGNALED","SIGNED_NORMALIZED","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","SRGB","SRGB8","SRGB8_ALPHA8","START_TO_END","START_TO_START","STATIC_COPY","STATIC_DRAW","STATIC_READ","STENCIL","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_COPY","STREAM_DRAW","STREAM_READ","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNC_CONDITION","SYNC_FENCE","SYNC_FLAGS","SYNC_FLUSH_COMMANDS_BIT","SYNC_GPU_COMMANDS_COMPLETE","SYNC_STATUS","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","Sensor","SensorErrorEvent","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedArrayBuffer","SharedWorker","SimpleGestureEvent","SourceBuffer","SourceBufferList","SpeechSynthesis","SpeechSynthesisErrorEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","SpeechSynthesisVoice","StaticRange","StereoPannerNode","StopIteration","Storage","StorageEvent","StorageManager","String","StructType","StylePropertyMap","StylePropertyMapReadOnly","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","Symbol","SyncManager","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_2D_ARRAY","TEXTURE_3D","TEXTURE_BASE_LEVEL","TEXTURE_BINDING_2D","TEXTURE_BINDING_2D_ARRAY","TEXTURE_BINDING_3D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_COMPARE_FUNC","TEXTURE_COMPARE_MODE","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_IMMUTABLE_FORMAT","TEXTURE_IMMUTABLE_LEVELS","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_LEVEL","TEXTURE_MAX_LOD","TEXTURE_MIN_FILTER","TEXTURE_MIN_LOD","TEXTURE_WRAP_R","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TIMEOUT_EXPIRED","TIMEOUT_IGNORED","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRANSFORM_FEEDBACK","TRANSFORM_FEEDBACK_ACTIVE","TRANSFORM_FEEDBACK_BINDING","TRANSFORM_FEEDBACK_BUFFER","TRANSFORM_FEEDBACK_BUFFER_BINDING","TRANSFORM_FEEDBACK_BUFFER_MODE","TRANSFORM_FEEDBACK_BUFFER_SIZE","TRANSFORM_FEEDBACK_BUFFER_START","TRANSFORM_FEEDBACK_PAUSED","TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN","TRANSFORM_FEEDBACK_VARYINGS","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Table","TaskAttributionTiming","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransitionEvent","TreeWalker","TrustedHTML","TrustedScript","TrustedScriptURL","TrustedTypePolicy","TrustedTypePolicyFactory","TypeError","TypedObject","U2F","UIEvent","UNCACHED","UNIFORM_ARRAY_STRIDE","UNIFORM_BLOCK_ACTIVE_UNIFORMS","UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES","UNIFORM_BLOCK_BINDING","UNIFORM_BLOCK_DATA_SIZE","UNIFORM_BLOCK_INDEX","UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER","UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER","UNIFORM_BUFFER","UNIFORM_BUFFER_BINDING","UNIFORM_BUFFER_OFFSET_ALIGNMENT","UNIFORM_BUFFER_SIZE","UNIFORM_BUFFER_START","UNIFORM_IS_ROW_MAJOR","UNIFORM_MATRIX_STRIDE","UNIFORM_OFFSET","UNIFORM_SIZE","UNIFORM_TYPE","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_IMAGE_HEIGHT","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNPACK_ROW_LENGTH","UNPACK_SKIP_IMAGES","UNPACK_SKIP_PIXELS","UNPACK_SKIP_ROWS","UNSCHEDULED_STATE","UNSENT","UNSIGNALED","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_INT_10F_11F_11F_REV","UNSIGNED_INT_24_8","UNSIGNED_INT_2_10_10_10_REV","UNSIGNED_INT_5_9_9_9_REV","UNSIGNED_INT_SAMPLER_2D","UNSIGNED_INT_SAMPLER_2D_ARRAY","UNSIGNED_INT_SAMPLER_3D","UNSIGNED_INT_SAMPLER_CUBE","UNSIGNED_INT_VEC2","UNSIGNED_INT_VEC3","UNSIGNED_INT_VEC4","UNSIGNED_NORMALIZED","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","USB","USBAlternateInterface","USBConfiguration","USBConnectionEvent","USBDevice","USBEndpoint","USBInTransferResult","USBInterface","USBIsochronousInTransferPacket","USBIsochronousInTransferResult","USBIsochronousOutTransferPacket","USBIsochronousOutTransferResult","USBOutTransferResult","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserActivation","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ARRAY_BINDING","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_INTEGER","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VRDisplay","VRDisplayCapabilities","VRDisplayEvent","VREyeParameters","VRFieldOfView","VRFrameData","VRPose","VRStageParameters","VTTCue","VTTRegion","ValidityState","VideoPlaybackQuality","VideoStreamTrack","VisualViewport","WAIT_FAILED","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WakeLock","WakeLockSentinel","WasmAnyRef","WaveShaperNode","WeakMap","WeakRef","WeakSet","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArray","WebGLVertexArrayObject","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxAlign","WebkitBoxDirection","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitBoxOrient","WebkitBoxPack","WebkitBoxShadow","WebkitBoxSizing","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitJustifyContent","WebkitLineClamp","WebkitMask","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskSize","WebkitOrder","WebkitPerspective","WebkitPerspectiveOrigin","WebkitTextFillColor","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserSelect","WheelEvent","Window","Worker","Worklet","WritableStream","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XRBoundedReferenceSpace","XRDOMOverlayState","XRFrame","XRHitTestResult","XRHitTestSource","XRInputSource","XRInputSourceArray","XRInputSourceEvent","XRInputSourcesChangeEvent","XRLayer","XRPose","XRRay","XRReferenceSpace","XRReferenceSpaceEvent","XRRenderState","XRRigidTransform","XRSession","XRSessionEvent","XRSpace","XRSystem","XRTransientInputHitTestResult","XRTransientInputHitTestSource","XRView","XRViewerPose","XRViewport","XRWebGLLayer","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","aborted","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","actions","activated","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","activeVRDisplays","actualBoundingBoxAscent","actualBoundingBoxDescent","actualBoundingBoxLeft","actualBoundingBoxRight","add","addAll","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addModule","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addTransceiver","addWakeLockListener","added","addedNodes","additionalName","additiveSymbols","addons","address","addressLine","adoptNode","adoptedStyleSheets","adr","advance","after","album","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allow","allowFullscreen","allowPaymentRequest","allowedDirections","allowedFeatures","allowedToPlay","allowsFeature","alpha","alt","altGraphKey","altHtml","altKey","altLeft","alternate","alternateSetting","alternates","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","and","angle","angularAcceleration","angularVelocity","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","antialias","anticipatedRemoval","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","appearance","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","applicationServerKey","apply","applyConstraints","applyElement","arc","arcTo","archive","areas","arguments","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","arrayBuffer","artist","artwork","as","asIntN","asUintN","asin","asinh","assert","assign","assignedElements","assignedNodes","assignedSlot","async","asyncIterator","atEnd","atan","atan2","atanh","atob","attachEvent","attachInternals","attachShader","attachShadow","attachments","attack","attestationObject","attrChange","attrName","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributeStyleMap","attributes","attribution","audioBitsPerSecond","audioTracks","audioWorklet","authenticatedSignedWrites","authenticatorData","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","automationRate","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","ax","axes","axis","ay","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundFetch","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","badge","balance","baseFrequencyX","baseFrequencyY","baseLatency","baseLayer","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","before","beginElement","beginElementAt","beginPath","beginQuery","beginTransformFeedback","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","bigint64","biguint64","binaryType","bind","bindAttribLocation","bindBuffer","bindBufferBase","bindBufferRange","bindFramebuffer","bindRenderbuffer","bindSampler","bindTexture","bindTransformFeedback","bindVertexArray","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blitFramebuffer","blob","block-size","blockDirection","blockSize","blockedURI","blue","bluetooth","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderBoxSize","borderCollapse","borderColor","borderColorDark","borderColorLight","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","boundsGeometry","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","break-after","break-before","break-inside","breakAfter","breakBefore","breakInside","broadcast","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","bufferedAmountLowThreshold","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","bytesWritten","c","cache","caches","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canInsertDTMF","canMakePayment","canPlayType","canPresent","canTrickleIceCandidates","cancel","cancelAndHoldAtTime","cancelAnimationFrame","cancelBubble","cancelIdleCallback","cancelScheduledValues","cancelVideoFrameCallback","cancelWatchAvailability","cancelable","candidate","canonicalUUID","canvas","capabilities","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","captureStream","caret-color","caretBidiLevel","caretColor","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changeType","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","charLength","characterData","characterDataOldValue","characterSet","characteristic","charging","chargingTime","charset","check","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","city","claimInterface","claimed","classList","className","classid","clear","clearAppBadge","clearAttributes","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","clearColor","clearData","clearDepth","clearHalt","clearImmediate","clearInterval","clearLiveSeekableRange","clearMarks","clearMaxGCPauseAccumulator","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientDataJSON","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWaitSync","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboard","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cm","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-adjust","color-interpolation","color-interpolation-filters","colorAdjust","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commit","commitPreferences","commitStyles","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareExchange","compareNode","comparePoint","compatMode","compatible","compile","compileShader","compileStreaming","complete","component","componentFromPoint","composed","composedPath","composite","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexImage3D","compressedTexSubImage2D","compressedTexSubImage3D","computedStyleMap","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","configuration","configurationName","configurationValue","configurations","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectShark","connectStart","connected","connection","connectionList","connectionSpeed","connectionState","connections","console","consolidate","constraint","constrictionActive","construct","constructor","contactID","contain","containerId","containerName","containerSrc","containerType","contains","containsNode","content","contentBoxSize","contentDocument","contentEditable","contentHint","contentOverflow","contentRect","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuePrimaryKey","continuous","control","controlTransferIn","controlTransferOut","controller","controls","controlsList","convertPointFromNode","convertQuadFromNode","convertRectFromNode","convertToBlob","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyBufferSubData","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyTexSubImage3D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","corruptedVideoFrames","cos","cosh","count","countReset","counter-increment","counter-reset","counter-set","counterIncrement","counterReset","counterSet","country","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createConstantSource","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTML","createHTMLDocument","createIIRFilter","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMediaStreamTrackSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPolicy","createPopup","createProcessingInstruction","createProgram","createQuery","createRadialGradient","createRange","createRangeCollection","createReader","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createSampler","createScript","createScriptProcessor","createScriptURL","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTransformFeedback","createTreeWalker","createVertexArray","createWaveShaper","creationTime","credentials","crossOrigin","crossOriginIsolated","crypto","csi","csp","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentDirection","currentLocalDescription","currentNode","currentPage","currentRect","currentRemoteDescription","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customElements","customError","cx","cy","d","data","dataFld","dataFormatAs","dataLoss","dataLossMessage","dataPageSize","dataSrc","dataTransfer","database","databases","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decodedBodySize","decoding","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPolicy","defaultPrevented","defaultRequest","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","define","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","deg","delay","delayTime","delegatesFocus","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteProperty","deleteQuery","deleteRenderbuffer","deleteRow","deleteRule","deleteSampler","deleteShader","deleteSync","deleteTFoot","deleteTHead","deleteTexture","deleteTransformFeedback","deleteVertexArray","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","dependentLocality","depthFar","depthFunc","depthMask","depthNear","depthRange","deref","deriveBits","deriveKey","description","deselectAll","designMode","desiredSize","destination","destinationURL","detach","detachEvent","detachShader","detail","details","detect","detune","device","deviceClass","deviceId","deviceMemory","devicePixelContentBoxSize","devicePixelRatio","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","deviceXDPI","deviceYDPI","didTimeout","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disablePictureInPicture","disableRemotePlayback","disableVertexAttribArray","disabled","dischargingTime","disconnect","disconnectShark","dispatchEvent","display","displayId","displayName","disposition","distanceModel","div","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domOverlayState","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","dotAll","downDegrees","downlink","download","downloadTotal","downloaded","dpcm","dpi","dppx","dragDrop","draggable","drawArrays","drawArraysInstanced","drawArraysInstancedANGLE","drawBuffers","drawCustomFocusRing","drawElements","drawElementsInstanced","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawRangeElements","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dtmf","dump","dumpProfile","duplicate","durability","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effect","effectAllowed","effectiveDirective","effectiveType","elapsedTime","element","elementFromPoint","elementTiming","elements","elementsFromPoint","elevation","ellipse","em","email","embeds","emma","empty","empty-cells","emptyCells","emptyHTML","emptyScript","emulatedPosition","enable","enableBackground","enableDelegations","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeInto","encodeURI","encodeURIComponent","encodedBodySize","encoding","encodingInfo","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endQuery","endTime","endTransformFeedback","ended","endpoint","endpointNumber","endpoints","endsWith","enterKeyHint","entities","entries","entryType","enumerate","enumerateDevices","enumerateEditable","environmentBlendMode","equals","error","errorCode","errorDetail","errorText","escape","estimate","eval","evaluate","event","eventPhase","every","ex","exception","exchange","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPictureInPicture","exitPointerLock","exitPresent","exp","expand","expandEntityReferences","expando","expansion","expiration","expirationTime","expires","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","exports","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","eye","f","face","factoryReset","failureReason","fallback","family","familyName","farthestViewportElement","fastSeek","fatal","featureId","featurePolicy","featureSettings","features","fenceSync","fetch","fetchStart","fftSize","fgColor","fieldOfView","file","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","filesystem","fill","fill-opacity","fill-rule","fillLightMode","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findRule","findText","finish","finished","fireEvent","firesTouchEvents","firstChild","firstElementChild","firstPage","fixed","flags","flat","flatMap","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","float32","float64","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontcolor","fontfaces","fonts","fontsize","for","forEach","force","forceRedraw","form","formAction","formData","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","forwardX","forwardY","forwardZ","foundation","fr","fragmentDirective","frame","frameBorder","frameElement","frameSpacing","framebuffer","framebufferHeight","framebufferRenderbuffer","framebufferTexture2D","framebufferTextureLayer","framebufferWidth","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","fromEntries","fromFloat32Array","fromFloat64Array","fromMatrix","fromPoint","fromQuad","fromRect","frontFace","fround","fullPath","fullScreen","fullscreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","gap","gatheringState","gatt","genderIdentity","generateCertificate","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getActiveUniformBlockName","getActiveUniformBlockParameter","getActiveUniforms","getAdjacentText","getAll","getAllKeys","getAllResponseHeaders","getAllowlistForFeature","getAnimations","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNames","getAttributeNode","getAttributeNodeNS","getAttributeType","getAudioTracks","getAvailability","getBBox","getBattery","getBigInt64","getBigUint64","getBlob","getBookmark","getBoundingClientRect","getBounds","getBoxQuads","getBufferParameter","getBufferSubData","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getCanonicalLocales","getCapabilities","getChannelData","getCharNumAtPosition","getCharacteristic","getCharacteristics","getClientExtensionResults","getClientRect","getClientRects","getCoalescedEvents","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getComputedTiming","getConfiguration","getConstraints","getContext","getContextAttributes","getContributingSources","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDescriptor","getDescriptors","getDestinationInsertionPoints","getDevices","getDirectory","getDisplayMedia","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getEyeParameters","getFeature","getFile","getFiles","getFilesAndDirectories","getFingerprints","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFragDataLocation","getFrameData","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHitTestResults","getHitTestResultsForTransientInput","getHours","getIdentityAssertion","getIds","getImageData","getIndexedParameter","getInstalledRelatedApps","getInt16","getInt32","getInt8","getInternalformatParameter","getIntersectionList","getItem","getItems","getKey","getKeyframes","getLayers","getLayoutMap","getLineDash","getLocalCandidates","getLocalParameters","getLocalStreams","getMarks","getMatchedCSSRules","getMaxGCPauseSinceClear","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNativeFramebufferScaleFactor","getNotifications","getNotifier","getNumberOfChars","getOffsetReferenceSpace","getOutputTimestamp","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyDescriptors","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getParameters","getParent","getPathSegAtLength","getPhotoCapabilities","getPhotoSettings","getPointAtLength","getPose","getPredictedEvents","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getPrimaryService","getPrimaryServices","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyType","getPropertyValue","getPrototypeOf","getQuery","getQueryParameter","getRGBColorValue","getRandomValues","getRangeAt","getReader","getReceivers","getRectValue","getRegistration","getRegistrations","getRemoteCandidates","getRemoteCertificates","getRemoteParameters","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRootNode","getRotationOfChar","getSVGDocument","getSamplerParameter","getScreenCTM","getSeconds","getSelectedCandidatePair","getSelection","getSenders","getService","getSettings","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getState","getStats","getStatusForPolicy","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedConstraints","getSupportedExtensions","getSupportedFormats","getSyncParameter","getSynchronizationSources","getTags","getTargetRanges","getTexParameter","getTime","getTimezoneOffset","getTiming","getTotalLength","getTrackById","getTracks","getTransceivers","getTransform","getTransformFeedbackVarying","getTransformToElement","getTransports","getType","getTypeMapping","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformBlockIndex","getUniformIndices","getUniformLocation","getUserMedia","getVRDisplays","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getViewerPose","getViewport","getVoices","getWakeLockState","getWriter","getYear","givenName","global","globalAlpha","globalCompositeOperation","globalThis","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","grabFrame","grad","gradientTransform","gradientUnits","grammars","green","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","gripSpace","group","groupCollapsed","groupEnd","groupId","hadRecentInput","hand","handedness","hapticActuators","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasBeenActive","hasChildNodes","hasComposition","hasEnrolledInstrument","hasExtension","hasExternalDisplay","hasFeature","hasFocus","hasInstance","hasLayout","hasOrientation","hasOwnProperty","hasPointerCapture","hasPosition","hasReading","hasStorageAccess","hash","head","headers","heading","height","hidden","hide","hideFocus","high","highWaterMark","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostCandidate","hostname","href","hrefTranslate","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","httpRequestStatusCode","hwTimestamp","hyphens","hypot","iccId","iceConnectionState","iceGatheringState","iceTransport","icon","iconURL","id","identifier","identity","idpLoginUrl","ignoreBOM","ignoreCase","ignoreDepthValues","image-orientation","image-rendering","imageHeight","imageOrientation","imageRendering","imageSizes","imageSmoothingEnabled","imageSmoothingQuality","imageSrcset","imageWidth","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","indicate","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDataType","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inline-size","inlineSize","inlineVerticalFieldOfView","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","inputMode","inputSource","inputSources","inputType","inputs","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertDTMF","insertData","insertItemBefore","insertNode","insertRow","insertRule","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","installing","instanceRoot","instantiate","instantiateStreaming","instruments","int16","int32","int8","integrity","interactionMode","intercept","interfaceClass","interfaceName","interfaceNumber","interfaceProtocol","interfaceSubclass","interfaces","interimResults","internalSubset","interpretation","intersectionRatio","intersectionRect","intersectsNode","interval","invalidIteratorState","invalidateFramebuffer","invalidateSubFramebuffer","inverse","invertSelf","is","is2D","isActive","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isConcatSpreadable","isConnected","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDirectory","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isExternalCTAP2SecurityKeySupported","isFile","isFinite","isFramebuffer","isFrozen","isGenerator","isHTML","isHistoryNavigation","isId","isIdentity","isInjected","isInteger","isIntersecting","isLockFree","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPresenting","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isQuery","isRenderbuffer","isSafeInteger","isSameNode","isSampler","isScript","isScriptURL","isSealed","isSecureContext","isSessionSupported","isShader","isSupported","isSync","isTextEdit","isTexture","isTransformFeedback","isTrusted","isTypeSupported","isUserVerifyingPlatformAuthenticatorAvailable","isVertexArray","isView","isVisible","isochronousTransferIn","isochronousTransferOut","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","items","iterateNext","iterationComposite","iterator","javaEnabled","jobTitle","join","json","justify-content","justify-items","justify-self","justifyContent","justifyItems","justifySelf","k1","k2","k3","k4","kHz","keepalive","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keyStatuses","keySystem","keyText","keyUsage","keyboard","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastInputTime","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftDegrees","leftMargin","leftProjectionMatrix","leftViewMatrix","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-break","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearAcceleration","linearRampToValueAtTime","linearVelocity","lineno","lines","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTime","loadTimes","loaded","loading","localDescription","localName","localService","localStorage","locale","localeCompare","location","locationbar","lock","locked","lockedFile","locks","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","makeXRCompatible","manifest","manufacturer","manufacturerName","map","mapping","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginHeight","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-position-x","mask-position-y","mask-repeat","mask-size","mask-type","maskClip","maskComposite","maskContentUnits","maskImage","maskMode","maskOrigin","maskPosition","maskPositionX","maskPositionY","maskRepeat","maskSize","maskType","maskUnits","match","matchAll","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-block-size","max-height","max-inline-size","max-width","maxActions","maxAlternatives","maxBlockSize","maxChannelCount","maxChannels","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxInlineSize","maxLayers","maxLength","maxMessageSize","maxPacketLifeTime","maxRetransmits","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaSession","mediaStream","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","messageType","metaKey","metadata","method","methodDetails","methodName","mid","mimeType","mimeTypes","min","min-block-size","min-height","min-inline-size","min-width","minBlockSize","minDecibels","minHeight","minInlineSize","minLength","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mm","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","movementX","movementY","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","ms","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","mul","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationPreload","navigationStart","navigator","near","nearestViewportElement","negative","negotiated","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextHopProtocol","nextNode","nextPage","nextSibling","nickname","noHref","noModule","noResize","noShade","noValidate","noWrap","node","nodeName","nodeType","nodeValue","nonce","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","notify","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","objectType","observe","of","offscreenBuffering","offset","offset-anchor","offset-distance","offset-path","offset-rotate","offsetAnchor","offsetDistance","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetPath","offsetRotate","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onabsolutedeviceorientation","onactivate","onactive","onaddsourcebuffer","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onauxclick","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforeinstallprompt","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onbeforexrselect","onbegin","onblocked","onblur","onbounce","onboundary","onbufferedamountlow","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","once","oncellchange","onchange","oncharacteristicvaluechanged","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","onclosing","oncompassneedscalibration","oncomplete","onconnect","onconnecting","onconnectionavailable","onconnectionstatechange","oncontextmenu","oncontrollerchange","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicechange","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondeviceproximity","ondischargingtimechange","ondisconnect","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onenterpictureinpicture","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onformdata","onfreeze","onfullscreenchange","onfullscreenerror","ongatheringstatechange","ongattserverdisconnected","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","onicecandidateerror","oniceconnectionstatechange","onicegatheringstatechange","oninactive","oninput","oninputsourceschange","oninvalid","onkeydown","onkeypress","onkeystatuseschange","onkeyup","onlanguagechange","onlayoutcomplete","onleavepictureinpicture","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloading","onloadingdone","onloadingerror","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmessageerror","onmidimessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onmute","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onpayerdetailchange","onpaymentmethodchange","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerrawupdate","onpointerup","onpopstate","onprocessorerror","onprogress","onpropertychange","onratechange","onreading","onreadystatechange","onrejectionhandled","onrelease","onremove","onremovesourcebuffer","onremovestream","onremovetrack","onrepeat","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectedcandidatepairchange","onselectend","onselectionchange","onselectstart","onshippingaddresschange","onshippingoptionchange","onshow","onsignalingstatechange","onsoundend","onsoundstart","onsourceclose","onsourceclosed","onsourceended","onsourceopen","onspeechend","onspeechstart","onsqueeze","onsqueezeend","onsqueezestart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","onterminate","ontextinput","ontimeout","ontimeupdate","ontoggle","ontonechange","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontrack","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onunhandledrejection","onunload","onunmute","onupdate","onupdateend","onupdatefound","onupdateready","onupdatestart","onupgradeneeded","onuserproximity","onversionchange","onvisibilitychange","onvoiceschanged","onvolumechange","onvrdisplayactivate","onvrdisplayconnect","onvrdisplaydeactivate","onvrdisplaydisconnect","onvrdisplaypresentchange","onwaiting","onwaitingforkey","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opened","opener","opera","operationType","operator","opr","optimum","options","or","order","orderX","orderY","ordered","org","organization","orient","orientAngle","orientType","orientation","orientationX","orientationY","orientationZ","origin","originalPolicy","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","outputLatency","outputs","overflow","overflow-anchor","overflow-block","overflow-inline","overflow-wrap","overflow-x","overflow-y","overflowAnchor","overflowBlock","overflowInline","overflowWrap","overflowX","overflowY","overrideMimeType","oversample","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","ownKeys","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","packetSize","packets","pad","padEnd","padStart","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageLeft","pageTop","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","paintWorklet","palette","pan","panningModel","parameters","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseAll","parseFloat","parseFromString","parseInt","part","participants","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","pauseProfilers","pauseTransformFeedback","paused","payerEmail","payerName","payerPhone","paymentManager","pc","peerIdentity","pending","pendingLocalDescription","pendingRemoteDescription","percent","performance","periodicSync","permission","permissionState","permissions","persist","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phone","phoneticFamilyName","phoneticGivenName","photo","pictureInPictureElement","pictureInPictureEnabled","pictureInPictureWindow","ping","pipeThrough","pipeTo","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","place-content","place-items","place-self","placeContent","placeItems","placeSelf","placeholder","platform","platforms","play","playEffect","playState","playbackRate","playbackState","playbackTime","played","playoutDelayHint","playsInline","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","populateMatrix","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","pose","position","positionAlign","positionX","positionY","positionZ","postError","postMessage","postalCode","poster","pow","powerEfficient","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","prepend","presentation","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","preventSilentAccess","previousElementSibling","previousNode","previousPage","previousRect","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","priority","privateKey","probablySupportsContext","process","processIceMessage","processingEnd","processingStart","product","productId","productName","productSub","profile","profileEnd","profiles","projectionMatrix","promise","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","provider","pseudoClass","pseudoElement","pt","publicId","publicKey","published","pulse","push","pushManager","pushNotification","pushState","put","putImageData","px","quadraticCurveTo","qualifier","quaternion","query","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","queueMicrotask","quote","quotes","r","r1","r2","race","rad","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","rawId","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readBuffer","readEntries","readOnly","readPixels","readReportRequested","readText","readValue","readable","ready","readyState","reason","reboot","receivedAlert","receiver","receivers","recipient","reconnect","recordNumber","recordsAvailable","recordset","rect","red","redEyeReduction","redirect","redirectCount","redirectEnd","redirectStart","redirected","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referenceSpace","referrer","referrerPolicy","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProperty","registerProtocolHandler","reject","rel","relList","relatedAddress","relatedNode","relatedPort","relatedTarget","release","releaseCapture","releaseEvents","releaseInterface","releaseLock","releasePointerCapture","releaseShaderCompiler","reliable","reliableWrite","reload","rem","remainingSpace","remote","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removed","removedNodes","renderHeight","renderState","renderTime","renderWidth","renderbufferStorage","renderbufferStorageMultisample","renderedBuffer","renderingMode","renotify","repeat","replace","replaceAdjacentText","replaceAll","replaceChild","replaceChildren","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceSync","replaceTrack","replaceWholeText","replaceWith","reportValidity","request","requestAnimationFrame","requestAutocomplete","requestData","requestDevice","requestFrame","requestFullscreen","requestHitTestSource","requestHitTestSourceForTransientInput","requestId","requestIdleCallback","requestMIDIAccess","requestMediaKeySystemAccess","requestPermission","requestPictureInPicture","requestPointerLock","requestPresent","requestReferenceSpace","requestSession","requestStart","requestStorageAccess","requestSubmit","requestVideoFrameCallback","requestingWindow","requireInteraction","required","requiredExtensions","requiredFeatures","reset","resetPose","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseReady","responseStart","responseText","responseType","responseURL","responseXML","restartIce","restore","result","resultIndex","resultType","results","resume","resumeProfilers","resumeTransformFeedback","retry","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightDegrees","rightMargin","rightProjectionMatrix","rightViewMatrix","role","rolloffFactor","root","rootBounds","rootElement","rootMargin","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationAngle","rotationRate","round","row-gap","rowGap","rowIndex","rowSpan","rows","rtcpTransport","rtt","ruby-align","ruby-position","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","s","safari","sample","sampleCoverage","sampleRate","samplerParameterf","samplerParameteri","sandbox","save","saveData","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scriptURL","scripts","scroll","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMaxX","scrollMaxY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollRestoration","scrollSnapAlign","scrollSnapType","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar-color","scrollbar-width","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbarWidth","scrollbars","scrolling","scrollingElement","sctp","sctpCauseCode","sdp","sdpLineNumber","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekToNextFrame","seekable","seeking","select","selectAllChildren","selectAlternateInterface","selectConfiguration","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentAlert","sentTimestamp","separator","serialNumber","serializeToString","serverTiming","service","serviceWorker","session","sessionId","sessionStorage","set","setActionHandler","setActive","setAlpha","setAppBadge","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBigInt64","setBigUint64","setBingCurrentSearchDefault","setCapture","setCodecPreferences","setColor","setCompositeOperation","setConfiguration","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFormValue","setFullYear","setHeaderValue","setHours","setIdentityProvider","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setKeyframes","setLineCap","setLineDash","setLineJoin","setLineWidth","setLiveSeekableRange","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setParameters","setPeriodicWave","setPointerCapture","setPosition","setPositionState","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSinkId","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStreams","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValidity","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-image-threshold","shape-margin","shape-outside","shape-rendering","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","sheet","shift","shiftKey","shiftLeft","shippingAddress","shippingOption","shippingType","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signal","signalingState","signature","silent","sin","singleNodeValue","sinh","sinkId","sittingToStandingTransform","size","sizeToContent","sizeX","sizeZ","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","slot","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","sortingCode","source","sourceBuffer","sourceBuffers","sourceCapabilities","sourceFile","sourceIndex","sources","spacing","span","speak","speakAs","speaking","species","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcObject","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","stageParameters","standalone","standby","start","startContainer","startIce","startMessages","startNotifications","startOffset","startProfiling","startRendering","startShark","startTime","startsWith","state","status","statusCode","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopNotifications","stopOpacity","stopProfiling","stopPropagation","stopShark","stopped","storage","storageArea","storageName","storageStatus","store","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","streams","stretch","strike","string","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMap","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","submitFrame","submitter","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supported","supportedContentEncodings","supportedEntryTypes","supports","supportsSession","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","sync","sysexEnabled","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takePhoto","takeRecords","tan","tangentialPressure","tanh","target","targetElement","targetRayMode","targetRaySpace","targetTouches","targetX","targetY","tcpType","tee","tel","terminate","test","texImage2D","texImage3D","texParameterf","texParameteri","texStorage2D","texStorage3D","texSubImage2D","texSubImage3D","text","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textCombineUpright","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textDecorationUnderline","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOrientation","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlineOffset","textUnderlinePosition","then","threadId","threshold","thresholds","tiltX","tiltY","time","timeEnd","timeLog","timeOrigin","timeRemaining","timeStamp","timecode","timeline","timelineTime","timeout","timestamp","timestampOffset","timing","title","to","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMatrix","toMethod","toPrecision","toPrimitive","toSdp","toSource","toStaticHTML","toString","toStringTag","toSum","toTimeString","toUTCString","toUpperCase","toggle","toggleAttribute","toggleLongPressEnabled","tone","toneBuffer","tooLong","tooShort","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touch-action","touchAction","touched","touches","trace","track","trackVisibility","transaction","transactions","transceiver","transferControlToOffscreen","transferFromImageBitmap","transferImageBitmap","transferIn","transferOut","transferSize","transferToImageBitmap","transform","transform-box","transform-origin","transform-style","transformBox","transformFeedbackVaryings","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","transport","trim","trimEnd","trimLeft","trimRight","trimStart","trueSpeed","trunc","truncate","trustedTypes","turn","twist","type","typeDetail","typeMismatch","typeMustMatch","types","u2f","ubound","uint16","uint32","uint8","uint8Clamped","undefined","unescape","uneval","unicode","unicode-bidi","unicodeBidi","unicodeRange","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform1ui","uniform1uiv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform2ui","uniform2uiv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform3ui","uniform3uiv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniform4ui","uniform4uiv","uniformBlockBinding","uniformMatrix2fv","uniformMatrix2x3fv","uniformMatrix2x4fv","uniformMatrix3fv","uniformMatrix3x2fv","uniformMatrix3x4fv","uniformMatrix4fv","uniformMatrix4x2fv","uniformMatrix4x3fv","unique","uniqueID","uniqueNumber","unit","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","upDegrees","upX","upY","upZ","update","updateCommands","updateIce","updateInterval","updatePlaybackRate","updateRenderState","updateSettings","updateTiming","updateViaCache","updateWith","updated","updating","upgrade","upload","uploadTotal","uploaded","upper","upperBound","upperOpen","uri","url","urn","urns","usages","usb","usbVersionMajor","usbVersionMinor","usbVersionSubminor","useCurrentView","useMap","useProgram","usedSpace","user-select","userActivation","userAgent","userChoice","userHandle","userHint","userLanguage","userSelect","userVisibleOnly","username","usernameFragment","utterance","uuid","v8BreakIterator","vAlign","vLink","valid","validate","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","variable","variant","variationSettings","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorId","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisor","vertexAttribDivisorANGLE","vertexAttribI4i","vertexAttribI4iv","vertexAttribI4ui","vertexAttribI4uiv","vertexAttribIPointer","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vh","vibrate","vibrationActuator","videoBitsPerSecond","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","views","violatedDirective","visibility","visibilityState","visible","visualViewport","vlinkColor","vmax","vmin","voice","voiceURI","volume","vrml","vspace","vw","w","wait","waitSync","waiting","wake","wakeLock","wand","warn","wasClean","wasDiscarded","watch","watchAvailability","watchPosition","webdriver","webkitAddKey","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBorderRadius","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxShadow","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDecodedFrameCount","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitDroppedFrameCount","webkitEnterFullScreen","webkitEnterFullscreen","webkitEntries","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitJustifyContent","webkitKeys","webkitLineClamp","webkitLineDashOffset","webkitLockOrientation","webkitMask","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskSize","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrder","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPerspective","webkitPerspectiveOrigin","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRelativePath","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextFillColor","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdirectory","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","whenDefined","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","workerStart","wrap","wrapKey","writable","writableAuxiliaries","write","writeText","writeValue","writeWithoutResponse","writeln","writing-mode","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","xor","xr","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function Cl(e,t){e.walk(new Ws((e=>(e instanceof No?Cl(e.tail_node(),t):e instanceof As?t(e.value):e instanceof jo&&(Cl(e.consequent,t),Cl(e.alternative,t)),!0))))}var kl="undefined"==typeof atob?e=>t.from(e,"base64").toString():atob,Al="undefined"==typeof btoa?e=>t.from(e).toString("base64"):btoa;function Nl(e){var t=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(e);return t?kl(t[2]):(console.warn("inline source map not found"),null)}function wl(e,t,r){t[e]&&r.forEach((r=>{t[r]&&("object"!=typeof t[r]&&(t[r]={}),e in t[r]||(t[r][e]=t[e]))}))}function Fl(e){e&&("props"in e?e.props instanceof Map||(e.props=(e=>{var t=new Map;for(var r in e)Si(e,r)&&"$"===r.charAt(0)&&t.set(r.substr(1),e[r]);return t})(e.props)):e.props=new Map)}function Pl(e){return{props:Ei(e.props)}}async function Il(e,t){var r,n,i=(t=ci(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};if(void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),t.output&&t.format)throw new Error("Please only specify either output or format option, preferrably format.");if(t.format=t.format||t.output||{},wl("ecma",t,["parse","compress","format"]),wl("ie8",t,["compress","mangle","format"]),wl("keep_classnames",t,["compress","mangle"]),wl("keep_fnames",t,["compress","mangle"]),wl("module",t,["parse","compress","mangle"]),wl("safari10",t,["mangle","format"]),wl("toplevel",t,["compress","mangle"]),wl("warnings",t,["compress"]),t.mangle&&(t.mangle=ci(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(r=t.mangle.properties.reserved,Array.isArray(r)||(r=[]),t.mangle.properties.reserved=r),t.nameCache&&!("cache"in t.mangle.properties)&&(t.mangle.properties.cache=t.nameCache.props||{})),Fl(t.mangle.cache),Fl(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=ci(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),i&&(i.parse=Date.now()),e instanceof za)n=e;else{for(var a in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(Si(e,a)&&(t.parse.filename=a,t.parse.toplevel=ha(e[a],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=Nl(e[a])}n=t.parse.toplevel}r&&"strict"!==t.mangle.properties.keep_quoted&&((e,t)=>{function r(e){gi(t,e)}e.walk(new Ws((e=>{e instanceof Jo&&e.quote?r(e.key):e instanceof Wo&&e.quote?r(e.key.name):e instanceof Io&&Cl(e.property,r)})))})(n,r),t.wrap&&(n=n.wrap_commonjs(t.wrap)),t.enclose&&(n=n.wrap_enclose(t.enclose)),i&&(i.rename=Date.now()),i&&(i.compress=Date.now()),t.compress&&(n=new Ec(t.compress,{mangle_options:t.mangle}).compress(n)),i&&(i.scope=Date.now()),t.mangle&&n.figure_out_scope(t.mangle),i&&(i.mangle=Date.now()),t.mangle&&(pc.reset(),n.compute_char_frequency(t.mangle),n.mangle_names(t.mangle)),i&&(i.properties=Date.now()),t.mangle&&t.mangle.properties&&(n=function(e,t){var r=(t=ci(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null,undeclared:!1},!0)).reserved;Array.isArray(r)||(r=[r]);var n=new Set(r);t.builtins||(e=>{Tl.forEach(n);var t={},r="object"==typeof global?global:self;function n(t){e.add(t)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach((e=>{t[e]=r[e]||new Function})),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(n),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,t.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,t.Map,parseFloat,parseInt,t.Promise,t.Proxy,RangeError,ReferenceError,t.Reflect,t.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,t.WeakMap,t.WeakSet].forEach((e=>{Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)}))})(n);var i,a=-1,o=-1,s=new Map;t.cache?(i=t.cache.props).forEach((e=>{n.add(e)})):i=new Map;var c,l=t.regex&&new RegExp(t.regex),u=!1!==t.debug;u&&(c=!0===t.debug?"":t.debug);var d=new Set,p=new Set,_=new Set,f="strict"===t.keep_quoted;return e.walk(new Ws((e=>{if(e instanceof es||e instanceof Yo)_.add(e.key.name);else if(e instanceof Po)_.add(e.property);else if(e instanceof Jo)"string"!=typeof e.key||f&&e.quote||h(e.key);else if(e instanceof Wo)f&&e.key.end.quote||h(e.key.name);else if(e instanceof Fo){var r=!!t.undeclared;if(!r){for(var n=e;n.expression;)n=n.expression;r=!(n.thedef&&n.thedef.undeclared)}!r||f&&e.quote||h(e.property)}else e instanceof Io?f||Cl(e.property,h):e instanceof ko&&"Object.defineProperty"==e.expression.print_to_string()?Cl(e.args[1],h):e instanceof Bo&&"in"===e.operator&&Cl(e.left,h)}))),e.transform(new Js((e=>{e instanceof es||e instanceof Yo?e.key.name=v(e.key.name):e instanceof Po?e.property=v(e.property):e instanceof Jo?"string"!=typeof e.key||f&&e.quote||(e.key=y(e.key)):e instanceof Wo?f&&e.key.end.quote||(e.key.name=y(e.key.name)):e instanceof Fo?f&&e.quote||(e.property=y(e.property)):!t.keep_quoted&&e instanceof Io?e.property=b(e.property):e instanceof ko&&"Object.defineProperty"==e.expression.print_to_string()?e.args[1]=b(e.args[1]):e instanceof Bo&&"in"===e.operator&&(e.left=b(e.left))})));function m(e){return!p.has(e)&&!n.has(e)&&(t.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e))}function g(e){return!(l&&!l.test(e))&&!n.has(e)&&(i.has(e)||d.has(e))}function h(e){m(e)&&d.add(e),g(e)||p.add(e)}function y(e){if(!g(e))return e;var t=i.get(e);if(!t){if(u){var r="_$"+e+"$"+c+"_";m(r)&&(t=r)}if(!t)do{t=pc(++a)}while(!m(t));i.set(e,t)}return t}function v(e){let t=s.get(e);return t||(t=pc(++o),s.set(e,t)),t}function b(e){return e.transform(new Js((e=>{if(e instanceof No){var t=e.expressions.length-1;e.expressions[t]=b(e.expressions[t])}else e instanceof As?e.value=y(e.value):e instanceof jo&&(e.consequent=b(e.consequent),e.alternative=b(e.alternative));return e})))}}(n,t.mangle.properties)),i&&(i.format=Date.now());var o={};if(t.format.ast&&(o.ast=n),!Si(t.format,"code")||t.format.code){if(t.sourceMap&&(t.format.source_map=await(async e=>{var t;e=ci(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var r=new ri.SourceMapGenerator({file:e.file,sourceRoot:e.root});return e.orig&&(t=await new ri.SourceMapConsumer(e.orig)).sources.forEach((e=>{var n=t.sourceContentFor(e,!0);n&&r.setSourceContent(e,n)})),{add(n,i,a,o,s,c){if(t){var l=t.originalPositionFor({line:o,column:s});if(null===l.source)return;n=l.source,o=l.line,s=l.column,c=l.name||c}r.addMapping({generated:{line:i+e.dest_line_diff,column:a},original:{line:o+e.orig_line_diff,column:s},source:n,name:c})},get(){return r},toString(){return r.toString()},destroy(){t&&t.destroy&&t.destroy()}}})({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof za)throw new Error("original source content unavailable");for(var a in e)Si(e,a)&&t.format.source_map.get().setSourceContent(a,e[a])}delete t.format.ast,delete t.format.code;var s=nc(t.format);if(n.print(s),o.code=s.get(),t.sourceMap)if(t.sourceMap.asObject?o.map=t.format.source_map.get().toJSON():o.map=t.format.source_map.toString(),"inline"==t.sourceMap.url){var c="object"==typeof o.map?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Al(c)}else t.sourceMap.url&&(o.code+="\n//# sourceMappingURL="+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=Pl(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=Pl(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy(),i&&(i.end=Date.now(),o.timings={parse:.001*(i.rename-i.parse),rename:.001*(i.compress-i.rename),compress:.001*(i.scope-i.compress),scope:.001*(i.mangle-i.scope),mangle:.001*(i.properties-i.mangle),properties:.001*(i.format-i.properties),format:.001*(i.end-i.format),total:.001*(i.end-i.start)}),o}const Ol=async(e,t)=>{const r={output:e,sourceMap:null,diagnostics:[]};if(t){const e=t.mangle;if(e){const t=e.properties;t&&t.regex&&(t.regex=new RegExp(t.regex))}t.sourceMap&&(t.compress=void 0)}try{const n=await Il(e,t);r.output=n.code,r.sourceMap="string"==typeof n.map?JSON.parse(n.map):n.map;const i=t.compress;i&&i.module&&r.output.endsWith("};")&&(r.output=r.output.substring(0,r.output.length-1))}catch(t){t instanceof Error&&console.log(t.stack),Ml(e,r.diagnostics,t)}return r},Ml=(e,t,r)=>{const n={level:"error",type:"build",language:"javascript",header:"Minify JS",code:"",messageText:r.message,absFilePath:null,relFilePath:null,lines:[]},i=r;if("number"==typeof i.line&&i.line>-1){const t=ce(e),r={lineIndex:i.line-1,lineNumber:i.line,text:t[i.line-1],errorCharStart:i.col,errorLength:0};n.lineNumber=r.lineNumber,n.columnNumber=r.errorCharStart;const a=r.text.slice(n.columnNumber);for(let e=0;e<a.length&&!Rl.has(a.charAt(e));e++)r.errorLength++;if(n.lines.push(r),0===r.errorLength&&r.errorCharStart>0&&(r.errorLength=1,r.errorCharStart--),r.lineIndex>0){const e={lineIndex:r.lineIndex-1,lineNumber:r.lineNumber-1,text:t[r.lineIndex-1],errorCharStart:-1,errorLength:-1};n.lines.unshift(e)}if(r.lineIndex+1<t.length){const e={lineIndex:r.lineIndex+1,lineNumber:r.lineNumber+1,text:t[r.lineIndex+1],errorCharStart:-1,errorLength:-1};n.lines.push(e)}}t.push(n)},Rl=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),Ll=async(e,t,r)=>{if(!r.minify&&"es5"!==r.sourceTarget||""===r.input)return{output:r.input,diagnostics:[],sourceMap:r.sourceMap};const n="debug"===e.logLevel,i=await t.cache.createKey("optimizeModule","terser5.6.1_7",r,n),a=await t.cache.get(i);if(null!=a){const e=await t.cache.get(i+"Map");return{output:a,diagnostics:[],sourceMap:e?JSON.parse(e):null}}let o,s=r.input;if(r.isCore&&(s=s.replace(/\/\* IS_ESM_BUILD \*\//g,"&& false /* IS_SYSTEM_JS_BUILD */")),"es5"===r.sourceTarget||r.minify){o=Bl(e,r.sourceTarget,n),e.sourceMap&&(o.sourceMap={content:r.sourceMap});const t=o.compress,i=o.mangle;"es5"!==r.sourceTarget&&r.isCore&&(n||(t.passes=2,t.global_defs={supportsListenerOptions:!0,"plt.$cssShim$":!1},t.pure_funcs=t.pure_funcs||[],t.pure_funcs=["getHostRef",...t.pure_funcs]),i.properties={regex:"^\\$.+\\$$",debug:n},t.inline=1,t.unsafe=!0,t.unsafe_undefined=!0)}const c="es5"===r.sourceTarget,l=await t.worker.prepareModule(s,o,c,r.inlineHelpers);return null!=l&&"string"==typeof l.output&&0===l.diagnostics.length&&null!=t&&(r.isCore&&(l.output=l.output.replace(/disconnectedCallback\(\)\{\},/g,"")),await t.cache.put(i,l.output),l.sourceMap&&await t.cache.put(i+"Map",JSON.stringify(l.sourceMap))),l},Bl=(e,t,r)=>{const n={ie8:!1,safari10:!!e.extras.safari10,format:{},sourceMap:e.sourceMap};return"es5"===t?(n.ecma=n.format.ecma=5,n.compress=!1,n.mangle=!0):(n.mangle={properties:{regex:"^\\$.+\\$$"}},n.compress={pure_getters:!0,keep_fargs:!1,passes:2},n.ecma=n.format.ecma=n.compress.ecma=2018,n.toplevel=!0,n.module=!0,n.mangle.toplevel=!0,n.compress.arrows=!0,n.compress.module=!0,n.compress.toplevel=!0),r&&(n.mangle={keep_fnames:!0},n.compress={},n.compress.drop_console=!1,n.compress.drop_debugger=!1,n.compress.pure_funcs=[],n.format.beautify=!0,n.format.indent_level=2,n.format.comments="all"),n},jl=async(e,t,r,n)=>{var i;const a={output:e,diagnostics:[],sourceMap:null};if(r){const r=p.transpileModule(e,{fileName:"module.ts",compilerOptions:{sourceMap:!!t.sourceMap,allowJs:!0,target:p.ScriptTarget.ES5,module:p.ModuleKind.ESNext,removeComments:!1,isolatedModules:!0,skipLibCheck:!0,noEmitHelpers:!n,importHelpers:!n},reportDiagnostics:!1});if(a.output=r.outputText,r.sourceMapText){const e=((e,t)=>{if(!e)return t;if(!t)return e;var r=new ni(e),n=new ni(t),i=new ii;return n.eachMapping((e=>{if(null!=e.originalLine){var t=r.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=t.source&&i.addMapping({original:{line:t.line,column:t.column},generated:{line:e.generatedLine,column:e.generatedColumn},source:t.source,name:t.name})}})),[r,n].forEach((e=>{e.sources.forEach((t=>{i._sources.add(t);var r=e.sourceContentFor(t);null!=r&&i.setSourceContent(t,r)}))})),i._sourceRoot=e.sourceRoot,i._file=e.file,JSON.parse(i.toString())})(null===(i=t.sourceMap)||void 0===i?void 0:i.content,JSON.parse(r.sourceMapText));t.sourceMap={content:e}}}return t?Ol(a.output,t):a},Ul=(e,t,r,n,i)=>{if(!Array.isArray(i)||0===i.length)return[];const a=r.pathname.split("/");return i.filter((r=>{if("function"==typeof e.filterAnchor)try{if(!1===e.filterAnchor(r,n))return!1}catch(e){return re(t,e),!1}return Vl(t,r)})).map((r=>{if("function"==typeof e.normalizeUrl)try{const i=e.normalizeUrl(r.href,n);return Kl(t,i.href,n)}catch(e){re(t,e)}return Kl(t,r.href,n)})).filter((r=>{if("function"==typeof e.filterUrl)try{if(!1===e.filterUrl(r,n))return!1}catch(e){return re(t,e),!1}return zl(t,r,n,a)})).map((r=>Wl(e,t,r))).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]).sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0}))},Vl=(e,t,r)=>{try{let e=t.href;if("string"==typeof t.download)return!1;if("string"==typeof e&&(e=e.trim(),""!==e&&!e.startsWith("#")&&!e.startsWith("?")))return"string"!=typeof t.target||"_self"===t.target.trim().toLowerCase()}catch(t){re(e,t)}return!1},Kl=(e,t,r)=>{if("string"==typeof t)try{const e=new URL(t,r.href);e.protocol=r.href,e.hash="",e.search="";const n=e.pathname.split("/"),i=n[n.length-1];return"index.html"!==i&&"index.htm"!==i||(n.pop(),e.pathname=n.join("/")),e}catch(t){re(e,t)}return null},zl=(e,t,r,n)=>{try{if(null!=t.hostname&&null!=r.hostname&&t.hostname!==r.hostname)return!1;if(Jl(t.pathname))return!1;const e=t.pathname.split("/");if(e.length<n.length)return!1;for(let t=0;t<n.length;t++){const r=n[t],i=e[t];if(n.length-1===t&&""===r)break;if(r!==i)return!1}return!0}catch(t){re(e,t)}return!1},Wl=(e,t,r)=>{try{if(null!=r&&"string"==typeof r.href){let t=r.href.trim();if(e.trailingSlash){if(!t.endsWith("/")){const e=r.pathname.split("/");e[e.length-1].includes(".")||(t+="/")}}else t.endsWith("/")&&"/"!==r.pathname&&(t=t.slice(0,-1));return t}}catch(e){re(t,e)}return null},Jl=e=>$l.has(Hl(e).toLowerCase()),Hl=e=>{const t=e.split(".");return t[t.length-1].toLowerCase()},$l=new Set(["zip","rar","tar","gz","bz2","png","jpeg","jpg","gif","pdf","tiff","psd"]),Gl=e=>{const t={module:void 0,id:e,diagnostics:[]};if(i)try{const r=require("fs"),n=require("path");t.id=n.resolve(e),delete require.cache[t.id],require.extensions[".ts"]=(e,n)=>{let i=r.readFileSync(n,"utf8");if(n.endsWith(".ts")){const e=p.transpileModule(i,{fileName:n,compilerOptions:{module:p.ModuleKind.CommonJS,moduleResolution:p.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:p.ScriptTarget.ES2017,allowJs:!0}});i=e.outputText,t.diagnostics.push(...e.diagnostics.map(ke))}else i=i.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");try{e._compile(i,n)}catch(e){re(t.diagnostics,e)}},t.module=require(t.id),require.extensions[".ts"]=void 0}catch(e){re(t.diagnostics,e)}return t},ql=(e,t)=>{const r={};if($(t)){const n=Gl(t);e.push(...n.diagnostics),null!=n.module&&"object"==typeof n.module&&(null!=n.module.config&&"object"==typeof n.module.config?Object.assign(r,n.module.config):Object.assign(r,n.module))}return r},Xl=(e,t,r)=>{const n=t.href,i={url:n,addModulePreloads:!0,approximateLineWidth:100,hashAssets:"querystring",inlineExternalStyleSheets:!1,minifyScriptElements:!0,minifyStyleElements:!0,removeAttributeQuotes:!0,removeBooleanAttributeQuotes:!0,removeEmptyAttributes:!0,removeHtmlComments:!0};if(null===e.canonicalUrl||!1===e.canonicalUrl)i.canonicalUrl=null;else if("function"==typeof e.canonicalUrl)try{i.canonicalUrl=e.canonicalUrl(t)}catch(e){re(r,e)}else i.canonicalUrl=n;if("function"==typeof e.hydrateOptions)try{const r=e.hydrateOptions(t);null!=r&&(r.prettyHtml&&"boolean"!=typeof r.removeAttributeQuotes&&(i.removeAttributeQuotes=!1),Object.assign(i,r))}catch(e){re(r,e)}return i},Yl=e=>{const t=Xe(e.dir,e.buildDir);return $e("/",t)+"/"},Ql=(e,t)=>{const r=Array.from(e.querySelectorAll("link[rel=modulepreload]")).map((e=>e.getAttribute("href"))),n=t.filter((e=>!r.includes(e))).map((t=>Zl(e,t))),i=e.head,a=i.querySelector("script");if(a)for(const e of n)i.insertBefore(e,a);else for(const e of n)i.appendChild(e)},Zl=(e,t)=>{const r=e.createElement("link");return r.setAttribute("rel","modulepreload"),r.setAttribute("href",t),r},eu=async e=>{const t={output:e.input,diagnostics:[],sourceMap:null};try{const r=!!e.pretty,n={extras:{safari10:!0}},i="es5"===e.target?"es5":"latest",a=Bl(n,i,r),o=await Ol(e.input,a);o.diagnostics.length>0?t.diagnostics.push(...o.diagnostics):(t.output=o.output,t.sourceMap=o.sourceMap)}catch(e){re(t.diagnostics,e)}return t},tu=(e,t)=>"sc-"+e+(t&&t!==x?"-"+t:""),ru=async(e,t)=>{const r=Array.from(e.querySelectorAll("script")).filter((e=>{if(e.hasAttribute("src")||e.hasAttribute(_u))return!1;const t=e.getAttribute("type");return"string"!=typeof t||"module"===t||"text/javascript"===t}));0!==r.length&&await Promise.all(r.map((async e=>{const r=e.innerHTML.trim();if(r.length>0){const n={input:r,sourceMap:!1,target:"latest"};"module"!==e.getAttribute("type")&&(n.target="es5");const i=await eu(n);0===i.diagnostics.length&&(e.innerHTML=i.output),t&&e.setAttribute(_u,"")}})))},nu=async(e,t,r,n,i)=>{const a=Array.from(r.querySelectorAll("style")).filter((e=>!e.hasAttribute(_u)));await Promise.all(a.map((async r=>{const a=r.innerHTML.trim();if(a.length>0){const o=await Tn({input:a,minify:!0,async resolveUrl(r){const i=new URL(r,n),a=await pu(e,t,i);return i.searchParams.append("v",a),i.pathname+i.search}});0===o.diagnostics.length&&(r.innerHTML=o.output),i&&r.setAttribute(_u,"")}})))},iu="\n(function(){\nvar s=document.querySelector('[data-stencil-namespace=\"__NAMESPACE__\"]');\ns&&((s['data-opts']=s['data-opts']||{}).exclude=__EXCLUDE__);\n})();\n".replace(/\n/g,"").trim(),au=e=>{const t=e.querySelectorAll('link[rel="modulepreload"]');for(let e=t.length-1;e>=0;e--){const r=t[e].getAttribute("href");r&&r.includes("/p-")&&t[e].remove()}},ou=e=>{const t=e.querySelectorAll("script[data-stencil]");for(let e=t.length-1;e>=0;e--)t[e].remove()},su=async(e,t,r,n,i,a,o)=>{const s=Array.from(n.querySelectorAll(a));for(const n of s)for(const a of o){const o=lu(a,n.getAttribute(a));for(const s of o){const o=new URL(s.src,i);if(o.hostname===i.hostname&&"querystring"===t.hashAssets&&!o.searchParams.has("v"))try{const t=await pu(e,r,o);if($(t)){o.searchParams.append("v",t);const e=uu(o,s.descriptor);n.setAttribute(a,e)}}catch(e){}}}},cu=async(e,t,r,n,i,a)=>{const o=a[0],s=a[1];if($(o)){if(s&&("img"===o||"source"===o))for(const i of["src","srcset"]){const a=lu(i,s[i]);for(const o of a){const a=new URL(o.src,n);if(a.hostname===n.hostname&&"querystring"===t.hashAssets&&!a.searchParams.has("v"))try{const t=await pu(e,r,a);if($(t)){a.searchParams.append("v",t);const e=uu(a,o.descriptor);s[i]=e}}catch(e){}}}for(let o=2,s=a.length;o<s;o++)Array.isArray(a[o])&&await cu(e,t,r,n,i,a[o])}},lu=(e,t)=>{const r=[];return $(t)&&("srcset"===e.toLowerCase()?t.split(",").map((e=>e.trim())).filter((e=>e.length>0)).forEach((e=>{const t=e.split(" ");t[0].length>0&&r.push({src:t[0],descriptor:t[1]})})):r.push({src:t})),r},uu=(e,t)=>{let r=e.pathname+e.search;return $(t)&&(r+=" "+t),r},du=new Map,pu=async(e,t,r)=>{let n=du.get(r.pathname);if(!n){const i=$e(t,r.pathname);n=e.generateFileHash(i,10),du.set(r.pathname,n)}return n},_u="data-m",fu={buildId:null,componentGraph:null,prerenderConfig:null,ensuredDirs:null,templateHtml:null,hashedFile:null},mu=e=>(e.buildId!==fu.buildId&&(fu.buildId=e.buildId,fu.componentGraph=null,fu.prerenderConfig=null,fu.ensuredDirs=new Set,fu.templateHtml=null,fu.hashedFile=new Set),fu),gu=(e,t,r)=>{if(null!=r){if(null==t.componentGraph){const n=JSON.parse(e.readFileSync(r));t.componentGraph=new Map(Object.entries(n))}return t.componentGraph}},hu=(e,t,r)=>{const n=[];for(;"string"==typeof(r=me(e.platformPath.dirname(r)))&&r.length>0&&!Y(r);)n.push(r);n.reverse();for(let r=0;r<n.length;r++){const i=n[r];t.ensuredDirs.has(i)||(t.ensuredDirs.add(i),e.createDirSync(i))}};function yu(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}class vu{constructor(e){this.bits=e instanceof vu?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class bu{constructor(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new bu(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;const i=new bu(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)}}function xu(){return"undefined"!=typeof window&&"function"==typeof window.btoa?e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t?e=>t.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const Eu=xu();class Su{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=yu(p[0]-c);c=p[0],p.length>1&&(_+=yu(p[1]-t)+yu(p[2]-r)+yu(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=yu(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Eu(this.toString())}}function Du(e,t){const r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let e=r.length;for(;e--;)r[e]=".."}return r.concat(n).join("/")}const Tu=Object.prototype.toString;function Cu(e){const t=e.split("\n"),r=[];for(let e=0,n=0;e<t.length;e++)r.push(n),n+=t[e].length+1;return e=>{let t=0,n=r.length;for(;t<n;){const i=t+n>>1;e<r[i]?n=i:t=i+1}const i=t-1;return{line:i,column:e-r[i]}}}class ku{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,r,n){if(t.length){const t=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&t.push(n),this.rawSegments.push(t)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null}addUneditedChunk(e,t,r,n,i){let a=t.start,o=!0;for(;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const Au="\n",Nu={insertLeft:!1,insertRight:!1,storeName:!1};class wu{constructor(e,t={}){const r=new bu(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new vu},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0}}),this.byStart[0]=r,this.byEnd[e.length]=r}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this}appendRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this}clone(){const e=new wu(this.original,{filename:this.filename});let t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new vu(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),r=new ku(e.hires),n=Cu(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext((e=>{const i=n(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,i,e.storeName?t.indexOf(e.original):-1):r.addUneditedChunk(0,e,this.original,i,this.sourcemapLocations),e.outro.length&&r.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?Du(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:t,mappings:r.raw}}generateMap(e){return new Su(this.generateDecodedMap(e))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=(e=>{const t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")})(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(e,t){const r=/^[^\r\n]/gm;var n;if(n=e,"[object Object]"===Tu.call(n)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(let t=e[0];t<e[1];t+=1)i[t]=!0}));let a=!1!==t.indentStart;const o=t=>a?`${e}${t}`:(a=!0,t);this.intro=this.intro.replace(r,o);let s=0,c=this.firstChunk;for(;c;){const t=c.end;if(c.edited)i[s]||(c.content=c.content.replace(r,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<t;){if(!i[s]){const t=this.original[s];"\n"===t?a=!0:"\r"!==t&&a&&(a=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(e))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return Nu.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Nu.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return Nu.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Nu.insertRight=!0),this.prependRight(e,t)}move(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);const n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;const c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this}overwrite(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Nu.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Nu.storeName=!0),n={storeName:!0});const i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){const r=this.original.slice(e,t);Object.defineProperty(this.storedNames,r,{writable:!0,value:!0,enumerable:!0})}const o=this.byStart[e],s=this.byEnd[t];if(o){let e=o;for(;e!==s;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}o.edit(r,i,a)}else{const n=new bu(e,t,"").edit(r,i);s.next=n,n.previous=s}return this}prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this}remove(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let r=this.byStart[e];for(;r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Au);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(e=r.outro.lastIndexOf(Au),-1!==e)return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(e=r.content.lastIndexOf(Au),-1!==e)return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(e=r.intro.lastIndexOf(Au),-1!==e)return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return e=this.intro.lastIndexOf(Au),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;let r="",n=this.firstChunk;for(;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const i=n;for(;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);const a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r}snip(e,t){const r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const r=Cu(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${r.line}:${r.column} – "${e.original}")`)}const r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.lastChunk;do{const e=r.end,n=r.trimEnd(t);if(r.end!==e&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),n)return!0;r=r.previous}while(r);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.firstChunk;do{const e=r.end,n=r.trimStart(t);if(r.end!==e&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),n)return!0;r=r.next}while(r);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}replace(e,t){function r(e,r){return"string"==typeof t?t.replace(/\$(\$|&|\d+)/g,((t,r)=>"$"===r?"$":"&"===r?e[0]:+r<e.length?e[+r]:`$${r}`)):t(...e,e.index,r,e.groups)}if("string"!=typeof e&&e.global)((e,t)=>{let r;const n=[];for(;r=e.exec(t);)n.push(r);return n})(e,this.original).forEach((e=>{null!=e.index&&this.overwrite(e.index,e.index+e[0].length,r(e,this.original))}));else{const t=this.original.match(e);t&&null!=t.index&&this.overwrite(t.index,t.index+t[0].length,r(t,this.original))}return this}}const Fu="-shadowcsshost",Pu=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Iu=new RegExp("(-shadowcsshost"+Pu,"gim"),Ou=new RegExp("(-shadowcsscontext"+Pu,"gim"),Mu=new RegExp("(-shadowcssslotted"+Pu,"gim"),Ru="-shadowcsshost-no-combinator",Lu=/-shadowcsshost-no-combinator([^\s]*)/,Bu=[/::shadow/g,/::content/g],ju=/-shadowcsshost/gim,Uu=/:host/gim,Vu=/::slotted/gim,Ku=/:host-context/gim,zu=/\/\*\s*[\s\S]*?\*\//g,Wu=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Ju=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Hu=/([{}])/g,$u=/(^.*?[^\\])??((:+)(.*)|$)/,Gu="%BLOCK%",qu=(e,t)=>{const r=Xu(e);let n=0;return r.escapedString.replace(Ju,((...e)=>{const i=e[2];let a="",o=e[4],s="";o&&o.startsWith("{%BLOCK%")&&(a=r.blocks[n++],o=o.substring(Gu.length+1),s="{");const c=t({selector:i,content:a});return`${e[1]}${c.selector}${e[3]}${s}${c.content}${o}`}))},Xu=e=>{const t=e.split(Hu),r=[],n=[];let i=0,a=[];for(let e=0;e<t.length;e++){const o=t[e];"}"===o&&i--,i>0?a.push(o):(a.length>0&&(n.push(a.join("")),r.push(Gu),a=[]),r.push(o)),"{"===o&&i++}return a.length>0&&(n.push(a.join("")),r.push(Gu)),{escapedString:r.join(""),blocks:n}},Yu=(e,t,r)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),n=[];for(let i=0;i<t.length;i++){const a=t[i].trim();if(!a)break;n.push(r(Ru,a,e[3]))}return n.join(",")}return Ru+e[3]})),Qu=(e,t,r)=>e+t.replace(Fu,"")+r,Zu=(e,t,r)=>t.indexOf(Fu)>-1?Qu(e,t,r):e+t+r+", "+t+" "+e+r,ed=(e,t)=>e.replace($u,((e,r="",n,i="",a="")=>r+t+i+a)),td=(e,t,r,n,i)=>qu(e,(e=>{let i=e.selector,a=e.content;return"@"!==e.selector[0]?i=((e,t,r,n)=>e.split(",").map((e=>n&&e.indexOf("."+n)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,r)=>{const n="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(Ru)>-1)i=((e,t,r)=>{if(ju.lastIndex=0,ju.test(e)){const t=`.${r}`;return e.replace(Lu,((e,r)=>ed(r,t))).replace(ju,t+" ")}return t+" "+e})(e,t,r);else{const t=e.replace(ju,"");t.length>0&&(i=ed(t,n))}return i},a=(e=>{const t=[];let r=0;return{content:(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const a=`__ph-${r}__`;return t.push(i),r++,n+a})),placeholders:t}})(e);let o,s="",c=0;const l=/( |>|\+|~(?!=))\s*/g;let u=!((e=a.content).indexOf(Ru)>-1);for(;null!==(o=l.exec(e));){const t=o[1],r=e.slice(c,o.index).trim();u=u||r.indexOf(Ru)>-1,s+=`${u?i(r):r} ${t} `,c=l.lastIndex}const d=e.substring(c);return u=u||d.indexOf(Ru)>-1,s+=u?i(d):d,p=a.placeholders,s.replace(/__ph-(\d+)__/g,((e,t)=>p[+t]));var p})(e,t,r).trim():e.trim())).join(", "))(e.selector,t,r,n):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(a=td(e.content,t,r,n)),{selector:i.replace(/\s{2,}/g," ").trim(),content:a}})),rd=(e,t,r)=>{const n=t+"-h",i=t+"-s",a=e.match(Wu)||[];e=e.replace(zu,"");const o=[];if(r){const t=e=>{const t=`/*!@___${o.length}___*/`,r=`/*!@${e.selector}*/`;return o.push({placeholder:t,comment:r}),e.selector=t+e.selector,e};e=qu(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=qu(e.content,t),e):e))}const s=((e,t,r,n,i)=>{const a=((e,t)=>{const r="."+t+" > ",n=[];return e=e.replace(Mu,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],a=r+t+i;let o="";for(let t=e[4]-1;t>=0;t--){const r=e[5][t];if("}"===r||","===r)break;o=r+o}const s=o+a,c=`${o.trimRight()}${a.trim()}`;if(s.trim()!==c.trim()){const e=`${c}, ${s}`;n.push({orgSelector:s,updatedSelector:e})}return a}return Ru+e[3]})),{selectors:n,cssText:e}})(e=(e=>Yu(e,Ou,Zu))(e=(e=>Yu(e,Iu,Qu))(e=e.replace(Ku,"-shadowcsscontext").replace(Uu,Fu).replace(Vu,"-shadowcssslotted"))),n);return e=(e=>Bu.reduce(((e,t)=>e.replace(t," ")),e))(e=a.cssText),t&&(e=td(e,t,r,n)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${r}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:a.selectors}})(e,t,n,i);return e=[s.cssText,...a].join("\n"),r&&o.forEach((({placeholder:t,comment:r})=>{e=e.replace(t,r)})),s.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e};function nd(e,t){if("string"!=typeof t)return;let r;for(;(r=t.indexOf(ad))>-1;){const n=(t=t.substring(r+ad.length)).indexOf(od);if(-1===n)break;id(e,t.substring(0,n)),t=t.substring(n+od.length)}}function id(e,t){const r=t.split(/\r?\n/).map((e=>{for(e=e.trim();e.startsWith("*");)e=e.substring(1).trim();return e}));for(t=r.join(" ").replace(/\t/g," ").trim();t.includes(" ");)t=t.replace(" "," ");t.split(sd).forEach((t=>{const r=t.trim();if(!r.startsWith("--"))return;const n=r.split(":"),i={name:n[0].trim(),docs:(n.shift()&&n.join(":")).trim(),annotation:"prop"};e.some((e=>e.name===i.name&&"prop"===e.annotation))||e.push(i)}))}const ad="/**",od="*/",sd="@prop",cd=(e,t)=>{let r=e.importeePath;if($(r)&&($(e.importerPath)&&He(e.importeePath)&&(r=Xe(We(e.importerPath),e.importeePath)),r=me(r),r.startsWith(".")||(r="./"+r),"queryparams"===t||void 0===t)){const t={};$(e.tag)&&(t.tag=e.tag),$(e.mode)&&e.mode!==x&&(t.mode=e.mode),$(e.encapsulation)&&"none"!==e.encapsulation&&(t.encapsulation=e.encapsulation);const n=Object.entries(t);n.length>0&&(r+="?"+new URLSearchParams(n).toString())}return r},ld=e=>{const t={importPath:e,basename:null,ext:null,data:null};if($(e)){const r=e.split("?");t.basename=ze(r[0].trim());const n=t.basename.toLowerCase().split(".");if(n.length>1&&(t.ext=n[n.length-1],"ts"===t.ext&&"d"===n[n.length-2]&&(t.ext="d.ts")),r.length>1){const e=r[1],n=new URLSearchParams(e),i=n.get("tag");null!=i&&(t.data={tag:i,encapsulation:n.get("encapsulation")||"none",mode:n.get("mode")||x})}else t.basename.endsWith(".css")&&(t.data={encapsulation:"none"})}return t},ud=e=>{let t=null,r="",n="";for(let i=0;i<e.length;i++)if(r=e[i],"\\"!==e[i-1]&&('"'!==r&&"'"!==r||(t===r?t=null:t||(t=r))),t||"/"!==r||"*"!==e[i+1])n+=r;else{let t=i+2;for(;t<e.length&&("*"!==e[t]||"/"!==e[t+1]);t++);i=t+1}return n},dd=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi,pd=async e=>{const t=_d(e),r=await Tn({autoprefixer:e.autoprefixer,input:t.styleText,filePath:e.file,minify:!0,sourceMap:e.sourceMap});return t.diagnostics.push(...r.diagnostics),ne(r.diagnostics)?t:(t.styleText=r.output,fd(e,t))},_d=e=>{const t={styleText:e.input,output:"",map:null,diagnostics:[],imports:[],defaultVarName:yd(e.file,e.mode),styleDocs:[]};e.docs&&nd(t.styleDocs,e.input);try{const r=new Set([t.defaultVarName]);if($(e.tag)&&("scoped"===e.encapsulation||"shadow"===e.encapsulation&&e.commentOriginalSelector)){const r=tu(e.tag,e.mode);t.styleText=rd(t.styleText,r,e.commentOriginalSelector)}md(r,t.styleText,e.file,e.mode).forEach((r=>{t.styleText=t.styleText.replace(r.srcImportText,"");const n=cd({importeePath:r.filePath,importerPath:e.file,tag:e.tag,encapsulation:e.encapsulation,mode:e.mode},e.styleImportData);t.imports.push({varName:r.varName,importPath:n})}))}catch(e){re(t.diagnostics,e)}return t},fd=(e,t)=>{const r=new wu("");return"cjs"===e.module?(t.imports.forEach((e=>{r.append(`const ${e.varName} = require('${e.importPath}');\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`module.exports = ${t.defaultVarName};`)):(t.imports.forEach((e=>{r.append(`import ${e.varName} from '${e.importPath}';\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`export default ${t.defaultVarName};`)),t.output=r.toString(),t},md=(e,t,r,n)=>{const i=[];if(!t.includes("@import"))return i;t=ud(t);const a=rt.dirname(r);let o;for(;o=dd.exec(t);){const t={srcImportText:o[0],url:o[4].replace(/[\"\'\)]/g,""),filePath:null,varName:null};hd(t.srcImportText)&&(gd(t.url)||(rt.isAbsolute(t.url)?t.filePath=me(t.url):t.filePath=me(rt.resolve(a,t.url)),t.varName=yd(t.filePath,n),e.has(t.varName)&&(t.varName+=e.size),e.add(t.varName),i.push(t)))}return i},gd=e=>e.startsWith("~"),hd=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),yd=(e,t)=>{let r=rt.basename(e);return t&&t!==x&&!r.includes(t)&&(r=t+"-"+r),Pe(r)},vd=e=>({transformCssToEsm:pd,prepareModule:jl,optimizeCss:Tn,prerenderWorker:t=>(async(e,t)=>{const r={diagnostics:[],anchorUrls:[],filePath:t.writeToFilePath};try{const n=mu(t),i=new URL(t.url,t.devServerHostUrl),a=new URL(t.baseUrl),o=gu(e,n,t.componentGraphPath),s=u(t.hydrateAppFilePath);null==n.templateHtml&&(n.templateHtml=e.readFileSync(t.templateId));const c=s.createWindowFromHtml(n.templateHtml,t.templateId),l=c.document;c.location.href=i.href,W(e.applyPrerenderGlobalPatch)&&e.applyPrerenderGlobalPatch({devServerHostUrl:t.devServerHostUrl,window:c}),null==n.prerenderConfig&&(n.prerenderConfig=ql(r.diagnostics,t.prerenderConfigPath));const d=n.prerenderConfig,p=Xl(d,i,r.diagnostics);if((t.staticSite||p.staticDocument)&&(p.addModulePreloads=!1,p.clientHydrateAnnotations=!1),"string"!=typeof p.buildId&&(p.buildId=t.buildId),"function"==typeof d.beforeHydrate)try{const e=d.beforeHydrate(l,i);q(e)&&await e}catch(e){re(r.diagnostics,e)}const _=await s.hydrateDocument(l,p);if(r.diagnostics.push(..._.diagnostics),"function"==typeof d.filePath)try{const e=d.filePath(i,r.filePath);"string"==typeof e&&(r.filePath=e)}catch(e){re(r.diagnostics,e)}p.staticDocument?(ou(l),au(l)):(Array.isArray(p.staticComponents)&&((e,t,r)=>{const n=t.staticComponents.filter((e=>r.components.some((t=>t.tag===e))));if(n.length>0){const t=e.querySelector("script[data-stencil-namespace]");if(t){const r=t.getAttribute("data-stencil-namespace");let i=iu.replace("__NAMESPACE__",r);i=i.replace("__EXCLUDE__",JSON.stringify(n));const a=e.createElement("script");a.innerHTML=i,a.setAttribute(_u,""),t.parentNode.insertBefore(a,t.nextSibling)}}})(l,p,_),p.addModulePreloads?t.isDebug||((e,t,r,n)=>{if(!n)return!1;const i=t.staticComponents||[],a=r.components.filter((e=>!i.includes(e.tag))),o=V(U(a.map((e=>tu(e.tag,e.mode))).map((e=>n.get(e)||[]))));Ql(e,o)})(l,p,_,o):au(l));const f=[];if(p.minifyStyleElements&&!t.isDebug&&f.push(nu(e,t.appDir,l,i,!1)),p.minifyScriptElements&&!t.isDebug&&f.push(ru(l,!1)),p.hashAssets&&!t.isDebug)try{f.push((async(e,t,r,n,i,a,o)=>{const s=Array.from(a.querySelectorAll("link[rel=stylesheet][href]"));for(const n of s){const a=n.getAttribute("href");if($(a)&&a.length>0){const n=new URL(a,o);if(o.host===n.host)try{const r=$e(i,n.pathname);if(t.hashedFile.has(r))continue;t.hashedFile.add(r);let a=await e.readFile(r);$(a)&&a.length>0&&(a=await Sn({css:a,async resolveUrl(t){const r=new URL(t,n),a=await pu(e,i,r);return r.searchParams.append("v",a),r.pathname+r.search}}),e.writeFileSync(r,a))}catch(e){re(r,e)}}}await su(e,n,i,a,o,'link[rel="stylesheet"]',["href"]),await su(e,n,i,a,o,'link[rel="prefetch"]',["href"]),await su(e,n,i,a,o,'link[rel="preload"]',["href"]),await su(e,n,i,a,o,'link[rel="modulepreload"]',["href"]),await su(e,n,i,a,o,'link[rel="icon"]',["href"]),await su(e,n,i,a,o,'link[rel="apple-touch-icon"]',["href"]),await su(e,n,i,a,o,'link[rel="manifest"]',["href"]),await su(e,n,i,a,o,"script",["src"]),await su(e,n,i,a,o,"img",["src","srcset"]),await su(e,n,i,a,o,"picture > source",["srcset"]);const c=Array.from(a.querySelectorAll('script[data-stencil-static="page.state"][type="application/json"]'));c.length>0&&await Promise.all(c.map((async t=>{const r=JSON.parse(t.textContent);if(r&&Array.isArray(r.ast)){for(const a of r.ast)Array.isArray(a)&&await cu(e,n,i,o,t,a);t.textContent=JSON.stringify(r)}})))})(e,n,r.diagnostics,p,t.appDir,l,i))}catch(e){re(r.diagnostics,e)}if(f.length>0&&await Promise.all(f),!1!==d.crawlUrls&&(r.anchorUrls=Ul(d,r.diagnostics,a,i,_.anchors)),"function"==typeof d.afterHydrate)try{const e=d.afterHydrate(l,i,r);q(e)&&await e}catch(e){re(r.diagnostics,e)}if("number"==typeof _.httpStatus&&_.httpStatus>=400){try{c.close()}catch(e){}return r}const m=s.serializeDocumentToString(l,p);hu(e,n,r.filePath);const g=e.writeFile(r.filePath,m);if(Array.isArray(_.staticData)&&_.staticData.length>0){const t=We(r.filePath);await Promise.all(_.staticData.map((async r=>{if("application/json"===r.type){const n={[r.id]:JSON.parse(r.content),components:_.components.map((e=>e.tag))},i=`${r.id}.json`,a=$e(t,i);await e.writeFile(a,JSON.stringify(n))}else{const n=`${r.id}.txt`,i=$e(t,n);await e.writeFile(i,r.content)}})))}await g;try{c.close()}catch(e){}}catch(e){re(r.diagnostics,e)}return r})(e,t)}),bd=e=>{const t=vd(e);return e=>{const r=e.args[0],n=e.args.slice(1),i=t[r];if("function"==typeof i)return i(...n)}};class xd{constructor(){this.version=2,this.activeBuildId=-1,this.activeFilesAdded=[],this.activeFilesDeleted=[],this.activeFilesUpdated=[],this.activeDirsAdded=[],this.activeDirsDeleted=[],this.addWatchDir=B,this.addWatchFile=B,this.cssModuleImports=new Map,this.changedFiles=new Set,this.changedModules=new Set,this.collections=[],this.compilerOptions=null,this.events=pt(),this.hasSuccessfulBuild=!1,this.isActivelyBuilding=!1,this.lastBuildResults=null,this.moduleMap=new Map,this.nodeMap=new WeakMap,this.resolvedCollections=new Set,this.rollupCache=new Map,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.styleModeNames=new Set,this.worker=null}reset(){this.cache.clear(),this.cssModuleImports.clear(),this.cachedGlobalStyle=null,this.collections.length=0,this.compilerOptions=null,this.hasSuccessfulBuild=!1,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.moduleMap.clear(),this.resolvedCollections.clear(),null!=this.fs&&this.fs.clearCache()}}const Ed=(e,t,r,n=!0)=>{let i=Xe(We(e),We(t));return n&&(""===i?i=".":"."!==i[0]&&(i="./"+i)),me(`${i}/${ze(t,r)}`)},Sd=e=>$e(e.typesDir,cp),Dd=e=>e.type===Hd,Td=e=>e.type===$d,Cd=e=>e.type===Gd,kd=e=>e.type===qd,Ad=e=>e.type===Wd,Nd=e=>e.type===Qd,wd=e=>e.type===zd,Fd=e=>e.type===Zd,Pd=e=>e.type===ep,Id=e=>e.type===Yd,Od=e=>e.type===Jd,Md=e=>e.type===np||e.type===rp||e.type===tp||e.type===ip,Rd=e=>e.type===np,Ld=e=>e.type===rp,Bd=e=>e.type===tp,jd=e=>e.type===ip,Ud=e=>e.type===op,Vd=e=>e.type===ap,Kd=e=>e.type===Xd,zd="angular",Wd="copy",Jd="custom",Hd="dist",$d="dist-collection",Gd="dist-custom-elements",qd="dist-custom-elements-bundle",Xd="dist-types",Yd="dist-hydrate-script",Qd="dist-lazy",Zd="dist-lazy-loader",ep="dist-global-styles",tp="docs-custom",rp="docs-json",np="docs-readme",ip="docs-vscode",ap="stats",op="www",sp=[op,Hd,$d,Gd,qd,Qd,Yd,rp,np,ip,tp,zd,Wd,Jd,ap],cp="components.d.ts",lp=e=>({experimentalDecorators:!0,declaration:e.outputTargets.some(Kd),module:p.ModuleKind.ESNext,moduleResolution:p.ModuleResolutionKind.NodeJs,noEmitOnError:!1,outDir:e.cacheDir||e.sys.tmpDirSync(),sourceMap:e.sourceMap,inlineSources:e.sourceMap}),up="{visibility:hidden}.hydrated{visibility:inherit}",dp="http://www.w3.org/1999/xlink",pp={get(e,t){return t in e?e[t]:"symbol"==typeof t||isNaN(t)?void 0:e.__items[t]}},_p=e=>new Proxy(new fp(e),pp);class fp{constructor(e=!1){this.caseInsensitive=e,this.__items=[]}get length(){return this.__items.length}item(e){return this.__items[e]||null}setNamedItem(e){e.namespaceURI=null,this.setNamedItemNS(e)}setNamedItemNS(e){null!=e&&null!=e.value&&(e.value=String(e.value));const t=this.__items.find((t=>t.name===e.name&&t.namespaceURI===e.namespaceURI));null!=t?t.value=e.value:this.__items.push(e)}getNamedItem(e){return this.caseInsensitive&&(e=e.toLowerCase()),this.getNamedItemNS(null,e)}getNamedItemNS(e,t){return e=mp(e),this.__items.find((r=>r.name===t&&mp(r.namespaceURI)===e))||null}removeNamedItem(e){this.removeNamedItemNS(e)}removeNamedItemNS(e){for(let t=0,r=this.__items.length;t<r;t++)if(this.__items[t].name===e.name&&this.__items[t].namespaceURI===e.namespaceURI){this.__items.splice(t,1);break}}[Symbol.iterator](){let e=0;return{next:()=>({done:e===this.length,value:this.item(e++)})}}get[Symbol.toStringTag](){return"MockAttributeMap"}}function mp(e){return e===dp?null:e}function gp(e,t=!1){const r=new fp(e.caseInsensitive);if(null!=e){const n=e.length;if(t&&n>1){const t=[];for(let r=0;r<n;r++){const n=e.item(r),i=new yp(n.name,n.value,n.namespaceURI);t.push(i)}t.sort(hp).forEach((e=>{r.setNamedItemNS(e)}))}else for(let t=0;t<n;t++){const n=e.item(t),i=new yp(n.name,n.value,n.namespaceURI);r.setNamedItemNS(i)}}return r}function hp(e,t){return e.name<t.name?-1:e.name>t.name?1:0}class yp{constructor(e,t,r=null){this._name=e,this._value=String(t),this._namespaceURI=r}get name(){return this._name}set name(e){this._name=e}get value(){return this._value}set value(e){this._value=String(e)}get nodeName(){return this._name}set nodeName(e){this._name=e}get nodeValue(){return this._value}set nodeValue(e){this._value=String(e)}get namespaceURI(){return this._namespaceURI}set namespaceURI(e){this._namespaceURI=e}}class vp{constructor(e){this.elm=e}add(...e){const t=xp(this.elm);let r=!1;e.forEach((e=>{bp(e=String(e)),!1===t.includes(e)&&(t.push(e),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.join(" "))}remove(...e){const t=xp(this.elm);let r=!1;e.forEach((e=>{bp(e=String(e));const n=t.indexOf(e);n>-1&&(t.splice(n,1),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.filter((e=>e.length>0)).join(" "))}contains(e){return e=String(e),xp(this.elm).includes(e)}toggle(e){e=String(e),!0===this.contains(e)?this.remove(e):this.add(e)}get length(){return xp(this.elm).length}item(e){return xp(this.elm)[e]}toString(){return xp(this.elm).join(" ")}}function bp(e){if(""===e)throw new Error("The token provided must not be empty.");if(/\s/.test(e))throw new Error(`The token provided ('${e}') contains HTML space characters, which are not valid in tokens.`)}function xp(e){const t=e.getAttribute("class");return"string"==typeof t&&t.length>0?t.trim().split(" ").filter((e=>e.length>0)):[]}class Ep{constructor(){this._styles=new Map}setProperty(e,t){e=Tp(e),null==t||""===t?this._styles.delete(e):this._styles.set(e,String(t))}getPropertyValue(e){return e=Tp(e),String(this._styles.get(e)||"")}removeProperty(e){e=Tp(e),this._styles.delete(e)}get length(){return this._styles.size}get cssText(){const e=[];return this._styles.forEach(((t,r)=>{e.push(`${r}: ${t};`)})),e.join(" ").trim()}set cssText(e){if(null==e||""===e)return this._styles.clear(),void 0;e.split(";").forEach((e=>{if((e=e.trim()).length>0){const t=e.split(":");if(t.length>1){const e=t[0].trim(),r=t.slice(1).join(":").trim();""!==e&&""!==r&&this._styles.set(Tp(e),r)}}}))}}function Sp(){return new Proxy(new Ep,Dp)}const Dp={get(e,t){return t in e?e[t]:((r=t).length>1&&!0===r.includes("-")&&(r=(r=r.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")).slice(0,1).toLowerCase()+r.slice(1)),t=r,e.getPropertyValue(t));var r},set(e,t,r){return t in e?e[t]=r:e.setProperty(t,r),!0}};function Tp(e){return e.length>1&&!1===e.includes("-")&&!0===/[A-Z]/.test(e)&&(e=e.replace(/([A-Z])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase()),e}class Cp{constructor(e){this.win=e}define(e,t,r){if(e.toLowerCase()!==e)throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(null==this.__registry&&(this.__registry=new Map),this.__registry.set(e,{cstr:t,options:r}),null!=this.__whenDefined){const t=this.__whenDefined.get(e);null!=t&&(t.forEach((e=>{e()})),t.length=0,this.__whenDefined.delete(e))}const n=this.win.document;null!=n&&n.querySelectorAll(e).forEach((t=>{if(!1===Np.has(t)){Mp.add(n);const r=kp(this,n,e);for(let e=0;e<t.childNodes.length;e++){const n=t.childNodes[e];n.remove(),r.appendChild(n)}Mp.delete(n),Ap.has(t)&&Ap.set(t,r)}Fp(t)}))}get(e){if(null!=this.__registry){const t=this.__registry.get(e.toLowerCase());if(null!=t)return t.cstr}}upgrade(e){}clear(){null!=this.__registry&&this.__registry.clear(),null!=this.__whenDefined&&this.__whenDefined.clear()}whenDefined(e){return e=e.toLowerCase(),null!=this.__registry&&!0===this.__registry.has(e)?Promise.resolve(this.__registry.get(e).cstr):new Promise((t=>{null==this.__whenDefined&&(this.__whenDefined=new Map);let r=this.__whenDefined.get(e);null==r&&(r=[],this.__whenDefined.set(e,r)),r.push(t)}))}}function kp(e,t,r){const n=e.get(r);if(null!=n){const e=new n(t);return e.nodeName=r.toUpperCase(),Np.add(e),e}const i=new Proxy({},{get(e,t){const r=Ap.get(i);return null!=r?r[t]:e[t]},set(e,t,r){const n=Ap.get(i);return null!=n?n[t]=r:e[t]=r,!0},has(e,t){return t in Ap.get(i)||t in e}}),a=new x_(t,r);return Ap.set(i,a),i}const Ap=new WeakMap,Np=new WeakSet;function wp(e,t){if(t.ownerDocument=e,1===t.nodeType){if(null!=e&&t.nodeName.includes("-")){null!=e.defaultView&&"function"==typeof t.connectedCallback&&t.isConnected&&Fp(t);const r=t.shadowRoot;null!=r&&r.childNodes.forEach((t=>{wp(e,t)}))}t.childNodes.forEach((t=>{wp(e,t)}))}else t.childNodes.forEach((t=>{t.ownerDocument=e}))}function Fp(e){if("function"==typeof e.connectedCallback&&!1===Mp.has(e.ownerDocument))try{e.connectedCallback()}catch(e){console.error(e)}}function Pp(e){if(1===e.nodeType){if(!0===e.nodeName.includes("-")&&"function"==typeof e.disconnectedCallback&&!1===Mp.has(e.ownerDocument))try{e.disconnectedCallback()}catch(e){console.error(e)}e.childNodes.forEach(Pp)}}function Ip(e,t,r,n){t=t.toLowerCase();const i=e.constructor.observedAttributes;if(!0===Array.isArray(i)&&!0===i.some((e=>e.toLowerCase()===t)))try{e.attributeChangedCallback(t,r,n)}catch(e){console.error(e)}}function Op(e){return!0===e.nodeName.includes("-")&&"function"==typeof e.attributeChangedCallback}const Mp=new Set;class Rp{constructor(e,t){if(this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.composed=!1,this.currentTarget=null,this.defaultPrevented=!1,this.srcElement=null,this.target=null,"string"!=typeof e)throw new Error("Event type required");this.type=e,this.timeStamp=Date.now(),null!=t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.cancelBubble=!0}composedPath(){const e=[];let t=this.target;for(;t;){if(e.push(t),!t.parentElement&&"#document"===t.nodeName){e.push(t.defaultView);break}t=t.parentElement}return e}}class Lp extends Rp{constructor(e,t){super(e),this.detail=null,this.view=null,null!=t&&Object.assign(this,t)}}class Bp extends Lp{constructor(e,t){super(e),this.relatedTarget=null,null!=t&&Object.assign(this,t)}}class jp{constructor(e,t){this.type=e,this.handler=t}}function Up(e,t,r){const n=e;null==n.__listeners&&(n.__listeners=[]),n.__listeners.push(new jp(t,r))}function Vp(e,t,r){const n=e;if(null!=n&&!0===Array.isArray(n.__listeners)){const e=n.__listeners.find((e=>e.type===t&&e.handler===r));if(null!=e){const t=n.__listeners.indexOf(e);n.__listeners.splice(t,1)}}}function Kp(e){null!=e&&null!=e.__listeners&&(e.__listeners=null)}function zp(e,t){if(null==e||!0===t.cancelBubble)return;const r=e;t.currentTarget=e,!0===Array.isArray(r.__listeners)&&r.__listeners.filter((e=>e.type===t.type)).forEach((e=>{try{e.handler.call(r,t)}catch(e){console.error(e)}})),!1!==t.bubbles&&("#document"===e.nodeName?zp(e.defaultView,t):zp(e.parentElement,t))}function Wp(e,t){return t.target=e,zp(e,t),!0}const Jp=function(e){const t=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];var r="�",n={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},i=e=>e>=55296&&e<=57343,a=e=>32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159,o=e=>e>=64976&&e<=65007||t.indexOf(e)>-1,s="unexpected-null-character",c="invalid-first-character-of-tag-name",l="missing-semicolon-after-character-reference",u="eof-before-tag-name",d="eof-in-tag",p="missing-whitespace-after-doctype-public-keyword",_="missing-whitespace-between-doctype-public-and-system-identifiers",f="missing-whitespace-after-doctype-system-keyword",m="missing-quote-before-doctype-public-identifier",g="missing-quote-before-doctype-system-identifier",h="missing-doctype-public-identifier",y="missing-doctype-system-identifier",v="abrupt-doctype-public-identifier",b="abrupt-doctype-system-identifier",x="eof-in-script-html-comment-like-text",E="eof-in-doctype",S="abrupt-closing-of-empty-comment",D="eof-in-comment",T="absence-of-digits-in-numeric-character-reference",C="end-tag-without-matching-open-element",k="misplaced-start-tag-for-head-element";const A=n;var N=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const w=n,F=[45,45],P=[68,79,67,84,89,80,69],I=[91,67,68,65,84,65,91],O=[115,99,114,105,112,116],M=[80,85,66,76,73,67],R=[83,89,83,84,69,77],L={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},B="DATA_STATE",j="RCDATA_STATE",U="RAWTEXT_STATE",V="SCRIPT_DATA_STATE",K="PLAINTEXT_STATE",z="TAG_OPEN_STATE",W="END_TAG_OPEN_STATE",J="TAG_NAME_STATE",H="RCDATA_LESS_THAN_SIGN_STATE",$="RCDATA_END_TAG_OPEN_STATE",G="RCDATA_END_TAG_NAME_STATE",q="RAWTEXT_LESS_THAN_SIGN_STATE",X="RAWTEXT_END_TAG_OPEN_STATE",Y="RAWTEXT_END_TAG_NAME_STATE",Q="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Z="SCRIPT_DATA_END_TAG_OPEN_STATE",ee="SCRIPT_DATA_END_TAG_NAME_STATE",te="SCRIPT_DATA_ESCAPE_START_STATE",re="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ne="SCRIPT_DATA_ESCAPED_STATE",ie="SCRIPT_DATA_ESCAPED_DASH_STATE",ae="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",oe="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",se="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",ce="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",le="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ue="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",de="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",pe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",_e="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",fe="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",me="BEFORE_ATTRIBUTE_NAME_STATE",ge="ATTRIBUTE_NAME_STATE",he="AFTER_ATTRIBUTE_NAME_STATE",ye="BEFORE_ATTRIBUTE_VALUE_STATE",ve="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",be="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",xe="ATTRIBUTE_VALUE_UNQUOTED_STATE",Ee="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Se="SELF_CLOSING_START_TAG_STATE",De="BOGUS_COMMENT_STATE",Te="MARKUP_DECLARATION_OPEN_STATE",Ce="COMMENT_START_STATE",ke="COMMENT_START_DASH_STATE",Ae="COMMENT_STATE",Ne="COMMENT_LESS_THAN_SIGN_STATE",we="COMMENT_LESS_THAN_SIGN_BANG_STATE",Fe="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Pe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Ie="COMMENT_END_DASH_STATE",Oe="COMMENT_END_STATE",Me="COMMENT_END_BANG_STATE",Re="DOCTYPE_STATE",Le="BEFORE_DOCTYPE_NAME_STATE",Be="DOCTYPE_NAME_STATE",je="AFTER_DOCTYPE_NAME_STATE",Ue="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ve="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ke="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",ze="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",We="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Je="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",He="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",$e="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ge="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",qe="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Xe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ye="BOGUS_DOCTYPE_STATE",Qe="CDATA_SECTION_STATE",Ze="CDATA_SECTION_BRACKET_STATE",et="CDATA_SECTION_END_STATE",tt="CHARACTER_REFERENCE_STATE",rt="NAMED_CHARACTER_REFERENCE_STATE",nt="AMBIGUOS_AMPERSAND_STATE",it="NUMERIC_CHARACTER_REFERENCE_STATE",at="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ot="DECIMAL_CHARACTER_REFERENCE_START_STATE",st="HEXADEMICAL_CHARACTER_REFERENCE_STATE",ct="DECIMAL_CHARACTER_REFERENCE_STATE",lt="NUMERIC_CHARACTER_REFERENCE_END_STATE";function ut(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function dt(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function pt(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function _t(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function ft(e){return _t(e)||pt(e)}function mt(e){return ft(e)||dt(e)}function gt(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_F}function ht(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_F}function yt(e){return e+32}function vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function bt(e){return String.fromCharCode(yt(e))}function xt(e,t){const r=N[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,a=N[e];if(a<t)n=e+1;else{if(!(a>t))return N[e+r];i=e-1}}return-1}class Et{constructor(){this.preprocessor=new class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if((e=>e>=56320&&e<=57343)(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err("surrogate-in-input-stream"),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===A.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===A.CARRIAGE_RETURN?(this.skipNextNewLine=!0,A.LINE_FEED):(this.skipNextNewLine=!1,i(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===A.LINE_FEED||e===A.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){a(e)?this._err("control-character-in-input-stream"):o(e)&&this._err("noncharacter-in-input-stream")}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},this.tokenQueue=[],this.allowCDATA=!1,this.state=B,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Et.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const a=e.length;let o,s=0,c=t;for(;s<a;s++){if(s>0&&(c=this._consume(),n++),c===w.EOF){i=!1;break}if(o=e[s],c!==o&&(r||c!==yt(o))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==O.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==O[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Et.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Et.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Et.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Et.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Et.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Et.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err("duplicate-attribute"),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Et.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Et.END_TAG_TOKEN&&(e.attrs.length>0&&this._err("end-tag-with-attributes"),e.selfClosing&&this._err("end-tag-with-trailing-solidus")),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Et.CHARACTER_TOKEN;ut(e)?t=Et.WHITESPACE_CHARACTER_TOKEN:e===w.NULL&&(t=Et.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,vt(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Et.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=xt(0,e);for(this.tempBuff.push(e);n>-1;){const e=N[n],i=e<7;i&&1&e&&(t=2&e?[N[++n],N[++n]]:[N[++n]],r=0);const a=this._consume();if(this.tempBuff.push(a),r++,a===w.EOF)break;n=i?4&e?xt(n,a):-1:a===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===ve||this.returnState===be||this.returnState===xe}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===w.EQUALS_SIGN||mt(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=vt(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[B](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=z:e===w.AMPERSAND?(this.returnState=B,this.state=tt):e===w.NULL?(this._err(s),this._emitCodePoint(e)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[j](e){this.preprocessor.dropParsedChunk(),e===w.AMPERSAND?(this.returnState=j,this.state=tt):e===w.LESS_THAN_SIGN?this.state=H:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[U](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=q:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[V](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=Q:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[K](e){this.preprocessor.dropParsedChunk(),e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[z](e){e===w.EXCLAMATION_MARK?this.state=Te:e===w.SOLIDUS?this.state=W:ft(e)?(this._createStartTagToken(),this._reconsumeInState(J)):e===w.QUESTION_MARK?(this._err("unexpected-question-mark-instead-of-tag-name"),this._createCommentToken(),this._reconsumeInState(De)):e===w.EOF?(this._err(u),this._emitChars("<"),this._emitEOFToken()):(this._err(c),this._emitChars("<"),this._reconsumeInState(B))}[W](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(J)):e===w.GREATER_THAN_SIGN?(this._err("missing-end-tag-name"),this.state=B):e===w.EOF?(this._err(u),this._emitChars("</"),this._emitEOFToken()):(this._err(c),this._createCommentToken(),this._reconsumeInState(De))}[J](e){ut(e)?this.state=me:e===w.SOLIDUS?this.state=Se:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):pt(e)?this.currentToken.tagName+=bt(e):e===w.NULL?(this._err(s),this.currentToken.tagName+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentToken.tagName+=vt(e)}[H](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=$):(this._emitChars("<"),this._reconsumeInState(j))}[$](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(G)):(this._emitChars("</"),this._reconsumeInState(j))}[G](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this.state=B,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(j)}}[q](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=X):(this._emitChars("<"),this._reconsumeInState(U))}[X](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(Y)):(this._emitChars("</"),this._reconsumeInState(U))}[Y](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(U)}}[Q](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=Z):e===w.EXCLAMATION_MARK?(this.state=te,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(V))}[Z](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(ee)):(this._emitChars("</"),this._reconsumeInState(V))}[ee](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(V)}}[te](e){e===w.HYPHEN_MINUS?(this.state=re,this._emitChars("-")):this._reconsumeInState(V)}[re](e){e===w.HYPHEN_MINUS?(this.state=ae,this._emitChars("-")):this._reconsumeInState(V)}[ne](e){e===w.HYPHEN_MINUS?(this.state=ie,this._emitChars("-")):e===w.LESS_THAN_SIGN?this.state=oe:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):this._emitCodePoint(e)}[ie](e){e===w.HYPHEN_MINUS?(this.state=ae,this._emitChars("-")):e===w.LESS_THAN_SIGN?this.state=oe:e===w.NULL?(this._err(s),this.state=ne,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ne,this._emitCodePoint(e))}[ae](e){e===w.HYPHEN_MINUS?this._emitChars("-"):e===w.LESS_THAN_SIGN?this.state=oe:e===w.GREATER_THAN_SIGN?(this.state=V,this._emitChars(">")):e===w.NULL?(this._err(s),this.state=ne,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ne,this._emitCodePoint(e))}[oe](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=se):ft(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(le)):(this._emitChars("<"),this._reconsumeInState(ne))}[se](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(ce)):(this._emitChars("</"),this._reconsumeInState(ne))}[ce](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ne)}}[le](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ue:ne,this._emitCodePoint(e)):pt(e)?(this.tempBuff.push(yt(e)),this._emitCodePoint(e)):_t(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(ne)}[ue](e){e===w.HYPHEN_MINUS?(this.state=de,this._emitChars("-")):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):this._emitCodePoint(e)}[de](e){e===w.HYPHEN_MINUS?(this.state=pe,this._emitChars("-")):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.NULL?(this._err(s),this.state=ue,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ue,this._emitCodePoint(e))}[pe](e){e===w.HYPHEN_MINUS?this._emitChars("-"):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.GREATER_THAN_SIGN?(this.state=V,this._emitChars(">")):e===w.NULL?(this._err(s),this.state=ue,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ue,this._emitCodePoint(e))}[_e](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=fe,this._emitChars("/")):this._reconsumeInState(ue)}[fe](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ne:ue,this._emitCodePoint(e)):pt(e)?(this.tempBuff.push(yt(e)),this._emitCodePoint(e)):_t(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(ue)}[me](e){ut(e)||(e===w.SOLIDUS||e===w.GREATER_THAN_SIGN||e===w.EOF?this._reconsumeInState(he):e===w.EQUALS_SIGN?(this._err("unexpected-equals-sign-before-attribute-name"),this._createAttr("="),this.state=ge):(this._createAttr(""),this._reconsumeInState(ge)))}[ge](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN||e===w.EOF?(this._leaveAttrName(he),this._unconsume()):e===w.EQUALS_SIGN?this._leaveAttrName(ye):pt(e)?this.currentAttr.name+=bt(e):e===w.QUOTATION_MARK||e===w.APOSTROPHE||e===w.LESS_THAN_SIGN?(this._err("unexpected-character-in-attribute-name"),this.currentAttr.name+=vt(e)):e===w.NULL?(this._err(s),this.currentAttr.name+=r):this.currentAttr.name+=vt(e)}[he](e){ut(e)||(e===w.SOLIDUS?this.state=Se:e===w.EQUALS_SIGN?this.state=ye:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ge)))}[ye](e){ut(e)||(e===w.QUOTATION_MARK?this.state=ve:e===w.APOSTROPHE?this.state=be:e===w.GREATER_THAN_SIGN?(this._err("missing-attribute-value"),this.state=B,this._emitCurrentToken()):this._reconsumeInState(xe))}[ve](e){e===w.QUOTATION_MARK?this.state=Ee:e===w.AMPERSAND?(this.returnState=ve,this.state=tt):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[be](e){e===w.APOSTROPHE?this.state=Ee:e===w.AMPERSAND?(this.returnState=be,this.state=tt):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[xe](e){ut(e)?this._leaveAttrValue(me):e===w.AMPERSAND?(this.returnState=xe,this.state=tt):e===w.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.QUOTATION_MARK||e===w.APOSTROPHE||e===w.LESS_THAN_SIGN||e===w.EQUALS_SIGN||e===w.GRAVE_ACCENT?(this._err("unexpected-character-in-unquoted-attribute-value"),this.currentAttr.value+=vt(e)):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[Ee](e){ut(e)?this._leaveAttrValue(me):e===w.SOLIDUS?this._leaveAttrValue(Se):e===w.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._err("missing-whitespace-between-attributes"),this._reconsumeInState(me))}[Se](e){e===w.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._err("unexpected-solidus-in-tag"),this._reconsumeInState(me))}[De](e){e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===w.NULL?(this._err(s),this.currentToken.data+=r):this.currentToken.data+=vt(e)}[Te](e){this._consumeSequenceIfMatch(F,e,!0)?(this._createCommentToken(),this.state=Ce):this._consumeSequenceIfMatch(P,e,!1)?this.state=Re:this._consumeSequenceIfMatch(I,e,!0)?this.allowCDATA?this.state=Qe:(this._err("cdata-in-html-content"),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=De):this._ensureHibernation()||(this._err("incorrectly-opened-comment"),this._createCommentToken(),this._reconsumeInState(De))}[Ce](e){e===w.HYPHEN_MINUS?this.state=ke:e===w.GREATER_THAN_SIGN?(this._err(S),this.state=B,this._emitCurrentToken()):this._reconsumeInState(Ae)}[ke](e){e===w.HYPHEN_MINUS?this.state=Oe:e===w.GREATER_THAN_SIGN?(this._err(S),this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ae))}[Ae](e){e===w.HYPHEN_MINUS?this.state=Ie:e===w.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Ne):e===w.NULL?(this._err(s),this.currentToken.data+=r):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=vt(e)}[Ne](e){e===w.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=we):e===w.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ae)}[we](e){e===w.HYPHEN_MINUS?this.state=Fe:this._reconsumeInState(Ae)}[Fe](e){e===w.HYPHEN_MINUS?this.state=Pe:this._reconsumeInState(Ie)}[Pe](e){e!==w.GREATER_THAN_SIGN&&e!==w.EOF&&this._err("nested-comment"),this._reconsumeInState(Oe)}[Ie](e){e===w.HYPHEN_MINUS?this.state=Oe:e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ae))}[Oe](e){e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EXCLAMATION_MARK?this.state=Me:e===w.HYPHEN_MINUS?this.currentToken.data+="-":e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ae))}[Me](e){e===w.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Ie):e===w.GREATER_THAN_SIGN?(this._err("incorrectly-closed-comment"),this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ae))}[Re](e){ut(e)?this.state=Le:e===w.GREATER_THAN_SIGN?this._reconsumeInState(Le):e===w.EOF?(this._err(E),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("missing-whitespace-before-doctype-name"),this._reconsumeInState(Le))}[Le](e){ut(e)||(pt(e)?(this._createDoctypeToken(bt(e)),this.state=Be):e===w.NULL?(this._err(s),this._createDoctypeToken(r),this.state=Be):e===w.GREATER_THAN_SIGN?(this._err("missing-doctype-name"),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(vt(e)),this.state=Be))}[Be](e){ut(e)?this.state=je:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):pt(e)?this.currentToken.name+=bt(e):e===w.NULL?(this._err(s),this.currentToken.name+=r):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=vt(e)}[je](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(M,e,!1)?this.state=Ue:this._consumeSequenceIfMatch(R,e,!1)?this.state=He:this._ensureHibernation()||(this._err("invalid-character-sequence-after-doctype-name"),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Ue](e){ut(e)?this.state=Ve:e===w.QUOTATION_MARK?(this._err(p),this.currentToken.publicId="",this.state=Ke):e===w.APOSTROPHE?(this._err(p),this.currentToken.publicId="",this.state=ze):e===w.GREATER_THAN_SIGN?(this._err(h),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[Ve](e){ut(e)||(e===w.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Ke):e===w.APOSTROPHE?(this.currentToken.publicId="",this.state=ze):e===w.GREATER_THAN_SIGN?(this._err(h),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Ke](e){e===w.QUOTATION_MARK?this.state=We:e===w.NULL?(this._err(s),this.currentToken.publicId+=r):e===w.GREATER_THAN_SIGN?(this._err(v),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(e)}[ze](e){e===w.APOSTROPHE?this.state=We:e===w.NULL?(this._err(s),this.currentToken.publicId+=r):e===w.GREATER_THAN_SIGN?(this._err(v),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(e)}[We](e){ut(e)?this.state=Je:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.QUOTATION_MARK?(this._err(_),this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this._err(_),this.currentToken.systemId="",this.state=qe):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[Je](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this.currentToken.systemId="",this.state=qe):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[He](e){ut(e)?this.state=$e:e===w.QUOTATION_MARK?(this._err(f),this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this._err(f),this.currentToken.systemId="",this.state=qe):e===w.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[$e](e){ut(e)||(e===w.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this.currentToken.systemId="",this.state=qe):e===w.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Ge](e){e===w.QUOTATION_MARK?this.state=Xe:e===w.NULL?(this._err(s),this.currentToken.systemId+=r):e===w.GREATER_THAN_SIGN?(this._err(b),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(e)}[qe](e){e===w.APOSTROPHE?this.state=Xe:e===w.NULL?(this._err(s),this.currentToken.systemId+=r):e===w.GREATER_THAN_SIGN?(this._err(b),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(e)}[Xe](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("unexpected-character-after-doctype-system-identifier"),this._reconsumeInState(Ye)))}[Ye](e){e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.NULL?this._err(s):e===w.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Qe](e){e===w.RIGHT_SQUARE_BRACKET?this.state=Ze:e===w.EOF?(this._err("eof-in-cdata"),this._emitEOFToken()):this._emitCodePoint(e)}[Ze](e){e===w.RIGHT_SQUARE_BRACKET?this.state=et:(this._emitChars("]"),this._reconsumeInState(Qe))}[et](e){e===w.GREATER_THAN_SIGN?this.state=B:e===w.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Qe))}[tt](e){this.tempBuff=[w.AMPERSAND],e===w.NUMBER_SIGN?(this.tempBuff.push(e),this.state=it):mt(e)?this._reconsumeInState(rt):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[rt](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[w.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===w.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(l),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=nt}[nt](e){mt(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=vt(e):this._emitCodePoint(e):(e===w.SEMICOLON&&this._err("unknown-named-character-reference"),this._reconsumeInState(this.returnState))}[it](e){this.charRefCode=0,e===w.LATIN_SMALL_X||e===w.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=at):this._reconsumeInState(ot)}[at](e){(e=>dt(e)||gt(e)||ht(e))(e)?this._reconsumeInState(st):(this._err(T),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ot](e){dt(e)?this._reconsumeInState(ct):(this._err(T),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[st](e){gt(e)?this.charRefCode=16*this.charRefCode+e-55:ht(e)?this.charRefCode=16*this.charRefCode+e-87:dt(e)?this.charRefCode=16*this.charRefCode+e-48:e===w.SEMICOLON?this.state=lt:(this._err(l),this._reconsumeInState(lt))}[ct](e){dt(e)?this.charRefCode=10*this.charRefCode+e-48:e===w.SEMICOLON?this.state=lt:(this._err(l),this._reconsumeInState(lt))}[lt](){if(this.charRefCode===w.NULL)this._err("null-character-reference"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err("character-reference-outside-unicode-range"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(i(this.charRefCode))this._err("surrogate-character-reference"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(o(this.charRefCode))this._err("noncharacter-character-reference");else if(a(this.charRefCode)||this.charRefCode===w.CARRIAGE_RETURN){this._err("control-character-reference");const e=L[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Et.CHARACTER_TOKEN="CHARACTER_TOKEN",Et.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Et.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Et.START_TAG_TOKEN="START_TAG_TOKEN",Et.END_TAG_TOKEN="END_TAG_TOKEN",Et.COMMENT_TOKEN="COMMENT_TOKEN",Et.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Et.EOF_TOKEN="EOF_TOKEN",Et.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Et.MODE={DATA:B,RCDATA:j,RAWTEXT:U,SCRIPT_DATA:V,PLAINTEXT:K},Et.getTokenAttr=(e,t)=>{for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var St=Et;function Dt(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}var Tt=Dt(((e,t)=>{const r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const n=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[r.HTML]:{[n.ADDRESS]:!0,[n.APPLET]:!0,[n.AREA]:!0,[n.ARTICLE]:!0,[n.ASIDE]:!0,[n.BASE]:!0,[n.BASEFONT]:!0,[n.BGSOUND]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.BUTTON]:!0,[n.CAPTION]:!0,[n.CENTER]:!0,[n.COL]:!0,[n.COLGROUP]:!0,[n.DD]:!0,[n.DETAILS]:!0,[n.DIR]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EMBED]:!0,[n.FIELDSET]:!0,[n.FIGCAPTION]:!0,[n.FIGURE]:!0,[n.FOOTER]:!0,[n.FORM]:!0,[n.FRAME]:!0,[n.FRAMESET]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HEADER]:!0,[n.HGROUP]:!0,[n.HR]:!0,[n.HTML]:!0,[n.IFRAME]:!0,[n.IMG]:!0,[n.INPUT]:!0,[n.LI]:!0,[n.LINK]:!0,[n.LISTING]:!0,[n.MAIN]:!0,[n.MARQUEE]:!0,[n.MENU]:!0,[n.META]:!0,[n.NAV]:!0,[n.NOEMBED]:!0,[n.NOFRAMES]:!0,[n.NOSCRIPT]:!0,[n.OBJECT]:!0,[n.OL]:!0,[n.P]:!0,[n.PARAM]:!0,[n.PLAINTEXT]:!0,[n.PRE]:!0,[n.SCRIPT]:!0,[n.SECTION]:!0,[n.SELECT]:!0,[n.SOURCE]:!0,[n.STYLE]:!0,[n.SUMMARY]:!0,[n.TABLE]:!0,[n.TBODY]:!0,[n.TD]:!0,[n.TEMPLATE]:!0,[n.TEXTAREA]:!0,[n.TFOOT]:!0,[n.TH]:!0,[n.THEAD]:!0,[n.TITLE]:!0,[n.TR]:!0,[n.TRACK]:!0,[n.UL]:!0,[n.WBR]:!0,[n.XMP]:!0},[r.MATHML]:{[n.MI]:!0,[n.MO]:!0,[n.MN]:!0,[n.MS]:!0,[n.MTEXT]:!0,[n.ANNOTATION_XML]:!0},[r.SVG]:{[n.TITLE]:!0,[n.FOREIGN_OBJECT]:!0,[n.DESC]:!0}}}));const Ct=Tt.TAG_NAMES,kt=Tt.NAMESPACES;function At(e){switch(e.length){case 1:return e===Ct.P;case 2:return e===Ct.RB||e===Ct.RP||e===Ct.RT||e===Ct.DD||e===Ct.DT||e===Ct.LI;case 3:return e===Ct.RTC;case 6:return e===Ct.OPTION;case 8:return e===Ct.OPTGROUP}return!1}function Nt(e){switch(e.length){case 1:return e===Ct.P;case 2:return e===Ct.RB||e===Ct.RP||e===Ct.RT||e===Ct.DD||e===Ct.DT||e===Ct.LI||e===Ct.TD||e===Ct.TH||e===Ct.TR;case 3:return e===Ct.RTC;case 5:return e===Ct.TBODY||e===Ct.TFOOT||e===Ct.THEAD;case 6:return e===Ct.OPTION;case 7:return e===Ct.CAPTION;case 8:return e===Ct.OPTGROUP||e===Ct.COLGROUP}return!1}function wt(e,t){switch(e.length){case 2:if(e===Ct.TD||e===Ct.TH)return t===kt.HTML;if(e===Ct.MI||e===Ct.MO||e===Ct.MN||e===Ct.MS)return t===kt.MATHML;break;case 4:if(e===Ct.HTML)return t===kt.HTML;if(e===Ct.DESC)return t===kt.SVG;break;case 5:if(e===Ct.TABLE)return t===kt.HTML;if(e===Ct.MTEXT)return t===kt.MATHML;if(e===Ct.TITLE)return t===kt.SVG;break;case 6:return(e===Ct.APPLET||e===Ct.OBJECT)&&t===kt.HTML;case 7:return(e===Ct.CAPTION||e===Ct.MARQUEE)&&t===kt.HTML;case 8:return e===Ct.TEMPLATE&&t===kt.HTML;case 13:return e===Ct.FOREIGN_OBJECT&&t===kt.SVG;case 14:return e===Ct.ANNOTATION_XML&&t===kt.MATHML}return!1}class Ft{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===Ft.MARKER_ENTRY)break;const o=a.element,s=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===n&&this.treeAdapter.getNamespaceURI(o)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,a=Object.create(null);for(let e=0;e<i;e++){const t=n[e];a[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(a[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ft.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:Ft.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ft.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===Ft.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Ft.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Ft.ELEMENT_ENTRY&&r.element===e)return r}return null}}Ft.MARKER_ENTRY="MARKER_ENTRY",Ft.ELEMENT_ENTRY="ELEMENT_ENTRY";var Pt=Ft;class It{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}It.install=(e,t,r)=>{e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var Ot=It,Mt=class extends Ot{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}},Rt=class extends Ot{constructor(e){super(e),this.tokenizer=e,this.posTracker=Ot.install(e.preprocessor,Mt),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===St.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(St.MODE).forEach((n=>{const i=St.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}},Lt=class extends Ot{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const Bt=Tt.TAG_NAMES;var jt=class extends Ot{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===St.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=Ot.install(this.tokenizer,Rt);e.posTracker=i.posTracker,Ot.install(this.openElements,Lt,{onItemPop(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){if(e.currentToken=r,t._processToken.call(this,r),r.type===St.END_TAG_TOKEN&&(r.tagName===Bt.HTML||r.tagName===Bt.BODY&&this.openElements.hasInScope(Bt.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(i),o=n&&e.lastFosterParentingLocation.beforeElement?a.indexOf(e.lastFosterParentingLocation.beforeElement)-1:a.length-1,s=a[o];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}},Ut=class extends Ot{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}},Vt=class extends Ut{constructor(e,t){super(e,t),this.posTracker=Ot.install(e,Mt),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}},Kt=class extends Ut{constructor(e,t){super(e,t);const r=Ot.install(e.preprocessor,Vt,t);this.posTracker=r.posTracker}},zt=class extends Ut{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),Ot.install(this.tokenizer,Kt,e.opts),Ot.install(this.tokenizer,Rt)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},Wt=Dt(((e,t)=>{const{DOCUMENT_MODE:r}=Tt;t.createDocument=()=>({nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}),t.createDocumentFragment=()=>({nodeName:"#document-fragment",childNodes:[]}),t.createElement=(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),t.createCommentNode=e=>({nodeName:"#comment",data:e,parentNode:null});const n=e=>({nodeName:"#text",value:e,parentNode:null}),i=t.appendChild=(e,t)=>{e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=(e,t,r)=>{const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};t.setTemplateContent=(e,t)=>{e.content=t},t.getTemplateContent=e=>e.content,t.setDocumentType=(e,t,r,n)=>{let a=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){a=e.childNodes[t];break}a?(a.name=t,a.publicId=r,a.systemId=n):i(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},t.setDocumentMode=(e,t)=>{e.mode=t},t.getDocumentMode=e=>e.mode,t.detachNode=e=>{if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=(e,t)=>{if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}i(e,n(t))},t.insertTextBefore=(e,t,r)=>{const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&"#text"===i.nodeName?i.value+=t:a(e,n(t),r)},t.adoptAttributes=(e,t)=>{const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},t.getFirstChild=e=>e.childNodes[0],t.getChildNodes=e=>e.childNodes,t.getParentNode=e=>e.parentNode,t.getAttrList=e=>e.attrs,t.getTagName=e=>e.tagName,t.getNamespaceURI=e=>e.namespaceURI,t.getTextNodeContent=e=>e.value,t.getCommentNodeContent=e=>e.data,t.getDocumentTypeNodeName=e=>e.name,t.getDocumentTypeNodePublicId=e=>e.publicId,t.getDocumentTypeNodeSystemId=e=>e.systemId,t.isTextNode=e=>"#text"===e.nodeName,t.isCommentNode=e=>"#comment"===e.nodeName,t.isDocumentTypeNode=e=>"#documentType"===e.nodeName,t.isElementNode=e=>!!e.tagName,t.setNodeSourceCodeLocation=(e,t)=>{e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=e=>e.sourceCodeLocation,t.updateNodeSourceCodeLocation=(e,t)=>{e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}}));const{DOCUMENT_MODE:Jt}=Tt,Ht="html",$t=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Gt=$t.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),qt=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],Xt=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Yt=Xt.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Qt(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}var Zt=Dt(((e,t)=>{const r=Tt.TAG_NAMES,n=Tt.NAMESPACES,i=Tt.ATTRS,a={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},o={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:n.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:n.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:n.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:n.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:n.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:n.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:n.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:n.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:n.XML},"xml:space":{prefix:"xml",name:"space",namespace:n.XML},xmlns:{prefix:"",name:"xmlns",namespace:n.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:n.XMLNS}},s=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},c={[r.B]:!0,[r.BIG]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.CENTER]:!0,[r.CODE]:!0,[r.DD]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EM]:!0,[r.EMBED]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HR]:!0,[r.I]:!0,[r.IMG]:!0,[r.LI]:!0,[r.LISTING]:!0,[r.MENU]:!0,[r.META]:!0,[r.NOBR]:!0,[r.OL]:!0,[r.P]:!0,[r.PRE]:!0,[r.RUBY]:!0,[r.S]:!0,[r.SMALL]:!0,[r.SPAN]:!0,[r.STRONG]:!0,[r.STRIKE]:!0,[r.SUB]:!0,[r.SUP]:!0,[r.TABLE]:!0,[r.TT]:!0,[r.U]:!0,[r.UL]:!0,[r.VAR]:!0};t.causesExit=e=>{const t=e.tagName;return!(t!==r.FONT||null===St.getTokenAttr(e,i.COLOR)&&null===St.getTokenAttr(e,i.SIZE)&&null===St.getTokenAttr(e,i.FACE))||c[t]},t.adjustTokenMathMLAttrs=e=>{for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=e=>{for(let t=0;t<e.attrs.length;t++){const r=a[e.attrs[t].name];r&&(e.attrs[t].name=r)}},t.adjustTokenXMLAttrs=e=>{for(let t=0;t<e.attrs.length;t++){const r=o[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},t.adjustTokenSVGTagName=e=>{const t=s[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=(e,t,a,o)=>!(o&&o!==n.HTML||!((e,t,a)=>{if(t===n.MATHML&&e===r.ANNOTATION_XML)for(let e=0;e<a.length;e++)if(a[e].name===i.ENCODING){const t=a[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===n.SVG&&(e===r.FOREIGN_OBJECT||e===r.DESC||e===r.TITLE)})(e,t,a))||!(o&&o!==n.MATHML||!((e,t)=>t===n.MATHML&&(e===r.MI||e===r.MO||e===r.MN||e===r.MS||e===r.MTEXT))(e,t))}));const er=Tt.TAG_NAMES,tr=Tt.NAMESPACES,rr=Tt.ATTRS,nr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:Wt},ir="hidden",ar="INITIAL_MODE",or="BEFORE_HTML_MODE",sr="BEFORE_HEAD_MODE",cr="IN_HEAD_MODE",lr="IN_HEAD_NO_SCRIPT_MODE",ur="AFTER_HEAD_MODE",dr="IN_BODY_MODE",pr="TEXT_MODE",_r="IN_TABLE_MODE",fr="IN_TABLE_TEXT_MODE",mr="IN_CAPTION_MODE",gr="IN_COLUMN_GROUP_MODE",hr="IN_TABLE_BODY_MODE",yr="IN_ROW_MODE",vr="IN_CELL_MODE",br="IN_SELECT_MODE",xr="IN_SELECT_IN_TABLE_MODE",Er="IN_TEMPLATE_MODE",Sr="AFTER_BODY_MODE",Dr="IN_FRAMESET_MODE",Tr="AFTER_FRAMESET_MODE",Cr="AFTER_AFTER_BODY_MODE",kr="AFTER_AFTER_FRAMESET_MODE",Ar={[er.TR]:yr,[er.TBODY]:hr,[er.THEAD]:hr,[er.TFOOT]:hr,[er.CAPTION]:mr,[er.COLGROUP]:gr,[er.TABLE]:_r,[er.BODY]:dr,[er.FRAMESET]:Dr},Nr={[er.CAPTION]:_r,[er.COLGROUP]:_r,[er.TBODY]:_r,[er.TFOOT]:_r,[er.THEAD]:_r,[er.COL]:gr,[er.TR]:hr,[er.TD]:yr,[er.TH]:yr},wr={[ar]:{[St.CHARACTER_TOKEN]:Jr,[St.NULL_CHARACTER_TOKEN]:Jr,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN](e,t){e._setDocumentType(t);const r=t.forceQuirks?Tt.DOCUMENT_MODE.QUIRKS:(e=>{if(e.name!==Ht)return Jt.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Jt.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),qt.indexOf(r)>-1)return Jt.QUIRKS;let e=null===t?Gt:$t;if(Qt(r,e))return Jt.QUIRKS;if(e=null===t?Xt:Yt,Qt(r,e))return Jt.LIMITED_QUIRKS}return Jt.NO_QUIRKS})(t);(e=>e.name===Ht&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId))(t)||e._err("non-conforming-doctype"),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=or},[St.START_TAG_TOKEN]:Jr,[St.END_TAG_TOKEN]:Jr,[St.EOF_TOKEN]:Jr},[or]:{[St.CHARACTER_TOKEN]:Hr,[St.NULL_CHARACTER_TOKEN]:Hr,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?(e._insertElement(t,tr.HTML),e.insertionMode=sr):Hr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r!==er.HTML&&r!==er.HEAD&&r!==er.BODY&&r!==er.BR||Hr(e,t)},[St.EOF_TOKEN]:Hr},[sr]:{[St.CHARACTER_TOKEN]:$r,[St.NULL_CHARACTER_TOKEN]:$r,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.HEAD?(e._insertElement(t,tr.HTML),e.headElement=e.openElements.current,e.insertionMode=cr):$r(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.HEAD||r===er.BODY||r===er.HTML||r===er.BR?$r(e,t):e._err(C)},[St.EOF_TOKEN]:$r},[cr]:{[St.CHARACTER_TOKEN]:Xr,[St.NULL_CHARACTER_TOKEN]:Xr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN]:Gr,[St.END_TAG_TOKEN]:qr,[St.EOF_TOKEN]:Xr},[lr]:{[St.CHARACTER_TOKEN]:Yr,[St.NULL_CHARACTER_TOKEN]:Yr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BASEFONT||r===er.BGSOUND||r===er.HEAD||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.STYLE?Gr(e,t):r===er.NOSCRIPT?e._err("nested-noscript-in-head"):Yr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.NOSCRIPT?(e.openElements.pop(),e.insertionMode=cr):r===er.BR?Yr(e,t):e._err(C)},[St.EOF_TOKEN]:Yr},[ur]:{[St.CHARACTER_TOKEN]:Qr,[St.NULL_CHARACTER_TOKEN]:Qr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BODY?(e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode=dr):r===er.FRAMESET?(e._insertElement(t,tr.HTML),e.insertionMode=Dr):r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.SCRIPT||r===er.STYLE||r===er.TEMPLATE||r===er.TITLE?(e._err("abandoned-head-element-child"),e.openElements.push(e.headElement),Gr(e,t),e.openElements.remove(e.headElement)):r===er.HEAD?e._err(k):Qr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.BODY||r===er.HTML||r===er.BR?Qr(e,t):r===er.TEMPLATE?qr(e,t):e._err(C)},[St.EOF_TOKEN]:Qr},[dr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:pn,[St.END_TAG_TOKEN]:gn,[St.EOF_TOKEN]:hn},[pr]:{[St.CHARACTER_TOKEN]:zr,[St.NULL_CHARACTER_TOKEN]:zr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:jr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:jr,[St.END_TAG_TOKEN](e,t){t.tagName===er.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[St.EOF_TOKEN](e,t){e._err("eof-in-element-that-can-contain-only-text"),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[_r]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:vn,[St.END_TAG_TOKEN]:bn,[St.EOF_TOKEN]:hn},[fr]:{[St.CHARACTER_TOKEN](e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN](e,t){e.pendingCharacterTokens.push(t)},[St.COMMENT_TOKEN]:En,[St.DOCTYPE_TOKEN]:En,[St.START_TAG_TOKEN]:En,[St.END_TAG_TOKEN]:En,[St.EOF_TOKEN]:En},[mr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TD||r===er.TFOOT||r===er.TH||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(er.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_r,e._processToken(t)):pn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE?e.openElements.hasInTableScope(er.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_r,r===er.TABLE&&e._processToken(t)):r!==er.BODY&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&r!==er.TBODY&&r!==er.TD&&r!==er.TFOOT&&r!==er.TH&&r!==er.THEAD&&r!==er.TR&&gn(e,t)},[St.EOF_TOKEN]:hn},[gr]:{[St.CHARACTER_TOKEN]:Sn,[St.NULL_CHARACTER_TOKEN]:Sn,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.COL?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.TEMPLATE?Gr(e,t):Sn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.COLGROUP?e.openElements.currentTagName===er.COLGROUP&&(e.openElements.pop(),e.insertionMode=_r):r===er.TEMPLATE?qr(e,t):r!==er.COL&&Sn(e,t)},[St.EOF_TOKEN]:hn},[hr]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,tr.HTML),e.insertionMode=yr):r===er.TH||r===er.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(er.TR),e.insertionMode=yr,e._processToken(t)):r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TFOOT||r===er.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r,e._processToken(t)):vn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TBODY||r===er.TFOOT||r===er.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r):r===er.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r,e._processToken(t)):(r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP||r!==er.HTML&&r!==er.TD&&r!==er.TH&&r!==er.TR)&&bn(e,t)},[St.EOF_TOKEN]:hn},[yr]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.TH||r===er.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,tr.HTML),e.insertionMode=vr,e.activeFormattingElements.insertMarker()):r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):vn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TR?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr):r===er.TABLE?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):r===er.TBODY||r===er.TFOOT||r===er.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(er.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):(r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP||r!==er.HTML&&r!==er.TD&&r!==er.TH)&&bn(e,t)},[St.EOF_TOKEN]:hn},[vr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TD||r===er.TFOOT||r===er.TH||r===er.THEAD||r===er.TR?(e.openElements.hasInTableScope(er.TD)||e.openElements.hasInTableScope(er.TH))&&(e._closeTableCell(),e._processToken(t)):pn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TD||r===er.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=yr):r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&gn(e,t)},[St.EOF_TOKEN]:hn},[br]:{[St.CHARACTER_TOKEN]:zr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:Dn,[St.END_TAG_TOKEN]:Tn,[St.EOF_TOKEN]:hn},[xr]:{[St.CHARACTER_TOKEN]:zr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR||r===er.TD||r===er.TH?(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),e._processToken(t)):Dn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR||r===er.TD||r===er.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),e._processToken(t)):Tn(e,t)},[St.EOF_TOKEN]:hn},[Er]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;if(r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.SCRIPT||r===er.STYLE||r===er.TEMPLATE||r===er.TITLE)Gr(e,t);else{const n=Nr[r]||dr;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[St.END_TAG_TOKEN](e,t){t.tagName===er.TEMPLATE&&qr(e,t)},[St.EOF_TOKEN]:Cn},[Sr]:{[St.CHARACTER_TOKEN]:kn,[St.NULL_CHARACTER_TOKEN]:kn,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN](e,t){e._appendCommentNode(t,e.openElements.items[0])},[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?pn(e,t):kn(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName===er.HTML?e.fragmentContext||(e.insertionMode=Cr):kn(e,t)},[St.EOF_TOKEN]:Wr},[Dr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.FRAMESET?e._insertElement(t,tr.HTML):r===er.FRAME?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName!==er.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===er.FRAMESET||(e.insertionMode=Tr))},[St.EOF_TOKEN]:Wr},[Tr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName===er.HTML&&(e.insertionMode=kr)},[St.EOF_TOKEN]:Wr},[Cr]:{[St.CHARACTER_TOKEN]:An,[St.NULL_CHARACTER_TOKEN]:An,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Kr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?pn(e,t):An(e,t)},[St.END_TAG_TOKEN]:An,[St.EOF_TOKEN]:Wr},[kr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Kr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN]:jr,[St.EOF_TOKEN]:Wr}};var Fr=class{constructor(e){this.options=((e,t)=>[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null)))(nr,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Ot.install(this,jt),this.options.onParseError&&Ot.install(this,zt,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(er.TEMPLATE,tr.HTML,[]));const r=this.treeAdapter.createElement("documentmock",tr.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===er.TEMPLATE&&this._pushTmplInsertionMode(Er),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new St(this.options),this.stopped=!1,this.insertionMode=ar,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===Ct.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===kt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===kt.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ct.H1||e===Ct.H2||e===Ct.H3||e===Ct.H4||e===Ct.H5||e===Ct.H6&&t===kt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ct.TD||e===Ct.TH&&t===kt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Ct.TABLE&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Ct.TBODY&&this.currentTagName!==Ct.TFOOT&&this.currentTagName!==Ct.THEAD&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Ct.TR&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===Ct.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===Ct.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if(wt(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===Ct.H1||t===Ct.H2||t===Ct.H3||t===Ct.H4||t===Ct.H5||t===Ct.H6)&&r===kt.HTML)return!0;if(wt(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if((r===Ct.UL||r===Ct.OL)&&n===kt.HTML||wt(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if(r===Ct.BUTTON&&n===kt.HTML||wt(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(r===e)return!0;if(r===Ct.TABLE||r===Ct.TEMPLATE||r===Ct.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===kt.HTML){if(t===Ct.TBODY||t===Ct.THEAD||t===Ct.TFOOT)return!0;if(t===Ct.TABLE||t===Ct.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(r===e)return!0;if(r!==Ct.OPTION&&r!==Ct.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;At(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Nt(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;At(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}(this.document,this.treeAdapter),this.activeFormattingElements=new Pt(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===St.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===St.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==tr.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,tr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=pr}switchToPlaintextParsing(){this.insertionMode=pr,this.originalInsertionMode=dr,this.tokenizer.state=St.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===er.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===tr.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===er.TITLE||e===er.TEXTAREA?this.tokenizer.state=St.MODE.RCDATA:e===er.STYLE||e===er.XMP||e===er.IFRAME||e===er.NOEMBED||e===er.NOFRAMES||e===er.NOSCRIPT?this.tokenizer.state=St.MODE.RAWTEXT:e===er.SCRIPT?this.tokenizer.state=St.MODE.SCRIPT_DATA:e===er.PLAINTEXT&&(this.tokenizer.state=St.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,tr.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,tr.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(er.HTML,tr.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===tr.HTML)return!1;if(this.treeAdapter.getTagName(t)===er.ANNOTATION_XML&&r===tr.MATHML&&e.type===St.START_TAG_TOKEN&&e.tagName===er.SVG)return!1;const n=e.type===St.CHARACTER_TOKEN||e.type===St.NULL_CHARACTER_TOKEN||e.type===St.WHITESPACE_CHARACTER_TOKEN;return!((e.type===St.START_TAG_TOKEN&&e.tagName!==er.MGLYPH&&e.tagName!==er.MALIGNMARK||n)&&this._isIntegrationPoint(t,tr.MATHML)||(e.type===St.START_TAG_TOKEN||n)&&this._isIntegrationPoint(t,tr.HTML)||e.type===St.EOF_TOKEN)}_processToken(e){wr[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){wr.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===St.CHARACTER_TOKEN?((e,t)=>{e._insertCharacters(t),e.framesetOk=!1})(this,e):e.type===St.NULL_CHARACTER_TOKEN?((e,t)=>{t.chars=r,e._insertCharacters(t)})(this,e):e.type===St.WHITESPACE_CHARACTER_TOKEN?zr(this,e):e.type===St.COMMENT_TOKEN?Vr(this,e):e.type===St.START_TAG_TOKEN?((e,t)=>{if(Zt.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==tr.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===tr.MATHML?Zt.adjustTokenMathMLAttrs(t):n===tr.SVG&&(Zt.adjustTokenSVGTagName(t),Zt.adjustTokenSVGAttrs(t)),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}})(this,e):e.type===St.END_TAG_TOKEN&&((e,t)=>{for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===tr.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}})(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===St.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err("non-void-html-element-start-tag-with-trailing-solidus")}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return Zt.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===Pt.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=yr}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(er.P),this.openElements.popUntilTagNamePopped(er.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=Ar[n];if(i){this.insertionMode=i;break}if(!(t||n!==er.TD&&n!==er.TH)){this.insertionMode=vr;break}if(!t&&n===er.HEAD){this.insertionMode=cr;break}if(n===er.SELECT){this._resetInsertionModeForSelect(e);break}if(n===er.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===er.HTML){this.insertionMode=this.headElement?ur:sr;break}if(t){this.insertionMode=dr;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===er.TEMPLATE)break;if(r===er.TABLE)return void(this.insertionMode=xr)}this.insertionMode=br}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===er.TABLE||t===er.TBODY||t===er.TFOOT||t===er.THEAD||t===er.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===er.TEMPLATE&&i===tr.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===er.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return Tt.SPECIAL_ELEMENTS[r][t]}};function Pr(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):mn(e,t),r}function Ir(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function Or(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);const r=e.activeFormattingElements.getElementEntry(o),s=r&&a>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(o)):(o=Mr(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function Mr(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Rr(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===er.TEMPLATE&&i===tr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Lr(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a)}function Br(e,t){let r;for(let n=0;n<8&&(r=Pr(e,t),r);n++){const t=Ir(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=Or(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),Rr(e,i,n),Lr(e,t,r)}}function jr(){}function Ur(e){e._err("misplaced-doctype")}function Vr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function Kr(e,t){e._appendCommentNode(t,e.document)}function zr(e,t){e._insertCharacters(t)}function Wr(e){e.stopped=!0}function Jr(e,t){e._err("missing-doctype",{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Tt.DOCUMENT_MODE.QUIRKS),e.insertionMode=or,e._processToken(t)}function Hr(e,t){e._insertFakeRootElement(),e.insertionMode=sr,e._processToken(t)}function $r(e,t){e._insertFakeElement(er.HEAD),e.headElement=e.openElements.current,e.insertionMode=cr,e._processToken(t)}function Gr(e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.TITLE?e._switchToTextParsing(t,St.MODE.RCDATA):r===er.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,St.MODE.RAWTEXT):(e._insertElement(t,tr.HTML),e.insertionMode=lr):r===er.NOFRAMES||r===er.STYLE?e._switchToTextParsing(t,St.MODE.RAWTEXT):r===er.SCRIPT?e._switchToTextParsing(t,St.MODE.SCRIPT_DATA):r===er.TEMPLATE?(e._insertTemplate(t,tr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Er,e._pushTmplInsertionMode(Er)):r===er.HEAD?e._err(k):Xr(e,t)}function qr(e,t){const r=t.tagName;r===er.HEAD?(e.openElements.pop(),e.insertionMode=ur):r===er.BODY||r===er.BR||r===er.HTML?Xr(e,t):r===er.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==er.TEMPLATE&&e._err("closing-of-element-with-open-child-elements"),e.openElements.popUntilTagNamePopped(er.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(C)}function Xr(e,t){e.openElements.pop(),e.insertionMode=ur,e._processToken(t)}function Yr(e,t){const r=t.type===St.EOF_TOKEN?"open-elements-left-after-eof":"disallowed-content-in-noscript-in-head";e._err(r),e.openElements.pop(),e.insertionMode=cr,e._processToken(t)}function Qr(e,t){e._insertFakeElement(er.BODY),e.insertionMode=dr,e._processToken(t)}function Zr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function en(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tn(e,t){e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)}function rn(e,t){e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function an(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function on(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,tr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sn(e,t){e._appendElement(t,tr.HTML),t.ackSelfClosing=!0}function cn(e,t){e._switchToTextParsing(t,St.MODE.RAWTEXT)}function ln(e,t){e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML)}function un(e,t){e.openElements.hasInScope(er.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,tr.HTML)}function dn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML)}function pn(e,t){const r=t.tagName;switch(r.length){case 1:r===er.I||r===er.S||r===er.B||r===er.U?nn(e,t):r===er.P?tn(e,t):r===er.A?((e,t)=>{const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(er.A);r&&(Br(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t):dn(e,t);break;case 2:r===er.DL||r===er.OL||r===er.UL?tn(e,t):r===er.H1||r===er.H2||r===er.H3||r===er.H4||r===er.H5||r===er.H6?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==er.H1&&r!==er.H2&&r!==er.H3&&r!==er.H4&&r!==er.H5&&r!==er.H6||e.openElements.pop(),e._insertElement(t,tr.HTML)})(e,t):r===er.LI||r===er.DD||r===er.DT?((e,t)=>{e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let a=null;if(r===er.LI&&i===er.LI?a=er.LI:r!==er.DD&&r!==er.DT||i!==er.DD&&i!==er.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==er.ADDRESS&&i!==er.DIV&&i!==er.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)})(e,t):r===er.EM||r===er.TT?nn(e,t):r===er.BR?on(e,t):r===er.HR?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._appendElement(t,tr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0})(e,t):r===er.RB?un(e,t):r===er.RT||r===er.RP?((e,t)=>{e.openElements.hasInScope(er.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(er.RTC),e._insertElement(t,tr.HTML)})(e,t):r!==er.TH&&r!==er.TD&&r!==er.TR&&dn(e,t);break;case 3:r===er.DIV||r===er.DIR||r===er.NAV?tn(e,t):r===er.PRE?rn(e,t):r===er.BIG?nn(e,t):r===er.IMG||r===er.WBR?on(e,t):r===er.XMP?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,St.MODE.RAWTEXT)})(e,t):r===er.SVG?((e,t)=>{e._reconstructActiveFormattingElements(),Zt.adjustTokenSVGAttrs(t),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tr.SVG):e._insertElement(t,tr.SVG),t.ackSelfClosing=!0})(e,t):r===er.RTC?un(e,t):r!==er.COL&&dn(e,t);break;case 4:r===er.HTML?((e,t)=>{0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)})(e,t):r===er.BASE||r===er.LINK||r===er.META?Gr(e,t):r===er.BODY?((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))})(e,t):r===er.MAIN||r===er.MENU?tn(e,t):r===er.FORM?((e,t)=>{const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),r||(e.formElement=e.openElements.current))})(e,t):r===er.CODE||r===er.FONT?nn(e,t):r===er.NOBR?((e,t)=>{e._reconstructActiveFormattingElements(),e.openElements.hasInScope(er.NOBR)&&(Br(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t):r===er.AREA?on(e,t):r===er.MATH?((e,t)=>{e._reconstructActiveFormattingElements(),Zt.adjustTokenMathMLAttrs(t),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tr.MATHML):e._insertElement(t,tr.MATHML),t.ackSelfClosing=!0})(e,t):r===er.MENU?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)})(e,t):r!==er.HEAD&&dn(e,t);break;case 5:r===er.STYLE||r===er.TITLE?Gr(e,t):r===er.ASIDE?tn(e,t):r===er.SMALL?nn(e,t):r===er.TABLE?((e,t)=>{e.treeAdapter.getDocumentMode(e.document)!==Tt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode=_r})(e,t):r===er.EMBED?on(e,t):r===er.INPUT?((e,t)=>{e._reconstructActiveFormattingElements(),e._appendElement(t,tr.HTML);const r=St.getTokenAttr(t,rr.TYPE);r&&r.toLowerCase()===ir||(e.framesetOk=!1),t.ackSelfClosing=!0})(e,t):r===er.PARAM||r===er.TRACK?sn(e,t):r===er.IMAGE?((e,t)=>{t.tagName=er.IMG,on(e,t)})(e,t):r!==er.FRAME&&r!==er.TBODY&&r!==er.TFOOT&&r!==er.THEAD&&dn(e,t);break;case 6:r===er.SCRIPT?Gr(e,t):r===er.CENTER||r===er.FIGURE||r===er.FOOTER||r===er.HEADER||r===er.HGROUP||r===er.DIALOG?tn(e,t):r===er.BUTTON?((e,t)=>{e.openElements.hasInScope(er.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.framesetOk=!1})(e,t):r===er.STRIKE||r===er.STRONG?nn(e,t):r===er.APPLET||r===er.OBJECT?an(e,t):r===er.KEYGEN?on(e,t):r===er.SOURCE?sn(e,t):r===er.IFRAME?((e,t)=>{e.framesetOk=!1,e._switchToTextParsing(t,St.MODE.RAWTEXT)})(e,t):r===er.SELECT?((e,t)=>{e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode===_r||e.insertionMode===mr||e.insertionMode===hr||e.insertionMode===yr||e.insertionMode===vr?e.insertionMode=xr:e.insertionMode=br})(e,t):r===er.OPTION?ln(e,t):dn(e,t);break;case 7:r===er.BGSOUND?Gr(e,t):r===er.DETAILS||r===er.ADDRESS||r===er.ARTICLE||r===er.SECTION||r===er.SUMMARY?tn(e,t):r===er.LISTING?rn(e,t):r===er.MARQUEE?an(e,t):r===er.NOEMBED?cn(e,t):r!==er.CAPTION&&dn(e,t);break;case 8:r===er.BASEFONT?Gr(e,t):r===er.FRAMESET?((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,tr.HTML),e.insertionMode=Dr)})(e,t):r===er.FIELDSET?tn(e,t):r===er.TEXTAREA?((e,t)=>{e._insertElement(t,tr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=St.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=pr})(e,t):r===er.TEMPLATE?Gr(e,t):r===er.NOSCRIPT?e.options.scriptingEnabled?cn(e,t):dn(e,t):r===er.OPTGROUP?ln(e,t):r!==er.COLGROUP&&dn(e,t);break;case 9:r===er.PLAINTEXT?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.tokenizer.state=St.MODE.PLAINTEXT})(e,t):dn(e,t);break;case 10:r===er.BLOCKQUOTE||r===er.FIGCAPTION?tn(e,t):dn(e,t);break;default:dn(e,t)}}function _n(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function fn(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function mn(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function gn(e,t){const r=t.tagName;switch(r.length){case 1:r===er.A||r===er.B||r===er.I||r===er.S||r===er.U?Br(e,t):r===er.P?(e=>{e.openElements.hasInButtonScope(er.P)||e._insertFakeElement(er.P),e._closePElement()})(e):mn(e,t);break;case 2:r===er.DL||r===er.UL||r===er.OL?_n(e,t):r===er.LI?(e=>{e.openElements.hasInListItemScope(er.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(er.LI),e.openElements.popUntilTagNamePopped(er.LI))})(e):r===er.DD||r===er.DT?((e,t)=>{const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))})(e,t):r===er.H1||r===er.H2||r===er.H3||r===er.H4||r===er.H5||r===er.H6?(e=>{e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())})(e):r===er.BR?(e=>{e._reconstructActiveFormattingElements(),e._insertFakeElement(er.BR),e.openElements.pop(),e.framesetOk=!1})(e):r===er.EM||r===er.TT?Br(e,t):mn(e,t);break;case 3:r===er.BIG?Br(e,t):r===er.DIR||r===er.DIV||r===er.NAV||r===er.PRE?_n(e,t):mn(e,t);break;case 4:r===er.BODY?(e=>{e.openElements.hasInScope(er.BODY)&&(e.insertionMode=Sr)})(e):r===er.HTML?((e,t)=>{e.openElements.hasInScope(er.BODY)&&(e.insertionMode=Sr,e._processToken(t))})(e,t):r===er.FORM?(e=>{const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(er.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(er.FORM):e.openElements.remove(r))})(e):r===er.CODE||r===er.FONT||r===er.NOBR?Br(e,t):r===er.MAIN||r===er.MENU?_n(e,t):mn(e,t);break;case 5:r===er.ASIDE?_n(e,t):r===er.SMALL?Br(e,t):mn(e,t);break;case 6:r===er.CENTER||r===er.FIGURE||r===er.FOOTER||r===er.HEADER||r===er.HGROUP||r===er.DIALOG?_n(e,t):r===er.APPLET||r===er.OBJECT?fn(e,t):r===er.STRIKE||r===er.STRONG?Br(e,t):mn(e,t);break;case 7:r===er.ADDRESS||r===er.ARTICLE||r===er.DETAILS||r===er.SECTION||r===er.SUMMARY||r===er.LISTING?_n(e,t):r===er.MARQUEE?fn(e,t):mn(e,t);break;case 8:r===er.FIELDSET?_n(e,t):r===er.TEMPLATE?qr(e,t):mn(e,t);break;case 10:r===er.BLOCKQUOTE||r===er.FIGCAPTION?_n(e,t):mn(e,t);break;default:mn(e,t)}}function hn(e,t){e.tmplInsertionModeStackTop>-1?Cn(e,t):e.stopped=!0}function yn(e,t){const r=e.openElements.currentTagName;r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=fr,e._processToken(t)):xn(e,t)}function vn(e,t){const r=t.tagName;switch(r.length){case 2:r===er.TD||r===er.TH||r===er.TR?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(er.TBODY),e.insertionMode=hr,e._processToken(t)})(e,t):xn(e,t);break;case 3:r===er.COL?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(er.COLGROUP),e.insertionMode=gr,e._processToken(t)})(e,t):xn(e,t);break;case 4:r===er.FORM?((e,t)=>{e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,tr.HTML),e.formElement=e.openElements.current,e.openElements.pop())})(e,t):xn(e,t);break;case 5:r===er.TABLE?((e,t)=>{e.openElements.hasInTableScope(er.TABLE)&&(e.openElements.popUntilTagNamePopped(er.TABLE),e._resetInsertionMode(),e._processToken(t))})(e,t):r===er.STYLE?Gr(e,t):r===er.TBODY||r===er.TFOOT||r===er.THEAD?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,tr.HTML),e.insertionMode=hr})(e,t):r===er.INPUT?((e,t)=>{const r=St.getTokenAttr(t,rr.TYPE);r&&r.toLowerCase()===ir?e._appendElement(t,tr.HTML):xn(e,t),t.ackSelfClosing=!0})(e,t):xn(e,t);break;case 6:r===er.SCRIPT?Gr(e,t):xn(e,t);break;case 7:r===er.CAPTION?((e,t)=>{e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,tr.HTML),e.insertionMode=mr})(e,t):xn(e,t);break;case 8:r===er.COLGROUP?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,tr.HTML),e.insertionMode=gr})(e,t):r===er.TEMPLATE?Gr(e,t):xn(e,t);break;default:xn(e,t)}}function bn(e,t){const r=t.tagName;r===er.TABLE?e.openElements.hasInTableScope(er.TABLE)&&(e.openElements.popUntilTagNamePopped(er.TABLE),e._resetInsertionMode()):r===er.TEMPLATE?qr(e,t):r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&r!==er.TBODY&&r!==er.TD&&r!==er.TFOOT&&r!==er.TH&&r!==er.THEAD&&r!==er.TR&&xn(e,t)}function xn(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function En(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)xn(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Sn(e,t){e.openElements.currentTagName===er.COLGROUP&&(e.openElements.pop(),e.insertionMode=_r,e._processToken(t))}function Dn(e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.OPTION?(e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e._insertElement(t,tr.HTML)):r===er.OPTGROUP?(e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e.openElements.currentTagName===er.OPTGROUP&&e.openElements.pop(),e._insertElement(t,tr.HTML)):r===er.INPUT||r===er.KEYGEN||r===er.TEXTAREA||r===er.SELECT?e.openElements.hasInSelectScope(er.SELECT)&&(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),r!==er.SELECT&&e._processToken(t)):r!==er.SCRIPT&&r!==er.TEMPLATE||Gr(e,t)}function Tn(e,t){const r=t.tagName;if(r===er.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===er.OPTION&&r===er.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===er.OPTGROUP&&e.openElements.pop()}else r===er.OPTION?e.openElements.currentTagName===er.OPTION&&e.openElements.pop():r===er.SELECT&&e.openElements.hasInSelectScope(er.SELECT)?(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode()):r===er.TEMPLATE&&qr(e,t)}function Cn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(er.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function kn(e,t){e.insertionMode=dr,e._processToken(t)}function An(e,t){e.insertionMode=dr,e._processToken(t)}return e.parse=(e,t)=>new Fr(t).parse(e),e.parseFragment=(e,t,r)=>("string"==typeof e&&(r=t,t=e,e=null),new Fr(r).parseFragment(t,e)),Object.defineProperty(e,"__esModule",{value:!0}),e}({}),Hp=Jp.parse,$p=Jp.parseFragment,Gp=new WeakMap;function qp(e,t){const r=Hp(t.trim(),Yp(e));return r.documentElement=r.firstElementChild,r.head=r.documentElement.firstElementChild,r.body=r.head.nextElementSibling,r}function Xp(e,t){return t="string"==typeof t?t.trim():"",$p(t,Yp(e))}function Yp(e){let t=Gp.get(e);return null!=t||(t={treeAdapter:{createDocument(){const t=e.createElement("#document");return t["x-mode"]="no-quirks",t},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},createDocumentFragment(){return e.createDocumentFragment()},createElement(t,r,n){const i=e.createElementNS(r,t);for(let e=0;e<n.length;e++){const t=n[e];null==t.namespace||"http://www.w3.org/1999/xhtml"===t.namespace?i.setAttribute(t.name,t.value):i.setAttributeNS(t.namespace,t.name,t.value)}return i},createCommentNode(t){return e.createComment(t)},appendChild(e,t){e.appendChild(t)},insertBefore(e,t,r){e.insertBefore(t,r)},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(t,r,n,i){let a=t.childNodes.find((e=>10===e.nodeType));null==a&&(a=e.createDocumentTypeNode(),t.insertBefore(a,t.firstChild)),a.nodeValue="!DOCTYPE",a["x-name"]=r,a["x-publicId"]=n,a["x-systemId"]=i},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){e.remove()},insertText(t,r){const n=t.lastChild;null!=n&&3===n.nodeType?n.nodeValue+=r:t.appendChild(e.createTextNode(r))},insertTextBefore(t,r,n){const i=t.childNodes[t.childNodes.indexOf(n)-1];null!=i&&3===i.nodeType?i.nodeValue+=r:t.insertBefore(e.createTextNode(r),n)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){const n=t[r];!1===e.hasAttributeNS(n.namespace,n.name)&&e.setAttributeNS(n.namespace,n.name,n.value)}},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attributes.__items.map((e=>({name:e.name,value:e.value,namespace:e.namespaceURI,prefix:null})))},getTagName(e){return"http://www.w3.org/1999/xhtml"===e.namespaceURI?e.nodeName.toLowerCase():e.nodeName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.nodeValue},getCommentNodeContent(e){return e.nodeValue},getDocumentTypeNodeName(e){return e["x-name"]},getDocumentTypeNodePublicId(e){return e["x-publicId"]},getDocumentTypeNodeSystemId(e){return e["x-systemId"]},isTextNode(e){return 3===e.nodeType},isCommentNode(e){return 8===e.nodeType},isDocumentTypeNode(e){return 10===e.nodeType},isElementNode(e){return 1===e.nodeType}}},Gp.set(e,t)),t}const Qp=(()=>{const e={exports:{}};return!(t=>{var r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x="sizzle"+1*new Date,E=t.document,S=0,D=0,T=le(),C=le(),k=le(),A=le(),N=(e,t)=>(e===t&&(p=!0),0),w={}.hasOwnProperty,F=[],P=F.pop,I=F.push,O=F.push,M=F.slice,R=(e,t)=>{for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+B+"*("+j+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+B+"*\\]",V=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",K=new RegExp(B+"+","g"),z=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),W=new RegExp("^"+B+"*,"+B+"*"),J=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),H=new RegExp(B+"|>"),$=new RegExp(V),G=new RegExp("^"+j+"$"),q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ne=(e,t)=>{var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=(e,t)=>t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e,oe=()=>{_()},se=ve((e=>!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()),{dir:"parentNode",next:"legend"});try{O.apply(F=M.call(E.childNodes),E.childNodes),F[E.childNodes.length].nodeType}catch(t){O={apply:F.length?(e,t)=>{I.apply(e,M.call(t))}:(e,t)=>{for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function ce(e,t,r,i){var a,o,c,u,d,p,m,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return r;if(!i&&(_(t),t=t||f,g)){if(11!==v&&(d=ee.exec(e)))if(a=d[1]){if(9===v){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(d[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!A[e+" "]&&(!h||!h.test(e))&&(1!==v||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===v&&(H.test(e)||J.test(e))){for((y=te.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,ae):t.setAttribute("id",u=x)),o=(p=s(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+ye(p[o]);m=p.join(",")}try{return O.apply(r,y.querySelectorAll(m)),r}catch(t){A(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,r,i)}function le(){var e=[];return function t(r,n){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=n}}function ue(e){return e[x]=!0,e}function de(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var r=e.split("|"),n=r.length;n--;)i.attrHandle[r[n]]=t}function _e(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function fe(e){return t=>"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}function me(e){return ue((t=>(t=+t,ue(((r,n)=>{for(var i,a=e([],r.length,t),o=a.length;o--;)r[i=a[o]]&&(r[i]=!(n[i]=r[i]))})))))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(r in n=ce.support={},o=ce.isXML=e=>{var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(t||r&&r.nodeName||"HTML")},_=ce.setDocument=e=>{var t,r,a=e?e.ownerDocument||e:E;return a!=f&&9===a.nodeType&&a.documentElement?(m=(f=a).documentElement,g=!o(f),E!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=de((e=>(m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length))),n.attributes=de((e=>(e.className="i",!e.getAttribute("className")))),n.getElementsByTagName=de((e=>(e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length))),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=de((e=>(m.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length))),n.getById?(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>e.getAttribute("id")===t},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r=t.getElementById(e);return r?[r]:[]}}):(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>{var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r,n,i,a=t.getElementById(e);if(a){if((r=a.getAttributeNode("id"))&&r.value===e)return[a];for(i=t.getElementsByName(e),n=0;a=i[n++];)if((r=a.getAttributeNode("id"))&&r.value===e)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?(e,t)=>void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0:(e,t)=>{var r,n=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;r=a[i++];)1===r.nodeType&&n.push(r);return n}return a},i.find.CLASS=n.getElementsByClassName&&((e,t)=>{if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)}),y=[],h=[],(n.qsa=Z.test(f.querySelectorAll))&&(de((e=>{var t;m.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+B+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||h.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),de((e=>{e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=Z.test(v=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&de((e=>{n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",V)})),h=h.length&&new RegExp(h.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(m.compareDocumentPosition),b=t||Z.test(m.contains)?(e,t)=>{var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:(e,t)=>{if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?(e,t)=>{if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==E&&b(E,e)?-1:t==f||t.ownerDocument==E&&b(E,t)?1:d?R(d,e)-R(d,t):0:4&r?-1:1)}:(e,t)=>{if(e===t)return p=!0,0;var r,n=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==f?-1:t==f?1:i?-1:a?1:d?R(d,e)-R(d,t):0;if(i===a)return _e(e,t);for(r=e;r=r.parentNode;)o.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;o[n]===s[n];)n++;return n?_e(o[n],s[n]):o[n]==E?-1:s[n]==E?1:0},f):f},ce.matches=(e,t)=>ce(e,null,null,t),ce.matchesSelector=(e,t)=>{if(_(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!h||!h.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return ce(t,f,null,[e]).length>0},ce.contains=(e,t)=>((e.ownerDocument||e)!=f&&_(e),b(e,t)),ce.attr=(e,t)=>{(e.ownerDocument||e)!=f&&_(e);var r=i.attrHandle[t.toLowerCase()],a=r&&w.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ce.escape=e=>(e+"").replace(ie,ae),ce.error=e=>{throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=e=>{var t,r=[],i=0,a=0;if(p=!n.detectDuplicates,d=!n.sortStable&&e.slice(0),e.sort(N),p){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return d=null,e},a=ce.getText=e=>{var t,r="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)r+=a(t);return r},(i=ce.selectors={cacheLength:50,createPseudo:ue,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:e=>(e[1]=e[1].replace(re,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)),CHILD:e=>(e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ce.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ce.error(e[0]),e),PSEUDO(e){var t,r=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&$.test(r)&&(t=s(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG(e){var t=e.replace(re,ne).toLowerCase();return"*"===e?()=>!0:e=>e.nodeName&&e.nodeName.toLowerCase()===t},CLASS(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&T(e,(e=>t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")))},ATTR:(e,t,r)=>n=>{var i=ce.attr(n,e);return null==i?"!="===t:!t||(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i.replace(K," ")+" ").indexOf(r)>-1:"|="===t&&(i===r||i.slice(0,r.length+1)===r+"-"))},CHILD(e,t,r,n,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===i?e=>!!e.parentNode:(t,r,c)=>{var l,u,d,p,_,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,h=s&&t.nodeName.toLowerCase(),y=!c&&!s,v=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===h:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(v=(_=(l=(u=(d=(p=g)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&l[1])&&l[2],p=_&&g.childNodes[_];p=++_&&p&&p[m]||(v=_=0)||f.pop();)if(1===p.nodeType&&++v&&p===t){u[e]=[S,_,v];break}}else if(y&&(v=_=(l=(u=(d=(p=t)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&l[1]),!1===v)for(;(p=++_&&p&&p[m]||(v=_=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==h:1!==p.nodeType)||!++v||(y&&((u=(d=p[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[S,v]),p!==t)););return(v-=i)===n||v%n==0&&v/n>=0}}},PSEUDO(e,t){var r,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ce.error("unsupported pseudo: "+e);return n[x]?n(t):n.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(((e,r)=>{for(var i,a=n(e,t),o=a.length;o--;)e[i=R(e,a[o])]=!(r[i]=a[o])})):e=>n(e,0,r)):n}},pseudos:{not:ue((e=>{var t=[],r=[],n=c(e.replace(z,"$1"));return n[x]?ue(((e,t,r,i)=>{for(var a,o=n(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):(e,i,a)=>(t[0]=e,n(t,null,a,r),t[0]=null,!r.pop())})),has:ue((e=>t=>ce(e,t).length>0)),contains:ue((e=>(e=e.replace(re,ne),t=>(t.textContent||a(t)).indexOf(e)>-1))),lang:ue((e=>(G.test(e||"")||ce.error("unsupported lang: "+e),e=e.replace(re,ne).toLowerCase(),t=>{var r;do{if(r=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}))),target(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:e=>e===m,focus:e=>e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex),enabled:fe(!1),disabled:fe(!0),checked(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:e=>!0===e.selected,empty(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:e=>!i.pseudos.empty(e),header:e=>Q.test(e.nodeName),input:e=>Y.test(e.nodeName),button(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((()=>[0])),last:me(((e,t)=>[t-1])),eq:me(((e,t,r)=>[r<0?r+t:r])),even:me(((e,t)=>{for(var r=0;r<t;r+=2)e.push(r);return e})),odd:me(((e,t)=>{for(var r=1;r<t;r+=2)e.push(r);return e})),lt:me(((e,t,r)=>{for(var n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:me(((e,t,r)=>{for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[r]=(e=>t=>"input"===t.nodeName.toLowerCase()&&t.type===e)(r);for(r in{submit:!0,reset:!0})i.pseudos[r]=(e=>t=>{var r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e})(r);function he(){}function ye(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function ve(e,t,r){var n=t.dir,i=t.next,a=i||n,o=r&&"parentNode"===a,s=D++;return t.first?(t,r,i)=>{for(;t=t[n];)if(1===t.nodeType||o)return e(t,r,i);return!1}:(t,r,c)=>{var l,u,d,p=[S,s];if(c){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,r,c))return!0}else for(;t=t[n];)if(1===t.nodeType||o)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[n]||t;else{if((l=u[a])&&l[0]===S&&l[1]===s)return p[2]=l[2];if(u[a]=p,p[2]=e(t,r,c))return!0}return!1}}function be(e){return e.length>1?(t,r,n)=>{for(var i=e.length;i--;)if(!e[i](t,r,n))return!1;return!0}:e[0]}function xe(e,t,r,n,i){for(var a,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(a=e[s])&&(r&&!r(a,n,i)||(o.push(a),l&&t.push(s)));return o}function Ee(e,t,r,n,i,a){return n&&!n[x]&&(n=Ee(n)),i&&!i[x]&&(i=Ee(i,a)),ue(((a,o,s,c)=>{var l,u,d,p=[],_=[],f=o.length,m=a||((e,t,r)=>{for(var n=0,i=t.length;n<i;n++)ce(e,t[n],r);return r})(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:xe(m,p,e,s,c),h=r?i||(a?e:f||n)?[]:o:g;if(r&&r(g,h,s,c),n)for(l=xe(h,_),n(l,[],s,c),u=l.length;u--;)(d=l[u])&&(h[_[u]]=!(g[_[u]]=d));if(a){if(i||e){if(i){for(l=[],u=h.length;u--;)(d=h[u])&&l.push(g[u]=d);i(null,h=[],l,c)}for(u=h.length;u--;)(d=h[u])&&(l=i?R(a,d):p[u])>-1&&(a[l]=!(o[l]=d))}}else h=xe(h===o?h.splice(f,h.length):h),i?i(null,o,h,c):O.apply(o,h)}))}function Se(e){for(var t,r,n,a=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],c=o?1:0,l=ve((e=>e===t),s,!0),d=ve((e=>R(t,e)>-1),s,!0),p=[(e,r,n)=>{var i=!o&&(n||r!==u)||((t=r).nodeType?l(e,r,n):d(e,r,n));return t=null,i}];c<a;c++)if(r=i.relative[e[c].type])p=[ve(be(p),r)];else{if((r=i.filter[e[c].type].apply(null,e[c].matches))[x]){for(n=++c;n<a&&!i.relative[e[n].type];n++);return Ee(c>1&&be(p),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(z,"$1"),r,c<n&&Se(e.slice(c,n)),n<a&&Se(e=e.slice(n)),n<a&&ye(e))}p.push(r)}return be(p)}function De(e,t){var r=t.length>0,n=e.length>0,a=(a,o,s,c,l)=>{var d,p,m,h=0,y="0",v=a&&[],b=[],x=u,E=a||n&&i.find.TAG("*",l),D=S+=null==x?1:Math.random()||.1,T=E.length;for(l&&(u=o==f||o||l);y!==T&&null!=(d=E[y]);y++){if(n&&d){for(p=0,o||d.ownerDocument==f||(_(d),s=!g);m=e[p++];)if(m(d,o||f,s)){c.push(d);break}l&&(S=D)}r&&((d=!m&&d)&&h--,a&&v.push(d))}if(h+=y,r&&y!==h){for(p=0;m=t[p++];)m(v,b,o,s);if(a){if(h>0)for(;y--;)v[y]||b[y]||(b[y]=P.call(c));b=xe(b)}O.apply(c,b),l&&!a&&b.length>0&&h+t.length>1&&ce.uniqueSort(c)}return l&&(S=D,u=x),v};return r?ue(a):a}he.prototype=i.filters=i.pseudos,i.setFilters=new he,s=ce.tokenize=(e,t)=>{var r,n,a,o,s,c,l,u=C[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=i.preFilter;s;){for(o in r&&!(n=W.exec(s))||(n&&(s=s.slice(n[0].length)||s),c.push(a=[])),r=!1,(n=J.exec(s))&&(r=n.shift(),a.push({value:r,type:n[0].replace(z," ")}),s=s.slice(r.length)),i.filter)!(n=q[o].exec(s))||l[o]&&!(n=l[o](n))||(r=n.shift(),a.push({value:r,type:o,matches:n}),s=s.slice(r.length));if(!r)break}return t?s.length:s?ce.error(e):C(e,c).slice(0)},c=ce.compile=(e,t)=>{var r,n=[],i=[],a=k[e+" "];if(!a){for(t||(t=s(e)),r=t.length;r--;)(a=Se(t[r]))[x]?n.push(a):i.push(a);(a=k(e,De(i,n))).selector=e}return a},l=ce.select=(e,t,r,n)=>{var a,o,l,u,d,p="function"==typeof e&&e,_=!n&&s(e=p.selector||e);if(r=r||[],1===_.length){if((o=_[0]=_[0].slice(0)).length>2&&"ID"===(l=o[0]).type&&9===t.nodeType&&g&&i.relative[o[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(re,ne),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(a=q.needsContext.test(e)?0:o.length;a--&&(l=o[a],!i.relative[u=l.type]);)if((d=i.find[u])&&(n=d(l.matches[0].replace(re,ne),te.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(a,1),!(e=n.length&&ye(o)))return O.apply(r,n),r;break}}return(p||c(e,_))(n,t,!g,r,!t||te.test(e)&&ge(t.parentNode)||t),r},n.sortStable=x.split("").sort(N).join("")===x,n.detectDuplicates=!!p,_(),n.sortDetached=de((e=>1&e.compareDocumentPosition(f.createElement("fieldset")))),de((e=>(e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href"))))||pe("type|href|height|width",((e,t,r)=>{if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&de((e=>(e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value"))))||pe("value",((e,t,r)=>{if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((e=>null==e.getAttribute("disabled")))||pe(L,((e,t,r)=>{var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}));var Te=t.Sizzle;ce.noConflict=()=>(t.Sizzle===ce&&(t.Sizzle=Te),ce),"function"==typeof define&&define.amd?define((()=>ce)):void 0!==e&&e.exports?e.exports=ce:t.Sizzle=ce})({document:{createElement(){return{}},nodeType:9,documentElement:{nodeType:1,nodeName:"HTML"}}}),e.exports})();function Zp(e,t={}){const r={currentLineWidth:0,indent:0,isWithinBody:!1,text:[]};if(t.prettyHtml?("number"!=typeof t.indentSpaces&&(t.indentSpaces=2),"boolean"!=typeof t.newLines&&(t.newLines=!0),t.approximateLineWidth=-1):(t.prettyHtml=!1,"boolean"!=typeof t.newLines&&(t.newLines=!1),"number"!=typeof t.indentSpaces&&(t.indentSpaces=0)),"number"!=typeof t.approximateLineWidth&&(t.approximateLineWidth=-1),"boolean"!=typeof t.removeEmptyAttributes&&(t.removeEmptyAttributes=!0),"boolean"!=typeof t.removeAttributeQuotes&&(t.removeAttributeQuotes=!1),"boolean"!=typeof t.removeBooleanAttributeQuotes&&(t.removeBooleanAttributeQuotes=!1),"boolean"!=typeof t.removeHtmlComments&&(t.removeHtmlComments=!1),"boolean"!=typeof t.serializeShadowRoot&&(t.serializeShadowRoot=!1),t.outerHtml)e_(e,t,r,!1);else for(let n=0,i=e.childNodes.length;n<i;n++)e_(e.childNodes[n],t,r,!1);return"\n"===r.text[0]&&r.text.shift(),"\n"===r.text[r.text.length-1]&&r.text.pop(),r.text.join("")}function e_(e,t,r,n){if(1===e.nodeType||n){const a=n?"mock:shadow-root":"http://www.w3.org/1999/xhtml"===(i=e).namespaceURI?i.nodeName.toLowerCase():i.nodeName;"body"===a&&(r.isWithinBody=!0);const o=null!=t.excludeTags&&t.excludeTags.includes(a);if(!1===o){const n=!!(t.newLines||t.indentSpaces>0)&&c_(e);if(t.newLines&&!n&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!n){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("<"+a),r.currentLineWidth+=a.length+1;const i=e.attributes.length,o=t.prettyHtml&&i>1?gp(e.attributes,!0):e.attributes;for(let e=0;e<i;e++){const n=o.item(e),i=n.name;if("style"===i)continue;let a=n.value;if(t.removeEmptyAttributes&&""===a&&p_.has(i))continue;const s=n.namespaceURI;if(null==s?(r.currentLineWidth+=i.length+1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"+i),r.currentLineWidth=0):r.text.push(" "+i)):"http://www.w3.org/XML/1998/namespace"===s?(r.text.push(" xml:"+i),r.currentLineWidth+=i.length+5):"http://www.w3.org/2000/xmlns/"===s?"xmlns"!==i?(r.text.push(" xmlns:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+i),r.currentLineWidth+=i.length+1):s===dp?(r.text.push(" xlink:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+s+":"+i),r.currentLineWidth+=s.length+i.length+2),t.prettyHtml&&"class"===i&&(a=n.value=a.split(" ").filter((e=>""!==e)).sort().join(" ").trim()),""===a){if(t.removeBooleanAttributeQuotes&&__.has(i))continue;if(t.removeEmptyAttributes&&i.startsWith("data-"))continue}t.removeAttributeQuotes&&o_.test(a)?(r.text.push("="+s_(a,!0)),r.currentLineWidth+=a.length+1):(r.text.push('="'+s_(a,!0)+'"'),r.currentLineWidth+=a.length+3)}if(e.hasAttribute("style")){const n=e.style.cssText;t.approximateLineWidth>0&&r.currentLineWidth+n.length+10>t.approximateLineWidth?(r.text.push(`\nstyle="${n}">`),r.currentLineWidth=0):(r.text.push(` style="${n}">`),r.currentLineWidth+=n.length+10)}else r.text.push(">"),r.currentLineWidth+=1}if(!1===d_.has(a)){if(t.serializeShadowRoot&&null!=e.shadowRoot&&(r.indent=r.indent+t.indentSpaces,e_(e.shadowRoot,t,r,!0),r.indent=r.indent-t.indentSpaces,t.newLines&&(0===e.childNodes.length||1===e.childNodes.length&&3===e.childNodes[0].nodeType&&""===e.childNodes[0].nodeValue.trim()))){r.text.push("\n"),r.currentLineWidth=0;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}if(null==t.excludeTagContent||!1===t.excludeTagContent.includes(a)){const n="template"===a?e.content.childNodes:e.childNodes,i=n.length;if(i>0&&(1!==i||3!==n[0].nodeType||"string"==typeof n[0].nodeValue&&""!==n[0].nodeValue.trim())){const a=!!(t.newLines||t.indentSpaces>0)&&c_(e);!a&&t.indentSpaces>0&&!1===o&&(r.indent=r.indent+t.indentSpaces);for(let e=0;e<i;e++)e_(n[e],t,r,!1);if(!1===o&&(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a)){r.indent=r.indent-t.indentSpaces;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}}!1===o&&(r.text.push("</"+a+">"),r.currentLineWidth+=a.length+3)}}t.approximateLineWidth>0&&f_.has(a)&&(r.text.push("\n"),r.currentLineWidth=0),"body"===a&&(r.isWithinBody=!1)}else if(3===e.nodeType){let n=e.nodeValue;if("string"==typeof n){const i=n.trim();if(""===i)c_(e)?(r.text.push(n),r.currentLineWidth+=n.length):t.approximateLineWidth>0&&!r.isWithinBody||t.prettyHtml||(r.currentLineWidth+=1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"),r.currentLineWidth=0):r.text.push(" "));else{const a=!!(t.newLines||t.indentSpaces>0||t.prettyHtml)&&c_(e);if(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}let o=n.length;if(o>0){const s=null!=e.parentNode&&1===e.parentNode.nodeType?e.parentNode.nodeName:null;l_.has(s)?(c_(e)?r.text.push(n):(r.text.push(i),o=i.length),r.currentLineWidth+=o):t.prettyHtml&&!a?(r.text.push(s_(n.replace(/\s\s+/g," ").trim(),!1)),r.currentLineWidth+=o):(c_(e)||(/\s/.test(n.charAt(0))&&(n=" "+n.trimLeft()),o=n.length,o>1&&/\s/.test(n.charAt(o-1))&&(t.approximateLineWidth>0&&r.currentLineWidth+o>t.approximateLineWidth?(n=n.trimRight()+"\n",r.currentLineWidth=0):n=n.trimRight()+" ")),r.currentLineWidth+=o,r.text.push(s_(n,!1)))}}}}else if(8===e.nodeType){const n=e.nodeValue;if(t.removeHtmlComments&&!(n.startsWith("r.")||n.startsWith("o.")||n.startsWith("s.")||n.startsWith("t.")))return;const i=!!(t.newLines||t.indentSpaces>0)&&c_(e);if(t.newLines&&!i&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!i){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("\x3c!--"+n+"--\x3e"),r.currentLineWidth+=n.length+7}else 10===e.nodeType&&r.text.push("<!doctype html>");var i}const t_=/&/g,r_=/\u00a0/g,n_=/"/g,i_=/</g,a_=/>/g,o_=/^[^ \t\n\f\r"'`=<>\/\\-]+$/;function s_(e,t){return e=e.replace(t_,"&amp;").replace(r_,"&nbsp;"),t?e.replace(n_,"&quot;"):e.replace(i_,"&lt;").replace(a_,"&gt;")}function c_(e){for(;null!=e;){if(u_.has(e.nodeName))return!0;e=e.parentNode}return!1}const l_=new Set(["STYLE","SCRIPT","IFRAME","NOSCRIPT","XMP","NOEMBED","NOFRAMES","PLAINTEXT"]),u_=new Set(["CODE","OUTPUT","PLAINTEXT","PRE","SCRIPT","TEMPLATE","TEXTAREA"]),d_=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","meta","param","source","trace","wbr"]),p_=new Set(["class","dir","id","lang","name","title"]),__=new Set(["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","nomodule","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"]),f_=new Set(["html","body","head","iframe","meta","link","base","title","script","style"]);class m_{constructor(e,t,r,n){this.ownerDocument=e,this.nodeType=t,this.nodeName=r,this._nodeValue=n,this.parentNode=null,this.childNodes=[]}appendChild(e){if(11===e.nodeType){const t=e.childNodes.slice();for(const e of t)this.appendChild(e)}else e.remove(),e.parentNode=this,this.childNodes.push(e),wp(this.ownerDocument,e);return e}append(...e){e.forEach((e=>{const t="object"==typeof e&&null!==e&&"nodeType"in e;this.appendChild(t?e:this.ownerDocument.createTextNode(String(e)))}))}prepend(...e){const t=this.firstChild;e.forEach((e=>{const r="object"==typeof e&&null!==e&&"nodeType"in e;t&&this.insertBefore(r?e:this.ownerDocument.createTextNode(String(e)),t)}))}cloneNode(e){throw new Error(`invalid node type to clone: ${this.nodeType}, deep: ${e}`)}compareDocumentPosition(e){return-1}get firstChild(){return this.childNodes[0]||null}insertBefore(e,t){if(11===e.nodeType)for(let r=0,n=e.childNodes.length;r<n;r++)b_(this,e.childNodes[r],t);else b_(this,e,t);return e}get isConnected(){let e=this;for(;null!=e;){if(9===e.nodeType)return!0;e=e.parentNode,null!=e&&11===e.nodeType&&(e=e.host)}return!1}isSameNode(e){return this===e}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)+1;return this.parentNode.childNodes[e]||null}return null}get nodeValue(){var e;return null!==(e=this._nodeValue)&&void 0!==e?e:""}set nodeValue(e){this._nodeValue=e}get parentElement(){return this.parentNode||null}set parentElement(e){this.parentNode=e}get previousSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)-1;return this.parentNode.childNodes[e]||null}return null}contains(e){if(e===this)return!0;const t=Array.from(this.childNodes);return!!t.includes(e)||t.some((t=>this.contains.bind(t)(e)))}removeChild(e){const t=this.childNodes.indexOf(e);if(!(t>-1))throw new Error("node not found within childNodes during removeChild");if(this.childNodes.splice(t,1),1===this.nodeType){const t=this.isConnected;e.parentNode=null,!0===t&&Pp(e)}else e.parentNode=null;return e}remove(){null!=this.parentNode&&this.parentNode.removeChild(this)}replaceChild(e,t){return t.parentNode===this?(this.insertBefore(e,t),t.remove(),e):null}get textContent(){var e;return null!==(e=this._nodeValue)&&void 0!==e?e:""}set textContent(e){this._nodeValue=String(e)}}m_.ELEMENT_NODE=1,m_.TEXT_NODE=3,m_.PROCESSING_INSTRUCTION_NODE=7,m_.COMMENT_NODE=8,m_.DOCUMENT_NODE=9,m_.DOCUMENT_TYPE_NODE=10,m_.DOCUMENT_FRAGMENT_NODE=11;class g_ extends m_{constructor(e,t){super(e,1,"string"==typeof t?t:null,null),this.namespaceURI=null,this.__shadowRoot=null,this.__attributeMap=null}addEventListener(e,t){Up(this,e,t)}attachShadow(e){const t=this.ownerDocument.createDocumentFragment();return this.shadowRoot=t,t}blur(){Wp(this,new Bp("blur",{relatedTarget:null,bubbles:!0,cancelable:!0,composed:!0}))}get shadowRoot(){return this.__shadowRoot||null}set shadowRoot(e){null!=e?(e.host=this,this.__shadowRoot=e):delete this.__shadowRoot}get attributes(){if(null==this.__attributeMap){const e=_p(!1);return this.__attributeMap=e,e}return this.__attributeMap}set attributes(e){this.__attributeMap=e}get children(){return this.childNodes.filter((e=>1===e.nodeType))}get childElementCount(){return this.childNodes.filter((e=>1===e.nodeType)).length}get className(){return this.getAttributeNS(null,"class")||""}set className(e){this.setAttributeNS(null,"class",e)}get classList(){return new vp(this)}click(){Wp(this,new Rp("click",{bubbles:!0,cancelable:!0,composed:!0}))}cloneNode(e){return null}closest(e){let t=this;for(;null!=t;){if(t.matches(e))return t;t=t.parentNode}return null}get dataset(){return function(e){const t={},r=e.attributes,n=r.length;for(let e=0;e<n;e++){const n=r.item(e),a=n.nodeName;a.startsWith("data-")&&(t[(i=a,(i=String(i).slice(5)).split("-").map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.slice(1):e.charAt(0).toUpperCase()+e.slice(1))).join(""))]=n.nodeValue)}var i;return new Proxy(t,{get:(e,r)=>t[r],set(t,r,n){const i="data-"+String(r).replace(/([A-Z0-9])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase();return e.setAttribute(i,n),!0}})}(this)}get dir(){return this.getAttributeNS(null,"dir")||""}set dir(e){this.setAttributeNS(null,"dir",e)}dispatchEvent(e){return Wp(this,e)}get firstElementChild(){return this.children[0]||null}focus(e){Wp(this,new Bp("focus",{relatedTarget:null,bubbles:!0,cancelable:!0,composed:!0}))}getAttribute(e){if("style"===e)return null!=this.__style&&this.__style.length>0?this.style.cssText:null;const t=this.attributes.getNamedItem(e);return null!=t?t.value:null}getAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);return null!=r?r.value:null}getBoundingClientRect(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}getRootNode(e){const t=null!=e&&!0===e.composed;let r=this;for(;null!=r.parentNode;)r=r.parentNode,!0===t&&null==r.parentNode&&null!=r.host&&(r=r.host);return r}get draggable(){return"true"===this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}hasChildNodes(){return this.childNodes.length>0}get id(){return this.getAttributeNS(null,"id")||""}set id(e){this.setAttributeNS(null,"id",e)}get innerHTML(){return 0===this.childNodes.length?"":Zp(this,{newLines:!1,indentSpaces:0})}set innerHTML(e){var t;if(!0===l_.has(null!==(t=this.nodeName)&&void 0!==t?t:""))D_(this,e);else{for(let e=this.childNodes.length-1;e>=0;e--)this.removeChild(this.childNodes[e]);if("string"==typeof e){const t=Xp(this.ownerDocument,e);for(;t.childNodes.length>0;)this.appendChild(t.childNodes[0])}}}get innerText(){const e=[];return S_(this.childNodes,e),e.join("")}set innerText(e){D_(this,e)}insertAdjacentElement(e,t){return"beforebegin"===e?b_(this.parentNode,t,this):"afterbegin"===e?this.prepend(t):"beforeend"===e?this.appendChild(t):"afterend"===e&&b_(this.parentNode,t,this.nextSibling),t}insertAdjacentHTML(e,t){const r=Xp(this.ownerDocument,t);if("beforebegin"===e)for(;r.childNodes.length>0;)b_(this.parentNode,r.childNodes[0],this);else if("afterbegin"===e)for(;r.childNodes.length>0;)this.prepend(r.childNodes[r.childNodes.length-1]);else if("beforeend"===e)for(;r.childNodes.length>0;)this.appendChild(r.childNodes[0]);else if("afterend"===e)for(;r.childNodes.length>0;)b_(this.parentNode,r.childNodes[r.childNodes.length-1],this.nextSibling)}insertAdjacentText(e,t){const r=this.ownerDocument.createTextNode(t);"beforebegin"===e?b_(this.parentNode,r,this):"afterbegin"===e?this.prepend(r):"beforeend"===e?this.appendChild(r):"afterend"===e&&b_(this.parentNode,r,this.nextSibling)}hasAttribute(e){return"style"===e?null!=this.__style&&this.__style.length>0:null!==this.getAttribute(e)}hasAttributeNS(e,t){return null!==this.getAttributeNS(e,t)}get hidden(){return this.hasAttributeNS(null,"hidden")}set hidden(e){!0===e?this.setAttributeNS(null,"hidden",""):this.removeAttributeNS(null,"hidden")}get lang(){return this.getAttributeNS(null,"lang")||""}set lang(e){this.setAttributeNS(null,"lang",e)}get lastElementChild(){const e=this.children;return e[e.length-1]||null}matches(e){return((e,t)=>Qp.matches(e,[t]).length>0)(e,this)}get nextElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)+1;return e.children[t]||null}return null}get outerHTML(){return Zp(this,{newLines:!1,outerHtml:!0,indentSpaces:0})}get previousElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)-1;return e.children[t]||null}return null}getElementsByClassName(e){const t=[];return h_(this,e.trim().split(" ").filter((e=>e.length>0)),t),t}getElementsByTagName(e){const t=[];return y_(this,e.toLowerCase(),t),t}querySelector(e){return((e,t)=>Qp(e,t)[0]||null)(e,this)}querySelectorAll(e){return((e,t)=>Qp(e,t))(e,this)}removeAttribute(e){if("style"===e)delete this.__style;else{const t=this.attributes.getNamedItem(e);null!=t&&(this.attributes.removeNamedItemNS(t),!0===Op(this)&&Ip(this,e,t.value,null))}}removeAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);null!=r&&(this.attributes.removeNamedItemNS(r),!0===Op(this)&&Ip(this,t,r.value,null))}removeEventListener(e,t){Vp(this,e,t)}setAttribute(e,t){if("style"===e)this.style=t;else{const r=this.attributes;let n=r.getNamedItem(e);const i=Op(this);if(null!=n)if(!0===i){const e=n.value;n.value=t,e!==n.value&&Ip(this,n.name,e,n.value)}else n.value=t;else r.caseInsensitive&&(e=e.toLowerCase()),n=new yp(e,t),r.__items.push(n),!0===i&&Ip(this,e,null,n.value)}}setAttributeNS(e,t,r){const n=this.attributes;let i=n.getNamedItemNS(e,t);const a=Op(this);if(null!=i)if(!0===a){const e=i.value;i.value=r,e!==i.value&&Ip(this,i.name,e,i.value)}else i.value=r;else i=new yp(t,r,e),n.__items.push(i),!0===a&&Ip(this,t,null,i.value)}get style(){return null==this.__style&&(this.__style=Sp()),this.__style}set style(e){"string"==typeof e?(null==this.__style&&(this.__style=Sp()),this.__style.cssText=e):this.__style=e}get tabIndex(){return parseInt(this.getAttributeNS(null,"tabindex")||"-1",10)}set tabIndex(e){this.setAttributeNS(null,"tabindex",e)}get tagName(){var e;return null!==(e=this.nodeName)&&void 0!==e?e:""}set tagName(e){this.nodeName=e}get textContent(){const e=[];return S_(this.childNodes,e),e.join("")}set textContent(e){D_(this,e)}get title(){return this.getAttributeNS(null,"title")||""}set title(e){this.setAttributeNS(null,"title",e)}animate(){}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}requestFullscreen(){}scrollBy(){}scrollTo(){}scrollIntoView(){}toString(e){return Zp(this,e)}}function h_(e,t,r){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,n=t.length;e<n;e++)i.classList.contains(t[e])&&r.push(i);h_(i,t,r)}}function y_(e,t,r){var n;const i=e.children;for(let e=0,a=i.length;e<a;e++){const a=i[e];"*"!==t&&(null!==(n=a.nodeName)&&void 0!==n?n:"").toLowerCase()!==t||r.push(a),y_(a,t,r)}}function v_(e){Kp(e),delete e.__attributeMap,delete e.__shadowRoot,delete e.__style}function b_(e,t,r){if(t!==r){if(t.remove(),t.parentNode=e,t.ownerDocument=e.ownerDocument,null!=r){const n=e.childNodes.indexOf(r);if(!(n>-1))throw new Error("referenceNode not found in parentNode.childNodes");e.childNodes.splice(n,0,t)}else e.childNodes.push(t);wp(e.ownerDocument,t)}return t}class x_ extends g_{constructor(e,t){super(e,"string"==typeof t?t.toUpperCase():null),this.namespaceURI="http://www.w3.org/1999/xhtml"}get tagName(){var e;return null!==(e=this.nodeName)&&void 0!==e?e:""}set tagName(e){this.nodeName=e}get attributes(){if(null==this.__attributeMap){const e=_p(!0);return this.__attributeMap=e,e}return this.__attributeMap}set attributes(e){this.__attributeMap=e}}class E_ extends m_{constructor(e,t){super(e,3,"#text",t)}cloneNode(e){return new E_(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}get data(){return this.nodeValue}set data(e){this.nodeValue=e}get wholeText(){if(null!=this.parentNode){const e=[];for(let t=0,r=this.parentNode.childNodes.length;t<r;t++){const r=this.parentNode.childNodes[t];3===r.nodeType&&e.push(r.nodeValue)}return e.join("")}return this.nodeValue}}function S_(e,t){for(let r=0,n=e.length;r<n;r++){const n=e[r];3===n.nodeType?t.push(n.nodeValue):1===n.nodeType&&S_(n.childNodes,t)}}function D_(e,t){for(let t=e.childNodes.length-1;t>=0;t--)e.removeChild(e.childNodes[t]);const r=new E_(e.ownerDocument,t);e.appendChild(r)}class T_ extends m_{constructor(e,t){super(e,8,"#comment",t)}cloneNode(e){return new T_(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}}class C_ extends x_{constructor(e){super(e,null),this.nodeName="#document-fragment",this.nodeType=11}getElementById(e){return kf(this,e)}cloneNode(e){const t=new C_(null);if(e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e];if(1===r.nodeType||3===r.nodeType||8===r.nodeType){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}}return t}}class k_ extends x_{constructor(e){super(e,"!DOCTYPE"),this.nodeType=10,this.setAttribute("html","")}}class A_{constructor(e){this.parentStyleSheet=e,this.cssText="",this.type=0}}class N_{constructor(e){this.type="text/css",this.parentStyleSheet=null,this.cssRules=[],this.ownerNode=e}get rules(){return this.cssRules}set rules(e){this.cssRules=e}deleteRule(e){e>=0&&e<this.cssRules.length&&(this.cssRules.splice(e,1),P_(this.ownerNode))}insertRule(e,t=0){"number"!=typeof t&&(t=0),t<0&&(t=0),t>this.cssRules.length&&(t=this.cssRules.length);const r=new A_(this);return r.cssText=e,this.cssRules.splice(t,0,r),P_(this.ownerNode),t}}function w_(e){const t=[];for(let r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r].nodeValue);return t.join("")}function F_(e,t){const r=e.sheet;r.cssRules.length=0,r.insertRule(t),P_(e)}function P_(e){const t=e.childNodes.length;if(t>1)for(let r=t-1;r>=1;r--)e.removeChild(e.childNodes[r]);else t<1&&e.appendChild(e.ownerDocument.createTextNode(""));e.childNodes[0].nodeValue=e.sheet.cssRules.map((e=>e.cssText)).join("\n")}function I_(e,t){if("string"!=typeof t||""===t||!/^[a-z0-9-_:]+$/i.test(t))throw new Error(`The tag name provided (${t}) is not a valid name.`);switch(t=t.toLowerCase()){case"a":return new O_(e);case"base":return new X_(e);case"button":return new M_(e);case"canvas":return new Z_(e);case"form":return new B_(e);case"img":return new R_(e);case"input":return new L_(e);case"link":return new j_(e);case"meta":return new U_(e);case"script":return new V_(e);case"style":return new J_(e);case"template":return new Y_(e);case"title":return new Q_(e)}if(null!=e&&t.includes("-")){const r=e.defaultView;if(null!=r&&null!=r.customElements)return kp(r.customElements,e,t)}return new x_(e,t)}class O_ extends x_{constructor(e){super(e,"a")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}get pathname(){return new URL(this.href).pathname}}class M_ extends x_{constructor(e){super(e,"button")}}tf(M_.prototype,{type:String},{type:"submit"});class R_ extends x_{constructor(e){super(e,"img")}get draggable(){return"false"!==this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}get src(){return ef(this,"src")}set src(e){this.setAttribute("src",e)}}tf(R_.prototype,{height:Number,width:Number});class L_ extends x_{constructor(e){super(e,"input")}get list(){const e=this.getAttribute("list");return e?this.ownerDocument.getElementById(e):null}}tf(L_.prototype,{accept:String,autocomplete:String,autofocus:Boolean,capture:String,checked:Boolean,disabled:Boolean,form:String,formaction:String,formenctype:String,formmethod:String,formnovalidate:String,formtarget:String,height:Number,inputmode:String,max:String,maxLength:Number,min:String,minLength:Number,multiple:Boolean,name:String,pattern:String,placeholder:String,required:Boolean,readOnly:Boolean,size:Number,spellCheck:Boolean,src:String,step:String,type:String,value:String,width:Number},{type:"text"});class B_ extends x_{constructor(e){super(e,"form")}}tf(B_.prototype,{name:String});class j_ extends x_{constructor(e){super(e,"link")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}}tf(j_.prototype,{crossorigin:String,media:String,rel:String,type:String});class U_ extends x_{constructor(e){super(e,"meta")}}tf(U_.prototype,{charset:String,content:String,name:String});class V_ extends x_{constructor(e){super(e,"script")}get src(){return ef(this,"src")}set src(e){this.setAttribute("src",e)}}tf(V_.prototype,{type:String});class K_{constructor(){this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this.m11=1,this.m12=0,this.m13=0,this.m14=0,this.m21=0,this.m22=1,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m41=0,this.m42=0,this.m43=0,this.m44=1,this.is2D=!0,this.isIdentity=!0}static fromMatrix(){return new K_}inverse(){return new K_}flipX(){return new K_}flipY(){return new K_}multiply(){return new K_}rotate(){return new K_}rotateAxisAngle(){return new K_}rotateFromVector(){return new K_}scale(){return new K_}scaleNonUniform(){return new K_}skewX(){return new K_}skewY(){return new K_}toJSON(){}toString(){}transformPoint(){return new z_}translate(){return new K_}}class z_{constructor(){this.w=1,this.x=0,this.y=0,this.z=0}toJSON(){}matrixTransform(){return new K_}}class W_{constructor(){this.height=10,this.width=10,this.x=0,this.y=0}}class J_ extends x_{constructor(e){super(e,"style"),this.sheet=new N_(this)}get innerHTML(){return w_(this)}set innerHTML(e){F_(this,e)}get innerText(){return w_(this)}set innerText(e){F_(this,e)}get textContent(){return w_(this)}set textContent(e){F_(this,e)}}class H_ extends g_{get ownerSVGElement(){return null}get viewportElement(){return null}onunload(){}get pathLength(){return 0}isPointInFill(e){return!1}isPointInStroke(e){return!1}getTotalLength(){return 0}}class $_ extends H_{getBBox(e){return new W_}getCTM(){return new K_}getScreenCTM(){return new K_}}class G_ extends $_{createSVGPoint(){return new z_}}class q_ extends $_{getComputedTextLength(){return 0}}class X_ extends x_{constructor(e){super(e,"base")}get href(){return ef(this,"href")}set href(e){this.setAttribute("href",e)}}class Y_ extends x_{constructor(e){super(e,"template"),this.content=new C_(e)}get innerHTML(){return this.content.innerHTML}set innerHTML(e){this.content.innerHTML=e}cloneNode(e){const t=new Y_(null);t.attributes=gp(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),t.content=this.content.cloneNode(e),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t}}class Q_ extends x_{constructor(e){super(e,"title")}get text(){return this.textContent}set text(e){this.textContent=e}}class Z_ extends x_{constructor(e){super(e,"canvas")}getContext(){return{fillRect(){},clearRect(){},getImageData:(e,t,r,n)=>({data:new Array(r*n*4)}),putImageData(){},createImageData:()=>[],setTransform(){},drawImage(){},save(){},fillText(){},restore(){},beginPath(){},moveTo(){},lineTo(){},closePath(){},stroke(){},translate(){},scale(){},rotate(){},arc(){},fill(){},measureText(){return{width:0}},transform(){},rect(){},clip(){}}}}function ef(e,t){const r=e.getAttribute(t)||"";if(null!=e.ownerDocument){const t=e.ownerDocument.defaultView;if(null!=t){const e=t.location;if(null!=e)try{return new URL(r,e.href).href}catch(e){}}}return r.replace(/\'|\"/g,"").trim()}function tf(e,t,r={}){Object.keys(t).forEach((n=>{const i=t[n],a=r[n];i===Boolean?Object.defineProperty(e,n,{get(){return this.hasAttribute(n)},set(e){e?this.setAttribute(n,""):this.removeAttribute(n)}}):i===Number?Object.defineProperty(e,n,{get(){const e=this.getAttribute(n);return e?parseInt(e,10):void 0===a?0:a},set(e){this.setAttribute(n,e)}}):Object.defineProperty(e,n,{get(){return this.hasAttribute(n)?this.getAttribute(n):a||""},set(e){this.setAttribute(n,e)}})}))}let rf;g_.prototype.cloneNode=function(e){const t=I_(this.ownerDocument,this.nodeName);t.attributes=gp(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t};const nf=()=>{};class af{constructor(e){if(this._values=[],"object"==typeof e)if("function"==typeof e[Symbol.iterator]){const t=[];for(const r of e)"function"==typeof r[Symbol.iterator]&&t.push([...r]);for(const e of t)this.append(e[0],e[1])}else for(const t in e)this.append(t,e[t])}append(e,t){this._values.push([e,t+""])}delete(e){e=e.toLowerCase();for(let t=this._values.length-1;t>=0;t--)this._values[t][0].toLowerCase()===e&&this._values.splice(t,1)}entries(){const e=[];for(const t of this.keys())e.push([t,this.get(t)]);let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}forEach(e){for(const t of this.entries())e(t[1],t[0])}get(e){const t=[];e=e.toLowerCase();for(const r of this._values)r[0].toLowerCase()===e&&t.push(r[1]);return t.length>0?t.join(", "):null}has(e){e=e.toLowerCase();for(const t of this._values)if(t[0].toLowerCase()===e)return!0;return!1}keys(){const e=[];for(const t of this._values){const r=t[0].toLowerCase();e.includes(r)||e.push(r)}let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}set(e,t){for(const r of this._values)if(r[0].toLowerCase()===e.toLowerCase())return r[1]=t+"",void 0;this.append(e,t)}values(){const e=this._values;let t=-1;return{next(){t++;const r=!e[t];return{value:r?void 0:e[t][1],done:r}},[Symbol.iterator](){return this}}}[Symbol.iterator](){return this.entries()}}class of{constructor(e,t={}){this._method="GET",this._url="/",this.bodyUsed=!1,this.cache="default",this.credentials="same-origin",this.integrity="",this.keepalive=!1,this.mode="cors",this.redirect="follow",this.referrer="about:client",this.referrerPolicy="","string"==typeof e?this.url=e:e&&(Object.assign(this,e),this.headers=new af(e.headers)),Object.assign(this,t),t.headers&&(this.headers=new af(t.headers)),this.headers||(this.headers=new af)}get url(){return"string"==typeof this._url?new URL(this._url,location.href).href:new URL("/",location.href).href}set url(e){this._url=e}get method(){return"string"==typeof this._method?this._method.toUpperCase():"GET"}set method(e){this._method=e}clone(){const e={...this};return e.headers=new af(this.headers),new of(e)}}class sf{constructor(e,t={}){this.ok=!0,this.status=200,this.statusText="",this.type="default",this.url="",this._body=e,t&&Object.assign(this,t),this.headers=new af(t.headers)}async json(){return JSON.parse(this._body)}async text(){return this._body}clone(){const e={...this};return e.headers=new af(this.headers),new sf(this._body,e)}}const cf=[["CustomEvent",class extends Rp{constructor(e,t){super(e),this.detail=null,null!=t&&Object.assign(this,t)}}],["Event",Rp],["Headers",af],["FocusEvent",Bp],["KeyboardEvent",class extends Rp{constructor(e,t){super(e),this.code="",this.key="",this.altKey=!1,this.ctrlKey=!1,this.metaKey=!1,this.shiftKey=!1,this.location=0,this.repeat=!1,null!=t&&Object.assign(this,t)}}],["MouseEvent",class extends Rp{constructor(e,t){super(e),this.screenX=0,this.screenY=0,this.clientX=0,this.clientY=0,this.ctrlKey=!1,this.shiftKey=!1,this.altKey=!1,this.metaKey=!1,this.button=0,this.buttons=0,this.relatedTarget=null,null!=t&&Object.assign(this,t)}}],["Request",of],["Response",sf],["DOMParser",class{parseFromString(e,t){return"text/html"!==t&&console.error("XML parsing not implemented yet, continuing as html"),((e,t=null)=>(null==t&&(null==rf&&(rf=new Df),t=rf),qp(t,e)))(e)}}],["HTMLAnchorElement",O_],["HTMLBaseElement",X_],["HTMLButtonElement",M_],["HTMLCanvasElement",Z_],["HTMLFormElement",B_],["HTMLImageElement",R_],["HTMLInputElement",L_],["HTMLLinkElement",j_],["HTMLMetaElement",U_],["HTMLScriptElement",V_],["HTMLStyleElement",J_],["HTMLTemplateElement",Y_],["HTMLTitleElement",Q_]];class lf{constructor(){this.items=[]}get length(){return this.items.length}back(){this.go(-1)}forward(){this.go(1)}go(e){}pushState(e,t,r){}replaceState(e,t,r){}}class uf{constructor(){}disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}class df{constructor(){this.ancestorOrigins=null,this.protocol="",this.host="",this.hostname="",this.port="",this.pathname="",this.search="",this.hash="",this.username="",this.password="",this.origin="",this._href=""}get href(){return this._href}set href(e){const t=new URL(e,"http://mockdoc.stenciljs.com");this._href=t.href,this.protocol=t.protocol,this.host=t.host,this.hostname=t.hostname,this.port=t.port,this.pathname=t.pathname,this.search=t.search,this.hash=t.hash,this.username=t.username,this.password=t.password,this.origin=t.origin}assign(e){}reload(e){}replace(e){}toString(){return this.href}}class pf{constructor(){this.appCodeName="MockNavigator",this.appName="MockNavigator",this.appVersion="MockNavigator",this.platform="MockNavigator",this.userAgent="MockNavigator"}}class _f{constructor(){this.timeOrigin=Date.now(),this.eventCounts=new Map}addEventListener(){}clearMarks(){}clearMeasures(){}clearResourceTimings(){}dispatchEvent(){return!0}getEntries(){return[]}getEntriesByName(){return[]}getEntriesByType(){return[]}mark(){}measure(){}get navigation(){return{}}now(){return Date.now()-this.timeOrigin}get onresourcetimingbufferfull(){return null}removeEventListener(){}setResourceTimingBufferSize(){}get timing(){return{}}toJSON(){}}class ff{constructor(){this.items=new Map}key(e){}getItem(e){return e=String(e),this.items.has(e)?this.items.get(e):null}setItem(e,t){null==t&&(t="null"),this.items.set(String(e),String(t))}removeItem(e){this.items.delete(String(e))}clear(){this.items.clear()}}const mf=clearInterval,gf=clearTimeout,hf=setInterval,yf=setTimeout,vf=URL;class bf{constructor(e=null){this.document=!1!==e?new Df(e,this):null,this.performance=new _f,this.customElements=new Cp(this),this.console={debug:nf,error:nf,info:nf,log:nf,warn:nf,dir:nf,dirxml:nf,table:nf,trace:nf,group:nf,groupCollapsed:nf,groupEnd:nf,clear:nf,count:nf,countReset:nf,assert:nf,profile:nf,profileEnd:nf,time:nf,timeLog:nf,timeEnd:nf,timeStamp:nf,context:nf,memory:nf},Ef(this),Sf(this)}addEventListener(e,t){Up(this,e,t)}alert(e){this.console?this.console.debug(e):console.debug(e)}blur(){}cancelAnimationFrame(e){this.__clearTimeout(e)}cancelIdleCallback(e){this.__clearTimeout(e)}get CharacterData(){if(null==this.__charDataCstr){const e=this.document;this.__charDataCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct CharacterData")}}}return this.__charDataCstr}set CharacterData(e){this.__charDataCstr=e}clearInterval(e){this.__clearInterval(e)}clearTimeout(e){this.__clearTimeout(e)}close(){!(e=>{if(null!=e){e.__timeouts&&(e.__timeouts.forEach((e=>{mf(e),gf(e)})),e.__timeouts.clear()),e.customElements&&e.customElements.clear&&e.customElements.clear(),(e=>{if(null!=e){Kp(e);const t=e.documentElement;if(null!=t){v_(t);for(let e=0,r=t.childNodes.length;e<r;e++){const r=t.childNodes[e];v_(r),r.childNodes.length=0}}for(const t in e)e.hasOwnProperty(t)&&!Cf.has(t)&&delete e[t];try{e.nodeName="#document"}catch(e){}try{e.nodeType=9}catch(e){}try{e.cookie=""}catch(e){}try{e.referrer=""}catch(e){}}})(e.document),(e=>{if(null!=e)try{e.timeOrigin=Date.now()}catch(e){}})(e.performance);for(const t in e)e.hasOwnProperty(t)&&"document"!==t&&"performance"!==t&&"customElements"!==t&&delete e[t];if(Ef(e),Sf(e),Kp(e),null!=e.document)try{e.document.defaultView=e}catch(e){}e.fetch=null,e.Headers=null,e.Request=null,e.Response=null,e.FetchError=null}})(this)}confirm(){return!1}get CSS(){return{supports:()=>!0}}get Document(){if(null==this.__docCstr){const e=this;this.__docCstr=class extends Df{constructor(){throw super(!1,e),new Error("Illegal constructor: cannot construct Document")}}}return this.__docCstr}set Document(e){this.__docCstr=e}get DocumentFragment(){if(null==this.__docFragCstr){const e=this.document;this.__docFragCstr=class extends C_{constructor(){throw super(e),new Error("Illegal constructor: cannot construct DocumentFragment")}}}return this.__docFragCstr}set DocumentFragment(e){this.__docFragCstr=e}get DocumentType(){if(null==this.__docTypeCstr){const e=this.document;this.__docTypeCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct DocumentType")}}}return this.__docTypeCstr}set DocumentType(e){this.__docTypeCstr=e}get DOMTokenList(){return null==this.__domTokenListCstr&&(this.__domTokenListCstr=class{}),this.__domTokenListCstr}set DOMTokenList(e){this.__domTokenListCstr=e}dispatchEvent(e){return Wp(this,e)}get Element(){if(null==this.__elementCstr){const e=this.document;this.__elementCstr=class extends g_{constructor(){throw super(e,""),new Error("Illegal constructor: cannot construct Element")}}}return this.__elementCstr}fetch(e,t){if("function"==typeof fetch)return fetch(e,t);throw new Error("fetch() not implemented")}focus(){}getComputedStyle(e){return{cssText:"",length:0,parentRule:null,getPropertyPriority(){return null},getPropertyValue(){return""},item(){return null},removeProperty(){return null},setProperty(){return null}}}get globalThis(){return this}get history(){return null==this.__history&&(this.__history=new lf),this.__history}set history(e){this.__history=e}get JSON(){return JSON}get HTMLElement(){if(null==this.__htmlElementCstr){const e=this.document;this.__htmlElementCstr=class extends x_{constructor(){super(e,"");const t=this.constructor.observedAttributes;Array.isArray(t)&&"function"==typeof this.attributeChangedCallback&&t.forEach((e=>{const t=this.getAttribute(e);null!=t&&this.attributeChangedCallback(e,null,t)}))}}}return this.__htmlElementCstr}set HTMLElement(e){this.__htmlElementCstr=e}get IntersectionObserver(){return uf}get localStorage(){return null==this.__localStorage&&(this.__localStorage=new ff),this.__localStorage}set localStorage(e){this.__localStorage=e}get location(){return null==this.__location&&(this.__location=new df),this.__location}set location(e){"string"==typeof e?(null==this.__location&&(this.__location=new df),this.__location.href=e):this.__location=e}matchMedia(){return{matches:!1}}get Node(){if(null==this.__nodeCstr){const e=this.document;this.__nodeCstr=class extends m_{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct Node")}}}return this.__nodeCstr}get NodeList(){if(null==this.__nodeListCstr){const e=this.document;this.__nodeListCstr=class extends class{constructor(e,t,r){this.ownerDocument=e,this.childNodes=t,this.length=r}}{constructor(){throw super(e,[],0),new Error("Illegal constructor: cannot construct NodeList")}}}return this.__nodeListCstr}get navigator(){return null==this.__navigator&&(this.__navigator=new pf),this.__navigator}set navigator(e){this.__navigator=e}get parent(){return null}prompt(){return""}open(){return null}get origin(){return this.location.origin}removeEventListener(e,t){Vp(this,e,t)}requestAnimationFrame(e){return this.setTimeout((()=>{e(Date.now())}),0)}requestIdleCallback(e){return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>0})}),0)}scroll(e,t){}scrollBy(e,t){}scrollTo(e,t){}get self(){return this}get sessionStorage(){return null==this.__sessionStorage&&(this.__sessionStorage=new ff),this.__sessionStorage}set sessionStorage(e){this.__sessionStorage=e}setInterval(e,t,...r){if(null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout),this.__allowInterval){const n=this.__setInterval((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}setTimeout(e,t,...r){null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout);const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}get top(){return this}get window(){return this}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}}var xf;function Ef(e){e.__clearInterval=mf,e.__clearTimeout=gf,e.__setInterval=hf,e.__setTimeout=yf,e.__maxTimeout=3e4,e.__allowInterval=!0,e.URL=vf}function Sf(e){try{e.devicePixelRatio=1,e.innerHeight=768,e.innerWidth=1366,e.pageXOffset=0,e.pageYOffset=0,e.screenLeft=0,e.screenTop=0,e.screenX=0,e.screenY=0,e.scrollX=0,e.scrollY=0,e.screen={availHeight:e.innerHeight,availLeft:0,availTop:0,availWidth:e.innerWidth,colorDepth:24,height:e.innerHeight,keepAwake:!1,orientation:{angle:0,type:"portrait-primary"},pixelDepth:24,width:e.innerWidth}}catch(e){}}xf=bf.prototype,void cf.forEach((([e,t])=>{Object.defineProperty(xf,e,{get(){return this["__"+e]||t},set(t){this["__"+e]=t},configurable:!0,enumerable:!0})}));class Df extends x_{constructor(e=null,t=null){if(super(null,null),this.nodeName="#document",this.nodeType=9,this.defaultView=t,this.cookie="",this.referrer="",this.appendChild(this.createDocumentTypeNode()),"string"==typeof e){const t=qp(this,e).children.find((e=>"HTML"===e.nodeName));null!=t&&(this.appendChild(t),Nf(t,this))}else if(!1!==e){const e=new x_(this,"html");this.appendChild(e),e.appendChild(new x_(this,"head")),e.appendChild(new x_(this,"body"))}}get dir(){return this.documentElement.dir}set dir(e){this.documentElement.dir=e}get location(){return null!=this.defaultView?this.defaultView.location:null}set location(e){null!=this.defaultView&&(this.defaultView.location=e)}get baseURI(){const e=this.head.childNodes.find((e=>"BASE"===e.nodeName));return e?e.href:this.URL}get URL(){return this.location.href}get styleSheets(){return this.querySelectorAll("style")}get scripts(){return this.querySelectorAll("script")}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get scrollingElement(){return this.documentElement}get documentElement(){for(let e=this.childNodes.length-1;e>=0;e--)if("HTML"===this.childNodes[e].nodeName)return this.childNodes[e];const e=new x_(this,"html");return this.appendChild(e),e}set documentElement(e){for(let e=this.childNodes.length-1;e>=0;e--)10!==this.childNodes[e].nodeType&&this.childNodes[e].remove();null!=e&&(this.appendChild(e),Nf(e,this))}get head(){const e=this.documentElement;for(let t=0;t<e.childNodes.length;t++)if("HEAD"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new x_(this,"head");return e.insertBefore(t,e.firstChild),t}set head(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"HEAD"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.insertBefore(e,t.firstChild),Nf(e,this))}get body(){const e=this.documentElement;for(let t=e.childNodes.length-1;t>=0;t--)if("BODY"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new x_(this,"body");return e.appendChild(t),t}set body(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"BODY"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.appendChild(e),Nf(e,this))}appendChild(e){return e.remove(),e.parentNode=this,this.childNodes.push(e),e}createComment(e){return new T_(this,e)}createAttribute(e){return new yp(e.toLowerCase(),"")}createAttributeNS(e,t){return new yp(t,"",e)}createElement(e){if("#document"===e){const t=new Df(!1);return t.nodeName=e,t.parentNode=null,t}return I_(this,e)}createElementNS(e,t){const r=((e,t,r)=>{if("http://www.w3.org/1999/xhtml"===t)return I_(e,r);if("http://www.w3.org/2000/svg"!==t)return new g_(e,r);switch(r.toLowerCase()){case"text":case"tspan":case"tref":case"altglyph":case"textpath":return new q_(e,r);case"circle":case"ellipse":case"image":case"line":case"path":case"polygon":case"polyline":case"rect":case"use":return new $_(e,r);case"svg":return new G_(e,r);default:return new H_(e,r)}})(this,e,t);return r.namespaceURI=e,r}createTextNode(e){return new E_(this,e)}createDocumentFragment(){return new C_(this)}createDocumentTypeNode(){return new k_(this)}getElementById(e){return kf(this,e)}getElementsByName(e){return Af(this,e.toLowerCase())}get title(){const e=this.head.childNodes.find((e=>"TITLE"===e.nodeName));return null!=e&&"string"==typeof e.textContent?e.textContent.trim():""}set title(e){const t=this.head;let r=t.childNodes.find((e=>"TITLE"===e.nodeName));null==r&&(r=this.createElement("title"),t.appendChild(r)),r.textContent=e}}function Tf(e=null){return new bf(e).document}const Cf=new Set(["nodeName","nodeType","nodeValue","ownerDocument","parentNode","childNodes","_shadowRoot"]);function kf(e,t){const r=e.children;for(let e=0,n=r.length;e<n;e++){const n=r[e];if(n.id===t)return n;const i=kf(n,t);if(null!=i)return i}return null}function Af(e,t,r=[]){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];i.name&&i.name.toLowerCase()===t&&r.push(i),Af(i,t,r)}return r}function Nf(e,t){for(let r=0,n=e.childNodes.length;r<n;r++)e.childNodes[r].ownerDocument=t,1===e.childNodes[r].nodeType&&Nf(e.childNodes[r],t)}var wf=Array.isArray||(e=>"[object Array]"===Object.prototype.toString.call(e)),Ff=Pf;function Pf(e,t,r){e instanceof RegExp&&(e=If(e,r)),t instanceof RegExp&&(t=If(t,r));var n=Of(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function If(e,t){var r=t.match(e);return r?r[0]:null}function Of(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],a=r.length;u>=0&&!s;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}Pf.range=Of;var Mf="\0SLASH"+Math.random()+"\0",Rf="\0OPEN"+Math.random()+"\0",Lf="\0CLOSE"+Math.random()+"\0",Bf="\0COMMA"+Math.random()+"\0",jf="\0PERIOD"+Math.random()+"\0";function Uf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Vf(e){return e.split(Mf).join("\\").split(Rf).join("{").split(Lf).join("}").split(Bf).join(",").split(jf).join(".")}function Kf(e){if(!e)return[""];var t=[],r=Ff("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=Kf(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function zf(e){return"{"+e+"}"}function Wf(e){return/^-?0\d/.test(e)}function Jf(e,t){return e<=t}function Hf(e,t){return e>=t}function $f(e,t){var r=[],n=Ff("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||o,c=n.body.indexOf(",")>=0;if(!s&&!c)return n.post.match(/,.*\}/)?$f(e=n.pre+"{"+n.body+Lf+n.post):[e];if(s)i=n.body.split(/\.\./);else if(1===(i=Kf(n.body)).length&&1===(i=$f(i[0],!1).map(zf)).length)return(d=n.post.length?$f(n.post,!1):[""]).map((e=>n.pre+i[0]+e));var l,u=n.pre,d=n.post.length?$f(n.post,!1):[""];if(s){var p=Uf(i[0]),_=Uf(i[1]),f=Math.max(i[0].length,i[1].length),m=3==i.length?Math.abs(Uf(i[2])):1,g=Jf;_<p&&(m*=-1,g=Hf);var h=i.some(Wf);l=[];for(var y=p;g(y,_);y+=m){var v;if(o)"\\"===(v=String.fromCharCode(y))&&(v="");else if(v=String(y),h){var b=f-v.length;if(b>0){var x=new Array(b+1).join("0");v=y<0?"-"+x+v.slice(1):x+v}}l.push(v)}}else l=((e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=$f(e[n],!1);wf(i)?r.push.apply(r,i):r.push(i)}return r})(i);for(var E=0;E<l.length;E++)for(var S=0;S<d.length;S++){var D=u+l[E]+d[S];(!t||s||D)&&r.push(D)}return r}var Gf=nm;nm.Minimatch=im;var qf={sep:"/"};try{qf=Kt}catch(e){}var Xf=nm.GLOBSTAR=im.GLOBSTAR={},Yf={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Qf="[^/]",Zf="[^/]*?",em="().*{}+?[]^$\\!".split("").reduce(((e,t)=>(e[t]=!0,e)),{}),tm=/\/+/;function rm(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((e=>{r[e]=t[e]})),Object.keys(e).forEach((t=>{r[t]=e[t]})),r}function nm(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new im(t,r).match(e))}function im(e,t){if(!(this instanceof im))return new im(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==qf.sep&&(e=e.split(qf.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function am(e,t){if(t||(t=this instanceof im?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),$f((e=>e.split("\\\\").join(Mf).split("\\{").join(Rf).split("\\}").join(Lf).split("\\,").join(Bf).split("\\.").join(jf))(r),!0).map(Vf)):[];var r}nm.filter=(e,t)=>(t=t||{},(r,n,i)=>nm(r,e,t)),nm.defaults=e=>{if(!e||!Object.keys(e).length)return nm;var t=nm,r=(r,n,i)=>t.minimatch(r,n,rm(e,i));return r.Minimatch=(r,n)=>new t.Minimatch(r,rm(e,n)),r},im.defaults=e=>e&&Object.keys(e).length?nm.defaults(e).Minimatch:im,im.prototype.debug=()=>{},im.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(tm))),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}},im.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},nm.braceExpand=(e,t)=>am(e,t),im.prototype.braceExpand=am,im.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xf;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],l=!1,u=-1,d=-1,p="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function f(){if(n){switch(n){case"*":i+=Zf,a=!0;break;case"?":i+=Qf,a=!0;break;default:i+="\\"+n}_.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,h=e.length;g<h&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&em[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),l){this.debug(" in class"),"!"===m&&g===d+1&&(m="^"),i+=m;continue}_.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(l){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:Yf[n].open,close:Yf[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(l||!s.length){i+="\\)";continue}f(),a=!0;var y=s.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(l||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),l){i+="\\"+m;continue}l=!0,d=g,u=i.length,i+=m;continue;case"]":if(g===d+1||!l){i+="\\"+m,o=!1;continue}if(l){var v=e.substring(d+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,om);i=i.substr(0,u)+"\\["+b[0]+"\\]",a=a||b[1],l=!1;continue}}a=!0,l=!1,i+=m;continue;default:f(),o?o=!1:!em[m]||"^"===m&&l||(i+="\\"),i+=m}for(l&&(v=e.substr(d+1),b=this.parse(v,om),i=i.substr(0,u)+"\\["+b[0],a=a||b[1]),y=s.pop();y;y=s.pop()){var x=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",x,x,y,i);var E="*"===y.type?Zf:"?"===y.type?Qf:"\\"+y.type;a=!0,i=i.slice(0,y.reStart)+E+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var D=c.length-1;D>-1;D--){var T=c[D],C=i.slice(0,T.reStart),k=i.slice(T.reStart,T.reEnd-8),A=i.slice(T.reEnd-8,T.reEnd),N=i.slice(T.reEnd);A+=N;var w=C.split("(").length-1,F=N;for(g=0;g<w;g++)F=F.replace(/\)[+*?]?/,"");var P="";""===(N=F)&&t!==om&&(P="$"),i=C+k+N+P+A}if(""!==i&&a&&(i="(?=.)"+i),S&&(i=p+i),t===om)return[i,a];if(!a)return(e=>e.replace(/\\(.)/g,"$1"))(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var om={};nm.makeRe=(e,t)=>new im(e,t||{}).makeRe(),im.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Zf:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((e=>e.map((e=>e===Xf?r:"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e._src)).join("\\/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},nm.match=(e,t,r)=>{var n=new im(t,r=r||{});return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},im.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==qf.sep&&(e=e.split(qf.sep).join("/")),e=e.split(tm),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},im.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,l=t[a],u=e[i];if(this.debug(t,l,u),!1===l)return!1;if(l===Xf){this.debug("GLOBSTAR",[t,l,u]);var d=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var _=e[d];if(this.debug("\nglobstar while",e,d,t,p,_),this.matchOne(e.slice(d),t.slice(p),r))return this.debug("globstar found match!",d,o,_),!0;if("."===_||".."===_||!n.dot&&"."===_.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==o))}if("string"==typeof l?(c=n.nocase?u.toLowerCase()===l.toLowerCase():u===l,this.debug("string match",l,u,c)):(c=u.match(l),this.debug("pattern match",l,u,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};const sm=(e,t,r)=>{if(r)return He(r)?r:$e(t,r);if(He(e))throw new Error(`copy task, "dest" property must exist if "src" property is an absolute path: ${e}`);return t},cm=async(e,t,r)=>{const n=e.outputTargets.filter(Ad);if(0===n.length)return;const i=[...r.filesUpdated,...r.filesAdded,...r.dirsAdded],a=[],o=!((e,t,r)=>{if(!e.hasSuccessfulBuild)return!1;let n=!0;return r.forEach((e=>{const r=me(We(e));t.forEach((e=>{e.cmps.forEach((e=>{null!=e.assetsDirs&&e.assetsDirs.forEach((e=>{const t=me(e.absolutePath);if(r===t)return n=!1,void 0}))}))}))})),n})(t,r.entryModules,r.filesChanged);if(n.forEach((t=>{o&&t.copyAssets&&a.push(...((e,t,r,n)=>{if(!r)return[];const i=[];return t.components.filter((e=>null!=e.assetsDirs&&e.assetsDirs.length>0)).forEach((t=>{n?t.excludeFromCollection||t.isCollectionDependency||t.assetsDirs.forEach((t=>{const n=$e(r,Xe(e.srcDir,t.absolutePath));i.push({src:t.absolutePath,dest:n,warn:!1,keepDirStructure:!1})})):t.assetsDirs.forEach((e=>{i.push({src:e.absolutePath,dest:$e(r,e.cmpRelativePath),warn:!1,keepDirStructure:!1})}))})),t.debug(`getComponentAssetsCopyTasks: ${i.length}`),i})(e,r,t.dir,"collection"===t.copyAssets)),a.push(...lm(e,r,t,i))})),a.length>0){const n=r.createTimeSpan("copy started");let i=0;try{const n=await e.sys.copy(a,e.srcDir);null!=n&&(r.diagnostics.push(...n.diagnostics),t.fs.cancelDeleteDirectoriesFromDisk(n.dirPaths),t.fs.cancelDeleteFilesFromDisk(n.filePaths),i=n.filePaths.length)}catch(e){const t=Z(r.diagnostics);e instanceof Error&&(t.messageText=e.message)}n.finish(`copy finished (${i} file${1===i?"":"s"})`)}},lm=(e,t,r,n)=>Array.isArray(r.copy)?(!t.isRebuild||t.requiresFullBuild?r.copy:um(e,r.copy,n)).map((e=>dm(e,r.dir))):[],um=(e,t,r)=>Array.isArray(t)?t.filter((t=>{let n=t.src;if(X(n)){if(n=$e(e.srcDir,n),r.some(Gf.filter(n)))return!0}else if(n=me(((e,t)=>He(t)?t:$e(e.srcDir,t))(e,n+"/")),r.some((e=>e.startsWith(n))))return!0;return!1})):[],dm=(e,t)=>({src:e.src,dest:sm(e.src,t,e.dest),keepDirStructure:"boolean"==typeof e.keepDirStructure?e.keepDirStructure:null==e.dest,warn:!1!==e.warn}),pm=(e,t,r)=>n=>{const i=p.createCompilerHost(e.tsCompilerOptions),a=o=>s=>{var c,l;if(r.transformAliasedImportPaths&&p.isImportDeclaration(s)&&p.isStringLiteral(s.moduleSpecifier)){let a=s.moduleSpecifier.text;if(!a.startsWith(".")){const n=p.resolveModuleName(a,o,e.tsCompilerOptions,i),s=null!=(null===(c=n.resolvedModule)||void 0===c?void 0:c.resolvedFileName),u=!0===(null===(l=n.resolvedModule)||void 0===l?void 0:l.isExternalLibraryImport);if(s&&!u){const i=new RegExp(Object.values(p.Extension).map((e=>`${e}$`)).join("|")),o=n.resolvedModule.resolvedFileName.replace(e.srcDir,r.collectionDir);a=me(Xe(We(t),o).replace(i,""))}}return n.factory.updateImportDeclaration(s,s.decorators,s.modifiers,s.importClause,n.factory.createStringLiteral(a),s.assertClause)}return p.visitEachChild(s,a(o),n)};return e=>p.visitEachChild(e,a(e.fileName),n)},_m=async(e,t,r,n)=>{const i=e.outputTargets.filter(Td);if(0===i.length)return;const a="generate collections"+(e.sourceMap?" + source maps":""),o=r.createTimeSpan(`${a} started`,!0);try{await Promise.all(n.map((async r=>{let n=r.staticSourceFileText;e.preamble&&(n=`${Ie(e)}\n${n}`);const a=r.sourceMapFileText;await Promise.all(i.map((async i=>{const o=Xe(e.srcDir,r.jsFilePath),s=$e(i.collectionDir,o),{outputText:c}=p.transpileModule(n,{fileName:r.sourceFilePath,compilerOptions:{target:p.ScriptTarget.Latest},transformers:{after:[pm(e,s,i)]}});if(await t.fs.writeFile(s,c,{outputTargetType:i.type}),r.sourceMapPath){const n=Xe(e.srcDir,r.sourceMapPath),o=$e(i.collectionDir,n);await t.fs.writeFile(o,a,{outputTargetType:i.type})}})))}))),await fm(e,t,r,i)}catch(e){re(r.diagnostics,e)}o.finish(`${a} finished`)},fm=async(e,t,r,n)=>{const i=JSON.stringify(gm(e,t,r),null,2);return Promise.all(n.map((e=>mm(t,i,e))))},mm=async(e,t,r)=>{const n=me(r.collectionDir),i=me($e(n,E));await e.fs.writeFile(i,t)},gm=(e,t,r)=>{const n={entries:r.moduleFiles.filter((e=>!e.isCollectionDependency&&e.cmps.length>0)).map((t=>Xe(e.srcDir,t.jsFilePath))),compiler:{name:"@stencil/core",version:ut,typescriptVersion:lt},collections:hm(t),bundles:e.bundles.map((e=>({components:e.components.slice().sort()})))};if(e.globalScript){const r=t.moduleMap.get(me(e.globalScript));r&&(n.global=Xe(e.srcDir,r.jsFilePath))}return n},hm=e=>{const t=e.collections.map((e=>({name:e.collectionName,tags:U(e.moduleFiles.map((e=>e.cmps))).map((e=>e.tagName)).sort()})));return j(t,(e=>e.name))},ym=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","fs/promises","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","trace_events","tty","url","util","v8","vm","worker_threads","zlib"];var vm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bm(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}const xm="\\.{1,2}(?:\\/|$)",Em={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:xm,NO_DOT:"(?!\\.)",NO_DOTS:`(?!(?:^|\\/)${xm})`,NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:`(?!${xm})`,QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Sm={...Em,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};var Dm={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:rt.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return!0===e?Sm:Em}},Tm=bm(((e,t)=>{const n="win32"===r.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=Dm;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>o.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(s,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(a,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=r.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===rt.sep,t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}}));const{CHAR_ASTERISK:Cm,CHAR_AT:km,CHAR_BACKWARD_SLASH:Am,CHAR_COMMA:Nm,CHAR_DOT:wm,CHAR_EXCLAMATION_MARK:Fm,CHAR_FORWARD_SLASH:Pm,CHAR_LEFT_CURLY_BRACE:Im,CHAR_LEFT_PARENTHESES:Om,CHAR_LEFT_SQUARE_BRACKET:Mm,CHAR_PLUS:Rm,CHAR_QUESTION_MARK:Lm,CHAR_RIGHT_CURLY_BRACE:Bm,CHAR_RIGHT_PARENTHESES:jm,CHAR_RIGHT_SQUARE_BRACKET:Um}=Dm,Vm=e=>e===Pm||e===Am,Km=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};const{MAX_LENGTH:zm,POSIX_REGEX_SOURCE:Wm,REGEX_NON_SPECIAL_CHARS:Jm,REGEX_SPECIAL_CHARS_BACKREF:Hm,REPLACEMENTS:$m}=Dm,Gm=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>Tm.escapeRegex(e))).join("..")}return r},qm=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xm=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=$m[e]||e;const r={...t},n="number"==typeof r.maxLength?Math.min(zm,r.maxLength):zm;let i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);const a={type:"bos",value:"",output:r.prepend||""},o=[a],s=r.capture?"":"?:",c=Tm.isWindows(t),l=Dm.globChars(c),u=Dm.extglobChars(l),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:b,STAR:x,START_ANCHOR:E}=l,S=e=>`(${s}(?:(?!${E}${e.dot?m:d}).)*?)`,D=r.dot?"":g,T=r.dot?v:b;let C=!0===r.bash?S(r):x;r.capture&&(C=`(${C})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const k={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Tm.removePrefix(e,k),i=e.length;const A=[],N=[],w=[];let F,P=a;const I=()=>k.index===i-1,O=k.peek=(t=1)=>e[k.index+t],M=k.advance=()=>e[++k.index]||"",R=()=>e.slice(k.index+1),L=(e="",t=0)=>{k.consumed+=e,k.index+=t},B=e=>{k.output+=null!=e.output?e.output:e.value,L(e.value)},j=()=>{let e=1;for(;"!"===O()&&("("!==O(2)||"?"===O(3));)M(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},U=e=>{k[e]++,w.push(e)},V=e=>{k[e]--,w.pop()},K=e=>{if("globstar"===P.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||A.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(k.output=k.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=C,k.output+=P.output)}if(A.length&&"paren"!==e.type&&(A[A.length-1].inner+=e.value),(e.value||e.output)&&B(e),P&&"text"===P.type&&"text"===e.type)return P.value+=e.value,P.output=(P.output||"")+e.value,void 0;e.prev=P,o.push(e),P=e},z=(e,t)=>{const n={...u[t],conditions:1,inner:""};n.prev=P,n.parens=k.parens,n.output=k.output;const i=(r.capture?"(":"")+n.open;U("parens"),K({type:e,value:t,output:k.output?"":f}),K({type:"paren",extglob:!0,value:M(),output:i}),A.push(n)},W=e=>{let n,i=e.close+(r.capture?")":"");if("negate"===e.type){let a=C;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=S(r)),(a!==C||I()||/^\)+$/.test(R()))&&(i=e.close=`)$))${a}`),e.inner.includes("*")&&(n=R())&&/^\.[^\\/.]+$/.test(n)){const r=Xm(n,{...t,fastpaths:!1}).output;i=e.close=`)${r})${a})`}"bos"===e.prev.type&&(k.negatedExtglob=!0)}K({type:"paren",extglob:!0,value:F,output:i}),V("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(Hm,((e,t,r,i,a,o)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(a?v.repeat(a.length):""):0===o?T+(a?v.repeat(a.length):""):v.repeat(r.length):"."===i?d.repeat(r.length):"*"===i?t?t+i+(a?C:""):C:t?e:`\\${e}`));return!0===n&&(i=!0===r.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===r.contains?(k.output=e,k):(k.output=Tm.wrapOutput(i,k,t),k)}for(;!I();){if(F=M(),"\0"===F)continue;if("\\"===F){const e=O();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){F+="\\",K({type:"text",value:F});continue}const t=/^\\+/.exec(R());let n=0;if(t&&t[0].length>2&&(n=t[0].length,k.index+=n,n%2!=0&&(F+="\\")),!0===r.unescape?F=M():F+=M(),0===k.brackets){K({type:"text",value:F});continue}}if(k.brackets>0&&("]"!==F||"["===P.value||"[^"===P.value)){if(!1!==r.posix&&":"===F){const e=P.value.slice(1);if(e.includes("[")&&(P.posix=!0,e.includes(":"))){const e=P.value.lastIndexOf("["),t=P.value.slice(0,e),r=P.value.slice(e+2),n=Wm[r];if(n){P.value=t+n,k.backtrack=!0,M(),a.output||1!==o.indexOf(P)||(a.output=f);continue}}}("["===F&&":"!==O()||"-"===F&&"]"===O())&&(F=`\\${F}`),"]"!==F||"["!==P.value&&"[^"!==P.value||(F=`\\${F}`),!0===r.posix&&"!"===F&&"["===P.value&&(F="^"),P.value+=F,B({value:F});continue}if(1===k.quotes&&'"'!==F){F=Tm.escapeRegex(F),P.value+=F,B({value:F});continue}if('"'===F){k.quotes=1===k.quotes?0:1,!0===r.keepQuotes&&K({type:"text",value:F});continue}if("("===F){U("parens"),K({type:"paren",value:F});continue}if(")"===F){if(0===k.parens&&!0===r.strictBrackets)throw new SyntaxError(qm("opening","("));const e=A[A.length-1];if(e&&k.parens===e.parens+1){W(A.pop());continue}K({type:"paren",value:F,output:k.parens?")":"\\)"}),V("parens");continue}if("["===F){if(!0!==r.nobracket&&R().includes("]"))U("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(qm("closing","]"));F=`\\${F}`}K({type:"bracket",value:F});continue}if("]"===F){if(!0===r.nobracket||P&&"bracket"===P.type&&1===P.value.length){K({type:"text",value:F,output:`\\${F}`});continue}if(0===k.brackets){if(!0===r.strictBrackets)throw new SyntaxError(qm("opening","["));K({type:"text",value:F,output:`\\${F}`});continue}V("brackets");const e=P.value.slice(1);if(!0===P.posix||"^"!==e[0]||e.includes("/")||(F=`/${F}`),P.value+=F,B({value:F}),!1===r.literalBrackets||Tm.hasRegexChars(e))continue;const t=Tm.escapeRegex(P.value);if(k.output=k.output.slice(0,-P.value.length),!0===r.literalBrackets){k.output+=t,P.value=t;continue}P.value=`(${s}${t}|${P.value})`,k.output+=P.value;continue}if("{"===F&&!0!==r.nobrace){U("braces");const e={type:"brace",value:F,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};N.push(e),K(e);continue}if("}"===F){const e=N[N.length-1];if(!0===r.nobrace||!e){K({type:"text",value:F,output:F});continue}let t=")";if(!0===e.dots){const e=o.slice(),n=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=Gm(n,r),k.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=k.output.slice(0,e.outputIndex),n=k.tokens.slice(e.tokensIndex);e.value=e.output="\\{",F=t="\\}",k.output=r;for(const e of n)k.output+=e.output||e.value}K({type:"brace",value:F,output:t}),V("braces"),N.pop();continue}if("|"===F){A.length>0&&A[A.length-1].conditions++,K({type:"text",value:F});continue}if(","===F){let e=F;const t=N[N.length-1];t&&"braces"===w[w.length-1]&&(t.comma=!0,e="|"),K({type:"comma",value:F,output:e});continue}if("/"===F){if("dot"===P.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),P=a;continue}K({type:"slash",value:F,output:_});continue}if("."===F){if(k.braces>0&&"dot"===P.type){"."===P.value&&(P.output=d);const e=N[N.length-1];P.type="dots",P.output+=F,P.value+=F,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==P.type&&"slash"!==P.type){K({type:"text",value:F,output:d});continue}K({type:"dot",value:F,output:d});continue}if("?"===F){if((!P||"("!==P.value)&&!0!==r.noextglob&&"("===O()&&"?"!==O(2)){z("qmark",F);continue}if(P&&"paren"===P.type){const e=O();let t=F;if("<"===e&&!Tm.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===P.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(R()))&&(t=`\\${F}`),K({type:"text",value:F,output:t});continue}if(!0!==r.dot&&("slash"===P.type||"bos"===P.type)){K({type:"qmark",value:F,output:b});continue}K({type:"qmark",value:F,output:v});continue}if("!"===F){if(!0!==r.noextglob&&"("===O()&&("?"!==O(2)||!/[!=<:]/.test(O(3)))){z("negate",F);continue}if(!0!==r.nonegate&&0===k.index){j();continue}}if("+"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){z("plus",F);continue}if(P&&"("===P.value||!1===r.regex){K({type:"plus",value:F,output:p});continue}if(P&&("bracket"===P.type||"paren"===P.type||"brace"===P.type)||k.parens>0){K({type:"plus",value:F});continue}K({type:"plus",value:p});continue}if("@"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){K({type:"at",extglob:!0,value:F,output:""});continue}K({type:"text",value:F});continue}if("*"!==F){"$"!==F&&"^"!==F||(F=`\\${F}`);const e=Jm.exec(R());e&&(F+=e[0],k.index+=e[0].length),K({type:"text",value:F});continue}if(P&&("globstar"===P.type||!0===P.star)){P.type="star",P.star=!0,P.value+=F,P.output=C,k.backtrack=!0,k.globstar=!0,L(F);continue}let t=R();if(!0!==r.noextglob&&/^\([^?]/.test(t)){z("star",F);continue}if("star"===P.type){if(!0===r.noglobstar){L(F);continue}const n=P.prev,i=n.prev,a="slash"===n.type||"bos"===n.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){K({type:"star",value:F,output:""});continue}const s=k.braces>0&&("comma"===n.type||"brace"===n.type),c=A.length&&("pipe"===n.type||"paren"===n.type);if(!a&&"paren"!==n.type&&!s&&!c){K({type:"star",value:F,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[k.index+4];if(r&&"/"!==r)break;t=t.slice(3),L("/**",3)}if("bos"===n.type&&I()){P.type="globstar",P.value+=F,P.output=S(r),k.output=P.output,k.globstar=!0,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!o&&I()){k.output=k.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=S(r)+(r.strictSlashes?")":"|$)"),P.value+=F,k.globstar=!0,k.output+=n.output+P.output,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";k.output=k.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=`${S(r)}${_}|${_}${e})`,P.value+=F,k.output+=n.output+P.output,k.globstar=!0,L(F+M()),K({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){P.type="globstar",P.value+=F,P.output=`(?:^|${_}|${S(r)}${_})`,k.output=P.output,k.globstar=!0,L(F+M()),K({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-P.output.length),P.type="globstar",P.output=S(r),P.value+=F,k.output+=P.output,k.globstar=!0,L(F);continue}const n={type:"star",value:F,output:C};!0!==r.bash?!P||"bracket"!==P.type&&"paren"!==P.type||!0!==r.regex?(k.index!==k.start&&"slash"!==P.type&&"dot"!==P.type||("dot"===P.type?(k.output+=h,P.output+=h):!0===r.dot?(k.output+=y,P.output+=y):(k.output+=D,P.output+=D),"*"!==O()&&(k.output+=f,P.output+=f)),K(n)):(n.output=F,K(n)):(n.output=".*?","bos"!==P.type&&"slash"!==P.type||(n.output=D+n.output),K(n))}for(;k.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(qm("closing","]"));k.output=Tm.escapeLast(k.output,"["),V("brackets")}for(;k.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(qm("closing",")"));k.output=Tm.escapeLast(k.output,"("),V("parens")}for(;k.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(qm("closing","}"));k.output=Tm.escapeLast(k.output,"{"),V("braces")}if(!0===r.strictSlashes||"star"!==P.type&&"bracket"!==P.type||K({type:"maybe_slash",value:"",output:`${_}?`}),!0===k.backtrack){k.output="";for(const e of k.tokens)k.output+=null!=e.output?e.output:e.value,e.suffix&&(k.output+=e.suffix)}return k};Xm.fastpaths=(e,t)=>{const r={...t},n="number"==typeof r.maxLength?Math.min(zm,r.maxLength):zm,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=$m[e]||e;const a=Tm.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:f}=Dm.globChars(a),m=r.dot?d:u,g=r.dot?p:u,h=r.capture?"":"?:";let y=!0===r.bash?".*?":_;r.capture&&(y=`(${y})`);const v=e=>!0===e.noglobstar?y:`(${h}(?:(?!${f}${e.dot?l:o}).)*?)`,b=e=>{switch(e){case"*":return`${m}${c}${y}`;case".*":return`${o}${c}${y}`;case"*.*":return`${m}${y}${o}${c}${y}`;case"*/*":return`${m}${y}${s}${c}${g}${y}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${s})?${g}${c}${y}`;case"**/*.*":return`(?:${m}${v(r)}${s})?${g}${y}${o}${c}${y}`;case"**/.*":return`(?:${m}${v(r)}${s})?${o}${c}${y}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=b(t[1]);if(!r)return;return r+o+t[2]}}},x=Tm.removePrefix(e,{negated:!1,prefix:""});let E=b(x);return E&&!0!==r.strictSlashes&&(E+=`${s}?`),E};var Ym=Xm;const Qm=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map((e=>Qm(e,t,r)));return e=>{for(const t of n){const r=t(e);if(r)return r}return!1}}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},o=Tm.isWindows(t),s=n?Qm.compileRe(e,t):Qm.makeRe(e,t,!1,!0),c=s.state;delete s.state;let l=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=Qm(a.ignore,e,r)}const u=(r,n=!1)=>{const{isMatch:i,match:u,output:d}=Qm.test(r,s,t,{glob:e,posix:o}),p={glob:e,state:c,regex:s,posix:o,input:r,output:d,match:u,isMatch:i};return"function"==typeof a.onResult&&a.onResult(p),!1===i?(p.isMatch=!1,!!n&&p):l(r)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!n&&p):("function"==typeof a.onMatch&&a.onMatch(p),!n||p)};return r&&(u.state=c),u};Qm.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},o=a.format||(i?Tm.toPosixSlashes:null);let s=e===n,c=s&&o?o(e):e;return!1===s&&(c=o?o(e):e,s=c===n),!1!==s&&!0!==a.capture||(s=!0===a.matchBase||!0===a.basename?Qm.matchBase(e,t,r,i):t.exec(c)),{isMatch:Boolean(s),match:s,output:c}},Qm.matchBase=(e,t,r,n=Tm.isWindows(r))=>(t instanceof RegExp?t:Qm.makeRe(t,r)).test(rt.basename(e)),Qm.isMatch=(e,t,r)=>Qm(t,r)(e),Qm.parse=(e,t)=>Array.isArray(e)?e.map((e=>Qm.parse(e,t))):Ym(e,{...t,fastpaths:!1}),Qm.scan=(e,t)=>((e,t)=>{const r=t||{},n=e.length-1,i=!0===r.parts||!0===r.scanToEnd,a=[],o=[],s=[];let c,l,u=e,d=-1,p=0,_=0,f=!1,m=!1,g=!1,h=!1,y=!1,v=!1,b=!1,x=!1,E=!1,S=!1,D=0,T={value:"",depth:0,isGlob:!1};const C=()=>d>=n,k=()=>(c=l,u.charCodeAt(++d));for(;d<n;){let e;if(l=k(),l!==Am){if(!0===v||l===Im){for(D++;!0!==C()&&(l=k());)if(l!==Am)if(l!==Im){if(!0!==v&&l===wm&&(l=k())===wm){if(f=T.isBrace=!0,g=T.isGlob=!0,S=!0,!0===i)continue;break}if(!0!==v&&l===Nm){if(f=T.isBrace=!0,g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===Bm&&(D--,0===D)){v=!1,f=T.isBrace=!0,S=!0;break}}else D++;else b=T.backslashes=!0,k();if(!0===i)continue;break}if(l!==Pm){if(!0!==r.noext&&1==(l===Rm||l===km||l===Cm||l===Lm||l===Fm)&&u.charCodeAt(d+1)===Om){if(g=T.isGlob=!0,h=T.isExtglob=!0,S=!0,l===Fm&&d===p&&(E=!0),!0===i){for(;!0!==C()&&(l=k());)if(l!==Am){if(l===jm){g=T.isGlob=!0,S=!0;break}}else b=T.backslashes=!0,l=k();continue}break}if(l===Cm){if(c===Cm&&(y=T.isGlobstar=!0),g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===Lm){if(g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===Mm){for(;!0!==C()&&(e=k());)if(e!==Am){if(e===Um){m=T.isBracket=!0,g=T.isGlob=!0,S=!0;break}}else b=T.backslashes=!0,k();if(!0===i)continue;break}if(!0===r.nonegate||l!==Fm||d!==p){if(!0!==r.noparen&&l===Om){if(g=T.isGlob=!0,!0===i){for(;!0!==C()&&(l=k());)if(l!==Om){if(l===jm){S=!0;break}}else b=T.backslashes=!0,l=k();continue}break}if(!0===g){if(S=!0,!0===i)continue;break}}else x=T.negated=!0,p++}else{if(a.push(d),o.push(T),T={value:"",depth:0,isGlob:!1},!0===S)continue;if(c===wm&&d===p+1){p+=2;continue}_=d+1}}else b=T.backslashes=!0,l=k(),l===Im&&(v=!0)}!0===r.noext&&(h=!1,g=!1);let A=u,N="",w="";p>0&&(N=u.slice(0,p),u=u.slice(p),_-=p),A&&!0===g&&_>0?(A=u.slice(0,_),w=u.slice(_)):!0===g?(A="",w=u):A=u,A&&""!==A&&"/"!==A&&A!==u&&Vm(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),!0===r.unescape&&(w&&(w=Tm.removeBackslashes(w)),A&&!0===b&&(A=Tm.removeBackslashes(A)));const F={prefix:N,input:e,start:p,base:A,glob:w,isBrace:f,isBracket:m,isGlob:g,isExtglob:h,isGlobstar:y,negated:x,negatedExtglob:E};if(!0===r.tokens&&(F.maxDepth=0,Vm(l)||o.push(T),F.tokens=o),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<a.length;n++){const i=t?t+1:p,c=a[n],l=e.slice(i,c);r.tokens&&(0===n&&0!==p?(o[n].isPrefix=!0,o[n].value=N):o[n].value=l,Km(o[n]),F.maxDepth+=o[n].depth),0===n&&""===l||s.push(l),t=c}if(t&&t+1<e.length){const n=e.slice(t+1);s.push(n),r.tokens&&(o[o.length-1].value=n,Km(o[o.length-1]),F.maxDepth+=o[o.length-1].depth)}F.slashes=a,F.parts=s}return F})(e,t),Qm.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const i=t||{},a=i.contains?"":"^",o=i.contains?"":"$";let s=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const c=Qm.toRegex(s,t);return!0===n&&(c.state=e),c},Qm.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=Ym.fastpaths(e,t)),i.output||(i=Ym(e,t)),Qm.compileRe(i,t,r,n)},Qm.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},Qm.constants=Dm;var Zm=Qm;function eg(e,{enter:t,leave:r}){return sg(e,null,t,r)}let tg=!1,rg=!1,ng=null;const ig={skip:()=>tg=!0,remove:()=>rg=!0,replace:e=>ng=e};function ag(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}function og(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}function sg(e,t,r,n,i,a){if(e){if(r){const n=tg,o=rg,s=ng;tg=!1,rg=!1,ng=null,r.call(ig,e,t,i,a),ng&&ag(t,i,a,e=ng),rg&&og(t,i,a);const c=tg,l=rg;if(tg=n,rg=o,ng=s,c)return e;if(l)return null}for(const t in e){const i=e[t];if("object"==typeof i)if(Array.isArray(i))for(let a=0,o=0;a<i.length;a+=1,o+=1)null!==i[a]&&"string"==typeof i[a].type&&(sg(i[a],e,r,n,t,o)||a--);else null!==i&&"string"==typeof i.type&&sg(i,e,r,n,t,null)}if(n){const r=ng,o=rg;ng=null,rg=!1,n.call(ig,e,t,i,a),ng&&ag(t,i,a,e=ng),rg&&og(t,i,a);const s=rg;if(ng=r,rg=o,s)return null}}return e}const cg={ArrayPattern(e,t){for(const r of t.elements)r&&cg[r.type](e,r)},AssignmentPattern(e,t){cg[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?cg.RestElement(e,r):cg[r.value.type](e,r.value)},RestElement(e,t){cg[t.argument.type](e,t.argument)}},lg=e=>{const t=[];return cg[e.type](t,e),t},ug={const:!0,let:!0};class dg{constructor(e={}){this.parent=e.parent,this.isBlockScope=!!e.block,this.declarations=Object.create(null),e.params&&e.params.forEach((e=>{lg(e).forEach((e=>{this.declarations[e]=!0}))}))}addDeclaration(e,t,r){!t&&this.isBlockScope?this.parent.addDeclaration(e,t,r):e.id&&lg(e.id).forEach((e=>{this.declarations[e]=!0}))}contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)}}function pg(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const _g=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));_g.add("");const fg=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||_g.has(t))&&(t=`_${t}`),t||"_"};class mg extends class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}remove(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}}{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,r,n){if(e){if(this.enter){const i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}for(const t in e){const r=e[t];if("object"==typeof r)if(Array.isArray(r))for(let n=0;n<r.length;n+=1)null!==r[n]&&"string"==typeof r[n].type&&(this.visit(r[n],e,t,n)||n--);else null!==r&&"string"==typeof r.type&&this.visit(r,e,t,null)}if(this.leave){const i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}}function gg(e,{enter:t,leave:r}){return new mg(t,r).visit(e,null)}function hg(e){for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=yg(p[0]-c);c=p[0],p.length>1&&(_+=yg(p[1]-t)+yg(p[2]-r)+yg(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=yg(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a}function yg(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}var vg=function e(t){this.bits=t instanceof e?t.bits.slice():[]};vg.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},vg.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var bg=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};bg.prototype.appendLeft=function(e){this.outro+=e},bg.prototype.appendRight=function(e){this.intro=this.intro+e},bg.prototype.clone=function(){var e=new bg(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},bg.prototype.contains=function(e){return this.start<e&&e<this.end},bg.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},bg.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},bg.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},bg.prototype.prependLeft=function(e){this.outro=e+this.outro},bg.prototype.prependRight=function(e){this.intro=e+this.intro},bg.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new bg(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},bg.prototype.toString=function(){return this.intro+this.content+this.outro},bg.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},bg.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var xg=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?xg=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(xg=e=>t.from(e,"utf-8").toString("base64"));var Eg=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=hg(e.mappings)};function Sg(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function Dg(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}Eg.prototype.toString=function(){return JSON.stringify(this)},Eg.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+xg(this.toString())};var Tg=Object.prototype.toString;function Cg(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var kg=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};kg.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},kg.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},kg.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Ag="\n",Ng={insertLeft:!1,insertRight:!1,storeName:!1},wg=function(e,t){void 0===t&&(t={});var r=new bg(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new vg},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:Sg(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function Fg(e,t){if("MemberExpression"===e.type)return!e.computed&&Fg(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"FieldDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}wg.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},wg.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},wg.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},wg.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},wg.prototype.clone=function(){for(var e=new wg(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new vg(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},wg.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new kg(e.hires),i=Cg(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?Dg(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},wg.prototype.generateMap=function(e){return new Eg(this.generateDecodedMap(e))},wg.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},wg.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===Tg.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var u=this.original[s];"\n"===u?a=!0:"\r"!==u&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},wg.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},wg.prototype.insertLeft=function(e,t){return Ng.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Ng.insertLeft=!0),this.appendLeft(e,t)},wg.prototype.insertRight=function(e,t){return Ng.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Ng.insertRight=!0),this.prependRight(e,t)},wg.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},wg.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Ng.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Ng.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);Object.defineProperty(this.storedNames,o,{writable:!0,value:!0,enumerable:!0})}var s=this.byStart[e],c=this.byEnd[t];if(s){for(var l=s;l!==c;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");(l=l.next).edit("",!1)}s.edit(r,i,a)}else{var u=new bg(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},wg.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},wg.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},wg.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},wg.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},wg.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},wg.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Ag);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(Ag)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(Ag)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(Ag)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(Ag))?this.intro.substr(e+1)+t:this.intro+t},wg.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},wg.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},wg.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},wg.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=Cg(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},wg.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},wg.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},wg.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},wg.prototype.trimLines=function(){return this.trim("[\\r\\n]")},wg.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},wg.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},wg.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},wg.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},wg.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var Pg="win32"===r.platform;if(Pg)var Ig=/(.*?)(?:[\/\\]+|$)/g;else Ig=/(.*?)(?:[\/]+|$)/g;if(Pg)var Og=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else Og=/^[\/]*/;var Mg=Vg;Vg.realpath=Vg,Vg.sync=Kg,Vg.realpathSync=Kg,Vg.monkeypatch=()=>{Dt.realpath=Vg,Dt.realpathSync=Kg},Vg.unmonkeypatch=()=>{Dt.realpath=Rg,Dt.realpathSync=Lg};var Rg=Dt.realpath,Lg=Dt.realpathSync,Bg=r.version,jg=/^v[0-5]\./.test(Bg);function Ug(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Vg(e,t,n){if(jg)return Rg(e,t,n);"function"==typeof t&&(n=t,t=null),Rg(e,t,((i,a)=>{Ug(i)?((e,t,n)=>{if("function"!=typeof n&&(n=(e=>"function"==typeof e?e:e=>{if(e){if(r.throwDeprecation)throw e;if(!r.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);r.traceDeprecation?console.trace(t):console.error(t)}}})(t),t=null),e=rt.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return r.nextTick(n.bind(null,null,t[e]));var i,a,o,s,c=e,l={},u={};function d(){var t=Og.exec(e);i=t[0].length,a=t[0],o=t[0],s="",Pg&&!u[o]?Dt.lstat(o,(e=>{if(e)return n(e);u[o]=!0,p()})):r.nextTick(p)}function p(){if(i>=e.length)return t&&(t[c]=e),n(null,e);Ig.lastIndex=i;var l=Ig.exec(e);return s=a,a+=l[0],o=s+l[1],i=Ig.lastIndex,u[o]||t&&t[o]===o?r.nextTick(p):t&&Object.prototype.hasOwnProperty.call(t,o)?m(t[o]):Dt.lstat(o,_)}function _(e,i){if(e)return n(e);if(!i.isSymbolicLink())return u[o]=!0,t&&(t[o]=o),r.nextTick(p);if(!Pg){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(l.hasOwnProperty(a))return f(null,l[a],o)}Dt.stat(o,(e=>{if(e)return n(e);Dt.readlink(o,((e,t)=>{Pg||(l[a]=t),f(e,t)}))}))}function f(e,r,i){if(e)return n(e);var a=rt.resolve(s,r);t&&(t[i]=a),m(a)}function m(t){e=rt.resolve(t,e.slice(i)),d()}d()})(e,t,n):n(i,a)}))}function Kg(e,t){if(jg)return Lg(e,t);try{return Lg(e,t)}catch(r){if(Ug(r))return((e,t)=>{if(e=rt.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function l(){var t=Og.exec(e);r=t[0].length,n=t[0],i=t[0],a="",Pg&&!c[i]&&(Dt.lstatSync(i),c[i]=!0)}for(l();r<e.length;){Ig.lastIndex=r;var u=Ig.exec(e);if(a=n,n+=u[0],i=a+u[1],r=Ig.lastIndex,!(c[i]||t&&t[i]===i)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,i))d=t[i];else{var p=Dt.lstatSync(i);if(!p.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var _=null;if(!Pg){var f=p.dev.toString(32)+":"+p.ino.toString(32);s.hasOwnProperty(f)&&(_=s[f])}null===_&&(Dt.statSync(i),_=Dt.readlinkSync(i)),d=rt.resolve(a,_),t&&(t[i]=d),Pg||(s[f]=_)}e=rt.resolve(d,e.slice(r)),l()}}return t&&(t[o]=e),e})(e,t);throw r}}var zg=Array.isArray||(e=>"[object Array]"===Object.prototype.toString.call(e)),Wg=Jg;function Jg(e,t,r){e instanceof RegExp&&(e=Hg(e,r)),t instanceof RegExp&&(t=Hg(t,r));var n=$g(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Hg(e,t){var r=t.match(e);return r?r[0]:null}function $g(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],a=r.length;u>=0&&!s;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}Jg.range=$g;var Gg="\0SLASH"+Math.random()+"\0",qg="\0OPEN"+Math.random()+"\0",Xg="\0CLOSE"+Math.random()+"\0",Yg="\0COMMA"+Math.random()+"\0",Qg="\0PERIOD"+Math.random()+"\0";function Zg(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function eh(e){return e.split(Gg).join("\\").split(qg).join("{").split(Xg).join("}").split(Yg).join(",").split(Qg).join(".")}function th(e){if(!e)return[""];var t=[],r=Wg("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=th(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function rh(e){return"{"+e+"}"}function nh(e){return/^-?0\d/.test(e)}function ih(e,t){return e<=t}function ah(e,t){return e>=t}function oh(e,t){var r=[],n=Wg("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||o,c=n.body.indexOf(",")>=0;if(!s&&!c)return n.post.match(/,.*\}/)?oh(e=n.pre+"{"+n.body+Xg+n.post):[e];if(s)i=n.body.split(/\.\./);else if(1===(i=th(n.body)).length&&1===(i=oh(i[0],!1).map(rh)).length)return(d=n.post.length?oh(n.post,!1):[""]).map((e=>n.pre+i[0]+e));var l,u=n.pre,d=n.post.length?oh(n.post,!1):[""];if(s){var p=Zg(i[0]),_=Zg(i[1]),f=Math.max(i[0].length,i[1].length),m=3==i.length?Math.abs(Zg(i[2])):1,g=ih;_<p&&(m*=-1,g=ah);var h=i.some(nh);l=[];for(var y=p;g(y,_);y+=m){var v;if(o)"\\"===(v=String.fromCharCode(y))&&(v="");else if(v=String(y),h){var b=f-v.length;if(b>0){var x=new Array(b+1).join("0");v=y<0?"-"+x+v.slice(1):x+v}}l.push(v)}}else l=((e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=oh(e[n],!1);zg(i)?r.push.apply(r,i):r.push(i)}return r})(i);for(var E=0;E<l.length;E++)for(var S=0;S<d.length;S++){var D=u+l[E]+d[S];(!t||s||D)&&r.push(D)}return r}var sh=gh;gh.Minimatch=hh;var ch=(()=>{try{return rt}catch(e){}})()||{sep:"/"};gh.sep=ch.sep;var lh=gh.GLOBSTAR=hh.GLOBSTAR={},uh={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},dh="[^/]",ph="[^/]*?",_h="().*{}+?[]^$\\!".split("").reduce(((e,t)=>(e[t]=!0,e)),{}),fh=/\/+/;function mh(e,t){t=t||{};var r={};return Object.keys(e).forEach((t=>{r[t]=e[t]})),Object.keys(t).forEach((e=>{r[e]=t[e]})),r}function gh(e,t,r){return vh(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new hh(t,r).match(e)}function hh(e,t){if(!(this instanceof hh))return new hh(e,t);vh(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===ch.sep||(e=e.split(ch.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function yh(e,t){return t||(t=this instanceof hh?this.options:{}),e=void 0===e?this.pattern:e,vh(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),oh((e=>e.split("\\\\").join(Gg).split("\\{").join(qg).split("\\}").join(Xg).split("\\,").join(Yg).split("\\.").join(Qg))(r),!0).map(eh)):[];var r}gh.filter=(e,t)=>(t=t||{},(r,n,i)=>gh(r,e,t)),gh.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return gh;var t=gh,r=(r,n,i)=>t(r,n,mh(e,i));return(r.Minimatch=(r,n)=>new t.Minimatch(r,mh(e,n))).defaults=r=>t.defaults(mh(e,r)).Minimatch,r.filter=(r,n)=>t.filter(r,mh(e,n)),r.defaults=r=>t.defaults(mh(e,r)),r.makeRe=(r,n)=>t.makeRe(r,mh(e,n)),r.braceExpand=(r,n)=>t.braceExpand(r,mh(e,n)),r.match=(r,n,i)=>t.match(r,n,mh(e,i)),r},hh.defaults=e=>gh.defaults(e).Minimatch,hh.prototype.debug=()=>{},hh.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(fh))),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r},hh.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},gh.braceExpand=(e,t)=>yh(e,t),hh.prototype.braceExpand=yh;var vh=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};hh.prototype.parse=function(e,t){vh(e);var r=this.options;if("**"===e){if(!r.noglobstar)return lh;e="*"}if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],l=!1,u=-1,d=-1,p="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function f(){if(n){switch(n){case"*":i+=ph,a=!0;break;case"?":i+=dh,a=!0;break;default:i+="\\"+n}_.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,h=e.length;g<h&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&_h[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),l){this.debug(" in class"),"!"===m&&g===d+1&&(m="^"),i+=m;continue}_.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(l){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:uh[n].open,close:uh[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(l||!s.length){i+="\\)";continue}f(),a=!0;var y=s.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(l||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),l){i+="\\"+m;continue}l=!0,d=g,u=i.length,i+=m;continue;case"]":if(g===d+1||!l){i+="\\"+m,o=!1;continue}var v=e.substring(d+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,bh);i=i.substr(0,u)+"\\["+b[0]+"\\]",a=a||b[1],l=!1;continue}a=!0,l=!1,i+=m;continue;default:f(),o?o=!1:!_h[m]||"^"===m&&l||(i+="\\"),i+=m}for(l&&(v=e.substr(d+1),b=this.parse(v,bh),i=i.substr(0,u)+"\\["+b[0],a=a||b[1]),y=s.pop();y;y=s.pop()){var x=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",x,x,y,i);var E="*"===y.type?ph:"?"===y.type?dh:"\\"+y.type;a=!0,i=i.slice(0,y.reStart)+E+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case"[":case".":case"(":S=!0}for(var D=c.length-1;D>-1;D--){var T=c[D],C=i.slice(0,T.reStart),k=i.slice(T.reStart,T.reEnd-8),A=i.slice(T.reEnd-8,T.reEnd),N=i.slice(T.reEnd);A+=N;var w=C.split("(").length-1,F=N;for(g=0;g<w;g++)F=F.replace(/\)[+*?]?/,"");var P="";""===(N=F)&&t!==bh&&(P="$"),i=C+k+N+P+A}if(""!==i&&a&&(i="(?=.)"+i),S&&(i=p+i),t===bh)return[i,a];if(!a)return(e=>e.replace(/\\(.)/g,"$1"))(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var bh={};gh.makeRe=(e,t)=>new hh(e,t||{}).makeRe(),hh.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?ph:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((e=>e.map((e=>e===lh?r:"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e._src)).join("\\/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},gh.match=(e,t,r)=>{var n=new hh(t,r=r||{});return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},hh.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==ch.sep&&(e=e.split(ch.sep).join("/")),e=e.split(fh),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},hh.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,l=t[a],u=e[i];if(this.debug(t,l,u),!1===l)return!1;if(l===lh){this.debug("GLOBSTAR",[t,l,u]);var d=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var _=e[d];if(this.debug("\nglobstar while",e,d,t,p,_),this.matchOne(e.slice(d),t.slice(p),r))return this.debug("globstar found match!",d,o,_),!0;if("."===_||".."===_||!n.dot&&"."===_.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==o))}if("string"==typeof l?(c=u===l,this.debug("string match",l,u,c)):(c=u.match(l),this.debug("pattern match",l,u,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var xh,Eh=bm((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Sh=bm((e=>{try{var t=xt;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Eh}})),Dh="object"==typeof Reflect?Reflect:null,Th=Dh&&"function"==typeof Dh.apply?Dh.apply:(e,t,r)=>Function.prototype.apply.call(e,t,r);xh=Dh&&"function"==typeof Dh.ownKeys?Dh.ownKeys:Object.getOwnPropertySymbols?e=>Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)):e=>Object.getOwnPropertyNames(e);var Ch=Number.isNaN||(e=>e!=e);function kh(){kh.init.call(this)}var Ah=kh;kh.EventEmitter=kh,kh.prototype._events=void 0,kh.prototype._eventsCount=0,kh.prototype._maxListeners=void 0;var Nh=10;function wh(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Fh(e){return void 0===e._maxListeners?kh.defaultMaxListeners:e._maxListeners}function Ph(e,t,r,n){var i,a,o,s;if(wh(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=Fh(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function Ih(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Oh(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Ih.bind(n);return i.listener=r,n.wrapFn=i,i}function Mh(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?(e=>{for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t})(i):Lh(i,i.length)}function Rh(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function Lh(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Bh(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty(kh,"defaultMaxListeners",{enumerable:!0,get:()=>Nh,set(e){if("number"!=typeof e||e<0||Ch(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Nh=e}}),kh.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},kh.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||Ch(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},kh.prototype.getMaxListeners=function(){return Fh(this)},kh.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)Th(s,this,t);else{var c=s.length,l=Lh(s,c);for(r=0;r<c;++r)Th(l[r],this,t)}return!0},kh.prototype.addListener=function(e,t){return Ph(this,e,t,!1)},kh.prototype.on=kh.prototype.addListener,kh.prototype.prependListener=function(e,t){return Ph(this,e,t,!0)},kh.prototype.once=function(e,t){return wh(t),this.on(e,Oh(this,e,t)),this},kh.prototype.prependOnceListener=function(e,t){return wh(t),this.prependListener(e,Oh(this,e,t)),this},kh.prototype.removeListener=function(e,t){var r,n,i,a,o;if(wh(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():!((e,t)=>{for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()})(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},kh.prototype.off=kh.prototype.removeListener,kh.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},kh.prototype.listeners=function(e){return Mh(this,e,!0)},kh.prototype.rawListeners=function(e){return Mh(this,e,!1)},kh.listenerCount=(e,t)=>"function"==typeof e.listenerCount?e.listenerCount(t):Rh.call(e,t),kh.prototype.listenerCount=Rh,kh.prototype.eventNames=function(){return this._eventsCount>0?xh(this._events):[]},Ah.once=(e,t)=>new Promise(((r,n)=>{function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}Bh(e,t,a,{once:!0}),"error"!==t&&((e,t,r)=>{"function"==typeof e.on&&Bh(e,"error",t,{once:!0})})(e,i)}));var jh=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,Vh=Object.prototype.propertyIsEnumerable;function Kh(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var zh=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,i=Kh(e),a=1;a<arguments.length;a++){for(var o in r=Object(arguments[a]))Uh.call(r,o)&&(i[o]=r[o]);if(jh){n=jh(r);for(var s=0;s<n.length;s++)Vh.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i},Wh=e=>e instanceof t,Jh=xt.inherits,Hh=bm((function(e,t){var n=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,a=i.length,s=String(e).replace(n,(e=>{if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),c=i[r];r<a;c=i[++r])f(c)||!v(c)?s+=" "+c:s+=" "+o(c);return s},t.deprecate=function(e,n){if(h(vm.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,a={};function o(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),h(n.showHidden)&&(n.showHidden=!1),h(n.depth)&&(n.depth=2),h(n.colors)&&(n.colors=!1),h(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),l(n,e,n.depth)}function s(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var a=((e,t)=>{if(h(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0})(e,r);if(a)return a;var o=Object.keys(r),s=(e=>{var t={};return e.forEach(((e,r)=>{t[e]=!0})),t})(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(r);if(0===o.length){if(E(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return u(r)}var v,S="",D=!1,T=["{","}"];return p(r)&&(D=!0,T=["[","]"]),E(r)&&(S=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(S=" "+RegExp.prototype.toString.call(r)),b(r)&&(S=" "+Date.prototype.toUTCString.call(r)),x(r)&&(S=" "+u(r)),0!==o.length||D&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=D?((e,t,r,n,i)=>{for(var a=[],o=0,s=t.length;o<s;++o)k(t,String(o))?a.push(d(e,t,r,n,String(o),!0)):a.push("");return i.forEach((i=>{i.match(/^\d+$/)||a.push(d(e,t,r,n,i,!0))})),a})(e,r,n,s,o):o.map((t=>d(e,r,n,s,t,D))),e.seen.pop(),((e,t,r)=>e.reduce(((e,t)=>(t.indexOf("\n")>=0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1)),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1])(v,S,T)):T[0]+S+T[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=f(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((e=>" "+e)).join("\n").substr(2):"\n"+s.split("\n").map((e=>" "+e)).join("\n")):s=e.stylize("[Circular]","special")),h(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function f(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function h(e){return void 0===e}function y(e){return v(e)&&"[object RegExp]"===S(e)}function v(e){return"object"==typeof e&&null!==e}function b(e){return v(e)&&"[object Date]"===S(e)}function x(e){return v(e)&&("[object Error]"===S(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=e=>{if(h(i)&&(i=""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=()=>{};return a[e]},t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=_,t.isNull=f,t.isNullOrUndefined=e=>null==e,t.isNumber=m,t.isString=g,t.isSymbol=e=>"symbol"==typeof e,t.isUndefined=h,t.isRegExp=y,t.isObject=v,t.isDate=b,t.isError=x,t.isFunction=E,t.isPrimitive=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,t.isBuffer=Wh;var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=Jh,t._extend=(e,t)=>{if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}})),$h=bm((function(e){function t(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function r(e){return vm.Buffer&&"function"==typeof vm.Buffer.isBuffer?vm.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var n=Object.prototype.hasOwnProperty,i=Array.prototype.slice,a="foo"===(()=>{}).name;function o(e){return Object.prototype.toString.call(e)}function s(e){return!r(e)&&"function"==typeof vm.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var c=e.exports=f,l=/\s*function\s+([^\(\s]*)\s*/;function u(e){if(Hh.isFunction(e)){if(a)return e.name;var t=e.toString().match(l);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(a||!Hh.isFunction(e))return Hh.inspect(e);var t=u(e);return"[Function"+(t?": "+t:"")+"]"}function _(e,t,r,n,i){throw new c.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function f(e,t){e||_(e,!0,t,"==",c.ok)}function m(e,n,a,c){if(e===n)return!0;if(r(e)&&r(n))return 0===t(e,n);if(Hh.isDate(e)&&Hh.isDate(n))return e.getTime()===n.getTime();if(Hh.isRegExp(e)&&Hh.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(s(e)&&s(n)&&o(e)===o(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(r(e)!==r(n))return!1;var l=(c=c||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===c.expected.indexOf(n)||(c.actual.push(e),c.expected.push(n),((e,t,r,n)=>{if(null==e||null==t)return!1;if(Hh.isPrimitive(e)||Hh.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=g(e),o=g(t);if(a&&!o||!a&&o)return!1;if(a)return m(e=i.call(e),t=i.call(t),r);var s,c,l=v(e),u=v(t);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),c=l.length-1;c>=0;c--)if(l[c]!==u[c])return!1;for(c=l.length-1;c>=0;c--)if(!m(e[s=l[c]],t[s],r,n))return!1;return!0})(e,n,a,c))}return a?e===n:e==n}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(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 y(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=(e=>{var t;try{e()}catch(e){t=e}return t})(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&_(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!e&&i&&!r;if((!e&&Hh.isError(i)&&a&&h(i,r)||o)&&_(i,r,"Got unwanted exception"+n),e&&i&&r&&!h(i,r)||!e&&i)throw i}c.AssertionError=function(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=(e=>d(p(e.actual),128)+" "+e.operator+" "+d(p(e.expected),128))(this),this.generatedMessage=!0);var t=e.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=u(t),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},Hh.inherits(c.AssertionError,Error),c.fail=_,c.ok=f,c.equal=(e,t,r)=>{e!=t&&_(e,t,r,"==",c.equal)},c.notEqual=(e,t,r)=>{e==t&&_(e,t,r,"!=",c.notEqual)},c.deepEqual=(e,t,r)=>{m(e,t,!1)||_(e,t,r,"deepEqual",c.deepEqual)},c.deepStrictEqual=(e,t,r)=>{m(e,t,!0)||_(e,t,r,"deepStrictEqual",c.deepStrictEqual)},c.notDeepEqual=(e,t,r)=>{m(e,t,!1)&&_(e,t,r,"notDeepEqual",c.notDeepEqual)},c.notDeepStrictEqual=function e(t,r,n){m(t,r,!0)&&_(t,r,n,"notDeepStrictEqual",e)},c.strictEqual=(e,t,r)=>{e!==t&&_(e,t,r,"===",c.strictEqual)},c.notStrictEqual=(e,t,r)=>{e===t&&_(e,t,r,"!==",c.notStrictEqual)},c.throws=(e,t,r)=>{y(!0,e,t,r)},c.doesNotThrow=(e,t,r)=>{y(!1,e,t,r)},c.ifError=e=>{if(e)throw e},c.strict=zh((function e(t,r){t||_(t,!0,r,"==",e)}),c,{equal:c.strictEqual,deepEqual:c.deepStrictEqual,notEqual:c.notStrictEqual,notDeepEqual:c.notDeepStrictEqual}),c.strict.strict=c.strict;var v=Object.keys||(e=>{var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t})}));function Gh(e){return"/"===e.charAt(0)}function qh(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var Xh="win32"===r.platform?qh:Gh,Yh=Gh,Qh=qh;Xh.posix=Yh,Xh.win32=Qh;var Zh=ry,ey=oy,ty=sy;function ry(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ny=sh.Minimatch;function iy(e,t){return e.localeCompare(t,"en")}function ay(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new ny(r,{dot:!0})}return{matcher:new ny(e,{dot:!0}),gmatcher:t}}function oy(e,t){var n=t;return n="/"===t.charAt(0)?rt.join(e.root,t):Xh(t)||""===t?t:e.changedCwd?rt.resolve(e.cwd,t):rt.resolve(t),"win32"===r.platform&&(n=n.replace(/\\/g,"/")),n}function sy(e,t){return!!e.ignore.length&&e.ignore.some((e=>e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))))}var cy={setopts(e,t,n){if(n||(n={}),n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.fs=n.fs||Dt,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),((e,t)=>{e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(ay))})(e,n),e.changedCwd=!1;var i=r.cwd();ry(n,"cwd")?(e.cwd=rt.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||rt.resolve(e.cwd,"/"),e.root=rt.resolve(e.root),"win32"===r.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Xh(e.cwd)?e.cwd:oy(e,e.cwd),"win32"===r.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,n.allowWindowsEscape=!1,e.minimatch=new ny(t,n),e.options=e.minimatch.options},ownProp:Zh,makeAbs:ey,finish(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((e=>{r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(iy)),e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((t=>{var r=!/\/$/.test(t),n=e.cache[t]||e.cache[oy(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((t=>!sy(e,t)))),e.found=r},mark(e,t){var r=oy(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=oy(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},isIgnored:ty,childrenIgnored(e,t){return!!e.ignore.length&&e.ignore.some((e=>!(!e.gmatcher||!e.gmatcher.match(t))))}},ly=fy;fy.GlobSync=my;var uy=cy.setopts,dy=cy.ownProp,py=cy.childrenIgnored,_y=cy.isIgnored;function fy(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new my(e,t).found}function my(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof my))return new my(e,t);if(uy(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}my.prototype._finish=function(){if($h.ok(this instanceof my),this.realpath){var e=this;this.matches.forEach(((t,r)=>{var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[Mg.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}cy.finish(this)},my.prototype._process=function(e,t,r){$h.ok(this instanceof my);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return this._processSimple(e.join("/"),t),void 0;case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":Xh(n)||Xh(e.map((e=>"string"==typeof e?e:"[*]")).join("/"))?(n&&Xh(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);py(this,a)||(o[0]===sh.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},my.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,l=s._glob,u=this.dot||"."===l.charAt(0),d=[],p=0;p<o.length;p++)("."!==(m=o[p]).charAt(0)||u)&&(c&&!e?!m.match(s):m.match(s))&&d.push(m);var _=d.length;if(0!==_)if(1!==n.length||this.mark||this.stat)for(n.shift(),p=0;p<_;p++){var f;m=d[p],f=e?[e,m]:[m],this._process(f.concat(n),i,a)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<_;p++){var m=d[p];e&&(m="/"!==e.slice(-1)?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=rt.join(this.root,m)),this._emitMatch(i,m)}}}},my.prototype._emitMatch=function(e,t){if(!_y(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},my.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},my.prototype._readdir=function(e,t){if(t&&!dy(this.symlinks,e))return this._readdirInGlobStar(e);if(dy(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},my.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},my.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},my.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],l=c.concat(s);this._process(l,i,!1);var u=o.length;if(!this.symlinks[r]||!a)for(var d=0;d<u;d++)if("."!==o[d].charAt(0)||this.dot){var p=c.concat(o[d],s);this._process(p,i,!0);var _=c.concat(o[d],n);this._process(_,i,!0)}}},my.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&Xh(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=rt.join(this.root,e):(e=rt.resolve(this.root,e),i&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},my.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&dy(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=a}else i=a}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},my.prototype._mark=function(e){return cy.mark(this,e)},my.prototype._makeAbs=function(e){return cy.makeAbs(this,e)};var gy=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((e=>{n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((e=>{n[e]=i[e]})),n}},hy=gy(vy),yy=gy(by);function vy(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function by(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}vy.proto=vy((function(){Object.defineProperty(Function.prototype,"once",{value(){return vy(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value(){return by(this)},configurable:!0})})),hy.strict=yy;var xy=Object.create(null),Ey=gy(((e,t)=>xy[e]?(xy[e].push(t),null):(xy[e]=[t],(e=>hy((function t(){var n=xy[e],i=n.length,a=Sy(arguments);try{for(var o=0;o<i;o++)n[o].apply(null,a)}finally{n.length>i?(n.splice(0,i),r.nextTick((()=>{t.apply(null,a)}))):delete xy[e]}})))(e))));function Sy(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var Dy=wy,Ty=Ah.EventEmitter,Cy=cy.setopts,ky=cy.ownProp,Ay=cy.childrenIgnored,Ny=cy.isIgnored;function wy(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return ly(e,t)}return new Py(e,t,r)}wy.sync=ly;var Fy=wy.GlobSync=ly.GlobSync;function Py(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Fy(e,t)}if(!(this instanceof Py))return new Py(e,t,r);Cy(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=hy(r),this.on("error",r),this.on("end",(e=>{r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&(!1,i._finish())}0}wy.glob=wy,wy.hasMagic=(e,t)=>{var r=((e,t)=>{if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e})({},t);r.noprocess=!0;var n=new Py(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},wy.Glob=Py,Sh(Py,Ty),Py.prototype._finish=function(){if($h(this instanceof Py),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();cy.finish(this),this.emit("end",this.found)}},Py.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},Py.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach(((r,n)=>{r=i._makeAbs(r),Mg.realpath(r,i.realpathCache,((n,s)=>{n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},Py.prototype._mark=function(e){return cy.mark(this,e)},Py.prototype._makeAbs=function(e){return cy.makeAbs(this,e)},Py.prototype.abort=function(){this.aborted=!0,this.emit("abort")},Py.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},Py.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},Py.prototype._process=function(e,t,r,n){if($h(this instanceof Py),$h("function"==typeof n),!this.aborted){if(this._processing++,this.paused)return this._processQueue.push([e,t,r,n]),void 0;for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return this._processSimple(e.join("/"),t,n),void 0;case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":Xh(i)||Xh(e.map((e=>"string"==typeof e?e:"[*]")).join("/"))?(i&&Xh(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(Ay(this,o))return n();s[0]===sh.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},Py.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>s._processReaddir2(e,t,r,n,i,a,l,o)))},Py.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],l=!!this.minimatch.negate,u=c._glob,d=this.dot||"."===u.charAt(0),p=[],_=0;_<o.length;_++)("."!==(m=o[_]).charAt(0)||d)&&(l&&!e?!m.match(c):m.match(c))&&p.push(m);var f=p.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),_=0;_<f;_++){var m=p[_];e&&(m="/"!==e?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=rt.join(this.root,m)),this._emitMatch(i,m)}return s()}for(n.shift(),_=0;_<f;_++)m=p[_],e&&(m="/"!==e?e+"/"+m:e+m),this._process([m].concat(n),i,a,s);s()},Py.prototype._emitMatch=function(e,t){if(!this.aborted&&!Ny(this,t)){if(this.paused)return this._emitQueue.push([e,t]),void 0;var r=Xh(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},Py.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=Ey("lstat\0"+e,((n,i)=>{if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},Py.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Ey("readdir\0"+e+"\0"+t,r))){if(t&&!ky(this.symlinks,e))return this._readdirInGlobStar(e,r);if(ky(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,((e,t,r)=>(n,i)=>{n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)})(this,e,r))}},Py.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},Py.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},Py.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>{s._processGlobStar2(e,t,r,n,i,a,l,o)}))},Py.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,i,!1,s);var d=this.symlinks[r],p=o.length;if(d&&a)return s();for(var _=0;_<p;_++)if("."!==o[_].charAt(0)||this.dot){var f=l.concat(o[_],c);this._process(f,i,!0,s);var m=l.concat(o[_],n);this._process(m,i,!0,s)}s()},Py.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,((i,a)=>{n._processSimple2(e,t,i,a,r)}))},Py.prototype._processSimple2=function(e,t,n,i,a){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return a();if(e&&Xh(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=rt.join(this.root,e):(e=rt.resolve(this.root,e),o&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),a()},Py.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&ky(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=Ey("stat\0"+r,((n,i)=>{if(i&&i.isSymbolicLink())return s.fs.stat(r,((n,a)=>{n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&s.fs.lstat(r,c)},Py.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};var Iy={rollup:"^2.22.0"};const Oy="?commonjs-proxy",My=e=>`\0${e}?commonjs-proxy`,Ry=e=>e.slice(1,-Oy.length),Ly="?commonjs-external",By=e=>`\0${e}?commonjs-external`,jy=(e,t)=>e.startsWith(t)?"/$$rollup_base$$"+e.slice(t.length):e,Uy="\0commonjs-dynamic-register:",Vy="\0commonjs-dynamic-json:",Ky="\0commonjs-dynamic-packages",zy="\0commonjsHelpers.js",Wy={"==":e=>qy(e.left,e.right,!1),"!=":e=>Gy(Wy["=="](e)),"===":e=>qy(e.left,e.right,!0),"!==":e=>Gy(Wy["==="](e)),"!":e=>$y(e.argument),"&&":e=>Hy(e.left)&&Hy(e.right),"||":e=>Hy(e.left)||Hy(e.right)};function Jy(e){const t=[];for(;"MemberExpression"===e.type;){if(e.computed)return null;t.unshift(e.property.name),e=e.object}if("Identifier"!==e.type)return null;const{name:r}=e;return t.unshift(r),{name:r,keypath:t.join(".")}}function Hy(e){return"Literal"===e.type?!!e.value:"ParenthesizedExpression"===e.type?Hy(e.expression):e.operator in Wy?Wy[e.operator](e):void 0}function $y(e){return Gy(Hy(e))}function Gy(e){return void 0===e?e:!e}function qy(e,t,r){if(e.type===t.type)return"Literal"===e.type?r?e.value===t.value:e.value==t.value:void 0}function Xy(e){const t=fg(ze(e,Je(e)));if("index"!==t)return t;const r=We(e).split(Qe);return fg(r[r.length-1])}const Yy="process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield".split(" "),Qy={__esModule:!0};Yy.forEach((e=>Qy[e]=!0));const Zy=/^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/,ev=/\b(?:require|module|exports|global)\b/,tv=/\b(?:require|module|exports)\b/,rv=/^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;function nv(e,t,r){let n=1,i=fg(r);for(;e.contains(i)||t.has(i)||i in Qy;)i=`${r}_${n}`,n+=1;return e.declarations[i]=!0,i}function iv(e,t,r){try{return e(t,{allowReturnOutsideFunction:!0})}catch(e){throw e.message+=` in ${r}`,e}}function av(e){return e.replace(/\\/g,"/")}function ov(e,t,r,n,i,a,o,s,c,l,u){const d=u||iv(e,t,r),p=new wg(t),_={},f=[];let m=0,g=((e,t="scope")=>{let r=new dg;return eg(e,{enter(e,n){const i=e;if(/(Function|Class)Declaration/.test(i.type)&&r.addDeclaration(i,!1,!1),"VariableDeclaration"===i.type){const{kind:e}=i,t=ug[e],a=n?n.type:"";t&&/ForOfStatement/.test(a)||i.declarations.forEach((e=>{r.addDeclaration(e,t,!0)}))}let a;if(/Function/.test(i.type)){const e=i;a=new dg({parent:r,block:!1,params:e.params}),"FunctionExpression"===e.type&&e.id&&a.addDeclaration(e,!1,!1)}"BlockStatement"!==i.type||/Function/.test(n.type)||(a=new dg({parent:r,block:!0})),"CatchClause"===i.type&&(a=new dg({parent:r,params:i.param?[i.param]:[],block:!0})),a&&(Object.defineProperty(i,t,{value:a,configurable:!0}),r=a)},leave(e){e[t]&&(r=r.parent)}}),r})(d,"scope");const h={module:!1,exports:!1,global:!1,require:!1};let y=0,v=0;const b=new Set,x=nv(g,b,"commonjsHelpers");let E=/__esModule/.test(t),S=!1;function D(e){return!!e&&"CallExpression"===e.type&&0!==e.arguments.length&&T(e.callee)}function T(e){return!!e&&("Identifier"===e.type&&"require"===e.name?!g.contains("require"):"MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name&&!g.contains("module")&&"Identifier"===e.property.type&&"require"===e.property.name)}function C(e){return!!D(e)&&!(e=>e.arguments.length>1||"Literal"!==e.arguments[0].type&&("TemplateLiteral"!==e.arguments[0].type||e.arguments[0].expressions.length>0))(e)}function k(e){return a(e.arguments[0].value)}function A(e,t){let r=(e=>"Literal"===e.arguments[0].type?e.arguments[0].value:e.arguments[0].quasis[0].value.cooked)(e);const n=r.startsWith(Uy);if(n&&(r=r.substr(Uy.length)),void 0===_[r]){const e=N(r);if(!t)do{t=`require$$${m}`,m+=1}while(g.contains(t));n&&r.endsWith(".json")&&(r=Vy+r),(n||!e||r.endsWith(".json"))&&f.push([r,!n]),_[r]={source:r,name:t,importsDefault:!1,isDynamic:e}}return _[r]}function N(e){if(!/[/\\]/.test(e)){try{const t=av(Dr.sync(e,{basedir:We(r)}));if(c.has(t))return!0}catch(e){return!1}return!1}for(const t of["",".js",".json"]){const n=av(Ye(We(r),e+t));if(c.has(n))return!0}return!1}const w=new Set;if(gg(d,{enter(e){"AssignmentExpression"===e.type&&"MemberExpression"!==e.left.type&&lg(e.left).forEach((e=>{w.add(e)}))}}),gg(d,{enter(e,t){if(o&&(p.addSourcemapLocation(e.start),p.addSourcemapLocation(e.end)),t&&("IfStatement"===t.type||"ConditionalExpression"===t.type)){if(e===t.consequent&&$y(t.test))return this.skip(),void 0;if(e===t.alternate&&Hy(t.test))return this.skip(),void 0}if(e._skip)return this.skip(),void 0;if(v+=1,e.scope&&({scope:g}=e),rv.test(e.type)&&(y+=1),"ReturnStatement"===e.type&&0===y&&(E=!0),"ThisExpression"===e.type&&0===y)return h.global=!0,i||(p.overwrite(e.start,e.end,`${x}.commonjsGlobal`,{storeName:!0}),S=!0),void 0;if("UnaryExpression"===e.type&&"typeof"===e.operator){const t=Jy(e.argument);if(!t)return;if(g.contains(t.name))return;"module.exports"!==t.keypath&&"module"!==t.keypath&&"exports"!==t.keypath||p.overwrite(e.start,e.end,"'object'",{storeName:!1})}if("Identifier"===e.type){if(Fg(e,t)&&!g.contains(e.name)){if(e.name in h){if(T(e)){if((e=>!!(e&&e.property&&["resolve","cache","main"].indexOf(e.property.name)>-1))(t))return;if(!s&&C(t))return;s&&D(t)&&p.appendLeft(t.end-1,`,${JSON.stringify("."===We(r)?null:jy(av(We(r)),l))}`),p.overwrite(e.start,e.end,`${x}.commonjsRequire`,{storeName:!0}),S=!0}h[e.name]=!0,"global"!==e.name||i||(p.overwrite(e.start,e.end,`${x}.commonjsGlobal`,{storeName:!0}),S=!0),"module"!==e.name&&"exports"!==e.name||(E=!0)}"define"===e.name&&p.overwrite(e.start,e.end,"undefined",{storeName:!0}),b.add(e.name)}return}if("AssignmentExpression"===e.type){if("MemberExpression"!==e.left.type)return;const t=Jy(e.left);if(!t)return;if(g.contains(t.name))return;if(!Zy.exec(t.keypath)||"exports"===t.keypath)return;return h[t.name]=!0,v>3&&(E=!0),e.left._skip=!0,"module.exports"===t.keypath&&"ObjectExpression"===e.right.type?(e.right.properties.forEach((e=>{if(e.computed||!("key"in e)||"Identifier"!==e.key.type)return;const{name:t}=e.key;t===fg(t)})),void 0):void 0}const n=((e,t)=>{if("CallExpression"!==e.type)return;const{callee:{object:r,property:n}}=e;if(!r||"Identifier"!==r.type||"Object"!==r.name)return;if(!n||"Identifier"!==n.type||"defineProperty"!==n.name)return;if(3!==e.arguments.length)return;const[i,a]=e.arguments;return"Identifier"===i.type&&"exports"===i.name?a.value:void 0})(e);if(n&&n===fg(n),"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&C(e.init)&&!k(e.init)){if(g.parent)return;if(w.has(e.id.name))return;const t=A(e.init,e.id.name);t.importsDefault=!0,t.name!==e.id.name||t.isDynamic||(e._shouldRemove=!0)}if(!C(e)||k(e))return;const a=A(e);"ExpressionStatement"===t.type?p.remove(t.start,t.end):(a.importsDefault=!0,(e=>N(e.source)&&(e.source.startsWith(Uy)||!e.source.endsWith(".json")))(a)?(p.overwrite(e.start,e.end,`${x}.commonjsRequire(${JSON.stringify(jy(av(a.source),l))}, ${JSON.stringify("."===We(r)?null:jy(av(We(r)),l))})`),S=!0):p.overwrite(e.start,e.end,a.name)),e.callee._skip=!0},leave(e){if(v-=1,e.scope&&(g=g.parent),rv.test(e.type)&&(y-=1),"VariableDeclaration"===e.type){let t=!1,r=e.declarations[0].start;for(let n=0;n<e.declarations.length;n+=1){const i=e.declarations[n];i._shouldRemove?p.remove(r,i.end):(t||(p.remove(r,i.start),t=!0),r=i.end)}t||p.remove(e.start,e.end)}}}),!f.length&&!h.module&&!h.exports&&!h.require&&(i||!h.global))return null;n&&(E=!1),S=S||E;const F=`${(S?[`import * as ${x} from '${zy}';`]:[]).concat(f.map((([e])=>`import '${e}';`)),f.filter((([,e])=>e)).map((([e])=>{const{name:t,importsDefault:r}=_[e];return`import ${r?`${t} from `:""}'${e.startsWith("\0")?e:My(e)}';`}))).join("\n")}\n\n`,P=[];let I="",O="";const M=nv(g,b,Xy(r));if(!n){const e={str:`export { ${M} as __moduleExports };`,name:"__moduleExports"};P.push(e)}const R=[];let L=!1;if(E){const e="module"+(h.exports?", exports":"");I=`var ${M} = ${x}.createCommonjsModule(function (${e}) {\n`,O="\n}",s&&(O+=`, ${JSON.stringify(jy(av(We(r)),l))}`),O+=");"}else{const e=[];for(const t of d.body)if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type){const{left:r}=t.expression,n=Jy(r);if(!n)continue;const i=Zy.exec(n.keypath);if(!i)continue;if("module.exports"===n.keypath)L=!0,p.overwrite(r.start,r.end,`var ${M}`);else{const[,n]=i,a=nv(g,b,n);e.push({name:n,deconflicted:a}),p.overwrite(t.start,r.end,`var ${a}`);const o=n===a?`export { ${n} };`:`export { ${a} as ${n} };`;"default"!==n&&P.push({str:o,name:n}),R.push(`${M}.${n} = ${a};`)}}n||L||(O=`\n\nvar ${M} = {\n${e.map((({name:e,deconflicted:t})=>`\t${e}: ${t}`)).join(",\n")}\n};`)}p.trim().prepend(F+I).trim().append(O);const B=t.indexOf("__esModule")>=0?`export default /*@__PURE__*/${x}.getDefaultExportFromCjs(${M});`:`export default ${M};`,j=P.filter((e=>"default"!==e.name||!L)).map((e=>e.str));return p.append(`\n\n${(n?[]:[B]).concat(j).concat(L?R:[]).join("\n")}`),{code:t=p.toString(),map:o?p.generateMap():null,syntheticNamedExports:!n&&"__moduleExports"}}const sv=new Map;function cv(e,t){const r=sv.get(e);r?r.resolve&&(r.resolve(t),r.resolve=void 0):sv.set(e,{promise:Promise.resolve(t),resolve:void 0})}function lv(e,t){if(!0===t||e.endsWith(".json"))return`export {default} from ${JSON.stringify(e)};`;const r=Xy(e),n="auto"===t?`import {getDefaultExportFromNamespaceIfNotNamed} from "${zy}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${r});`:"preferred"===t?`import {getDefaultExportFromNamespaceIfPresent} from "${zy}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${r});`:t?`export default ${r};`:`import {getAugmentedNamespace} from "${zy}"; export default /*@__PURE__*/getAugmentedNamespace(${r});`;return`import * as ${r} from ${JSON.stringify(e)}; ${n}`}function uv(e){return function(t,r){const n=t.endsWith(Oy);if(n&&(t=Ry(t)),t.startsWith("\0")){if(t.startsWith(zy)||t===Ky||t.startsWith(Vy))return t;if(!n)return null}return r&&r.endsWith(Oy)&&(r=Ry(r)),this.resolve(t,r,{skipSelf:!0}).then((i=>(i||(i=((t,r)=>{if("."!==t[0]||!r)return;const n=function(e,t){return t.reduce(((t,r)=>t.concat(((e,t)=>[e+t,`${e}${Qe}index${t}`])(e,r))),[e])}(Ye(We(r),t),e);for(let e=0;e<n.length;e+=1)try{if(Ot(n[e]).isFile())return{id:n[e]}}catch(e){}})(t,r)),n?i?(i.id=(i.external?By:My)(i.id),i.external=!1,i):{id:By(t),external:!1}:i)))}}function dv(e={}){const t=e.extensions||[".js"],n=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return Zm(r,{dot:!0})(t)}},a=pg(e).map(i),o=pg(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),{ignoreGlobal:i,requireReturnsDefault:a,esmExternals:o}=e,s="function"==typeof a?a:()=>a;let c;const l="function"==typeof o?o:Array.isArray(o)?(c=new Set(o),e=>c.has(e)):()=>o,{dynamicRequireModuleSet:u,dynamicRequireModuleDirPaths:d}=(e=>{const t=new Set;for(const r of!e||Array.isArray(e)?e||[]:[e]){const e=r.startsWith("!"),n=Set.prototype[e?"delete":"add"].bind(t);for(const t of Dy.sync(e?r.substr(1):r))n(av(Ye(t)))}const r=Array.from(t.values()).filter((e=>{try{if(Ot(e).isDirectory())return!0}catch(e){}return!1}));return{dynamicRequireModuleSet:t,dynamicRequireModuleDirPaths:r}})(e.dynamicRequireTargets),p=u.size>0,_=p?((e,t)=>{if(t)var r=t.map((e=>rt.resolve(null,e)));else r=null;var n=r.slice(1).reduce(((e,t)=>{if(!t.match(/^([A-Za-z]:)?\/|\\/))throw new Error("relative path without a basedir");for(var r=t.split(/\/+|\\+/),n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),r[0].split(/\/+|\\+/));return n.length>1?n.join("/"):"/"})(0,Array.from(u).concat(r.cwd())):null,f=new Set,m=new Set,g="function"==typeof e.ignore?e.ignore:Array.isArray(e.ignore)?t=>e.ignore.includes(t):()=>!1,h=uv(t),y=!1!==e.sourceMap;function v(t,r){const{isEsModule:n,hasDefaultExport:a,hasNamedExports:o,ast:s}=((e,t,r)=>{const n=iv(e,t,r);let i=!1,a=!1,o=!1;for(const e of n.body)if("ExportDefaultDeclaration"===e.type)i=!0,a=!0;else if("ExportNamedDeclaration"===e.type)if(i=!0,e.declaration)o=!0;else for(const t of e.specifiers)"default"===t.exported.name?a=!0:o=!0;else"ExportAllDeclaration"===e.type?(i=!0,e.exported&&"default"===e.exported.name?a=!0:o=!0):"ImportDeclaration"===e.type&&(i=!0);return{isEsModule:i,hasDefaultExport:a,hasNamedExports:o,ast:n}})(this.parse,t,r);if(a&&f.add(r),o&&m.add(r),!u.has(av(r))&&(!((e,t)=>(t?tv:ev).test(e))(t,i)||n&&!e.transformMixedEsModules))return cv(r,!1),null;const c=ov(this.parse,t,r,n,i||n,g,y,p,u,_,s);return cv(r,!n&&Boolean(c)),c}return{name:"commonjs",buildStart(){null!=e.namedExports&&this.warn('The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.');const[t,r]=this.meta.rollupVersion.split(".").map(Number),n=Iy.rollup.slice(2),[i,a]=n.split(".").map(Number);(t<i||t===i&&r<a)&&this.error(`Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${n} but found rollup@${this.meta.rollupVersion}.`)},resolveId:h,load(e){if(e===zy)return(e=>"\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nexport function getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport function getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n"+(e?"\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tlet cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\tif (cachedModule) return cachedModule.exports;\n\t\t\tconst loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n\t\t\tif (loader) {\n\t\t\t\tDYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n\t\t\t\t\tid: resolvedPath,\n\t\t\t\t\tfilename: resolvedPath,\n\t\t\t\t\tpath: dirname(resolvedPath),\n\t\t\t\t\texports: {},\n\t\t\t\t\tparent: DEFAULT_PARENT_MODULE,\n\t\t\t\t\tloaded: false,\n\t\t\t\t\tchildren: [],\n\t\t\t\t\tpaths: [],\n\t\t\t\t\trequire: function (path, base) {\n\t\t\t\t\t return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\ttry {\n\t\t\t\t\tloader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdelete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\tcachedModule.loaded = true;\n\t\t\t\treturn cachedModule.exports;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\n":"\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n"))(p);if(e.startsWith(zy))return(e=>`export {${e.split("?")[1]} as default} from '${zy}';`)(e);if(e.endsWith(Ly)){const t=e.slice(1,-Ly.length);return lv(t,!l(t)||s(t))}if(e===Ky)return((e,t)=>{let r=`const commonjsRegister = require('${zy}?commonjsRegister');`;for(const n of e){let e="index.js";try{Ct($e(n,"package.json"))&&(e=JSON.parse(Ft($e(n,"package.json"),{encoding:"utf8"})).main||e)}catch(e){}r+=`\ncommonjsRegister(${JSON.stringify(jy(n,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(av($e(n,e)))});\n});`}return r})(d,_);if(e.startsWith(Vy))return((e,t)=>{const r=av(e.slice(Vy.length));return`const commonjsRegister = require('${zy}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(jy(r,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(r)});\n});`})(e,_);const t=av(e);if(u.has(t)&&!t.endsWith(".json"))return((e,t)=>`const commonjsRegister = require('${zy}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(jy(e,t))}, function (module, exports) {\n ${Ft(e,{encoding:"utf8"})}\n});`)(t,_);if(e.endsWith(Oy)){const t=Ry(e);return async function(e,t,r,n){const i=Xy(e),a=await(e=>{let t=sv.get(e);if(t)return t.promise;const r=new Promise((r=>{t={resolve:r,promise:void 0},sv.set(e,t)}));return t.promise=r,r})(e);return a?`import { __moduleExports } from ${JSON.stringify(e)}; export default __moduleExports;`:null===a?lv(e,t):t?!0!==t&&("namespace"===t||!r.has(e)||"auto"===t&&n.has(e))?`import * as ${i} from ${JSON.stringify(e)}; export default ${i};`:`export {default} from ${JSON.stringify(e)};`:`import {getAugmentedNamespace} from "${zy}"; import * as ${i} from ${JSON.stringify(e)}; export default /*@__PURE__*/getAugmentedNamespace(${i});`}(t,s(t),f,m)}return p&&this.getModuleInfo(e).isEntry?function(e,t,r){try{const n=Ft(e,{encoding:"utf8"});let i=Array.from(r,(e=>`require(${JSON.stringify(Uy+e)});`)).join("\n");return t.length&&(i+=`require(${JSON.stringify(Uy+Ky)});`),`${i}\n${n}`}catch(t){return this.warn(`Failed to read file ${e}, dynamic modules might not work correctly`),null}}(e,d,u):null},transform(e,r){const i=Je(r);if(!(".cjs"===i||r===Ky||r.startsWith(Vy)||n(r)&&t.includes(i)))return cv(r,null),null;let a;try{a=v.call(this,e,r)}catch(e){a=null,cv(r,!1),this.error(e,e.loc)}return a}}}function pv(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const _v=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));_v.add("");const fv=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||_v.has(t))&&(t=`_${t}`),t||"_"};function mv(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function gv(e,t,r){return e===1/0?"Infinity":e===-1/0?"-Infinity":0===e&&1/e==-1/0?"-0":e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():e!=e?"NaN":Array.isArray(e)?((e,t,r)=>{let n="[";const i=t?`\n${r}${t}`:"";for(let a=0;a<e.length;a++)n+=`${a>0?",":""}${i}${gv(e[a],t,r+t)}`;return`${n}${t?`\n${r}`:""}]`})(e,t,r):null===e?"null":"object"==typeof e?((e,t,r)=>{let n="{";const i=t?`\n${r}${t}`:"",a=Object.entries(e);for(let e=0;e<a.length;e++){const[o,s]=a[e];n+=`${e>0?",":""}${i}${fv(o)===o?o:mv(o)}:${t?" ":""}${gv(s,t,r+t)}`}return`${n}${t?`\n${r}`:""}}`})(e,t,r):mv(e)}const hv=(e,t={})=>{const r=t.compact?"":"indent"in t?t.indent:"\t",n=t.compact?"":" ",i=t.compact?"":"\n",a=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=gv(e,t.compact?null:r,"");return`export default${n||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const s=[];for(const[c,l]of Object.entries(e))c===fv(c)?(t.objectShorthand?s.push(c):s.push(`${c}:${n}${c}`),o+=`export ${a} ${c}${n}=${n}${gv(l,t.compact?null:r,"")};${i}`):s.push(`${mv(c)}:${n}${gv(l,t.compact?null:r,"")}`);return`${o}export default${n}{${i}${r}${s.join(`,${i}${r}`)}${i}};${i}`};function yv(e){void 0===e&&(e={});var t=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return Zm(r,{dot:!0})(t)}},a=pv(e).map(i),o=pv(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),r="indent"in e?e.indent:"\t";return{name:"json",transform(n,i){if(".json"!==i.slice(-5)||!t(i))return null;try{var a=JSON.parse(n);return{code:hv(a,{preferConst:e.preferConst,compact:e.compact,namedExports:e.namedExports,indent:r}),map:{mappings:""}}}catch(e){var o=parseInt(/[\d]/.exec(e.message)[0],10);return this.warn({message:"Could not parse JSON file",id:i,position:o}),null}}}}const{builtinModules:vv}=class{static get builtinModules(){return ym}},bv=["sys"];var xv=vv.filter((e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!bv.includes(e))).sort(),Ev=e=>(e=>!!e&&"object"==typeof e)(e)&&!(e=>{var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||(e=>e.$$typeof===Sv)(e)})(e),Sv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Dv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Av((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Tv(e,t,r){return e.concat(t).map((e=>Dv(e,r)))}function Cv(e){return Object.keys(e).concat((e=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((t=>e.propertyIsEnumerable(t))):[])(e))}function kv(e,t){try{return t in e}catch(e){return!1}}function Av(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Tv,r.isMergeableObject=r.isMergeableObject||Ev,r.cloneUnlessOtherwiseSpecified=Dv;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Cv(e).forEach((t=>{n[t]=Dv(e[t],r)})),Cv(t).forEach((i=>{((e,t)=>kv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t)))(e,i)||(kv(e,i)&&r.isMergeableObject(t[i])?n[i]=((e,t)=>{if(!t.customMerge)return Av;var r=t.customMerge(e);return"function"==typeof r?r:Av})(i,r)(e[i],t[i],r):n[i]=Dv(t[i],r))})),n}(e,t,r):Dv(t,r)}Av.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(((e,r)=>Av(e,r,t)),{})};var Nv=Av,wv=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,Fv=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;function Pv(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const Iv=bt(Dt.exists),Ov=bt(Dt.readFile),Mv=bt(Dt.realpath),Rv=bt(Dt.stat),Lv=e=>{if("ENOENT"===e.code)return!1;throw e},Bv=e=>{const t=new Map,r=async(r,n)=>{!1===t.has(r)&&t.set(r,e(r).catch((e=>{throw t.delete(r),e})));try{const e=t.get(r);return n(null,await e)}catch(e){return n(e)}};return r.clear=()=>t.clear(),r},jv=Bv((async e=>{try{return(await Rv(e)).isDirectory()}catch(e){return Lv(e)}})),Uv=Bv((async e=>{try{return(await Rv(e)).isFile()}catch(e){return Lv(e)}})),Vv=Bv(Ov),Kv=bt(Dr),zv=new Set(xv),Wv="\0node-resolve:empty.js",Jv=()=>null,Hv=e=>{Object.freeze(e);for(const t of Object.values(e))"object"!=typeof t||Object.isFrozen(t)||Hv(t);return e},$v={customResolveOptions:{},dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[]};function Gv(e={}){const t=Object.assign({},$v,e),{customResolveOptions:n,extensions:i,jail:a}=t,o=[],s=new Map,c=new Map,l=(e=>{let t;if(e.mainFields?({mainFields:t}=e):t=["module","main"],e.browser&&-1===t.indexOf("browser"))return["browser"].concat(t);if(!t.length)throw new Error("Please ensure at least one `mainFields` value is specified");return t})(t),u=-1!==l.indexOf("browser"),d=!0===t.preferBuiltins||!1===t.preferBuiltins,p=!d||t.preferBuiltins,_=t.rootDir||r.cwd();let f,{dedupe:m}=t;t.only&&(o.push("node-resolve: The `only` options is deprecated, please use `resolveOnly`"),t.resolveOnly=t.only),"function"!=typeof m&&(m=e=>t.dedupe.includes(e)||t.dedupe.includes((e=>{if(e.startsWith(".")||e.startsWith("/"))return null;const t=e.split("/");return"@"===t[0][0]?`${t[0]}/${t[1]}`:t[0]})(e)));const g=t.resolveOnly.map((e=>{if(e instanceof RegExp)return e;const t=e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${t}$`)})),h=new Map;let y;return{name:"node-resolve",buildStart(e){f=e;for(const e of o)this.warn(e);({preserveSymlinks:y}=e)},generateBundle(){Vv.clear(),Uv.clear(),jv.clear()},async resolveId(e,r){if(e===Wv)return e;if(/\0/.test(e))return null;const[o,v]=e.split("#"),[b,x]=o.split("?"),E=`${x?`?${x}`:""}${v?`#${v}`:""}`;e=b;const S=!r||m(e)?_:We(r),D=h.get(r);if(u&&D){const t=Ye(S,e);if(!1===D[e]||!1===D[t])return Wv;const r=D[e]||D[t]||D[`${t}.js`]||D[`${t}.json`];r&&(e=r)}const T=e.split(/[/\\]/);let C=T.shift(),k=!1;if("@"===C[0]&&T.length>0?C+=`/${T.shift()}`:"."===C[0]&&(C=Ye(S,e),k=!0),!k&&g.length&&!g.some((e=>e.test(C))))return!!(A=f.input,Array.isArray(A)?A:"object"==typeof A?Object.values(A):[A]).includes(e)&&null;var A;let N,w=Jv,F=!0,P=!1,I={basedir:S,packageFilter(e,t){const r=(e=>{const{cache:t,extensions:r,pkg:n,mainFields:i,preserveSymlinks:a,useBrowserOverrides:o}=e;let{pkgPath:s}=e;if(t.has(s))return t.get(s);a||(s=It(s));const c=We(s),l={packageJson:Object.assign({},n),packageJsonPath:s,root:c,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""};let u=!1;for(let e=0;e<i.length;e++){const t=i[e];if("string"==typeof n[t]){n.main=n[t],l.resolvedMainField=t,u=!0;break}}const d={cachedPkg:n,hasModuleSideEffects(){return null},hasPackageEntry:!1!==u||-1!==i.indexOf("main"),packageBrowserField:o&&"object"==typeof n.browser&&Object.keys(n.browser).reduce(((e,t)=>{let i=n.browser[t];if(i&&"."===i[0]&&(i=Ye(c,i)),e[t]=i,"."===t[0]){const n=Ye(c,t);e[n]=i,Je(t)||r.reduce(((e,r)=>(e[n+r]=e[t],e)),e)}return e}),{}),packageInfo:l},p=d.packageBrowserField;o&&"object"==typeof n.browser&&p.hasOwnProperty(n.main)?(l.resolvedEntryPoint=p[n.main],l.browserMappedMain=!0):(l.resolvedEntryPoint=Ye(c,n.main||"index.js"),l.browserMappedMain=!1);const _=n.sideEffects;return"boolean"==typeof _?d.hasModuleSideEffects=()=>_:Array.isArray(_)&&(d.hasModuleSideEffects=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return Zm(r,{dot:!0})(t)}},a=Pv(e).map(i),o=Pv(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(_,null,{resolve:c})),t.set(s,d),d})({cache:s,extensions:i,pkg:e,pkgPath:t,mainFields:l,preserveSymlinks:y,useBrowserOverrides:u});return({packageInfo:N,hasModuleSideEffects:w,hasPackageEntry:F,packageBrowserField:P}=r),r.cachedPkg},readFile:Vv,isFile:Uv,isDirectory:jv,extensions:i};void 0!==y&&(I.preserveSymlinks=y);const O=[];void 0!==r||e[0].match(/^\.?\.?\//)||O.push(`./${e}`);const M=zv.has(e);if(!M||p&&d||O.push(`${e}/`),r&&e.endsWith(".js"))for(const t of[".ts",".tsx"])r.endsWith(t)&&i.includes(t)&&O.push(e.replace(/.js$/,t));O.push(e),I=Object.assign(I,n);try{let r=await((e,t)=>{let r=Promise.resolve();for(let n=0;n<e.length;n++)r=r.then((r=>r||Kv(e[n],t).then((e=>(t.preserveSymlinks||(e=It(e)),e))))),n<e.length-1&&(r=r.catch((e=>{if("MODULE_NOT_FOUND"!==e.code)throw e})));return r})(O,I);if(r&&P){if(Object.prototype.hasOwnProperty.call(P,r)){if(!P[r])return h.set(r,P),Wv;r=P[r]}h.set(r,P)}if(F&&!y&&r&&await Iv(r)&&(r=await Mv(r)),c.set(r,N),F){if(zv.has(r)&&p&&d)return null;if(M&&p)return d||this.warn(`preferring built-in module '${e}' over local alternative at '${r}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),null;if(a&&0!==r.indexOf(Ge(a.trim(Qe))))return null}if(r&&t.modulesOnly){return R=await Ov(r,"utf-8"),wv.test(R)||Fv.test(R)?{id:`${r}${E}`,moduleSideEffects:w(r)}:null}return{id:`${r}${E}`,moduleSideEffects:w(r)}}catch(e){return null}var R},load(e){return e===Wv?"export default {};":null},getPackageInfoForId(e){return c.get(e)}}}Hv(Nv({},$v));var qv=function e(t){this.bits=t instanceof e?t.bits.slice():[]};qv.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},qv.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var Xv=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Xv.prototype.appendLeft=function(e){this.outro+=e},Xv.prototype.appendRight=function(e){this.intro=this.intro+e},Xv.prototype.clone=function(){var e=new Xv(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},Xv.prototype.contains=function(e){return this.start<e&&e<this.end},Xv.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},Xv.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},Xv.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},Xv.prototype.prependLeft=function(e){this.outro=e+this.outro},Xv.prototype.prependRight=function(e){this.intro=e+this.intro},Xv.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new Xv(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},Xv.prototype.toString=function(){return this.intro+this.content+this.outro},Xv.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},Xv.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var Yv=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Yv=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(Yv=e=>t.from(e,"utf-8").toString("base64"));var Qv=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=hg(e.mappings)};function Zv(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function eb(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}Qv.prototype.toString=function(){return JSON.stringify(this)},Qv.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Yv(this.toString())};var tb=Object.prototype.toString;function rb(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var nb=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};nb.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},nb.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},nb.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var ib="\n",ab={insertLeft:!1,insertRight:!1,storeName:!1},ob=function(e,t){void 0===t&&(t={});var r=new Xv(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new qv},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:Zv(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function sb(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}ob.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},ob.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},ob.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},ob.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},ob.prototype.clone=function(){for(var e=new ob(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new qv(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},ob.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new nb(e.hires),i=rb(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?eb(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},ob.prototype.generateMap=function(e){return new Qv(this.generateDecodedMap(e))},ob.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},ob.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===tb.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var u=this.original[s];"\n"===u?a=!0:"\r"!==u&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},ob.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},ob.prototype.insertLeft=function(e,t){return ab.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ab.insertLeft=!0),this.appendLeft(e,t)},ob.prototype.insertRight=function(e,t){return ab.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ab.insertRight=!0),this.prependRight(e,t)},ob.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},ob.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(ab.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ab.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);Object.defineProperty(this.storedNames,o,{writable:!0,value:!0,enumerable:!0})}var s=this.byStart[e],c=this.byEnd[t];if(s){for(var l=s;l!==c;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");(l=l.next).edit("",!1)}s.edit(r,i,a)}else{var u=new Xv(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},ob.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},ob.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},ob.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},ob.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},ob.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},ob.prototype.lastLine=function(){var e=this.outro.lastIndexOf(ib);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(ib)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(ib)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(ib)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(ib))?this.intro.substr(e+1)+t:this.intro+t},ob.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},ob.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},ob.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},ob.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=rb(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},ob.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},ob.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},ob.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},ob.prototype.trimLines=function(){return this.trim("[\\r\\n]")},ob.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},ob.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},ob.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},ob.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},ob.prototype.trimStart=function(e){return this.trimStartAborted(e),this};function cb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function lb(e,t){return t.length-e.length}function ub(e){void 0===e&&(e={});var t,r=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=Ye(t||"").split(Qe).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return et.join(r,e)})(e,n);return Zm(r,{dot:!0})(t)}},a=sb(e).map(i),o=sb(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Qe).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),n=e.delimiters,i=(t=(e=>{if(e.values)return Object.assign({},e.values);var t=Object.assign({},e);return delete t.delimiters,delete t.include,delete t.exclude,delete t.sourcemap,delete t.sourceMap,t})(e),Object.keys(t).reduce(((e,r)=>{var n,i=Object.assign({},e);return i[r]="function"==typeof(n=t[r])?n:()=>n,i}),{})),a=Object.keys(i).sort(lb).map(cb),o=n?new RegExp(cb(n[0])+"("+a.join("|")+")"+cb(n[1]),"g"):new RegExp("\\b("+a.join("|")+")\\b","g");return{name:"replace",renderChunk(e,t){var n=t.fileName;return a.length&&r(n)?s(e,n):null},transform:(e,t)=>a.length&&r(t)?s(e,t):null};function s(t,r){var n=new ob(t);if(!((e,t,r)=>{for(var n,a=!1;n=o.exec(e);){a=!0;var s=n.index,c=s+n[0].length,l=String(i[n[1]](t));r.overwrite(s,c,l)}return a})(t,r,n))return null;var a={code:n.toString()};return!1!==e.sourceMap&&!1!==e.sourcemap&&(a.map=n.generateMap({hires:!0})),a}}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const db=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));db.add("");const pb=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||db.has(t))&&(t=`_${t}`),t||"_"};function _b(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function fb(e,t,r){return e===1/0?"Infinity":e===-1/0?"-Infinity":0===e&&1/e==-1/0?"-0":e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():e!=e?"NaN":Array.isArray(e)?((e,t,r)=>{let n="[";const i=t?`\n${r}${t}`:"";for(let a=0;a<e.length;a++)n+=`${a>0?",":""}${i}${fb(e[a],t,r+t)}`;return`${n}${t?`\n${r}`:""}]`})(e,t,r):null===e?"null":"object"==typeof e?((e,t,r)=>{let n="{";const i=t?`\n${r}${t}`:"",a=Object.entries(e);for(let e=0;e<a.length;e++){const[o,s]=a[e];n+=`${e>0?",":""}${i}${pb(o)===o?o:_b(o)}:${t?" ":""}${fb(s,t,r+t)}`}return`${n}${t?`\n${r}`:""}}`})(e,t,r):_b(e)}var mb=gb;function gb(e,t){if(!e)throw new Error(t||"Assertion failed")}gb.equal=(e,t,r)=>{if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var hb=at((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}));const yb=ot(Et);function vb(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function bb(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function xb(e){return 1===e.length?"0"+e:e}function Eb(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var Sb={inherits:at((e=>{try{var t=yb;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=hb}})),toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):vb(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},toHex(e){for(var t="",r=0;r<e.length;r++)t+=xb(e[r].toString(16));return t},htonl:bb,toHex32(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=bb(i)),r+=Eb(i.toString(16))}return r},zero2:xb,zero8:Eb,join32(e,t,r,n){var i=r-t;mb(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var c;c="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=c>>>0}return a},split32(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},rotr32(e,t){return e>>>t|e<<32-t},rotl32(e,t){return e<<t|e>>>32-t},sum32(e,t){return e+t>>>0},sum32_3(e,t,r){return e+t+r>>>0},sum32_4(e,t,r,n){return e+t+r+n>>>0},sum32_5(e,t,r,n,i){return e+t+r+n+i>>>0},sum64(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},sum64_hi(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},sum64_lo(e,t,r,n){return t+n>>>0},sum64_4_hi(e,t,r,n,i,a,o,s){var c=0,l=t;return c+=(l=l+n>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+r+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},sum64_4_lo(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},sum64_5_hi(e,t,r,n,i,a,o,s,c,l){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+a>>>0)<a?1:0,u+=(d=d+s>>>0)<s?1:0,e+r+i+o+c+(u+=(d=d+l>>>0)<l?1:0)>>>0},sum64_5_lo(e,t,r,n,i,a,o,s,c,l){return t+n+a+s+l>>>0},rotr64_hi(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi(e,t,r){return e>>>r},shr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0}};function Db(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var Tb=Db;Db.prototype.update=function(e,t){if(e=Sb.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=Sb.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},Db.prototype.digest=function(e){return this.update(this._pad()),mb(null===this.pending),this._digest(e)},Db.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n};var Cb={BlockHash:Tb},kb=Sb.rotr32;function Ab(e,t,r){return e&t^~e&r}function Nb(e,t,r){return e&t^e&r^t&r}var wb=Ab,Fb=Nb,Pb=e=>kb(e,2)^kb(e,13)^kb(e,22),Ib=e=>kb(e,6)^kb(e,11)^kb(e,25),Ob=e=>kb(e,7)^kb(e,18)^e>>>3,Mb=e=>kb(e,17)^kb(e,19)^e>>>10,Rb=Sb.sum32,Lb=Sb.sum32_4,Bb=Sb.sum32_5,jb=wb,Ub=Fb,Vb=Pb,Kb=Ib,zb=Ob,Wb=Mb,Jb=Cb.BlockHash,Hb=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function $b(){if(!(this instanceof $b))return new $b;Jb.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Hb,this.W=new Array(64)}Sb.inherits($b,Jb);var Gb=$b;$b.blockSize=512,$b.outSize=256,$b.hmacStrength=192,$b.padLength=64,$b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=Lb(Wb(r[n-2]),r[n-7],zb(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],u=this.h[6],d=this.h[7];for(mb(this.k.length===r.length),n=0;n<r.length;n++){var p=Bb(d,Kb(c),jb(c,l,u),this.k[n],r[n]),_=Rb(Vb(i),Ub(i,a,o));d=u,u=l,l=c,c=Rb(s,p),s=o,o=a,a=i,i=Rb(p,_)}this.h[0]=Rb(this.h[0],i),this.h[1]=Rb(this.h[1],a),this.h[2]=Rb(this.h[2],o),this.h[3]=Rb(this.h[3],s),this.h[4]=Rb(this.h[4],c),this.h[5]=Rb(this.h[5],l),this.h[6]=Rb(this.h[6],u),this.h[7]=Rb(this.h[7],d)},$b.prototype._digest=function(e){return"hex"===e?Sb.toHex32(this.h,"big"):Sb.split32(this.h,"big")};for(var qb="2.42.3",Xb={},Yb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Qb=0;Qb<Yb.length;Qb++)Xb[Yb.charCodeAt(Qb)]=Qb;function Zb(e,t,r){4===r?e.push([t[0],t[1],t[2],t[3]]):5===r?e.push([t[0],t[1],t[2],t[3],t[4]]):1===r&&e.push([t[0]])}function ex(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+=Yb[r]}while(e>0);return t}var tx=function e(t){this.bits=t instanceof e?t.bits.slice():[]};tx.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},tx.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var rx=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};rx.prototype.appendLeft=function(e){this.outro+=e},rx.prototype.appendRight=function(e){this.intro=this.intro+e},rx.prototype.clone=function(){var e=new rx(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},rx.prototype.contains=function(e){return this.start<e&&e<this.end},rx.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},rx.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},rx.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},rx.prototype.prependLeft=function(e){this.outro=e+this.outro},rx.prototype.prependRight=function(e){this.intro=e+this.intro},rx.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new rx(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},rx.prototype.toString=function(){return this.intro+this.content+this.outro},rx.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},rx.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var nx=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?nx=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(nx=e=>t.from(e,"utf-8").toString("base64"));var ix=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=ex(p[0]-c);c=p[0],p.length>1&&(_+=ex(p[1]-t)+ex(p[2]-r)+ex(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=ex(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)};function ax(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function ox(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}ix.prototype.toString=function(){return JSON.stringify(this)},ix.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+nx(this.toString())};var sx=Object.prototype.toString;function cx(e){return"[object Object]"===sx.call(e)}function lx(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var ux=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};ux.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},ux.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},ux.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var dx="\n",px={insertLeft:!1,insertRight:!1,storeName:!1},_x=function(e,t){void 0===t&&(t={});var r=new rx(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new tx},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:ax(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};_x.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},_x.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},_x.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},_x.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},_x.prototype.clone=function(){for(var e=new _x(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new tx(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},_x.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new ux(e.hires),i=lx(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?ox(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},_x.prototype.generateMap=function(e){return new ix(this.generateDecodedMap(e))},_x.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},_x.prototype.indent=function(e,t){var r=/^[^\r\n]/gm;if(cx(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var n={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)n[t]=!0}));var i=!1!==t.indentStart,a=t=>i?""+e+t:(i=!0,t);this.intro=this.intro.replace(r,a);for(var o=0,s=this.firstChunk;s;){var c=s.end;if(s.edited)n[o]||(s.content=s.content.replace(r,a),s.content.length&&(i="\n"===s.content[s.content.length-1]));else for(o=s.start;o<c;){if(!n[o]){var l=this.original[o];"\n"===l?i=!0:"\r"!==l&&i&&(i=!1,o===s.start?s.prependRight(e):(this._splitChunk(s,o),(s=s.next).prependRight(e)))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(r,a),this},_x.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},_x.prototype.insertLeft=function(e,t){return px.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),px.insertLeft=!0),this.appendLeft(e,t)},_x.prototype.insertRight=function(e,t){return px.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),px.insertRight=!0),this.prependRight(e,t)},_x.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},_x.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(px.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),px.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(r,i,a),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var u=new rx(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},_x.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},_x.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},_x.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},_x.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},_x.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},_x.prototype.lastLine=function(){var e=this.outro.lastIndexOf(dx);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(dx)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(dx)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(dx)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(dx))?this.intro.substr(e+1)+t:this.intro+t},_x.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},_x.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},_x.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},_x.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=lx(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},_x.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},_x.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},_x.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},_x.prototype.trimLines=function(){return this.trim("[\\r\\n]")},_x.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},_x.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},_x.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},_x.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},_x.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var fx=Object.prototype.hasOwnProperty,mx=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function gx(e,t){const r=e.split(/[/\\]/).filter(Boolean),n=t.split(/[/\\]/).filter(Boolean);for("."===r[0]&&r.shift(),"."===n[0]&&n.shift();r[0]&&n[0]&&r[0]===n[0];)r.shift(),n.shift();for(;".."===n[0]&&r.length>0;)n.shift(),r.pop();for(;r.pop();)n.unshift("..");return n.join("/")}mx.prototype.addSource=function(e){if(e instanceof _x)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!cx(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((t=>{fx.call(e,t)||(e[t]=e.content[t])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if(fx.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},mx.prototype.append=function(e,t){return this.addSource({content:new _x(e),separator:t&&t.separator||""}),this},mx.prototype.clone=function(){var e=new mx({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e},mx.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var r=[];this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{~r.indexOf(e)||r.push(e)}))}));var n=new ux(e.hires);return this.intro&&n.advance(this.intro),this.sources.forEach(((e,i)=>{i>0&&n.advance(t.separator);var a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,s=lx(o.original);o.intro&&n.advance(o.intro),o.firstChunk.eachNext((t=>{var i=s(t.start);t.intro.length&&n.advance(t.intro),e.filename?t.edited?n.addEdit(a,t.content,i,t.storeName?r.indexOf(t.original):-1):n.addUneditedChunk(a,t,o.original,i,o.sourcemapLocations):n.advance(t.content),t.outro.length&&n.advance(t.outro)})),o.outro&&n.advance(o.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((t=>e.file?ox(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:r,mappings:n.raw}},mx.prototype.generateMap=function(e){return new ix(this.generateDecodedMap(e))},mx.prototype.getIndentString=function(){var e={};return this.sources.forEach((t=>{var r=t.content.indentStr;null!==r&&(e[r]||(e[r]=0),e[r]+=1)})),Object.keys(e).sort(((t,r)=>e[t]-e[r]))[0]||"\t"},mx.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var r=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(((n,i)=>{var a=void 0!==n.separator?n.separator:t.separator,o=r||i>0&&/\r?\n$/.test(a);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:o}),r="\n"===n.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,((t,r)=>r>0?e+t:t))),this},mx.prototype.prepend=function(e){return this.intro=e+this.intro,this},mx.prototype.toString=function(){var e=this,t=this.sources.map(((t,r)=>{var n=void 0!==t.separator?t.separator:e.separator;return(r>0?n:"")+t.content.toString()})).join("");return this.intro+t},mx.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some((e=>!e.content.isEmpty())))},mx.prototype.length=function(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)},mx.prototype.trimLines=function(){return this.trim("[\\r\\n]")},mx.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},mx.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var r,n=0;do{if(!(r=this.sources[n++]))break}while(!r.content.trimStartAborted(e))}return this},mx.prototype.trimEnd=function(e){var t,r=new RegExp((e||"\\s")+"+$"),n=this.sources.length-1;do{if(!(t=this.sources[n--])){this.intro=this.intro.replace(r,"");break}}while(!t.content.trimEndAborted(e));return this};const hx="BlockStatement",yx="CallExpression",vx="ExpressionStatement",bx="Identifier",xx="Program";function Ex(e,t,r,n){if(t.remove(r,n),e.annotations)for(const n of e.annotations)if(n.comment){if(!(n.comment.start<r))return;t.remove(n.comment.start,n.comment.end)}}function Sx(e,t){if(e.annotations||e.parent.type!==vx||(e=e.parent),e.annotations)for(const r of e.annotations.filter((e=>e.comment)))t.remove(r.comment.start,r.comment.end)}const Dx={isNoStatement:!0};function Tx(e,t,r=0){let n,i;for(n=e.indexOf(t,r);;){if(-1===(r=e.indexOf("/",r))||r>=n)return n;i=e.charCodeAt(++r),++r,(r=47===i?e.indexOf("\n",r)+1:e.indexOf("*/",r)+2)>n&&(n=e.indexOf(t,r))}}const Cx=/\S/g;function kx(e,t){return Cx.lastIndex=t,Cx.exec(e).index}function Ax(e){let t,r,n=0;for(t=e.indexOf("\n",n);;){if(n=e.indexOf("/",n),-1===n||n>t)return[t,t+1];if(r=e.charCodeAt(n+1),47===r)return[n,t+1];n=e.indexOf("*/",n+3)+2,n>t&&(t=e.indexOf("\n",n))}}function Nx(e,t,r,n,i){let a,o,s,c,l=e[0],u=!l.included||l.needsBoundaries;u&&(c=r+Ax(t.original.slice(r,l.start))[1]);for(let r=1;r<=e.length;r++)a=l,o=c,s=u,l=e[r],u=void 0!==l&&(!l.included||l.needsBoundaries),s||u?(c=a.end+Ax(t.original.slice(a.end,void 0===l?n:l.start))[1],a.included?s?a.render(t,i,{end:c,start:o}):a.render(t,i):Ex(a,t,o,c)):a.render(t,i)}function wx(e,t,r,n){const i=[];let a,o,s,c,l,u=r-1;for(let n=0;n<e.length;n++){for(o=e[n],void 0!==a&&(u=a.end+Tx(t.original.slice(a.end,o.start),",")),s=c=u+1+Ax(t.original.slice(u+1,o.start))[1];l=t.original.charCodeAt(s),32===l||9===l||10===l||13===l;)s++;void 0!==a&&i.push({contentEnd:c,end:s,node:a,separator:u,start:r}),a=o,r=s}return i.push({contentEnd:n,end:n,node:a,separator:null,start:r}),i}function Fx(e,t,r){for(;;){const[n,i]=Ax(e.original.slice(t,r));if(-1===n)break;e.remove(t+n,t+=i)}}function Px(e,t){const r=t.compact?"":" ";if(1===e.length&&1===t.exportNamesByVariable.get(e[0]).length){const n=e[0];return`exports('${t.exportNamesByVariable.get(n)}',${r}${n.getName()})`}return`exports({${r}${e.map((e=>t.exportNamesByVariable.get(e).map((t=>`${t}:${r}${e.getName()}`)).join(`,${r}`))).join(`,${r}`)}${r}})`}function Ix(e,t,r){const n=r.compact?"":" ",i=r.compact?"":";";return`function${n}(v)${n}{${n}return exports({${n}${e.map((e=>r.exportNamesByVariable.get(e).map((r=>`${r}:${n}${t?e.getName():"v"}`)).join(`,${n}`))).join(`,${n}`)}${n}}),${n}v${i}${n}}(`}function Ox(e){let t="";do{const r=e%64;e=Math.floor(e/64),t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[r]+t}while(0!==e);return t}const Mx={__proto__:null,await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0};function Rx(e,t){let r=e,n=1;for(;t.has(r)||Mx[r];)r=`${e}$${Ox(n++)}`;return t.add(r),r}const Lx=[];function Bx(e,t,r){const n=e.get(t);if(n)return n;const i=r();return e.set(t,i),i}const jx=Symbol("Unknown Key"),Ux=[],Vx=[jx],Kx=Symbol("Entities");class zx{constructor(){this.entityPaths=Object.create(null,{[Kx]:{value:new Set}})}getEntities(e){let t=this.entityPaths;for(const r of e)t=t[r]=t[r]||Object.create(null,{[Kx]:{value:new Set}});return t[Kx]}}const Wx=new zx;class Jx{constructor(){this.entityPaths=Object.create(null,{[Kx]:{value:new Map}})}getEntities(e,t){let r=this.entityPaths;for(const t of e)r=r[t]=r[t]||Object.create(null,{[Kx]:{value:new Map}});return Bx(r[Kx],t,(()=>new Set))}}function Hx(e,t=null){return Object.create(t,e)}const $x=Symbol("Unknown Value"),Gx={deoptimizePath(){},getLiteralValueAtPath:()=>$x,getReturnExpressionWhenCalledAtPath:()=>Gx,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN]]"},qx={deoptimizePath(){},getLiteralValueAtPath(){},getReturnExpressionWhenCalledAtPath:()=>Gx,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(){},included:!0,toString:()=>"undefined"},Xx={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Gx}},Yx={value:{returns:null,returnsPrimitive:Gx,callsArgs:null,mutatesSelf:!0}},Qx={value:{returns:null,returnsPrimitive:Gx,callsArgs:[0],mutatesSelf:!1}};class Zx{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return $x}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?bE(mE,e[0]):Gx}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||vE(mE,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const eE={value:{callsArgs:null,mutatesSelf:!1,returns:Zx,returnsPrimitive:null}},tE={value:{callsArgs:null,mutatesSelf:!0,returns:Zx,returnsPrimitive:null}},rE={value:{callsArgs:[0],mutatesSelf:!1,returns:Zx,returnsPrimitive:null}},nE={value:{callsArgs:[0],mutatesSelf:!0,returns:Zx,returnsPrimitive:null}},iE={deoptimizePath(){},getLiteralValueAtPath:()=>$x,getReturnExpressionWhenCalledAtPath:e=>1===e.length?bE(gE,e[0]):Gx,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!gE[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},aE={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:iE}},oE={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:iE}},sE={deoptimizePath(){},getLiteralValueAtPath:()=>$x,getReturnExpressionWhenCalledAtPath:e=>1===e.length?bE(hE,e[0]):Gx,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!hE[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},cE={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:sE}},lE={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:sE}},uE={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:sE}},dE={deoptimizePath(){},getLiteralValueAtPath:()=>$x,getReturnExpressionWhenCalledAtPath:e=>1===e.length?bE(yE,e[0]):Gx,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,r)=>1!==e.length||vE(yE,e[0],!0,t,r),include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},pE={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:dE}};class _E{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return $x}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?bE(fE,e[0]):Gx}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||vE(fE,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const fE=Hx({hasOwnProperty:aE,isPrototypeOf:aE,propertyIsEnumerable:aE,toLocaleString:pE,toString:pE,valueOf:Xx}),mE=Hx({concat:eE,copyWithin:tE,every:oE,fill:tE,filter:rE,find:Qx,findIndex:uE,forEach:Qx,includes:aE,indexOf:cE,join:pE,lastIndexOf:cE,map:rE,pop:Yx,push:lE,reduce:Qx,reduceRight:Qx,reverse:tE,shift:Yx,slice:eE,some:oE,sort:nE,splice:tE,unshift:lE},fE),gE=Hx({valueOf:aE},fE),hE=Hx({toExponential:pE,toFixed:pE,toLocaleString:pE,toPrecision:pE,valueOf:cE},fE),yE=Hx({charAt:pE,charCodeAt:cE,codePointAt:cE,concat:pE,endsWith:aE,includes:aE,indexOf:cE,lastIndexOf:cE,localeCompare:cE,match:aE,normalize:pE,padEnd:pE,padStart:pE,repeat:pE,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:dE}},search:cE,slice:pE,split:eE,startsWith:aE,substr:pE,substring:pE,toLocaleLowerCase:pE,toLocaleUpperCase:pE,toLowerCase:pE,toUpperCase:pE,trim:pE,valueOf:pE},fE);function vE(e,t,r,n,i){if("string"!=typeof t||!e[t]||e[t].mutatesSelf&&r)return!0;if(!e[t].callsArgs)return!1;for(const r of e[t].callsArgs)if(n.args[r]&&n.args[r].hasEffectsWhenCalledAtPath(Ux,{args:Lx,withNew:!1},i))return!0;return!1}function bE(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:Gx}function xE(){return{brokenFlow:0,includedCallArguments:new Set,includedLabels:new Set}}function EE(){return{accessed:new zx,assigned:new zx,brokenFlow:0,called:new Jx,ignore:{breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!1},includedLabels:new Set,instantiated:new Jx,replacedVariableInits:new Map}}class SE{constructor(e){this.alwaysRendered=!1,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,r){return $x}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${Mx[e]?`['${e}']`:`.${e}`}`:e}getReturnExpressionWhenCalledAtPath(e,t,r){return Gx}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class DE extends SE{constructor(e,t,r,n){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=r,this.deoptimizationTracker=n.deoptimizationTracker,this.module=n.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=Gx,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(Vx);this.additionalInitializers=null}}deoptimizePath(e){if(e.length>7||this.isReassigned)return;const t=this.deoptimizationTracker.getEntities(e);if(!t.has(this))if(t.add(this),0===e.length){if(!this.isReassigned){this.isReassigned=!0;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(const t of e)t.deoptimizeCache();this.init&&this.init.deoptimizePath(Vx)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return $x;const n=t.getEntities(e);if(n.has(this.init))return $x;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getLiteralValueAtPath(e,t,r);return n.delete(this.init),i}getReturnExpressionWhenCalledAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return Gx;const n=t.getEntities(e);if(n.has(this.init))return Gx;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getReturnExpressionWhenCalledAtPath(e,t,r);return n.delete(this.init),i}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;if(this.isReassigned||e.length>7)return!0;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(this.included||e.length>7)return!0;if(0===e.length)return!1;if(this.isReassigned)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>7||this.isReassigned)return!0;const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.init&&this.init.hasEffectsWhenCalledAtPath(e,t,r))}include(){if(!this.included){this.included=!0;for(const e of this.declarations){e.included||e.include(xE(),!1);let t=e.parent;for(;!t.included&&(t.included=!0,t.type!==xx);)t=t.parent}}}includeCallArguments(e,t){if(this.isReassigned||this.init&&e.includedCallArguments.has(this.init))for(const r of t)r.include(e,!1);else this.init&&(e.includedCallArguments.add(this.init),this.init.includeCallArguments(e,t),e.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class TE{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,r,n){const i=e.name;let a=this.variables.get(i);return a?a.addDeclaration(e,r):(a=new DE(e.name,e,r||qx,t),this.variables.set(i,a)),a}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class CE extends TE{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof CE&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,t){const r=t.get(this)||new Set;for(const t of e)r.add(t);t.set(this,r),this.parent instanceof CE&&this.parent.addAccessedGlobals(e,t)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof CE&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,r,n){for(const n of this.accessedOutsideVariables.values())n.included&&(e.add(n.getBaseVariableName()),"system"===t&&r.has(n)&&e.add("exports"));const i=n.get(this);if(i)for(const t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,r){const n=new Set;if(this.addUsedOutsideNames(n,e,t,r),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&n.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,Rx(e,n));for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,r),r}}function kE(e,t,r){if("number"==typeof r)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return((e,t)=>{void 0===t&&(t={});var r=t.offsetLine||0,n=t.offsetColumn||0,i=e.split("\n"),a=0,o=i.map(((e,t)=>{var r=a+e.length+1,n={start:a,end:r,line:t};return a=r,n})),s=0;function c(e,t){return e.start<=t&&t<e.end}function l(e,t){return{line:r+e.line,column:n+t-e.start,character:t}}return(t,r)=>{"string"==typeof t&&(t=e.indexOf(t,r||0));for(var n=o[s],i=t>=n.end?1:-1;n;){if(c(n,t))return l(n,t);n=o[s+=i]}}})(e,r)(t,r&&r.startIndex)}const AE={Literal:[],Program:["body"]},NE="variables";class wE{constructor(e,t,r){this.included=!1,this.esTreeNode=e,this.keys=AE[e.type]||(e=>(AE[e.type]=Object.keys(e).filter((t=>"_rollupAnnotations"!==t&&"object"==typeof e[t])),AE[e.type]))(e),this.parent=t,this.context=t.context,this.createScope(r),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(e,t){}bind(){for(const e of this.keys){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}deoptimizePath(e){}getLiteralValueAtPath(e,t,r){return $x}getReturnExpressionWhenCalledAtPath(e,t,r){return Gx}hasEffects(e){for(const t of this.keys){const r=this[t];if(null!==r)if(Array.isArray(r)){for(const t of r)if(null!==t&&t.hasEffects(e))return!0}else if(r.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(e,t){this.included=!0;for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.include(e,t);else n.include(e,t)}}includeAsSingleStatement(e,t){this.include(e,t)}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const r=e[t];if("_rollupAnnotations"===t)this.annotations=r;else if("object"!=typeof r||null===r)this[t]=r;else if(Array.isArray(r)){this[t]=[];for(const e of r)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[r.type]||this.context.nodeConstructors.UnknownNode)(r,this,this.scope)}}render(e,t){for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.render(e,t);else n.render(e,t)}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(EE())}}class FE extends wE{createScope(e){this.scope=new CE(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenCalledAtPath(e,t,r){return!t.withNew||this.body.hasEffectsWhenCalledAtPath(e,t,r)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){null!==this.id&&this.id.declare("class",this)}}class PE extends FE{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&t.exportNamesByVariable.has(this.id.variable)&&e.appendLeft(this.end,`${t.compact?"":" "}${Px([this.id.variable],t)};`),super.render(e,t)}}class IE extends DE{constructor(e){super("arguments",null,Gx,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class OE extends DE{constructor(e){super("this",null,null,e)}getLiteralValueAtPath(){return $x}hasEffectsWhenAccessedAtPath(e,t){return this.getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.getInit(r).hasEffectsWhenCalledAtPath(e,t,r)||super.hasEffectsWhenCalledAtPath(e,t,r)}getInit(e){return e.replacedVariableInits.get(this)||Gx}}class ME extends wE{bind(){super.bind(),this.argument.deoptimizePath([jx,jx])}}class RE extends CE{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new CE(this)}addParameterDeclaration(e){const t=e.name;let r=this.hoistedBodyVarScope.variables.get(t);return r?r.addDeclaration(e,null):r=new DE(t,e,Gx,this.context),this.variables.set(t,r),r}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e,t){let r=!1,n=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];for(const r of t)if(r instanceof ME){for(const r of t)r.include(e,!1);break}for(let a=t.length-1;a>=0;a--){const o=this.parameters[a]||i,s=t[a];if(o)if(r=!1,0===o.length)n=!0;else for(const e of o)e.included&&(n=!0),e.calledFromTryStatement&&(r=!0);!n&&s.shouldBeIncluded(e)&&(n=!0),n&&s.include(e,r)}}}class LE extends RE{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Gx;for(const e of this.returnExpressions)e.deoptimizePath(Vx)}}}class BE extends LE{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new IE(t)),this.variables.set("this",this.thisVariable=new OE(t))}findLexicalBoundary(){return this}includeCallArguments(e,t){if(super.includeCallArguments(e,t),this.argumentsVariable.included)for(const r of t)r.included||r.include(e,!1)}}function jE(e,t){if("MemberExpression"===e.type)return!e.computed&&jE(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}const UE=Object.freeze(Object.create(null)),VE=Object.freeze({}),KE=Object.freeze([]),zE=Symbol("Value Properties"),WE={pure:!0},JE={pure:!1},HE={__proto__:null,[zE]:JE},$E={__proto__:null,[zE]:WE},GE={__proto__:null,[zE]:JE,prototype:HE},qE={__proto__:null,[zE]:WE,prototype:HE},XE={__proto__:null,[zE]:WE,from:$E,of:$E,prototype:HE},YE={__proto__:null,[zE]:WE,supportedLocalesOf:qE},QE={global:HE,globalThis:HE,self:HE,window:HE,__proto__:null,[zE]:JE,Array:{__proto__:null,[zE]:JE,from:HE,isArray:$E,of:$E,prototype:HE},ArrayBuffer:{__proto__:null,[zE]:WE,isView:$E,prototype:HE},Atomics:HE,BigInt:GE,BigInt64Array:GE,BigUint64Array:GE,Boolean:qE,constructor:GE,DataView:qE,Date:{__proto__:null,[zE]:WE,now:$E,parse:$E,prototype:HE,UTC:$E},decodeURI:$E,decodeURIComponent:$E,encodeURI:$E,encodeURIComponent:$E,Error:qE,escape:$E,eval:HE,EvalError:qE,Float32Array:XE,Float64Array:XE,Function:GE,hasOwnProperty:HE,Infinity:HE,Int16Array:XE,Int32Array:XE,Int8Array:XE,isFinite:$E,isNaN:$E,isPrototypeOf:HE,JSON:HE,Map:qE,Math:{__proto__:null,[zE]:JE,abs:$E,acos:$E,acosh:$E,asin:$E,asinh:$E,atan:$E,atan2:$E,atanh:$E,cbrt:$E,ceil:$E,clz32:$E,cos:$E,cosh:$E,exp:$E,expm1:$E,floor:$E,fround:$E,hypot:$E,imul:$E,log:$E,log10:$E,log1p:$E,log2:$E,max:$E,min:$E,pow:$E,random:$E,round:$E,sign:$E,sin:$E,sinh:$E,sqrt:$E,tan:$E,tanh:$E,trunc:$E},NaN:HE,Number:{__proto__:null,[zE]:WE,isFinite:$E,isInteger:$E,isNaN:$E,isSafeInteger:$E,parseFloat:$E,parseInt:$E,prototype:HE},Object:{__proto__:null,[zE]:WE,create:$E,getNotifier:$E,getOwn:$E,getOwnPropertyDescriptor:$E,getOwnPropertyNames:$E,getOwnPropertySymbols:$E,getPrototypeOf:$E,is:$E,isExtensible:$E,isFrozen:$E,isSealed:$E,keys:$E,prototype:HE},parseFloat:$E,parseInt:$E,Promise:{__proto__:null,[zE]:JE,all:$E,prototype:HE,race:$E,resolve:$E},propertyIsEnumerable:HE,Proxy:HE,RangeError:qE,ReferenceError:qE,Reflect:HE,RegExp:qE,Set:qE,SharedArrayBuffer:GE,String:{__proto__:null,[zE]:WE,fromCharCode:$E,fromCodePoint:$E,prototype:HE,raw:$E},Symbol:{__proto__:null,[zE]:WE,for:$E,keyFor:$E,prototype:HE},SyntaxError:qE,toLocaleString:HE,toString:HE,TypeError:qE,Uint16Array:XE,Uint32Array:XE,Uint8Array:XE,Uint8ClampedArray:XE,unescape:$E,URIError:qE,valueOf:HE,WeakMap:qE,WeakSet:qE,clearInterval:GE,clearTimeout:GE,console:HE,Intl:{__proto__:null,[zE]:JE,Collator:YE,DateTimeFormat:YE,ListFormat:YE,NumberFormat:YE,PluralRules:YE,RelativeTimeFormat:YE},setInterval:GE,setTimeout:GE,TextDecoder:GE,TextEncoder:GE,URL:GE,URLSearchParams:GE,AbortController:GE,AbortSignal:GE,addEventListener:HE,alert:HE,AnalyserNode:GE,Animation:GE,AnimationEvent:GE,applicationCache:HE,ApplicationCache:GE,ApplicationCacheErrorEvent:GE,atob:HE,Attr:GE,Audio:GE,AudioBuffer:GE,AudioBufferSourceNode:GE,AudioContext:GE,AudioDestinationNode:GE,AudioListener:GE,AudioNode:GE,AudioParam:GE,AudioProcessingEvent:GE,AudioScheduledSourceNode:GE,AudioWorkletNode:GE,BarProp:GE,BaseAudioContext:GE,BatteryManager:GE,BeforeUnloadEvent:GE,BiquadFilterNode:GE,Blob:GE,BlobEvent:GE,blur:HE,BroadcastChannel:GE,btoa:HE,ByteLengthQueuingStrategy:GE,Cache:GE,caches:HE,CacheStorage:GE,cancelAnimationFrame:HE,cancelIdleCallback:HE,CanvasCaptureMediaStreamTrack:GE,CanvasGradient:GE,CanvasPattern:GE,CanvasRenderingContext2D:GE,ChannelMergerNode:GE,ChannelSplitterNode:GE,CharacterData:GE,clientInformation:HE,ClipboardEvent:GE,close:HE,closed:HE,CloseEvent:GE,Comment:GE,CompositionEvent:GE,confirm:HE,ConstantSourceNode:GE,ConvolverNode:GE,CountQueuingStrategy:GE,createImageBitmap:HE,Credential:GE,CredentialsContainer:GE,crypto:HE,Crypto:GE,CryptoKey:GE,CSS:GE,CSSConditionRule:GE,CSSFontFaceRule:GE,CSSGroupingRule:GE,CSSImportRule:GE,CSSKeyframeRule:GE,CSSKeyframesRule:GE,CSSMediaRule:GE,CSSNamespaceRule:GE,CSSPageRule:GE,CSSRule:GE,CSSRuleList:GE,CSSStyleDeclaration:GE,CSSStyleRule:GE,CSSStyleSheet:GE,CSSSupportsRule:GE,CustomElementRegistry:GE,customElements:HE,CustomEvent:GE,DataTransfer:GE,DataTransferItem:GE,DataTransferItemList:GE,defaultstatus:HE,defaultStatus:HE,DelayNode:GE,DeviceMotionEvent:GE,DeviceOrientationEvent:GE,devicePixelRatio:HE,dispatchEvent:HE,document:HE,Document:GE,DocumentFragment:GE,DocumentType:GE,DOMError:GE,DOMException:GE,DOMImplementation:GE,DOMMatrix:GE,DOMMatrixReadOnly:GE,DOMParser:GE,DOMPoint:GE,DOMPointReadOnly:GE,DOMQuad:GE,DOMRect:GE,DOMRectReadOnly:GE,DOMStringList:GE,DOMStringMap:GE,DOMTokenList:GE,DragEvent:GE,DynamicsCompressorNode:GE,Element:GE,ErrorEvent:GE,Event:GE,EventSource:GE,EventTarget:GE,external:HE,fetch:HE,File:GE,FileList:GE,FileReader:GE,find:HE,focus:HE,FocusEvent:GE,FontFace:GE,FontFaceSetLoadEvent:GE,FormData:GE,frames:HE,GainNode:GE,Gamepad:GE,GamepadButton:GE,GamepadEvent:GE,getComputedStyle:HE,getSelection:HE,HashChangeEvent:GE,Headers:GE,history:HE,History:GE,HTMLAllCollection:GE,HTMLAnchorElement:GE,HTMLAreaElement:GE,HTMLAudioElement:GE,HTMLBaseElement:GE,HTMLBodyElement:GE,HTMLBRElement:GE,HTMLButtonElement:GE,HTMLCanvasElement:GE,HTMLCollection:GE,HTMLContentElement:GE,HTMLDataElement:GE,HTMLDataListElement:GE,HTMLDetailsElement:GE,HTMLDialogElement:GE,HTMLDirectoryElement:GE,HTMLDivElement:GE,HTMLDListElement:GE,HTMLDocument:GE,HTMLElement:GE,HTMLEmbedElement:GE,HTMLFieldSetElement:GE,HTMLFontElement:GE,HTMLFormControlsCollection:GE,HTMLFormElement:GE,HTMLFrameElement:GE,HTMLFrameSetElement:GE,HTMLHeadElement:GE,HTMLHeadingElement:GE,HTMLHRElement:GE,HTMLHtmlElement:GE,HTMLIFrameElement:GE,HTMLImageElement:GE,HTMLInputElement:GE,HTMLLabelElement:GE,HTMLLegendElement:GE,HTMLLIElement:GE,HTMLLinkElement:GE,HTMLMapElement:GE,HTMLMarqueeElement:GE,HTMLMediaElement:GE,HTMLMenuElement:GE,HTMLMetaElement:GE,HTMLMeterElement:GE,HTMLModElement:GE,HTMLObjectElement:GE,HTMLOListElement:GE,HTMLOptGroupElement:GE,HTMLOptionElement:GE,HTMLOptionsCollection:GE,HTMLOutputElement:GE,HTMLParagraphElement:GE,HTMLParamElement:GE,HTMLPictureElement:GE,HTMLPreElement:GE,HTMLProgressElement:GE,HTMLQuoteElement:GE,HTMLScriptElement:GE,HTMLSelectElement:GE,HTMLShadowElement:GE,HTMLSlotElement:GE,HTMLSourceElement:GE,HTMLSpanElement:GE,HTMLStyleElement:GE,HTMLTableCaptionElement:GE,HTMLTableCellElement:GE,HTMLTableColElement:GE,HTMLTableElement:GE,HTMLTableRowElement:GE,HTMLTableSectionElement:GE,HTMLTemplateElement:GE,HTMLTextAreaElement:GE,HTMLTimeElement:GE,HTMLTitleElement:GE,HTMLTrackElement:GE,HTMLUListElement:GE,HTMLUnknownElement:GE,HTMLVideoElement:GE,IDBCursor:GE,IDBCursorWithValue:GE,IDBDatabase:GE,IDBFactory:GE,IDBIndex:GE,IDBKeyRange:GE,IDBObjectStore:GE,IDBOpenDBRequest:GE,IDBRequest:GE,IDBTransaction:GE,IDBVersionChangeEvent:GE,IdleDeadline:GE,IIRFilterNode:GE,Image:GE,ImageBitmap:GE,ImageBitmapRenderingContext:GE,ImageCapture:GE,ImageData:GE,indexedDB:HE,innerHeight:HE,innerWidth:HE,InputEvent:GE,IntersectionObserver:GE,IntersectionObserverEntry:GE,isSecureContext:HE,KeyboardEvent:GE,KeyframeEffect:GE,length:HE,localStorage:HE,location:HE,Location:GE,locationbar:HE,matchMedia:HE,MediaDeviceInfo:GE,MediaDevices:GE,MediaElementAudioSourceNode:GE,MediaEncryptedEvent:GE,MediaError:GE,MediaKeyMessageEvent:GE,MediaKeySession:GE,MediaKeyStatusMap:GE,MediaKeySystemAccess:GE,MediaList:GE,MediaQueryList:GE,MediaQueryListEvent:GE,MediaRecorder:GE,MediaSettingsRange:GE,MediaSource:GE,MediaStream:GE,MediaStreamAudioDestinationNode:GE,MediaStreamAudioSourceNode:GE,MediaStreamEvent:GE,MediaStreamTrack:GE,MediaStreamTrackEvent:GE,menubar:HE,MessageChannel:GE,MessageEvent:GE,MessagePort:GE,MIDIAccess:GE,MIDIConnectionEvent:GE,MIDIInput:GE,MIDIInputMap:GE,MIDIMessageEvent:GE,MIDIOutput:GE,MIDIOutputMap:GE,MIDIPort:GE,MimeType:GE,MimeTypeArray:GE,MouseEvent:GE,moveBy:HE,moveTo:HE,MutationEvent:GE,MutationObserver:GE,MutationRecord:GE,name:HE,NamedNodeMap:GE,NavigationPreloadManager:GE,navigator:HE,Navigator:GE,NetworkInformation:GE,Node:GE,NodeFilter:HE,NodeIterator:GE,NodeList:GE,Notification:GE,OfflineAudioCompletionEvent:GE,OfflineAudioContext:GE,offscreenBuffering:HE,OffscreenCanvas:GE,open:HE,openDatabase:HE,Option:GE,origin:HE,OscillatorNode:GE,outerHeight:HE,outerWidth:HE,PageTransitionEvent:GE,pageXOffset:HE,pageYOffset:HE,PannerNode:GE,parent:HE,Path2D:GE,PaymentAddress:GE,PaymentRequest:GE,PaymentRequestUpdateEvent:GE,PaymentResponse:GE,performance:HE,Performance:GE,PerformanceEntry:GE,PerformanceLongTaskTiming:GE,PerformanceMark:GE,PerformanceMeasure:GE,PerformanceNavigation:GE,PerformanceNavigationTiming:GE,PerformanceObserver:GE,PerformanceObserverEntryList:GE,PerformancePaintTiming:GE,PerformanceResourceTiming:GE,PerformanceTiming:GE,PeriodicWave:GE,Permissions:GE,PermissionStatus:GE,personalbar:HE,PhotoCapabilities:GE,Plugin:GE,PluginArray:GE,PointerEvent:GE,PopStateEvent:GE,postMessage:HE,Presentation:GE,PresentationAvailability:GE,PresentationConnection:GE,PresentationConnectionAvailableEvent:GE,PresentationConnectionCloseEvent:GE,PresentationConnectionList:GE,PresentationReceiver:GE,PresentationRequest:GE,print:HE,ProcessingInstruction:GE,ProgressEvent:GE,PromiseRejectionEvent:GE,prompt:HE,PushManager:GE,PushSubscription:GE,PushSubscriptionOptions:GE,queueMicrotask:HE,RadioNodeList:GE,Range:GE,ReadableStream:GE,RemotePlayback:GE,removeEventListener:HE,Request:GE,requestAnimationFrame:HE,requestIdleCallback:HE,resizeBy:HE,ResizeObserver:GE,ResizeObserverEntry:GE,resizeTo:HE,Response:GE,RTCCertificate:GE,RTCDataChannel:GE,RTCDataChannelEvent:GE,RTCDtlsTransport:GE,RTCIceCandidate:GE,RTCIceTransport:GE,RTCPeerConnection:GE,RTCPeerConnectionIceEvent:GE,RTCRtpReceiver:GE,RTCRtpSender:GE,RTCSctpTransport:GE,RTCSessionDescription:GE,RTCStatsReport:GE,RTCTrackEvent:GE,screen:HE,Screen:GE,screenLeft:HE,ScreenOrientation:GE,screenTop:HE,screenX:HE,screenY:HE,ScriptProcessorNode:GE,scroll:HE,scrollbars:HE,scrollBy:HE,scrollTo:HE,scrollX:HE,scrollY:HE,SecurityPolicyViolationEvent:GE,Selection:GE,ServiceWorker:GE,ServiceWorkerContainer:GE,ServiceWorkerRegistration:GE,sessionStorage:HE,ShadowRoot:GE,SharedWorker:GE,SourceBuffer:GE,SourceBufferList:GE,speechSynthesis:HE,SpeechSynthesisEvent:GE,SpeechSynthesisUtterance:GE,StaticRange:GE,status:HE,statusbar:HE,StereoPannerNode:GE,stop:HE,Storage:GE,StorageEvent:GE,StorageManager:GE,styleMedia:HE,StyleSheet:GE,StyleSheetList:GE,SubtleCrypto:GE,SVGAElement:GE,SVGAngle:GE,SVGAnimatedAngle:GE,SVGAnimatedBoolean:GE,SVGAnimatedEnumeration:GE,SVGAnimatedInteger:GE,SVGAnimatedLength:GE,SVGAnimatedLengthList:GE,SVGAnimatedNumber:GE,SVGAnimatedNumberList:GE,SVGAnimatedPreserveAspectRatio:GE,SVGAnimatedRect:GE,SVGAnimatedString:GE,SVGAnimatedTransformList:GE,SVGAnimateElement:GE,SVGAnimateMotionElement:GE,SVGAnimateTransformElement:GE,SVGAnimationElement:GE,SVGCircleElement:GE,SVGClipPathElement:GE,SVGComponentTransferFunctionElement:GE,SVGDefsElement:GE,SVGDescElement:GE,SVGDiscardElement:GE,SVGElement:GE,SVGEllipseElement:GE,SVGFEBlendElement:GE,SVGFEColorMatrixElement:GE,SVGFEComponentTransferElement:GE,SVGFECompositeElement:GE,SVGFEConvolveMatrixElement:GE,SVGFEDiffuseLightingElement:GE,SVGFEDisplacementMapElement:GE,SVGFEDistantLightElement:GE,SVGFEDropShadowElement:GE,SVGFEFloodElement:GE,SVGFEFuncAElement:GE,SVGFEFuncBElement:GE,SVGFEFuncGElement:GE,SVGFEFuncRElement:GE,SVGFEGaussianBlurElement:GE,SVGFEImageElement:GE,SVGFEMergeElement:GE,SVGFEMergeNodeElement:GE,SVGFEMorphologyElement:GE,SVGFEOffsetElement:GE,SVGFEPointLightElement:GE,SVGFESpecularLightingElement:GE,SVGFESpotLightElement:GE,SVGFETileElement:GE,SVGFETurbulenceElement:GE,SVGFilterElement:GE,SVGForeignObjectElement:GE,SVGGElement:GE,SVGGeometryElement:GE,SVGGradientElement:GE,SVGGraphicsElement:GE,SVGImageElement:GE,SVGLength:GE,SVGLengthList:GE,SVGLinearGradientElement:GE,SVGLineElement:GE,SVGMarkerElement:GE,SVGMaskElement:GE,SVGMatrix:GE,SVGMetadataElement:GE,SVGMPathElement:GE,SVGNumber:GE,SVGNumberList:GE,SVGPathElement:GE,SVGPatternElement:GE,SVGPoint:GE,SVGPointList:GE,SVGPolygonElement:GE,SVGPolylineElement:GE,SVGPreserveAspectRatio:GE,SVGRadialGradientElement:GE,SVGRect:GE,SVGRectElement:GE,SVGScriptElement:GE,SVGSetElement:GE,SVGStopElement:GE,SVGStringList:GE,SVGStyleElement:GE,SVGSVGElement:GE,SVGSwitchElement:GE,SVGSymbolElement:GE,SVGTextContentElement:GE,SVGTextElement:GE,SVGTextPathElement:GE,SVGTextPositioningElement:GE,SVGTitleElement:GE,SVGTransform:GE,SVGTransformList:GE,SVGTSpanElement:GE,SVGUnitTypes:GE,SVGUseElement:GE,SVGViewElement:GE,TaskAttributionTiming:GE,Text:GE,TextEvent:GE,TextMetrics:GE,TextTrack:GE,TextTrackCue:GE,TextTrackCueList:GE,TextTrackList:GE,TimeRanges:GE,toolbar:HE,top:HE,Touch:GE,TouchEvent:GE,TouchList:GE,TrackEvent:GE,TransitionEvent:GE,TreeWalker:GE,UIEvent:GE,ValidityState:GE,visualViewport:HE,VisualViewport:GE,VTTCue:GE,WaveShaperNode:GE,WebAssembly:HE,WebGL2RenderingContext:GE,WebGLActiveInfo:GE,WebGLBuffer:GE,WebGLContextEvent:GE,WebGLFramebuffer:GE,WebGLProgram:GE,WebGLQuery:GE,WebGLRenderbuffer:GE,WebGLRenderingContext:GE,WebGLSampler:GE,WebGLShader:GE,WebGLShaderPrecisionFormat:GE,WebGLSync:GE,WebGLTexture:GE,WebGLTransformFeedback:GE,WebGLUniformLocation:GE,WebGLVertexArrayObject:GE,WebSocket:GE,WheelEvent:GE,Window:GE,Worker:GE,WritableStream:GE,XMLDocument:GE,XMLHttpRequest:GE,XMLHttpRequestEventTarget:GE,XMLHttpRequestUpload:GE,XMLSerializer:GE,XPathEvaluator:GE,XPathExpression:GE,XPathResult:GE,XSLTProcessor:GE};for(const e of["window","global","self","globalThis"])QE[e]=QE;function ZE(e){let t=QE;for(const r of e){if("string"!=typeof r)return null;if(t=t[r],!t)return null}return t[zE]}class eS extends SE{constructor(){super(...arguments),this.isReassigned=!0}hasEffectsWhenAccessedAtPath(e){return!(e=>1===e.length?"undefined"===e[0]||null!==ZE(e):null!==ZE(e.slice(0,-1)))([this.name,...e])}hasEffectsWhenCalledAtPath(e){return!(e=>{const t=ZE(e);return null!==t&&t.pure})([this.name,...e])}}class tS extends wE{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e,t){null!==this.variable&&t.has(this.variable)&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&jE(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof DE&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let r;switch(e){case"var":r=this.scope.addDeclaration(this,this.context,t,!0);break;case"function":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"let":case"const":case"class":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":r=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Internal Error: Unexpected identifier kind ${e}.`)}return[this.variable=r]}deoptimizePath(e){this.bound||this.bind(),0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),this.variable.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),this.variable.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(){return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof eS&&this.variable.hasEffectsWhenAccessedAtPath(Ux)}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,r)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable))}includeCallArguments(e,t){this.variable.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,isShorthandProperty:i}=UE){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,`${this.name}: `)),"eval"===t&&r===yx&&n&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class rS extends wE{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([jx,jx])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,Gx)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(Ux)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(Ux,t)}}class nS extends wE{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new BE(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===jx&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(Vx)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Gx}hasEffects(){return null!==this.id&&this.id.hasEffects()}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const n=r.replacedVariableInits.get(this.scope.thisVariable);r.replacedVariableInits.set(this.scope.thisVariable,t.withNew?new _E:Gx);const{brokenFlow:i,ignore:a}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.brokenFlow=i,n?r.replacedVariableInits.set(this.scope.thisVariable,n):r.replacedVariableInits.delete(this.scope.thisVariable),r.ignore=a,!1)}include(e,t){this.included=!0,this.id&&this.id.include();const r=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof tS&&!r||n.include(e,t);const{brokenFlow:n}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=n}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",Gx))),this.params[this.params.length-1]instanceof rS),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}nS.prototype.preventChildBlockScope=!0;class iS extends nS{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}class aS extends wE{include(e,t){super.include(e,t),t&&this.context.includeVariableInModule(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r,a=((e,t)=>kx(e,Tx(e,"default",t)+7))(e.original,this.start);if(this.declaration instanceof iS)this.renderNamedDeclaration(e,a,"function","(",null===this.declaration.id,t);else if(this.declaration instanceof PE)this.renderNamedDeclaration(e,a,"class","{",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return Ex(this,e,n,i),void 0;if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:vx}),";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"),void 0;this.renderVariableDeclaration(e,a,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,r,n,i,a){const o=this.variable.getName();e.remove(this.start,t),i&&e.appendLeft(((e,t,r,n)=>{const i=Tx(e,t,n)+t.length;e=e.slice(i,Tx(e,r,i));const a=Tx(e,"*");return-1===a?i:i+a+1})(e.original,r,n,t),` ${o}`),"system"===a.format&&this.declaration instanceof PE&&a.exportNamesByVariable.has(this.variable)&&e.appendLeft(this.end,` ${Px([this.variable],a)};`)}renderVariableDeclaration(e,t,r){const n=59===e.original.charCodeAt(this.end-1),i="system"===r.format&&r.exportNamesByVariable.get(this.variable);i?(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = exports('${i[0]}', `),e.appendRight(n?this.end-1:this.end,")"+(n?"":";"))):(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = `),n||e.appendLeft(this.end,";"))}}aS.prototype.needsBoundaries=!0;class oS extends SE{constructor(){super("undefined")}getLiteralValueAtPath(){}}class sS extends DE{constructor(e,t,r){super(e,t,t.declaration,r),this.hasId=!1,this.originalId=null,this.originalVariable=null;const n=t.declaration;(n instanceof iS||n instanceof PE)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof tS&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.variable.isReassigned||this.originalId.variable instanceof oS||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,t=this;const r=new Set;do{r.add(t),e=t,t=e.getDirectOriginalVariable()}while(t instanceof sS&&!r.has(t));return this.originalVariable=t||e}}const cS="_missingExportShim";class lS extends SE{constructor(e){super(cS),this.module=e}}class uS extends SE{constructor(e,t){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module,this.syntheticNamedExports=t}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){const e=this.getMemberVariables();for(const t of Object.keys(e))e[t].deoptimizePath(Vx)}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null);for(const t of this.context.getExports().concat(this.context.getReexports()))"*"!==t[0]&&t!==this.module.info.syntheticNamedExports&&(e[t]=this.context.traceExport(t));return this.memberVariables=e}include(){this.included=!0,this.context.includeAllExports()}prepareNamespace(e){this.mergedNamespaces=e;const t=this.context.getModuleExecIndex();for(const e of this.references)if(e.context.getModuleExecIndex()<=t){this.referencedEarly=!0;break}}renderBlock(e){const t=e.compact?"":" ",r=e.compact?"":"\n",n=e.indent,i=this.getMemberVariables(),a=Object.keys(i).map((r=>{const a=i[r];return this.referencedEarly||a.isReassigned?`${n}get ${r}${t}()${t}{${t}return ${a.getName()}${e.compact?"":";"}${t}}`:`${n}${Mx[r]?`'${r}'`:r}: ${a.getName()}`}));e.namespaceToStringTag&&a.unshift(`${n}[Symbol.toStringTag]:${t}'Module'`);const o=this.mergedNamespaces.length>0||this.syntheticNamedExports;o||a.unshift(`${n}__proto__:${t}null`);let s=`{${r}${a.join(`,${r}`)}${r}}`;if(o){const e=["/*#__PURE__*/Object.create(null)"];this.mergedNamespaces.length>0&&e.push(...this.mergedNamespaces.map((e=>e.getName()))),this.syntheticNamedExports&&e.push(this.module.getSyntheticNamespace().getName()),a.length>0&&e.push(s),s=`/*#__PURE__*/Object.assign(${e.join(`,${t}`)})`}e.freeze&&(s=`/*#__PURE__*/Object.freeze(${s})`);const c=this.getName();return s=`${e.varOrConst} ${c}${t}=${t}${s};`,"system"===e.format&&e.exportNamesByVariable.has(this)&&(s+=`${r}${Px([this],e)};`),s}renderFirst(){return this.referencedEarly}}uS.prototype.isNamespace=!0;class dS extends SE{constructor(e,t,r){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=r}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof sS||e instanceof dS;){if(e instanceof sS){const t=e.getOriginalVariable();if(t===e)break;e=t}e instanceof dS&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(){const e=this.name;return`${this.syntheticNamespace.getName()}${pS(e)}`}include(){this.included||(this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace))}setRenderNames(e,t){super.setRenderNames(e,t)}}const pS=e=>!Mx[e]&&/^(?!\d)[\w$]+$/.test(e)?`.${e}`:`[${JSON.stringify(e)}]`;class _S extends SE{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}hasEffectsWhenAccessedAtPath(e){return e.length>(this.isNamespace?1:0)}include(){this.included||(this.included=!0,this.module.used=!0)}}const fS="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),mS="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),gS=new Set(fS.concat(mS)),hS=/[^$_a-zA-Z0-9]/g,yS=e=>/\d/.test(e[0]);function vS(e){return e=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(hS,"_"),(yS(e)||gS.has(e))&&(e=`_${e}`),e||"_"}const bS=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,xS=/^\.?\.\//;function ES(e){return bS.test(e)}function SS(e){return xS.test(e)}function DS(e){return-1==e.indexOf("\\")?e:e.replace(/\\/g,"/")}class TS{constructor(e,t,r,n){this.options=e,this.id=t,this.defaultVariableName="",this.dynamicImporters=[],this.importers=[],this.mostCommonSuggestion=0,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.variableName="",this.execIndex=1/0,this.suggestedVariableName=vS(t.split(/[\\/]/).pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map;const i=this;this.info={ast:null,code:null,dynamicallyImportedIds:KE,get dynamicImporters(){return i.dynamicImporters.sort()},hasModuleSideEffects:r,id:t,implicitlyLoadedAfterOneOf:KE,implicitlyLoadedBefore:KE,importedIds:KE,get importers(){return i.importers.sort()},isEntry:!1,isExternal:!0,meta:n,syntheticNamedExports:!1}}getVariableForExportName(e){let t=this.declarations[e];return t||(this.declarations[e]=t=new _S(this,e),this.exportedVariables.set(t,e),t)}setRenderPath(e,t){return this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id],this.renderPath||(ES(this.id)?(this.renderPath=DS(Xe(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.suggestedVariableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter((e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced}));if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${e.slice(-1)}' are`;this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function CS(e){return e.endsWith(".js")?e.slice(0,-3):e}function kS(e,t){return e.autoId?`${e.basePath?e.basePath+"/":""}${CS(t)}`:e.id||""}const AS="_interopDefault",NS="_interopDefaultLegacy",wS="_interopNamespace",FS="_interopNamespaceDefault",PS="_interopNamespaceDefaultOnly",IS={auto:AS,default:null,defaultOnly:null,esModule:null,false:null,true:NS};function OS(e,t){return"esModule"===e||t&&("auto"===e||"true"===e)}const MS={auto:wS,default:FS,defaultOnly:PS,esModule:null,false:null,true:wS};function RS(e,t){return OS(e,t)&&IS[e]===AS}function LS(){return PS}const BS={[AS]:(e,t,r,n,i)=>`function _interopDefault${e}(e)${e}{${e}return e${e}&&${e}e.__esModule${e}?${e}${i?jS(e):US(e)}${r}${e}}${t}${t}`,[NS]:(e,t,r,n,i)=>`function _interopDefaultLegacy${e}(e)${e}{${e}return e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e${e}?${e}${i?jS(e):US(e)}${r}${e}}${t}${t}`,[wS]:(e,t,r,n,i,a,o,s)=>`function _interopNamespace(e)${e}{${t}`+(s.has(FS)?`${n}return e${e}&&${e}e.__esModule${e}?${e}e${e}:${e}_interopNamespaceDefault(e)${r}${t}`:`${n}if${e}(e${e}&&${e}e.__esModule)${e}return e;${t}`+VS(e,t,n,n,i,a,o))+`}${t}${t}`,[FS]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefault(e)${e}{${t}`+VS(e,t,n,n,i,a,o)+`}${t}${t}`,[PS]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefaultOnly(e)${e}{${t}${n}return ${WS(`{__proto__: null,${o?`${e}[Symbol.toStringTag]:${e}'Module',`:""}${e}'default':${e}e}`,a)};${t}}${t}${t}`};function jS(e){return`e${e}:${e}{${e}'default':${e}e${e}}`}function US(e){return`e['default']${e}:${e}e`}function VS(e,t,r,n,i,a,o){return`${n}var n${e}=${e}${o?`{__proto__:${e}null,${e}[Symbol.toStringTag]:${e}'Module'}`:"Object.create(null)"};${t}${n}if${e}(e)${e}{${t}${n}${r}Object.keys(e).forEach(function${e}(k)${e}{${t}`+(i?KS:zS)(e,t,r,n+r+r)+`${n}${r}});${t}`+`${n}}${t}`+`${n}n['default']${e}=${e}e;${t}`+`${n}return ${WS("n",a)};${t}`}function KS(e,t,r,n){return`${n}if${e}(k${e}!==${e}'default')${e}{${t}${n}${r}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}${n}${r}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}${n}${r}${r}enumerable:${e}true,${t}${n}${r}${r}get:${e}function${e}()${e}{${t}${n}${r}${r}${r}return e[k];${t}${n}${r}${r}}${t}${n}${r}});${t}${n}}${t}`}function zS(e,t,r,n){return`${n}n[k]${e}=${e}e[k];${t}`}function WS(e,t){return t?`Object.freeze(${e})`:e}const JS=Object.keys(BS);function HS(e,t,r,n,i,a,o,s="return "){const c=i?"":" ",l=i?"":"\n";if(!r)return`${l}${l}${s}${((e,t,r,n)=>{if(e.length>0)return e[0].local;for(const{defaultVariableName:e,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of t)if(l)return $S(o,l[0].imported,s,a,e,c,r,i,n)})(e,t,n,o)};`;let u="";for(const{defaultVariableName:e,id:i,isChunk:s,name:d,namedExportsMode:p,namespaceVariableName:_,reexports:f}of t)if(f&&r)for(const t of f)if("*"!==t.reexported){const r=$S(d,t.imported,p,s,e,_,n,i,o);u&&(u+=l),u+="*"!==t.imported&&t.needsLiveBinding?`Object.defineProperty(exports,${c}'${t.reexported}',${c}{${l}${a}enumerable:${c}true,${l}${a}get:${c}function${c}()${c}{${l}${a}${a}return ${r};${l}${a}}${l}});`:`exports.${t.reexported}${c}=${c}${r};`}for(const t of e){const e=`exports.${t.exported}`,r=t.local;e!==r&&(u&&(u+=l),u+=`${e}${c}=${c}${r};`)}for(const{name:e,reexports:n}of t)if(n&&r)for(const t of n)"*"===t.reexported&&(u&&(u+=l),t.needsLiveBinding?u+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}Object.defineProperty(exports,${c}k,${c}{${l}${a}${a}enumerable:${c}true,${l}${a}${a}get:${c}function${c}()${c}{${l}${a}${a}${a}return ${e}[k];${l}${a}${a}}${l}${a}});${l}});`:u+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}exports[k]${c}=${c}${e}[k];${l}});`);return u?`${l}${l}${u}`:""}function $S(e,t,r,n,i,a,o,s,c){if("default"===t){if(!n){const t=String(o(s)),r=IS[t]?i:e;return OS(t,c)?`${r}['default']`:r}return r?`${e}['default']`:e}return"*"===t?(n?!r:MS[String(o(s))])?a:e:`${e}.${t}`}function GS(e,t,r,n,i){let a="";return e&&(t&&(a+=(e=>`Object.defineProperty(exports,${e}'__esModule',${e}{${e}value:${e}true${e}});`)(n)),r&&(a&&(a+=i),a+=(e=>`exports[Symbol.toStringTag]${e}=${e}'Module';`)(n))),a}function qS(e,t,r,n,i,a,o,s,c,l,u){const d=new Set,p=[],_=(e,r,n)=>{d.add(r),p.push(`${t} ${e}${s}=${s}/*#__PURE__*/${r}(${n});`)};for(const{defaultVariableName:t,imports:n,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of e)if(a){for(const{imported:e,reexported:t}of[...n||[],...l||[]])if("*"===e&&"*"!==t){s||_(c,LS(),o);break}}else{const e=String(r(i));let a=!1,s=!1;for(const{imported:r,reexported:i}of[...n||[],...l||[]]){let n,l;"default"===r?a||(a=!0,t!==c&&(l=t,n=IS[e])):"*"===r&&"*"!==i&&(s||(s=!0,n=MS[e],l=c)),n&&_(l,n,o)}}return`${((e,t,r,n,i,a,o,s,c)=>JS.map((l=>e.has(l)||t.has(l)?BS[l](r,n,i,a,o,s,c,e):"")).join(""))(d,o,s,c,l,u,n,i,a)}${p.length>0?`${p.join(c)}${c}${c}`:""}`}function XS(e){return"."===e[0]?CS(e):e}const YS={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function QS(e,t){const r=t.map((({id:e})=>e)).filter((e=>e in YS));r.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===r.length?`module ('${r[0]}')`:`modules (${r.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${r.slice(-1)}')`}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`,modules:r})}function ZS(e){return e.replace(/^\t+/,(e=>e.split("\t").join(" ")))}function eD(e){const t=/^[a-z]:/i.exec(e),r=t?t[0]:"";return r+e.substr(r.length).replace(/[\0?*:]/g,"_")}function tD(e){const t=ze(e);return t.substr(0,t.length-Je(e).length)}function rD(e){return ES(e)?Xe(Ye(),e):e}function nD(e){return!("/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||eD(e)!==e||ES(e))}function iD(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e)),e}function aD(e,t,r,n){if("object"==typeof t){const{line:r,column:i}=t;e.loc={file:n,line:r,column:i}}else{e.pos=t;const{line:i,column:a}=kE(r,t,{offsetLine:1});e.loc={file:n,line:i,column:a}}if(void 0===e.frame){const{line:t,column:n}=e.loc;e.frame=((e,t,r)=>{let n=e.split("\n");const i=Math.max(0,t-3);let a=Math.min(t+2,n.length);for(n=n.slice(i,a);!/\S/.test(n[n.length-1]);)n.pop(),a-=1;const o=String(a).length;return n.map(((e,n)=>{const a=i+n+1===t;let s=String(n+i+1);for(;s.length<o;)s=` ${s}`;if(a){const t=(e=>{let t="";for(;e--;)t+=" ";return t})(o+2+ZS(e.slice(0,r)).length)+"^";return`${s}: ${ZS(e)}\n${t}`}return`${s}: ${ZS(e)}`})).join("\n")})(r,t,n)}}var oD;function sD({fileName:e,code:t},r){const n={code:oD.CHUNK_INVALID,message:`Chunk "${e}" is not valid JavaScript: ${r.message}.`};return aD(n,r.loc,t,e),n}function cD(e,t,r){return{code:"INVALID_EXPORT_OPTION",message:`"${e}" was specified for "output.exports", but entry module "${rD(r)}" has the following exports: ${t.join(", ")}`}}function lD(e,t,r){return{code:oD.MISSING_EXPORT,message:`'${e}' is not exported by ${rD(r)}, imported by ${rD(t)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function uD(e){const t=Array.from(e.implicitlyLoadedBefore,(e=>rD(e.id))).sort();return{code:oD.MISSING_IMPLICIT_DEPENDANT,message:`Module "${rD(e.id)}" that should be implicitly loaded before "${1===t.length?t[0]:`${t.slice(0,-1).join('", "')}" and "${t.slice(-1)[0]}`}" is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function dD(e,t,r){return{code:oD.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${rD(t.id)} re-exports '${e}' from both ${rD(t.exportsAll[e])} and ${rD(r.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],r.exportsAll[e]]}}function pD(e,t,r){const n=r?"reexport":"import";return{code:oD.UNEXPECTED_NAMED_IMPORT,id:e,message:`The named export "${t}" was ${n}ed from the external module ${rD(e)} even though its interop type is "defaultOnly". Either remove or change this ${n} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function _D(e){return{code:oD.UNEXPECTED_NAMED_IMPORT,id:e,message:`There was a namespace "*" reexport from the external module ${rD(e)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function fD(e){return{code:oD.VALIDATION_ERROR,message:e}}function mD(){return{code:oD.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function gD(e,t,r){hD(e,t,r.onwarn,r.strictDeprecations)}function hD(e,t,r,n){if(t||n){const t=(e=>({code:oD.DEPRECATED_FEATURE,..."string"==typeof e?{message:e}:e}))(e);if(n)return iD(t);r(t)}}(e=>{e.ALREADY_CLOSED="ALREADY_CLOSED",e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.CHUNK_INVALID="CHUNK_INVALID",e.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",e.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",e.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",e.FILE_NOT_FOUND="FILE_NOT_FOUND",e.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.MISSING_EXPORT="MISSING_EXPORT",e.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",e.MIXED_EXPORTS="MIXED_EXPORTS",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",e.PLUGIN_ERROR="PLUGIN_ERROR",e.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",e.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",e.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",e.VALIDATION_ERROR="VALIDATION_ERROR"})(oD||(oD={}));const yD=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function vD(e){return yD.test(e)?`.${e}`:`['${e}']`}function bD(e){return e.split(".").map(vD).join("")}function xD(e,t,r,n,i){const a=n?"":" ",o=e.split(".");o[0]=("function"==typeof r?r(o[0]):r[o[0]])||o[0];const s=o.pop();let c=t,l=o.map((e=>(c+=vD(e),`${c}${a}=${a}${c}${a}||${a}{}`))).concat(`${c}${vD(s)}`).join(`,${a}`).concat(`${a}=${a}${i}`);return o.length>0&&(l=`(${l})`),l}function ED(e){let t=e.length;for(;t--;){const{imports:r,reexports:n}=e[t];if(r||n)return e.slice(0,t+1)}return[]}const SD=e=>`this${bD(e)}`;function DD({dependencies:e,exports:t}){const r=new Set(t.map((e=>e.exported)));r.has("default")||r.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"===e.imported||r.has(e.reexported)||r.add(e.reexported);return r}function TD(e,t,r,n){return 0===e.length?"":1===e.length?`${r}${r}${r}exports('${e[0].name}',${t}${e[0].value});${n}${n}`:`${r}${r}${r}exports({${n}`+e.map((({name:e,value:n})=>`${r}${r}${r}${r}${e}:${t}${n}`)).join(`,${n}`)+`${n}${r}${r}${r}});${n}${n}`}function CD(e,t){return e?`${t}${bD(e)}`:"null"}var kD={system(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,outro:s,usesTopLevelAwait:c,varOrConst:l},u){const d=u.compact?"":"\n",p=u.compact?"":" ",_=r.map((e=>`'${e.id}'`)),f=[];let m;const g=[];for(const{imports:e,reexports:t}of r){const i=[];if(e)for(const t of e)f.push(t.local),"*"===t.imported?i.push(`${t.local}${p}=${p}module;`):i.push(`${t.local}${p}=${p}module.${t.imported};`);if(t){let e=!1;if(t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)){for(const o of t)"*"===o.reexported&&(m||(m=DD({dependencies:r,exports:n})),e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${a}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"));for(const e of t)"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`);for(const r of t)"*"!==r.reexported&&"*"!==r.imported&&(e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${r.reexported}${p}=${p}module.${r.imported};`));e&&i.push("exports(_setter);")}else for(const e of t)i.push(`exports('${e.reexported}',${p}module.${e.imported});`)}g.push(i.join(`${d}${a}${a}${a}`))}const h=u.name?`'${u.name}',${p}`:"",y=t.has("module")?`exports,${p}module`:i?"exports":"";let v=`System.register(${h}[`+_.join(`,${p}`)+`],${p}function${p}(${y})${p}{${d}${a}${u.strict?"'use strict';":""}`+((e,t,r,n,i)=>e?`${i}${n}${t} _starExcludes${r}=${r}{${r}${[...e].map((e=>`${e}:${r}1`)).join(`,${r}`)}${r}};`:"")(m,l,p,a,d)+((e,t,r,n)=>e.length?`${n}${r}var ${e.join(`,${t}`)};`:"")(f,p,a,d)+`${d}${a}return${p}{${g.length?`${d}${a}${a}setters:${p}[${g.map((e=>e?`function${p}(module)${p}{${d}${a}${a}${a}${e}${d}${a}${a}}`:u.systemNullSetters?"null":`function${p}()${p}{}`)).join(`,${p}`)}],`:""}${d}`;v+=`${a}${a}execute:${p}${c?`async${p}`:""}function${p}()${p}{${d}${d}`+((e,t,r,n)=>TD(e.filter((e=>e.hoisted||e.uninitialized)).map((e=>({name:e.exported,value:e.uninitialized?"void 0":e.local}))),t,r,n))(n,p,a,d);const b=`${d}${d}`+((e,t,r,n)=>TD(e.filter((e=>e.expression)).map((e=>({name:e.exported,value:e.local}))),t,r,n))(n,p,a,d)+((e,t,r,n)=>TD(e.filter((e=>e.local===cS)).map((e=>({name:e.exported,value:cS}))),t,r,n))(n,p,a,d)+`${a}${a}}${d}${a}}${u.compact?"":";"}${d}});`;return o&&e.prepend(o),s&&e.append(s),e.indent(`${a}${a}${a}`).append(b).prepend(v)},amd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,isEntryFacade:c,isModuleFacade:l,namedExportsMode:u,outro:d,varOrConst:p,warn:_},{amd:f,compact:m,esModule:g,externalLiveBindings:h,freeze:y,interop:v,namespaceToStringTag:b,strict:x}){QS(_,r);const E=r.map((e=>`'${XS(e.id)}'`)),S=r.map((e=>e.name)),D=m?"":"\n",T=m?"":";",C=m?"":" ";u&&i&&(S.unshift("exports"),E.unshift("'exports'")),t.has("require")&&(S.unshift("require"),E.unshift("'require'")),t.has("module")&&(S.unshift("module"),E.unshift("'module'"));const k=kS(f,a),A=(k?`'${k}',${C}`:"")+(E.length?`[${E.join(`,${C}`)}],${C}`:""),N=x?`${C}'use strict';`:"";e.prepend(`${s}${qS(r,p,v,h,y,b,t,C,D,T,o)}`);const w=HS(n,r,u,v,m,o,h);let F=GS(u&&i,c&&g,l&&b,C,D);return F&&(F=D+D+F),e.append(`${w}${F}${d}`),e.indent(o).prepend(`${f.define}(${A}function${C}(${S.join(`,${C}`)})${C}{${N}${D}${D}`).append(`${D}${D}});`)},cjs(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,isEntryFacade:s,isModuleFacade:c,namedExportsMode:l,outro:u,varOrConst:d},{compact:p,esModule:_,externalLiveBindings:f,freeze:m,interop:g,namespaceToStringTag:h,strict:y}){const v=p?"":"\n",b=p?"":";",x=p?"":" ",E=y?`'use strict';${v}${v}`:"";let S=GS(l&&i,s&&_,c&&h,x,v);S&&(S+=v+v);const D=((e,t,r,n,i)=>{let a="",o=!1;for(const{id:s,name:c,reexports:l,imports:u}of e)l||u?(a+=t&&o?",":`${a?`;${n}`:""}${r} `,o=!0,a+=`${c}${i}=${i}require('${s}')`):(a&&(a+=!t||o?`;${n}`:","),o=!1,a+=`require('${s}')`);return a?`${a};${n}${n}`:""})(r,p,d,v,x),T=qS(r,d,g,f,m,h,t,x,v,b,a);e.prepend(`${E}${o}${S}${D}${T}`);const C=HS(n,r,l,g,p,a,f,`module.exports${x}=${x}`);return e.append(`${C}${u}`)},es(e,{intro:t,outro:r,dependencies:n,exports:i,varOrConst:a},{compact:o}){const s=o?"":" ",c=o?"":"\n",l=((e,t)=>{const r=[];for(const{id:n,reexports:i,imports:a,name:o}of e)if(i||a){if(a){let e=null,i=null;const o=[];for(const t of a)"default"===t.imported?e=t:"*"===t.imported?i=t:o.push(t);i&&r.push(`import${t}*${t}as ${i.local} from${t}'${n}';`),e&&0===o.length?r.push(`import ${e.local} from${t}'${n}';`):o.length>0&&r.push(`import ${e?`${e.local},${t}`:""}{${t}${o.map((e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}if(i){let e=null;const s=[],c=[];for(const t of i)"*"===t.reexported?e=t:"*"===t.imported?s.push(t):c.push(t);if(e&&r.push(`export${t}*${t}from${t}'${n}';`),s.length>0){a&&a.some((e=>"*"===e.imported&&e.local===o))||r.push(`import${t}*${t}as ${o} from${t}'${n}';`);for(const e of s)r.push(`export${t}{${t}${o===e.reexported?o:`${o} as ${e.reexported}`} };`)}c.length>0&&r.push(`export${t}{${t}${c.map((e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}}else r.push(`import${t}'${n}';`);return r})(n,s);l.length>0&&(t+=l.join(c)+c+c),t&&e.prepend(t);const u=((e,t,r)=>{const n=[],i=[];for(const a of e)"default"===a.exported?n.push(`export default ${a.local};`):(a.expression&&n.push(`${r} ${a.local}${t}=${t}${a.expression};`),i.push(a.exported===a.local?a.local:`${a.local} as ${a.exported}`));return i.length&&n.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`),n})(i,s,a);return u.length&&e.append(c+c+u.join(c).trim()),r&&e.append(r),e.trim()},iife(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,namedExportsMode:s,outro:c,varOrConst:l,warn:u},{compact:d,esModule:p,extend:_,freeze:f,externalLiveBindings:m,globals:g,interop:h,name:y,namespaceToStringTag:v,strict:b}){const x=d?"":" ",E=d?"":";",S=d?"":"\n",D=y&&-1!==y.indexOf("."),T=!_&&!D;if(y&&T&&(yS(C=y)||gS.has(C)||hS.test(C)))return iD({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${y}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});var C;QS(u,r);const k=ED(r),A=k.map((e=>e.globalName||"null")),N=k.map((e=>e.name));i&&!y&&u({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'}),s&&i&&(_?(A.unshift(`${SD(y)}${x}=${x}${SD(y)}${x}||${x}{}`),N.unshift("exports")):(A.unshift("{}"),N.unshift("exports")));const w=b?`${a}'use strict';${S}`:"",F=qS(r,l,h,m,f,v,t,x,S,E,a);e.prepend(`${o}${F}`);let P=`(function${x}(${N.join(`,${x}`)})${x}{${S}${w}${S}`;i&&(!y||_&&s||(P=(T?`${l} ${y}`:SD(y))+`${x}=${x}${P}`),D&&(P=((e,t,r,n)=>{const i=n?"":" ",a=e.split(".");a[0]=("function"==typeof r?r(a[0]):r[a[0]])||a[0],a.pop();let o="this";return a.map((e=>(o+=vD(e),`${o}${i}=${i}${o}${i}||${i}{}${n?"":";"}`))).join(n?",":"\n")+(n&&a.length?";":"\n")})(y,0,g,d)+P));let I=`${S}${S}}(${A.join(`,${x}`)}));`;i&&!_&&s&&(I=`${S}${S}${a}return exports;${I}`);const O=HS(n,r,s,h,d,a,m);let M=GS(s&&i,p,v,x,S);return M&&(M=S+S+M),e.append(`${O}${M}${c}`),e.indent(a).prepend(P).append(I)},umd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,namedExportsMode:c,outro:l,varOrConst:u,warn:d},{amd:p,compact:_,esModule:f,extend:m,externalLiveBindings:g,freeze:h,interop:y,name:v,namespaceToStringTag:b,globals:x,noConflict:E,strict:S}){const D=_?"":" ",T=_?"":"\n",C=_?"":";",k=_?"f":"factory",A=_?"g":"global";if(i&&!v)return iD({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});QS(d,r);const N=r.map((e=>`'${XS(e.id)}'`)),w=r.map((e=>`require('${e.id}')`)),F=ED(r),P=F.map((e=>CD(e.globalName,A))),I=F.map((e=>e.name));c&&(i||E)&&(N.unshift("'exports'"),w.unshift("exports"),P.unshift(xD(v,A,x,_,(m?`${CD(v,A)}${D}||${D}`:"")+"{}")),I.unshift("exports"));const O=kS(p,a),M=(O?`'${O}',${D}`:"")+(N.length?`[${N.join(`,${D}`)}],${D}`:""),R=p.define,L=!c&&i?`module.exports${D}=${D}`:"",B=S?`${D}'use strict';${T}`:"";let j;if(E){const e=_?"e":"exports";let t;t=!c&&i?`var ${e}${D}=${D}${xD(v,A,x,_,`${k}(${P.join(`,${D}`)})`)};`:`var ${e}${D}=${D}${P.shift()};${T}${o}${o}${k}(${[e].concat(P).join(`,${D}`)});`,j=`(function${D}()${D}{${T}${o}${o}var current${D}=${D}${((e,t,r)=>{const n=e.split(".");let i=t;return n.map((e=>i+=vD(e))).join(`${r}&&${r}`)})(v,A,D)};${T}${o}${o}${t}${T}${o}${o}${e}.noConflict${D}=${D}function${D}()${D}{${D}${CD(v,A)}${D}=${D}current;${D}return ${e}${_?"":"; "}};${T}${o}}())`}else j=`${k}(${P.join(`,${D}`)})`,!c&&i&&(j=xD(v,A,x,_,j));const U=i||E&&c||P.length>0,V=U?`this,${D}`:"",K=U?`(${A}${D}=${D}typeof globalThis${D}!==${D}'undefined'${D}?${D}globalThis${D}:${D}${A}${D}||${D}self,${D}`:"",z=U?")":"",W=`(function${D}(${U?`${A},${D}`:""}${k})${D}{${T}`+(U?`${o}typeof exports${D}===${D}'object'${D}&&${D}typeof module${D}!==${D}'undefined'${D}?${D}${L}${k}(${w.join(`,${D}`)})${D}:${T}`:"")+`${o}typeof ${R}${D}===${D}'function'${D}&&${D}${R}.amd${D}?${D}${R}(${M}${k})${D}:${T}`+`${o}${K}${j}${z};${T}`+`}(${V}(function${D}(${I.join(", ")})${D}{${B}${T}`,J=T+T+"})));";e.prepend(`${s}${qS(r,u,y,g,h,b,t,D,T,C,o)}`);const H=HS(n,r,c,y,_,o,g);let $=GS(c&&i,f,b,D,T);return $&&($=T+T+$),e.append(`${H}${$}${l}`),e.trim().indent(o).append(J).prepend(W)}};const AD={ArrayPattern(e,t){for(const r of t.elements)r&&AD[r.type](e,r)},AssignmentPattern(e,t){AD[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?AD.RestElement(e,r):AD[r.value.type](e,r.value)},RestElement(e,t){AD[t.argument.type](e,t.argument)}},ND=e=>{const t=[];return AD[e.type](t,e),t};class wD extends wE{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,r){e.remove(r.start,r.end)}}wD.prototype.needsBoundaries=!0;class FD extends CE{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,Gx,n):super.addDeclaration(e,t,r,!1)}}class PD extends wE{initialise(){this.directive&&"use strict"!==this.directive&&this.parent.type===xx&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?this.parent.type!==xx:super.shouldBeIncluded(e)}}class ID extends wE{constructor(){super(...arguments),this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(Gx)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new FD(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(t.hasEffects(e))return!0;if(e.brokenFlow)break}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}}initialise(){const e=this.body[0];this.deoptimizeBody=e instanceof PD&&"use asm"===e.directive}render(e,t){this.body.length?Nx(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class OD extends wE{createScope(e){this.scope=new LE(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===jx&&this.scope.getReturnExpression().deoptimizePath(Vx)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Gx}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const{ignore:n,brokenFlow:i}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.ignore=n,r.brokenFlow=i,!1)}include(e,t){this.included=!0;for(const r of this.params)r instanceof tS||r.include(e,t);const{brokenFlow:r}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=r}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",Gx))),this.params[this.params.length-1]instanceof rS),this.body instanceof ID?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){e.body.type===hx&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}OD.prototype.preventChildBlockScope=!0;const MD={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>$x,instanceof:()=>$x,"|":(e,t)=>e|t};class RD extends wE{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?$x:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Gx:bE(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||vE(this.members,e[0],this.included,t,r)}initialise(){this.members=(e=>{switch(typeof e){case"boolean":return gE;case"number":return hE;case"string":return yE;default:return Object.create(null)}})(this.value)}parseNode(e){this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function LD(e){const t=e.propertyKey,r=e.object;if("string"==typeof t){if(r instanceof tS)return[{key:r.name,pos:r.start},{key:t,pos:e.property.start}];if(r instanceof BD){const n=LD(r);return n&&[...n,{key:t,pos:e.property.start}]}}return null}class BD extends wE{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){if(this.bound)return;this.bound=!0;const e=LD(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const r=this.resolveNamespaceVariables(t,e.slice(1));r?"string"==typeof r?this.replacement=r:(this.variable=r,this.scope.addNamespaceMemberAccess((e=>{let t=e[0].key;for(let r=1;r<e.length;r++)t+="."+e[r].key;return t})(e),r)):super.bind()}else super.bind(),this.getPropertyKey()}deoptimizeCache(){const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=jx,this.wasPathDeoptimizedWhileOptimized&&this.object.deoptimizePath(Vx);for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else{const t=this.getPropertyKey();t===jx?this.object.deoptimizePath(Vx):(this.wasPathDeoptimizedWhileOptimized=!0,this.object.deoptimizePath([t,...e]))}}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getLiteralValueAtPath([this.getPropertyKey(),...e],t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...e],t,r))}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"always"===t||this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,r){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,r):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,r)}include(e,t){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable)),this.object.include(e,t),this.property.include(e,t)}includeCallArguments(e,t){this.variable?this.variable.includeCallArguments(e,t):super.includeCallArguments(e,t)}initialise(){var e,t;this.propertyKey=(e=this).computed?(t=e.property)instanceof RD?String(t.value):null:e.property.name}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,renderedSurroundingElement:i}=UE){const a=r===yx&&n;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;a&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else{a&&e.appendRight(this.start,"0, ");const n=r||i;this.object.render(e,t,n?{renderedSurroundingElement:n}:UE),this.property.render(e,t)}}disallowNamespaceReassignment(){this.object instanceof tS&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.context.includeVariableInModule(this.variable),this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start))}getPropertyKey(){if(null===this.propertyKey){this.propertyKey=jx;const e=this.property.getLiteralValueAtPath(Ux,Wx,this);return this.propertyKey=e===$x?jx:String(e)}return this.propertyKey}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace||e instanceof _S)return null;const r=t[0].key,n=e.context.traceExport(r);if(!n){const n=e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:rD(n),importer:rD(this.context.fileName),message:`'${r}' is not exported by '${rD(n)}'`,missing:r,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(n,t.slice(1))}}class jD extends RE{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,r,n):super.addDeclaration(e,t,r,!1)}}class UD extends wE{createScope(e){this.scope=new jD(e,this.context)}initialise(){this.param&&this.param.declare("parameter",Gx)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}UD.prototype.preventChildBlockScope=!0;class VD extends CE{findLexicalBoundary(){return this}}class KD extends wE{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||this.value.hasEffectsWhenCalledAtPath(Ux,t,r)}}class zD{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return $x}getReturnExpressionWhenCalledAtPath(e,t,r){return new zD(this.expressions.map((n=>n.getReturnExpressionWhenCalledAtPath(e,t,r))))}hasEffectsWhenAccessedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){for(const n of this.expressions)if(n.hasEffectsWhenCalledAtPath(e,t,r))return!0;return!1}include(e,t){for(const r of this.expressions)r.included||r.include(e,t)}includeCallArguments(){}}class WD extends wE{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r;null===this.declaration?e.remove(n,i):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:n,end:i}))}}WD.prototype.needsBoundaries=!0;class JD extends FD{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,r,n){return this.hoistedDeclarations.push(e),this.parent.addDeclaration(e,t,r,n)}}const HD=Symbol("unset");class $D extends wE{constructor(){super(...arguments),this.testValue=HD}deoptimizeCache(){this.testValue=$x}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if(t===$x){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const r=e.brokenFlow;return e.brokenFlow=t,null!==this.alternate&&(!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r,!1))}return t?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();t===$x?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}parseNode(e){this.consequentScope=new JD(this.scope),this.consequent=new(this.context.nodeConstructors[e.consequent.type]||this.context.nodeConstructors.UnknownNode)(e.consequent,this,this.consequentScope),e.alternate&&(this.alternateScope=new JD(this.scope),this.alternate=new(this.context.nodeConstructors[e.alternate.type]||this.context.nodeConstructors.UnknownNode)(e.alternate,this,this.alternateScope)),super.parseNode(e)}render(e,t){const r=this.getTestValue(),n=[],i=this.test.included,a=!this.context.options.treeshake;i?this.test.render(e,t):(Sx(this,e),e.remove(this.start,this.consequent.start)),this.consequent.included&&(a||r===$x||r)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,i?";":""),n.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!a&&r!==$x&&r?(i&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),n.push(...this.alternateScope.hoistedDeclarations)):(i?101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(n,e)}getTestValue(){return this.testValue===HD?this.testValue=this.test.getLiteralValueAtPath(Ux,Wx,this):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.includeAsSingleStatement(e,!1),null!==this.alternate&&!t&&this.alternate.shouldBeIncluded(e)&&this.alternate.includeAsSingleStatement(e,!1)}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),null!==this.alternate&&this.alternate.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let r=0;this.consequent.shouldBeIncluded(e)&&(this.consequent.includeAsSingleStatement(e,!1),r=e.brokenFlow,e.brokenFlow=t),null!==this.alternate&&this.alternate.shouldBeIncluded(e)&&(this.alternate.includeAsSingleStatement(e,!1),e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r)}renderHoistedDeclarations(e,t){const r=[...new Set(e.map((e=>{const t=e.variable;return t.included?t.getName():""})))].filter(Boolean).join(", ");if(r){const e=this.parent.type,n=e!==xx&&e!==hx;t.prependRight(this.start,`${n?"{ ":""}var ${r}; `),n&&t.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if(e instanceof $D&&e.alternate)return!0;if(e instanceof ID)return!1;e=e.parent}while(e);return!1}}class GD extends wE{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,r){e.remove(r.start,r.end)}}GD.prototype.needsBoundaries=!0;const qD={amd:["require"],cjs:["require"],system:["module"]},XD="ROLLUP_ASSET_URL_",YD="ROLLUP_CHUNK_URL_",QD="ROLLUP_FILE_URL_",ZD={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},eT={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},tT=(e,t="URL")=>`new ${t}(${e}).href`,rT=e=>tT(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),nT=e=>(t,r)=>{const n=e(r);return null===t?`({ url: ${n} })`:"url"===t?n:"undefined"},iT=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,aT={amd:e=>("."!==e[0]&&(e="./"+e),tT(`require.toUrl('${e}'), document.baseURI`)),cjs:e=>`(typeof document === 'undefined' ? ${tT(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${rT(e)})`,es:e=>tT(`'${e}', import.meta.url`),iife:e=>rT(e),system:e=>tT(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${tT(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${rT(e)})`},oT={amd:nT((()=>tT("module.uri, document.baseURI"))),cjs:nT((e=>`(typeof document === 'undefined' ? ${tT("'file:' + __filename","(require('u' + 'rl').URL)")} : ${iT(e)})`)),iife:nT((e=>iT(e))),system:e=>null===e?"module.meta":`module.meta.${e}`,umd:nT((e=>`(typeof document === 'undefined' ? ${tT("'file:' + __filename","(require('u' + 'rl').URL)")} : ${iT(e)})`))};class sT extends wE{constructor(){super(...arguments),this.hasCachedEffect=!1}hasEffects(e){if(this.hasCachedEffect)return!0;for(const t of this.body)if(t.hasEffects(e))return this.hasCachedEffect=!0;return!1}include(e,t){this.included=!0;for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t){this.body.length?Nx(this.body,e,this.start,this.end,t):super.render(e,t)}}class cT extends wE{hasEffects(e){if(this.test&&this.test.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test&&this.test.include(e,t);for(const r of this.consequent)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t,r){if(this.consequent.length){this.test&&this.test.render(e,t);const n=this.test?this.test.end:Tx(e.original,"default",this.start)+7,i=Tx(e.original,":",n)+1;Nx(this.consequent,e,i,r.end,t)}else super.render(e,t)}}cT.prototype.needsBoundaries=!0;class lT extends wE{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?$x:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class uT extends CE{constructor(e,t){super(e),this.context=t,this.variables.set("this",new DE("this",null,qx,t))}addExportDefaultDeclaration(e,t,r){const n=new sS(e,t,r);return this.variables.set("default",n),n}addNamespaceMemberAccess(){}deconflict(e,t,r){for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.context.traceVariable(e)||this.parent.findVariable(e);return r instanceof eS&&this.accessedOutsideVariables.set(e,r),r}}const dT={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>$x,typeof:e=>typeof e,void(){},"~":e=>~e};function pT(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}class _T extends wE{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(Ux)}hasEffectsWhenAssignedAtPath(){return!1}include(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&r.include(e,t)}includeAsSingleStatement(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&(r.include(e,t),r.id.include(e,t))}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,r=UE){if(((e,t)=>{for(const r of e){if(!r.id.included)return!1;if(r.id.type===bx){if(t.has(r.id.variable))return!1}else{const e=[];if(r.id.addExportedVariables(e,t),e.length>0)return!1}}return!0})(this.declarations,t.exportNamesByVariable)){for(const r of this.declarations)r.render(e,t);r.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,r)}renderDeclarationEnd(e,t,r,n,i,a,o,s){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s||(t+=";"),null!==r?(10!==e.original.charCodeAt(n-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(n--,13===e.original.charCodeAt(n)&&n--),n===r+1?e.overwrite(r,i,t):(e.overwrite(r,r+1,t),e.remove(n,i))):e.appendLeft(i,t),a.length>0&&e.appendLeft(i,` ${Px(a,o)};`)}renderReplacedDeclarations(e,t,{isNoStatement:r}){const n=wx(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let i,a;a=kx(e.original,this.start+this.kind.length);let o=a-1;e.remove(this.start,o);let s,c,l=!1,u=!1,d="";const p=[];for(const{node:r,start:_,separator:f,contentEnd:m,end:g}of n)if(r.included){if(s="",c="",!r.id.included||r.id instanceof tS&&pT(r.id.variable,t.exportNamesByVariable))u&&(d+=";"),l=!1;else{if("system"===t.format&&null!==r.init)if(r.id.type!==bx)r.id.addExportedVariables(p,t.exportNamesByVariable);else{const n=t.exportNamesByVariable.get(r.id.variable);if(n){const i=t.compact?"":" ",a=Tx(e.original,"=",r.id.end);e.prependLeft(kx(e.original,a+1),1===n.length?`exports('${n[0]}',${i}`:Ix([r.id.variable],!1,t)),c+=")"}}l?d+=",":(u&&(d+=";"),s+=`${this.kind} `,l=!0)}a===o+1?e.overwrite(o,a,d+s):(e.overwrite(o,o+1,d),e.appendLeft(a,s)),r.render(e,t),i=m,a=g,u=!0,o=f,d=c}else e.remove(_,g);this.renderDeclarationEnd(e,d,o,i,a,p,t,r)}}const fT={ArrayExpression:class extends wE{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(Vx)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Gx:bE(mE,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||vE(mE,e[0],this.included,t,r)}},ArrayPattern:class extends wE{addExportedVariables(e,t){for(const r of this.elements)null!==r&&r.addExportedVariables(e,t)}declare(e){const t=[];for(const r of this.elements)null!==r&&t.push(...r.declare(e,Gx));return t}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(Ux,t))return!0;return!1}},ArrowFunctionExpression:OD,AssignmentExpression:class extends wE{constructor(){super(...arguments),this.deoptimized=!1}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Ux,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}include(e,t){let r;this.deoptimized||this.applyDeoptimizations(),this.included=!0,(t||"="!==this.operator||this.left.included||(r=EE(),this.left.hasEffects(r)||this.left.hasEffectsWhenAssignedAtPath(Ux,r)))&&this.left.include(e,t),this.right.include(e,t)}render(e,t,{preventASI:r,renderedParentType:n}=UE){if(this.left.included)this.left.render(e,t),this.right.render(e,t);else{const i=kx(e.original,Tx(e.original,"=",this.left.end)+1);e.remove(this.start,i),r&&Fx(e,i,this.right.start),this.right.render(e,t,{renderedParentType:n||this.parent.type})}if("system"===t.format){const r=this.left.variable&&t.exportNamesByVariable.get(this.left.variable);if("Identifier"===this.left.type&&r){const n=t.compact?"":" ",i=Tx(e.original,this.operator,this.left.end),a=this.operator.length>1?`${r[0]}${n}${this.operator.slice(0,-1)}${n}`:"";e.overwrite(i,kx(e.original,i+this.operator.length),`=${n}${1===r.length?`exports('${r[0]}',${n}`:Ix([this.left.variable],!1,t)}${a}`),e.appendLeft(this.right.end,")")}else{const r=[];this.left.addExportedVariables(r,t.exportNamesByVariable),r.length>0&&(e.prependRight(this.start,`(${Ix(r,!0,t)}`),e.appendLeft(this.end,"))"))}}}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Ux),this.right.deoptimizePath(Vx)}},AssignmentPattern:class extends wE{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}bind(){super.bind(),this.left.deoptimizePath(Ux),this.right.deoptimizePath(Vx)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(Ux,t)}render(e,t,{isShorthandProperty:r}=UE){this.left.render(e,t,{isShorthandProperty:r}),this.right.render(e,t)}},AwaitExpression:class extends wE{hasEffects(e){return!e.ignore.returnAwaitYield||this.argument.hasEffects(e)}include(e,t){if(!this.included){this.included=!0;e:if(!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof nS||e instanceof OD)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(e,t)}},BinaryExpression:class extends wE{deoptimizeCache(){}getLiteralValueAtPath(e,t,r){if(e.length>0)return $x;const n=this.left.getLiteralValueAtPath(Ux,t,r);if(n===$x)return $x;const i=this.right.getLiteralValueAtPath(Ux,t,r);if(i===$x)return $x;const a=MD[this.operator];return a?a(n,i):$x}hasEffects(e){return"+"===this.operator&&this.parent instanceof PD&&""===this.left.getLiteralValueAtPath(Ux,Wx,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}},BlockStatement:ID,BreakStatement:class extends wE{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.breaks)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},CallExpression:class extends wE{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null,this.wasPathDeoptmizedWhileOptimized=!1}bind(){super.bind(),this.callee instanceof tS&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),this.getReturnExpression(Wx),this.callee instanceof BD&&!this.callee.variable&&this.callee.object.deoptimizePath(Vx);for(const e of this.arguments)e.deoptimizePath(Vx)}deoptimizeCache(){if(this.returnExpression!==Gx){this.returnExpression=null;const e=this.getReturnExpression(Wx),t=this.expressionsToBeDeoptimized;e!==Gx&&(this.expressionsToBeDeoptimized=[],this.wasPathDeoptmizedWhileOptimized&&(e.deoptimizePath(Vx),this.wasPathDeoptmizedWhileOptimized=!1));for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(0===e.length)return;const t=this.context.deoptimizationTracker.getEntities(e);if(t.has(this))return;t.add(this);const r=this.getReturnExpression(Wx);r!==Gx&&(this.wasPathDeoptmizedWhileOptimized=!0,r.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getReturnExpression(t);if(n===Gx)return $x;const i=t.getEntities(e);if(i.has(n))return $x;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getLiteralValueAtPath(e,t,r);return i.delete(n),a}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getReturnExpression(t);if(this.returnExpression===Gx)return Gx;const i=t.getEntities(e);if(i.has(n))return Gx;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getReturnExpressionWhenCalledAtPath(e,t,r);return i.delete(n),a}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(Ux,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}include(e,t){t?(super.include(e,t),t===NE&&this.callee instanceof tS&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(e,!1)),this.callee.includeCallArguments(e,this.arguments),this.returnExpression.included||this.returnExpression.include(e,!1)}initialise(){this.callOptions={args:this.arguments,withNew:!1}}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=UE){const i=r||n;if(this.callee.render(e,t,i?{renderedSurroundingElement:i}:UE),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const r of this.arguments)r.render(e,t);else{let r=this.arguments.length-2;for(;r>=0&&!this.arguments[r].included;)r--;if(r>=0){for(let n=0;n<=r;n++)this.arguments[n].render(e,t);e.remove(Tx(e.original,",",this.arguments[r].end),this.end-1)}else e.remove(Tx(e.original,"(",this.callee.end)+1,this.end-1)}}getReturnExpression(e){return null===this.returnExpression?(this.returnExpression=Gx,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Ux,e,this)):this.returnExpression}},CatchClause:UD,ChainExpression:class extends wE{},ClassBody:class extends wE{createScope(e){this.scope=new VD(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(Ux,t,r)}initialise(){for(const e of this.body)if(e instanceof KD&&"constructor"===e.kind)return this.classConstructor=e,void 0;this.classConstructor=null}},ClassDeclaration:PE,ClassExpression:class extends FE{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=UE){super.render(e,t),(r||n)===vx&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},ConditionalExpression:class extends wE{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null;const t=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&e.deoptimizePath(Vx);for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(e.length>0){const t=this.getUsedBranch();null===t?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?$x:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new zD([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,r),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,r)||this.alternate.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.test.shouldBeIncluded(e)||null===this.usedBranch?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):this.usedBranch.include(e,t)}includeCallArguments(e,t){null===this.usedBranch?(this.consequent.includeCallArguments(e,t),this.alternate.includeCallArguments(e,t)):this.usedBranch.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=UE){if(this.test.included)super.render(e,t);else{const a=Tx(e.original,":",this.consequent.end),o=kx(e.original,(this.consequent.included?Tx(e.original,"?",this.test.end):a)+1);i&&Fx(e,o,this.usedBranch.start),e.remove(this.start,o),this.consequent.included&&e.remove(a,this.end),Sx(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:!0,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(Ux,Wx,this);return e===$x?null:this.usedBranch=e?this.consequent:this.alternate}},ContinueStatement:class extends wE{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.continues)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},DoWhileStatement:class extends wE{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},EmptyStatement:class extends wE{hasEffects(){return!1}},ExportAllDeclaration:wD,ExportDefaultDeclaration:aS,ExportNamedDeclaration:WD,ExportSpecifier:class extends wE{},ExpressionStatement:PD,ForInStatement:class extends wE{bind(){this.left.bind(),this.left.deoptimizePath(Ux),this.right.bind(),this.body.bind()}createScope(e){this.scope=new FD(e)}hasEffects(e){if(this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Ux,e))||this.right&&this.right.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(Ux),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,Dx),this.right.render(e,t,Dx),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForOfStatement:class extends wE{bind(){this.left.bind(),this.left.deoptimizePath(Ux),this.right.bind(),this.body.bind()}createScope(e){this.scope=new FD(e)}hasEffects(){return!0}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(Ux),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,Dx),this.right.render(e,t,Dx),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForStatement:class extends wE{createScope(e){this.scope=new FD(e)}hasEffects(e){if(this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.init&&this.init.includeAsSingleStatement(e,t),this.test&&this.test.include(e,t);const{brokenFlow:r}=e;this.update&&this.update.include(e,t),this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.init&&this.init.render(e,t,Dx),this.test&&this.test.render(e,t,Dx),this.update&&this.update.render(e,t,Dx),this.body.render(e,t)}},FunctionDeclaration:iS,FunctionExpression:class extends nS{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=UE){super.render(e,t),(r||n)===vx&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},Identifier:tS,IfStatement:$D,ImportDeclaration:GD,ImportDefaultSpecifier:class extends wE{},ImportExpression:class extends wE{constructor(){super(...arguments),this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(e,t){this.included||(this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)),this.source.include(e,t)}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const r=t.compact?"":" ",n=t.compact?"":";";return e.overwrite(this.start,this.end,`Promise.resolve().then(function${r}()${r}{${r}return ${this.inlineNamespace.getName()}${n}${r}})`),void 0}this.mechanism&&(e.overwrite(this.start,Tx(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.source.render(e,t)}renderFinalResolution(e,t,r,n){if(e.overwrite(this.source.start,this.source.end,t),r){const t=n.compact?"":" ",i=n.compact?"":";";e.prependLeft(this.end,`.then(function${t}(n)${t}{${t}return n.${r}${i}${t}})`)}}setExternalResolution(e,t,r,n,i){this.resolution=t;const a=[...qD[r.format]||[]];let o;({helper:o,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(t,e,r,n)),o&&a.push(o),a.length>0&&this.scope.addAccessedGlobals(a,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,t,r,n){const i=n.hookFirstSync("renderDynamicImport",[{customResolution:"string"==typeof this.resolution?this.resolution:null,format:r.format,moduleId:this.context.module.id,targetModuleId:this.resolution&&"string"!=typeof this.resolution?this.resolution.id:null}]);if(i)return{helper:null,mechanism:i};switch(r.format){case"cjs":{const n=r.compact?"":" ",i=r.compact?"":";",a=`Promise.resolve().then(function${n}()${n}{${n}return`,o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:o?{left:`${a} /*#__PURE__*/${o}(require(`,right:`))${i}${n}})`}:{left:`${a} require(`,right:`)${i}${n}})`}}}case"amd":{const n=r.compact?"":" ",i=r.compact?"c":"resolve",a=r.compact?"e":"reject",o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:{left:`new Promise(function${n}(${i},${n}${a})${n}{${n}require([`,right:`],${n}${o?`function${n}(m)${n}{${n}${i}(/*#__PURE__*/${o}(m));${n}}`:i},${n}${a})${n}})`}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(r.dynamicImportFunction)return{helper:null,mechanism:{left:`${r.dynamicImportFunction}(`,right:")"}}}return{helper:null,mechanism:null}}getInteropHelper(e,t,r){return"external"===t?MS[String(r(e instanceof TS?e.id:null))]:"default"===t?LS():null}},ImportNamespaceSpecifier:class extends wE{},ImportSpecifier:class extends wE{},LabeledStatement:class extends wE{hasEffects(e){const t=e.brokenFlow;return e.ignore.labels.add(this.label.name),!!this.body.hasEffects(e)||(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t),!1)}include(e,t){this.included=!0;const r=e.brokenFlow;this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(),e.includedLabels.delete(this.label.name),e.brokenFlow=r)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,kx(e.original,Tx(e.original,":",this.label.end)+1)),this.body.render(e,t)}},Literal:RD,LogicalExpression:class extends wE{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&this.unusedBranch.deoptimizePath(Vx);for(const t of e)t.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();null===t?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?$x:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new zD([this.left.getReturnExpressionWhenCalledAtPath(e,t,r),this.right.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.left.hasEffects(e)||this.usedBranch!==this.left&&this.right.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,r)||this.right.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.usedBranch===this.right&&this.left.shouldBeIncluded(e)||null===this.usedBranch?(this.left.include(e,t),this.right.include(e,t)):this.usedBranch.include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=UE){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:i}),this.right.render(e,t);else{const a=Tx(e.original,this.operator,this.left.end);if(this.right.included){const t=kx(e.original,a+2);e.remove(this.start,t),i&&Fx(e,t,this.right.start)}else e.remove(a,this.end);Sx(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:i,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(Ux,Wx,this);if(e===$x)return null;"||"===this.operator&&e||"&&"===this.operator&&!e||"??"===this.operator&&null!=e?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left)}return this.usedBranch}},MemberExpression:BD,MetaProperty:class extends wE{addAccessedGlobals(e,t){const r=this.metaProperty,n=(r&&(r.startsWith(QD)||r.startsWith(XD)||r.startsWith(YD))?eT:ZD)[e];n.length>0&&this.scope.addAccessedGlobals(n,t)}getReferencedFileName(e){const t=this.metaProperty;return t&&t.startsWith(QD)?e.getFileName(t.substr(QD.length)):null}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included&&(this.included=!0,"import"===this.meta.name)){this.context.addImportMeta(this);const e=this.parent;this.metaProperty=e instanceof BD&&"string"==typeof e.propertyKey?e.propertyKey:null}}renderFinalMechanism(e,t,r,n){var i;const a=this.parent,o=this.metaProperty;if(o&&(o.startsWith(QD)||o.startsWith(XD)||o.startsWith(YD))){let i,s=null,c=null,l=null;o.startsWith(QD)?(s=o.substr(QD.length),i=n.getFileName(s)):o.startsWith(XD)?(gD(`Using the "${XD}" prefix to reference files is deprecated. Use the "${QD}" prefix instead.`,!0,this.context.options),c=o.substr(XD.length),i=n.getFileName(c)):(gD(`Using the "${YD}" prefix to reference files is deprecated. Use the "${QD}" prefix instead.`,!0,this.context.options),l=o.substr(YD.length),i=n.getFileName(l));const u=DS(Xe(We(t),i));let d;return null!==c&&(d=n.hookFirstSync("resolveAssetUrl",[{assetFileName:i,chunkId:t,format:r,moduleId:this.context.module.id,relativeAssetPath:u}])),d||(d=n.hookFirstSync("resolveFileUrl",[{assetReferenceId:c,chunkId:t,chunkReferenceId:l,fileName:i,format:r,moduleId:this.context.module.id,referenceId:s||c||l,relativePath:u}])||aT[r](u)),e.overwrite(a.start,a.end,d,{contentOnly:!0}),void 0}const s=n.hookFirstSync("resolveImportMeta",[o,{chunkId:t,format:r,moduleId:this.context.module.id}])||(null===(i=oT[r])||void 0===i?void 0:i.call(oT,o,t));"string"==typeof s&&(a instanceof BD?e.overwrite(a.start,a.end,s,{contentOnly:!0}):e.overwrite(this.start,this.end,s,{contentOnly:!0}))}},MethodDefinition:KD,NewExpression:class extends wE{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(Vx)}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(Ux,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e){return e.length>1}initialise(){this.callOptions={args:this.arguments,withNew:!0}}},ObjectExpression:class extends wE{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),this.getPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;const t=this.getPropertyMap(),r=e[0];if(1===e.length){if("string"!=typeof r)return this.deoptimizeAllProperties(),void 0;if(!this.deoptimizedPaths.has(r)){this.deoptimizedPaths.add(r);const e=this.expressionsToBeDeoptimized.get(r);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Vx:e.slice(1);for(const e of"string"==typeof r?t[r]?t[r].propertiesRead:[]:this.properties)e.deoptimizePath(n)}getLiteralValueAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?$x:1!==e.length||n[i]||fE[i]||0!==this.unmatchablePropertiesRead.length?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?$x:(Bx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,r)):(Bx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),void 0)}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?Gx:1!==e.length||!fE[i]||0!==this.unmatchablePropertiesRead.length||n[i]&&null!==n[i].exactMatchRead?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?Gx:(Bx(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,r)):bE(fE,i)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const e of"string"!=typeof r?this.properties:n[r]?n[r].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(i,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const a of"string"!=typeof r?this.properties:e.length>1?n[r].propertiesRead:n[r]?n[r].propertiesWrite:[])if(a.hasEffectsWhenAssignedAtPath(i,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){const n=e[0];if("string"!=typeof n||this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(n)||(this.propertyMap[n]?!this.propertyMap[n].exactMatchRead:e.length>1||!fE[n]))return!0;const i=e.slice(1);if(this.propertyMap[n])for(const e of this.propertyMap[n].propertiesRead)if(e.hasEffectsWhenCalledAtPath(i,t,r))return!0;return!(1!==e.length||!fE[n])&&vE(fE,n,this.included,t,r)}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=UE){super.render(e,t);const i=r||n;i!==vx&&"ArrowFunctionExpression"!==i||(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(Vx);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}getPropertyMap(){if(null!==this.propertyMap)return this.propertyMap;const e=this.propertyMap=Object.create(null);for(let t=this.properties.length-1;t>=0;t--){const r=this.properties[t];if(r instanceof ME){this.unmatchablePropertiesRead.push(r);continue}const n="get"!==r.kind,i="set"!==r.kind;let a;if(r.computed){const e=r.key.getLiteralValueAtPath(Ux,Wx,this);if(e===$x){i?this.unmatchablePropertiesRead.push(r):this.unmatchablePropertiesWrite.push(r);continue}a=String(e)}else a=r.key instanceof tS?r.key.name:String(r.key.value);const o=e[a];o?(i&&null===o.exactMatchRead&&(o.exactMatchRead=r,o.propertiesRead.push(r,...this.unmatchablePropertiesRead)),n&&!i&&null===o.exactMatchWrite&&(o.exactMatchWrite=r,o.propertiesWrite.push(r,...this.unmatchablePropertiesWrite))):e[a]={exactMatchRead:i?r:null,exactMatchWrite:n?r:null,propertiesRead:i?[r,...this.unmatchablePropertiesRead]:[],propertiesWrite:n&&!i?[r,...this.unmatchablePropertiesWrite]:[]}}return e}},ObjectPattern:class extends wE{addExportedVariables(e,t){for(const r of this.properties)"Property"===r.type?r.value.addExportedVariables(e,t):r.argument.addExportedVariables(e,t)}declare(e,t){const r=[];for(const n of this.properties)r.push(...n.declare(e,t));return r}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(Ux,t))return!0;return!1}},PrivateIdentifier:class extends wE{},Program:sT,Property:class extends wE{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&this.getReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([jx,jx])}declare(e,t){return this.declarationInit=t,this.value.declare(e,Gx)}deoptimizeCache(){}deoptimizePath(e){"get"===this.kind?this.getReturnExpression().deoptimizePath(e):this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getLiteralValueAtPath(e,t,r):this.value.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getReturnExpressionWhenCalledAtPath(e,t,r):this.value.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"ObjectPattern"===this.parent.type&&"always"===t||this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){if("get"===this.kind){const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(Ux,this.accessorCallOptions,t)||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}return this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){if("get"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}if("set"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(Ux,this.accessorCallOptions,t))}return this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){if("get"===this.kind){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}return this.value.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){this.accessorCallOptions={args:Lx,withNew:!1}}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}getReturnExpression(){return null===this.returnExpression?(this.returnExpression=Gx,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(Ux,Wx,this)):this.returnExpression}},PropertyDefinition:class extends wE{hasEffects(e){return this.key.hasEffects(e)||this.static&&null!==this.value&&this.value.hasEffects(e)}},RestElement:rS,ReturnStatement:class extends wE{hasEffects(e){return!(e.ignore.returnAwaitYield&&(null===this.argument||!this.argument.hasEffects(e))&&(e.brokenFlow=2,1))}include(e,t){this.included=!0,this.argument&&this.argument.include(e,t),e.brokenFlow=2}initialise(){this.scope.addReturnExpression(this.argument||Gx)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends wE{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,r)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0;for(let r=0;r<this.expressions.length-1;r++){const n=this.expressions[r];(t||n.shouldBeIncluded(e))&&n.include(e,t)}this.expressions[this.expressions.length-1].include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=UE){let a=0;for(const{node:o,start:s,end:c}of wx(this.expressions,e,this.start,this.end))o.included?(a++,1===a&&i&&Fx(e,s,o.start),o===this.expressions[this.expressions.length-1]&&1===a?o.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,renderedParentType:r||this.parent.type}):o.render(e,t)):Ex(o,e,s,c)}},SpreadElement:ME,Super:class extends wE{},SwitchCase:cT,SwitchStatement:class extends wE{createScope(e){this.scope=new FD(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r}}=e;let n=1/0;e.ignore.breaks=!0;for(const r of this.cases){if(r.hasEffects(e))return!0;n=e.brokenFlow<n?e.brokenFlow:n,e.brokenFlow=t}return null!==this.defaultCase&&1!==n&&(e.brokenFlow=n),e.ignore.breaks=r,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:r}=e;let n=1/0,i=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let a=this.cases.length-1;a>=0;a--){const o=this.cases[a];if(o.included&&(i=!0),!i){const e=EE();e.ignore.breaks=!0,i=o.hasEffects(e)}i?(o.include(e,t),n=n<e.brokenFlow?n:e.brokenFlow,e.brokenFlow=r):n=r}i&&null!==this.defaultCase&&1!==n&&(e.brokenFlow=n)}initialise(){for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return this.defaultCase=e,void 0;this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&Nx(this.cases,e,this.cases[0].start,this.end-1,t)}},TaggedTemplateExpression:class extends wE{bind(){if(super.bind(),this.tag.type===bx){const e=this.tag.name;this.scope.findVariable(e).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${e}')`},this.start),"eval"===e&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(Ux,this.callOptions,e)}initialise(){this.callOptions={args:Lx,withNew:!1}}},TemplateElement:class extends wE{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(e){this.value=e.value,super.parseNode(e)}render(){}},TemplateLiteral:lT,ThisExpression:class extends wE{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof uT?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends wE{hasEffects(){return!0}include(e,t){this.included=!0,this.argument.include(e,t),e.brokenFlow=2}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},TryStatement:class extends wE{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e,t){var r;const n=null===(r=this.context.options.treeshake)||void 0===r?void 0:r.tryCatchDeoptimization,{brokenFlow:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(const t of this.includedLabelsAfterBlock)e.includedLabels.add(t)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?NE:t),e.includedLabels.size>0&&(this.includedLabelsAfterBlock=[...e.includedLabels]),e.brokenFlow=i;null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=i),null!==this.finalizer&&this.finalizer.include(e,t)}},UnaryExpression:class extends wE{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(Ux)}getLiteralValueAtPath(e,t,r){if(e.length>0)return $x;const n=this.argument.getLiteralValueAtPath(Ux,t,r);return n===$x?$x:dT[this.operator](n)}hasEffects(e){return!("typeof"===this.operator&&this.argument instanceof tS)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(Ux,e))}hasEffectsWhenAccessedAtPath(e){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends wE{hasEffects(){return!0}include(e){super.include(e,!0)}},UpdateExpression:class extends wE{bind(){super.bind(),this.argument.deoptimizePath(Ux),this.argument instanceof tS&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(Ux,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}render(e,t){if(this.argument.render(e,t),"system"===t.format){const r=this.argument.variable,n=t.exportNamesByVariable.get(r);if(n&&n.length){const i=t.compact?"":" ",a=r.getName();if(this.prefix)1===n.length?e.overwrite(this.start,this.end,`exports('${n[0]}',${i}${this.operator}${a})`):e.overwrite(this.start,this.end,`(${this.operator}${a},${i}${Px([r],t)},${i}${a})`);else if(n.length>1)e.overwrite(this.start,this.end,`(${Ix([r],!1,t)}${this.operator}${a}))`);else{let t;switch(this.operator){case"++":t=`${a}${i}+${i}1`;break;case"--":t=`${a}${i}-${i}1`}e.overwrite(this.start,this.end,`(exports('${n[0]}',${i}${t}),${i}${a}${this.operator})`)}}}}},VariableDeclaration:_T,VariableDeclarator:class extends wE{declareDeclarator(e){this.id.declare(e,this.init||qx)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){return this.id.hasEffects(e)||null!==this.init&&this.init.hasEffects(e)}include(e,t){this.included=!0,(t||this.id.shouldBeIncluded(e))&&this.id.include(e,t),this.init&&this.init.include(e,t)}render(e,t){const r=this.id.included;if(r)this.id.render(e,t);else{const t=Tx(e.original,"=",this.id.end);e.remove(this.start,kx(e.original,t+1))}if(this.init)this.init.render(e,t,r?UE:{renderedParentType:vx});else if(this.id instanceof tS&&pT(this.id.variable,t.exportNamesByVariable)){const r=t.compact?"":" ";e.appendLeft(this.end,`${r}=${r}void 0`)}}},WhileStatement:class extends wE{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},YieldExpression:class extends wE{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(Vx)}hasEffects(e){return!e.ignore.returnAwaitYield||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function mT(e){return e.id}let gT="sourceMa";gT+="ppingURL";const hT="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",yT=new RegExp(`(//#${hT}+sourceMappingURL=.+)|(/\\*#${hT}+sourceMappingURL=.+\\*/)`,"g"),vT=()=>{};let bT=()=>[0,0],xT=()=>0,ET=()=>0,ST={};function DT(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function TT(e,t=3){e=DT(e,t),ST.hasOwnProperty(e)||(ST[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const r=ET();ST[e].startTime=bT(),ST[e].startMemory=r}function CT(e,t=3){if(e=DT(e,t),ST.hasOwnProperty(e)){const t=ET();ST[e].time+=xT(ST[e].startTime),ST[e].totalMemory=Math.max(ST[e].totalMemory,t),ST[e].memory+=t-ST[e].startMemory}}function kT(){const e={};for(const t of Object.keys(ST))e[t]=[ST[t].time,ST[t].memory,ST[t].totalMemory];return e}let AT=vT,NT=vT;const wT={load:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0};function FT(e,t){const r={};for(const n of Object.keys(e))if(!0===wT[n]){let i=`plugin ${t}`;e.name&&(i+=` (${e.name})`),i+=` - ${n}`,r[n]=function(){AT(i,4);let t=e[n].apply(this===r?e:this,arguments);return NT(i,4),t&&"function"==typeof t.then&&(AT(`${i} (async)`,4),t=t.then((()=>NT(`${i} (async)`,4)))),t}}else r[n]=e[n];return r}function PT(e){e.isExecuted=!0;const t=[e],r=new Set;for(const e of t)for(const n of[...e.dependencies,...e.implicitlyLoadedBefore])n instanceof TS||n.isExecuted||!n.info.hasModuleSideEffects&&!e.implicitlyLoadedBefore.has(n)||r.has(n.id)||(n.isExecuted=!0,r.add(n.id),t.push(n))}const IT={identifier:null,localName:cS};function OT(e,t,r,n,i=new Map){const a=i.get(t);if(a){if(a.has(e))return n?null:iD((o=t,s=e.id,{code:oD.CIRCULAR_REEXPORT,id:s,message:`"${o}" cannot be exported from ${rD(s)} as it is a reexport that references itself.`}));a.add(e)}else i.set(t,new Set([e]));var o,s;return e.getVariableForExportName(t,r,n,i)}class MT{constructor(e,t,r,n,i,a,o){this.graph=e,this.id=t,this.options=r,this.alternativeReexportModules=new Map,this.ast=null,this.chunkFileNames=new Set,this.chunkName=null,this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.exportAllSources=new Set,this.exports=Object.create(null),this.exportsAll=Object.create(null),this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=Object.create(null),this.importers=[],this.importMetas=[],this.imports=new Set,this.includedDynamicImporters=[],this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.preserveSignature=this.options.preserveEntrySignatures,this.reexportDescriptions=Object.create(null),this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.userChunkNames=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.exportAllModules=[],this.exportNamesByVariable=null,this.exportShimVariable=new lS(this),this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(t),this.context=r.moduleContext(t);const s=this;this.info={ast:null,code:null,get dynamicallyImportedIds(){const e=[];for(const{resolution:t}of s.dynamicImports)(t instanceof MT||t instanceof TS)&&e.push(t.id);return e},get dynamicImporters(){return s.dynamicImporters.sort()},hasModuleSideEffects:i,id:t,get implicitlyLoadedAfterOneOf(){return Array.from(s.implicitlyLoadedAfter,mT)},get implicitlyLoadedBefore(){return Array.from(s.implicitlyLoadedBefore,mT)},get importedIds(){return Array.from(s.sources,(e=>s.resolvedIds[e].id))},get importers(){return s.importers.sort()},isEntry:n,isExternal:!1,meta:o,syntheticNamedExports:a}}basename(){const e=ze(this.id),t=Je(this.id);return vS(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){return this.addLocationToLogProps(e,t),iD(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexportDescriptions))e.add(t);for(const t of this.exportAllModules)if(t instanceof TS)e.add(`*${t.id}`);else for(const r of t.getAllExportNames())"default"!==r&&e.add(r);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;const e=new Set,t=new Set,r=new Set;let n=this.imports.keys();if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0){n=new Set(n);for(const e of[...this.getReexports(),...this.getExports()])n.add(this.getVariableForExportName(e))}for(let e of n){const n=this.sideEffectDependenciesByVariable.get(e);if(n)for(const e of n)r.add(e);e instanceof dS?e=e.getBaseVariable():e instanceof sS&&(e=e.getOriginalVariable()),t.add(e.module)}if(this.options.treeshake&&"no-treeshake"!==this.info.hasModuleSideEffects)this.addRelevantSideEffectDependencies(e,t,r);else for(const t of this.dependencies)e.add(t);for(const r of t)e.add(r);return this.relevantDependencies=e}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const t of this.getAllExportNames()){if(t===this.info.syntheticNamedExports)continue;let r=this.getVariableForExportName(t);if(r instanceof sS&&(r=r.getOriginalVariable()),!r||!(r.included||r instanceof _S))continue;const n=e.get(r);n?n.push(t):e.set(r,[t])}return this.exportNamesByVariable=e}getExports(){return Object.keys(this.exports)}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexportDescriptions)e.add(t);for(const t of this.exportAllModules)if(t instanceof TS)e.add(`*${t.id}`);else for(const r of[...t.getReexports(),...t.getExports()])"default"!==r&&e.add(r);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],t=[];for(const r in this.exports){const n=this.getVariableForExportName(r);(n&&n.included?e:t).push(r)}return{renderedExports:e,removedExports:t}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,this.syntheticNamespace=this.getVariableForExportName("string"==typeof this.info.syntheticNamedExports?this.info.syntheticNamedExports:"default")),this.syntheticNamespace?this.syntheticNamespace:iD((e=this.id,t=this.info.syntheticNamedExports,{code:oD.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:e,message:`Module "${rD(e)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(t)}' needs ${"string"==typeof t&&"default"!==t?`an export named "${t}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,t,r,n){if("*"===e[0])return 1===e.length?this.namespace:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const i=this.reexportDescriptions[e];if(i){const e=OT(i.module,i.localName,t,!1,n);return e?(t&&RT(e,t,this),e):this.error(lD(i.localName,this.id,i.module.id),i.start)}const a=this.exports[e];if(a){if(a===IT)return this.exportShimVariable;const e=a.localName,r=this.traceVariable(e,t);return t&&(Bx(t.sideEffectDependenciesByVariable,r,(()=>new Set)).add(this),RT(r,t,this)),r}if("default"!==e){let r=null;for(const i of this.exportAllModules){const a=OT(i,e,t,!0,n);if(a){if(!(a instanceof dS))return a;r||(r=a)}}if(r)return r}if(this.info.syntheticNamedExports){let t=this.syntheticExports.get(e);if(!t){const r=this.getSyntheticNamespace();return t=new dS(this.astContext,e,r),this.syntheticExports.set(e,t),t}return t}return!r&&this.options.shimMissingExports?(this.shimMissingExport(e),this.exportShimVariable):null}hasEffects(){return"no-treeshake"===this.info.hasModuleSideEffects||this.ast.included&&this.ast.hasEffects(EE())}include(){const e=xE();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(e){this.isExecuted||(this.graph.needsTreeshakingPass=!0,PT(this));for(const t of this.getExports())if(e||t!==this.info.syntheticNamedExports){const e=this.getVariableForExportName(t);e.deoptimizePath(Vx),e.included||this.includeVariable(e)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Vx),t.included||this.includeVariable(t),t instanceof _S&&(t.module.reexported=!0)}e&&this.namespace.prepareNamespace(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(xE(),!0)}isIncluded(){return this.ast.included||this.namespace.included}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);for(const e in this.exports)"default"!==e&&e!==this.info.syntheticNamedExports&&(this.exportsAll[e]=this.id);const e=[];for(const t of this.exportAllSources){const r=this.graph.modulesById.get(this.resolvedIds[t].id);if(r instanceof TS)e.push(r);else{this.exportAllModules.push(r);for(const e in r.exportsAll)e in this.exportsAll?this.options.onwarn(dD(e,this,r)):this.exportsAll[e]=r.exportsAll[e]}}this.exportAllModules.push(...e)}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({alwaysRemovedCode:e,ast:t,code:r,customTransformCache:n,originalCode:i,originalSourcemap:a,resolvedIds:o,sourcemapChain:s,transformDependencies:c,transformFiles:l,...u}){this.info.code=r,this.originalCode=i,this.originalSourcemap=a,this.sourcemapChain=s,l&&(this.transformFiles=l),this.transformDependencies=c,this.customTransformCache=n,this.updateOptions(u),AT("generate ast",3),this.alwaysRemovedCode=e||[],t||(t=this.tryParse()),this.alwaysRemovedCode.push(...((e,t)=>{const r=[],n=(e,n)=>{if(e==n)return;let i;const a=t.slice(e,n);for(;i=yT.exec(a);)r.push([e+i.index,e+yT.lastIndex])};let i=0;for(const t of e.body)n(i,t.start),i=t.end;return n(i,t.length),r})(t,this.info.code)),NT("generate ast",3),this.resolvedIds=o||Object.create(null);const d=this.id;this.magicString=new _x(r,{filename:this.excludeFromSourcemap?null:d,indentExclusionRanges:[]});for(const[e,t]of this.alwaysRemovedCode)this.magicString.remove(e,t);AT("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:r,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:fT,options:this.options,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new uT(this.graph.scope,this.astContext),this.namespace=new uS(this.astContext,this.info.syntheticNamedExports),this.ast=new sT(t,{type:"Module",context:this.astContext},this.scope),this.info.ast=t,NT("analyse ast",3)}toJSON(){return{alwaysRemovedCode:this.alwaysRemovedCode,ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,mT),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.hasModuleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,t){const r=this.scope.variables.get(e);if(r)return r;if(e in this.importDescriptions){const r=this.importDescriptions[e],n=r.module;if(n instanceof MT&&"*"===r.name)return n.namespace;return n.getVariableForExportName(r.name,t||this)||this.error(lD(r.name,this.id,n.id),r.start)}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(e){let t=e.message.replace(/ \(\d+:\d+\)$/,"");return this.id.endsWith(".json")?t+=" (Note that you need @rollup/plugin-json to import JSON files)":this.id.endsWith(".js")||(t+=" (Note that you need plugins to import files that are not JavaScript)"),this.error({code:"PARSE_ERROR",message:t,parserError:e},e.pos)}}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:r}){null!=t&&(this.info.hasModuleSideEffects=t),null!=r&&(this.info.syntheticNamedExports=r),null!=e&&(this.info.meta={...this.info.meta,...e})}warn(e,t){this.addLocationToLogProps(e,t),this.options.onwarn(e)}addDynamicImport(e){let t=e.source;t instanceof lT?1===t.quasis.length&&t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):t instanceof RD&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({node:e,resolution:null,argument:t})}addExport(e){if(e instanceof aS)this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e instanceof wD){const t=e.source.value;if(this.sources.add(t),e.exported){const r=e.exported.name;this.reexportDescriptions[r]={localName:"*",module:null,source:t,start:e.start}}else this.exportAllSources.add(t)}else if(e.source instanceof RD){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e=r.exported.name;this.reexportDescriptions[e]={localName:r.local.name,module:null,source:t,start:r.start}}}else if(e.declaration){const t=e.declaration;if(t instanceof _T)for(const e of t.declarations)for(const t of ND(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,r=t.exported.name;this.exports[r]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e="ImportDefaultSpecifier"===r.type,n="ImportNamespaceSpecifier"===r.type,i=e?"default":n?"*":r.imported.name;this.importDescriptions[r.local.name]={module:null,name:i,source:t,start:r.start}}}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let r=this.info.code,{column:n,line:i}=kE(r,t,{offsetLine:1});try{({column:n,line:i}=((e,t)=>{const r=e.filter((e=>e.mappings));for(;r.length>0;){const e=r.pop(),n=e.mappings[t.line-1];let i=!1;if(void 0!==n)for(const r of n)if(r[0]>=t.column){if(1===r.length)break;t={column:r[3],line:r[2]+1,name:5===r.length?e.names[r[4]]:void 0,source:e.sources[r[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t})(this.sourcemapChain,{column:n,line:i})),r=this.originalCode}catch(e){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:n,file:this.id,line:i},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:t})}aD(e,{column:n,line:i},r,this.id)}addModulesToImportDescriptions(e){for(const t of Object.keys(e)){const r=e[t],n=this.resolvedIds[r.source].id;r.module=this.graph.modulesById.get(n)}}addRelevantSideEffectDependencies(e,t,r){const n=new Set,i=a=>{for(const o of a)n.has(o)||(n.add(o),t.has(o)?e.add(o):(o.info.hasModuleSideEffects||r.has(o))&&(o instanceof TS||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(r)}includeAndGetAdditionalMergedNamespaces(){const e=[];for(const t of this.exportAllModules)if(t instanceof TS){const r=t.getVariableForExportName("*");r.include(),this.imports.add(r),e.push(r)}else if(t.info.syntheticNamedExports){const r=t.getSyntheticNamespace();r.include(),this.imports.add(r),e.push(r)}return e}includeDynamicImport(e){const t=this.dynamicImports.find((t=>t.node===e)).resolution;t instanceof MT&&(t.includedDynamicImporters.push(this),t.includeAllExports(!0))}includeVariable(e){if(!e.included){e.include(),this.graph.needsTreeshakingPass=!0;const t=e.module;if(t&&t instanceof MT&&(t.isExecuted||PT(t),t!==this)){const t=((e,t)=>{const r=Bx(t.sideEffectDependenciesByVariable,e,(()=>new Set));let n=e;const i=new Set([n]);for(;;){const e=n.module;if(n=n instanceof sS?n.getDirectOriginalVariable():n instanceof dS?n.syntheticNamespace:null,!n||i.has(n))break;i.add(n),r.add(e);const t=e.sideEffectDependenciesByVariable.get(n);if(t)for(const e of t)r.add(e)}return r})(e,this);for(const e of t)e.isExecuted||PT(e)}}}includeVariableInModule(e){this.includeVariable(e);const t=e.module;t&&t!==this&&this.imports.add(e)}shimMissingExport(e){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:rD(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${rD(this.id)}.`}),this.exports[e]=IT}}function RT(e,t,r){if(e.module instanceof MT&&e.module!==r){const n=e.module.cycles;if(n.size>0){const i=r.cycles;for(const a of i)if(n.has(a)){t.alternativeReexportModules.set(e,r);break}}}}class LT{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,r){return{line:e,column:t,name:r,source:this}}}class BT{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],r=[],n=[];for(const i of this.mappings){const a=[];for(const n of i){if(1==n.length)continue;const i=this.sources[n[1]];if(!i)continue;const o=i.traceSegment(n[2],n[3],5===n.length?this.names[n[4]]:"");if(o){let i=e.lastIndexOf(o.source.filename);if(-1===i)i=e.length,e.push(o.source.filename),t[i]=o.source.content;else if(null==t[i])t[i]=o.source.content;else if(null!=o.source.content&&t[i]!==o.source.content)return iD({message:`Multiple conflicting contents for sourcemap source ${o.source.filename}`});const s=[n[0],i,o.line,o.column];if(o.name){let e=r.indexOf(o.name);-1===e&&(e=r.length,r.push(o.name)),s[4]=e}a.push(s)}}n.push(a)}return{sources:e,sourcesContent:t,names:r,mappings:n}}traceSegment(e,t,r){const n=this.mappings[e];if(!n)return null;let i=0,a=n.length-1;for(;i<=a;){const e=i+a>>1,o=n[e];if(o[0]===t){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:r):null}o[0]>t?a=e-1:i=e+1}return null}}function jT(e){return(t,r)=>r.mappings?new BT(r,[t]):(e({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${r.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:r.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new BT({mappings:[],names:[]},[t]))}function UT(e,t,r,n,i){let a;if(r){const t=r.sources,n=r.sourcesContent||[],i=We(e)||".",o=r.sourceRoot||".",s=t.map(((e,t)=>new LT(Ye(i,o,e),n[t])));a=new BT(r,s)}else a=new LT(e,t);return n.reduce(i,a)}const VT=()=>Gb(),KT={amd:WT,cjs:WT,es:zT,iife:WT,system:zT,umd:WT};function zT(e,t,r,n,i,a,o,s){for(const t of r.dependencies)(i||t instanceof TS)&&(t.variableName=Rx(t.suggestedVariableName,e));for(const r of t){const t=r.module,n=r.name;r.isNamespace&&(i||t instanceof TS)?r.setRenderNames(null,(t instanceof TS?t:o.get(t)).variableName):t instanceof TS&&"default"===n?r.setRenderNames(null,Rx([...t.exportedVariables].some((([e,t])=>"*"===t&&e.included))?t.suggestedVariableName+"__default":t.suggestedVariableName,e)):r.setRenderNames(null,Rx(n,e))}for(const t of s)t.setRenderNames(null,Rx(t.name,e))}function WT(e,t,{deconflictedDefault:r,deconflictedNamespace:n,dependencies:i},a,o,s,c){for(const t of i)t.variableName=Rx(t.suggestedVariableName,e);for(const t of n)t.namespaceVariableName=Rx(`${t.suggestedVariableName}__namespace`,e);for(const t of r)n.has(t)&&RS(String(a(t.id)),s)?t.defaultVariableName=t.namespaceVariableName:t.defaultVariableName=Rx(`${t.suggestedVariableName}__default`,e);for(const e of t){const t=e.module;if(t instanceof TS){const r=e.name;if("default"===r){const r=String(a(t.id)),n=IS[r]?t.defaultVariableName:t.variableName;OS(r,s)?e.setRenderNames(n,"default"):e.setRenderNames(null,n)}else"*"===r?e.setRenderNames(null,MS[String(a(t.id))]?t.namespaceVariableName:t.variableName):e.setRenderNames(t.variableName,null)}else{const r=c.get(t);o&&e.isNamespace?e.setRenderNames(null,"default"===r.exportMode?r.namespaceVariableName:r.variableName):"default"===r.exportMode?e.setRenderNames(null,r.variableName):e.setRenderNames(r.variableName,r.getVariableExportName(e))}}}const JT=/[\\'\r\n\u2028\u2029]/,HT=/(['\r\n\u2028\u2029])/g,$T=/\\/g;function GT(e){return e.match(JT)?e.replace($T,"\\\\").replace(HT,"\\$1"):e}function qT(e){const t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function XT(e,t,r,n,i){const a=e.getDependenciesToBeIncluded();for(const e of a){if(e instanceof TS){t.push(e);continue}const a=i.get(e);a===n?r.has(e)||(r.add(e),XT(e,t,r,n,i)):t.push(a)}}function YT(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),""===e.mappings)return{mappings:[],names:[],sources:[],version:3};let t;return t="string"==typeof e.mappings?(e=>{for(var t=[],r=[],n=[0,0,0,0,0],i=0,a=0,o=0,s=0;a<e.length;a++){var c=e.charCodeAt(a);if(44===c)Zb(r,n,i),i=0;else if(59===c)Zb(r,n,i),i=0,t.push(r),r=[],n[0]=0;else{var l=Xb[c];if(void 0===l)throw new Error("Invalid character ("+String.fromCharCode(c)+")");var u=32&l;if(s+=(l&=31)<<o,u)o+=5;else{var d=1&s;s>>>=1,d&&(s=0===s?-2147483648:-s),n[i]+=s,i++,s=o=0}}}return Zb(r,n,i),t.push(r),t})(e.mappings):e.mappings,{...e,mappings:t}}function QT(e,t,r){return nD(e)?e.replace(/\[(\w+)\]/g,((e,n)=>{if(!r.hasOwnProperty(n))return iD(fD(`"[${n}]" is not a valid placeholder in "${t}" pattern.`));const i=r[n]();return nD(i)?i:iD(fD(`Invalid substitution "${i}" for placeholder "[${n}]" in "${t}" pattern, can be neither absolute nor relative path.`))})):iD(fD(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths and must not contain invalid characters.`))}function ZT(e,t){const r=new Set(Object.keys(t).map((e=>e.toLowerCase())));if(!r.has(e.toLocaleLowerCase()))return e;const n=Je(e);e=e.substr(0,e.length-n.length);let i,a=1;for(;r.has((i=e+ ++a+n).toLowerCase()););return i}const eC=[".js",".jsx",".ts",".tsx"];function tC(e,t,r,n){return("function"==typeof t?t(e.id):t[e.id])||(r?(n({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}class rC{constructor(e,t,r,n,i,a,o,s,c,l){this.orderedModules=e,this.inputOptions=t,this.outputOptions=r,this.unsetOptions=n,this.pluginDriver=i,this.modulesById=a,this.chunkByModule=o,this.facadeChunkByModule=s,this.includedNamespaces=c,this.manualChunkAlias=l,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=Object.create(null),this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModules=Object.create(null),this.renderedModuleSources=new Map,this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=e.length>0?e[0].execIndex:1/0;const u=new Set(e);for(const t of e){t.namespace.included&&c.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||r.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)u.has(e)||(this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&!r.preserveModules&&(c.add(t),this.exports.add(t.namespace)));t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=vS(this.generateVariableName())}static generateFacade(e,t,r,n,i,a,o,s,c,l){const u=new rC([],e,t,r,n,i,a,o,s,null);u.assignFacadeName(l,c),o.has(c)||o.set(c,u);for(const e of c.getDependenciesToBeIncluded())u.dependencies.add(e instanceof MT?a.get(e):e);return!u.dependencies.has(a.get(c))&&c.info.hasModuleSideEffects&&c.hasEffects()&&u.dependencies.add(a.get(c)),u.ensureReexportsAreAvailableForModule(c),u.facadeModule=c,u.strictFacade=!0,u}canModuleBeFacade(e,t){const r=e.getExportNamesByVariable();for(const t of this.exports)if(!r.has(t))return 0===r.size&&e.isUserDefinedEntryPoint&&"strict"===e.preserveSignature&&this.unsetOptions.has("preserveEntrySignatures")&&this.inputOptions.onwarn({code:"EMPTY_FACADE",id:e.id,message:`To preserve the export signature of the entry module "${rD(e.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"}),!1;for(const n of t)if(!r.has(n)&&n.module!==e)return!1;return!0}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[r,n]of t){this.exportNamesByVariable.set(r,[...n]);for(const e of n)this.exportsByName[e]=r;e.delete(r)}}this.outputOptions.minifyInternalExports?!((e,t,r)=>{let n=0;for(const i of e){let e=i.name[0];if(t[e])do{e=Ox(++n),49===e.charCodeAt(0)&&(n+=9*64**(e.length-1),e=Ox(n))}while(Mx[e]||t[e]);t[e]=i,r.set(i,[e])}})(e,this.exportsByName,this.exportNamesByVariable):!((e,t,r)=>{for(const n of e){let e=0,i=n.name;for(;t[i];)i=n.name+"$"+ ++e;t[i]=n,r.set(n,[i])}})(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=function(e,{exports:t,name:r,format:n},i,a,o){const s=e.getExportNames();if("default"===t){if(1!==s.length||"default"!==s[0])return iD(cD("default",s,a))}else if("none"===t&&s.length)return iD(cD("none",s,a));return"auto"===t&&(0===s.length?t="none":1===s.length&&"default"===s[0]?("cjs"===n&&i.has("exports")&&o((e=>{const t=rD(e);return{code:oD.PREFER_NAMED_EXPORTS,id:e,message:`Entry module "${t}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${t}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}})(a)),t="default"):("es"!==n&&-1!==s.indexOf("default")&&o(((e,t)=>({code:oD.MIXED_EXPORTS,id:e,message:`Entry module "${rD(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}))(a,r)),t="named")),t}(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn))}generateFacades(){var e;const t=[],r=new Set([...this.entryModules,...this.implicitEntryModules]),n=new Set(this.dynamicEntryModules.map((e=>e.namespace)));for(const e of r)if(e.preserveSignature)for(const t of e.getExportNamesByVariable().keys())n.add(t);for(const e of r){const r=Array.from(e.userChunkNames,(e=>({name:e})));if(0===r.length&&e.isUserDefinedEntryPoint&&r.push({}),r.push(...Array.from(e.chunkFileNames,(e=>({fileName:e})))),0===r.length&&r.push({}),!this.facadeModule){const t="strict"===e.preserveSignature||"exports-only"===e.preserveSignature&&0!==e.getExportNamesByVariable().size;(!t||this.outputOptions.preserveModules||this.canModuleBeFacade(e,n))&&(this.facadeModule=e,this.facadeChunkByModule.set(e,this),e.preserveSignature&&(this.strictFacade=t),this.assignFacadeName(r.shift(),e))}for(const n of r)t.push(rC.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,e,n))}for(const t of this.dynamicEntryModules)t.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(t,n)?(this.facadeModule=t,this.facadeChunkByModule.set(t,this),this.strictFacade=!0,this.assignFacadeName({},t)):this.facadeModule===t&&!this.strictFacade&&this.canModuleBeFacade(t,n)?this.strictFacade=!0:(null===(e=this.facadeChunkByModule.get(t))||void 0===e?void 0:e.strictFacade)||(this.includedNamespaces.add(t),this.exports.add(t.namespace)));return t}generateId(e,t,r,n){if(null!==this.fileName)return this.fileName;const[i,a]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[t.entryFileNames,"output.entryFileNames"]:[t.chunkFileNames,"output.chunkFileNames"];return ZT(QT("function"==typeof i?i(this.getChunkInfo()):i,a,{format:()=>t.format,hash:()=>n?this.computeContentHashWithDependencies(e,t,r):"[hash]",name:()=>this.getChunkName()}),r)}generateIdPreserveModules(e,t,r,n){const i=this.orderedModules[0].id,a=eD(i);let o;if(ES(i)){const r=Je(i),s=n.has("entryFileNames")?eC.includes(r)?"[name].js":"[name][extname].js":t.entryFileNames,c=`${We(a)}/${QT("function"==typeof s?s(this.getChunkInfo()):s,"output.entryFileNames",{ext:()=>r.substr(1),extname:()=>r,format:()=>t.format,name:()=>this.getChunkName()})}`,{preserveModulesRoot:l}=t;o=l&&c.startsWith(l)?c.slice(l.length).replace(/^[\\/]/,""):gx(e,c)}else o=`_virtual/${ze(a)}`;return ZT(DS(o),r)}getChunkInfo(){const e=this.facadeModule,t=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:e&&e.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:null!==e&&e.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return t()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,mT),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,mT),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,mT),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){return this.name||(this.name=eD(this.getFallbackChunkName()))}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportsByName).sort())}getRenderedHash(){if(this.renderedHash)return this.renderedHash;const e=VT(),t=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],((e,t)=>(t&&(e+=t),e)));return e.update(t),e.update(this.renderedSource.toString()),e.update(this.getExportNames().map((e=>{const t=this.exportsByName[e];return`${rD(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`})).join(",")),this.renderedHash=e.digest("hex")}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof uS?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=((e,t,r)=>{const n=[],i=new Set;for(let a=t.length-1;a>=0;a--){const o=t[a];if(!i.has(o)){const t=[];XT(o,t,i,e,r),n.unshift(t)}}const a=new Set;for(const e of n)for(const t of e)a.add(t);return a})(this,this.orderedModules,this.chunkByModule);for(const e of this.orderedModules)this.addDependenciesToChunk(e.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(e.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(e)}preRender(e,t){const r=new mx({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=((e,t)=>{if(!0!==t.indent)return t.indent;for(let t=0;t<e.length;t++){const r=qT(e[t].originalCode);if(null!==r)return r}return"\t"})(this.orderedModules,e);const n=e.compact?"":"\n",i=e.compact?"":" ",a={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:e.format,freeze:e.freeze,indent:this.indentString,namespaceToStringTag:e.namespaceToStringTag,outputPluginDriver:this.pluginDriver,varOrConst:e.preferConst?"const":"var"};if(e.hoistTransitiveImports&&!this.outputOptions.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof rC&&this.inlineChunkDependencies(e);this.prepareDynamicImportsAndImportMetas(),this.setIdentifierRenderResolutions(e);let o="";const s=this.renderedModules;for(const t of this.orderedModules){let i=0;if(t.isIncluded()||this.includedNamespaces.has(t)){const s=t.render(a).trim();i=s.length(),i&&(e.compact&&-1!==s.lastLine().indexOf("//")&&s.append("\n"),this.renderedModuleSources.set(t,s),r.addSource(s),this.usedModules.push(t));const c=t.namespace;if(this.includedNamespaces.has(t)&&!this.outputOptions.preserveModules){const e=c.renderBlock(a);c.renderFirst()?o+=n+e:r.addSource(new _x(e))}}const{renderedExports:c,removedExports:l}=t.getRenderedExports();s[t.id]={originalLength:t.originalCode.length,removedExports:l,renderedExports:c,renderedLength:i}}if(o&&r.prepend(o+n+n),this.needsExportsShim&&r.prepend(`${n}${a.varOrConst} _missingExportShim${i}=${i}void 0;${n}${n}`),e.compact?this.renderedSource=r:this.renderedSource=r.trim(),this.renderedHash=void 0,this.isEmpty&&0===this.getExportNames().length&&0===this.dependencies.size){const e=this.getChunkName();this.inputOptions.onwarn({chunkName:e,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${e}"`})}this.setExternalRenderPaths(e,t),this.renderedDependencies=this.getChunkDependencyDeclarations(e),this.renderedExports="none"===this.exportMode?[]:this.getChunkExportDeclarations(e.format)}async render(e,t,r){AT("render format",2);const n=e.format,i=kD[n];e.dynamicImportFunction&&"es"!==n&&this.inputOptions.onwarn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "es".'});for(const e of this.dependencies){const t=this.renderedDependencies.get(e);if(e instanceof TS){const r=e.renderPath;t.id=GT(e.renormalizeRenderPath?this.getRelativePath(r,!1):r)}else t.namedExportsMode="default"!==e.exportMode,t.id=GT(this.getRelativePath(e.id,!1))}this.finaliseDynamicImports(e),this.finaliseImportMetas(n);const a=0!==this.renderedExports.length||[...this.renderedDependencies.values()].some((e=>e.reexports&&0!==e.reexports.length));let o=!1;const s=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=this.accessedGlobalsByScope.get(e.scope);if(t)for(const e of t)s.add(e)}if(o&&"es"!==n&&"system"!==n)return iD({code:"INVALID_TLA_FORMAT",message:`Module format ${n} does not support top-level await. Use the "es" or "system" output formats rather.`});if(!this.id)throw new Error("Internal Error: expecting chunk id");const c=i(this.renderedSource,{accessedGlobals:s,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:a,id:this.id,indentString:this.indentString,intro:t.intro,isEntryFacade:this.outputOptions.preserveModules||null!==this.facadeModule&&this.facadeModule.info.isEntry,isModuleFacade:null!==this.facadeModule,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.inputOptions.onwarn},e);t.banner&&c.prepend(t.banner),t.footer&&c.append(t.footer);const l=c.toString();NT("render format",2);let u=null;const d=[];let p=await(({code:e,options:t,outputPluginDriver:r,renderChunk:n,sourcemapChain:i})=>r.hookReduceArg0("renderChunk",[e,n,t],((e,t,r)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=YT(t.map);i.push(e||{missing:!0,plugin:r.name})}return t.code})))({code:l,options:e,outputPluginDriver:this.pluginDriver,renderChunk:r,sourcemapChain:d});if(e.sourcemap){let t;AT("sourcemap",2),t=e.file?Ye(e.sourcemapFile||e.file):e.dir?Ye(e.dir,this.id):Ye(this.id);const r=c.generateDecodedMap({});u=((e,t,r,n,i,a)=>{const o=jT(a),s=r.filter((e=>!e.excludeFromSourcemap)).map((e=>UT(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o)));let c=new BT(t,s);c=n.reduce(o,c);let{sources:l,sourcesContent:u,names:d,mappings:p}=c.traceMappings();if(e){const t=We(e);l=l.map((e=>Xe(t,e))),e=ze(e)}return u=i?null:u,new ix({file:e,sources:l,sourcesContent:u,names:d,mappings:p})})(t,r,this.usedModules,d,e.sourcemapExcludeSources,this.inputOptions.onwarn),u.sources=u.sources.map((r=>{const{sourcemapPathTransform:n}=e;if(n){const e=n(r,`${t}.map`);return"string"!=typeof e&&iD(fD("sourcemapPathTransform function must return a string.")),e}return r})).map(DS),NT("sourcemap",2)}return e.compact||"\n"===p[p.length-1]||(p+="\n"),{code:p,map:u}}addDependenciesToChunk(e,t){for(const r of e)if(r instanceof MT){const e=this.chunkByModule.get(r);e&&e!==this&&t.add(e)}else t.add(r)}assignFacadeName({fileName:e,name:t},r){e?this.fileName=e:this.name=eD(t||r.chunkName||tD(r.id))}checkCircularDependencyImport(e,t){const r=e.module;if(r instanceof MT){const s=this.chunkByModule.get(r);let c;do{if(c=t.alternativeReexportModules.get(e),c){const l=this.chunkByModule.get(c);l&&l!==s&&this.inputOptions.onwarn((n=r.getExportNamesByVariable().get(e)[0],i=r.id,a=c.id,o=t.id,{code:oD.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:i,importer:o,message:`Export "${n}" of module ${rD(i)} was reexported through module ${rD(a)} while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in ${rD(o)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:a})),t=c}}while(c)}var n,i,a,o}computeContentHashWithDependencies(e,t,r){const n=VT();n.update([e.intro,e.outro,e.banner,e.footer].map((e=>e||"")).join(":")),n.update(t.format);const i=new Set([this]);for(const a of i)if(a instanceof TS?n.update(":"+a.renderPath):(n.update(a.getRenderedHash()),n.update(a.generateId(e,t,r,!1))),!(a instanceof TS))for(const e of[...a.dependencies,...a.dynamicDependencies])i.add(e);return n.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(e){const t=e.getExportNamesByVariable();for(const r of t.keys()){const t=r instanceof dS,n=t?r.getBaseVariable():r;if(!(n instanceof uS&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(n,e);const r=n.module;if(r instanceof MT){const e=this.chunkByModule.get(r);e&&e!==this&&(e.exports.add(n),t&&this.imports.add(n))}}}}finaliseDynamicImports(e){const t="amd"===e.format;for(const[r,n]of this.renderedModuleSources)for(const{node:i,resolution:a}of r.dynamicImports){const r=this.chunkByModule.get(a),o=this.facadeChunkByModule.get(a);if(!a||!i.included||r===this)continue;const s=a instanceof MT?`'${this.getRelativePath((o||r).id,t)}'`:a instanceof TS?`'${a.renormalizeRenderPath?this.getRelativePath(a.renderPath,t):a.renderPath}'`:a;i.renderFinalResolution(n,s,a instanceof MT&&!(null==o?void 0:o.strictFacade)&&r.exportNamesByVariable.get(a.namespace)[0],e)}}finaliseImportMetas(e){for(const[t,r]of this.renderedModuleSources)for(const n of t.importMetas)n.renderFinalMechanism(r,this.id,e,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?e.chunkName||tD(e.id):"chunk"}getChunkDependencyDeclarations(e){const t=this.getImportSpecifiers(),r=this.getReexportSpecifiers(),n=new Map;for(const i of this.dependencies){const a=t.get(i)||null,o=r.get(i)||null,s=i instanceof TS||"default"!==i.exportMode;n.set(i,{defaultVariableName:i.defaultVariableName,globalName:i instanceof TS&&("umd"===e.format||"iife"===e.format)&&tC(i,e.globals,null!==(a||o),this.inputOptions.onwarn),id:void 0,imports:a,isChunk:i instanceof rC,name:i.variableName,namedExportsMode:s,namespaceVariableName:i.namespaceVariableName,reexports:o})}return n}getChunkExportDeclarations(e){const t=[];for(const r of this.getExportNames()){if("*"===r[0])continue;const n=this.exportsByName[r];if(!(n instanceof dS)){const e=n.module;if(e&&this.chunkByModule.get(e)!==this)continue}let i=null,a=!1,o=!1,s=n.getName();if(n instanceof DE){n.init===qx&&(o=!0);for(const e of n.declarations)if(e.parent instanceof iS||e instanceof aS&&e.declaration instanceof iS){a=!0;break}}else n instanceof dS&&(i=s,"es"===e&&"default"!==r&&(s=n.renderName));t.push({exported:r,expression:i,hoisted:a,local:s,uninitialized:o})}return t}getDependenciesToBeDeconflicted(e,t,r){const n=new Set,i=new Set,a=new Set;for(const t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){const o=t.module;if(o instanceof TS)n.add(o),e&&("default"===t.name?IS[String(r(o.id))]&&i.add(o):"*"===t.name&&MS[String(r(o.id))]&&a.add(o));else{const r=this.chunkByModule.get(o);r!==this&&(n.add(r),e&&"default"===r.exportMode&&t.isNamespace&&a.add(r))}}if(t)for(const e of this.dependencies)n.add(e);return{deconflictedDefault:i,deconflictedNamespace:a,dependencies:n}}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.fileName?tD(this.fileName):tD(this.orderedModules[this.orderedModules.length-1].id)}getImportedBindingsPerDependency(){const e={};for(const[t,r]of this.renderedDependencies){const n=new Set;if(r.imports)for(const{imported:e}of r.imports)n.add(e);if(r.reexports)for(const{imported:e}of r.reexports)n.add(e);e[t.id]=[...n]}return e}getImportSpecifiers(){const{interop:e}=this.outputOptions,t=new Map;for(const r of this.imports){const n=r.module;let i,a;if(n instanceof TS){if(i=n,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===e(n.id))return iD(pD(n.id,a,!1))}else i=this.chunkByModule.get(n),a=i.getVariableExportName(r);Bx(t,i,(()=>[])).push({imported:a,local:r.getName()})}return t}getReexportSpecifiers(){const{externalLiveBindings:e,interop:t}=this.outputOptions,r=new Map;for(let n of this.getExportNames()){let i,a,o=!1;if("*"===n[0]){const r=n.substr(1);"defaultOnly"===t(r)&&this.inputOptions.onwarn(_D(r)),o=e,i=this.modulesById.get(r),a=n="*"}else{const r=this.exportsByName[n];if(r instanceof dS)continue;const s=r.module;if(s instanceof MT){if(i=this.chunkByModule.get(s),i===this)continue;a=i.getVariableExportName(r),o=r.isReassigned}else{if(i=s,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===t(s.id))return iD(pD(s.id,a,!0));o=e&&("default"!==a||OS(String(t(s.id)),!0))}}Bx(r,i,(()=>[])).push({imported:a,needsLiveBinding:o,reexported:n})}return r}getReferencedFiles(){const e=[];for(const t of this.orderedModules)for(const r of t.importMetas){const t=r.getReferencedFileName(this.pluginDriver);t&&e.push(t)}return e}getRelativePath(e,t){let r=DS(gx(We(this.id),e));return t&&r.endsWith(".js")&&(r=r.slice(0,-3)),".."===r?"../../"+ze(e):""===r?"../"+ze(e):r.startsWith("../")?r:"./"+r}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof rC&&this.inlineChunkDependencies(t))}prepareDynamicImportsAndImportMetas(){var e;const t=this.accessedGlobalsByScope;for(const r of this.orderedModules){for(const{node:n,resolution:i}of r.dynamicImports)if(n.included)if(i instanceof MT){const r=this.chunkByModule.get(i);r===this?n.setInternalResolution(i.namespace):n.setExternalResolution((null===(e=this.facadeChunkByModule.get(i))||void 0===e?void 0:e.exportMode)||r.exportMode,i,this.outputOptions,this.pluginDriver,t)}else n.setExternalResolution("external",i,this.outputOptions,this.pluginDriver,t);for(const e of r.importMetas)e.addAccessedGlobals(this.outputOptions.format,t)}}setExternalRenderPaths(e,t){for(const r of[...this.dependencies,...this.dynamicDependencies])r instanceof TS&&r.setRenderPath(e,t)}setIdentifierRenderResolutions({format:e,interop:t,namespaceToStringTag:r}){const n=new Set;for(const t of this.getExportNames()){const r=this.exportsByName[t];r instanceof lS&&(this.needsExportsShim=!0),"es"!==e&&"system"!==e&&r.isReassigned&&!r.isId?r.setRenderNames("exports",t):r instanceof dS?n.add(r):r.setRenderNames(null,null)}const i=new Set(["Object","Promise"]);switch(this.needsExportsShim&&i.add(cS),r&&i.add("Symbol"),e){case"system":i.add("module").add("exports");break;case"es":break;case"cjs":i.add("module").add("require").add("__filename").add("__dirname");default:i.add("exports");for(const e of JS)i.add(e)}!function(e,t,r,n,i,a,o,s,c,l,u,d,p){const _=e.slice().reverse();for(const e of _)e.scope.addUsedOutsideNames(n,i,u,d);!((e,t,r)=>{for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof sS&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,Rx(t.name,e));if(r.has(n)){const t=n.namespace;t.setRenderNames(null,Rx(t.name,e))}}})(n,_,p),KT[i](n,r,t,a,o,s,c,l);for(const e of _)e.scope.deconflict(i,u,d)}(this.orderedModules,this.getDependenciesToBeDeconflicted("es"!==e&&"system"!==e,"amd"===e||"umd"===e||"iife"===e,t),this.imports,i,e,t,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,n,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.imports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e)){const r=e.namespace.getMemberVariables();for(const e of Object.keys(r))t.add(r[e])}for(let r of t){r instanceof sS&&(r=r.getOriginalVariable()),r instanceof dS&&(r=r.getBaseVariable());const t=this.chunkByModule.get(r.module);t!==this&&(this.imports.add(r),!(r instanceof uS&&this.outputOptions.preserveModules)&&r.module instanceof MT&&(t.exports.add(r),this.checkCircularDependencyImport(r,e)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some((e=>this.chunkByModule.get(e)!==this)))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:t,resolution:r}of e.dynamicImports)t.included&&r instanceof MT&&this.chunkByModule.get(r)===this&&!this.includedNamespaces.has(r)&&(this.includedNamespaces.add(r),this.ensureReexportsAreAvailableForModule(r))}}const nC=(e,t)=>t?`${e}\n${t}`:e,iC=(e,t)=>t?`${e}\n\n${t}`:e;function aC(e,t,r){const n=new Set([e]);for(const e of n){r.add(e),t.push(e);for(const t of e.dependencies)t instanceof TS||r.has(t)||n.add(t)}}const oC=(e,t)=>e.execIndex>t.execIndex?1:-1;function sC(e,t,r){const n=Symbol(e.id),i=[rD(e.id)];let a=t;for(e.cycles.add(n);a!==e;)a.cycles.add(n),i.push(rD(a.id)),a=r.get(a);return i.push(i[0]),i.reverse(),i}var cC;function lC(e,t,r){e in t&&r((e=>({code:oD.FILE_NAME_CONFLICT,message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}))(e)),t[e]=uC}(e=>{e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"})(cC||(cC={}));const uC={type:"placeholder"};function dC(e,t,r){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||r;return iD(fD(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class pC{constructor(e,t,r){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.output=null,this.assertAssetsFinalized=()=>{for(const[t,r]of this.filesByReferenceId.entries())if("asset"===r.type&&"string"!=typeof r.fileName)return iD((e=r.name||t,{code:oD.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e}" - no asset source set.`}));var e},this.emitFile=e=>(e=>Boolean(e&&("asset"===e.type||"chunk"===e.type)))(e)?(e=>{const t=e.fileName||e.name;return!t||"string"==typeof t&&nD(t)})(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):iD(fD(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters, received "${e.fileName||e.name}".`)):iD(fD(`Emitted files must be of type "asset" or "chunk", received "${e&&e.type}".`)),this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(r=t,n=this.facadeChunkByModule,r.fileName||r.module&&(null===(i=null==n?void 0:n.get(r.module))||void 0===i?void 0:i.id)||iD((a=r.fileName||r.name,{code:oD.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${a}". Ensure that generate is called first.`}))):function(e,t){return"string"!=typeof e.fileName?iD((r=e.name||t,{code:oD.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${r}". Ensure that the source is set and that generate is called first.`})):e.fileName;var r}(t,e):iD((o=e,{code:oD.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${o}".`}));var r,n,i,a,o},this.setAssetSource=(e,t)=>{const r=this.filesByReferenceId.get(e);if(!r)return iD((n=e,{code:oD.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${n}".`}));var n,i;if("asset"!==r.type)return iD(fD(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==r.source)return iD((i=r.name||e,{code:oD.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${i}", source already set.`}));const a=dC(t,r,e);this.output?this.finalizeAsset(r,a,e,this.output):r.source=a},this.setOutputBundle=(e,t,r)=>{this.output={assetFileNames:t,bundle:e},this.facadeChunkByModule=r;for(const e of this.filesByReferenceId.values())e.fileName&&lC(e.fileName,this.output.bundle,this.options.onwarn);for(const[e,t]of this.filesByReferenceId.entries())"asset"===t.type&&void 0!==t.source&&this.finalizeAsset(t,t.source,e,this.output)},this.filesByReferenceId=r?new Map(r.filesByReferenceId):new Map}assignReferenceId(e,t){let r;do{const e=VT();r?e.update(r):e.update(t),r=e.digest("hex").substr(0,8)}while(this.filesByReferenceId.has(r));return this.filesByReferenceId.set(r,e),r}emitAsset(e){const t=void 0!==e.source?dC(e.source,e,null):void 0,r={fileName:e.fileName,name:e.name,source:t,type:"asset"},n=this.assignReferenceId(r,e.fileName||e.name||e.type);return this.output&&(e.fileName&&lC(e.fileName,this.output.bundle,this.options.onwarn),void 0!==t&&this.finalizeAsset(r,t,n,this.output)),n}emitChunk(e){if(this.graph.phase>cC.LOAD_AND_PARSE)return iD({code:oD.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return iD(fD(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then((e=>t.module=e)).catch((()=>{})),this.assignReferenceId(t,e.id)}finalizeAsset(e,t,r,n){const i=e.fileName||((e,t)=>{for(const r of Object.keys(e)){const n=e[r];if("asset"===n.type&&_C(t,n.source))return r}return null})(n.bundle,t)||((e,t,r)=>{const n=e||"asset";return ZT(QT("function"==typeof r.assetFileNames?r.assetFileNames({name:e,source:t,type:"asset"}):r.assetFileNames,"output.assetFileNames",{hash(){const e=VT();return e.update(n),e.update(":"),e.update(t),e.digest("hex").substr(0,8)},ext(){return Je(n).substr(1)},extname(){return Je(n)},name(){return n.substr(0,n.length-Je(n).length)}}),r.bundle)})(e.name,t,n),a={...e,source:t,fileName:i};this.filesByReferenceId.set(r,a);const o=this.options;n.bundle[i]={fileName:i,name:e.name,get isAsset(){return gD('Accessing "isAsset" on files in the bundle is deprecated, please use "type === \'asset\'" instead',!0,o),!0},source:t,type:"asset"}}}function _C(e,t){if("string"==typeof e)return e===t;if("string"==typeof t)return!1;if("equals"in e)return e.equals(t);if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}class fC{constructor(e,t,r,n,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=r,this.pluginDriver=n,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){AT("GENERATE",1);const t=Object.create(null);this.pluginDriver.setOutputBundle(t,this.outputOptions.assetFileNames,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),AT("generate chunks",2);const e=await this.generateChunks();e.length>1&&(r=this.outputOptions,n=this.inputOptions.onwarn,!("umd"===r.format||"iife"===r.format?iD({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}):"string"==typeof r.file?iD({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.'}):r.sourcemapFile?iD({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}):(!r.amd.autoId&&r.amd.id&&n({code:"INVALID_OPTION",message:'"output.amd.id" is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath".'}),void 0)));const i=(e=>{if(0===e.length)return"/";if(1===e.length)return We(e[0]);const t=e.slice(1).reduce(((e,t)=>{const r=t.split(/\/+|\\+/);let n;for(n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"})((e=>{const t=[];for(const r of e)for(const e of r.entryModules)ES(e.id)&&t.push(e.id);return t})(e));NT("generate chunks",2),AT("render modules",2);const a=await(async(e,t)=>{try{let[r,n,i,a]=await Promise.all([t.hookReduceValue("banner",e.banner(),[],nC),t.hookReduceValue("footer",e.footer(),[],nC),t.hookReduceValue("intro",e.intro(),[],iC),t.hookReduceValue("outro",e.outro(),[],iC)]);return i&&(i+="\n\n"),a&&(a=`\n\n${a}`),r.length&&(r+="\n"),n.length&&(n="\n"+n),{intro:i,outro:a,banner:r,footer:n}}catch(e){return iD({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})}})(this.outputOptions,this.pluginDriver);this.prerenderChunks(e,i),NT("render modules",2),await this.addFinalizedChunksToBundle(e,i,a,t)}catch(e){throw await this.pluginDriver.hookParallel("renderError",[e]),e}var r,n;return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,t,e]),this.finaliseAssets(t),NT("GENERATE",1),t}async addFinalizedChunksToBundle(e,t,r,n){this.assignChunkIds(e,t,r,n);for(const t of e)n[t.id]=t.getChunkInfoWithFileNames();await Promise.all(e.map((async e=>{const t=n[e.id];Object.assign(t,await e.render(this.outputOptions,r,t))})))}async addManualChunks(e){const t=new Map,r=await Promise.all(Object.keys(e).map((async t=>({alias:t,entries:await this.graph.moduleLoader.addAdditionalModules(e[t])}))));for(const{alias:e,entries:n}of r)for(const r of n)gC(e,r,t);return t}assignChunkIds(e,t,r,n){const i=[],a=[];for(const t of e)(t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint?i:a).push(t);const o=i.concat(a);for(const e of o)this.outputOptions.file?e.id=ze(this.outputOptions.file):this.outputOptions.preserveModules?e.id=e.generateIdPreserveModules(t,this.outputOptions,n,this.unsetOptions):e.id=e.generateId(r,this.outputOptions,n,!0),n[e.id]=uC}assignManualChunks(e){const t=new Map,r={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const n of this.graph.modulesById.values())if(n instanceof MT){const i=e(n.id,r);"string"==typeof i&&gC(i,n,t)}return t}finaliseAssets(e){for(const t of Object.keys(e)){const r=e[t];if(r.type||(gD('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),r.type="asset"),this.outputOptions.validate&&"string"==typeof r.code)try{this.graph.contextParse(r.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(e){this.inputOptions.onwarn(sD(r,e))}}this.pluginDriver.finaliseAssets()}async generateChunks(){const{manualChunks:e}=this.outputOptions,t="object"==typeof e?await this.addManualChunks(e):this.assignManualChunks(e),r=[],n=new Map;for(const{alias:e,modules:i}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:mC(this.graph.modulesById)}]:this.outputOptions.preserveModules?mC(this.graph.modulesById).map((e=>({alias:null,modules:[e]}))):function(e,t){const r=[],n=new Set(t.keys()),i=Object.create(null);for(const[e,r]of t)aC(e,i[r]=i[r]||[],n);for(const[e,t]of Object.entries(i))r.push({alias:e,modules:t});const a=new Map,{dependentEntryPointsByModule:o,dynamicEntryModules:s}=(e=>{const t=new Set,r=new Map,n=new Set(e);for(const e of n){const i=new Set([e]);for(const a of i){Bx(r,a,(()=>new Set)).add(e);for(const e of a.getDependenciesToBeIncluded())e instanceof TS||i.add(e);for(const{resolution:e}of a.dynamicImports)e instanceof MT&&e.includedDynamicImporters.length>0&&(t.add(e),n.add(e));for(const e of a.implicitlyLoadedBefore)t.add(e),n.add(e)}}return{dependentEntryPointsByModule:r,dynamicEntryModules:t}})(e),c=((e,t)=>{const r=new Map;for(const n of t){const t=Bx(r,n,(()=>new Set));for(const r of[...n.includedDynamicImporters,...n.implicitlyLoadedAfter])for(const n of e.get(r))t.add(n)}return r})(o,s),l=new Set(e);function u(e,t){const r=new Set([e]);for(const i of r){const s=Bx(a,i,(()=>new Set));if(!t||!d(t,o.get(i))){s.add(e);for(const e of i.getDependenciesToBeIncluded())e instanceof TS||n.has(e)||r.add(e)}}}function d(e,t){const r=new Set(e);for(const e of r)if(!t.has(e)){if(l.has(e))return!1;const t=c.get(e);for(const e of t)r.add(e)}return!0}for(const t of e)n.has(t)||u(t,null);for(const e of s)n.has(e)||u(e,c.get(e));return r.push(...((e,t)=>{const r=Object.create(null);for(const[n,i]of t){let t="";for(const r of e)t+=i.has(r)?"X":"_";const a=r[t];a?a.push(n):r[t]=[n]}return Object.keys(r).map((e=>({alias:null,modules:r[e]})))})([...e,...s],a)),r}(this.graph.entryModules,t)){void i.sort(oC);const t=new rC(i,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,n,this.facadeChunkByModule,this.includedNamespaces,e);r.push(t);for(const e of i)n.set(e,t)}for(const e of r)e.link();const i=[];for(const e of r)i.push(...e.generateFacades());return[...r,...i]}prerenderChunks(e,t){for(const t of e)t.generateExports();for(const r of e)r.preRender(this.outputOptions,t)}}function mC(e){return[...e.values()].filter((e=>e instanceof MT&&(e.isIncluded()||e.info.isEntry||e.includedDynamicImporters.length>0)))}function gC(e,t,r){const n=r.get(t);if("string"==typeof n&&n!==e)return iD((i=t.id,a=e,o=n,{code:oD.INVALID_CHUNK,message:`Cannot assign ${rD(i)} to the "${a}" chunk as it is already in the "${o}" chunk.`}));var i,a,o;r.set(t,e)}var hC={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},yC="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",vC={5:yC,"5module":yC+" export import",6:yC+" const class extends export import super"},bC=/^in(stanceof)?$/,xC="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",EC="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",SC=new RegExp("["+xC+"]"),DC=new RegExp("["+xC+EC+"]");xC=EC=null;var TC=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,230,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,35,56,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,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],CC=[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,176,2,54,14,32,9,16,3,46,10,54,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,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,419,13,1495,6,110,6,6,9,4759,9,787719,239];function kC(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}}function AC(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&SC.test(String.fromCharCode(e)):!1!==t&&kC(e,TC)))}function NC(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&DC.test(String.fromCharCode(e)):!1!==t&&(kC(e,TC)||kC(e,CC)))))}var wC=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function FC(e,t){return new wC(e,{beforeExpr:!0,binop:t})}var PC={beforeExpr:!0},IC={startsExpr:!0},OC={};function MC(e,t){return void 0===t&&(t={}),t.keyword=e,OC[e]=new wC(e,t)}var RC={num:new wC("num",IC),regexp:new wC("regexp",IC),string:new wC("string",IC),name:new wC("name",IC),eof:new wC("eof"),bracketL:new wC("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new wC("]"),braceL:new wC("{",{beforeExpr:!0,startsExpr:!0}),braceR:new wC("}"),parenL:new wC("(",{beforeExpr:!0,startsExpr:!0}),parenR:new wC(")"),comma:new wC(",",PC),semi:new wC(";",PC),colon:new wC(":",PC),dot:new wC("."),question:new wC("?",PC),questionDot:new wC("?."),arrow:new wC("=>",PC),template:new wC("template"),invalidTemplate:new wC("invalidTemplate"),ellipsis:new wC("...",PC),backQuote:new wC("`",IC),dollarBraceL:new wC("${",{beforeExpr:!0,startsExpr:!0}),eq:new wC("=",{beforeExpr:!0,isAssign:!0}),assign:new wC("_=",{beforeExpr:!0,isAssign:!0}),incDec:new wC("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new wC("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:FC("||",1),logicalAND:FC("&&",2),bitwiseOR:FC("|",3),bitwiseXOR:FC("^",4),bitwiseAND:FC("&",5),equality:FC("==/!=/===/!==",6),relational:FC("</>/<=/>=",7),bitShift:FC("<</>>/>>>",8),plusMin:new wC("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:FC("%",10),star:FC("*",10),slash:FC("/",10),starstar:new wC("**",{beforeExpr:!0}),coalesce:FC("??",1),_break:MC("break"),_case:MC("case",PC),_catch:MC("catch"),_continue:MC("continue"),_debugger:MC("debugger"),_default:MC("default",PC),_do:MC("do",{isLoop:!0,beforeExpr:!0}),_else:MC("else",PC),_finally:MC("finally"),_for:MC("for",{isLoop:!0}),_function:MC("function",IC),_if:MC("if"),_return:MC("return",PC),_switch:MC("switch"),_throw:MC("throw",PC),_try:MC("try"),_var:MC("var"),_const:MC("const"),_while:MC("while",{isLoop:!0}),_with:MC("with"),_new:MC("new",{beforeExpr:!0,startsExpr:!0}),_this:MC("this",IC),_super:MC("super",IC),_class:MC("class",IC),_extends:MC("extends",PC),_export:MC("export"),_import:MC("import",IC),_null:MC("null",IC),_true:MC("true",IC),_false:MC("false",IC),_in:MC("in",{beforeExpr:!0,binop:7}),_instanceof:MC("instanceof",{beforeExpr:!0,binop:7}),_typeof:MC("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:MC("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:MC("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},LC=/\r\n?|\n|\u2028|\u2029/,BC=new RegExp(LC.source,"g");function jC(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var UC=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,VC=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,KC=Object.prototype,zC=KC.hasOwnProperty,WC=KC.toString;function JC(e,t){return zC.call(e,t)}var HC=Array.isArray||(e=>"[object Array]"===WC.call(e));function $C(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var GC=function(e,t){this.line=e,this.column=t};GC.prototype.offset=function(e){return new GC(this.line,this.column+e)};var qC=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function XC(e,t){for(var r=1,n=0;;){BC.lastIndex=n;var i=BC.exec(e);if(!(i&&i.index<t))return new GC(r,t-n);++r,n=i.index+i[0].length}}var YC={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},QC=!1;function ZC(e,t){return 2|(e?4:0)|(t?8:0)}var ek=function(e,t,r){this.options=e=function(e){var t={};for(var r in YC)t[r]=e&&JC(e,r)?e[r]:YC[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!QC&&"object"==typeof console&&console.warn&&(QC=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),HC(t.onToken)){var n=t.onToken;t.onToken=e=>n.push(e)}return HC(t.onComment)&&(t.onComment=function(e,t){return function(r,n,i,a,o,s){var c={type:r?"Block":"Line",value:n,start:i,end:a};e.locations&&(c.loc=new qC(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=$C(vC[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=hC[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=$C(n);var i=(n?n+" ":"")+hC.strict;this.reservedWordsStrict=$C(i),this.reservedWordsStrictBind=$C(i+" "+hC.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(LC).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=RC.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},tk={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};ek.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},tk.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},tk.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},tk.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},tk.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},tk.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},tk.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},tk.inNonArrowFunction.get=function(){return(2&this.currentThisScope().flags)>0},ek.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},ek.parse=function(e,t){return new this(t,e).parse()},ek.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},ek.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ek.prototype,tk);var rk=ek.prototype,nk=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function ik(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}rk.strictDirective=function(e){for(;;){VC.lastIndex=e,e+=VC.exec(this.input)[0].length;var t=nk.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){VC.lastIndex=e+t[0].length;var r=VC.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||LC.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,VC.lastIndex=e,e+=VC.exec(this.input)[0].length,";"===this.input[e]&&e++}},rk.eat=function(e){return this.type===e&&(this.next(),!0)},rk.isContextual=function(e){return this.type===RC.name&&this.value===e&&!this.containsEsc},rk.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},rk.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},rk.canInsertSemicolon=function(){return this.type===RC.eof||this.type===RC.braceR||LC.test(this.input.slice(this.lastTokEnd,this.start))},rk.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},rk.semicolon=function(){this.eat(RC.semi)||this.insertSemicolon()||this.unexpected()},rk.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},rk.expect=function(e){this.eat(e)||this.unexpected()},rk.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},rk.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},rk.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},rk.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},rk.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var ak=ek.prototype;ak.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==RC.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var a=i[n];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ok={kind:"loop"},sk={kind:"switch"};ak.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;VC.lastIndex=this.pos;var t=VC.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n)return!0;if(e)return!1;if(123===n)return!0;if(AC(n,!0)){for(var i=r+1;NC(this.input.charCodeAt(i),!0);)++i;var a=this.input.slice(r,i);if(!bC.test(a))return!0}return!1},ak.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;VC.lastIndex=this.pos;var e=VC.exec(this.input),t=this.pos+e[0].length;return!(LC.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&NC(this.input.charAt(t+8)))},ak.parseStatement=function(e,t,r){var n,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=RC._var,n="let"),i){case RC._break:case RC._continue:return this.parseBreakContinueStatement(a,i.keyword);case RC._debugger:return this.parseDebuggerStatement(a);case RC._do:return this.parseDoStatement(a);case RC._for:return this.parseForStatement(a);case RC._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case RC._class:return e&&this.unexpected(),this.parseClass(a,!0);case RC._if:return this.parseIfStatement(a);case RC._return:return this.parseReturnStatement(a);case RC._switch:return this.parseSwitchStatement(a);case RC._throw:return this.parseThrowStatement(a);case RC._try:return this.parseTryStatement(a);case RC._const:case RC._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(a,n);case RC._while:return this.parseWhileStatement(a);case RC._with:return this.parseWithStatement(a);case RC.braceL:return this.parseBlock(!0,a);case RC.semi:return this.parseEmptyStatement(a);case RC._export:case RC._import:if(this.options.ecmaVersion>10&&i===RC._import){VC.lastIndex=this.pos;var o=VC.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===RC._import?this.parseImport(a):this.parseExport(a,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.value,u=this.parseExpression();return i===RC.name&&"Identifier"===u.type&&this.eat(RC.colon)?this.parseLabeledStatement(a,l,u,e):this.parseExpressionStatement(a,u)}},ak.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(RC.semi)||this.insertSemicolon()?e.label=null:this.type!==RC.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},ak.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},ak.parseDoStatement=function(e){return this.next(),this.labels.push(ok),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(RC._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(RC.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},ak.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ok),this.enterScope(0),this.expect(RC.parenL),this.type===RC.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===RC._var||this.type===RC._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===RC._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===RC._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a=new ik,o=this.parseExpression(!0,a);return this.type===RC._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===RC._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},ak.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,lk|(r?0:uk),!1,t)},ak.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(RC._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},ak.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(RC.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},ak.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(RC.braceL),this.labels.push(sk),this.enterScope(0);for(var r=!1;this.type!==RC.braceR;)if(this.type===RC._case||this.type===RC._default){var n=this.type===RC._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(RC.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},ak.parseThrowStatement=function(e){return this.next(),LC.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var ck=[];ak.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===RC._catch){var t=this.startNode();if(this.next(),this.eat(RC.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(RC.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(RC._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},ak.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},ak.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ok),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},ak.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},ak.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},ak.parseLabeledStatement=function(e,t,r,n){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===RC._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},ak.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},ak.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(RC.braceL),e&&this.enterScope(0);this.type!==RC.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},ak.parseFor=function(e,t){return e.init=t,this.expect(RC.semi),e.test=this.type===RC.semi?null:this.parseExpression(),this.expect(RC.semi),e.update=this.type===RC.parenR?null:this.parseExpression(),this.expect(RC.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},ak.parseForIn=function(e,t){var r=this.type===RC._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(RC.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},ak.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(RC.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===RC._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===RC._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(RC.comma))break}return e},ak.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var lk=1,uk=2;ak.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===RC.star&&t&uk&&this.unexpected(),e.generator=this.eat(RC.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&lk&&(e.id=4&t&&this.type!==RC.name?null:this.parseIdent(),!e.id||t&uk||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ZC(e.async,e.generator)),t&lk||(e.id=this.type===RC.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&lk?"FunctionDeclaration":"FunctionExpression")},ak.parseFunctionParams=function(e){this.expect(RC.parenL),e.params=this.parseBindingList(RC.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ak.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),i=!1;for(n.body=[],this.expect(RC.braceL);this.type!==RC.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(i&&this.raise(a.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},ak.parseClassElement=function(e){var t=this;if(this.eat(RC.semi))return null;var r=this.startNode(),n=(e,n)=>{void 0===n&&(n=!1);var i=t.start,a=t.startLoc;return!(!t.eatContextual(e)||(t.type===RC.parenL||n&&t.canInsertSemicolon())&&(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(i,a),r.key.name=e,t.finishNode(r.key,"Identifier"),1))};r.kind="method",r.static=n("static");var i=this.eat(RC.star),a=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(RC.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var o=r.key,s=!1;return r.computed||r.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?r.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),r.kind="constructor",s=e),this.parseClassMethod(r,i,a,s),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},ak.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},ak.parseClassId=function(e,t){this.type===RC.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},ak.parseClassSuper=function(e){e.superClass=this.eat(RC._extends)?this.parseExprSubscripts():null},ak.parseExport=function(e,t){if(this.next(),this.eat(RC.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==RC.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(RC._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===RC._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|lk,!1,r)}else if(this.type===RC._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==RC.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},ak.checkExport=function(e,t,r){e&&(JC(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},ak.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var a=i[n];this.checkPatternExport(e,a)}else if("ArrayPattern"===r)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},ak.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},ak.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},ak.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(RC.braceL);!this.eat(RC.braceR);){if(r)r=!1;else if(this.expect(RC.comma),this.afterTrailingComma(RC.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},ak.parseImport=function(e){return this.next(),this.type===RC.string?(e.specifiers=ck,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===RC.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},ak.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===RC.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(RC.comma))return e}if(this.type===RC.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(RC.braceL);!this.eat(RC.braceR);){if(t)t=!1;else if(this.expect(RC.comma),this.afterTrailingComma(RC.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},ak.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},ak.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var dk=ek.prototype;dk.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},dk.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var a=e[r-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},dk.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},dk.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==RC.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},dk.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case RC.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(RC.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case RC.braceL:return this.parseObj(!0)}return this.parseIdent()},dk.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(RC.comma),t&&this.type===RC.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===RC.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===RC.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),n.push(o)}return n},dk.parseBindingListItem=e=>e,dk.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(RC.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},dk.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(JC(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},dk.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},dk.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var pk=ek.prototype;pk.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)return"__proto__"===n&&"init"===a&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0),void 0;var o=t[n="$"+n];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[n]={init:!1,get:!1,set:!1},o[a]=!0}},pk.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===RC.comma){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(RC.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},pk.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new ik,n=!0);var o=this.start,s=this.startLoc;this.type!==RC.parenL&&this.type!==RC.name||(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,this.type===RC.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===RC.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},pk.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(RC.question)){var a=this.startNodeAt(r,n);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(RC.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},pk.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},pk.parseExprOp=function(e,t,r,n,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==RC._in)&&a>n){var o=this.type===RC.logicalOR||this.type===RC.logicalAND,s=this.type===RC.coalesce;s&&(a=RC.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),l,u,a,i),p=this.buildBinary(t,r,e,d,c,o||s);return(o&&this.type===RC.coalesce||s&&(this.type===RC.logicalOR||this.type===RC.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,r,n,i)}return e},pk.buildBinary=function(e,t,r,n,i,a){var o=this.startNodeAt(e,t);return o.left=r,o.operator=i,o.right=n,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},pk.parseMaybeUnary=function(e,t){var r,n=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===RC.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,r=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,i);s.operator=this.value,s.prefix=!1,s.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(RC.starstar)?this.buildBinary(n,i,r,this.parseMaybeUnary(null,!1),"**",!1):r},pk.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var i=this.parseSubscripts(n,t,r);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},pk.parseSubscripts=function(e,t,r,n){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,i,a);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var s=this.startNodeAt(t,r);s.expression=o,o=this.finishNode(s,"ChainExpression")}return o}e=o}},pk.parseSubscript=function(e,t,r,n,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(RC.questionDot);n&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(RC.bracketL);if(c||s&&this.type!==RC.parenL&&this.type!==RC.backQuote||this.eat(RC.dot)){var l=this.startNodeAt(t,r);l.object=e,l.property=c?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,c&&this.expect(RC.bracketR),o&&(l.optional=s),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(RC.parenL)){var u=new ik,d=this.yieldPos,p=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(RC.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(RC.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=_,this.parseArrowExpression(this.startNodeAt(t,r),f,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;var m=this.startNodeAt(t,r);m.callee=e,m.arguments=f,o&&(m.optional=s),e=this.finishNode(m,"CallExpression")}else if(this.type===RC.backQuote){(s||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},pk.parseExprAtom=function(e){this.type===RC.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case RC._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==RC.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==RC.dot&&this.type!==RC.bracketL&&this.type!==RC.parenL&&this.unexpected(),this.finishNode(t,"Super");case RC._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case RC.name:var n=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(RC._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(RC.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===RC.name&&!a)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(RC.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[o],!0)}return o;case RC.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case RC.num:case RC.string:return this.parseLiteral(this.value);case RC._null:case RC._true:case RC._false:return(t=this.startNode()).value=this.type===RC._null?null:this.type===RC._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case RC.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case RC.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(RC.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case RC.braceL:return this.parseObj(!1,e);case RC._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case RC._class:return this.parseClass(this.startNode(),!1);case RC._new:return this.parseNew();case RC.backQuote:return this.parseTemplate();case RC._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pk.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case RC.parenL:return this.parseDynamicImport(e);case RC.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},pk.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(RC.parenR)){var t=this.start;this.eat(RC.comma)&&this.eat(RC.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},pk.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},pk.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},pk.parseParenExpression=function(){this.expect(RC.parenL);var e=this.parseExpression();return this.expect(RC.parenR),e},pk.parseParenAndDistinguishExpression=function(e){var t,r=this.start,n=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ik,p=this.yieldPos,_=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==RC.parenR;){if(l?l=!1:this.expect(RC.comma),i&&this.afterTrailingComma(RC.parenR,!0)){u=!0;break}if(this.type===RC.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===RC.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(RC.parenR),e&&!this.canInsertSemicolon()&&this.eat(RC.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=_,this.parseParenArrowList(r,n,c);c.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=_||this.awaitPos,c.length>1?((t=this.startNodeAt(o,s)).expressions=c,this.finishNodeAt(t,"SequenceExpression",f,m)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},pk.parseParenItem=e=>e,pk.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var _k=[];pk.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(RC.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,a=this.type===RC._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),a&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(RC.parenL)?e.arguments=this.parseExprList(RC.parenR,this.options.ecmaVersion>=8,!1):e.arguments=_k,this.finishNode(e,"NewExpression")},pk.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===RC.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===RC.backQuote,this.finishNode(r,"TemplateElement")},pk.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===RC.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(RC.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(RC.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},pk.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===RC.name||this.type===RC.num||this.type===RC.string||this.type===RC.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===RC.star)&&!LC.test(this.input.slice(this.lastTokEnd,this.start))},pk.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(RC.braceR);){if(n)n=!1;else if(this.expect(RC.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(RC.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},pk.parseProperty=function(e,t){var r,n,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(RC.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===RC.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===RC.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===RC.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(r=this.eat(RC.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(RC.star),this.parsePropertyName(o,t)):n=!1,this.parsePropertyValue(o,e,r,n,i,a,t,s),this.finishNode(o,"Property")},pk.parsePropertyValue=function(e,t,r,n,i,a,o,s){if((r||n)&&this.type===RC.colon&&this.unexpected(),this.eat(RC.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===RC.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===RC.comma||this.type===RC.braceR||this.type===RC.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===RC.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},pk.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(RC.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(RC.bracketR),e.key;e.computed=!1}return e.key=this.type===RC.num||this.type===RC.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pk.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},pk.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|ZC(t,n.generator)|(r?128:0)),this.expect(RC.parenL),n.params=this.parseBindingList(RC.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")},pk.parseArrowExpression=function(e,t,r){var n=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|ZC(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},pk.parseFunctionBody=function(e,t,r){var n=t&&this.type!==RC.braceL,i=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},pk.isSimpleParamList=e=>{for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},pk.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,1,t?null:r)}},pk.parseExprList=function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(RC.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===RC.comma?o=null:this.type===RC.ellipsis?(o=this.parseSpread(n),n&&this.type===RC.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):o=this.parseMaybeAssign(!1,n),i.push(o)}return i},pk.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},pk.parseIdent=function(e,t){var r=this.startNode();return this.type===RC.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},pk.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===RC.semi||this.canInsertSemicolon()||this.type!==RC.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(RC.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},pk.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var fk=ek.prototype;fk.raise=function(e,t){var r=XC(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},fk.raiseRecoverable=fk.raise,fk.curPosition=function(){if(this.options.locations)return new GC(this.curLine,this.pos-this.lineStart)};var mk=ek.prototype,gk=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};mk.enterScope=function(e){this.scopeStack.push(new gk(e))},mk.exitScope=function(){this.scopeStack.pop()},mk.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},mk.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();n=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){n=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],3&s.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},mk.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},mk.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},mk.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},mk.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var hk=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new qC(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},yk=ek.prototype;function vk(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}yk.startNode=function(){return new hk(this,this.start,this.startLoc)},yk.startNodeAt=function(e,t){return new hk(this,e,t)},yk.finishNode=function(e,t){return vk.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},yk.finishNodeAt=function(e,t,r,n){return vk.call(this,e,t,r,n)},yk.copyNode=function(e){var t=new hk(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var bk=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},xk={b_stat:new bk("{",!1),b_expr:new bk("{",!0),b_tmpl:new bk("${",!1),p_stat:new bk("(",!1),p_expr:new bk("(",!0),q_tmpl:new bk("`",!0,!0,(e=>e.tryReadTemplateToken())),f_stat:new bk("function",!1),f_expr:new bk("function",!0),f_expr_gen:new bk("function",!0,!1,null,!0),f_gen:new bk("function",!1,!1,null,!0)},Ek=ek.prototype;Ek.initialContext=()=>[xk.b_stat],Ek.braceIsBlock=function(e){var t=this.curContext();return t===xk.f_expr||t===xk.f_stat||(e!==RC.colon||t!==xk.b_stat&&t!==xk.b_expr?e===RC._return||e===RC.name&&this.exprAllowed?LC.test(this.input.slice(this.lastTokEnd,this.start)):e===RC._else||e===RC.semi||e===RC.eof||e===RC.parenR||e===RC.arrow||(e===RC.braceL?t===xk.b_stat:e!==RC._var&&e!==RC._const&&e!==RC.name&&!this.exprAllowed):!t.isExpr)},Ek.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Ek.updateContext=function(e){var t,r=this.type;r.keyword&&e===RC.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},RC.parenR.updateContext=RC.braceR.updateContext=function(){if(1===this.context.length)return this.exprAllowed=!0,void 0;var e=this.context.pop();e===xk.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},RC.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?xk.b_stat:xk.b_expr),this.exprAllowed=!0},RC.dollarBraceL.updateContext=function(){this.context.push(xk.b_tmpl),this.exprAllowed=!0},RC.parenL.updateContext=function(e){var t=e===RC._if||e===RC._for||e===RC._with||e===RC._while;this.context.push(t?xk.p_stat:xk.p_expr),this.exprAllowed=!0},RC.incDec.updateContext=()=>{},RC._function.updateContext=RC._class.updateContext=function(e){!e.beforeExpr||e===RC._else||e===RC.semi&&this.curContext()!==xk.p_stat||e===RC._return&&LC.test(this.input.slice(this.lastTokEnd,this.start))||(e===RC.colon||e===RC.braceL)&&this.curContext()===xk.b_stat?this.context.push(xk.f_stat):this.context.push(xk.f_expr),this.exprAllowed=!1},RC.backQuote.updateContext=function(){this.curContext()===xk.q_tmpl?this.context.pop():this.context.push(xk.q_tmpl),this.exprAllowed=!1},RC.star.updateContext=function(e){if(e===RC._function){var t=this.context.length-1;this.context[t]===xk.f_expr?this.context[t]=xk.f_expr_gen:this.context[t]=xk.f_gen}this.exprAllowed=!0},RC.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==RC.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Sk="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Dk=Sk+" Extended_Pictographic",Tk={9:Sk,10:Dk,11:Dk,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},Ck="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",kk="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ak=kk+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Nk={9:kk,10:Ak,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},wk={};function Fk(e){var t=wk[e]={binary:$C(Tk[e]+" "+Ck),nonBinary:{General_Category:$C(Ck),Script:$C(Nk[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Fk(9),Fk(10),Fk(11),Fk(12);var Pk=ek.prototype,Ik=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=wk[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Ok(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Mk(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Rk(e){return e>=65&&e<=90||e>=97&&e<=122}function Lk(e){return Rk(e)||95===e}function Bk(e){return Lk(e)||jk(e)}function jk(e){return e>=48&&e<=57}function Uk(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Vk(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Kk(e){return e>=48&&e<=55}Ik.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Ik.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ik.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ik.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,a=r.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ik.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ik.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ik.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ik.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Pk.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Pk.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Pk.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},Pk.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Pk.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Pk.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Pk.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Pk.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Pk.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Pk.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Pk.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Pk.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Pk.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Pk.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Pk.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Pk.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Pk.regexp_eatSyntaxCharacter=e=>{var t=e.current();return!!Mk(t)&&(e.lastIntValue=t,e.advance(),!0)},Pk.regexp_eatPatternCharacters=e=>{for(var t=e.pos,r=0;-1!==(r=e.current())&&!Mk(r);)e.advance();return e.pos!==t},Pk.regexp_eatExtendedPatternCharacter=e=>{var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Pk.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue),void 0;e.raise("Invalid group")}},Pk.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Pk.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ok(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ok(e.lastIntValue);return!0}return!1},Pk.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>AC(e,!0)||36===e||95===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Pk.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>NC(e,!0)||36===e||95===e||8204===e||8205===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Pk.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Pk.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Pk.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Pk.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Pk.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Pk.regexp_eatZero=e=>48===e.current()&&!jk(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0),Pk.regexp_eatControlEscape=e=>{var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Pk.regexp_eatControlLetter=e=>{var t=e.current();return!!Rk(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Pk.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Pk.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Pk.regexp_eatDecimalEscape=e=>{e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Pk.regexp_eatCharacterClassEscape=function(e){var t=e.current();if((e=>100===e||68===e||115===e||83===e||119===e||87===e)(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Pk.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Pk.regexp_validateUnicodePropertyNameAndValue=(e,t,r)=>{JC(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Pk.regexp_validateUnicodePropertyNameOrValue=(e,t)=>{e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Pk.regexp_eatUnicodePropertyName=e=>{var t=0;for(e.lastStringValue="";Lk(t=e.current());)e.lastStringValue+=Ok(t),e.advance();return""!==e.lastStringValue},Pk.regexp_eatUnicodePropertyValue=e=>{var t=0;for(e.lastStringValue="";Bk(t=e.current());)e.lastStringValue+=Ok(t),e.advance();return""!==e.lastStringValue},Pk.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Pk.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Pk.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Pk.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Kk(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Pk.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Pk.regexp_eatClassControlLetter=e=>{var t=e.current();return!(!jk(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Pk.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Pk.regexp_eatDecimalDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;jk(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Pk.regexp_eatHexDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;Uk(r=e.current());)e.lastIntValue=16*e.lastIntValue+Vk(r),e.advance();return e.pos!==t},Pk.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Pk.regexp_eatOctalDigit=e=>{var t=e.current();return Kk(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Pk.regexp_eatFixedHexDigits=(e,t)=>{var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!Uk(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Vk(i),e.advance()}return!0};var zk=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new qC(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Wk=ek.prototype;function Jk(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Hk(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Wk.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new zk(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Wk.getToken=function(){return this.next(),new zk(this)},"undefined"!=typeof Symbol&&(Wk[Symbol.iterator]=function(){var e=this;return{next(){var t=e.getToken();return{done:t.type===RC.eof,value:t}}}}),Wk.curContext=function(){return this.context[this.context.length-1]},Wk.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(RC.eof):e.override?e.override(this):(this.readToken(this.fullCharCodeAtPos()),void 0)},Wk.readToken=function(e){return AC(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Wk.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Wk.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(BC.lastIndex=r;(e=BC.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,n),r,this.pos,t,this.curPosition())},Wk.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!jC(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},Wk.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&UC.test(String.fromCharCode(e))))break e;++this.pos}}},Wk.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Wk.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(RC.ellipsis)):(++this.pos,this.finishToken(RC.dot))},Wk.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(RC.assign,2):this.finishOp(RC.slash,1)},Wk.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?RC.star:RC.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=RC.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(RC.assign,r+1):this.finishOp(n,r)},Wk.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(RC.assign,3):this.finishOp(124===e?RC.logicalOR:RC.logicalAND,2):61===t?this.finishOp(RC.assign,2):this.finishOp(124===e?RC.bitwiseOR:RC.bitwiseAND,1)},Wk.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(RC.assign,2):this.finishOp(RC.bitwiseXOR,1)},Wk.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!LC.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(RC.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(RC.assign,2):this.finishOp(RC.plusMin,1)},Wk.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(RC.assign,r+1):this.finishOp(RC.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(RC.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Wk.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(RC.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(RC.arrow)):this.finishOp(61===e?RC.eq:RC.prefix,1)},Wk.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(RC.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(RC.assign,3):this.finishOp(RC.coalesce,2)}return this.finishOp(RC.question,1)},Wk.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(RC.parenL);case 41:return++this.pos,this.finishToken(RC.parenR);case 59:return++this.pos,this.finishToken(RC.semi);case 44:return++this.pos,this.finishToken(RC.comma);case 91:return++this.pos,this.finishToken(RC.bracketL);case 93:return++this.pos,this.finishToken(RC.bracketR);case 123:return++this.pos,this.finishToken(RC.braceL);case 125:return++this.pos,this.finishToken(RC.braceR);case 58:return++this.pos,this.finishToken(RC.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(RC.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(RC.prefix,1)}this.raise(this.pos,"Unexpected character '"+Hk(e)+"'")},Wk.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Wk.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(LC.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new Ik(this));s.reset(r,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(RC.regexp,{pattern:i,flags:o,value:c})},Wk.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,c=0,l=null==t?1/0:t;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(n&&95===u)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=u;else{if((d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,o=o*e+d}}return n&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},Wk.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=Jk(this.input.slice(t,this.pos)),++this.pos):AC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(RC.num,r)},Wk.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=Jk(this.input.slice(t,this.pos));return++this.pos,AC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(RC.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),AC(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),r?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(RC.num,o)},Wk.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Wk.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(jC(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(RC.string,t)};var $k={};Wk.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$k)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Wk.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $k;this.raise(e,t)},Wk.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==RC.template&&this.type!==RC.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(RC.template,e)):36===r?(this.pos+=2,this.finishToken(RC.dollarBraceL)):(++this.pos,this.finishToken(RC.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(jC(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Wk.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(RC.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Wk.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Hk(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return jC(t)?"":String.fromCharCode(t)}},Wk.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Wk.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(NC(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?AC:NC)(o,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Hk(o),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},Wk.readWord=function(){var e=this.readWord1(),t=RC.name;return this.keywords.test(e)&&(t=OC[e]),this.finishToken(t,e)};var Gk="8.0.5";ek.acorn={Parser:ek,version:Gk,defaultOptions:YC,Position:GC,SourceLocation:qC,getLineInfo:XC,Node:hk,TokenType:wC,tokTypes:RC,keywordTypes:OC,TokContext:bk,tokContexts:xk,isIdentifierChar:NC,isIdentifierStart:AC,Token:zk,isNewLine:jC,lineBreak:LC,lineBreakG:BC,nonASCIIwhitespace:UC};var qk={__proto__:null,Node:hk,Parser:ek,Position:GC,SourceLocation:qC,TokContext:bk,Token:zk,TokenType:wC,defaultOptions:YC,getLineInfo:XC,isIdentifierChar:NC,isIdentifierStart:AC,isNewLine:jC,keywordTypes:OC,lineBreak:LC,lineBreakG:BC,nonASCIIwhitespace:UC,parse:(e,t)=>ek.parse(e,t),parseExpressionAt:(e,t,r)=>ek.parseExpressionAt(e,t,r),tokContexts:xk,tokTypes:RC,tokenizer:(e,t)=>ek.tokenizer(e,t),version:Gk};class Xk extends TE{constructor(){super(),this.variables.set("undefined",new oS)}findVariable(e){let t=this.variables.get(e);return t||(t=new eS(e),this.variables.set(e,t)),t}}function Yk(e){const t=We(e);try{Nt(t)}catch(e){Yk(t);try{At(t)}catch(e){if("EEXIST"!==e.code)throw e}}}function Qk(e,t){return new Promise(((r,n)=>{Yk(e),Bt(e,t,(e=>{e?n(e):r()}))}))}async function Zk(e,t,r,n,i,a,o){const s=await((e,t,r,n,i,a)=>{let o=null,s=null;if(i){o=new Set;for(const r of i)e===r.source&&t===r.importer&&o.add(r.plugin);s=(e,t)=>({...e,resolve(e,r,{custom:a,skipSelf:o}=UE){return n(e,r,a,o?[...i,{importer:r,plugin:t,source:e}]:i)}})}return r.hookFirst("resolveId",[e,t,{custom:a}],s,o)})(e,t,n,i,a,o);return null!=s?s:void 0===t||ES(e)||"."===e[0]?((e,t)=>{let r=eA(e,t);return r||(r=eA(e+".mjs",t),r||(r=eA(e+".js",t),r))})(t?Ye(We(t),e):Ye(e),r):null}function eA(e,t){try{const r=Mt(e);if(!t&&r.isSymbolicLink())return eA(It(e),t);if(t&&r.isSymbolicLink()||r.isFile()){const t=ze(e);if(-1!==Nt(We(e)).indexOf(t))return e}}catch(e){}}const tA="at position ",rA="at output position ";function nA(e,t,{hook:r,id:n}={}){return"string"==typeof e&&(e={message:e}),e.code&&e.code!==oD.PLUGIN_ERROR&&(e.pluginCode=e.code),e.code=oD.PLUGIN_ERROR,e.plugin=t,r&&(e.hook=r),n&&(e.id=n),iD(e)}const iA=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}],aA={has(){return!1},get(){},set(){},delete(){return!1}};function oA(e){return e.startsWith(tA)||e.startsWith(rA)?iD({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):iD({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}class sA{constructor(e,t,r,n){this.graph=e,this.modulesById=t,this.options=r,this.pluginDriver=n,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.nextEntryModuleIndex=0,this.resolveId=async(e,t,r,n=null)=>this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1)&&await Zk(e,t,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,n,r),t,e)),this.hasModuleSideEffects=r.treeshake?r.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e){const t=this.extendLoadModulesPromise(Promise.all(e.map((e=>this.loadEntryModule(e,!1,void 0,null)))));return await this.awaitLoadModulesPromise(),t}async addEntryModules(e,t){const r=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const n=await this.extendLoadModulesPromise(Promise.all(e.map((({id:e,importer:t})=>this.loadEntryModule(e,!0,t,null)))).then((n=>{let i=r;for(let r=0;r<n.length;r++){const a=n[r];a.isUserDefinedEntryPoint=a.isUserDefinedEntryPoint||t,lA(a,e[r],t);const o=this.indexedEntryModules.find((e=>e.module===a));o?o.index=Math.min(o.index,i):this.indexedEntryModules.push({module:a,index:i}),i++}return this.indexedEntryModules.sort((({index:e},{index:t})=>e>t?1:-1)),n})));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map((({module:e})=>e)),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:r,name:n,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){const o={fileName:e||null,id:t,importer:r,name:n||null},s=i?await this.addEntryWithImplicitDependants(o,i):(await this.addEntryModules([o],!1)).newEntryModules[0];return null!=a&&(s.preserveSignature=a),s}addDefaultsToResolvedId(e){var t,r;if(!e)return null;const n=e.external||!1;return{external:n,id:e.id,meta:e.meta||VE,moduleSideEffects:null!==(t=e.moduleSideEffects)&&void 0!==t?t:this.hasModuleSideEffects(e.id,n),syntheticNamedExports:null!==(r=e.syntheticNamedExports)&&void 0!==r&&r}}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then((async r=>{if(lA(r,e,!1),!r.info.isEntry){this.implicitEntryModules.add(r);const n=await Promise.all(t.map((t=>this.loadEntryModule(t,!1,e.importer,r.id))));for(const e of n)r.implicitlyLoadedAfter.add(e);for(const e of r.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(r)}return r})))}async addModuleSource(e,t,r){var n;let i;AT("load modules",3);try{i=null!==(n=await this.pluginDriver.hookFirst("load",[e]))&&void 0!==n?n:await(a=e,new Promise(((e,t)=>wt(a,"utf-8",((r,n)=>r?t(r):e(n))))))}catch(r){NT("load modules",3);let n=`Could not load ${e}`;throw t&&(n+=` (imported by ${rD(t)})`),n+=`: ${r.message}`,r.message=n,r}var a;NT("load modules",3);const o="string"==typeof i?{code:i}:"object"==typeof i&&"string"==typeof i.code?i:iD((e=>({code:oD.BAD_LOADER,message:`Error loading ${rD(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}))(e)),s=this.graph.cachedModules.get(e);if(s&&!s.customTransformCache&&s.originalCode===o.code){if(s.transformFiles)for(const e of s.transformFiles)this.pluginDriver.emitFile(e);r.setSource(s)}else r.updateOptions(o),r.setSource(await function(e,t,r,n){const i=t.id,a=[];let o=null===e.map?null:YT(e.map);const s=e.code;let c=e.ast;const l=[],u=[];let d=!1;const p=()=>d=!0;let _;const f=e.code;return r.hookReduceArg0("transform",[f,i],((e,r,i)=>{let o,s;if("string"==typeof r)o=r;else{if(!r||"object"!=typeof r)return e;if(t.updateOptions(r),null==r.code)return(r.map||r.ast)&&n((l=i.name,{code:oD.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${l}" returned a "map" or "ast" without returning a "code". This will be ignored.`})),e;({code:o,map:s,ast:c}=r)}var l;return null!==s&&a.push(YT("string"==typeof s?JSON.parse(s):s)||{missing:!0,plugin:i.name}),o}),((e,t)=>{return _=t,{...e,cache:d?e.cache:(c=e.cache,m=p,{has(e){return m(),c.has(e)},get(e){return m(),c.get(e)},set(e,t){return m(),c.set(e,t)},delete(e){return m(),c.delete(e)}}),warn(t,r){"string"==typeof t&&(t={message:t}),r&&aD(t,r,f,i),t.id=i,t.hook="transform",e.warn(t)},error:(t,r)=>("string"==typeof t&&(t={message:t}),r&&aD(t,r,f,i),t.id=i,t.hook="transform",e.error(t)),emitAsset:(t,r)=>(u.push({type:"asset",name:t,source:r}),e.emitAsset(t,r)),emitChunk:(t,r)=>(u.push({type:"chunk",id:t,name:r&&r.name}),e.emitChunk(t,r)),emitFile:e=>(u.push(e),r.emitFile(e)),addWatchFile(t){l.push(t),e.addWatchFile(t)},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},getCombinedSourcemap(){const e=((e,t,r,n,i)=>n.length?{version:3,...UT(e,t,r,n,jT(i)).traceMappings()}:r)(i,s,o,a,n);return e?(o!==e&&(o=e,a.length=0),new ix({...e,file:null,sourcesContent:e.sourcesContent})):new _x(s).generateMap({includeContent:!0,hires:!0,source:i})}};var c,m})).catch((e=>nA(e,_.name,{hook:"transform",id:i}))).then((e=>(d||u.length&&(t.transformFiles=u),{ast:c,code:e,customTransformCache:d,meta:t.info.meta,originalCode:s,originalSourcemap:o,sourcemapChain:a,transformDependencies:l})))}(o,r,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch((()=>{})),e}async fetchDynamicDependencies(e){const t=await Promise.all(e.dynamicImports.map((async t=>{const r=await this.resolveDynamicImport(e,"string"==typeof t.argument?t.argument:t.argument.esTreeNode,e.id);return null===r?null:"string"==typeof r?(t.resolution=r,null):t.resolution=await this.fetchResolvedDependency(rD(r.id),e.id,r)})));for(const r of t)r&&(e.dynamicDependencies.add(r),r.dynamicImporters.push(e.id))}async fetchModule({id:e,meta:t,moduleSideEffects:r,syntheticNamedExports:n},i,a){const o=this.modulesById.get(e);if(o instanceof MT){if(a){o.info.isEntry=!0,this.implicitEntryModules.delete(o);for(const e of o.implicitlyLoadedAfter)e.implicitlyLoadedBefore.delete(o);o.implicitlyLoadedAfter.clear()}return o}const s=new MT(this.graph,e,this.options,a,r,n,t);return this.modulesById.set(e,s),this.graph.watchFiles[e]=!0,await this.addModuleSource(e,i,s),await this.pluginDriver.hookParallel("moduleParsed",[s.info]),await Promise.all([this.fetchStaticDependencies(s),this.fetchDynamicDependencies(s)]),s.linkImports(),s}fetchResolvedDependency(e,t,r){if(r.external){this.modulesById.has(r.id)||this.modulesById.set(r.id,new TS(this.options,r.id,r.moduleSideEffects,r.meta));const n=this.modulesById.get(r.id);return n instanceof TS?Promise.resolve(n):iD(((e,t)=>({code:oD.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${rD(t)}, but is already an existing non-external module id.`}))(e,t))}return this.fetchModule(r,t,!1)}async fetchStaticDependencies(e){for(const t of await Promise.all(Array.from(e.sources,(async t=>this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,VE),t,e.id))))))e.dependencies.add(t),t.importers.push(e.id)}getNormalizedResolvedIdWithoutDefaults(e,t,r){if(e){if("object"==typeof e)return{...e,external:e.external||this.options.external(e.id,t,!0)};const r=this.options.external(e,t,!0);return{external:r,id:r?cA(e,t):e}}const n=cA(r,t);return!1===e||this.options.external(n,t,!0)?{external:!0,id:n}:null}handleResolveId(e,t,r){return null===e?SS(t)?iD(((e,t)=>({code:oD.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${rD(t)}`}))(t,r)):(this.options.onwarn(((e,t)=>({code:oD.UNRESOLVED_IMPORT,importer:rD(t),message:`'${e}' is imported by ${rD(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}))(t,r)),{external:!0,id:t,meta:VE,moduleSideEffects:this.hasModuleSideEffects(t,!0),syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onwarn(((e,t)=>({code:oD.EXTERNAL_SYNTHETIC_EXPORTS,importer:rD(t),message:`External '${e}' can not have 'syntheticNamedExports' enabled.`,source:e}))(t,r)),e)}async loadEntryModule(e,t,r,n){const i=await Zk(e,r,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,VE);return null==i?iD(null===n?(e=>({code:oD.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${rD(e)}).`}))(e):((e,t)=>({code:oD.MISSING_IMPLICIT_DEPENDANT,message:`Module "${rD(e)}" that should be implicitly loaded before "${rD(t)}" could not be resolved.`}))(e,n)):!1===i||"object"==typeof i&&i.external?iD(null===n?(e=>({code:oD.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${rD(e)}).`}))(e):((e,t)=>({code:oD.MISSING_IMPLICIT_DEPENDANT,message:`Module "${rD(e)}" that should be implicitly loaded before "${rD(t)}" cannot be external.`}))(e,n)):this.fetchModule(this.addDefaultsToResolvedId("object"==typeof i?i:{id:i}),void 0,t)}async resolveDynamicImport(e,t,r){const n=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,r]);return"string"!=typeof t?"string"==typeof n?n:n?{external:!1,moduleSideEffects:!0,...n}:null:null==n?e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,VE),t,e.id):this.handleResolveId(this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(n,r,t)),t,r)}}function cA(e,t){return SS(e)?t?Ye(t,"..",e):Ye(e):e}function lA(e,{fileName:t,name:r},n){null!==t?e.chunkFileNames.add(t):null!==r&&(null===e.chunkName&&(e.chunkName=r),n&&e.userChunkNames.add(r))}function uA(e,t,r,n,i,a){let o=!1;return(...s)=>(o||(o=!0,gD({message:`The "this.${t}" plugin context function used by plugin ${n} is deprecated. The "this.${r}" plugin context function should be used instead.`,plugin:n},i,a)),e(...s))}function dA(e,t,r,n,i,a){let o,s=!0;if("string"!=typeof e.cacheKey&&(e.name.startsWith(tA)||e.name.startsWith(rA)||a.has(e.name)?s=!1:a.add(e.name)),t)if(s){const r=e.cacheKey||e.name;l=t[r]||(t[r]=Object.create(null)),o={has(e){const t=l[e];return!!t&&(t[0]=0,!0)},get(e){const t=l[e];if(t)return t[0]=0,t[1]},set(e,t){l[e]=[0,t]},delete(e){return delete l[e]}}}else c=e.name,o={has(){return oA(c)},get(){return oA(c)},set(){return oA(c)},delete(){return oA(c)}};else o=aA;var c,l;return{addWatchFile(e){if(r.phase>=cC.GENERATE)return this.error({code:oD.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."});r.watchFiles[e]=!0},cache:o,emitAsset:uA(((e,t)=>i.emitFile({type:"asset",name:e,source:t})),"emitAsset","emitFile",e.name,!0,n),emitChunk:uA(((e,t)=>i.emitFile({type:"chunk",id:e,name:t&&t.name})),"emitChunk","emitFile",e.name,!0,n),emitFile:i.emitFile,error(t){return nA(t,e.name)},getAssetFileName:uA(i.getFileName,"getAssetFileName","getFileName",e.name,!0,n),getChunkFileName:uA(i.getFileName,"getChunkFileName","getFileName",e.name,!0,n),getFileName:i.getFileName,getModuleIds:()=>r.modulesById.keys(),getModuleInfo:r.getModuleInfo,getWatchFiles:()=>Object.keys(r.watchFiles),isExternal:uA(((e,t,r=!1)=>n.external(e,t,r)),"isExternal","resolve",e.name,!0,n),meta:{rollupVersion:qb,watchMode:r.watchMode},get moduleIds(){const t=r.modulesById.keys();return function*(){gD({message:`Accessing "this.moduleIds" on the plugin context by plugin ${e.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:e.name},!1,n),yield*t}()},parse:r.contextParse.bind(r),resolve(t,n,{custom:i,skipSelf:a}=UE){return r.moduleLoader.resolveId(t,n,i,a?[{importer:n,plugin:e,source:t}]:null)},resolveId:uA(((e,t)=>r.moduleLoader.resolveId(e,t,UE).then((e=>e&&e.id))),"resolveId","resolve",e.name,!0,n),setAssetSource:i.setAssetSource,warn(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_WARNING",t.plugin=e.name,n.onwarn(t)}}}const pA=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,transform:1,watchChange:1});function _A(e,t){return iD({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${t}, expected a function hook.`})}class fA{constructor(e,t,r,n,i){this.graph=e,this.options=t,this.pluginContexts=new Map,((e,t)=>{for(const{active:r,deprecated:n,replacement:i}of iA)for(const a of e)n in a&&gD({message:`The "${n}" hook used by plugin ${a.name} is deprecated. The "${i}" hook should be used instead.`,plugin:a.name},r,t)})(r,t),this.pluginCache=n,this.fileEmitter=new pC(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile,this.getFileName=this.fileEmitter.getFileName,this.finaliseAssets=this.fileEmitter.assertAssetsFinalized,this.setOutputBundle=this.fileEmitter.setOutputBundle,this.plugins=r.concat(i?i.plugins:[]);const a=new Set;for(const r of this.plugins)this.pluginContexts.set(r,dA(r,n,e,t,this.fileEmitter,a));if(i)for(const e of r)for(const r of pA)r in e&&t.onwarn((o=e.name,s=r,{code:oD.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${s}" hook used by the output plugin ${o} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var o,s}createOutputPluginDriver(e){return new fA(this.graph,this.options,e,this.pluginCache,this)}hookFirst(e,t,r,n){let i=Promise.resolve(void 0);for(const a of this.plugins)n&&n.has(a)||(i=i.then((n=>null!=n?n:this.runHook(e,t,a,!1,r))));return i}hookFirstSync(e,t,r){for(const n of this.plugins){const i=this.runHookSync(e,t,n,r);if(null!=i)return i}return null}hookParallel(e,t,r){const n=[];for(const i of this.plugins){const a=this.runHook(e,t,i,!1,r);a&&n.push(a)}return Promise.all(n).then((()=>{}))}hookReduceArg0(e,[t,...r],n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=[a,...r],s=this.runHook(e,o,t,!1,i);return s?s.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceArg0Sync(e,[t,...r],n,i){for(const a of this.plugins){const o=[t,...r],s=this.runHookSync(e,o,a,i);t=n.call(this.pluginContexts.get(a),t,s,a)}return t}hookReduceValue(e,t,r,n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=this.runHook(e,r,t,!0,i);return o?o.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceValueSync(e,t,r,n,i){let a=t;for(const t of this.plugins){const o=this.runHookSync(e,r,t,i);a=n.call(this.pluginContexts.get(t),a,o,t)}return a}hookSeq(e,t,r){let n=Promise.resolve();for(const i of this.plugins)n=n.then((()=>this.runHook(e,t,i,!1,r)));return n}hookSeqSync(e,t,r){for(const n of this.plugins)this.runHookSync(e,t,n,r)}runHook(e,t,r,n,i){const a=r[e];if(!a)return;let o=this.pluginContexts.get(r);return i&&(o=i(o,r)),Promise.resolve().then((()=>"function"!=typeof a?n?a:_A(e,r.name):a.apply(o,t))).catch((t=>nA(t,r.name,{hook:e})))}runHookSync(e,t,r,n){const i=r[e];if(!i)return;let a=this.pluginContexts.get(r);n&&(a=n(a,r));try{return"function"!=typeof i?_A(e,r.name):i.apply(a,t)}catch(t){return nA(t,r.name,{hook:e})}}}function mA(e,t,r){r(e,t)}function gA(e,t,r){}var hA={};function yA(e,t,r=e.type){let n=t.commentNodes[t.commentIndex];for(;n&&e.start>=n.end;)vA(e,n),n=t.commentNodes[++t.commentIndex];n&&n.end<=e.end&&hA[r](e,t,yA)}function vA(e,t){for(e._rollupAnnotations?e._rollupAnnotations.push({comment:t}):e._rollupAnnotations=[{comment:t}];e.type===vx||"ChainExpression"===e.type;)e=e.expression;e.type!==yx&&"NewExpression"!==e.type||(e._rollupAnnotations?e._rollupAnnotations.push({pure:!0}):e._rollupAnnotations=[{pure:!0}])}hA.Program=hA.BlockStatement=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t,"Statement")},hA.Statement=mA,hA.EmptyStatement=gA,hA.ExpressionStatement=hA.ParenthesizedExpression=hA.ChainExpression=(e,t,r)=>r(e.expression,t,"Expression"),hA.IfStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")},hA.LabeledStatement=(e,t,r)=>r(e.body,t,"Statement"),hA.BreakStatement=hA.ContinueStatement=gA,hA.WithStatement=(e,t,r)=>{r(e.object,t,"Expression"),r(e.body,t,"Statement")},hA.SwitchStatement=(e,t,r)=>{r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var a=i[n];a.test&&r(a.test,t,"Expression");for(var o=0,s=a.consequent;o<s.length;o+=1)r(s[o],t,"Statement")}},hA.SwitchCase=(e,t,r)=>{e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1)r(i[n],t,"Statement")},hA.ReturnStatement=hA.YieldExpression=hA.AwaitExpression=(e,t,r)=>{e.argument&&r(e.argument,t,"Expression")},hA.ThrowStatement=hA.SpreadElement=(e,t,r)=>r(e.argument,t,"Expression"),hA.TryStatement=(e,t,r)=>{r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")},hA.CatchClause=(e,t,r)=>{e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")},hA.WhileStatement=hA.DoWhileStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.body,t,"Statement")},hA.ForStatement=(e,t,r)=>{e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")},hA.ForInStatement=hA.ForOfStatement=(e,t,r)=>{r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")},hA.ForInit=(e,t,r)=>{"VariableDeclaration"===e.type?r(e,t):r(e,t,"Expression")},hA.DebuggerStatement=gA,hA.FunctionDeclaration=(e,t,r)=>r(e,t,"Function"),hA.VariableDeclaration=(e,t,r)=>{for(var n=0,i=e.declarations;n<i.length;n+=1)r(i[n],t)},hA.VariableDeclarator=(e,t,r)=>{r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")},hA.Function=(e,t,r)=>{e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1)r(i[n],t,"Pattern");r(e.body,t,e.expression?"Expression":"Statement")},hA.Pattern=(e,t,r)=>{"Identifier"===e.type?r(e,t,"VariablePattern"):"MemberExpression"===e.type?r(e,t,"MemberPattern"):r(e,t)},hA.VariablePattern=gA,hA.MemberPattern=mA,hA.RestElement=(e,t,r)=>r(e.argument,t,"Pattern"),hA.ArrayPattern=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Pattern")}},hA.ObjectPattern=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];"Property"===a.type?(a.computed&&r(a.key,t,"Expression"),r(a.value,t,"Pattern")):"RestElement"===a.type&&r(a.argument,t,"Pattern")}},hA.Expression=mA,hA.ThisExpression=hA.Super=hA.MetaProperty=gA,hA.ArrayExpression=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Expression")}},hA.ObjectExpression=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1)r(i[n],t)},hA.FunctionExpression=hA.ArrowFunctionExpression=hA.FunctionDeclaration,hA.SequenceExpression=(e,t,r)=>{for(var n=0,i=e.expressions;n<i.length;n+=1)r(i[n],t,"Expression")},hA.TemplateLiteral=(e,t,r)=>{for(var n=0,i=e.quasis;n<i.length;n+=1)r(i[n],t);for(var a=0,o=e.expressions;a<o.length;a+=1)r(o[a],t,"Expression")},hA.TemplateElement=gA,hA.UnaryExpression=hA.UpdateExpression=(e,t,r)=>{r(e.argument,t,"Expression")},hA.BinaryExpression=hA.LogicalExpression=(e,t,r)=>{r(e.left,t,"Expression"),r(e.right,t,"Expression")},hA.AssignmentExpression=hA.AssignmentPattern=(e,t,r)=>{r(e.left,t,"Pattern"),r(e.right,t,"Expression")},hA.ConditionalExpression=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")},hA.NewExpression=hA.CallExpression=(e,t,r)=>{if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1)r(i[n],t,"Expression")},hA.MemberExpression=(e,t,r)=>{r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")},hA.ExportNamedDeclaration=hA.ExportDefaultDeclaration=(e,t,r)=>{e.declaration&&r(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")},hA.ExportAllDeclaration=(e,t,r)=>{e.exported&&r(e.exported,t),r(e.source,t,"Expression")},hA.ImportDeclaration=(e,t,r)=>{for(var n=0,i=e.specifiers;n<i.length;n+=1)r(i[n],t);r(e.source,t,"Expression")},hA.ImportExpression=(e,t,r)=>{r(e.source,t,"Expression")},hA.ImportSpecifier=hA.ImportDefaultSpecifier=hA.ImportNamespaceSpecifier=hA.Identifier=hA.Literal=gA,hA.TaggedTemplateExpression=(e,t,r)=>{r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")},hA.ClassDeclaration=hA.ClassExpression=(e,t,r)=>r(e,t,"Class"),hA.Class=(e,t,r)=>{e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)},hA.ClassBody=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t)},hA.MethodDefinition=hA.Property=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")},hA.PropertyDefinition=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};const bA=/[@#]__PURE__/,xA=e=>bA.test(e.value);class EA{constructor(e,t){var r,n;if(this.options=e,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=cC.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=this.modulesById.get(e);return t?t.info:null},this.deoptimizationTracker=new zx,this.cachedModules=new Map,!1!==e.cache){if(null===(r=e.cache)||void 0===r?void 0:r.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=(null===(n=e.cache)||void 0===n?void 0:n.plugins)||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(t){this.watchMode=!0;const e=(...e)=>this.pluginDriver.hookSeqSync("watchChange",e),r=()=>this.pluginDriver.hookSeqSync("closeWatcher",[]);t.on("change",e),t.on("close",r),t.once("restart",(()=>{t.removeListener("change",e),t.removeListener("close",r)}))}this.pluginDriver=new fA(this,e,e.plugins,this.pluginCache),this.scope=new Xk,this.acornParser=ek.extend(...e.acornInjectPlugins),this.moduleLoader=new sA(this,this.modulesById,this.options,this.pluginDriver)}async build(){AT("generate module graph",2),await this.generateModuleGraph(),NT("generate module graph",2),AT("sort modules",2),this.phase=cC.ANALYSE,this.sortModules(),NT("sort modules",2),AT("mark included statements",2),this.includeStatements(),NT("mark included statements",2),this.phase=cC.GENERATE}contextParse(e,t={}){const r=t.onComment,n=[];t.onComment=r&&"function"==typeof r?(e,i,a,o,...s)=>(n.push({type:e?"Block":"Line",value:i,start:a,end:o}),r.call(t,e,i,a,o,...s)):n;const i=this.acornParser.parse(e,{...this.options.acorn,...t});return"object"==typeof r&&r.push(...n),t.onComment=r,((e,t)=>{yA(t,{commentIndex:0,commentNodes:e.filter(xA)})})(n,i),i}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let r=!0;for(const e of Object.keys(t))t[e][0]>=this.options.experimentalCacheExpiry?delete t[e]:r=!1;r&&delete this.pluginCache[e]}return{modules:this.modules.map((e=>e.toJSON())),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map((e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null}))):Object.keys(e).map((t=>({fileName:null,id:e[t],implicitlyLoadedAfter:[],importer:void 0,name:t})))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e instanceof MT?this.modules.push(e):this.externalModules.push(e)}includeStatements(){for(const e of[...this.entryModules,...this.implicitEntryModules])!1!==e.preserveSignature?e.includeAllExports(!1):PT(e);if(this.options.treeshake){let e=1;do{AT(`treeshaking pass ${e}`,3),this.needsTreeshakingPass=!1;for(const e of this.modules)e.isExecuted&&("no-treeshake"===e.info.hasModuleSideEffects?e.includeAllInBundle():e.include());NT("treeshaking pass "+e++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||iD(uD(t))}sortModules(){const{orderedModules:e,cyclePaths:t}=(e=>{let t=0;const r=[],n=new Set,i=new Set,a=new Map,o=[],s=e=>{if(e instanceof MT){for(const t of e.dependencies)a.has(t)?n.has(t)||r.push(sC(t,e,a)):(a.set(t,e),s(t));for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{resolution:t}of e.dynamicImports)t instanceof MT&&i.add(t);o.push(e)}e.execIndex=t++,n.add(e)};for(const t of e)a.has(t)||(a.set(t,null),s(t));for(const e of i)a.has(e)||(a.set(e,null),s(e));return{orderedModules:o,cyclePaths:r}})(this.entryModules);for(const e of t)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:e,importer:e[0],message:`Circular dependency: ${e.join(" -> ")}`});this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const r=e.importDescriptions[t];"*"===r.name||r.module.getVariableForExportName(r.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${r.name}' is imported from ${rD(r.module.id)}`,name:r.name,source:r.module.id},r.start)}}}function SA(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function DA(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var TA=DA(qk);const CA=Object.getPrototypeOf||(e=>e.__proto__);var kA=function(e){if(e.prototype.parsePrivateName)return e;const t=(e=>{if(e.acorn)return e.acorn;const t=TA;if(0!=t.version.indexOf("6.")&&0==t.version.indexOf("6.0.")&&0!=t.version.indexOf("7."))throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${t.version}`);for(let r=e;r&&r!==t.Parser;r=CA(r))if(r!==t.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return t})(e);return(e=class extends e{_branch(){return this.__branch=this.__branch||new e({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(e){e.computed=!1,e.key=this.parsePrivateName(),"constructor"==e.key.name&&this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind],r=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(r,e.key.name)&&r[e.key.name]!==t&&this.raise(e.start,"Duplicate private element"),r[e.key.name]=e.kind||!0,delete this._unresolvedPrivateNames[e.key.name],e.key}parsePrivateName(){const e=this.startNode();return e.name=this.value,this.next(),this.finishNode(e,"PrivateIdentifier"),"never"==this.options.allowReserved&&this.checkUnreserved(e),e}getTokenFromCode(e){if(35===e){++this.pos;const e=this.readWord1();return this.finishToken(this.privateIdentifierToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const r=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const n=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const i=super.parseClass(e,t),a=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=r,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=n,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,a);else{const e=Object.keys(a);e.length&&(e.sort(((e,t)=>a[e]-a[t])),this.raise(a[e[0]],"Usage of undeclared private name"))}return i}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const r=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const n=super.parseClassSuper(e);return this._privateBoundNames=t,this._unresolvedPrivateNames=r,n}parseSubscript(e,r,n,i,a,o){const s=this.options.ecmaVersion>=11&&t.tokTypes.questionDot,c=this._branch();if(!(c.eat(t.tokTypes.dot)||s&&c.eat(t.tokTypes.questionDot))||c.type!=this.privateIdentifierToken)return super.parseSubscript.apply(this,arguments);let l=!1;this.eat(t.tokTypes.dot)||(this.expect(t.tokTypes.questionDot),l=!0);let u=this.startNodeAt(r,n);return u.object=e,u.computed=!1,s&&(u.optional=l),this.type==this.privateIdentifierToken?("Super"==e.type&&this.raise(this.start,"Cannot access private element on super"),u.property=this.parsePrivateName(),this._privateBoundNames&&this._privateBoundNames[u.property.name]||(this._unresolvedPrivateNames||this.raise(u.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[u.property.name]=u.property.start)):u.property=this.parseIdent(!0),this.finishNode(u,"MemberExpression")}parseMaybeUnary(e,t){const r=super.parseMaybeUnary(e,t);return"delete"==r.operator&&"MemberExpression"==r.argument.type&&"PrivateIdentifier"==r.argument.property.type&&this.raise(r.start,"Private elements may not be deleted"),r}}).prototype.privateIdentifierToken=new t.TokenType("privateIdentifier"),e};const AA=kA;var NA=function(e){const t=(e.acorn||TA).tokTypes;return e=AA(e),class extends e{_maybeParseFieldValue(e){if(this.eat(t.eq)){const r=this._inFieldValue;this._inFieldValue=!0,this.type===t.name&&"await"===this.value&&(this.inAsync||this.options.allowAwaitOutsideFunction)?e.value=this.parseAwait():e.value=this.parseExpression(),this._inFieldValue=r}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==t.name||this.type.keyword||this.type==this.privateIdentifierToken||this.type==t.bracketL||this.type==t.string||this.type==t.num)){const e=this._branch();if(e.type==t.bracketL){let r=0;do{e.eat(t.bracketL)?++r:e.eat(t.bracketR)?--r:e.next()}while(r>0)}else e.next(!0);let r=e.type==t.eq||e.type==t.semi;if(!r&&e.canInsertSemicolon()&&(r=e.type!=t.parenL),r){const e=this.startNode();return this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):this.parsePropertyName(e),("Identifier"===e.key.type&&"constructor"===e.key.name||"Literal"===e.key.type&&"constructor"===e.key.value)&&this.raise(e.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(e),this.exitScope(),this.finishNode(e,"PropertyDefinition"),this.semicolon(),e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inFieldValue&&"arguments"==r.name&&this.raise(r.start,"A class field initializer may not contain arguments"),r}}};const wA=kA;var FA=function(e){const t=wA(e),r=(e.acorn||TA).tokTypes;return class extends t{_maybeParseFieldValue(e){if(this.eat(r.eq)){const t=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope(),e.value=this.parseExpression(),this._inStaticFieldScope=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion<8||!this.isContextual("static"))return super.parseClassElement.apply(this,arguments);const t=this._branch();if(t.next(),-1==[r.name,r.bracketL,r.string,r.num,this.privateIdentifierToken].indexOf(t.type)&&!t.type.keyword)return super.parseClassElement.apply(this,arguments);if(t.type==r.bracketL){let e=0;do{t.eat(r.bracketL)?++e:t.eat(r.bracketR)?--e:t.next()}while(e>0)}else t.next();if(t.type!=r.eq&&!t.canInsertSemicolon()&&t.type!=r.semi)return super.parseClassElement.apply(this,arguments);const n=this.startNode();return n.static=this.eatContextual("static"),this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(n):this.parsePropertyName(n),("Identifier"===n.key.type&&"constructor"===n.key.name||"Literal"===n.key.type&&!n.computed&&"constructor"===n.key.value)&&this.raise(n.key.start,"Classes may not have a field called constructor"),"prototype"!==(n.key.name||n.key.value)||n.computed||this.raise(n.key.start,"Classes may not have a static property named prototype"),this.enterScope(67),this._maybeParseFieldValue(n),this.exitScope(),this.finishNode(n,"PropertyDefinition"),this.semicolon(),n}parsePropertyName(e){e.static&&this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inStaticFieldScope&&this.currentThisScope()===this._inStaticFieldScope&&"arguments"==r.name&&this.raise(r.start,"A static class field initializer may not contain arguments"),r}}};const PA=e=>console.warn(e.message||e);function IA(e,t,r,n,i=/$./){const a=new Set(t),o=Object.keys(e).filter((e=>!(a.has(e)||i.test(e))));o.length>0&&n({code:"UNKNOWN_OPTION",message:`Unknown ${r}: ${o.join(", ")}. Allowed options: ${[...a].sort().join(", ")}`})}const OA=e=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...e.acorn}),MA=e=>[NA,FA,...SA(e.acornInjectPlugins)],RA=e=>{var t;return(null===(t=e.cache)||void 0===t?void 0:t.cache)||e.cache},LA=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...r)=>!t.startsWith("\0")&&e(t,...r)||!1;if(e){const t=new Set,r=[];for(const n of SA(e))n instanceof RegExp?r.push(n):t.add(n);return(e,...n)=>t.has(e)||r.some((t=>t.test(e)))}return()=>!1},BA=(e,t,r)=>{const n=e.inlineDynamicImports;return n&&hD('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,t,r),n},jA=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},UA=(e,t,r)=>{const n=e.manualChunks;return n&&hD('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,t,r),n},VA=(e,t)=>{const r=e.moduleContext;if("function"==typeof r)return e=>{var n;return null!==(n=r(e))&&void 0!==n?n:t};if(r){const e=Object.create(null);for(const t of Object.keys(r))e[Ye(t)]=r[t];return r=>e[r]||t}return()=>t},KA=(e,t)=>{const r=e.preserveEntrySignatures;return null==r&&t.add("preserveEntrySignatures"),null!=r?r:"strict"},zA=(e,t,r)=>{const n=e.preserveModules;return n&&hD('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,t,r),n},WA=(e,t,r)=>{const n=e.treeshake;return!1!==n&&(n&&!0!==n?(void 0!==n.pureExternalModules&&hD('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!0,t,r),{annotations:!1!==n.annotations,moduleSideEffects:JA(n.moduleSideEffects,n.pureExternalModules,t),propertyReadSideEffects:"always"===n.propertyReadSideEffects?"always":!1!==n.propertyReadSideEffects,tryCatchDeoptimization:!1!==n.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==n.unknownGlobalSideEffects}):{annotations:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0})},JA=(e,t,r)=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,r)=>!!t.startsWith("\0")||!1!==e(t,r);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}e&&r(("treeshake.moduleSideEffects",'please use one of false, "no-external", a function or an array',{code:oD.INVALID_OPTION,message:'Invalid value for option "treeshake.moduleSideEffects" - please use one of false, "no-external", a function or an array.'}));const n=LA(t);return(e,t)=>!(t&&n(e))},HA=e=>{const t=e.preserveModulesRoot;if(null!=t)return Ye(t)},$A=e=>{const t={autoId:!1,basePath:"",define:"define",...e.amd};if((t.autoId||t.basePath)&&t.id)return iD({code:"INVALID_OPTION",message:'"output.amd.autoId"/"output.amd.basePath" and "output.amd.id" cannot be used together.'});if(t.basePath&&!t.autoId)return iD({code:"INVALID_OPTION",message:'"output.amd.basePath" only works with "output.amd.autoId".'});let r;return r=t.autoId?{autoId:!0,basePath:t.basePath,define:t.define}:{autoId:!1,define:t.define,id:t.id},r},GA=(e,t)=>{const r=e[t];return"function"==typeof r?r:()=>r||""},qA=(e,t)=>{const r=e.dir;return"string"==typeof r&&"string"==typeof t?iD({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}):r},XA=(e,t)=>{const r=e.dynamicImportFunction;return r&&gD('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,t),r},YA=(e,t)=>{const r=e.entryFileNames;return null==r&&t.add("entryFileNames"),null!=r?r:"[name].js"};function QA(e,t){const r=e.exports;if(null==r)t.add("exports");else if(!["default","named","none","auto"].includes(r))return iD((n=r,{code:oD.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}"`,url:"https://rollupjs.org/guide/en/#outputexports"}));var n;return r||"auto"}const ZA=(e,t)=>{if(t)return"";const r=e.indent;return!1===r?"":null==r||r},eN=new Set(["auto","esModule","default","defaultOnly",!0,!1]),tN=(e,t)=>{const r=e.interop,n=new Set,i=e=>{if(!n.has(e)){if(n.add(e),!eN.has(e))return iD({code:"INVALID_OPTION",message:`The value ${JSON.stringify(e)} is not supported for "output.interop". Use one of ${Array.from(eN.values(),(e=>JSON.stringify(e))).join(", ")} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"});"boolean"==typeof e&&gD({message:`The boolean value "${e}" for the "output.interop" option is deprecated. Use ${e?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,t)}return e};if("function"==typeof r){const e=Object.create(null);let t=null;return n=>null===n?t||i(t=r(n)):n in e?e[n]:i(e[n]=r(n))}return void 0===r?()=>!0:()=>i(r)},rN=(e,t,r,n)=>{const i=e.manualChunks||n.manualChunks;if(i){if(t)return iD({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.inlineDynamicImports".'});if(r)return iD({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.preserveModules".'})}return i||{}},nN=(e,t,r)=>{var n;return null!==(n=e.minifyInternalExports)&&void 0!==n?n:r||"es"===t||"system"===t};function iN(e){return(async(e,t)=>{const{options:n,unsetOptions:i}=await(async(e,t)=>{if(!e)throw new Error("You must supply an options object to rollup");const r=SA(e.plugins),{options:n,unsetOptions:i}=(e=>{var t,r;const n=new Set,i=null!==(t=e.context)&&void 0!==t?t:"undefined",a=(e=>e.onwarn?t=>{t.toString=()=>{let e="";return t.plugin&&(e+=`(${t.plugin} plugin) `),t.loc&&(e+=`${rD(t.loc.file)} (${t.loc.line}:${t.loc.column}) `),e+=t.message,e},e.onwarn(t,PA)}:PA)(e),o=e.strictDeprecations||!1,s={acorn:OA(e),acornInjectPlugins:MA(e),cache:RA(e),context:i,experimentalCacheExpiry:null!==(r=e.experimentalCacheExpiry)&&void 0!==r?r:10,external:LA(e.external),inlineDynamicImports:BA(e,a,o),input:jA(e),manualChunks:UA(e,a,o),moduleContext:VA(e,i),onwarn:a,perf:e.perf||!1,plugins:SA(e.plugins),preserveEntrySignatures:KA(e,n),preserveModules:zA(e,a,o),preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:o,treeshake:WA(e,a,o)};return IA(e,[...Object.keys(s),"watch"],"input options",s.onwarn,/^(output)$/),{options:s,unsetOptions:n}})(await r.reduce((async(e,t)=>t.options&&t.options.call({meta:{rollupVersion:qb,watchMode:!1}},await e)||e),Promise.resolve(e)));return aN(n.plugins,tA),{options:n,unsetOptions:i}})(e);!function(e){e.perf?(ST={},void 0!==r&&"function"==typeof r.hrtime?(bT=r.hrtime.bind(r),xT=e=>{return 1e3*(t=r.hrtime(e))[0]+t[1]/1e6;var t}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(bT=()=>[performance.now(),0],xT=e=>performance.now()-e[0]),void 0!==r&&"function"==typeof r.memoryUsage&&(ET=()=>r.memoryUsage().heapUsed),AT=TT,NT=CT,e.plugins=e.plugins.map(FT)):(AT=vT,NT=vT)}(n);const a=new EA(n,null),o=!1!==e.cache;delete n.cache,delete e.cache,AT("BUILD",1);try{await a.pluginDriver.hookParallel("buildStart",[n]),await a.build()}catch(e){const t=Object.keys(a.watchFiles);throw t.length>0&&(e.watchFiles=t),await a.pluginDriver.hookParallel("buildEnd",[e]),await a.pluginDriver.hookParallel("closeBundle",[]),e}await a.pluginDriver.hookParallel("buildEnd",[]),NT("BUILD",1);const s={cache:o?a.getCache():void 0,closed:!1,async close(){s.closed||(s.closed=!0,await a.pluginDriver.hookParallel("closeBundle",[]))},async generate(e){return s.closed?iD(mD()):oN(!1,n,i,e,a)},watchFiles:Object.keys(a.watchFiles),async write(e){return s.closed?iD(mD()):oN(!0,n,i,e,a)}};return n.perf&&(s.getTimings=kT),s})(e)}function aN(e,t){for(let r=0;r<e.length;r++){const n=e[r];n.name||(n.name=`${t}${r+1}`)}}async function oN(e,t,r,n,i){const{options:a,outputPluginDriver:o,unsetOptions:s}=((e,t,r,n)=>{if(!e)throw new Error("You must supply an options object");const i=SA(e.plugins);aN(i,rA);const a=t.createOutputPluginDriver(i);return{...sN(r,n,e,a),outputPluginDriver:a}})(n,i.pluginDriver,t,r),c=new fC(a,s,t,o,i),l=await c.generate(e);if(e){if(!a.dir&&!a.file)return iD({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.keys(l).map((e=>((e,t)=>{const r=Ye(t.dir||We(t.file),e.fileName);let n,i;if("asset"===e.type)i=e.source;else if(i=e.code,t.sourcemap&&e.map){let a;"inline"===t.sourcemap?a=e.map.toUrl():(a=`${ze(e.fileName)}.map`,n=Qk(`${r}.map`,e.map.toString())),"hidden"!==t.sourcemap&&(i+=`//# sourceMappingURL=${a}\n`)}return Promise.all([Qk(r,i),n])})(l[e],a)))),await o.hookParallel("writeBundle",[a,l])}return u=l,{output:Object.keys(u).map((e=>u[e])).filter((e=>Object.keys(e).length>0)).sort(((e,t)=>{const r=lN(e),n=lN(t);return r===n?0:r<n?-1:1}))};var u}function sN(e,t,r,n){return((e,t,r)=>{var n,i,a,o,s,c,l;const u=new Set(r),d=e.compact||!1,p=(e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return iD({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}})(e),_=((e,t)=>{var r;const n=(null!==(r=e.inlineDynamicImports)&&void 0!==r?r:t.inlineDynamicImports)||!1,{input:i}=t;return n&&(Array.isArray(i)?i:Object.keys(i)).length>1?iD({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "output.inlineDynamicImports".'}):n})(e,t),f=((e,t,r)=>{var n;const i=(null!==(n=e.preserveModules)&&void 0!==n?n:r.preserveModules)||!1;if(i){if(t)return iD({code:"INVALID_OPTION",message:'The "output.inlineDynamicImports" option is not supported for "output.preserveModules".'});if(!1===r.preserveEntrySignatures)return iD({code:"INVALID_OPTION",message:'Setting "preserveEntrySignatures" to "false" is not supported for "output.preserveModules".'})}return i})(e,_,t),m=((e,t,r)=>{const n=e.file;if("string"==typeof n){if(t)return iD({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "output.preserveModules" option.'});if(!Array.isArray(r.input))return iD({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})}return n})(e,f,t),g={amd:$A(e),assetFileNames:null!==(n=e.assetFileNames)&&void 0!==n?n:"assets/[name]-[hash][extname]",banner:GA(e,"banner"),chunkFileNames:null!==(i=e.chunkFileNames)&&void 0!==i?i:"[name]-[hash].js",compact:d,dir:qA(e,m),dynamicImportFunction:XA(e,t),entryFileNames:YA(e,u),esModule:null===(a=e.esModule)||void 0===a||a,exports:QA(e,u),extend:e.extend||!1,externalLiveBindings:null===(o=e.externalLiveBindings)||void 0===o||o,file:m,footer:GA(e,"footer"),format:p,freeze:null===(s=e.freeze)||void 0===s||s,globals:e.globals||{},hoistTransitiveImports:null===(c=e.hoistTransitiveImports)||void 0===c||c,indent:ZA(e,d),inlineDynamicImports:_,interop:tN(e,t),intro:GA(e,"intro"),manualChunks:rN(e,_,f,t),minifyInternalExports:nN(e,p,d),name:e.name,namespaceToStringTag:e.namespaceToStringTag||!1,noConflict:e.noConflict||!1,outro:GA(e,"outro"),paths:e.paths||{},plugins:SA(e.plugins),preferConst:e.preferConst||!1,preserveModules:f,preserveModulesRoot:HA(e),sourcemap:e.sourcemap||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapPathTransform:e.sourcemapPathTransform,strict:null===(l=e.strict)||void 0===l||l,systemNullSetters:e.systemNullSetters||!1,validate:e.validate||!1};return IA(e,Object.keys(g),"output options",t.onwarn),{options:g,unsetOptions:u}})(n.hookReduceArg0Sync("outputOptions",[r.output||r],((e,t)=>t||e),(e=>{const t=()=>e.error({code:oD.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}})),e,t)}var cN;function lN(e){return"asset"===e.type?cN.ASSET:e.isEntry?cN.ENTRY_CHUNK:cN.SECONDARY_CHUNK}(e=>{e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"})(cN||(cN={}));const uN=e=>{const t=new Map;return{name:"lazyComponentPlugin",resolveId(r){const n=e.entryModules.find((e=>e.entryKey===r));return n?(t.set(r,n),r):null},load(e){const r=t.get(e);return r?r.cmps.map(dN).join("\n"):null}}},dN=e=>`export { ${e.componentClassName} as ${e.tagName.replace(/-/g,"_")} } from '${me(e.sourceFilePath)}';`,pN=e=>()=>t=>{let r=!1;const n=t.statements.slice();for(let t=n.length-1;t>=0;t--){const i=n[t];if(p.isImportDeclaration(i)&&!i.importClause&&i.moduleSpecifier&&p.isStringLiteral(i.moduleSpecifier)){const a=i.moduleSpecifier.text;e.collections.some((e=>e.collectionName===a||e.moduleId===a))&&(r=!0,n.splice(t,1))}}return r?p.updateSourceFileNode(t,n):t},_N="@stencil/core",fN="@stencil/core/internal/app-data",mN="@stencil/core/internal/app-globals",gN="@stencil/core/hydrate-factory",hN="@stencil/core/internal/client",yN="@stencil/core/internal/client/patch-browser",vN="@stencil/core/internal/client/patch-esm",bN="@stencil/core/internal/hydrate",xN="@lazy-browser-entrypoint?app-data=conditional",EN="@lazy-external-entrypoint?app-data=conditional",SN="@user-index-entrypoint",DN=(e,t,r,n,i)=>{if(!i)return{name:"appDataPlugin"};const a=TN(e,t);return{name:"appDataPlugin",resolveId(e,t){return e===fN||e===mN?("worker"===i&&this.error("@stencil/core packages cannot be imported from a worker."),"hydrate"===i,1,e):null},load(r){if(r===mN){const e=new wu("");return CN(a,e),e.toString()}if(r===fN){const t=new wu("");return NN(e,t),kN(e,n,t),AN(e,t),t.toString()}if(r!==e.globalScript)return null;const i=t.moduleMap.get(e.globalScript);if(!i)return null;if(!i.sourceMapFileText)return{code:i.staticSourceFileText,map:null};const o=JSON.parse(i.sourceMapFileText);return o.sources=o.sources.map((e=>ze(e))),{code:i.staticSourceFileText,map:o}},transform(n,o){if(o=me(o),a.some((e=>e.path===o))){const a=this.parse(n,{}).body.some((e=>"ExportDefaultDeclaration"===e.type))?"":"\nexport const globalFn = () => {};\nexport default globalFn;";n=wN(i)+n+a;const s={...e.tsCompilerOptions};s.module=p.ModuleKind.ESNext;const c=p.transpileModule(n,{compilerOptions:s,fileName:o,transformers:{after:[pN(t)]}});if(r.diagnostics.push(...Ce(c.diagnostics)),e.sourceMap){const e=new wu(n).generateMap({source:o,file:o+".map",includeContent:!0,hires:!0});return{code:c.outputText,map:e}}return{code:c.outputText}}return null}}},TN=(e,t)=>{const r=[];if($(e.globalScript)){const n=t.moduleMap.get(e.globalScript),i=2===t.version?e.globalScript:n&&n.jsFilePath;i&&r.push({defaultName:Pe(e.namespace+"GlobalScript"),path:me(i)})}return t.collections.forEach((e=>{if(null!=e.global&&$(e.global.sourceFilePath)){let t=Pe(e.collectionName+"GlobalScript");r.some((e=>e.defaultName===t))&&(t+=r.length),r.push({defaultName:t,path:me(e.global.sourceFilePath)})}})),r},CN=(e,t)=>{1===e.length?(t.prepend(`import appGlobalScript from '${e[0].path}';\n`),t.append("export const globalScripts = appGlobalScript;\n")):e.length>1?(e.forEach((e=>{t.prepend(`import ${e.defaultName} from '${e.path}';\n`)})),t.append("export const globalScripts = () => {\n"),e.forEach((e=>{t.append(` ${e.defaultName}();\n`)})),t.append("};\n")):t.append("export const globalScripts = () => {};\n")},kN=(e,t,r)=>{const n=Object.keys(t).sort().map((e=>e+": "+(t[e]?"true":"false"))).join(", ");r.append(`export const BUILD = /* ${e.fsNamespace} */ { ${n} };\n`)},AN=(e,t)=>{t.append(`export const Env = /* ${e.fsNamespace} */ ${JSON.stringify(e.env)};\n`)},NN=(e,t)=>{t.append(`export const NAMESPACE = '${e.fsNamespace}';\n`)},wN=e=>`import { Context } from '${"hydrate"===e?bN:_N}';\n`,FN=(e,t,r,n)=>{const i=e.sys.getCompilerExecutingPath(),a=PN(e,i,"client/index.js"),o=PN(e,i,"client/patch-browser.js"),s=PN(e,i,"client/patch-esm.js"),c=PN(e,i,"hydrate/index.js");return{name:"coreResolvePlugin",resolveId(e){if(e===_N||"@stencil/core/internal"===e){if("client"===r)return n?{id:hN,external:!0}:a+"?app-data=conditional";if("hydrate"===r)return c}return e===hN?n?{id:hN,external:!0}:a:e===yN?n?{id:yN,external:!0}:o:e===vN?n?{id:vN,external:!0}:s:e===bN?c:null},async load(n){if(n&&!n.startsWith("\0")&&((n=De(n))===a||n===c)){if("worker"===r)return`\nexport const Build = {\n isDev: ${e.devMode},\n isBrowser: true,\n isServer: false,\n isTesting: false,\n};`;let a=await t.fs.readFile(n);if("string"!=typeof a&&Fe(i)){const r=Kr(i,n);a=await Gr(e.sys,t.fs,Ur,r,n)}if("string"==typeof a){const t=e.hydratedFlag;if(t){const e=IN(t);up!==e&&(a=a.replace(up,e),"hydrated"!==t.name&&(a=a.replace('.classList.add("hydrated")',`.classList.add("${t.name}")`),a=a.replace(".classList.add('hydrated')",`.classList.add('${t.name}')`),a=a.replace('.setAttribute("hydrated",',`.setAttribute("${t.name}",`),a=a.replace(".setAttribute('hydrated',",`.setAttribute('${t.name}',`)))}else a=a.replace(up,"{}")}return a}return null},resolveImportMeta(t,{format:r}){return e.extras.dynamicImportShim&&"url"===t&&"es"===r?'""':null}}},PN=(e,t,r)=>{if(Fe(t))return me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/"+r}));const n=We(t);return me($e(n,"..","internal",r))},IN=e=>{let t,r;t=String(e.initialValue)&&""!==e.initialValue&&null!=e.initialValue?`{${e.property}:${e.initialValue}}`:"";const n="attribute"===e.selector?`[${e.name}]`:`.${e.name}`;return r=String(e.hydratedValue)&&""!==e.hydratedValue&&null!=e.hydratedValue?`${n}{${e.property}:${e.hydratedValue}}`:"",t+r};class ON{constructor(e,t){this.buildId=-1,this.buildMessages=[],this.buildResults=null,this.bundleBuildCount=0,this.collections=[],this.completedTasks=[],this.components=[],this.componentGraph=new Map,this.data={},this.buildStats=void 0,this.diagnostics=[],this.dirsAdded=[],this.dirsDeleted=[],this.entryModules=[],this.filesAdded=[],this.filesChanged=[],this.filesDeleted=[],this.filesUpdated=[],this.filesWritten=[],this.globalStyle=void 0,this.hasConfigChanges=!1,this.hasFinished=!1,this.hasHtmlChanges=!1,this.hasPrintedResults=!1,this.hasServiceWorkerChanges=!1,this.hasScriptChanges=!0,this.hasStyleChanges=!0,this.hydrateAppFilePath=null,this.indexBuildCount=0,this.indexDoc=void 0,this.isRebuild=!1,this.moduleFiles=[],this.outputs=[],this.packageJson={},this.packageJsonFilePath=null,this.pendingCopyTasks=[],this.requiresFullBuild=!0,this.scriptsAdded=[],this.scriptsDeleted=[],this.startTime=Date.now(),this.styleBuildCount=0,this.stylesPromise=null,this.stylesUpdated=[],this.timeSpan=null,this.transpileBuildCount=0,this.config=e,this.compilerCtx=t,this.buildId=++this.compilerCtx.activeBuildId,this.debug=e.logger.debug.bind(e.logger)}start(){const e=`${this.isRebuild?"rebuild":"build"}, ${this.config.fsNamespace}, ${this.config.devMode?"dev":"prod"} mode, started`,t={buildId:this.buildId,messages:[],progress:0};this.compilerCtx.events.emit("buildLog",t),this.timeSpan=this.createTimeSpan(e),this.timestamp=MN(),this.debug(`start build, ${this.timestamp}`);const r={buildId:this.buildId,timestamp:this.timestamp};this.compilerCtx.events.emit("buildStart",r)}createTimeSpan(e,t){if(!this.hasFinished||t){t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`);const r=this.config.logger.createTimeSpan(e,t,this.buildMessages);if(!t&&this.compilerCtx.events){const e={buildId:this.buildId,messages:this.buildMessages,progress:RN(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return{duration:()=>r.duration(),finish:(e,n,i,a)=>{if((!this.hasFinished||t)&&(t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`),r.finish(e,n,i,a),!t)){const e={buildId:this.buildId,messages:this.buildMessages.slice(),progress:RN(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return r.duration()}}}return{duration(){return 0},finish(){return 0}}}debug(e){this.config.logger.debug(e)}get hasError(){return ne(this.diagnostics)}get hasWarning(){return null!=(e=this.diagnostics)&&0!==e.length&&e.some((e=>"warn"===e.level));var e}progress(e){this.completedTasks.push(e)}async validateTypesBuild(){this.hasError||this.validateTypesPromise&&(this.config.watch||(this.debug("build, non-watch, waiting on validateTypes"),await this.validateTypesPromise,this.debug("build, non-watch, finished waiting on validateTypes")))}}const MN=()=>{const e=new Date;let t=e.getUTCFullYear()+"-";return t+=("0"+(e.getUTCMonth()+1)).slice(-2)+"-",t+=("0"+e.getUTCDate()).slice(-2)+"T",t+=("0"+e.getUTCHours()).slice(-2)+":",t+=("0"+e.getUTCMinutes()).slice(-2)+":",t+=("0"+e.getUTCSeconds()).slice(-2),t},RN=e=>{let t=0;const r=Object.keys(LN);return r.forEach(((r,n)=>{e.includes(LN[r])&&(t=n)})),(t+1)/r.length},LN={emptyOutputTargets:{},transpileApp:{},generateStyles:{},generateOutputTargets:{},validateTypesBuild:{},writeBuildFiles:{}},BN=0,jN="~dev-module",UN=e=>({name:"extFormatPlugin",transform(t,r){if(/\0/.test(r))return null;const{ext:n,filePath:i,format:a}=(e=>{const t=e.split("?"),r=me(t[0]),n=r.split(".").pop().toLowerCase(),i=t.length>1?new URLSearchParams(t[1]):null,a=i?i.get("format"):null;return{filePath:r,ext:n,params:i,format:a}})(r);switch(a){case"url":return{code:WN(e,this,t,i,n),map:null};case"text":return{code:zN(t,i),map:null}}return VN.includes(n)?{code:zN(t,i),map:null}:KN[n]?{code:WN(e,this,t,i,n),map:null}:null}}),VN=["txt","frag","vert"],KN={svg:"image/svg+xml"},zN=(e,t)=>{const r=Pe(ze(t));return`const ${r} = ${JSON.stringify(e)};export default ${r};`},WN=(e,t,r,n,i)=>{const a=KN[i];if(!a)return t.warn(`Unsupported url format for "${i}" extension.`),zN("",n);const o=Pe(ze(n)),s=e.sys.encodeToBase64(r);return e.devMode&&s.length>4096&&t.warn("Importing large files will bloat your bundle size, please use external assets instead."),`const ${o} = 'data:${a};base64,${s}';export default ${o};`},JN=async(e,t,r,n,i,a,o)=>{const s=i.toLowerCase().endsWith(".css"),c=[],l=new Set,u=await async function n(i,a,u){if(l.has(a))return u;l.add(a),null!=o&&nd(o,u);const d=await $N(e,t,r,a,u);if(0===d.length)return u;for(const e of d)c.includes(e.filePath)||c.push(e.filePath);return await Promise.all(d.map((async e=>{if(e.styleText=await HN(t,e),"string"==typeof e.styleText)e.styleText=await n(e.filePath,e.filePath,e.styleText);else{const t=Z(r.diagnostics);t.messageText=`Unable to read css import: ${e.srcImport}`,t.absFilePath=i}}))),YN(u,d,s)}(n,i,a);return{imports:c,styleText:u}},HN=async(e,t)=>{let r=null;try{r=await e.fs.readFile(t.filePath)}catch(n){if(t.altFilePath)try{r=await e.fs.readFile(t.filePath)}catch(e){}}return r},$N=async(e,t,r,n,i)=>{var a;const o=[];if(!i.includes("@import"))return o;i=ud(i);const s=We(n),c=(null!==(a=n.split(".").pop())&&void 0!==a?a:"").toLowerCase();let l;const u=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi;for(;l=u.exec(i);){const i={srcImport:l[0],url:l[4].replace(/[\"\'\)]/g,""),filePath:""};if(XN(i.srcImport)){if(GN(i.url)?await qN(e,t,r.diagnostics,n,i):He(i.url)?i.filePath=me(i.url):i.filePath=me($e(s,i.url)),"css"!==c&&!i.filePath.toLowerCase().endsWith(".css")&&(i.filePath+=`.${c}`,"scss"===c)){const e="_"+ze(i.filePath),t=We(i.filePath);i.altFilePath=me($e(t,e))}""!==i.filePath&&o.push(i)}else e.logger.debug(`did not resolve external css @import: ${i.srcImport}`)}return o},GN=e=>e.startsWith("~"),qN=async(e,t,r,n,i)=>{try{const r=Br(i.url),a=await qr(e.sys,t.fs,{moduleId:r.moduleId,containingFile:n,exts:[],packageFilter:e=>(""!==r.filePath&&(e.main=r.filePath),e)});i.filePath=a.resolveId,i.updatedImport=`@import "${i.filePath}";`}catch(e){const t=Z(r);t.messageText=`Unable to resolve node module for CSS @import: ${i.url}`,t.absFilePath=n}},XN=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),YN=(e,t,r)=>{for(const n of t)r?"string"==typeof n.styleText&&(e=e.replace(n.srcImport,n.styleText)):"string"==typeof n.updatedImport&&(e=e.replace(n.srcImport,n.updatedImport));return e},QN=(e,t,r,n)=>({name:"extTransformsPlugin",async transform(i,a){var o,s;if(/\0/.test(a))return null;const{data:c}=ld(a);if(null!=c){let i;const l=De(a),u=await t.fs.readFile(l);if("string"!=typeof u)return null;const d=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o={code:n,id:i,map:null,diagnostics:[],dependencies:[]},s=i.toLowerCase().endsWith(".css");if(s){const n=await JN(e,t,r,i,i,o.code);o.code=n.styleText,Array.isArray(n.imports)&&o.dependencies.push(...n.imports)}for(const e of a.config.plugins)if(W(e.transform))try{let t;const r=e.transform(o.code,o.id,a);if(null!=r&&(t=W(r.then)?await r:r,null!=t))if($(t))o.code=t;else if($(t.code)&&(o.code=t.code),$(t.id)&&(o.id=t.id),Array.isArray(t.dependencies)){const e=t.dependencies.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}catch(e){re(o.diagnostics,e)}if(o.diagnostics.push(...a.diagnostics),!s){const n=await JN(e,t,r,i,o.id,o.code);if(o.code=n.styleText,Array.isArray(n.imports)){const e=n.imports.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}return o})(e,t,r,u,l),p=e.flags.watch&&e.flags.dev&&e.flags.serve&&"hmr"===(null!==(s=null===(o=e.devServer)||void 0===o?void 0:o.reloadStrategy)&&void 0!==s?s:null),_="hydrate"===n.platform&&"shadow"===c.encapsulation&&!p;if(c.tag&&(i=r.components.find((e=>e.tagName===c.tag)),i&&t.moduleMap.get(i.sourceFilePath))){const r=e.outputTargets.filter(Td),n=Xe(e.srcDir,d.id);await Promise.all(r.map((async e=>{const r=$e(e.collectionDir,n);await t.fs.writeFile(r,d.code)})))}const f=await t.worker.transformCssToEsm({file:d.id,input:d.code,tag:c.tag,encapsulation:c.encapsulation,mode:c.mode,commentOriginalSelector:_,sourceMap:e.sourceMap,minify:e.minifyCss,autoprefixer:e.autoprefixCss,docs:e.buildDocs});i&&(i.styleDocs=f.styleDocs);for(const e of d.dependencies)this.addWatchFile(e),t.addWatchFile(e);return r.diagnostics.push(...d.diagnostics),r.diagnostics.push(...f.diagnostics),(ne(f.diagnostics)||ne(d.diagnostics))&&this.error("Plugin CSS transform error"),r.stylesUpdated.some((e=>e.styleTag===c.tag&&e.styleMode===c.mode&&e.styleText===f.styleText))||r.stylesUpdated.push({styleTag:c.tag,styleMode:c.mode,styleText:f.styleText}),{code:f.output,map:f.map,moduleSideEffects:!1}}return null}}),ZN=(e={})=>({name:"stencilLoaderPlugin",resolveId(t){return t in e?{id:t}:null},load(t){return t in e?e[t]:null}}),ew=(e,t,r)=>({name:"pluginHelper",resolveId(n,i){if(/\0/.test(n))return null;if(n.endsWith("/")&&(n=n.slice(0,-1)),tw.has(n)){let a="";i&&(a=` from ${Xe(e.rootDir,i)}`);const o=Z(t.diagnostics);o.header="Node Polyfills Required",o.messageText=`For the import "${n}" to be bundled${a}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the stencil config plugins (${r}). Please see the bundling docs for more information.\n Further information: https://stenciljs.com/docs/module-bundling`}return null}}),tw=new Set(["child_process","cluster","dgram","dns","module","net","readline","repl","tls","assert","console","constants","domain","events","path","punycode","querystring","_stream_duplex","_stream_passthrough","_stream_readable","_stream_writable","_stream_transform","string_decoder","sys","tty","crypto","fs","Buffer","buffer","global","http","https","os","process","stream","timers","url","util","vm","zlib"]),rw=(e,t)=>{const r="hydrate"===t,n="@removed-server-code",i=e=>!!$(e)&&((e=De(e)).includes(".server/")||e.endsWith(".server")),a=r?e.outputTargets.filter(Id).flatMap((e=>e.external)):[];return{name:"serverPlugin",resolveId(e,t){if(e===n)return e;if(r){if(a.includes(e))return{id:e,external:!0};if(i(t)&&!e.startsWith(".")&&!He(e))return{id:e,external:!0}}else if(i(e))return n;return null},load(e){return e===n?{code:"export default {};",syntheticNamedExports:!0}:null}}},nw=(e,t,r,n,i)=>{if(Jr(i))return;const a=iw(n);return $(a)&&((e,t,r,n,i,a)=>{r.endsWith("package.json")&&Or(a,i);let o=We(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),t.sys.createDirSync(o)):e.createDirSync(o),o=We(o);t?(t.clearFileCache(n),t.sys.writeFileSync(n,i)):e.writeFileSync(n,i)})(e,t,n,i,a,r),a},iw=e=>{if(!Vr.has(e)&&!Hr(e)){try{const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),t.status>=200&&t.status<=299)return t.responseText}catch(e){}Vr.add(e)}},aw=(e,t,r)=>({isFile(n){const i=De(n);if(t.statSync(i).isFile)return!0;if(Rr(i)){if(!r.some((e=>i.endsWith(e))))return!1;const n=Wr(e,Ur,i);return"string"==typeof nw(e,t,Ur,n,i)}return!1},isDirectory(r){const n=De(r);if(t.statSync(n).isDirectory)return!0;if(Rr(n)){if("node_modules"===ze(n))return t.sys.createDirSync(n),t.clearFileCache(n),!0;if(Ir(n))return!1;const r=r=>{const i=zr(e,Ur,n,r),a=Pr(n,r),o=nw(e,t,Ur,i,a);return $(o)};return Cr.some(r)}return!1},readFileSync(e){const r=t.readFileSync(e);if($(r))return r;throw new Error(`file not found: ${e}`)},realpathSync(t){const r=De(t);try{return e.realpathSync(r)}catch(e){if((n=e)instanceof Error&&n.hasOwnProperty("code")&&"ENOENT"!==e.code)throw e}var n;return r},extensions:r}),ow=(e,t,r,n)=>{const i=e=>{const r=t.realpathSync(e);return $(r)?r:e},o=e=>{try{const n=t.readDirSync(e||".").sort(),i=[],a=[];for(const e of n){const t=r.statSync(e);if(!t)continue;const n=ze(e);t.isFile?i.push(n):t.isDirectory&&a.push(n)}return{files:i,directories:a}}catch(e){return{files:[],directories:[]}}};return n.createDirectory=e=>{t.createDirSync(e,{recursive:!0})},n.directoryExists=e=>r.statSync(e).isDirectory,n.exit=t.exit,n.fileExists=t=>{let i=t;Fe(t)&&(i=cw(e,n.getExecutingFilePath(),t));const a=r.statSync(i);return!(!a||!a.isFile)},n.getCurrentDirectory=t.getCurrentDirectory,n.getExecutingFilePath=t.getCompilerExecutingPath,n.getDirectories=e=>t.readDirSync(e).filter((e=>{const t=r.statSync(e);return!!(t&&t.exists&&t.isDirectory)})),n.readDirectory=(e,r,n,s,c)=>{const l=t.getCurrentDirectory();return p.matchFiles(e,r,n,s,a,l,c,o,i)},n.readFile=t=>{let i=t;const a=Fe(t);a&&(i=cw(e,n.getExecutingFilePath(),t));let o=r.readFileSync(i,{useCache:a});return"string"!=typeof o&&a&&(s?(o=iw(t),"string"==typeof o&&r.writeFile(i,o)):e.logger.error(`ts.sys can only request http resources from within a web worker: ${t}`)),o},n.writeFile=(e,t)=>r.writeFile(e,t),n},sw=(e,t)=>{var r,n;p.__patched||(e.sys&&(ow(e,e.sys,t,p.sys),r=e.sys,(n=p.sys).watchDirectory=(e,t,n)=>{const i=r.watchDirectory(e,(e=>{t(e)}),n);return{close(){i.close()}}},n.watchFile=(e,t)=>{const n=r.watchFile(e,((e,r)=>{"fileAdd"===r?t(e,p.FileWatcherEventKind.Created):"fileUpdate"===r?t(e,p.FileWatcherEventKind.Changed):"fileDelete"===r&&t(e,p.FileWatcherEventKind.Deleted)}));return{close(){n.close()}}}),uw(e,t),lw(),p.__patched=!0)};void(p.sys||(p.sys={args:[],createDirectory:B,directoryExists(){return!1},exit:B,fileExists(){return!1},getCurrentDirectory:d,getDirectories(){return[]},getExecutingFilePath(){return"./"},readDirectory(){return[]},readFile:B,newLine:"\n",resolvePath:Ye,useCaseSensitiveFileNames:!1,write:B,writeFile:B}));const cw=(e,t,r)=>{const n=new URL("..",t).href;if(r.startsWith(n)){const t=r.replace(n,"/"),i=e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:t});return me(i)}return r},lw=()=>{const e=p.getParsedCommandLineOfConfigFile;p.getParsedCommandLineOfConfigFile=(t,r,n,i)=>{const a=e(t,r,n,i);return a.fileNames=a.fileNames.filter((e=>!(e.includes(".e2e.")||e.includes("/e2e.")||e.includes(".spec.")||e.includes("/spec.")))),a}},uw=(e,t)=>{let r;if(e.sys?r=e.sys.getCompilerExecutingPath():o&&(r=location.href),gw(r)){const r=p.__resolveModuleName=p.resolveModuleName;p.resolveModuleName=(n,i,a,o,s,c)=>pw(e,t,n,i)||r(n,i,a,o,s,c)}},dw=(e,t,r,n)=>{const i=p.__resolveModuleName||p.resolveModuleName;if(r&&i&&e.tsCompilerOptions){const a=ow(e,e.sys,t.fs,p.sys),o={...e.tsCompilerOptions};return o.resolveJsonModule=!0,i(r,n,o,a)}return null},pw=(e,t,r,n)=>{if(Mr(r)){const e=We(n);let i=$e(e,r);if(i=me(fw(i,n)),He(i)&&!t.accessSync(i))return null;He(i)||i.startsWith(".")||i.startsWith("/")||(i="./"+i);return{resolvedModule:{extension:mw(i),resolvedFileName:i,packageId:{name:r,subModuleName:"",version:ut}},failedLookupLocations:[]}}return _w(e,t,r,n)},_w=(e,t,r,n)=>{if(r.startsWith("@stencil/core")){return{resolvedModule:{extension:p.Extension.Dts,resolvedFileName:me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/index.d.ts"})),packageId:{name:r,subModuleName:"",version:ut}},failedLookupLocations:[]}}const i=((e,t,r)=>{const n=((e,t,r)=>{if(t){const n=me(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:r,path:"package.json"}));let i=t.readFileSync(n);if(!$(i)&&s){const a=e.sys.getRemoteModuleUrl({moduleId:r,path:"package.json"});i=nw(e.sys,t,Ur,a,n)}if("string"==typeof i)try{return JSON.parse(i)}catch(e){}}return null})(e,t,r.moduleId);if(n){const i={...r,exts:[".js",".mjs"]},a=((e,t,r)=>{if(t){const n=aw(e,t,r.exts);return n.basedir=We(r.containingFile),n.packageFilter=r.packageFilter,Dr.sync(r.moduleId,n)}return null})(e.sys,t,i);if("string"==typeof a)return{resolvedUrl:a,packageJson:n}}return null})(e,t,{moduleId:r,containingFile:n});if(i){return{resolvedModule:{extension:p.Extension.Js,resolvedFileName:i.resolvedUrl,packageId:{name:r,subModuleName:"",version:i.packageJson.version}},failedLookupLocations:[]}}return null},fw=(e,t)=>(!ze(e).includes(".")&&$(t)&&(t=t.toLowerCase(),Fr(t)?e+=".js":kr(t)?e+=".d.ts":Nr(t)?e+=".tsx":Ar(t)?e+=".ts":wr(t)&&(e+=".jsx")),e),mw=e=>kr(e)?p.Extension.Dts:Nr(e)?p.Extension.Tsx:Fr(e)?p.Extension.Js:wr(e)?p.Extension.Jsx:(e=>e.endsWith(".json"))(e)?p.Extension.Json:p.Extension.Ts,gw=e=>!i&&Fe(e),hw=(e,t)=>e.moduleMap.get(me(t)),yw=(e,t,r)=>({name:`${t.id}TypescriptPlugin`,load(t){if(He(t)){const r=De(t),n=hw(e,r);if(n){if(!n.sourceMapFileText)return{code:n.staticSourceFileText,map:null};const e=JSON.parse(n.sourceMapFileText);return e.sources=e.sources.map((e=>ze(e))),{code:n.staticSourceFileText,map:e}}}return null},transform(n,i){if(He(i)){const n=De(i),a=hw(e,n);if(a&&a.cmps.length>0){const e=p.transpileModule(a.staticSourceFileText,{compilerOptions:r.tsCompilerOptions,fileName:a.sourceFilePath,transformers:{before:t.customTransformers}}),n=e.sourceMapText?JSON.parse(e.sourceMapText):null;return{code:e.outputText,map:n}}}return null}}),vw=(e,t)=>({name:"resolveIdWithTypeScript",async resolveId(r,n){if(/\0/.test(r)||!$(n))return null;const i=dw(e,t,r,n);if(i&&i.resolvedModule){const e=i.resolvedModule.resolvedFileName;if($(e)&&!e.endsWith(".d.ts"))return e}return null}}),bw=(e,t)=>({name:"userIndexPlugin",async resolveId(r){if(r===SN){const n=$e(e.srcDir,"index.ts");return await t.fs.access(n)?n:r}return null},async load(e){return e===SN?"//! Autogenerated index":null}}),xw=(e,t,r,n,i)=>{if("worker"===n||"hydrate"===n)return{name:"workerPlugin",transform(e,t){return t.endsWith("?worker")||t.endsWith("?worker-inline")?Iw():null}};const a=new Map;return{name:"workerPlugin",buildStart(){a.clear()},resolveId(e){return e===kw?{id:e,moduleSideEffects:!1}:null},load(e){return e===kw?ww:null},async transform(n,o){if(/\0/.test(o))return null;if(o.endsWith("?worker")){const n=De(o),i=Dw(n),{code:s,dependencies:c,workerMsgId:l}=await Sw(e,t,r,this,a,n),u=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Fw(u,i,l),moduleSideEffects:!1}}if(o.endsWith("?worker-inline")){const n=De(o),i=Dw(n),{code:s,dependencies:c,workerMsgId:l}=await Sw(e,t,r,this,a,n),u=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Pw(u,i,l),moduleSideEffects:!1}}const s=Ew(o);if(null!=s){const n=await Sw(e,t,r,this,a,s);if(n)return i?{code:Mw(s,n.workerMsgId,n.exports),moduleSideEffects:!1}:{code:Ow(s,n.exports),moduleSideEffects:!1}}return null}}},Ew=e=>Cw.some((t=>e.endsWith(t)))?De(e):null,Sw=async(e,t,r,n,i,a)=>{let o=i.get(a);return o||(o=await Tw(e,t,r,n,a),i.set(a,o)),o},Dw=e=>{const t=e.split("/").filter((e=>!e.includes("index")));return(e=t[t.length-1]).replace(".tsx","").replace(".ts","")},Tw=async(e,t,r,n,i)=>{const a=Dw(i),o=`stencil.${a}`,s=await Rw(e,t,r,{platform:"worker",id:a,inputs:{[a]:i},inlineDynamicImports:!0});if(s){const a=(await s.generate({format:"commonjs",banner:`${Ie(e)}\n(()=>{\n`,footer:"})();",intro:Nw(o,e.devMode),esModule:!1,preferConst:!0,externalLiveBindings:!1})).output[0];a.imports.length>0&&n.error("Workers should not have any external imports: "+JSON.stringify(a.imports));let c=a.code;const l=await Ll(e,t,{input:c,sourceTarget:e.buildEs5?"es5":"es2017",isCore:!1,minify:e.minifyJs,inlineHelpers:!0});return r.diagnostics.push(...l.diagnostics),ne(l.diagnostics)||(c=l.output),{code:c,exports:a.exports,workerMsgId:o,dependencies:Object.keys(a.modules).filter((e=>!/\0/.test(e)&&e!==i))}}return null},Cw=[".worker.ts",".worker.tsx",".worker/index.ts",".worker/index.tsx"],kw="@worker-helper",Aw='\nconst isInstanceOf = (value, className) => {\n const C = globalThis[className];\n return C != null && value instanceof C;\n}\nconst getTransferables = (value) => {\n if (value != null) {\n if (\n isInstanceOf(value, "ArrayBuffer") ||\n isInstanceOf(value, "MessagePort") ||\n isInstanceOf(value, "ImageBitmap") ||\n isInstanceOf(value, "OffscreenCanvas")\n ) {\n return [value];\n }\n if (typeof value === "object") {\n if (value.constructor === Object) {\n value = Object.values(value);\n }\n if (Array.isArray(value)) {\n return value.flatMap(getTransferables);\n }\n return getTransferables(value.buffer);\n }\n }\n return [];\n};',Nw=(e,t)=>`\n${Aw}\nconst exports = {};\nconst workerMsgId = '${e}';\nconst workerMsgCallbackId = workerMsgId + '.cb';\naddEventListener('message', async ({data}) => {\n if (data && data[0] === workerMsgId) {\n let id = data[1];\n let method = data[2];\n let args = data[3];\n let i = 0;\n let argsLen = args.length;\n let value;\n let err;\n\n try {\n for (; i < argsLen; i++) {\n if (Array.isArray(args[i]) && args[i][0] === workerMsgCallbackId) {\n const callbackId = args[i][1];\n args[i] = (...cbArgs) => {\n postMessage(\n [workerMsgCallbackId, callbackId, cbArgs]\n );\n };\n }\n }\n ${t?"\n value = exports[method](...args);\n if (!value || !value.then) {\n throw new Error('The exported method \"' + method + '\" does not return a Promise, make sure it is an \"async\" function');\n }\n value = await value;\n ":"\n value = await exports[method](...args);"}\n\n } catch (e) {\n value = null;\n if (e instanceof Error) {\n err = {\n isError: true,\n value: {\n message: e.message,\n name: e.name,\n stack: e.stack,\n }\n };\n } else {\n err = {\n isError: false,\n value: e\n };\n }\n value = undefined;\n }\n\n const transferables = getTransferables(value);\n ${t?"if (transferables.length > 0) console.debug('Transfering', transferables);":""}\n\n postMessage(\n [workerMsgId, id, value, err],\n transferables\n );\n }\n});\n`,ww=`\nimport { consoleError } from '@stencil/core/internal';\n\n${Aw}\n\nlet pendingIds = 0;\nlet callbackIds = 0;\nconst pending = new Map();\nconst callbacks = new Map();\n\nexport const createWorker = (workerPath, workerName, workerMsgId) => {\n const worker = new Worker(workerPath, {name:workerName});\n\n worker.addEventListener('message', ({data}) => {\n if (data) {\n const workerMsg = data[0];\n const id = data[1];\n const value = data[2];\n\n if (workerMsg === workerMsgId) {\n const err = data[3];\n const [resolve, reject, callbackIds] = pending.get(id);\n pending.delete(id);\n\n if (err) {\n const errObj = (err.isError)\n ? Object.assign(new Error(err.value.message), err.value)\n : err.value;\n\n consoleError(errObj);\n reject(errObj);\n } else {\n if (callbackIds) {\n callbackIds.forEach(id => callbacks.delete(id));\n }\n resolve(value);\n }\n } else if (workerMsg === workerMsgId + '.cb') {\n try {\n callbacks.get(id)(...value);\n } catch (e) {\n consoleError(e);\n }\n }\n }\n });\n\n return worker;\n};\n\nexport const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (\n (...args) => new Promise((resolve, reject) => {\n let pendingId = pendingIds++;\n let i = 0;\n let argLen = args.length;\n let mainData = [resolve, reject];\n pending.set(pendingId, mainData);\n\n for (; i < argLen; i++) {\n if (typeof args[i] === 'function') {\n const callbackId = callbackIds++;\n callbacks.set(callbackId, args[i]);\n args[i] = [workerMsgId + '.cb', callbackId];\n (mainData[2] = mainData[2] || []).push(callbackId);\n }\n }\n const postMessage = (w) => (\n w.postMessage(\n [workerMsgId, pendingId, exportedMethod, args],\n getTransferables(args)\n )\n );\n if (worker.then) {\n worker.then(postMessage);\n } else {\n postMessage(worker);\n }\n })\n);\n`,Fw=(e,t,r)=>`\nimport { createWorker } from '${kw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nexport const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);\n`,Pw=(e,t,r)=>`\nimport { createWorker } from '${kw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nconst blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });\nconst url = URL.createObjectURL(blob);\nexport const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);\nURL.revokeObjectURL(url);\n`,Iw=()=>"\nexport const workerName = 'mocked-worker';\nexport const workerMsgId = workerName;\nexport const workerPath = workerName;\nexport const worker = { name: workerName };\n",Ow=(e,t)=>`\nimport { createWorkerProxy } from '${kw}';\nimport { worker, workerName, workerMsgId } from '${e}?worker';\n${t.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(worker, workerMsgId, '${e}');`)).join("\n")}\n`,Mw=(e,t,r)=>`\nimport { createWorkerProxy } from '${kw}';\nconst workerPromise = import('${e}?worker-inline').then(m => m.worker);\n${r.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(workerPromise, '${t}', '${e}');`)).join("\n")}\n`,Rw=async(e,t,r,n)=>{try{const i=Lw(e,t,r,n),a=await iN(i);return t.rollupCache.set(n.id,a.cache),a}catch(n){r.hasError||ue(e,t,r,n)}},Lw=(e,t,r,n)=>{var i;const a=Gv({mainFields:["collection:main","jsnext:main","es2017","es2015","module","main"],customResolveOptions:Xr(e.sys,t.fs,[".tsx",".ts",".js",".mjs",".json",".d.ts"]),browser:!0,rootDir:e.rootDir,...e.nodeResolve}),o=a.resolveId,s=a.resolveId=async(e,t)=>{const[r,n]=e.split("?"),i=await o.call(a,r,t);return i?$(i)?n?i+"?"+n:i:{...i,id:n?i.id+"?"+n:i.id}:i};e.devServer&&e.devServer.experimentalDevModules&&(a.resolveId=async(r,n)=>{const i=await s.call(a,r,n);return(async(e,t,r,n)=>{if(!((e,t)=>e&&t&&e.id&&e.id.includes("node_modules")&&(e.id.endsWith(".js")||e.id.endsWith(".mjs"))&&!e.external&&!t.startsWith(".")&&!t.startsWith("/"))(r,n))return r;const i=r.id,a=((e,t)=>{let r=e;for(let e=0;e<10;e++){r=We(r);const e=ze(r),n=We(r),i=ze(n);if(e===t&&"node_modules"===i)return $e(r,"package.json")}return null})(i,n);if(!a)return r;const o=await t.readFile(a);if(!o)return r;let s;try{s=JSON.parse(o)}catch(e){}return s&&s.version?(r.id=((e,t,r,n)=>{n=Xe(e.rootDir,n);let i=`/${jN}/`;return i+=encodeURIComponent(t)+"@",i+=encodeURIComponent(r)+".js",i+="?p="+encodeURIComponent(n),i})(e,s.name,s.version,i),r.external=!0,r):r})(e,t.fs,i,r)});const c=e.rollupPlugins.before||[],l=e.rollupPlugins.after||[];return{input:n.inputs,plugins:[FN(e,t,n.platform,n.externalRuntime),DN(e,t,r,n.conditionals,n.platform),uN(r),ZN(n.loader),bw(e,t),yw(t,n,e),UN(e),QN(e,t,r,n),xw(e,t,r,n.platform,!!n.inlineWorkers),rw(e,n.platform),...c,a,vw(e,t),dv({include:/node_modules/,sourceMap:e.sourceMap,transformMixedEsModules:!1,...e.commonjs}),...l,ew(e,r,n.platform),yv({preferConst:!0}),ub({"process.env.NODE_ENV":e.devMode?'"development"':'"production"'}),(u=t.fs,{name:"fileLoadPlugin",load(e){const t=De(e);return e.endsWith(".d.ts")?"":u.readFile(t)}})],treeshake:Bw(e,n),inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:null!==(i=n.preserveEntrySignatures)&&void 0!==i?i:"strict",onwarn:de(r.diagnostics),cache:t.rollupCache.get(n.id)};var u},Bw=(e,t)=>("hydrate"===t.platform||!e.devMode&&!1!==e.rollupConfig.inputOptions.treeshake)&&{propertyReadSideEffects:!1,tryCatchDeoptimization:!1},jw=["Component"],Uw=["Element","Event","Listen","Method","Prop","PropDidChange","PropWillChange","State","Watch"],Vw=e=>!(!e.modifiers||!e.modifiers.some((e=>e.kind===p.SyntaxKind.PrivateKeyword||e.kind===p.SyntaxKind.ProtectedKeyword))),Kw=(e,t=null)=>(null==t&&(t=new WeakSet),e===String?p.createIdentifier("String"):e===Number?p.createIdentifier("Number"):e===Boolean?p.createIdentifier("Boolean"):void 0===e?p.createIdentifier("undefined"):null===e?p.createIdentifier("null"):Array.isArray(e)?zw(e,t):"object"==typeof e?e.__identifier&&e.__escapedText?p.createIdentifier(e.__escapedText):Ww(e,t):p.createLiteral(e)),zw=(e,t)=>{const r=e.map((e=>Kw(e,t)));return p.createArrayLiteral(r)},Ww=(e,t)=>{if(t.has(e))return p.createIdentifier("undefined");t.add(e);const r=Object.keys(e).map((r=>p.createPropertyAssignment(p.createLiteral(r),Kw(e[r],t))));return p.createObjectLiteral(r,!0)},Jw=(e,t)=>p.factory.createGetAccessorDeclaration(void 0,[p.factory.createToken(p.SyntaxKind.StaticKeyword)],e,void 0,void 0,p.factory.createBlock([p.factory.createReturnStatement(t)])),Hw=(e,t)=>{const r=e.find((e=>e.name.escapedText===t));if(!r||!r.body||!r.body.statements)return null;const n=r.body.statements.find((e=>e.kind===p.SyntaxKind.ReturnStatement));if(!n||!n.expression)return null;const i=n.expression.kind;if(i===p.SyntaxKind.StringLiteral)return n.expression.text;if(i===p.SyntaxKind.NoSubstitutionTemplateLiteral)return n.expression.text;if(i===p.SyntaxKind.TrueKeyword)return!0;if(i===p.SyntaxKind.FalseKeyword)return!1;if(i===p.SyntaxKind.ObjectLiteralExpression)return Gw(n.expression);if(i===p.SyntaxKind.ArrayLiteralExpression&&n.expression.elements)return $w(n.expression);if(i===p.SyntaxKind.Identifier){const e=n.expression;if("string"==typeof e.escapedText)return qw(e.escapedText);if(e.escapedText){const t={};return Object.keys(e.escapedText).forEach((r=>{t[r]=qw(e.escapedText[r])})),t}}return null},$w=e=>e.elements.map((e=>{let t;switch(e.kind){case p.SyntaxKind.ObjectLiteralExpression:t=Gw(e);break;case p.SyntaxKind.StringLiteral:t=e.text;break;case p.SyntaxKind.TrueKeyword:t=!0;break;case p.SyntaxKind.FalseKeyword:t=!1;break;case p.SyntaxKind.Identifier:const r=e.escapedText;"String"===r?t=String:"Number"===r?t=Number:"Boolean"===r&&(t=Boolean);break;case p.SyntaxKind.PropertyAccessExpression:default:t=e}return t})),Gw=e=>{const t=e.properties,r={};for(const e of t){const t=Xw(e.name);let n;if(p.isShorthandPropertyAssignment(e))n=qw(t);else if(p.isPropertyAssignment(e))switch(e.initializer.kind){case p.SyntaxKind.ArrayLiteralExpression:n=$w(e.initializer);break;case p.SyntaxKind.ObjectLiteralExpression:n=Gw(e.initializer);break;case p.SyntaxKind.StringLiteral:case p.SyntaxKind.NoSubstitutionTemplateLiteral:n=e.initializer.text;break;case p.SyntaxKind.TrueKeyword:n=!0;break;case p.SyntaxKind.FalseKeyword:n=!1;break;case p.SyntaxKind.Identifier:const t=e.initializer.escapedText;n="String"===t?String:"Number"===t?Number:"Boolean"===t?Boolean:"undefined"===t?void 0:"null"===t?null:qw(e.initializer.escapedText);break;case p.SyntaxKind.PropertyAccessExpression:default:n=e.initializer}r[t]=n}return r},qw=e=>({__identifier:!0,__escapedText:e}),Xw=e=>{switch(e.kind){case p.SyntaxKind.Identifier:return e.text;case p.SyntaxKind.StringLiteral:case p.SyntaxKind.NumericLiteral:return e.text;case p.SyntaxKind.ComputedPropertyName:const t=e.expression;if(p.isStringLiteral(t)||p.isNumericLiteral(t))return e.expression.text}},Yw=(e,t)=>{const r={};return Zw(e).forEach((e=>{r[e]=tF(e,t)})),r},Qw=e=>p.isIdentifier(e)?e.escapedText.toString():Qw(e.left),Zw=e=>{const t=[],r=e=>(p.isTypeReferenceNode(e)&&(t.push(Qw(e.typeName)),e.typeArguments&&e.typeArguments.filter((e=>p.isTypeReferenceNode(e))).forEach((e=>{const r=e.typeName;r&&r.escapedText&&t.push(r.escapedText.toString())}))),p.forEachChild(e,r));return r(e),t},eF=(e,t,r)=>{Object.keys(t).forEach((n=>{if("@stencil/core"===t[n].path&&Uw.includes(n)){const t=Z(e);Te(t,r)}}))},tF=(e,t)=>{const r=t.getSourceFile(),n=r.statements.find((t=>!!(p.isImportDeclaration(t)&&t.importClause&&p.isImportClause(t.importClause)&&t.importClause.namedBindings&&p.isNamedImports(t.importClause.namedBindings)&&Array.isArray(t.importClause.namedBindings.elements)&&t.importClause.namedBindings.elements.find((t=>t.name.getText()===e)))));return n?{location:"import",path:n.moduleSpecifier.text}:r.statements.some((t=>{const r=p.isInterfaceDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some((e=>e.kind===p.SyntaxKind.ExportKeyword)),n=p.isTypeAliasDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some((e=>e.kind===p.SyntaxKind.ExportKeyword)),i=p.isExportDeclaration(t)&&p.isNamedExports(t.exportClause)&&t.exportClause.elements.some((t=>t.name.getText()===e));return r||n||i}))?{location:"local"}:{location:"global"}},rF=(e,t)=>{const r=new Set;iF(e,t,r);const n=r.delete("true"),i=r.delete("false");(n||i)&&r.add("boolean");let a=Array.from(r.keys()).sort();return a.length>1&&(a=a.map((e=>e.indexOf("=>")>=0?`(${e})`:e))),a.length>20?nF(e,t):a.join(" | ")},nF=(e,t)=>{const r=p.TypeFormatFlags.NoTruncation|p.TypeFormatFlags.InTypeAlias|p.TypeFormatFlags.InElementType;return e.typeToString(t,void 0,r)},iF=(e,t,r)=>{if(t.isUnion())t.types.forEach((t=>{iF(e,t,r)}));else{const n=nF(e,t);r.add(n)}},aF=(e,t)=>{const r=me(t.fileName),n=e.moduleMap.get(r);return null!=n?n:Array.from(e.moduleMap.values()).find((e=>e.jsFilePath===r))},oF=(e,t,r)=>{const n=e.nodeMap.get(r);if(n)return n;const i=aF(e,t);if(null!=i&&null!=r.members){const e=r.members.filter(cF),t=sF(e);if("string"==typeof t)return i.cmps.find((e=>e.tagName===t))}},sF=e=>{if(e.length>0){const t=Hw(e,"is");if("string"==typeof t&&t.includes("-"))return t}return null},cF=e=>e.kind===p.SyntaxKind.GetAccessor&&e.modifiers&&e.modifiers.some((({kind:e})=>e===p.SyntaxKind.StaticKeyword)),lF=(e,t)=>e&&t?{tags:uF(t.getJsDocTags()),text:p.displayPartsToString(t.getDocumentationComment(e))}:{tags:[],text:""},uF=e=>e.map((e=>{var t;return{...e,text:null===(t=e.text)||void 0===t?void 0:t.map((e=>e.text)).join("")}})),dF=e=>e&&e.tags.some((e=>"internal"===e.name)),pF=(e,t)=>p.isMethodDeclaration(e)&&e.name&&e.name.escapedText===t,_F=(e,t)=>{const r=e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),p.factory.createImportSpecifier(!1,"string"==typeof n&&n!==r?p.factory.createIdentifier(n):void 0,p.factory.createIdentifier(r))}));return p.createImportDeclaration(void 0,void 0,p.createImportClause(void 0,p.createNamedImports(r)),p.createLiteral(t))},fF=(e,t,r)=>()=>n=>{const i=aF(e,n),a=[],o=[],s=[];if(i.cmps.length){const e=i.cmps[0];s.push(e.tagName);const n=p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("customElements"),"define"),void 0,[p.factory.createIdentifier("tagName"),p.factory.createIdentifier(e.componentClassName)]);if(o.push(gF(e.tagName,n)),mF(i,t,a,o,s),hF(s,a,o),r.autoDefineCustomElements){const t=(c=e.componentClassName,p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createIdentifier("defineCustomElement"),void 0,[p.factory.createIdentifier(c)])));a.push(t)}}var c;return p.factory.updateSourceFile(n,[...n.statements,...a])},mF=(e,t,r,n,i)=>{e.cmps.forEach((e=>{e.dependencies.forEach((e=>{const a=t.find((t=>t.tagName===e)),o=`$${R(a.tagName)}DefineCustomElement`;i.push(a.tagName),r.push(_F([`defineCustomElement as ${o}`],a.sourceFilePath));const s=p.factory.createCallExpression(p.factory.createIdentifier(o),void 0,[]);n.push(gF(a.tagName,s))}))}))},gF=(e,t)=>p.factory.createCaseClause(p.factory.createStringLiteral(e),[p.factory.createIfStatement(p.factory.createPrefixUnaryExpression(p.SyntaxKind.ExclamationToken,p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("customElements"),"get"),void 0,[p.factory.createIdentifier("tagName")])),p.factory.createBlock([p.factory.createExpressionStatement(t)])),p.factory.createBreakStatement()]),hF=(e,t,r)=>{const n=p.factory.createFunctionDeclaration(void 0,[p.factory.createModifier(p.SyntaxKind.ExportKeyword)],void 0,p.factory.createIdentifier("defineCustomElement"),void 0,void 0,void 0,p.factory.createBlock([p.factory.createIfStatement(p.factory.createStrictEquality(p.factory.createTypeOfExpression(p.factory.createIdentifier("customElements")),p.factory.createStringLiteral("undefined")),p.factory.createBlock([p.factory.createReturnStatement()])),p.factory.createVariableStatement(void 0,p.factory.createVariableDeclarationList([p.factory.createVariableDeclaration("components",void 0,void 0,p.factory.createArrayLiteralExpression(e.map((e=>p.factory.createStringLiteral(e)))))],p.NodeFlags.Const)),p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createIdentifier("components"),"forEach"),void 0,[p.factory.createArrowFunction(void 0,void 0,[p.factory.createParameterDeclaration(void 0,void 0,void 0,p.factory.createIdentifier("tagName"),void 0,void 0)],void 0,p.factory.createToken(p.SyntaxKind.EqualsGreaterThanToken),p.factory.createBlock([p.factory.createSwitchStatement(p.factory.createIdentifier("tagName"),p.factory.createCaseBlock(r))]))]))],!0));t.push(n)},yF="__stencil_createEvent",vF="__stencil_defineCustomElement",bF="__stencil_getConnect",xF="__stencil_getContext",EF="__stencil_getElement",SF="__stencil_Host",DF="HTMLElement",TF="__stencil_proxyCustomElement",CF="__stencil_registerInstance",kF="__stencil_h",AF={attachShadow:"attachShadow as __stencil_attachShadow",createEvent:`createEvent as ${yF}`,defineCustomElement:`defineCustomElement as ${vF}`,getConnect:`getConnect as ${bF}`,getContext:`getContext as ${xF}`,getElement:`getElement as ${EF}`,h:`h as ${kF}`,legacyH:"h",Host:`Host as ${SF}`,HTMLElement:DF,proxyCustomElement:`proxyCustomElement as ${TF}`,registerHost:"registerHost as __stencil_registerHost",registerInstance:`registerInstance as ${CF}`},NF=(e,t)=>{e.coreRuntimeApis.includes(t)||e.coreRuntimeApis.push(t)},wF=e=>{NF(e,AF.legacyH)},FF=e=>p.createStatement(PF(e)),PF=e=>{const t=S(e,!0),r=p.factory.createIdentifier(e.componentClassName),n=Kw(t);return p.factory.createCallExpression(p.factory.createIdentifier(TF),[],[r,n])},IF=(e,t)=>{const r=S(e,!0),n=Kw(r);return p.factory.createCallExpression(p.factory.createIdentifier(TF),[],[t,n])},OF=(e,t,r,n)=>{if(0===r.length)return t;if("cjs"===e.module){const e=((e,t)=>{const r=p.createObjectBindingPattern(e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),p.createBindingElement(void 0,n,r)})));return p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(r,void 0,p.createCall(p.createIdentifier("require"),[],[p.createLiteral(t)]))],p.NodeFlags.Const))})(r,n),i=t.statements.slice();return i.splice(2,0,e),p.updateSourceFileNode(t,i)}const i=_F(r,n),a=t.statements.slice();return a.unshift(i),p.updateSourceFileNode(t,a)},MF=(e,t)=>()=>r=>{const n=aF(e,r);if(!n.cmps.length)return r;const i=n.cmps[0];for(const[e,n]of r.statements.entries())if(p.isVariableStatement(n))for(const[a,o]of n.declarationList.declarations.entries()){if(o.name.getText()!==i.componentClassName)continue;const s=IF(i,o.initializer);p.addSyntheticLeadingComment(s,p.SyntaxKind.MultiLineCommentTrivia,"@__PURE__",!1);const c=p.factory.updateVariableDeclaration(o,o.name,o.exclamationToken,o.type,s),l=p.factory.updateVariableDeclarationList(n.declarationList,[...n.declarationList.declarations.slice(0,a),c,...n.declarationList.declarations.slice(a+1)]),u=p.factory.updateVariableStatement(n,[p.factory.createModifier(p.SyntaxKind.ExportKeyword)],l);return r=p.factory.updateSourceFile(r,[...r.statements.slice(0,e),u,...r.statements.slice(e+1)]),OF(t,r,[AF.proxyCustomElement],t.coreImportPath)}return r},RF=(e,t,r)=>"cjs"===e.module?UF(e,t,r):LF(e,t,r),LF=(e,t,r)=>{const n=[];let i=t.statements.slice(),a=!1;if(r.cmps.forEach((r=>{r.styles.forEach((o=>{"string"==typeof o.styleIdentifier&&(a=!0,o.externalStyles.length>0?n.push(jF(e,t,r,o)):i=BF(e,t,i,r,o))}))})),a){let e=-1;for(let t=0;t<i.length;t++)p.isImportDeclaration(i[t])&&(e=t);return i.splice(e+1,0,...n),p.updateSourceFileNode(t,i)}return t},BF=(e,t,r,n,i)=>{for(let a=0;a<r.length;a++){const o=r[a];if(p.isImportDeclaration(o)&&o.importClause&&o.moduleSpecifier&&p.isStringLiteral(o.moduleSpecifier)&&o.importClause.name&&o.importClause.name.escapedText===i.styleIdentifier){const s=o.moduleSpecifier.text,c=KF(e,t,n,i,s);r[a]=p.factory.updateImportDeclaration(o,o.decorators,o.modifiers,o.importClause,p.factory.createStringLiteral(c),void 0);break}}return r},jF=(e,t,r,n)=>{const i=p.createIdentifier(n.styleIdentifier),a=KF(e,t,r,n,n.externalStyles[0].absolutePath);return p.createImportDeclaration(void 0,void 0,p.createImportClause(i,void 0),p.createLiteral(a))},UF=(e,t,r)=>{const n=[];return r.cmps.forEach((r=>{r.styles.forEach((i=>{"string"==typeof i.styleIdentifier&&i.externalStyles.length>0&&n.push(VF(e,t,r,i))}))})),n.length>0?p.updateSourceFileNode(t,[...n,...t.statements]):t},VF=(e,t,r,n)=>{const i=p.createIdentifier(n.styleIdentifier),a=KF(e,t,r,n,n.externalStyles[0].absolutePath);return p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(i,void 0,p.createCall(p.createIdentifier("require"),[],[p.createLiteral(a)]))],p.NodeFlags.Const))},KF=(e,t,r,n,i)=>{const a={importeePath:i,importerPath:t.fileName,tag:r.tagName,encapsulation:r.encapsulation,mode:n.modeName};return cd(a,e.styleImportData)},zF=(e,t)=>{if(e.some((e=>p.isMethodDeclaration(e)&&"hostData"===e.name.escapedText))){const r=e.findIndex((e=>p.isMethodDeclaration(e)&&"render"===e.name.escapedText));if(r>=0){const t=e[r];e[r]=p.updateMethod(t,t.decorators,t.modifiers,t.asteriskToken,p.createIdentifier(JF),t.questionToken,t.typeParameters,t.parameters,t.type,t.body)}e.push(WF(t,r>=0))}},WF=(e,t)=>{NF(e,AF.Host),NF(e,AF.h);const r=[p.createIdentifier(SF),p.createCall(p.createPropertyAccess(p.createThis(),"hostData"),void 0,void 0)];return t&&r.push(p.createCall(p.createPropertyAccess(p.createThis(),JF),void 0,void 0)),p.createMethod(void 0,void 0,void 0,"render",void 0,void 0,void 0,void 0,p.createBlock([p.createReturn(p.createCall(p.createIdentifier(kF),void 0,r))]))},JF="__stencil_render",HF=e=>null==e.members?[]:e.members.filter((e=>{if(e.modifiers&&e.modifiers.some((e=>e.kind===p.SyntaxKind.StaticKeyword))){const t=e.name.escapedText;if($F.has(t))return!1}return!0})),$F=new Set(["is","properties","encapsulation","elementRef","events","listeners","methods","states","originalStyleUrls","styleMode","style","styles","styleUrl","watchers","styleUrls","contextProps","connectProps"]),GF=(e,t,r,n)=>{let i=Array.isArray(t.modifiers)?t.modifiers.slice():[];return"cjs"===e.module?("customelement"===e.componentExport&&(i=i.filter((e=>e.kind!==p.SyntaxKind.ExportKeyword))),p.updateClassDeclaration(t,t.decorators,i,t.name,t.typeParameters,r,n)):qF(e,t,r,n)},qF=(e,t,r,n)=>{const i=t.name,a=(Array.isArray(t.modifiers)?t.modifiers:[]).filter((e=>e.kind!==p.SyntaxKind.ExportKeyword)),o=[];return"customelement"!==e.componentExport&&o.push(p.createModifier(p.SyntaxKind.ExportKeyword)),p.createVariableStatement(o,p.createVariableDeclarationList([p.createVariableDeclaration(i,void 0,p.createClassExpression(a,void 0,t.typeParameters,r,n))],p.NodeFlags.Const))},XF=(e,t)=>{if(t.watchers.length>0){const r={};t.watchers.forEach((({propName:e,methodName:t})=>{r[e]=r[e]||[],r[e].push(t)})),e.push(Jw("watchers",Kw(r)))}},YF=(e,t)=>t.events.map((t=>(NF(e,AF.createEvent),p.createStatement(p.createAssignment(p.createPropertyAccess(p.createThis(),p.createIdentifier(t.method)),p.createCall(p.createIdentifier(yF),void 0,[p.createThis(),p.createLiteral(t.name),p.createLiteral(QF(t))])))))),QF=e=>{let t=0;return e.bubbles&&(t|=4),e.composed&&(t|=2),e.cancelable&&(t|=1),t},ZF=(e,t)=>(t.legacyConnect.length>0&&NF(e,AF.getConnect),t.legacyContext.length>0&&NF(e,AF.getContext),[...t.legacyConnect.map((e=>eP(e.name,bF,e.connect))),...t.legacyContext.map((e=>eP(e.name,xF,e.context)))]),eP=(e,t,r)=>p.createExpressionStatement(p.createAssignment(p.createPropertyAccess(p.createThis(),e),p.createCall(p.createIdentifier(t),void 0,[p.createThis(),p.createLiteral(r)]))),tP=(e,t)=>{const r=[rP()];return"shadow"===t.encapsulation&&r.push(nP(e)),r},rP=()=>p.createStatement(p.createCall(p.createPropertyAccess(p.createThis(),p.createIdentifier("__registerHost")),void 0,void 0)),nP=e=>(NF(e,AF.attachShadow),p.factory.createExpressionStatement(p.factory.createCallExpression(p.factory.createPropertyAccessExpression(p.factory.createThis(),p.factory.createIdentifier("__attachShadow")),void 0,void 0))),iP=()=>p.createExpressionStatement(p.createCall(p.createIdentifier("super"),void 0,void 0)),aP=(e,t)=>{if("scoped"===e.encapsulation){const r=tu(e.tagName,t.modeName);return p.createStringLiteral(rd(t.styleStr,r,!1))}return p.createStringLiteral(t.styleStr)},oP=(e,t)=>(t.styleIdentifier=R(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==x&&(t.styleIdentifier+=R(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],p.createIdentifier(t.styleIdentifier)),sP=(e,t,r,n)=>{const i=HF(t);return((e,t,r,n)=>{if(r.isPlain)return;const i=e.findIndex((e=>e.kind===p.SyntaxKind.Constructor));if(i>=0){const n=e[i];let a=[...tP(t,r),...YF(t,r),...n.body.statements,...ZF(t,r)];true,n.body.statements.some((e=>e.kind===p.SyntaxKind.SuperKeyword))||(a=[iP(),...a]),e[i]=p.updateConstructor(n,n.decorators,n.modifiers,n.parameters,p.updateBlock(n.body,a))}else{let n=[...tP(t,r),...YF(t,r),...ZF(t,r)];true,n=[iP(),...n];const i=p.createConstructor(void 0,void 0,void 0,p.createBlock(n,!0));e.unshift(i)}})(i,r,n),((e,t)=>{if(t.isPlain&&t.hasRenderFn){const t=p.createExpressionStatement(p.createAssignment(p.createPropertyAccess(p.createThis(),"textContent"),p.createCall(p.createPropertyAccess(p.createThis(),"render"),void 0,void 0))),r=e.find((e=>p.isMethodDeclaration(e)&&"connectedCallback"===e.name.escapedText));if(null!=r){const n=p.createMethod(void 0,void 0,void 0,"connectedCallback",void 0,void 0,void 0,void 0,p.createBlock([t,...r.body.statements],!0)),i=e.indexOf(r);e[i]=n}else{const r=p.createMethod(void 0,void 0,void 0,"connectedCallback",void 0,void 0,void 0,void 0,p.createBlock([t],!0));e.push(r)}}})(i,n),((e,t)=>{t.elementRef&&e.push(p.createGetAccessor(void 0,void 0,t.elementRef,[],void 0,p.createBlock([p.createReturn(p.createThis())])))})(i,n),XF(i,n),n.isPlain&&((e,t)=>{e.push(Jw("is",Kw(t.tagName)))})(i,n),"static"===e.style&&((e,t)=>{Array.isArray(t.styles)&&t.styles.length>0&&(t.styles.length>1||1===t.styles.length&&t.styles[0].modeName!==x?((e,t,r)=>{const n=[];r.forEach((e=>{if("string"==typeof e.styleStr){const r=aP(t,e),i=p.createPropertyAssignment(e.modeName,r);n.push(i)}else if("string"==typeof e.styleIdentifier){const t=p.createIdentifier(e.styleIdentifier),r=p.createPropertyAssignment(e.modeName,t);n.push(r)}else if(Array.isArray(e.externalStyles)&&e.externalStyles.length>0){const r=oP(t,e),i=p.createPropertyAssignment(e.modeName,r);n.push(i)}}));const i=p.createObjectLiteral(n,!0);e.push(Jw("style",i))})(e,t,t.styles):((e,t,r)=>{if("string"==typeof r.styleStr){const n=aP(t,r);e.push(Jw("style",n))}else if("string"==typeof r.styleIdentifier){const t=p.createIdentifier(r.styleIdentifier);e.push(Jw("style",t))}else if(Array.isArray(r.externalStyles)&&r.externalStyles.length>0){const n=oP(t,r);e.push(Jw("style",n))}})(e,t,t.styles[0]))})(i,n),zF(i,r),i},cP=(e,t)=>r=>n=>{const i=aF(e,n),a=o=>{if(p.isClassDeclaration(o)){const r=oF(e,n,o);if(null!=r)return((e,t,r,n)=>{const i=((e,t)=>null!=e.heritageClauses&&e.heritageClauses.length>0?e.heritageClauses:(t.cmps.length>=1&&NF(t,AF.HTMLElement),[p.factory.createHeritageClause(p.SyntaxKind.ExtendsKeyword,[p.factory.createExpressionWithTypeArguments(p.factory.createIdentifier(DF),[])])]))(t,r),a=sP(e,t,r,n);return GF(e,t,i,a)})(t,o,i,r)}return p.visitEachChild(o,a,r)};return n=p.visitEachChild(n,a,r),i.cmps.length>0&&("customelement"===t.componentExport?n=((e,t,r)=>{let n=e.statements.slice();return n.push(...t.cmps.map((e=>((e,t)=>{if(t.isPlain)return p.createStatement(p.createCall(p.createPropertyAccess(p.createIdentifier("customElements"),p.createIdentifier("define")),[],[p.createLiteral(t.tagName),p.createIdentifier(t.componentClassName)]));NF(e,AF.defineCustomElement);const r=S(t,!0),n=p.createIdentifier(t.componentClassName),i=Kw(r);return p.createStatement(p.createCall(p.createIdentifier(vF),[],[n,i]))})(t,e)))),"cjs"===r.module&&(n=((e,t)=>{const r=new Set(t.cmps.map((e=>e.componentClassName)));return e.filter((e=>{if(e.kind===p.SyntaxKind.ExpressionStatement){const t=e.expression;if(t&&t.kind===p.SyntaxKind.BinaryExpression){const e=t.left;if(e&&e.kind===p.SyntaxKind.PropertyAccessExpression&&e.expression&&e.expression.kind===p.SyntaxKind.Identifier&&"exports"===e.expression.text){const e=t.right;if(e&&r.has(e.text))return!1}}}return!0}))})(n,t)),p.updateSourceFileNode(e,n)})(n,i,t):"defineproperty"===t.proxy&&(n=((e,t)=>{const r=e.statements.slice();return NF(t,AF.proxyCustomElement),r.push(...t.cmps.map(FF)),p.updateSourceFileNode(e,r)})(n,i)),n=RF(t,n,i)),i.isLegacy&&wF(i),n=OF(t,n,i.coreRuntimeApis,t.coreImportPath)},lP=e=>()=>t=>{if(_N===e)return t;let r=!1;const n=[];return t.statements.forEach((t=>{if(p.isImportDeclaration(t)&&null!=t.moduleSpecifier&&p.isStringLiteral(t.moduleSpecifier)&&t.moduleSpecifier.text===_N){if(t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===p.SyntaxKind.NamedImports){const r=t.importClause.namedBindings.elements.map((e=>e.getText())).filter((e=>uP.has(e)));if(r.length>0){const i=p.factory.updateImportDeclaration(t,void 0,void 0,p.factory.createImportClause(!1,void 0,p.factory.createNamedImports(r.map((e=>p.factory.createImportSpecifier(!1,void 0,p.factory.createIdentifier(e)))))),p.factory.createStringLiteral(e),void 0);n.push(i)}}return r=!0,void 0}n.push(t)})),r?p.updateSourceFileNode(t,n,t.isDeclarationFile,t.referencedFiles,t.typeReferenceDirectives,t.hasNoDefaultLib,t.libReferenceDirectives):t},uP=new Set(["h","setMode","getMode","setPlatformHelpers","Build","Env","Host","Fragment","getAssetPath","writeTask","readTask","getElement","forceUpdate","getRenderingRef","forceModeUpdate","setErrorHandler"]),dP=e=>{const t=e.some((e=>e.htmlTagNames.includes("slot"))),r=e.some((e=>"shadow"===e.encapsulation)),n=e.some((e=>"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot"))),i={allRenderFn:e.every((e=>e.hasRenderFn)),cmpDidLoad:e.some((e=>e.hasComponentDidLoadFn)),cmpShouldUpdate:e.some((e=>e.hasComponentShouldUpdateFn)),cmpDidUnload:e.some((e=>e.hasComponentDidUnloadFn)),cmpDidUpdate:e.some((e=>e.hasComponentDidUpdateFn)),cmpDidRender:e.some((e=>e.hasComponentDidRenderFn)),cmpWillLoad:e.some((e=>e.hasComponentWillLoadFn)),cmpWillUpdate:e.some((e=>e.hasComponentWillUpdateFn)),cmpWillRender:e.some((e=>e.hasComponentWillRenderFn)),connectedCallback:e.some((e=>e.hasConnectedCallbackFn)),disconnectedCallback:e.some((e=>e.hasDisconnectedCallbackFn)),element:e.some((e=>e.hasElement)),event:e.some((e=>e.hasEvent)),hasRenderFn:e.some((e=>e.hasRenderFn)),lifecycle:e.some((e=>e.hasLifecycle)),asyncLoading:!1,hostListener:e.some((e=>e.hasListener)),hostListenerTargetWindow:e.some((e=>e.hasListenerTargetWindow)),hostListenerTargetDocument:e.some((e=>e.hasListenerTargetDocument)),hostListenerTargetBody:e.some((e=>e.hasListenerTargetBody)),hostListenerTargetParent:e.some((e=>e.hasListenerTargetParent)),hostListenerTarget:e.some((e=>e.hasListenerTarget)),member:e.some((e=>e.hasMember)),method:e.some((e=>e.hasMethod)),mode:e.some((e=>e.hasMode)),observeAttribute:e.some((e=>e.hasAttribute)),prop:e.some((e=>e.hasProp)),propBoolean:e.some((e=>e.hasPropBoolean)),propNumber:e.some((e=>e.hasPropNumber)),propString:e.some((e=>e.hasPropString)),propMutable:e.some((e=>e.hasPropMutable)),reflect:e.some((e=>e.hasReflect)),scoped:e.some((e=>"scoped"===e.encapsulation)),shadowDom:r,shadowDelegatesFocus:r&&e.some((e=>e.shadowDelegatesFocus)),slot:t,slotRelocation:n,state:e.some((e=>e.hasState)),style:e.some((e=>e.hasStyle)),svg:e.some((e=>e.htmlTagNames.includes("svg"))),updatable:e.some((e=>e.isUpdateable)),vdomAttribute:e.some((e=>e.hasVdomAttribute)),vdomXlink:e.some((e=>e.hasVdomXlink)),vdomClass:e.some((e=>e.hasVdomClass)),vdomFunctional:e.some((e=>e.hasVdomFunctional)),vdomKey:e.some((e=>e.hasVdomKey)),vdomListener:e.some((e=>e.hasVdomListener)),vdomPropOrAttr:e.some((e=>e.hasVdomPropOrAttr)),vdomRef:e.some((e=>e.hasVdomRef)),vdomRender:e.some((e=>e.hasVdomRender)),vdomStyle:e.some((e=>e.hasVdomStyle)),vdomText:e.some((e=>e.hasVdomText)),watchCallback:e.some((e=>e.hasWatchCallback)),taskQueue:!0};return i.asyncLoading=i.cmpWillUpdate||i.cmpWillLoad||i.cmpWillRender,i.vdomAttribute=i.vdomAttribute||i.reflect,i.vdomPropOrAttr=i.vdomPropOrAttr||i.reflect,i},pP=(e,t,r)=>{let n=e.get(t);return null==n&&(n=e.get(t+".tsx"),null==n&&(n=e.get(t+".ts"),null==n&&(n=e.get(t+".js")))),null==n||r.some((e=>e.sourceFilePath===n.sourceFilePath))||(r.push(n),n.localImports.forEach((t=>{pP(e,t,r)}))),r},_P=(e,t)=>{t.isDebug="debug"===e.logLevel,t.isDev=!!e.devMode,t.isTesting=!!e._isTesting,t.devTools=t.isDev&&!e._isTesting,t.profile=!!e.profile,t.hotModuleReplacement=!(!e.devMode||!e.devServer||"hmr"!==e.devServer.reloadStrategy||e._isTesting),t.updatable=t.updatable||t.hydrateClientSide||t.hotModuleReplacement,t.member=t.member||t.updatable||t.mode||t.lifecycle,t.constructableCSS=!t.hotModuleReplacement||!!e._isTesting,t.asyncLoading=!!(t.asyncLoading||t.lazyLoad||t.taskQueue||t.initializeNextTick),t.cssAnnotations=!0,t.appendChildSlotFix=e.extras.appendChildSlotFix,t.slotChildNodesFix=e.extras.slotChildNodesFix,t.cloneNodeFix=e.extras.cloneNodeFix,t.dynamicImportShim=e.extras.dynamicImportShim,t.lifecycleDOMEvents=!!(t.isDebug||e._isTesting||e.extras.lifecycleDOMEvents),t.safari10=e.extras.safari10,t.scopedSlotTextContentFix=!!e.extras.scopedSlotTextContentFix,t.scriptDataOpts=e.extras.scriptDataOpts,t.shadowDomShim=e.extras.shadowDomShim,t.attachStyles=!0,t.invisiblePrehydration=void 0===e.invisiblePrehydration||e.invisiblePrehydration,t.shadowDomShim&&(t.slotRelocation=t.slot),e.hydratedFlag?(t.hydratedAttribute="attribute"===e.hydratedFlag.selector,t.hydratedClass="class"===e.hydratedFlag.selector):(t.hydratedAttribute=!1,t.hydratedClass=!1)},fP=(e,t)=>{const r=dP(t);return r.lazyLoad=!1,r.hydrateClientSide=!1,r.hydrateServerSide=!1,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,_P(e,r),r.devTools=!1,r},mP=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(Cd);if(0===n.length)return;const i="generate custom elements",a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>gP(e,t,r,n)))),a.finish(`${i} finished`)},gP=async(e,t,r,n)=>{try{const i=((e,t,r,n)=>({id:"customElements",platform:"client",conditionals:fP(e,t.components),customTransformers:vP(e,r,t.components,n),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":yP(n)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"}))(e,r,t,n);hP(r,i);const a=await Rw(e,t,r,i);if(a){const i=await a.generate({banner:Ie(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=n.dir;if(!$(o))return r.diagnostics.push({level:"error",type:"build",messageText:"dist-custom-elements output target provided with no output target directory!"}),void 0;const s=!n.externalRuntime&&!0===n.minify&&e.minifyJs,c=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,c=Ne(i.map);const l=await Ll(e,t,{input:a,isCore:i.isEntry,minify:s,sourceMap:c});r.diagnostics.push(...l.diagnostics),ne(l.diagnostics)||"string"!=typeof l.output||(a=l.output),l.sourceMap&&(c=l.sourceMap,a+=we(i.fileName),await t.fs.writeFile($e(o,i.fileName+".map"),JSON.stringify(c),{outputTargetType:n.type})),await t.fs.writeFile($e(o,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(c)}}catch(e){re(r.diagnostics,e)}},hP=(e,t)=>{const r=e.components,n=[];r.forEach((e=>{const r=[],i=R(e.tagName),a=e.componentClassName,o=`$Cmp${i}`,s=`\0${i}`;e.isPlain?(r.push(`export { ${a} as ${i} } from '${e.sourceFilePath}';`),n.push(`export { {${i} } from '${s}';`)):(r.push(`import { ${a} as ${o}, defineCustomElement as cmpDefCustomEle } from '${e.sourceFilePath}';`),r.push(`export const ${i} = ${o};`),r.push("export const defineCustomElement = cmpDefCustomEle;"),n.push(`export { ${i}, defineCustomElement as defineCustomElement${i} } from '${s}';`)),t.inputs[e.tagName]=s,t.loader[s]=r.join("\n")})),t.loader["\0core"]+=n.join("\n")},yP=e=>{const t=[];return t.push("export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&t.push(`import { globalScripts } from '${mN}';`,"globalScripts();"),t.join("\n")+"\n"},vP=(e,t,r,n)=>{const i={coreImportPath:hN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[fF(t,r,n),lP(i.coreImportPath),cP(t,i),MF(t,i),pN(t)]},bP=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(kd);if(0===n.length)return;const i="generate custom elements bundle"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>xP(e,t,r,n)))),a.finish(`${i} finished`)},xP=async(e,t,r,n)=>{try{const i={id:"customElementsBundle",platform:"client",conditionals:fP(e,r.components),customTransformers:SP(e,t),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":EP(n,r)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"},a=await Rw(e,t,r,i);if(a){const i=await a.generate({banner:Ie(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=!n.externalRuntime&&!0===n.minify&&e.minifyJs,s=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,s=Ne(i.map);const c=await Ll(e,t,{input:a,isCore:i.isEntry,minify:o,sourceMap:s});r.diagnostics.push(...c.diagnostics),ne(c.diagnostics)||"string"!=typeof c.output||(a=c.output,s=c.sourceMap),s&&(a+=we(i.fileName),await t.fs.writeFile($e(n.dir,i.fileName+".map"),JSON.stringify(s),{outputTargetType:n.type})),await t.fs.writeFile($e(n.dir,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(s)}}catch(e){re(r.diagnostics,e)}},EP=(e,t)=>{const r=[],n=[],i=[];return r.push("import { proxyCustomElement } from '@stencil/core/internal/client';","export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&r.push(`import { globalScripts } from '${mN}';`,"globalScripts();"),t.components.forEach((e=>{const t=R(e.tagName),a=e.componentClassName,o=`$Cmp${t}`;if(e.isPlain)n.push(`export { ${a} as ${t} } from '${e.sourceFilePath}';`);else{const i=D(S(e,!1));r.push(`import { ${a} as ${o} } from '${e.sourceFilePath}';`),n.push(`export const ${t} = /*@__PURE__*/proxyCustomElement(${o}, ${i});`)}i.push(t)})),n.push("export const defineCustomElements = (opts) => {"),n.push(" if (typeof customElements !== 'undefined') {"),n.push(" ["),n.push(` ${i.join(",\n ")}`),n.push(" ].forEach(cmp => {"),n.push(" if (!customElements.get(cmp.is)) {"),n.push(" customElements.define(cmp.is, cmp, opts);"),n.push(" }"),n.push(" });"),n.push(" }"),n.push("};"),[...r,...n].join("\n")+"\n"},SP=(e,t)=>{const r={coreImportPath:hN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[lP(r.coreImportPath),cP(t,r),pN(t)]},DP=(e,t,r)=>{const n=[p.createParameter(void 0,void 0,void 0,p.createIdentifier(CP))],i=e.findIndex((e=>e.kind===p.SyntaxKind.Constructor));if(i>=0){const a=e[i],o=p.updateBlock(a.body,[TP(t),...YF(t,r),...a.body.statements,...ZF(t,r)]);e[i]=p.updateConstructor(a,a.decorators,a.modifiers,n,o)}else{const i=p.createConstructor(void 0,void 0,n,p.createBlock([TP(t),...YF(t,r),...ZF(t,r)],!0));e.unshift(i)}},TP=e=>(NF(e,AF.registerInstance),p.createStatement(p.createCall(p.createIdentifier(CF),void 0,[p.createThis(),p.createIdentifier(CP)]))),CP="hostRef",kP=(e,t,r)=>{r.elementRef&&(NF(t,AF.getElement),e.push(p.createGetAccessor(void 0,void 0,r.elementRef,[],void 0,p.createBlock([p.createReturn(p.createCall(p.createIdentifier(EF),void 0,[p.createThis()]))]))))},AP=(e,t)=>Array.isArray(e.styles)&&e.styles.length>0?e.styles.length>1||1===e.styles.length&&e.styles[0].modeName!==x?NP(e,e.styles,t):FP(e,e.styles[0],t):null,NP=(e,t,r)=>{const n=[];return t.forEach((t=>{if("string"==typeof t.styleStr){const i=PP(e,t,r),a=wP(t.modeName,i);n.push(a)}else if("string"==typeof t.styleIdentifier){const e=p.createIdentifier(t.styleIdentifier),r=wP(t.modeName,e);n.push(r)}else if(Array.isArray(t.externalStyles)&&t.externalStyles.length>0){const r=IP(e,t),i=wP(t.modeName,r);n.push(i)}})),p.createObjectLiteral(n,!0)},wP=(e,t)=>p.createPropertyAssignment(e,t),FP=(e,t,r)=>"string"==typeof t.styleStr?PP(e,t,r):"string"==typeof t.styleIdentifier?p.createIdentifier(t.styleIdentifier):Array.isArray(t.externalStyles)&&t.externalStyles.length>0?IP(e,t):null,PP=(e,t,r)=>{if("scoped"===e.encapsulation||r&&"shadow"===e.encapsulation){const n=tu(e.tagName,t.modeName);return p.createStringLiteral(rd(t.styleStr,n,r))}return p.createStringLiteral(t.styleStr)},IP=(e,t)=>(t.styleIdentifier=R(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==x&&(t.styleIdentifier+=R(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],p.createIdentifier(t.styleIdentifier)),OP=e=>"-",MP=e=>e.properties.reduce(((e,t)=>(t.reflect&&e.push([t.name,t.attribute]),e)),[]),RP=(e,t,r)=>{const n=HF(e);return DP(n,t,r),kP(n,t,r),XF(n,r),((e,t)=>{const r=S(t,!0),n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3],$lazyBundleId$:OP(),$attrsToReflect$:MP(t)};1&n.$flags$&&(n.$flags$|=8);const i=Jw("cmpMeta",Kw(n));((e,t,r)=>{const n=AP(t,r);n&&e.push(Jw("style",n))})(e,t,"shadow"===t.encapsulation),e.push(i)})(n,r),zF(n,t),n},LP=(e,t)=>r=>n=>{const i=aF(e,n),a=t=>{if(p.isClassDeclaration(t)){const r=oF(e,n,t);if(null!=r)return((e,t,r)=>p.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,RP(e,t,r)))(t,i,r)}return p.visitEachChild(t,a,r)};return n=p.visitEachChild(n,a,r),i.cmps.length>0&&(n=RF(t,n,i)),i.isLegacy&&wF(i),n=OF(t,n,i.coreRuntimeApis,t.coreImportPath)},BP=e=>{const t=dP(e);return t.slotRelocation=!0,t.lazyLoad=!0,t.hydrateServerSide=!0,t.cssVarShim=!1,t.hydrateClientSide=!0,t.isDebug=!1,t.isDev=!1,t.isTesting=!1,t.devTools=!1,t.lifecycleDOMEvents=!1,t.profile=!1,t.hotModuleReplacement=!1,t.updatable=!0,t.member=!0,t.constructableCSS=!1,t.asyncLoading=!0,t.appendChildSlotFix=!1,t.slotChildNodesFix=!1,t.cloneNodeFix=!1,t.cssAnnotations=!0,t.shadowDomShim=!0,t.safari10=!1,t.hydratedAttribute=!1,t.hydratedClass=!0,t.scriptDataOpts=!1,t.dynamicImportShim=!1,t.attachStyles=!0,t},jP=(e,t)=>{const r={coreImportPath:bN,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[lP(r.coreImportPath),LP(t,r),pN(t)]},UP="/*hydrateAppClosure start*/",VP=async e=>{const t={filePath:e.sourceFilePath,exportLine:"",cmp:e,uniqueComponentClassName:"",importLine:""},r=R(L(e.tagName));return e.componentClassName!==r?(t.uniqueComponentClassName=r,t.importLine=`import { ${e.componentClassName} as ${t.uniqueComponentClassName} } from '${t.filePath}';`):(t.uniqueComponentClassName=e.componentClassName,t.importLine=`import { ${t.uniqueComponentClassName} } from '${t.filePath}';`),t},KP=(e,t,r,n)=>{const i={name:n,description:`${e.namespace} component hydration app.`,main:ze(t),types:ze(r)};return JSON.stringify(i,null,2)},zP=async(e,t)=>{try{const r=$e(e.rootDir,"package.json"),n=await t.fs.readFile(r);return`${JSON.parse(n).name}/hydrate`}catch(e){}return`${e.fsNamespace}/hydrate`},WP=async(e,t,r)=>{const n=$e(e.sys.getCompilerExecutingPath(),"..",".."),i=$e(n,"internal","hydrate","runner.d.ts"),a=$e(r,"index.d.ts");await t.fs.copyFile(i,a)},JP=async(e,t,r,n)=>{try{const i=$e(e.sys.getCompilerExecutingPath(),"..",".."),a=$e(i,"internal","hydrate","runner.js"),o=$e(i,"mock-doc","index.js"),s={...e.rollupConfig.inputOptions,input:a,inlineDynamicImports:!0,plugins:[{name:"hydrateAppPlugin",resolveId(e){return e===gN?e:"@stencil/core/mock-doc"===e?o:null},load(n){return n===gN?HP(e,t,r):null}}],treeshake:!1,onwarn:de(r.diagnostics)},c=await iN(s),l=await c.generate({banner:Ie(e),format:"cjs",file:"index.js"});await((e,t,r,n,i)=>Promise.all(n.map((n=>(async(e,t,r,n,i)=>{const a=await zP(e,t),o=n.dir,s=$e(o,"index.js"),c=$e(o,"index.d.ts"),l=$e(o,"package.json"),u=KP(e,s,c,a);await Promise.all([WP(e,t,o),t.fs.writeFile(l,u)]),r.hydrateAppFilePath=s,await Promise.all(i.output.map((async r=>{if("chunk"===r.type){r.code=((e,t,r)=>{if(TN(e,t).length>0){const e=r.indexOf("/*hydrate context start*/");if(e>-1){const t=r.indexOf("/*hydrate context end*/")+"/*hydrate context end*/".length,n=r.substring(e,t);return(r=r.replace(n,"")).replace(UP,UP+"\n "+n)}}return r})(e,t,r.code);const n=$e(o,r.fileName);await t.fs.writeFile(n,r.code,{immediateWrite:!0})}})))})(e,t,r,n,i)))))(e,t,r,n,l)}catch(n){r.hasError||ue(e,t,r,n)}},HP=async(e,t,r)=>{if(!r.hasError)try{const n=r.components,i=(GP(e,n),await $P(r)),a=await(async(e,t,r,n,i)=>{try{const n={id:"hydrate",platform:"hydrate",conditionals:BP(r.components),customTransformers:jP(e,t),inlineDynamicImports:!0,inputs:{"@app-factory-entry":"@app-factory-entry"},loader:{"@app-factory-entry":i}};return await Rw(e,t,r,n)}catch(n){r.hasError||ue(e,t,r,n)}})(e,t,r,0,i);if(null!=a){const e=await a.generate({format:"cjs",esModule:!1,strict:!1,intro:"\nexport function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {\n var globalThis = $stencilWindow;\n var self = $stencilWindow;\n var top = $stencilWindow;\n var parent = $stencilWindow;\n\n var addEventListener = $stencilWindow.addEventListener.bind($stencilWindow);\n var alert = $stencilWindow.alert.bind($stencilWindow);\n var blur = $stencilWindow.blur.bind($stencilWindow);\n var cancelAnimationFrame = $stencilWindow.cancelAnimationFrame.bind($stencilWindow);\n var cancelIdleCallback = $stencilWindow.cancelIdleCallback.bind($stencilWindow);\n var clearInterval = $stencilWindow.clearInterval.bind($stencilWindow);\n var clearTimeout = $stencilWindow.clearTimeout.bind($stencilWindow);\n var close = () => {};\n var confirm = $stencilWindow.confirm.bind($stencilWindow);\n var dispatchEvent = $stencilWindow.dispatchEvent.bind($stencilWindow);\n var focus = $stencilWindow.focus.bind($stencilWindow);\n var getComputedStyle = $stencilWindow.getComputedStyle.bind($stencilWindow);\n var matchMedia = $stencilWindow.matchMedia.bind($stencilWindow);\n var open = $stencilWindow.open.bind($stencilWindow);\n var prompt = $stencilWindow.prompt.bind($stencilWindow);\n var removeEventListener = $stencilWindow.removeEventListener.bind($stencilWindow);\n var requestAnimationFrame = $stencilWindow.requestAnimationFrame.bind($stencilWindow);\n var requestIdleCallback = $stencilWindow.requestIdleCallback.bind($stencilWindow);\n var setInterval = $stencilWindow.setInterval.bind($stencilWindow);\n var setTimeout = $stencilWindow.setTimeout.bind($stencilWindow);\n\n var CharacterData = $stencilWindow.CharacterData;\n var CSS = $stencilWindow.CSS;\n var CustomEvent = $stencilWindow.CustomEvent;\n var Document = $stencilWindow.Document;\n var DocumentFragment = $stencilWindow.DocumentFragment;\n var DocumentType = $stencilWindow.DocumentType;\n var DOMTokenList = $stencilWindow.DOMTokenList;\n var Element = $stencilWindow.Element;\n var Event = $stencilWindow.Event;\n var HTMLAnchorElement = $stencilWindow.HTMLAnchorElement;\n var HTMLBaseElement = $stencilWindow.HTMLBaseElement;\n var HTMLButtonElement = $stencilWindow.HTMLButtonElement;\n var HTMLCanvasElement = $stencilWindow.HTMLCanvasElement;\n var HTMLElement = $stencilWindow.HTMLElement;\n var HTMLFormElement = $stencilWindow.HTMLFormElement;\n var HTMLImageElement = $stencilWindow.HTMLImageElement;\n var HTMLInputElement = $stencilWindow.HTMLInputElement;\n var HTMLLinkElement = $stencilWindow.HTMLLinkElement;\n var HTMLMetaElement = $stencilWindow.HTMLMetaElement;\n var HTMLScriptElement = $stencilWindow.HTMLScriptElement;\n var HTMLStyleElement = $stencilWindow.HTMLStyleElement;\n var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement;\n var HTMLTitleElement = $stencilWindow.HTMLTitleElement;\n var IntersectionObserver = $stencilWindow.IntersectionObserver;\n var KeyboardEvent = $stencilWindow.KeyboardEvent;\n var MouseEvent = $stencilWindow.MouseEvent;\n var Node = $stencilWindow.Node;\n var NodeList = $stencilWindow.NodeList;\n var URL = $stencilWindow.URL;\n\n var console = $stencilWindow.console;\n var customElements = $stencilWindow.customElements;\n var history = $stencilWindow.history;\n var localStorage = $stencilWindow.localStorage;\n var location = $stencilWindow.location;\n var navigator = $stencilWindow.navigator;\n var performance = $stencilWindow.performance;\n var sessionStorage = $stencilWindow.sessionStorage;\n\n var devicePixelRatio = $stencilWindow.devicePixelRatio;\n var innerHeight = $stencilWindow.innerHeight;\n var innerWidth = $stencilWindow.innerWidth;\n var origin = $stencilWindow.origin;\n var pageXOffset = $stencilWindow.pageXOffset;\n var pageYOffset = $stencilWindow.pageYOffset;\n var screen = $stencilWindow.screen;\n var screenLeft = $stencilWindow.screenLeft;\n var screenTop = $stencilWindow.screenTop;\n var screenX = $stencilWindow.screenX;\n var screenY = $stencilWindow.screenY;\n var scrollX = $stencilWindow.scrollX;\n var scrollY = $stencilWindow.scrollY;\n var exports = {};\n\n var fetch, FetchError, Headers, Request, Response;\n\n if (typeof $stencilWindow.fetch === 'function') {\n fetch = $stencilWindow.fetch;\n } else {\n fetch = $stencilWindow.fetch = function() { throw new Error('fetch() is not implemented'); };\n }\n\n if (typeof $stencilWindow.FetchError === 'function') {\n FetchError = $stencilWindow.FetchError;\n } else {\n FetchError = $stencilWindow.FetchError = class FetchError { constructor() { throw new Error('FetchError is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Headers === 'function') {\n Headers = $stencilWindow.Headers;\n } else {\n Headers = $stencilWindow.Headers = class Headers { constructor() { throw new Error('Headers is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Request === 'function') {\n Request = $stencilWindow.Request;\n } else {\n Request = $stencilWindow.Request = class Request { constructor() { throw new Error('Request is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Response === 'function') {\n Response = $stencilWindow.Response;\n } else {\n Response = $stencilWindow.Response = class Response { constructor() { throw new Error('Response is not implemented'); } };\n }\n\n function hydrateAppClosure($stencilWindow) {\n const window = $stencilWindow;\n const document = $stencilWindow.document;\n /*hydrateAppClosure start*/\n",outro:"\n /*hydrateAppClosure end*/\n hydrateApp(window, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve);\n }\n\n hydrateAppClosure($stencilWindow);\n}\n",preferConst:!1});if(!r.hasError&&null!=e&&Array.isArray(e.output))return e.output[0].code}}catch(e){re(r.diagnostics,e)}return""},$P=async e=>{const t=e.components,r=await(async e=>{const t=await Promise.all(e.map(VP));return j(t,(e=>e.cmp.componentClassName))})(t),n=new wu("");return n.append("import { hydrateApp, registerComponents, styles } from '@stencil/core/internal/hydrate';\n"),r.forEach((e=>n.append(e.importLine+"\n"))),n.append("registerComponents([\n"),r.forEach((e=>{n.append(` ${e.uniqueComponentClassName},\n`)})),n.append("]);\n"),n.append("export { hydrateApp }\n"),n.toString()},GP=(e,t)=>{const r=dP(t);return r.lazyLoad=!0,r.hydrateClientSide=!1,r.hydrateServerSide=!0,_P(e,r),r.lifecycleDOMEvents=!1,r.devTools=!1,r.hotModuleReplacement=!1,r.cloneNodeFix=!1,r.appendChildSlotFix=!1,r.slotChildNodesFix=!1,r.safari10=!1,r.shadowDomShim=!1,r},qP=async(e,t,r)=>{const n=e.outputTargets.filter(Id);if(n.length>0){const i=r.createTimeSpan("generate hydrate app started");await JP(e,t,r,n),i.finish("generate hydrate app finished")}},XP=(e,t)=>{const r=new Set(t.map((e=>e.tagName.toUpperCase()))),n=[],i=e=>{r.has(e.tagName)&&n.push(e.tagName.toLowerCase());for(let t=0;t<e.childElementCount;t++)i(e.children[t])};return i(e.documentElement),n};function YP(e,t){const r=j(t.components,(e=>e.dependents.length)),n=function(e,t,r){const n=((e,t,r)=>{const n=new Set;return e.bundles.map((e=>e.components.map((e=>{const i=Be(e);if(i){const e=Z(t.diagnostics);e.header="Stencil Config",e.messageText=i}const a=r.find((t=>t.tagName===e));if(!a){const r=ee(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" is defined in a bundle but no matching component was found within this app or its collections.`}if(n.has(e)){const r=ee(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" has been defined multiple times in the "bundles" config.`}return n.add(e),a})).sort()))})(e,t,r);if(n.length>0)return n;let i=e.entryComponentsHint;if(!i&&t.indexDoc&&(i=XP(t.indexDoc,r)),!i)return[];function a(e){return r.find((t=>t.tagName===e))}return[V([...i,...U(i.map(a).map((e=>e.dependencies)))]).map(a)]}(e,t,r),i=((e,t,r)=>{if(!e.excludeUnusedDependencies)return new Set(r.map((e=>e.tagName)));const n=new Set;return t.forEach((e=>{e.forEach((e=>n.add(e.tagName)))})),r.forEach((e=>{e.isCollectionDependency||n.add(e.tagName)})),r.forEach((e=>{e.isCollectionDependency&&e.dependents.some((e=>n.has(e)))&&n.add(e.tagName)})),n})(e,n,r);if(e.devMode)return r.filter((e=>i.has(e.tagName))).map((e=>[e]));const a=new Set;n.forEach((e=>{e.forEach((e=>a.add(e)))}));const o=r.filter((e=>i.has(e.tagName)&&!a.has(e))).map((e=>[e]));return[...n,...QP(o,.6)].filter((e=>e.length>0))}function QP(e,t){const r=new Map;e.forEach(((e,t)=>{e.forEach((e=>{r.set(e.tagName,t)}))}));const n=e.map((t=>{const n=new Uint8Array(e.length);return t.forEach((e=>{e.dependents.forEach((e=>{const t=r.get(e);void 0!==t&&(n[t]=1)}))})),t.forEach((e=>{const t=r.get(e.tagName);void 0!==t&&(n[t]=0)})),n})),i=[],a=new Uint8Array(e.length);for(let r=0;r<n.length;r++)if(0===a[r]){const o=[...e[r]];a[r]=1;for(let i=r+1;i<n.length;i++)0===a[i]&&ZP(n[r],n[i])>=t&&(o.push(...e[i]),a[i]=1);i.push(o)}return i}function ZP(e,t){let r=0,n=0;for(let i=0;i<e.length;i++)1!==e[i]&&1!==t[i]||(r++,e[i]===t[i]&&n++);return n/r}const eI=(e,t)=>r=>n=>{const i=[],a=aF(e,n),o=s=>{if(p.isClassDeclaration(s)){const r=oF(e,n,s);if(null!=r)return((e,t,r,n,i)=>{const a=((e,t,r,n,i)=>{const a=HF(r);return DP(a,n,i),kP(a,n,i),XF(a,i),zF(a,n),"static"===e.style&&((e,t)=>{const r=AP(t,!1);if(r){const n=p.createStatement(p.createAssignment(p.createPropertyAccess(p.createIdentifier(t.componentClassName),"style"),r));e.push(n)}})(t,i),a})(e,t,r,n,i);return GF(e,r,r.heritageClauses,a)})(t,i,s,a,r)}return p.visitEachChild(s,o,r)};return n=p.visitEachChild(n,o,r),a.cmps.length>0&&(n=RF(t,n,a)),a.isLegacy&&wF(a),n=OF(t,n,a.coreRuntimeApis,t.coreImportPath),i.length>0&&(n=p.updateSourceFileNode(n,[...n.statements,...i])),n},tI=async(e,t,r,n)=>{if(null==e)return null;const{output:i}=await e.generate(t);return i.map((e=>{if("chunk"===e.type){const i=Object.keys(e.modules).some((e=>e.includes(_N)));return{type:"chunk",fileName:e.fileName,map:e.map,code:e.code,moduleFormat:t.format,entryKey:e.name,imports:e.imports,isEntry:!!e.isEntry,isComponent:!!e.isEntry&&n.some((t=>t.entryKey===e.name)),isBrowserLoader:e.isEntry&&e.name===r.fsNamespace,isIndex:e.isEntry&&"index"===e.name,isCore:i}}return{type:"asset",fileName:e.fileName,content:e.source}}))},rI=async(e,t,r,n,i,a,o,s,c)=>{var l;if(!Array.isArray(i)||0===i.length)return[];const u=e.minifyJs&&s,d=a.filter((e=>"chunk"===e.type)),p=d.filter((e=>e.isComponent)),_=d.filter((e=>!e.isComponent&&!e.isEntry)),f=await Promise.all(p.map((a=>cI(e,t,r,a,n,i,o,u,s,c))));(null===(l=e.extras)||void 0===l?void 0:l.experimentalImportInjection)&&!s&&nI(d,f),await Promise.all(_.map((a=>lI(e,t,r,a,n,i,o,u,s))));const m=dI(f),g=d.filter((e=>!e.isComponent&&e.isEntry));return await Promise.all(g.map((a=>uI(e,t,r,a,n,i,m,o,u,s)))),await Promise.all(a.filter((e=>"asset"===e.type)).map((e=>Promise.all(i.map((r=>t.fs.writeFile($e(r,e.fileName),e.content))))))),f},nI=(e,t)=>{e.filter(iI).forEach((e=>{const r=aI(e)?sI:oI;e.code=e.code.replace("/*!__STENCIL_STATIC_IMPORT_SWITCH__*/",`\n if (!hmrVersionId || !BUILD.hotModuleReplacement) {\n const processMod = importedModule => {\n cmpModules.set(bundleId, importedModule);\n return importedModule[exportName];\n }\n switch(bundleId) {\n ${t.map((e=>r(e.output.bundleId))).join("")}\n }\n }`)}))},iI=e=>e.isCore&&"index"===e.entryKey&&("es"===e.moduleFormat||"esm"===e.moduleFormat||aI(e)),aI=e=>"cjs"===e.moduleFormat||"commonjs"===e.moduleFormat,oI=e=>`\n case '${e}':\n return import(\n /* webpackMode: "lazy" */\n './${e}.entry.js').then(processMod, consoleError);`,sI=e=>`\n case '${e}':\n return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(\n /* webpackMode: "lazy" */\n './${e}.entry.js')); }).then(processMod, consoleError);`,cI=async(e,t,r,n,i,a,o,s,c,l)=>{const u=r.entryModules.find((e=>e.entryKey===n.entryKey)),d=e.hashFileNames&&c,{code:p,sourceMap:_}=await mI(e,t,r,o,s,!1,c,n.code,n.map),f=await(async(e,t,r,n,i,a,o,s,c)=>{const l=await(async(e,t,r,n,i)=>{if(r)return`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${i}`;const a=t.split(".");let o=a[0];return a.length>2&&(o=`${o}_${a.length-1}`),o+i})(e,i.entryKey,a,o,c),u=`${l}.entry.js`;return s&&(o+=we(u)),await Promise.all(n.map((e=>{t.fs.writeFile($e(e,u),o,{outputTargetType:r}),s&&t.fs.writeFile($e(e,u)+".map",JSON.stringify(s),{outputTargetType:r})}))),{bundleId:l,fileName:u,code:o}})(e,t,i,a,u,d,p,_,l);return{rollupResult:n,entryKey:n.entryKey,cmps:u.cmps,output:f}},lI=async(e,t,r,n,i,a,o,s,c)=>{const{code:l,sourceMap:u}=await mI(e,t,r,o,s,n.isCore,c,n.code,n.map);await Promise.all(a.map((e=>{const r=$e(e,n.fileName);let a=l;n.map&&(a=l+we(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(u),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},uI=async(e,t,r,n,i,a,o,s,c,l)=>{if(l&&["loader"].includes(n.entryKey))return;const u=n.code.replace("[/*!__STENCIL_LAZY_DATA__*/]",`${o}`),{code:d,sourceMap:p}=await mI(e,t,r,s,c,!1,l,u,n.map);await Promise.all(a.map((e=>{const r=$e(e,n.fileName);let a=d;return p&&(a=d+we(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(p),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},dI=e=>{const t=e.slice().sort(_I).map(pI);return D(t)},pI=e=>[e.output.bundleId,e.cmps.slice().sort(fI).map((e=>S(e,!0)))],_I=(e,t)=>{const r=e.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]),n=t.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]);if(e.cmps.some((e=>n.includes(e.tagName))))return 1;if(t.cmps.some((e=>r.includes(e.tagName))))return-1;const i=e.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]),a=t.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]);if(e.cmps.some((e=>a.includes(e.tagName))))return-1;if(t.cmps.some((e=>i.includes(e.tagName))))return 1;if(r.length<n.length)return-1;if(r.length>n.length)return 1;if(i.length>a.length)return-1;if(i.length<a.length)return 1;const o=e.cmps.map((e=>e.tagName)),s=t.cmps.map((e=>e.tagName));if(o.length>s.length)return-1;if(o.length<s.length)return 1;const c=o.sort().join("."),l=s.sort().join(".");return c<l?-1:c>l?1:0},fI=(e,t)=>e.directDependents.includes(t.tagName)?1:t.directDependents.includes(e.tagName)?-1:e.directDependencies.includes(t.tagName)?1:t.directDependencies.includes(e.tagName)?-1:e.dependents.includes(t.tagName)?1:t.dependents.includes(e.tagName)?-1:e.dependencies.includes(t.tagName)?1:t.dependencies.includes(e.tagName)||e.dependents.length<t.dependents.length?-1:e.dependents.length>t.dependents.length?1:e.dependencies.length>t.dependencies.length?-1:e.dependencies.length<t.dependencies.length?1:e.tagName<t.tagName?-1:e.tagName>t.tagName?1:0,mI=async(e,t,r,n,i,a,o,s,c)=>{let l=Ne(c);const u=o||!((e,t)=>(e=>null!=e.packageJson&&null!=e.packageJson.dependencies?Object.keys(e.packageJson.dependencies).filter((e=>!Le.includes(e))):[])(e).includes(t))(r,"tslib"),d=await Ll(e,t,{input:s,sourceMap:l,isCore:a,sourceTarget:n,inlineHelpers:u,minify:i});return r.diagnostics.push(...d.diagnostics),"string"==typeof d.output&&(s=d.output,l=d.sourceMap),{code:s,sourceMap:l}},gI=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.cjsDir));if(a.length>0){const i=a[0].type,o={banner:Ie(e),format:"cjs",entryFileNames:"[name].cjs.js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await tI(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.cjsDir));r.commonJsComponentBundle=await rI(e,t,r,i,n,s,"es2017",!1,".cjs"),await hI(t,s,a)}}return{name:"cjs",buildCtx:r}},hI=(e,t,r)=>{const n=t.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async t=>{if(t.cjsIndexFile){const r=$e(t.cjsDir,n),i=`module.exports = require('${Ed(t.cjsIndexFile,r)}');\n`;await e.fs.writeFile(t.cjsIndexFile,i,{outputTargetType:t.type})}})))},yI=async(e,t,r,n,i)=>{const a=e.buildEs5?i.filter((e=>!!e.esmEs5Dir&&!e.isBrowserBuild)):[],o=i.filter((e=>!!e.esmDir&&!e.isBrowserBuild));if(o.length+a.length>0){const s={banner:Ie(e),format:"es",entryFileNames:"[name].js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},c=o[0].type,l=await tI(n,s,e,r.entryModules);if(null!=l){const n=o.map((e=>e.esmDir));r.esmComponentBundle=await rI(e,t,r,c,n,l,"es2017",!1,"");const s=a.map((e=>e.esmEs5Dir));r.es5ComponentBundle=await rI(e,t,r,c,s,l,"es5",!1,""),await vI(e,t,o),await bI(e,t,i,l)}}return{name:"esm",buildCtx:r}},vI=async(e,t,r)=>{const n=r.filter((e=>e.polyfills)).map((e=>e.esmDir));if(0===n.length)return;const i=$e(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills"),a=await t.fs.readdir(i);await Promise.all(n.map((e=>Promise.all(a.map((r=>t.fs.copyFile(r.absPath,$e(e,"polyfills",r.relPath))))))))},bI=(e,t,r,n)=>{const i=n.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async r=>{if(r.esmDir&&r.esmIndexFile){const n=e.buildEs5&&r.esmEs5Dir?$e(r.esmEs5Dir,i):$e(r.esmDir,i),a=`export * from '${Ed(r.esmIndexFile,n)}';`;await t.fs.writeFile(r.esmIndexFile,a,{outputTargetType:r.type})}})))},xI=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.esmDir&&!!e.isBrowserBuild));if(a.length){const i=a[0].type,o={banner:Ie(e),format:"es",entryFileNames:"[name].esm.js",chunkFileNames:e.hashFileNames?"p-[hash].js":"[name]-[hash].js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap};e.extras.dynamicImportShim&&(o.dynamicImportFunction=`__sc_import_${e.fsNamespace.replace(/\s|-/g,"_")}`);const s=await tI(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.esmBrowserComponentBundle=await rI(e,t,r,i,n,s,"es2017",!0,"")}}return{name:"esm-browser",buildCtx:r}},EI=async(e,t,r)=>{const n=$e(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills",r);return t.fs.readFile(n)},SI=["core-js.js","dom.js","es5-html-element.js","system.js"],DI=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.systemDir));if(a.length>0){const o={banner:Ie(e),format:"system",entryFileNames:e.hashFileNames?"p-[hash].system.js":"[name].system.js",chunkFileNames:e.hashFileNames?"p-[hash].system.js":"[name]-[hash].system.js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await tI(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.systemComponentBundle=await rI(e,t,r,i[0].type,n,s,"es5",!0,".system"),await TI(e,t,s,a)}}return{name:"system",buildCtx:r}},TI=(e,t,r,n)=>{const i=r.find((e=>"chunk"===e.type&&e.isBrowserLoader)).fileName;return Promise.all(n.map((r=>CI(e,t,i,r))))},CI=async(e,t,r,n)=>{if(n.systemLoaderFile){const i=$e(n.systemDir,r),a=Ed(n.systemLoaderFile,i),o=await kI(e,t,a,n.polyfills);await t.fs.writeFile(n.systemLoaderFile,o,{outputTargetType:n.type})}},kI=async(e,t,r,n)=>`\n'use strict';\n(function () {\n var currentScript = document.currentScript;\n\n // Safari 10 support type="module" but still download and executes the nomodule script\n if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {\n\n ${n?await(async(e,t)=>{const r=SI.slice();return e.extras.cssVarsShim&&r.push("css-shim.js"),(await Promise.all(r.map((r=>EI(e,t,r))))).join("\n").trim()})(e,t):"/* polyfills excluded */"}\n\n // Figure out currentScript (for IE11, since it does not support currentScript)\n var regex = /\\/${e.fsNamespace}(\\.esm)?\\.js($|\\?|#)/;\n var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {\n return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "${e.fsNamespace}";\n });\n\n var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';\n var start = function() {\n // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL\n var url = new URL('${r}', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));\n System.import(url.href);\n };\n\n if (window.__cssshim) {\n window.__cssshim.i().then(start);\n } else {\n start();\n }\n\n // Note: using .call(window) here because the self-executing function needs\n // to be scoped to the window object for the ES6Promise polyfill to work\n }\n}).call(window);\n`,AI=(e,t)=>{const r=dP(t);r.lazyLoad=!0,r.hydrateServerSide=!1,r.cssVarShim=e.extras.cssVarsShim,r.transformTagName=e.extras.tagNameTransform,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,r.initializeNextTick=e.extras.initializeNextTick;const n=e.outputTargets.some(Id);return r.hydrateClientSide=n,_P(e,r),r},NI=async(e,t,r)=>{const n=e.outputTargets.filter(Nd);if(0===n.length)return;const i="generate lazy"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);try{const i={id:"lazy",platform:"client",conditionals:AI(e,r.components),customTransformers:wI(e,t),inlineWorkers:e.outputTargets.some(Dd),inputs:{[e.fsNamespace]:xN,loader:EN,index:SN},loader:{[EN]:PI(!1),[xN]:PI(!0)}};!((e,t)=>{try{const r=YP(e,t);t.entryModules=r.map(FI)}catch(e){re(t.diagnostics,e)}t.debug(`generateEntryModules, ${t.entryModules.length} entryModules`)})(e,r),r.entryModules.forEach((e=>{i.inputs[e.entryKey]=e.entryKey}));const a=await Rw(e,t,r,i);null!=a&&((await Promise.all([xI(e,t,r,a,n),yI(e,t,r,a,n),DI(e,t,r,a,n),gI(e,t,r,a,n)])).forEach((e=>{"cjs"===e.name?r.commonJsComponentBundle=e.buildCtx.commonJsComponentBundle:"system"===e.name?r.systemComponentBundle=e.buildCtx.systemComponentBundle:"esm"===e.name?(r.esmComponentBundle=e.buildCtx.esmComponentBundle,r.es5ComponentBundle=e.buildCtx.es5ComponentBundle):"esm-browser"===e.name&&(r.esmBrowserComponentBundle=e.buildCtx.esmBrowserComponentBundle,r.buildResults=e.buildCtx.buildResults,r.components=e.buildCtx.components)})),null!=r.esmBrowserComponentBundle&&(r.componentGraph=((e,t)=>{const r=new Map;return e.forEach((e=>{const n=t.find((t=>t.cmps.includes(e)));n&&r.set(tu(e.tagName),n.rollupResult.imports)})),r})(r.components,r.esmBrowserComponentBundle)))}catch(e){re(r.diagnostics,e)}a.finish(`${i} finished`)},wI=(e,t)=>{const r={coreImportPath:_N,componentExport:"lazy",componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[lP(r.coreImportPath),eI(t,r),pN(t)]};function FI(e){const t=(e=j(e,(e=>e.tagName))).map((e=>e.tagName)).join(".")+".entry";return{cmps:e,entryKey:t}}const PI=e=>{const t=new wu("");return t.append("import { bootstrapLazy } from '@stencil/core';\n"),e?(t.append("import { patchBrowser } from '@stencil/core/internal/client/patch-browser';\n"),t.append(`import { globalScripts } from '${mN}';\n`),t.append("patchBrowser().then(options => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append("});\n")):(t.append("import { patchEsm } from '@stencil/core/internal/client/patch-esm';\n"),t.append(`import { globalScripts } from '${mN}';\n`),t.append("export const defineCustomElements = (win, options) => {\n"),t.append(" if (typeof window === 'undefined') return Promise.resolve();\n"),t.append(" return patchEsm().then(() => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append(" });\n"),t.append("};\n")),t.toString()},II=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(wd);if(0===n.length)return;const i=r.createTimeSpan("generate angular proxies started",!0);await Promise.all(n.map((n=>OI(e,t,r,n)))),i.finish("generate angular proxies finished")},OI=(e,t,r,n)=>{const i=MI(n.excludeComponents,r.components);return Promise.all([RI(e,t,r,i,n),WI(t,i,n),JI(t,n)])},MI=(e=[],t)=>j(t,(e=>e.tagName)).filter((t=>!e.includes(t.tagName)&&!t.internal)),RI=async(e,t,r,n,i)=>{const a=LI(n),o=We(r.packageJson.types),s=$e(e.rootDir,o,$I),c=Ed(i.directivesProxyFile,s,".d.ts"),l=i.componentCorePackage?`import { Components } from '${i.componentCorePackage}';`:`import { Components } from '${c}';`,u=["/* eslint-disable */\n/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';",zI(i),l,a].join("\n")+"\n",d=p.createSourceFile($I,u,p.ScriptTarget.Latest,!1),_=p.createPrinter({newLine:p.NewLineKind.LineFeed}).printFile(d);return t.fs.writeFile(i.directivesProxyFile,_)},LI=e=>e.map(jI).join("\n"),BI=(e,t)=>{const r=e.length>0,n=t.length>0,i=[];return r||n?(r&&i.push(`inputs: ['${e.join("', '")}']`),n&&i.push(`'methods': ['${t.join("', '")}']`),`@ProxyCmp({${i.join(", ")}})`):""},jI=e=>{const t=UI(e),r=VI(e),n=KI(e),i=r.length>0,a=[`selector: '${e.tagName}'`,"changeDetection: ChangeDetectionStrategy.OnPush","template: '<ng-content></ng-content>'"];t.length>0&&a.push(`inputs: ['${t.join("', '")}']`);const o=R(e.tagName),s=[`\nexport declare interface ${o} extends Components.${o} {}\n${BI(t,n)}\n@Component({ ${a.join(", ")} })\nexport class ${o} {`];return r.forEach((e=>{s.push(` ${e}!: EventEmitter<CustomEvent>;`)})),s.push(" protected el: HTMLElement;"),s.push(" constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;"),i&&s.push(` proxyOutputs(this, this.el, ['${r.join("', '")}']);`),s.push(" }"),s.push("}"),s.join("\n")},UI=e=>[...e.properties.filter((e=>!e.internal)).map((e=>e.name)),...e.virtualProperties.map((e=>e.name))].sort(),VI=e=>e.events.filter((e=>!e.internal)).map((e=>e.name)),KI=e=>e.methods.filter((e=>!e.internal)).map((e=>e.name)),zI=e=>e.directivesUtilsFile?`import { ProxyCmp, proxyOutputs } from '${Ed(e.directivesProxyFile,e.directivesUtilsFile,".ts")}';\n`:HI.replace(/export function/g,"function"),WI=(e,t,r)=>{if(!r.directivesArrayFile)return Promise.resolve();const n=`\nimport type * as d from '${Ed(r.directivesArrayFile,r.directivesProxyFile,".ts")}';\n\nexport const DIRECTIVES = [\n${t.map((e=>R(e.tagName))).map((e=>` d.${e}`)).join(",\n")}\n];\n`;return e.fs.writeFile(r.directivesArrayFile,n)},JI=async(e,t)=>{t.directivesUtilsFile&&await e.fs.writeFile(t.directivesUtilsFile,"/* eslint-disable */\n/* tslint:disable */\n"+HI)},HI="import { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach(item => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n }\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach(methodName => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() =>\n this.el[methodName].apply(this.el, args)\n );\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));\n}\n\nexport function ProxyCmp(opts: { inputs?: any; methods?: any }) {\n const decorator = function(cls: any){\n if (opts.inputs) {\n proxyInputs(cls, opts.inputs);\n }\n if (opts.methods) {\n proxyMethods(cls, opts.methods);\n }\n return cls;\n };\n return decorator;\n}\n",$I="components.d.ts",GI=async(e,t,r)=>{const n=r.filter(Bd);0!==n.length&&await Promise.all(n.map((async r=>{try{await r.generator(t,e)}catch(t){e.logger.error(`uncaught custom docs error: ${t}`)}})))},qI="\x3c!-- Auto Generated Below --\x3e",XI=async(e,t,r)=>{const n=await Promise.all(r.moduleFiles.map((async n=>{const i=n.sourceFilePath,a=me(We(i)),o=me($e(a,"readme.md")),s=me($e(a,"usage")),c=await dO(t,o),l=await _O(t,s);return n.cmps.filter((e=>!e.internal&&!e.isCollectionDependency)).map((t=>({dirPath:a,filePath:Xe(e.rootDir,i),fileName:ze(i),readmePath:o,usagesDir:s,tag:t.tagName,readme:c,usage:l,docs:pO(c,t.docs),docsTags:t.docs.tags,encapsulation:QI(t),dependents:t.directDependents,dependencies:t.directDependencies,dependencyGraph:YI(t,r.components),deprecation:sO(t.docs.tags),props:ZI(t),methods:nO(t.methods),events:iO(t.events),styles:aO(t),slots:cO(t.docs.tags),parts:lO(t.htmlParts,t.docs.tags),listeners:oO(t.listeners)})))})));return j(U(n),(e=>e.tag))},YI=(e,t)=>{const r={};return!function e(n){if(!r[n]){const i=t.find((e=>e.tagName===n)).directDependencies;i.length>0&&(r[n]=i,i.forEach(e))}}(e.tagName),e.directDependents.forEach((t=>{r[t]&&!r[t].includes(e.tagName)?r[t].push(e.tagName):r[t]=[e.tagName]})),r},QI=e=>"shadow"===e.encapsulation?"shadow":"scoped"===e.encapsulation?"scoped":"none",ZI=e=>j([...eO(e.properties),...tO(e.virtualProperties)],(e=>e.name)),eO=e=>e.filter((e=>!e.internal)).map((e=>({name:e.name,type:e.complexType.resolved,mutable:e.mutable,attr:e.attribute,reflectToAttr:!!e.reflect,docs:e.docs.text,docsTags:e.docs.tags,default:e.defaultValue,deprecation:sO(e.docs.tags),values:rO(e.complexType.resolved),optional:e.optional,required:e.required}))),tO=e=>e.map((e=>({name:e.name,type:e.type,mutable:!1,attr:e.name,reflectToAttr:!1,docs:e.docs,docsTags:[],default:void 0,deprecation:void 0,values:rO(e.type),optional:!0,required:!1}))),rO=e=>{if("string"==typeof e){const t=e.split("|").map((e=>e.trim())),r=[];return t.forEach((e=>"true"===e?(r.push({value:"true",type:"boolean"}),void 0):"false"===e?(r.push({value:"false",type:"boolean"}),void 0):Number.isNaN(parseFloat(e))?/^("|').+("|')$/gm.test(e)?(r.push({value:e.slice(1,-1),type:"string"}),void 0):(r.push({type:e}),void 0):(r.push({value:e,type:"number"}),void 0))),r}return[]},nO=e=>j(e,(e=>e.name)).filter((e=>!e.internal)).map((e=>({name:e.name,returns:{type:e.complexType.return,docs:e.docs.tags.filter((e=>"return"===e.name||"returns"===e.name)).map((e=>e.text)).join("\n")},signature:`${e.name}${e.complexType.signature}`,parameters:[],docs:e.docs.text,docsTags:e.docs.tags,deprecation:sO(e.docs.tags)}))),iO=e=>j(e,(e=>e.name.toLowerCase())).filter((e=>!e.internal)).map((e=>({event:e.name,detail:e.complexType.resolved,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs.text,docsTags:e.docs.tags,deprecation:sO(e.docs.tags)}))),aO=e=>e.styleDocs?j(e.styleDocs,(e=>e.name.toLowerCase())).map((e=>({name:e.name,annotation:e.annotation||"",docs:e.docs||""}))):[],oO=e=>e.map((e=>({event:e.name,target:e.target,capture:e.capture,passive:e.passive}))),sO=e=>{const t=e.find((e=>"deprecated"===e.name));if(t)return t.text||""},cO=e=>j(uO("slot",e).map((([e,t])=>({name:e,docs:t}))),(e=>e.name)),lO=(e,t)=>{const r=uO("part",t).map((([e,t])=>({name:e,docs:t}))),n=e.map((e=>({name:e,docs:""})));return j(V([...r,...n],(e=>e.name)),(e=>e.name))},uO=(e,t)=>t.filter((t=>t.name===e&&t.text)).map((({text:e})=>{const[t,...r]=(" "+e).split(" - ");return[t.trim(),r.join(" - ").trim()]})),dO=async(e,t)=>{try{const r=await e.fs.readFile(t),n=r.indexOf(qI)-1;if(n>=0)return r.substring(0,n)}catch(e){}},pO=(e,t)=>{const r=t.text;if(""!==r||!e)return r;let n=!1;const i=e.split("\n"),a=[];for(const e of i){const t=e.startsWith("#");if(t&&n)break;t||n||(n=!0),n&&a.push(e)}return a.join("\n").trim()},_O=async(e,t)=>{const r={};try{const n=await e.fs.readdir(t),i={};await Promise.all(n.map((async t=>{if(!t.isFile)return;const r=ze(t.relPath);if(!r.toLowerCase().endsWith(".md"))return;const n=r.split(".");n.pop();const a=n.join(".");i[a]=await e.fs.readFile(t.absPath)}))),Object.keys(i).sort().forEach((e=>{r[e]=i[e]}))}catch(e){}return r},fO=async(e,t,r,n)=>{const i=n.filter(Ld);if(0===i.length)return;const a=$e(e.sys.getCompilerExecutingPath(),"..","..","internal","stencil-public-docs.d.ts"),o=`\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * DO NOT MODIFY IT MANUALLY\n */\n${await t.fs.readFile(a)}\ndeclare const _default: JsonDocs;\nexport default _default;\n`,s={...r,components:r.components.map((e=>({filePath:e.filePath,encapsulation:e.encapsulation,tag:e.tag,readme:e.readme,docs:e.docs,docsTags:e.docsTags,usage:e.usage,props:e.props,methods:e.methods,events:e.events,listeners:e.listeners,styles:e.styles,slots:e.slots,parts:e.parts,dependents:e.dependents,dependencies:e.dependencies,dependencyGraph:e.dependencyGraph,deprecation:e.deprecation})))},c=JSON.stringify(s,null,2);await Promise.all(i.map((e=>mO(t,e,c,o))))},mO=async(e,t,r,n)=>Promise.all([e.fs.writeFile(t.file,r),t.typesFile?e.fs.writeFile(t.typesFile,n):Promise.resolve()]);class gO{constructor(){this.rows=[]}addHeader(e){this.addRow(e,!0)}addRow(e,t=!1){const r=[];e.forEach((e=>{const t={text:hO(e),width:e.length};r.push(t)})),this.rows.push({columns:r,isHeader:t})}toMarkdown(){return yO(this.rows)}}const hO=e=>(e=e.replace(/\r?\n/g," ")).replace(/\|/g,"\\|"),yO=e=>{const t=[];if(0===e.length)return t;xO(e),EO(e);const r=e.find((e=>e.isHeader));if(r){const e=bO(r);t.push(e),t.push(vO(r))}return e.filter((e=>!e.isHeader)).forEach((e=>{t.push(bO(e))})),t},vO=e=>{const t={columns:[],isHeader:!1};return e.columns.forEach((e=>{const r={text:"",width:e.width};for(;r.text.length<r.width;)r.text+="-";t.columns.push(r)})),bO(t)},bO=e=>{const t=["| "];return e.columns.forEach((e=>{t.push(e.text),t.push(" | ")})),t.join("").trim()},xO=e=>{let t=0;e.forEach((e=>{e.columns.length>t&&(t=e.columns.length)})),e.forEach((e=>{for(;e.columns.length<t;)e.columns.push({text:"",width:0})}))},EO=e=>{const t=e[0].columns.length;for(let r=0;r<t;r++){let t=0;e.forEach((e=>{const n=e.columns[r];n.text.length>t&&(t=n.text.length)})),e.forEach((e=>{const n=e.columns[r];for(n.width=t;n.text.length<t;)n.text+=" "}))}},SO=e=>{const t=[];if(0===e.length)return t;t.push("## CSS Custom Properties"),t.push("");const r=new gO;return r.addHeader(["Name","Description"]),e.forEach((e=>{r.addRow([`\`${e.name}\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},DO=(e,t,r)=>{const n=r.find((e=>e.tag===t));if(n){const r=me(Xe(e.dirPath,n.dirPath));return`[${t}](${r})`}return t},TO=e=>{const t=[];if(0===e.length)return t;t.push("## Events"),t.push("");const r=new gO;return r.addHeader(["Event","Description","Type"]),e.forEach((e=>{r.addRow([`\`${e.event}\``,CO(e),`\`CustomEvent<${e.detail}>\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},CO=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,kO=e=>{const t=[];return 0===e.length||(t.push("## Methods"),t.push(""),e.forEach((e=>{if(t.push(`### \`${e.signature}\``),t.push(""),t.push(AO(e)),t.push(""),e.parameters.length>0){const r=new gO;r.addHeader(["Name","Type","Description"]),e.parameters.forEach((({name:e,type:t,docs:n})=>{r.addRow(["`"+e+"`","`"+t+"`",n])})),t.push("#### Parameters"),t.push(""),t.push(...r.toMarkdown()),t.push("")}e.returns&&(t.push("#### Returns"),t.push(""),t.push(`Type: \`${e.returns.type}\``),t.push(""),t.push(e.returns.docs),t.push(""))})),t.push("")),t},AO=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,NO=e=>{const t=[];if(0===e.length)return t;t.push("## Shadow Parts"),t.push("");const r=new gO;return r.addHeader(["Part","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},wO=e=>{const t=[];if(0===e.length)return t;t.push("## Properties"),t.push("");const r=new gO;return r.addHeader(["Property","Attribute","Description","Type","Default"]),e.forEach((e=>{r.addRow([FO(e),PO(e),IO(e),`\`${e.type}\``,`\`${e.default}\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},FO=e=>`\`${e.name}\`${e.required?" _(required)_":""}`,PO=e=>e.attr?`\`${e.attr}\``:"--",IO=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,OO=e=>{const t=[];if(0===e.length)return t;t.push("## Slots"),t.push("");const r=new gO;return r.addHeader(["Slot","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},MO=e=>{const t=[],r=RO(e);return 0===r.length||(t.push("## Usage"),r.forEach((({name:e,text:r})=>{t.push(""),t.push(`### ${L(e)}`),t.push(""),t.push(r),t.push("")})),t.push(""),t.push("")),t},RO=e=>{const t=Object.keys(e),r=new Map;t.forEach((t=>{const n=e[t].trim(),i=r.get(n)||[];i.push(t),r.set(n,i)}));const n=[];return r.forEach(((e,t)=>{n.push({name:e.join(" / "),text:t})})),n},LO=e=>void 0!==e.deprecation?[`> **[DEPRECATED]** ${e.deprecation}`,""]:[],BO=async(e,t,r,n)=>{const i=n.filter(Rd);0!==i.length&&(i.some((e=>e.strict))&&jO(e,r),await Promise.all(r.components.map((n=>(async(e,t,r,n,i)=>{const a=!!n.readme,o=a?n.readme:(e=>[`# ${e.tag}`,"","",""].join("\n"))(n);await Promise.all(r.map((async r=>{if(r.dir){const s=((e,t,r,n)=>{const i=!1!==n.dependencies?((e,t)=>{const r=[],n=Object.entries(e.dependencyGraph);if(0===n.length)return r;if(r.push("## Dependencies"),r.push(""),e.dependents.length>0){const n=e.dependents.map((r=>" - "+DO(e,r,t)));r.push("### Used by"),r.push(""),r.push(...n),r.push("")}if(e.dependencies.length>0){const n=e.dependencies.map((r=>"- "+DO(e,r,t)));r.push("### Depends on"),r.push(""),r.push(...n),r.push("")}return r.push("### Graph"),r.push("```mermaid"),r.push("graph TD;"),n.forEach((([e,t])=>{t.forEach((t=>{r.push(` ${e} --\x3e ${t}`)}))})),r.push(` style ${e.tag} fill:#f9f,stroke:#333,stroke-width:4px`),r.push("```"),r.push(""),r})(t,r):[];return[e,qI,"","",...LO(t),...MO(t.usage),...wO(t.props),...TO(t.events),...kO(t.methods),...OO(t.slots),...NO(t.parts),...SO(t.styles),...i,"----------------------------------------------","",n.footer,""].join("\n")})(o,n,i,r),c=Xe(e.srcDir,n.readmePath),l=$e(r.dir,c);(await t.fs.writeFile(l,s)).changedContent&&(a?e.logger.info(`updated readme docs: ${n.tag}`):e.logger.info(`created readme docs: ${n.tag}`))}})))})(e,t,i,n,r.components)))))},jO=(e,t)=>{t.components.forEach((t=>{t.props.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Property "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.methods.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Method "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.events.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Event "${r.event}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.parts.forEach((r=>{""===r.docs&&e.logger.warn(`Part "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)}))}))},UO=async(e,t,r)=>{const n=r.filter(jd);0!==n.length&&await Promise.all(n.map((async r=>{const n={version:1.1,tags:t.components.map((e=>({name:e.tag,description:{kind:"markdown",value:e.docs},attributes:e.props.filter((e=>void 0!==e.attr&&e.attr.length>0)).map(KO),references:VO(e,r.sourceCodeBaseUrl)})))},i=JSON.stringify(n,null,2);await e.fs.writeFile(r.file,i)})))},VO=(e,t)=>{var r;const n=uO("reference",e.docsTags).map((([e,t])=>({name:e,url:t})));if(t&&n.push({name:"Source code",url:$e(t,null!==(r=e.filePath)&&void 0!==r?r:"")}),n.length>0)return n},KO=e=>{const t={name:e.attr,description:e.docs},r=e.values.filter((e=>"string"===e.type&&void 0!==e.value)).map((e=>({name:e.value})));return r.length>0&&(t.values=r),t},zO=async(e,t,r,n,i)=>{const a=i.filter(Od);0!==a.length&&await Promise.all(a.map((async i=>{const a=r.createTimeSpan(`generating ${i.name} started`);try{await i.generator(e,t,r,n)}catch(e){re(r.diagnostics,e)}a.finish(`generate ${i.name} finished`)})))},WO=async(e,t)=>{const r=e.outputTargets.filter(Fd);0!==r.length&&await Promise.all(r.map((r=>JO(e,t,r))))},JO=async(e,t,r)=>{const n=r.dir,i=r.esmDir,a=r.esmEs5Dir||i,o=r.cjsDir;if(!n||!i||!o)return;const s=await EI(e,t,"es5-html-element.js"),c=JSON.stringify({name:e.fsNamespace+"-loader",private:!0,typings:"./index.d.ts",module:"./index.js",main:"./index.cjs.js","jsnext:main":"./index.es2017.js",es2015:"./index.es2017.js",es2017:"./index.es2017.js",unpkg:"./cdn.js"},null,2),l=$e(a,"loader.js"),u=$e(i,"loader.js"),d=$e(i,"polyfills/index.js"),p=$e(o,"loader.cjs.js"),_=`export * from '${me(Xe(n,d))}';`,f=`${Ie(e)}\n${s}\n${_}\nexport * from '${me(Xe(n,l))}';\n`,m=`${Ie(e)}\n${_}\nexport * from '${me(Xe(n,u))}';\n`,g=`${Ie(e)}\nmodule.exports = require('${me(Xe(n,p))}');\nmodule.exports.applyPolyfills = function() { return Promise.resolve() };\n`,h=$e(n,"index.d.ts");await Promise.all([t.fs.writeFile($e(n,"package.json"),c),t.fs.writeFile($e(n,"index.d.ts"),HO(h,r.componentDts)),t.fs.writeFile($e(n,"index.js"),f),t.fs.writeFile($e(n,"index.cjs.js"),g),t.fs.writeFile($e(n,"cdn.js"),g),t.fs.writeFile($e(n,"index.es2017.js"),m)])},HO=(e,t)=>`export * from '${Ed(e,t,".d.ts")}';\nexport interface CustomElementsDefineOptions {\n exclude?: string[];\n resourcesUrl?: string;\n syncQueue?: boolean;\n jmp?: (c: Function) => any;\n raf?: (c: FrameRequestCallback) => number;\n ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n}\nexport declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;\nexport declare function applyPolyfills(): Promise<void>;\n`,$O=(e,t)=>{const r=R(t.tagName);return[`import type { Components, JSX } from "${e}";`,"",`interface ${r} extends Components.${r}, HTMLElement {}`,`export const ${r}: {`,` prototype: ${r};`,` new (): ${r};`,"};","/**"," * Used to define this component and all nested components recursively."," */","export const defineCustomElement: () => void;",""].join("\n")},GO=(e,t)=>((t=Xe(e,t)).startsWith(".")||(t="."+t),me(t.replace(".d.ts",""))),qO=e=>{const t=R(e.tagName);return[`interface ${t} extends Components.${t}, HTMLElement {}`,`export const ${t}: {`,` prototype: ${t};`,` new (): ${t};`,"};",""].join("\n")},XO=(e,t)=>((t=Xe(e,t)).startsWith(".")||(t="."+t),me(t.replace(".d.ts",""))),YO=(e,t,r)=>{const n=We(t),i=Xe(n,e);let a=$e(i,tM);return a.startsWith(".")||(a=`./${a}`),a=me(a),r.includes("@stencil/core")&&(r=(r=r.replace(/(from\s*(:?'|"))@stencil\/core\/internal('|")/g,`$1${a}$2`)).replace(/(from\s*(:?'|"))@stencil\/core('|")/g,`$1${a}$2`)),r},QO=(e,t,r,n)=>{let i=n;for(const n of Object.values(e)){const e=ZO(n.path,r);if(t.hasOwnProperty(e))for(const r of t[e])i=eM(i,r)}return i},ZO=(e,t)=>(e&&e.startsWith(".")&&(e=Ye(We(t),e)),e),eM=(e,t)=>{if(!t.importName)return e;const r=new RegExp(`${t.localName}\\b(?!("|'|\`))`,"g");return e.replace(r,t.importName)},tM="stencil-public-runtime",rM=`${tM}.d.ts`,nM=(e,t,r,n)=>e.complexType.original?`(event: ${t}<${QO(e.complexType.references,r,n,e.complexType.original)}>) => void`:"CustomEvent";function iM(e,t,r){return QO(e.complexType.references,t,r,e.complexType.signature)}function aM(e,t,r){return QO(e.complexType.references,t,r,e.complexType.original)}const oM=(e,t,r)=>{const n=j(e,(e=>e.name)).filter((e=>!(t&&!r&&e.internal))).reduce(((e,r)=>{r.jsdoc&&(e.push(" /**"),e.push(...r.jsdoc.split("\n").map((e=>" * "+e))),e.push(" */"));const n=t?!r.required:r.optional;return e.push(` "${r.name}"${n?"?":""}: ${r.type};`),e}),[]).join("\n");return""!==n?`${n}\n`:""},sM=(e,t)=>{const r=e.localName.toLowerCase(),n=t.localName.toLowerCase();return r<n?-1:r>n?1:e.localName<t.localName?-1:e.localName>t.localName?1:0},cM=async(e,t,r,n)=>{const i=r.createTimeSpan("generated app types started",!0),a="src"===n;let o=lM(e,r,a),s=(e=>$e(e.srcDir,cp))(e);a||(s=Ye(n,cp),o=YO(n,s,o));const c=(await t.fs.writeFile(s,o,{immediateWrite:!0})).changedContent,l=Xe(e.rootDir,s);return c&&e.logger.debug(`generateAppTypes: ${l} has changed`),i.finish(`generated app types finished: ${l}`),c},lM=(e,t,r)=>{let n={};const i=[],a=new Map,o=t.components.filter((e=>!e.isCollectionDependency)),s=[],c=o.map((e=>(n=((e,t,r,n)=>{const i=((e,t)=>(r,n)=>(Object.keys(n).map((e=>[e,n[e]])).forEach((([n,i])=>{let a;if("global"===i.location)return;if("local"===i.location?a=t:"import"===i.location&&(a=i.path),a.startsWith(".")&&(a=Ye(We(t),a)),r[a]=r[a]||[],r[a].find((e=>e.localName===n)))return;const o=(t=>{const r=e.get(t);return void 0===r?(e.set(t,1),t):(e.set(t,r+1),`${t}${r}`)})(n);r[a].push({localName:n,importName:o})})),r))(t,n);return[...r.properties,...r.events,...r.methods].filter((e=>e.complexType&&e.complexType.references)).reduce(((e,t)=>i(e,t.complexType.references)),e)})(n,a,e,e.sourceFilePath),e.events.length>0&&s.push((e=>{const t=e.tagName.toLowerCase(),r=R(t),n=`HTML${r}Element`,i=[`export interface ${r}CustomEvent<T> extends CustomEvent<T> {`," detail: T;",` target: ${n};`,"}"];return{isDep:e.isCollectionDependency,tagName:t,tagNameAsPascal:r,htmlElementName:n,component:i.join("\n"),jsx:i.join("\n"),element:i.join("\n")}})(e)),((e,t,r)=>{const n=e.tagName.toLowerCase(),i=R(n),a=`HTML${i}Element`,o=((e,t)=>[...e.properties.map((r=>({name:r.name,type:aM(r,t,e.sourceFilePath),optional:r.optional,required:r.required,internal:r.internal,jsdoc:Me(r.docs)}))),...e.virtualProperties.map((e=>({name:e.name,type:e.type,optional:!0,required:!1,jsdoc:e.docs,internal:!1})))])(e,t),s=((e,t)=>e.methods.map((r=>({name:r.name,type:iM(r,t,e.sourceFilePath),optional:!1,required:!1,internal:r.internal,jsdoc:Me(r.docs)}))))(e,t),c=((e,t,r)=>e.events.map((n=>({name:`on${L(n.name)}`,type:nM(n,`${r}CustomEvent`,t,e.sourceFilePath),optional:!1,required:!1,internal:n.internal,jsdoc:Me(n.docs)}))))(e,t,i),l=oM([...o,...s],!1,r);return{isDep:e.isCollectionDependency,tagName:n,tagNameAsPascal:i,htmlElementName:a,component:` interface ${i} {\n${l} }`,jsx:` interface ${i} {\n${oM([...o,...c],!0,r)} }`,element:[` interface ${a} extends Components.${i}, HTMLStencilElement {`," }",` var ${a}: {`,` prototype: ${a};`,` new (): ${a};`," };"].join("\n")}})(e,n,r))));return i.push("/* eslint-disable */\n/* tslint:disable */\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * It contains typing information for all components that exist in this project.\n */"),i.push('import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";'),i.push(...Object.keys(n).map((t=>{const r=n[t];let i;return i=He(t)?me("./"+Xe(e.srcDir,t)).replace(/\.(tsx|ts)$/,""):t,`import { ${r.sort(sM).map((e=>e.localName===e.importName?`${e.importName}`:`${e.localName} as ${e.importName}`)).join(", ")} } from "${i}";`}))),i.push("export namespace Components {"),i.push(...c.map((e=>`${e.component}`))),i.push("}"),i.push(...s.map((e=>`${e.component}`))),i.push("declare global {"),i.push(...c.map((e=>e.element))),i.push(" interface HTMLElementTagNameMap {"),i.push(...c.map((e=>` "${e.tagName}": ${e.htmlElementName};`))),i.push(" }"),i.push("}"),i.push("declare namespace LocalJSX {"),i.push(...c.map((e=>` ${e.jsx}`))),i.push(" interface IntrinsicElements {"),i.push(...c.map((e=>` "${e.tagName}": ${e.tagNameAsPascal};`))),i.push(" }"),i.push("}"),i.push("export { LocalJSX as JSX };"),i.push('declare module "@stencil/core" {'),i.push(" export namespace JSX {"),i.push(" interface IntrinsicElements {"),i.push(...c.map((e=>` "${e.tagName}": LocalJSX.${e.tagNameAsPascal} & JSXBase.HTMLAttributes<${e.htmlElementName}>;`))),i.push(" }"),i.push(" }"),i.push("}"),i.join("\n")+"\n"},uM=async(e,t,r,n)=>{const i=(await t.fs.readdir(e.srcDir,{recursive:!1})).filter((e=>e.isFile&&(e=>{const t=e.toLowerCase().split(".");return t.length>2&&"d"===t[t.length-2]&&"ts"===t[t.length-1]})(e.absPath))),a=(await Promise.all(i.map((async r=>{const i=Xe(e.srcDir,r.absPath),a=$e(n.typesDir,i),o=await t.fs.readFile(r.absPath),s=YO(n.typesDir,a,o);return await t.fs.writeFile(a,s),a})))).slice(-1)[0],o=n.typesDir;await cM(e,t,r,o);const{typesDir:s}=n;a&&(await(async(e,t,r,n)=>{const i=e.outputTargets.filter(kd);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=$e(i.dir,"index.d.ts"),o=XO(i.dir,n),s=r.components.filter((e=>!e.isCollectionDependency)),c=[`/* ${e.namespace} custom elements bundle */`,"",`import type { Components, JSX } from "${o}";`,"",...s.map(qO),"/**"," * Utility to define all custom elements within this package using the tag name provided in the component's source. "," * When defining each custom element, it will also check it's safe to define by:"," *",' * 1. Ensuring the "customElements" registry is available in the global context (window).'," * 2. The component tag name is not already defined."," *"," * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) "," * method instead to define custom elements individually, or to provide a different tag name."," */","export declare const defineCustomElements: (opts?: any) => void;","","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bunding, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," ce?: (eventName: string, opts?: any) => CustomEvent;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;","","export type { Components, JSX };",""],l=$e(e.srcDir,"index.ts");if(await t.fs.access(l)){const e=me(We(o));c.push(`export * from '${e}';`)}else c.push(`export * from '${o}';`);await t.fs.writeFile(a,c.join("\n")+"\n",{outputTargetType:i.type})})(e,t,r,n,i))))})(e,t,r,a),await(async(e,t,r,n)=>{const i=e.outputTargets.filter(Cd);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=$e(i.dir,"index.d.ts"),o=Xe(i.dir,n),s=r.components.filter((e=>!e.isCollectionDependency)),c=[`/* ${e.namespace} custom elements */`,...s.map((t=>{const r=R(t.tagName),n=t.componentClassName,i=Xe(e.srcDir,t.sourceFilePath).replace(".tsx","");return`export { ${n} as ${r} } from '${$e(o,i)}';`})),"","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bundling, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;"],l=GO(i.dir,$e(n,"components.d.ts")),u=$e(e.srcDir,"index.ts");if(await t.fs.access(u)){const e=me(We(l));c.push(`export * from '${e}';`)}else c.push(`export * from '${l}';`);await t.fs.writeFile(a,c.join("\n")+"\n",{outputTargetType:i.type}),await Promise.all(s.map((async e=>{const r=$O(l,e),n=`${e.tagName}.d.ts`,a=$e(i.dir,n);await t.fs.writeFile(a,r,{outputTargetType:i.type})})))})(e,t,r,n,i))))})(e,t,r,s))},dM=e=>e.replace(/\n/g,"\\n").replace(/\'/g,"\\'").trim(),pM=async(e,t,r)=>{const n=e.createTimeSpan("copy service worker library started",!0);try{await r.copyWorkboxLibraries(t.appDir)}catch(t){ee(e.diagnostics).messageText="Service worker library already exists"}n.finish("copy service worker library finished")},_M=async(e,t,r)=>{const n=e.createTimeSpan("inject manifest into service worker started");try{await r.injectManifest(t),n.finish("inject manifest into service worker finished")}catch(t){re(e.diagnostics,t)}},fM=(e,t,r)=>{const n=e.createElement("script");return n.setAttribute("data-build",`${t.timestamp}`),n.innerHTML=(e=>`\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n window.addEventListener('load', function() {\n navigator.serviceWorker.register('${e}')\n .then(function(reg) {\n reg.onupdatefound = function() {\n var installingWorker = reg.installing;\n installingWorker.onstatechange = function() {\n if (installingWorker.state === 'installed') {\n window.dispatchEvent(new Event('swUpdate'))\n }\n }\n }\n })\n .catch(function(err) { console.error('service worker error', err) });\n });\n}`)(r),n},mM=async(e,t,r)=>{try{const n=await t.fs.readFile(r),i=`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${Je(r)}`;return await t.fs.writeFile($e(We(r),i),n),i}catch(e){}},gM=(e,t)=>e.startsWith("./")&&(e.endsWith(".js")||e.endsWith(".mjs"))?t+e.substring(2):null,hM=e=>()=>t=>(t.statements.filter(p.isImportDeclaration).filter((e=>null!=e.moduleSpecifier)).filter((e=>p.isStringLiteral(e.moduleSpecifier)&&e.moduleSpecifier.text)).forEach((t=>{p.isStringLiteral(t.moduleSpecifier)&&e.push(t.moduleSpecifier.text)})),t),yM=async(e,t,r)=>{const n=e.outputTargets.filter(Ud);if(0===n.length)return;const i=r.createTimeSpan("generate www started",!0),a=vM(r);await Promise.all(n.map((n=>bM(e,t,r,a,n)))),i.finish("generate www finished")},vM=e=>{const t=e.componentGraph;return e.indexDoc&&t?V(U(XP(e.indexDoc,e.components).map((e=>tu(e))).map((t=>e.componentGraph.get(t)||[])))).sort():[]},bM=async(e,t,r,n,i)=>{e.buildEs5||await(async(e,t,r)=>{const n=`${e.fsNamespace}.js`,i=$e(r.buildDir,n);return await t.fs.writeFile(i,(e=>{const t="\n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n",r=`\n ${t}\n\n <h1>This Stencil app is disabled for this browser.</h1>\n\n <h2>Developers:</h2>\n <ul>\n <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li>\n <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank" rel="noopener noreferrer">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li>\n <li>Note that as of Stencil v2, ES5 builds and polyfills are <strong>disabled</strong> during production builds. You can enable these <a href="https://stenciljs.com/docs/config#buildes5" target="_blank" rel="noopener noreferrer">in your stencil.config.ts file</a>.</li>\n <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li>\n <li><em>This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li>\n </ul>\n\n\n <h2>Enabling ES5 builds during development:</h2>\n <pre>\n <code>npm run dev --es5</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --es5</code>\n </pre>\n\n\n <h2>Enabling full production builds during development:</h2>\n <pre>\n <code>npm run dev --prod</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --prod</code>\n </pre>\n\n <h2>Current Browser's Support:</h2>\n <ul>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ES Module Imports</a>: <span id="es-modules-test"></span></li>\n <li><a href="http://2ality.com/2017/01/import-operator.html">ES Dynamic Imports</a>: <span id="es-dynamic-modules-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements">Custom Elements</a>: <span id="custom-elements-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM</a>: <span id="shadow-dom-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>: <span id="fetch-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">CSS Variables</a>: <span id="css-variables-test"></span></li>\n </ul>\n\n <h2>Current Browser:</h2>\n <pre>\n <code id="current-browser-output"></code>\n </pre>\n `,n=`\n ${t}\n\n <h1>Update src/index.html</h1>\n\n <p>Stencil recently changed how scripts are loaded in order to improve performance.</p>\n\n <h2>BEFORE:</h2>\n <p>Previously, a single script was included that handled loading the correct JavaScript based on browser support.</p>\n <pre>\n <code>${le(`<script src="/build/${e.fsNamespace}.js"><\/script>\n`)}</code>\n </pre>\n\n <h2 style="margin-top:0">AFTER:</h2>\n <p>The index.html should now include two scripts using the modern ES Module script pattern.\n Note that only one file will actually be requested and loaded based on the browser's native support for ES Modules.\n For more info, please see <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" target="_blank" rel="noopener noreferrer">Using JavaScript modules on the web</a>.\n </p>\n <pre>\n <code>${le("<script")} <span style="background:yellow">type="module"</span> src="/build/${e.fsNamespace}<span style="background:yellow">.esm</span>.js"${le("><\/script>")}\n ${le("<script")} <span style="background:yellow">nomodule</span> ${le(`src="/build/${e.fsNamespace}.js"><\/script>`)}</code>\n </pre>\n `;return`${Ie(e)}\n(function() {\n function checkSupport() {\n if (!document.body) {\n setTimeout(checkSupport);\n return;\n }\n function supportsDynamicImports() {\n try {\n new Function('import("")');\n return true;\n } catch (e) {}\n return false;\n }\n var supportsEsModules = !!('noModule' in document.createElement('script'));\n\n if (!supportsEsModules) {\n document.body.innerHTML = '${dM(r)}';\n\n document.getElementById('current-browser-output').textContent = window.navigator.userAgent;\n document.getElementById('es-modules-test').textContent = supportsEsModules;\n document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports();\n document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow);\n document.getElementById('custom-elements-test').textContent = !!(window.customElements);\n document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));\n document.getElementById('fetch-test').textContent = !!(window.fetch);\n } else {\n document.body.innerHTML = '${dM(n)}';\n }\n }\n\n setTimeout(checkSupport);\n})();`})(e)),n})(e,t,i),r.indexDoc&&i.indexHtml&&await EM(e,t,r,n,i),await xM(t,i)},xM=(e,t)=>{const r=Yl(t),n=$e(t.appDir,"host.config.json"),i=JSON.stringify({hosting:{headers:[{source:$e(r,"/p-*"),headers:[{key:"Cache-Control",value:"max-age=31556952, s-maxage=31556952, immutable"}]}]}},null," ");return e.fs.writeFile(n,i,{outputTargetType:t.type})},EM=async(e,t,r,n,i)=>{if(!t.hasSuccessfulBuild||r.hasHtmlChanges)try{const o=null==(a=r.indexDoc)?null:((e,t={})=>{if(null==e)return null;const r=new bf(!1);if(t.customElementProxy||(e.customElements=null),null!=e.document){const t=new Df(!1,r);r.document=t,t.documentElement=e.document.documentElement.cloneNode(!0)}else r.document=new Df(null,r);return r})(a.defaultView).document;if(((e,t,r)=>{const n=Yl(r),i=`${e.fsNamespace}.esm.js`,a=`${e.fsNamespace}.js`,o=$e(n,i),s=$e(n,a),c=Array.from(t.querySelectorAll("script")),l=c.find((e=>e.getAttribute("src")===o)),u=c.find((e=>e.getAttribute("src")===s));l&&l.setAttribute("data-stencil",""),u&&u.setAttribute("data-stencil","")})(e,o,i),await(async(e,t,r,n)=>{const i=n.serviceWorker;!1!==i&&(i&&i.unregister||!i&&e.devMode?(e=>{const t=e.createElement("script");t.innerHTML="\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n // auto-unregister service worker during dev mode\n navigator.serviceWorker.getRegistration().then(function(registration) {\n if (registration) {\n registration.unregister().then(function() { location.reload(true) });\n }\n });\n}\n",e.body.appendChild(t)})(r):i&&await(async(e,t,r)=>{const n=((e,t)=>{let r=me(Xe(e.appDir,t.swDest));"/"!==r.charAt(0)&&(r="/"+r);let n=new URL(e.baseUrl,"http://config.stenciljs.com").pathname;return n.endsWith("/")||(n+="/"),r=n+r.substring(1),r})(t,t.serviceWorker),i=fM(r,e,n);r.body.appendChild(i)})(t,n,r))})(e,r,o,i),!e.watch&&!e.devMode){const r=await mM(e,t,$e(i.buildDir,`${e.fsNamespace}.css`)),a=await(async(e,t,r,n)=>{const i=Yl(n),a=`${e.fsNamespace}.esm.js`,o=$e(i,a),s=Array.from(r.querySelectorAll("script")).find((e=>"module"===e.getAttribute("type")&&!e.hasAttribute("crossorigin")&&e.getAttribute("src")===o));if(!s)return!1;s.setAttribute("data-resources-url",i),s.setAttribute("data-stencil-namespace",e.fsNamespace);const c=$e(n.buildDir,a),l=await t.fs.readFile(c);if($(l)){if(e.allowInlineScripts&&l.length<1024){const e=((e,t)=>{const r=[],n=p.createSourceFile("module.ts",e,p.ScriptTarget.Latest);return p.transform(n,[hM(r)]),r.forEach((r=>{const n=gM(r,t);n&&(e=(e=e.replace(`"${r}"`,`"${n}"`)).replace(`'${r}'`,`'${n}'`))})),{code:e,orgImportPaths:r}})(l,i);e.orgImportPaths.length>0&&(s.removeAttribute("src"),s.innerHTML=e.code)}else{const n=await mM(e,t,c);if(n){const e=$e(i,n);s.setAttribute("src",e),Ql(r,[e])}}return!0}return!1})(e,t,o,i);await((e,t,r,n)=>{const i=Array.from(t.querySelectorAll("link[rel=stylesheet]"));return Promise.all(i.map((async i=>{const a=i.getAttribute("href");if("string"==typeof a&&a.startsWith("/")&&null===i.getAttribute("media"))try{const o=$e(n.dir,a),s=await e.fs.readFile(o);if(s.length>r)return;const c=t.createElement("style");c.innerHTML=s,i.parentNode.insertBefore(c,i),i.remove()}catch(e){}})))})(t,o,SM,i),((e,t,r,n)=>{if(!r)return;const i=Yl(n),a=$e(i,e.fsNamespace+".css"),o=$e(i,r);if(a===o)return;const s=new RegExp(a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+"$");Array.from(t.querySelectorAll("link")).forEach((e=>{const t=e.getAttribute("href");if(t){const r=t.replace(s,o);r!==t&&e.setAttribute("href",r)}}))})(e,o,r,i),a&&((e,t,r)=>{const n=Yl(r),i=t.map((e=>$e(n,e)));Ql(e,i)})(o,n,i)}const s=Zp(o);await t.fs.writeFile(i.indexHtml,s,{outputTargetType:i.type}),i.serviceWorker&&e.flags.prerender&&await t.fs.writeFile($e(i.appDir,"index-org.html"),s,{outputTargetType:i.type}),r.debug(`generateIndexHtml, write: ${Xe(e.rootDir,i.indexHtml)}`)}catch(e){re(r.diagnostics,e)}var a},SM=3072,DM=async(e,t,r)=>{const n=r.createTimeSpan("generate outputs started",!0),i=Array.from(t.changedModules).map((e=>t.moduleMap.get(e))).filter((e=>e&&!e.isCollectionDependency));t.changedModules.clear(),TM(t),await Promise.all([II(e,t,r),cm(e,t,r),_m(e,t,r,i),mP(e,t,r),bP(e,t,r),qP(e,t,r),WO(e,t),NI(e,t,r),yM(e,t,r)]),await(async(e,t,r)=>{if(!e.buildDocs)return;const n=e.outputTargets.filter((e=>Od(e)||Rd(e)||Ld(e)||Bd(e)||jd(e)));if(0===n.length)return;await r.stylesPromise;const i=await(async(e,t,r)=>({timestamp:MN(),compiler:{name:"@stencil/core",version:ut,typescriptVersion:lt},components:await XI(e,t,r)}))(e,t,r);await Promise.all([BO(e,t,i,n),fO(e,t,i,n),UO(t,i,n),GI(e,i,n),zO(e,t,r,i,n)])})(e,t,r),await(async(e,t,r)=>{const n=e.outputTargets.filter(Kd);if(0===n.length)return;const i=r.createTimeSpan("generate types started",!0);await Promise.all(n.map((n=>(async(e,t,r,n)=>{r.hasError||(await uM(e,t,r,n),await(async(e,t)=>{const r=e.outputTargets.filter(Kd).filter((e=>e.typesDir)),n=$e(e.sys.getCompilerExecutingPath(),"..","..","internal",rM),i=await t.fs.readFile(n);return Promise.all(r.map((e=>{const r=$e(e.typesDir,rM);return t.fs.writeFile(r,i,{outputTargetType:e.type})})))})(e,t))})(e,t,r,n)))),i.finish("generate types finished")})(e,t,r),n.finish("generate outputs finished")},TM=e=>{const t=e.changedFiles;e.rollupCache.forEach((e=>{e.modules.forEach((e=>{e.transformDependencies.some((e=>t.has(e)))&&(e.originalCode=null)}))}))},CM=e=>Dd(e)||Cd(e)||kd(e)||Ud(e)||Nd(e)||Fd(e)||Id(e),kM=async(e,t,r)=>{let n=e.globalStyle;if(!n)return null;if(await AM(e,t,r))return t.cachedGlobalStyle;try{n=me(n),t.addWatchFile(n);const i=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o=await(async(e,t)=>{for(const r of e.config.plugins)if(W(r.resolveId))try{const n=r.resolveId(t,null,e);if(null!=n)if(W(n.then)){const e=await n;if(null!=e)return e}else if($(n))return n}catch(t){re(e.diagnostics,t)}return t})(a,n),s=await(async(e,t)=>{for(const r of e.config.plugins)if(W(r.load))try{const n=r.load(t,e);if(null!=n)if(W(n.then)){const e=await n;if(null!=e)return e}else if($(n))return n}catch(t){re(e.diagnostics,t)}return e.fs.readFile(t)})(a,o);if(!$(s)){const t=Z(r.diagnostics);return t.header=`Unable to find "${ze(n)}"`,t.messageText=`The file "${Xe(e.rootDir,n)}" was unable to load.`,null}const c={code:s,id:n},l=c.id.toLowerCase().endsWith(".css"),u=null!=i&&e.outputTargets.some(Md);if(l)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const a=await JN(e,t,r,n,n,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await JN(e,t,r,n,n,c.code);c.code=i.styleText,c.dependencies=i.imports}for(const e of a.config.plugins)if(W(e.transform))try{let t;const r=e.transform(c.code,c.id,a);null!=r&&(t=W(r.then)?await r:r,null!=t&&($(t)?c.code=t:($(t.code)&&(c.code=t.code),$(t.id)&&(c.id=t.id))))}catch(e){re(r.diagnostics,e)}if(r.diagnostics.push(...a.diagnostics),!l)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const a=await JN(e,t,r,n,c.id,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await JN(e,t,r,n,c.id,c.code);c.code=i.styleText,c.dependencies=i.imports}return c})(e,t,r,n);if(i){const a=await(async(e,t,r,n,i)=>{if("string"!=typeof n||!n.length)return n;if((!1===e.autoprefixCss||null===e.autoprefixCss)&&!e.minifyCss)return n;"string"==typeof i&&(i=me(i));const a={input:n,filePath:i,autoprefixer:e.autoprefixCss,minify:e.minifyCss},o=await t.cache.createKey("optimizeCss","autoprefixer10.2.5_postcss8.2.13_7",a),s=await t.cache.get(o);if(null!=s)return s;const c=await t.worker.optimizeCss(a);return c.diagnostics.forEach((e=>{r.push(e)})),"string"!=typeof c.output||ne(r)?n:(await t.cache.put(o,c.output),c.output)})(e,t,r.diagnostics,i.code,n);if(t.cachedGlobalStyle=a,Array.isArray(i.dependencies)){const e=t.cssModuleImports.get(n)||[];i.dependencies.forEach((r=>{t.addWatchFile(r),e.includes(r)||e.push(r)})),t.cssModuleImports.set(n,e)}return a}}catch(e){re(r.diagnostics,e).absFilePath=n}return t.cachedGlobalStyle=null,null},AM=async(e,t,r)=>{if(!t.cachedGlobalStyle)return!1;if(r.requiresFullBuild)return!1;if(r.isRebuild&&!r.hasStyleChanges)return!0;if(r.filesChanged.includes(e.globalStyle))return!1;const n=t.cssModuleImports.get(e.globalStyle);return(!n||!r.filesChanged.some((e=>n.includes(e))))&&!await NM(e,t,r,e.globalStyle,t.cachedGlobalStyle,[])},NM=async(e,t,r,n,i,a)=>!a.includes(n)&&(a.push(n),wM(e,t,r,n,i,a)),wM=async(e,t,r,n,i,a)=>{const o=await $N(e,t,r,n,i);if(0===o.length)return!1;if(r.filesChanged.some((e=>o.some((t=>t.filePath===e)))))return!0;const s=o.map((async n=>{try{const i=await t.fs.readFile(n.filePath);return NM(e,t,r,n.filePath,i,a)}catch(e){return!1}}));return(await Promise.all(s)).includes(!0)};function FM(e){!(e=>{const t=new Set;e.forEach((r=>{PM(r,e,t),r.dependencies=V(r.dependencies).sort()}))})(e),(e=>{e.forEach((t=>{!((e,t)=>{e.dependents=t.filter((t=>t.dependencies.includes(e.tagName))).map((e=>e.tagName)).sort(),e.directDependents=t.filter((t=>t.directDependencies.includes(e.tagName))).map((e=>e.tagName)).sort()})(t,e)}))})(e)}function PM(e,t,r){if(r.has(e))return e.dependencies;r.add(e);const n=V(e.potentialCmpRefs.filter((e=>t.some((t=>t.tagName===e)))));e.dependencies=e.directDependencies=n;const i=U(n.map((e=>t.find((t=>t.tagName===e)))).map((e=>PM(e,t,r))));return e.dependencies=[...n,...i]}const IM=e=>p.isCallExpression(e.expression)?e.expression.arguments.map(OM):[],OM=e=>{if(p.isObjectLiteralExpression(e))return Gw(e);if(p.isStringLiteral(e))return e.text;throw new Error(`invalid decorator argument: ${e.getText()}`)},MM=e=>t=>p.isCallExpression(t.expression)&&t.expression.expression.getText()===e,RM=e=>{const t=We(e),r=Je(e),n=ze(e,r);return $e(t,n+".css")},LM=e=>Array.isArray(e)?e:e?[e]:[],BM=(e,t,r,n,i,a)=>{const[o]=IM(a);if(!o)return;if(!jM(e,r,t,o,n,a))return;i.push(Jw("is",Kw(o.tag.trim()))),o.shadow?(i.push(Jw("encapsulation",Kw("shadow"))),"boolean"!=typeof o.shadow&&!0===o.shadow.delegatesFocus&&i.push(Jw("delegatesFocus",Kw(!0)))):o.scoped&&i.push(Jw("encapsulation",Kw("scoped"))),((e,t)=>{const r=[];t.styleUrls&&(Array.isArray(t.styleUrls)?r.push(...LM(t.styleUrls)):r.push(...LM(t.styleUrls.$))),t.styleUrl&&r.push(...LM(t.styleUrl));let n={};if(t.styleUrls&&!Array.isArray(t.styleUrls)&&(n=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=LM(e[r])})),t})(t.styleUrls)),r.length>0&&(n.$=r),Object.keys(n).length>0){const t=Kw(n);e.push(Jw("originalStyleUrls",t));const r=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=e[r].map((e=>RM(e)))})),t})(n),i=Kw(r);e.push(Jw("styleUrls",i))}if("string"==typeof t.styles){const r=t.styles.trim();r.length>0&&e.push(Jw("styles",p.createLiteral(r)))}else if(t.styles){const r=t.styles;if(r.__identifier){const t=r.__escapedText;e.push(Jw("styles",p.createIdentifier(t)))}else"object"==typeof r&&Object.keys(r).length>0&&e.push(Jw("styles",Kw(r)))}})(i,o);const s=o.assetsDirs||[];if($(o.assetsDir)){s.push(o.assetsDir);const e=ee(r);e.messageText='@Component option "assetsDir" should be renamed to "assetsDirs" and the value should be an array of strings.',Te(e,a)}s.length>0&&i.push(Jw("assetsDirs",Kw(s)))},jM=(e,t,r,n,i,a)=>{const o=i.heritageClauses&&i.heritageClauses.find((e=>e.token===p.SyntaxKind.ExtendsKeyword));if(o){const e=Z(t);return e.messageText="Classes decorated with @Component can not extend from a base class.\n Stencil needs to be able to switch between different base classes in order to implement the different output targets such as: lazy and raw web components.",Te(e,o),!1}if(n.shadow&&n.scoped){const e=Z(t);return e.messageText='Components cannot be "scoped" and "shadow" at the same time, they are mutually exclusive configurations.',Te(e,UM("scoped",a)),!1}const s=i.members.find(p.isConstructorDeclaration);if(s&&s.parameters.length>0){const e=Z(t);return e.messageText='Classes decorated with @Component can not have a "constructor" that takes arguments.\n All data required by a component must be passed by using class properties decorated with @Prop()',Te(e,s.parameters[0]),!1}const c=i.decorators&&i.decorators.find((e=>e!==a));if(c){const e=Z(t);return e.messageText="Classes decorated with @Component can not be decorated with more decorators.\n Stencil performs extensive static analysis on top of your components in order to generate the necessary metadata, runtime decorators at the components level make this task very hard.",Te(e,c),!1}const l=n.tag;if("string"!=typeof l||0===l.trim().length){const e=Z(t);return e.messageText="tag missing in component decorator",Te(e,a),!1}const u=Be(l);if(u){const e=Z(t);return e.messageText=`${u}. Please refer to https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name for more info.`,Te(e,UM("tag",a)),!1}if(!e._isTesting){const e=r.getExportsOfModule(r.getSymbolAtLocation(i.getSourceFile())).filter((e=>0==(e.flags&(p.SymbolFlags.Interface|p.SymbolFlags.TypeAlias)))).filter((e=>e.name!==i.name.text));if(e.forEach((e=>{const r=Z(t);r.messageText="To allow efficient bundling, modules using @Component() can only have a single export which is the component class itself.\n Any other exports should be moved to a separate file.\n For further information check out: https://stenciljs.com/docs/module-bundling";const n=e.valueDeclaration?e.valueDeclaration:e.declarations[0];Te(r,n)})),e.length>0)return!1}return!0},UM=(e,t)=>{if(p.isDecorator(t)&&p.isCallExpression(t.expression)){const r=t.expression.arguments[0];p.isObjectLiteralExpression(r)&&r.properties.forEach((r=>{p.isPropertyAssignment(r)&&r.name.getText()===e&&(t=r.initializer)}))}return t},VM=(e,t)=>e&&"string"==typeof e.eventName&&e.eventName.trim().length>0?e.eventName.trim():t,KM=(e,t)=>{const r=t.getSourceFile(),n=t.type?zM(t.type):null;return{original:n?n.getText():"any",resolved:n?rF(e,e.getTypeFromTypeNode(n)):"any",references:n?Yw(n,r):{}}},zM=e=>p.isTypeReferenceNode(e)&&p.isIdentifier(e.typeName)&&"EventEmitter"===e.typeName.text&&e.typeArguments&&e.typeArguments.length>0?e.typeArguments[0]:null,WM=(e,t,r)=>{if(/^[A-Z]/.test(r)){const r=ee(e);return r.messageText=["In order to be compatible with all event listeners on elements, the event name ","cannot start with a capital letter. ","Please lowercase the first character for the event to best work with all listeners."].join(""),Te(r,t),void 0}if(/^on[A-Z]/.test(r)){const n=ee(e),i=r[2].toLowerCase()+r.slice(3);return n.messageText=`Events decorated with @Event() should describe the actual DOM event name, not the handler. In other words "${r}" would be better named as "${i}".`,Te(n,t),void 0}if(JM.has(r.toLowerCase())){const n=ee(e);return n.messageText=`The event name conflicts with the "${r}" native DOM event name.`,Te(n,t),void 0}},JM=new Set(["CheckboxStateChange","DOMContentLoaded","DOMMenuItemActive","DOMMenuItemInactive","DOMMouseScroll","MSManipulationStateChanged","MSPointerHover","MozAudioAvailable","MozGamepadButtonDown","MozGamepadButtonUp","MozMousePixelScroll","MozOrientation","MozScrolledAreaChanged","RadioStateChange","SVGAbort","SVGError","SVGLoad","SVGResize","SVGScroll","SVGUnload","SVGZoom","abort","afterprint","afterscriptexecute","alerting","animationcancel","animationend","animationiteration","animationstart","appinstalled","audioend","audioprocess","audiostart","auxclick","beforeinstallprompt","beforeprint","beforescriptexecute","beforeunload","beginEvent","blur","boundary","broadcast","busy","callschanged","canplay","canplaythrough","cardstatechange","cfstatechange","change","chargingchange","chargingtimechange","checking","click","command","commandupdate","compassneedscalibration","complete","compositionend","compositionstart","compositionupdate","connected","connecting","connectionInfoUpdate","contextmenu","copy","cut","datachange","dataerror","dblclick","delivered","devicechange","devicemotion","deviceorientation","dialing","disabled","dischargingtimechange","disconnected","disconnecting","downloading","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","enabled","end","endEvent","ended","error","focus","focusin","focusout","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gotpointercapture","hashchange","held","holding","icccardlockerror","iccinfochange","incoming","input","invalid","keydown","keypress","keyup","languagechange","levelchange","load","loadeddata","loadedmetadata","loadend","loadstart","localized","lostpointercapture","mark","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","mozbrowseractivitydone","mozbrowserasyncscroll","mozbrowseraudioplaybackchange","mozbrowsercaretstatechanged","mozbrowserclose","mozbrowsercontextmenu","mozbrowserdocumentfirstpaint","mozbrowsererror","mozbrowserfindchange","mozbrowserfirstpaint","mozbrowsericonchange","mozbrowserloadend","mozbrowserloadstart","mozbrowserlocationchange","mozbrowsermanifestchange","mozbrowsermetachange","mozbrowseropensearch","mozbrowseropentab","mozbrowseropenwindow","mozbrowserresize","mozbrowserscroll","mozbrowserscrollareachanged","mozbrowserscrollviewchange","mozbrowsersecuritychange","mozbrowserselectionstatechanged","mozbrowsershowmodalprompt","mozbrowsertitlechange","mozbrowserusernameandpasswordrequired","mozbrowservisibilitychange","moztimechange","msContentZoom","nomatch","notificationclick","noupdate","obsolete","offline","online","orientationchange","overflow","pagehide","pageshow","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerup","popstate","popuphidden","popuphiding","popupshowing","popupshown","progress","push","pushsubscriptionchange","ratechange","readystatechange","received","repeatEvent","reset","resize","resourcetimingbufferfull","result","resume","resuming","scroll","seeked","seeking","select","selectionchange","selectstart","sent","show","slotchange","smartcard-insert","smartcard-remove","soundend","soundstart","speechend","speechstart","stalled","start","statechange","statuschange","stkcommand","stksessionend","storage","submit","suspend","timeout","timeupdate","touchcancel","touchend","touchenter","touchleave","touchmove","touchstart","transitioncancel","transitionend","transitionrun","transitionstart","underflow","unload","updateready","userproximity","ussdreceived","visibilitychange","voicechange","voiceschanged","volumechange","vrdisplayactivate","vrdisplayblur","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplayfocus","vrdisplaypresentchange","waiting","wheel"].map((e=>e.toLowerCase()))),HM=(e,t={},r)=>{const n=e.trim();return{name:n,method:r,target:t.target,capture:"boolean"==typeof t.capture&&t.capture,passive:"boolean"==typeof t.passive?t.passive:$M.has(n.toLowerCase())}},$M=new Set(["dragstart","drag","dragend","dragenter","dragover","dragleave","drop","mouseenter","mouseover","mousemove","mousedown","mouseup","mouseleave","mouseout","mousewheel","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","resize","scroll","touchstart","touchmove","touchend","touchenter","touchleave","touchcancel","wheel"]),GM=(e,t,r,n,i)=>{if(XM.has(t.toLowerCase())){const a=ee(e);return a.messageText=[`The ${r} name "${t}" is a reserved public name. `,`Please rename the "${t}" ${n} so it does not conflict with an existing standardized prototype member. `,`Reusing ${n} names that are already defined on the element's prototype may cause `,"unexpected runtime errors or user-interface issues on various browsers, so it's best to avoid them entirely."].join(""),Te(a,i),void 0}},qM=["title","lang","translate","dir","tabIndex","accessKey","draggable","contentEditable","isContentEditable","offsetParent","offsetTop","offsetLeft","offsetWidth","offsetHeight","style","innerText","outerText","oncopy","oncut","onpaste","onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwheel","onauxclick","ongotpointercapture","onlostpointercapture","onpointerdown","onpointermove","onpointerup","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave","onselectstart","onselectionchange","nonce","click","focus","blur","namespaceURI","prefix","localName","tagName","id","className","classList","slot","attributes","shadowRoot","assignedSlot","innerHTML","outerHTML","scrollTop","scrollLeft","scrollWidth","scrollHeight","clientTop","clientLeft","clientWidth","clientHeight","attributeStyleMap","onbeforecopy","onbeforecut","onbeforepaste","onsearch","previousElementSibling","nextElementSibling","children","firstElementChild","lastElementChild","childElementCount","onfullscreenchange","onfullscreenerror","onwebkitfullscreenchange","onwebkitfullscreenerror","setPointerCapture","releasePointerCapture","hasPointerCapture","hasAttributes","getAttributeNames","getAttribute","getAttributeNS","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","hasAttribute","hasAttributeNS","toggleAttribute","getAttributeNode","getAttributeNodeNS","setAttributeNode","setAttributeNodeNS","removeAttributeNode","closest","matches","webkitMatchesSelector","attachShadow","getElementsByTagName","getElementsByTagNameNS","getElementsByClassName","insertAdjacentElement","insertAdjacentText","insertAdjacentHTML","requestPointerLock","getClientRects","getBoundingClientRect","scrollIntoView","scroll","scrollTo","scrollBy","scrollIntoViewIfNeeded","animate","computedStyleMap","before","after","replaceWith","remove","prepend","append","querySelector","querySelectorAll","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen","part","createShadowRoot","getDestinationInsertionPoints","ELEMENT_NODE","ATTRIBUTE_NODE","TEXT_NODE","CDATA_SECTION_NODE","ENTITY_REFERENCE_NODE","ENTITY_NODE","PROCESSING_INSTRUCTION_NODE","COMMENT_NODE","DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NOTATION_NODE","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","nodeType","nodeName","baseURI","isConnected","ownerDocument","parentNode","parentElement","childNodes","firstChild","lastChild","previousSibling","nextSibling","nodeValue","textContent","hasChildNodes","getRootNode","normalize","cloneNode","isEqualNode","isSameNode","compareDocumentPosition","contains","lookupPrefix","lookupNamespaceURI","isDefaultNamespace","insertBefore","appendChild","replaceChild","removeChild","ref","key"].map((e=>e.toLowerCase())),XM=new Set(qM),YM=e=>/^Promise<.+>$/.test(e),QM=(e,t)=>{if(null!==t.attribute)return"string"==typeof t.attribute&&t.attribute.trim().length>0?t.attribute.trim().toLowerCase():M(e)},ZM=(e,t,r)=>{if("boolean"==typeof r.reflect)return r.reflect;if("boolean"==typeof r.reflectToAttr){const n=Z(e);return n.header='Rename "reflectToAttr" to "reflect"',n.messageText='@Prop option "reflectToAttr" should be renamed to "reflect".',Te(n,t),r.reflectToAttr}return!1},eR=(e,t,r)=>{const n=t.type;return{original:n?n.getText():nF(e,r),resolved:rF(e,r),references:Yw(t,t.getSourceFile())}},tR=e=>{if(rR(e,oR))return"any";const t=rR(e,aR),r=rR(e,iR),n=rR(e,nR);return Number(t)+Number(r)+Number(n)>1?"any":t?"string":r?"number":n?"boolean":"unknown"},rR=(e,t)=>!!(e.flags&p.TypeFlags.Union&&e.types.some((e=>rR(e,t))))||t(e),nR=e=>!!e&&!!(e.flags&(p.TypeFlags.Boolean|p.TypeFlags.BooleanLike)),iR=e=>!!e&&!!(e.flags&(p.TypeFlags.Number|p.TypeFlags.NumberLike|p.TypeFlags.NumberLiteral)),aR=e=>!!e&&!!(e.flags&(p.TypeFlags.String|p.TypeFlags.StringLike|p.TypeFlags.StringLiteral)),oR=e=>!!e&&!!(e.flags&p.TypeFlags.Any),sR=(e,t,r)=>n=>{const i=a=>p.isClassDeclaration(a)?cR(e,t,r,a):p.visitEachChild(a,i,n);return e=>p.visitEachChild(e,i,n)},cR=(e,t,r,n)=>{if(!n.decorators)return n;const i=n.decorators.find(MM("Component"));if(!i)return n;const a=n.members,o=a.filter((e=>Array.isArray(e.decorators)&&e.decorators.length>0)),s=lR(Array.from(a));BM(e,r,t,n,s,i);const c=new Set;return o.length>0&&(((e,t,r,n,i)=>{const a=t.filter(p.isPropertyDeclaration).map((t=>((e,t,r,n)=>{const i=r.decorators.find(MM("Prop"));if(null==i)return null;const a=IM(i)[0]||{},o=r.name.getText();if(Vw(r)){const t=Z(e);t.messageText='Properties decorated with the @Prop() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/properties',Te(t,r.modifiers[0])}if(/^on(-|[A-Z])/.test(o)){const t=ee(e);t.messageText=`The @Prop() name "${o}" looks like an event. Please use the "@Event()" decorator to expose events instead, not properties or methods.`,Te(t,r.name)}else GM(e,o,"@Prop()","prop",r.name);const s=t.getSymbolAtLocation(r.name),c=t.getTypeAtLocation(r),l=tR(c),u={type:l,mutable:!!a.mutable,complexType:eR(t,r,c),required:void 0!==r.exclamationToken&&"mode"!==o,optional:void 0!==r.questionToken,docs:lF(t,s)};eF(e,u.complexType.references,r.type),"unknown"!==l&&(u.attribute=QM(o,a),u.reflect=ZM(e,i,a));const d=r.initializer;d&&(u.defaultValue=d.getText());const _=p.createPropertyAssignment(p.createLiteral(o),Kw(u));return n.add(o),_})(e,r,t,n))).filter((e=>null!=e));a.length>0&&i.push(Jw("properties",p.createObjectLiteral(a,!0)))})(t,o,r,c,s),((e,t,r)=>{const n=e.filter(p.isPropertyDeclaration).map((e=>((e,t)=>{if(null==e.decorators.find(MM("State")))return null;const r=e.name.getText();return t.add(r),p.factory.createPropertyAssignment(p.factory.createStringLiteral(r),p.factory.createObjectLiteralExpression([],!0))})(e,t))).filter((e=>!!e));n.length>0&&r.push(Jw("states",p.factory.createObjectLiteralExpression(n,!0)))})(o,c,s),((e,t,r,n)=>{const i=t.filter(p.isPropertyDeclaration).map((t=>((e,t,r)=>{var n;const i=null===(n=r.decorators)||void 0===n?void 0:n.find(MM("Event"));if(null==i)return null;const a=r.name.getText();if(!a)return null;const[o]=IM(i),s=t.getSymbolAtLocation(r.name),c=VM(o,a);WM(e,r.name,c);const l={method:a,name:c,bubbles:!o||"boolean"!=typeof o.bubbles||o.bubbles,cancelable:!o||"boolean"!=typeof o.cancelable||o.cancelable,composed:!o||"boolean"!=typeof o.composed||o.composed,docs:lF(t,s),complexType:KM(t,r)};return eF(e,l.complexType.references,r.type),l})(e,r,t))).filter((e=>!!e));i.length>0&&n.push(Jw("events",Kw(i)))})(t,o,r,s),((e,t,r,n,i,a)=>{const o=r.getSourceFile(),s=n.filter(p.isMethodDeclaration).map((r=>((e,t,r,n,i)=>{if(null==i.decorators.find(MM("Method")))return null;const a=i.name.getText(),o=p.TypeFormatFlags.WriteArrowStyleSignature|p.TypeFormatFlags.NoTruncation,s=n.getSignatureFromDeclaration(i),c=n.getReturnTypeOfSignature(s),l=n.typeToTypeNode(c,i,p.NodeBuilderFlags.NoTruncation|p.NodeBuilderFlags.NoTypeReduction);let u=nF(n,c),d=n.signatureToString(s,i,o,p.SignatureKind.Call);if(!e._isTesting)if("void"===u){const e=ee(t);e.header="@Method requires async",e.messageText=`External @Method() ${a}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${a}().`,Te(e,i.name),u="Promise<void>",d=d.replace(/=> void$/,"=> Promise<void>")}else if(!YM(u)){const e=Z(t);e.header="@Method requires async",e.messageText=`External @Method() ${a}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${a}().`,Te(e,i.name)}if(Vw(i)){const e=Z(t);e.messageText='Methods decorated with the @Method() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/methods',Te(e,i.modifiers[0])}GM(t,a,"@Method()","method",i.name);const _={complexType:{signature:d,parameters:s.parameters.map((e=>lF(n,e))),references:{...Yw(l,r),...Yw(i,r)},return:u},docs:{text:p.displayPartsToString(s.getDocumentationComment(n)),tags:uF(s.getJsDocTags())}};return eF(t,_.complexType.references,i.type||i.name),p.createPropertyAssignment(p.createLiteral(a),Kw(_))})(e,t,o,i,r))).filter((e=>!!e));s.length>0&&a.push(Jw("methods",p.createObjectLiteral(s,!0)))})(e,t,n,o,r,s),((e,t,r,n)=>{const i=t.filter(p.isPropertyDeclaration).map((e=>((e,t,r)=>null==(r.decorators&&r.decorators.find(MM("Element")))?null:r.name.getText())(0,0,e))).filter((e=>!!e));i.length>0&&(n.push(Jw("elementRef",p.createLiteral(i[0]))),i.length>1)&&(Z(e).messageText="It's not valid to add more than one Element() decorator")})(t,o,0,s),((e,t,r,n,i)=>{const a=r.filter(p.isMethodDeclaration).map((r=>((e,t,r,n)=>{const i=n.name.getText();return n.decorators.filter(MM("Watch")).map((n=>{const[a]=IM(n);if(!r.has(a)){const r=e.devMode?ee(t):Z(t);r.messageText=`@Watch('${a}') is trying to watch for changes in a property that does not exist.\n Make sure only properties decorated with @State() or @Prop() are watched.`,Te(r,n)}return{propName:a,methodName:i}}))})(e,t,n,r))),o=U(a);o.length>0&&i.push(Jw("watchers",Kw(o)))})(e,t,o,c,s),((e,t,r)=>{const n=t.filter(p.isMethodDeclaration).map((t=>((e,t)=>{const r=t.decorators.filter(MM("Listen"));return 0===r.length?[]:r.map((r=>{const n=t.name.getText(),[i,a]=IM(r),o=i.split(",");if(o.length>1){const t=Z(e);t.messageText="Please use multiple @Listen() decorators instead of comma-separated names.",Te(t,r)}const s=HM(o[0],a,n);if("parent"===s.target){const t=Z(e);t.messageText='The "parent" target is no longer available as of Stencil 2. Please use "window", "document" or "body" instead.',Te(t,r)}return s}))})(e,t))),i=U(n);i.length>0&&r.push(Jw("listeners",Kw(i)))})(t,o,s)),((e,t)=>{t.filter(p.isMethodDeclaration).map((t=>{if("componentDidUnload"===t.name.getText()){const r=Z(e);r.header='Replace "componentDidUnload()" with "disconnectedCallback()"',r.messageText='The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallback()" method instead.',Te(r,t.name)}}))})(t,a),p.updateClassDeclaration(n,uR(n,jw),n.modifiers,n.name,n.typeParameters,n.heritageClauses,s)},lR=e=>e.map((e=>{const t=e.decorators,r=uR(e,Uw);if(t!==r){if(p.isMethodDeclaration(e))return p.updateMethod(e,r,e.modifiers,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);if(p.isPropertyDeclaration(e))return p.updateProperty(e,r,e.modifiers,e.name,e.questionToken,e.type,e.initializer);console.log("unknown class node")}return e})),uR=(e,t)=>{if(e.decorators){const r=e.decorators.filter((e=>{const r=p.isCallExpression(e.expression)&&p.isIdentifier(e.expression.expression)&&e.expression.expression.text;return"boolean"==typeof r||!t.includes(r)}));if(0===r.length)return;if(r.length!==e.decorators.length)return p.factory.createNodeArray(r)}return e.decorators},dR=(e,t)=>{if(null!=t.arguments&&t.arguments.length>0)if(p.isIdentifier(t.expression))pR(e,t.expression,t.arguments);else if(p.isPropertyAccessExpression(t.expression)){const r=t.expression.name;p.isIdentifier(r)&&r&&pR(e,r,t.arguments)}},pR=(e,t,r)=>{const n=t.escapedText;if("h"===n||n===kF||"createElement"===n)_R(e,r[0]),"h"!==n&&n!==kF||((e,t)=>{e.hasVdomRender=!0;const r=t[0];if(p.isStringLiteral(r)||p.isIdentifier(r)&&"Host"===r.text||(e.hasVdomFunctional=!0),t.length>1){const r=t[1];p.isCallExpression(r)||p.isIdentifier(r)?(e.hasVdomAttribute=!0,e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0):p.isObjectLiteralExpression(r)&&r.properties.forEach((t=>{if(e.hasVdomAttribute=!0,p.isSpreadAssignment(t)||p.isComputedPropertyName(t.name))e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0;else if(t.name&&t.name.text&&t.name.text.length>0){const r=t.name.text;"key"===r?e.hasVdomKey=!0:"ref"===r?e.hasVdomRef=!0:"class"===r||"className"===r?e.hasVdomClass=!0:"style"===r?e.hasVdomStyle=!0:/^on(-|[A-Z])/.test(r)?e.hasVdomListener=!0:r.startsWith("xlink")?(e.hasVdomXlink=!0,e.hasVdomPropOrAttr=!0):e.hasVdomPropOrAttr=!0,"part"===r&&p.isPropertyAssignment(t)&&p.isStringLiteral(t.initializer)&&e.htmlParts.push(...t.initializer.text.toLowerCase().split(" ").filter((e=>e.length>0))),e.htmlAttrNames.push(r)}}))}if(!e.hasVdomText)for(let r=2;r<t.length;r++){const n=t[r];if(!p.isCallExpression(n)||!p.isIdentifier(n.expression)||"h"!==n.expression.text){e.hasVdomText=!0;break}}})(e,r);else if(r.length>1&&"createElementNS"===n)_R(e,r[1]);else if("require"===n&&r.length>0&&e.originalImports){const t=r[0];p.isStringLiteral(t)&&(e.originalImports.includes(t.text)||e.originalImports.push(t.text))}},_R=(e,t)=>{if(p.isStringLiteral(t)){let r=t.text;"string"==typeof r&&(r=r.toLowerCase(),e.htmlTagNames.push(r),r.includes("-")&&e.potentialCmpRefs.push(r))}},fR=e=>{const t=Object.assign({},e);return delete t.assetsDirs,delete t.dependencies,delete t.excludeFromCollection,delete t.isCollectionDependency,delete t.docs,delete t.jsFilePath,delete t.potentialCmpRefs,delete t.styleDocs,delete t.sourceFilePath,t},mR=e=>{const t=Hw(e,"elementRef");return"string"==typeof t?t:null},gR=(e,t)=>"shadow"===e?!!Hw(t,"delegatesFocus"):null,hR=e=>{const t=Hw(e,"events");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs,complexType:e.complexType,internal:dF(e.docs)}))):[]},yR=e=>{const t=Hw(e,"listeners");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,capture:!!e.capture,passive:!!e.passive,target:e.target}))):[]},vR=e=>{const t=Hw(e,"methods");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e,docs:t[e].docs,complexType:t[e].complexType,internal:dF(t[e].docs)})))},bR=e=>{const t=Hw(e,"properties");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>{const r=t[e];return{name:e,type:r.type,attribute:r.attribute?r.attribute.toLowerCase():void 0,reflect:"boolean"==typeof r.reflect&&r.reflect,mutable:!!r.mutable,required:!!r.required,optional:!!r.optional,defaultValue:r.defaultValue,complexType:r.complexType,docs:r.docs,internal:dF(r.docs)}}))},xR=e=>{const t=Hw(e,"states");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e})))},ER=(e,t)=>{"string"==typeof t.text&&t.text.includes("</")&&(t.text.includes("<slot")&&e.htmlTagNames.push("slot"),t.text.includes("<svg")&&e.htmlTagNames.push("svg"))},SR=(e,t,r,n,i)=>{const a=[],o=Hw(i,n?"styleUrls":"originalStyleUrls");let s=Hw(i,"styles");return s&&("string"==typeof s?(s=s.trim(),s.length>0&&(a.push({modeName:x,styleId:null,styleStr:s,styleIdentifier:null,externalStyles:[]}),e.styleModeNames.add(x))):s.__identifier?(a.push(DR(s,x)),e.styleModeNames.add(x)):"object"==typeof s&&Object.keys(s).forEach((t=>{const r=s[t];"string"==typeof r?a.push({modeName:t,styleId:null,styleStr:r,styleIdentifier:null,externalStyles:[]}):a.push(DR(r,t)),e.styleModeNames.add(t)}))),o&&"object"==typeof o&&Object.keys(o).forEach((t=>{const r=[];if(o[t].forEach((e=>{"string"==typeof e&&e.trim().length>0&&r.push({absolutePath:null,relativePath:null,originalComponentPath:e.trim()})})),r.length>0){const n={modeName:t,styleId:null,styleStr:null,styleIdentifier:null,externalStyles:r};a.push(n),e.styleModeNames.add(t)}})),((e,t,r)=>{r.forEach((r=>{r.modeName===x?r.styleId=e.toUpperCase():r.styleId=`${e.toUpperCase()}#${r.modeName}`,Array.isArray(r.externalStyles)&&r.externalStyles.forEach((e=>{((e,t)=>{if("string"!=typeof t.originalComponentPath||0===t.originalComponentPath.trim().length)return;const r=We(e);He(t.originalComponentPath)?(t.absolutePath=me(t.originalComponentPath),t.relativePath=me(Xe(r,t.originalComponentPath))):(t.relativePath=me(t.originalComponentPath),t.absolutePath=me($e(r,t.originalComponentPath)))})(t,e)}))}))})(t,r,a),j(a,(e=>e.modeName))},DR=(e,t)=>({modeName:t,styleId:null,styleStr:null,styleIdentifier:e.__escapedText,externalStyles:[]}),TR=e=>{const t=Hw(e,"watchers");return t&&0!==t.length?t.map((e=>({propName:e.propName,methodName:e.methodName}))):[]},CR=(e,t,r,n,i)=>{if(null==r.members)return r;const a=r.members.filter(cF),o=sF(a);if(null==o)return r;const s=t?t.getSymbolAtLocation(r.name):void 0,c=lF(t,s),l=n.isCollectionDependency,u=(e=>{let t=Hw(e,"encapsulation");return"string"==typeof t&&(t=t.toLowerCase().trim(),"shadow"===t||"scoped"===t)?t:"none"})(a),d={tagName:o,excludeFromCollection:n.excludeFromCollection,isCollectionDependency:l,componentClassName:r.name?r.name.text:"",elementRef:mR(a),encapsulation:u,shadowDelegatesFocus:gR(u,a),properties:bR(a),virtualProperties:kR(c),states:xR(a),methods:vR(a),listeners:yR(a),events:hR(a),watchers:TR(a),styles:SR(e,o,n.sourceFilePath,l,a),legacyConnect:Hw(a,"connectProps")||[],legacyContext:Hw(a,"contextProps")||[],internal:dF(c),assetsDirs:NR(a,n.jsFilePath),styleDocs:[],docs:c,jsFilePath:n.jsFilePath,sourceFilePath:n.sourceFilePath,sourceMapPath:n.sourceMapPath,hasAttributeChangedCallbackFn:!1,hasComponentWillLoadFn:!1,hasComponentDidLoadFn:!1,hasComponentShouldUpdateFn:!1,hasComponentWillUpdateFn:!1,hasComponentDidUpdateFn:!1,hasComponentWillRenderFn:!1,hasComponentDidRenderFn:!1,hasComponentDidUnloadFn:!1,hasConnectedCallbackFn:!1,hasDisconnectedCallbackFn:!1,hasElement:!1,hasEvent:!1,hasLifecycle:!1,hasListener:!1,hasListenerTarget:!1,hasListenerTargetWindow:!1,hasListenerTargetDocument:!1,hasListenerTargetBody:!1,hasListenerTargetParent:!1,hasMember:!1,hasMethod:!1,hasMode:!1,hasAttribute:!1,hasProp:!1,hasPropNumber:!1,hasPropBoolean:!1,hasPropString:!1,hasPropMutable:!1,hasReflect:!1,hasRenderFn:!1,hasState:!1,hasStyle:!1,hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasWatchCallback:!1,isPlain:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isUpdateable:!1,potentialCmpRefs:[]},_=e=>{p.isCallExpression(e)?dR(d,e):p.isStringLiteral(e)&&ER(d,e),e.forEachChild(_)};var f;return _(r),((e,t)=>{const r=e.members;if(!r||0===r.length)return;const n=r.filter((e=>p.isMethodDeclaration(e)));if(0===n.length)return;const i=n.some((e=>pF(e,"hostData")));t.hasAttributeChangedCallbackFn=n.some((e=>pF(e,"attributeChangedCallback"))),t.hasConnectedCallbackFn=n.some((e=>pF(e,"connectedCallback"))),t.hasDisconnectedCallbackFn=n.some((e=>pF(e,"disconnectedCallback"))),t.hasComponentWillLoadFn=n.some((e=>pF(e,"componentWillLoad"))),t.hasComponentWillUpdateFn=n.some((e=>pF(e,"componentWillUpdate"))),t.hasComponentWillRenderFn=n.some((e=>pF(e,"componentWillRender"))),t.hasComponentDidRenderFn=n.some((e=>pF(e,"componentDidRender"))),t.hasComponentDidLoadFn=n.some((e=>pF(e,"componentDidLoad"))),t.hasComponentShouldUpdateFn=n.some((e=>pF(e,"componentShouldUpdate"))),t.hasComponentDidUpdateFn=n.some((e=>pF(e,"componentDidUpdate"))),t.hasComponentDidUnloadFn=n.some((e=>pF(e,"componentDidUnload"))),t.hasLifecycle=t.hasComponentWillLoadFn||t.hasComponentDidLoadFn||t.hasComponentWillUpdateFn||t.hasComponentDidUpdateFn,t.hasRenderFn=n.some((e=>pF(e,"render")))||i,t.hasVdomRender=t.hasVdomRender||i})(r,d),d.legacyConnect.forEach((({connect:e})=>{d.htmlTagNames.push(e),e.includes("-")&&d.potentialCmpRefs.push(e)})),d.htmlAttrNames=V(d.htmlAttrNames),d.htmlTagNames=V(d.htmlTagNames),d.potentialCmpRefs=V(d.potentialCmpRefs),(f=d).properties.length>0&&(f.hasProp=!0,f.hasPropMutable=f.properties.some((e=>e.mutable)),f.hasReflect=f.properties.some((e=>e.reflect)),f.hasAttribute=f.properties.some((e=>"string"==typeof e.attribute)),f.hasPropBoolean=f.properties.some((e=>"boolean"===e.type)),f.hasPropNumber=f.properties.some((e=>"number"===e.type)),f.hasPropString=f.properties.some((e=>"string"===e.type))),f.states.length>0&&(f.hasState=!0),f.watchers.length>0&&(f.hasWatchCallback=!0),f.methods.length>0&&(f.hasMethod=!0),f.events.length>0&&(f.hasEvent=!0),f.listeners.length>0&&(f.hasListener=!0,f.hasListenerTargetWindow=f.listeners.some((e=>"window"===e.target)),f.hasListenerTargetDocument=f.listeners.some((e=>"document"===e.target)),f.hasListenerTargetBody=f.listeners.some((e=>"body"===e.target)),f.hasListenerTargetParent=f.listeners.some((e=>"parent"===e.target)),f.hasListenerTarget=f.listeners.some((e=>!!e.target))),f.hasMember=f.hasProp||f.hasState||f.hasElement||f.hasMethod,f.isUpdateable=f.hasProp||f.hasState,f.styles.length>0&&(f.hasStyle=!0,f.hasMode=f.styles.some((e=>e.modeName!==x))),f.hasLifecycle=f.hasComponentWillLoadFn||f.hasComponentDidLoadFn||f.hasComponentShouldUpdateFn||f.hasComponentWillUpdateFn||f.hasComponentDidUpdateFn||f.hasComponentWillRenderFn||f.hasComponentDidRenderFn,f.isPlain=!(f.hasMember||f.hasStyle||f.hasLifecycle||f.hasListener||f.hasVdomRender),i&&"compilerstatic"===i.componentMetadata&&(r=((e,t)=>{const r=fR(t),n=Jw("COMPILER_META",Kw(r)),i=[...e.members,n];return p.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,i)})(r,d)),n.cmps.push(d),e.nodeMap.set(r,d),r},kR=e=>e.tags.filter((({name:e})=>"virtualProp"===e)).map(AR).filter((e=>!!e)),AR=e=>{const t=/^\s*(?:\{([^}]+)\}\s+)?(\w+)\s+-\s+(.*)$/.exec(e.text);if(!t)return;const[,r,n,i]=t;return{type:null==r?"any":r.trim(),name:n.trim(),docs:i.trim()}},NR=(e,t)=>{const r=Hw(e,"assetsDirs")||[],n=me(We(t));return r.map((e=>{let t=e=me(e.trim()),r=e;return He(e)?r=Xe(n,e):t=$e(n,e),{absolutePath:t,cmpRelativePath:r,originalComponentPath:e}}))},wR=(e,t,r,n,i)=>{const a=t.fs.readFileSync(i),o=p.createSourceFile(i,a,p.ScriptTarget.ES2017,!0,p.ScriptKind.JS);return LR(e,t,r,o,a,i,void 0,n)},FR=e=>(e.collections||[]).map((e=>e.name)),PR=(e,t,r,n,i,a)=>{if("string"!=typeof i.global)return;const o=me($e(n,i.global)),s=wR(e,t,r,a,o);a.global=s},IR=e=>OR(e.bundles)?[]:e.bundles.map((e=>({components:e.components.slice().sort()}))),OR=e=>!e||!Array.isArray(e)||0===e.length,MR=(e,t,r,n,i,a,o)=>{if(n.externalImports.includes(a)||(n.externalImports.push(a),n.externalImports.sort()),!o||t.resolvedCollections.has(a))return;let s=((e,t,r,n)=>{try{const i=dw(e,t,r,n);if(i&&i.resolvedModule&&i.resolvedModule.resolvedFileName){const t=Ye("/");let r=i.resolvedModule.resolvedFileName;for(let n=0;n<30;n++){if(t===r)return null;r=We(r);const n=$e(r,"package.json");if(e.sys.accessSync(n))return me(n)}}}catch(t){e.logger.error(t)}return null})(e,t,a,i);if(t.resolvedCollections.add(a),null==s)return;const c=e.sys.realpathSync(s);if(c.path&&(s=c.path),s===e.packageJsonFilePath)return;const l=t.fs.readFileSync(s);if(null==l)return;const u=Re(l,s);if(u.diagnostic)return r.diagnostics.push(u.diagnostic),void 0;if(!$(u.data.collection)||!u.data.collection.endsWith(".json"))return;if(!$(u.data.types)||!u.data.types.endsWith(".d.ts"))return;const d=((e,t,r,n,i,a)=>{const o=a.name;let s=t.collections.find((e=>e.collectionName===o));if(null!=s)return s;const c=We(i),l=$e(c,a.collection),u=Xe(e.rootDir,l);e.logger.debug(`load collection: ${o}, ${u}`);const d=t.fs.readFileSync(l);if(!d)return null;const p=me(We(l));return s=((e,t,r,n,i,a)=>{const o=JSON.parse(a),s=o.compiler||{},c={collectionName:n,moduleId:n,moduleFiles:[],dependencies:FR(o),compiler:{name:s.name||"",version:s.version||"",typescriptVersion:s.typescriptVersion||""},bundles:IR(o)};return PR(e,t,r,i,o,c),((e,t,r,n,i,a)=>{i.entries&&i.entries.forEach((i=>{const o=$e(n,i);wR(e,t,r,a,o)}))})(e,t,r,i,o,c),c})(e,t,r,o,p,d),s.moduleId=n,a.module&&a.module!==a.main&&(s.hasExports=!0),s.moduleDir=c,t.collections.push(s),s})(e,t,r,a,u.filePath,u.data);d&&(r.collections.some((e=>e.collectionName===d.collectionName))||(r.collections.push(d),Array.isArray(d.dependencies)&&d.dependencies.forEach((i=>{const a=We(s);MR(e,t,r,n,a,i,o)}))))},RR=(e,t,r,n,i,a,o)=>{if(a.moduleSpecifier&&p.isStringLiteral(a.moduleSpecifier)){let s=a.moduleSpecifier.text;n.originalImports.includes(s)||n.originalImports.push(s),He(s)?(s=me(s),n.localImports.push(s)):s.startsWith(".")?(s=me(Ye(i,s)),n.localImports.push(s)):MR(e,t,r,n,n.sourceFilePath,s,o)}},LR=(e,t,r,n,i,a,o,s)=>{const c=me(n.fileName),l=hw(t,c);if(l&&l.staticSourceFileText===i)return l;const u=We(c),d=ze(a),_=(m=i,g=a=me($e(u,d)),{sourceFilePath:me((f=n).fileName),jsFilePath:g,staticSourceFile:f,staticSourceFileText:m,cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasVdomXlink:!1,htmlAttrNames:[],htmlParts:[],htmlTagNames:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],sourceMapPath:null,sourceMapFileText:null});var f,m,g;a.endsWith(".js.map")?(_.sourceMapPath=a,_.sourceMapFileText=i):l&&l.sourceMapPath&&(_.sourceMapPath=l.sourceMapPath,_.sourceMapFileText=l.sourceMapFileText);const h=me(_.sourceFilePath);t.moduleMap.set(h,_),t.changedModules.add(_.sourceFilePath);const y=n=>p.isClassDeclaration(n)?(CR(t,o,n,_),void 0):p.isImportDeclaration(n)?(RR(e,t,r,_,u,n,!0),void 0):(p.isCallExpression(n)?dR(_,n):p.isStringLiteral(n)&&ER(_,n),n.forEachChild(y),void 0);return null!=s&&(_.isCollectionDependency=!0,_.collectionName=s.collectionName,s.moduleFiles.push(_)),y(n),_.cmps.length>0&&(_.staticSourceFile=p.createSourceFile(c,i,n.languageVersion,!0,p.ScriptKind.JS)),_},BR=(e,t,r)=>{const n=r.tagName,i=t.components.filter((e=>e.tagName===n));if(i.length>1){const r=Z(t.diagnostics);r.header=`Component Tag Name "${n}" Must Be Unique`,r.messageText=`Please update the components so "${n}" is only used once: ${i.map((t=>Xe(e.rootDir,t.sourceFilePath))).join(" ")}`}},jR=(e,t,r)=>{const n=[];for(let i=0;i<30&&e.srcDir!==t;i++){const e=ze(r);n.push(e),r=$e(r,".."),t=me($e(t,".."))}return $e(...n.reverse())},UR=(e,t,r,n,i)=>{n.includes(i)||n.push(i),r.has(i)||(r.add(i),e.reduce(((e,t)=>(t.localImports.forEach((r=>{let n=r;return n===i?(e.push(t.sourceFilePath),void 0):(n=r+".tsx",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".ts",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".js",n===i?(e.push(t.sourceFilePath),void 0):void 0)))})),e)),[]).forEach((e=>{t.push(e)})))},VR=[".png",".jpg",".jpeg",".gif",".webp",".ico",".svg"],KR=(e,t,r)=>{const n=r.componentGraph?(e=>{const t={};for(const[r,n]of e)t[r]=n;return t})(r.componentGraph.entries()):void 0,i={buildId:r.buildId,diagnostics:oe(t,r.diagnostics),dirsAdded:r.dirsAdded.slice().sort(),dirsDeleted:r.dirsDeleted.slice().sort(),duration:Date.now()-r.startTime,filesAdded:r.filesAdded.slice().sort(),filesChanged:r.filesChanged.slice().sort(),filesDeleted:r.filesDeleted.slice().sort(),filesUpdated:r.filesUpdated.slice().sort(),hasError:ne(r.diagnostics),hasSuccessfulBuild:t.hasSuccessfulBuild,isRebuild:r.isRebuild,namespace:e.namespace,outputs:t.fs.getBuildOutputs(),rootDir:e.rootDir,srcDir:e.srcDir,timestamp:MN(),componentGraph:n},a=((e,t,r)=>{if(null==e.devServer||null==e.devServer.reloadStrategy)return null;const n={reloadStrategy:e.devServer.reloadStrategy,versionId:Date.now().toString().substring(6)+""+Math.round(89999*Math.random()+1e4)};r.scriptsAdded.length>0&&(n.scriptsAdded=r.scriptsAdded.slice()),r.scriptsDeleted.length>0&&(n.scriptsDeleted=r.scriptsDeleted.slice());const i=((e,t,r)=>{const n=[];return t&&0!==t.length?(t.forEach((t=>r.map((r=>{let i=!1;return i=X(t)?Gf(r,t):me(t)===me(r),i&&(e.logger.debug(`excludeHmr: ${r}`),n.push(ze(r))),i})).some((e=>e)))),n.sort()):n})(e,e.devServer.excludeHmr,r.filesChanged);i.length>0&&(n.excludeHmr=i.slice()),r.hasHtmlChanges&&(n.indexHtmlUpdated=!0),r.hasServiceWorkerChanges&&(n.serviceWorkerUpdated=!0);const a=e.outputTargets.filter(Ud),o=((e,t)=>{if(!t.filesChanged)return null;const r=t.filesChanged.filter((e=>e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".js")||e.endsWith(".jsx")));if(0===r.length)return null;const n=[],i=new Set,a=t.moduleFiles.filter((e=>e.localImports&&e.localImports.length>0));for(;r.length>0;){const e=r.shift();UR(a,r,i,n,e)}const o=n.reduce(((t,r)=>{const n=e.moduleMap.get(r);return null!=n&&n.cmps.forEach((e=>{"string"==typeof e.tagName&&(t.includes(e.tagName)||t.push(e.tagName))})),t}),[]);return 0===o.length?null:o.sort()})(t,r);o&&(n.componentsUpdated=o),Object.keys(r.stylesUpdated).length>0&&(n.inlineStylesUpdated=j(r.stylesUpdated.map((e=>({styleId:tu(e.styleTag,e.styleMode),styleTag:e.styleTag,styleText:e.styleText}))),(e=>e.styleId)));const s=((e,t)=>{if(!e.isRebuild||0===t.length)return null;const r=e.filesWritten.filter((e=>e.endsWith(".css")));return 0===r.length?null:r.map((e=>ze(e))).sort()})(r,a);s&&(n.externalStylesUpdated=s);const c=((e,t)=>{if(0===t.length)return null;const r=e.filesChanged.reduce(((e,t)=>{if(VR.some((e=>t.toLowerCase().endsWith(e)))){const r=ze(t);e.includes(r)||e.push(r)}return e}),[]);return 0===r.length?null:r.sort()})(r,a);return c&&(n.imagesUpdated=c),n})(e,t,r);return null!=a&&(i.hmr=a),$(r.hydrateAppFilePath)&&(i.hydrateAppFilePath=r.hydrateAppFilePath),t.lastBuildResults=Object.assign({},i),i};function zR(e){return e?e.map((e=>{return{key:e.entryKey,components:e.cmps.map((e=>e.tagName)),bundleId:e.output.bundleId,fileName:e.output.fileName,imports:e.rollupResult.imports,originalByteSize:(r=e.rollupResult.code,t.byteLength(r,"utf8"))};var r})):[]}function WR(e,t){const r={};return j(t.moduleFiles,(e=>e.sourceFilePath)).forEach((t=>{const n=GR(e,t.sourceFilePath);r[n]=t.localImports.map((t=>GR(e,t))).sort()})),r}function JR(e,t){return t.outputs.map((t=>({name:t.type,files:t.files.length,generatedFiles:t.files.map((t=>GR(e,t)))})))}function HR(e,t){return t.components.map((t=>({tag:t.tagName,path:GR(e,t.jsFilePath),source:GR(e,t.sourceFilePath),elementRef:t.elementRef,componentClassName:t.componentClassName,assetsDirs:t.assetsDirs,dependencies:t.dependencies,dependents:t.dependents,directDependencies:t.directDependencies,directDependents:t.directDependents,docs:t.docs,encapsulation:t.encapsulation,excludeFromCollection:t.excludeFromCollection,events:t.events,internal:t.internal,legacyConnect:t.legacyConnect,legacyContext:t.legacyContext,listeners:t.listeners,methods:t.methods,potentialCmpRefs:t.potentialCmpRefs,properties:t.properties,shadowDelegatesFocus:t.shadowDelegatesFocus,states:t.states})))}function $R(e,t){return t.collections.map((t=>({name:t.collectionName,source:GR(e,t.moduleDir),tags:t.moduleFiles.map((e=>e.cmps.map((e=>e.tagName)))).sort()}))).sort(((e,t)=>e.name<t.name?-1:e.name>t.name?1:0))}function GR(e,t){return e.sys.normalizePath(e.sys.platformPath.relative(e.rootDir,t))}const qR=e=>XR(e.config,e.compilerCtx,e,!0),XR=async(e,t,r,n)=>{if(r.hasFinished&&r.buildResults)return r.buildResults;if(r.buildResults=KR(e,t,r),r.buildStats=((e,t)=>{const r=t.buildResults;let n;try{n=r.hasError?{diagnostics:r.diagnostics}:{timestamp:r.timestamp,compiler:{name:e.sys.name,version:e.sys.version},app:{namespace:e.namespace,fsNamespace:e.fsNamespace,components:Object.keys(r.componentGraph).length,entries:Object.keys(r.componentGraph).length,bundles:r.outputs.reduce(((e,t)=>e+t.files.length),0),outputs:JR(e,r)},options:{minifyJs:e.minifyJs,minifyCss:e.minifyCss,hashFileNames:e.hashFileNames,hashedFileNameLength:e.hashedFileNameLength,buildEs5:e.buildEs5},formats:{esmBrowser:zR(t.esmBrowserComponentBundle),esm:zR(t.esmComponentBundle),es5:zR(t.es5ComponentBundle),system:zR(t.systemComponentBundle),commonjs:zR(t.commonJsComponentBundle)},components:HR(e,t),entries:t.entryModules,componentGraph:r.componentGraph,sourceGraph:WR(e,t),rollupResults:t.rollupResults,collections:$R(e,t)}}catch(e){n={diagnostics:[{messageText:"Generate Build Stats Error: "+e,level:"error",type:"build"}]}}return n})(e,r),await(async(e,t)=>{const r=e.outputTargets.filter(Vd);await Promise.all(r.map((async r=>{(await e.sys.writeFile(r.file,JSON.stringify(t,null,2))).error&&e.logger.warn([`Stats failed to write file to ${r.file}`])})))})(e,r.buildStats),r.debug(`${n?"aborted":"finished"} build, ${r.buildResults.duration}ms`),!r.hasFinished){r.hasPrintedResults||(ZR(e,r.buildResults.diagnostics),e.logger.printDiagnostics(r.buildResults.diagnostics));const i=r.hasScriptChanges||r.hasStyleChanges;r.isRebuild&&i&&r.buildResults.hmr&&!n&&YR(e.logger,r);const a=r.isRebuild?"rebuild":"build",o=e.watch?", watching for changes...":"";let s="finished",c="green";r.hasError?(s="failed",c="red"):(t.changedFiles.clear(),t.hasSuccessfulBuild=!0,r.buildResults.hasSuccessfulBuild=!0),r.hasPrintedResults||(r.timeSpan.finish(`${a} ${s}${o}`,c,!0,!0),r.hasPrintedResults=!0),t.events.emit("buildFinish",r.buildResults),W(e.logger.writeLogs)&&e.logger.writeLogs(r.isRebuild)}return r.hasFinished=!0,e.watch||(t.reset(),i&&global.gc&&(r.debug("triggering forced gc"),global.gc(),r.debug("forced gc finished"))),r.buildResults},YR=(e,t)=>{const r=t.buildResults.hmr;if(r.componentsUpdated&&QR(e,"updated component",r.componentsUpdated),r.inlineStylesUpdated){const t=r.inlineStylesUpdated.map((e=>e.styleTag)).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);QR(e,"updated style",t)}r.externalStylesUpdated&&QR(e,"updated stylesheet",r.externalStylesUpdated),r.imagesUpdated&&QR(e,"updated image",r.imagesUpdated)},QR=(e,t,r)=>{if(r.length>0){let n="";if(r.length>7){const e=r.length-6;n=(r=r.slice(0,6)).join(", ")+`, +${e} others`}else n=r.join(", ");r.length>1&&(t+="s"),e.info(`${t}: ${e.cyan(n)}`)}},ZR=(e,t)=>{t.forEach((t=>{!t.relFilePath&&!Fe(t.absFilePath)&&t.absFilePath&&e.rootDir&&(t.relFilePath=Xe(e.rootDir,t.absFilePath))}))},eL=async(e,t)=>{const r=e.outputTargets.filter(Ud).filter((e=>"string"==typeof e.indexHtml&&!!e.serviceWorker));if(0===r.length||null==e.sys.lazyRequire)return;const n=await e.sys.lazyRequire.ensure(e.rootDir,["workbox-build"]);if(n.length>0)t.diagnostics.push(...n);else{const n=e.sys.lazyRequire.require(e.rootDir,"workbox-build");await Promise.all(r.map((r=>(async(e,t,r,n)=>{const i=await(async e=>{if(!e.serviceWorker)return;const t={...e.serviceWorker};return!0!==t.unregister&&delete t.unregister,t})(n);if(!i.unregister)return i.swSrc?Promise.all([pM(t,n,r),_M(t,i,r)]):(async(e,t,r)=>{const n=e.createTimeSpan("generate service worker started");try{await r.generateSW(t),n.finish("generate service worker finished")}catch(t){re(e.diagnostics,t)}})(t,i,r);await e.sys.writeFile(i.swDest,"\nself.addEventListener('install', function(e) {\n self.skipWaiting();\n});\n\nself.addEventListener('activate', function(e) {\n self.registration.unregister()\n .then(function() {\n return self.clients.matchAll();\n })\n .then(function(clients) {\n clients.forEach(client => client.navigate(client.url))\n });\n});\n")})(e,t,n,r))))}},tL=(e,t,r)=>{if(e.devMode)return null;const n=e.outputTargets.filter(Ud);return Promise.all(n.map((async e=>{const n=$e(e.dir,"manifest.json");try{const e=await t.fs.readFile(n);if(e)try{const i=JSON.parse(e);await rL(t,r,n,i)}catch(e){const t=Z(r.diagnostics);t.header=`Invalid manifest.json: ${e}`,t.absFilePath=n}}catch(e){}})))},rL=async(e,t,r,n)=>{Array.isArray(n.icons)&&await Promise.all(n.icons.map((n=>nL(e,t,r,n))))},nL=async(e,t,r,n)=>{let i=n.src;if("string"!=typeof i){const n='Manifest icon missing "src"';return te(e,t.diagnostics,r,n,'"icons"'),void 0}i.startsWith("/")&&(i=i.slice(1));const a=We(r),o=$e(a,i);if(!await e.fs.access(o)){const i=`Unable to find manifest icon "${n.src}"`;te(e,t.diagnostics,r,i,`"${n.src}"`)}},iL=async(e,t,r)=>{if(e.watch)return;if(null==r.packageJson)return;const n=e.outputTargets.filter(Td),i=e.outputTargets.filter(Kd);await Promise.all([...n.map((n=>aL(e,t,r,n))),...i.map((n=>lL(e,t,r,n))),cL(e,t,r)])},aL=async(e,t,r,n)=>{await Promise.all([oL(e,t,r,n),sL(e,t,r,n),uL(e,t,r,n),dL(e,t,r)])},oL=async(e,t,r,n)=>{if(!e.devMode&&Array.isArray(r.packageJson.files)){const i=me(Xe(e.rootDir,n.dir)),a=[`${i}`,`${i}/`,`./${i}`,`./${i}/`];if(!r.packageJson.files.some((e=>a.some((t=>me(e)===t)))))return _L(e,t,r,`package.json "files" array must contain the distribution directory "${i}/" when generating a distribution.`,'"files"'),void 0;await Promise.all(r.packageJson.files.map((async n=>{if(!X(n)){const i=We(e.packageJsonFilePath),a=$e(i,n);await t.fs.access(a)||pL(e,t,r,`Unable to find "${n}" within the package.json "files" array.`,`"${n}"`)}})))}},sL=(e,t,r,n)=>{const i=$e(n.dir,"index.cjs.js"),a=Xe(e.rootDir,i);if($(r.packageJson.main)&&""!==r.packageJson.main){if(me(r.packageJson.main)!==me(a)){const n=`package.json "main" property is set to "${r.packageJson.main}". It's recommended to set the "main" property to: ${a}`;_L(e,t,r,n,'"main"')}}else _L(e,t,r,`package.json "main" property is required when generating a distribution. It's recommended to set the "main" property to: ${a}`,'"main"')},cL=async(e,t,r)=>{const n=r.packageJson.module,i=(e=>{const t=e.outputTargets.find(kd),r=e.outputTargets.find(Cd),n=e.outputTargets.find(Td);if(n)return Xe(e.rootDir,$e(n.dir,"index.js"));if(r){const t=$e(r.dir,"index.js");return Xe(e.rootDir,t)}if(t){const r=$e(t.dir,"index.js");return Xe(e.rootDir,r)}return null})(e);if(!$(n)){let n='package.json "module" property is required when generating a distribution.';return null!==i&&(n+=` It's recommended to set the "module" property to: ${me(i)}`),_L(e,t,r,n,'"module"'),void 0}if(null!==i&&me(i)!==me(n)){const a=`package.json "module" property is set to "${n}". It's recommended to set the "module" property to: ${me(i)}`;_L(e,t,r,a,'"module"')}},lL=async(e,t,r,n)=>{const i=Sd(n),a=Xe(e.rootDir,i);if($(r.packageJson.types)&&""!==r.packageJson.types)if(r.packageJson.types.endsWith(".d.ts")){const n=$e(e.rootDir,r.packageJson.types);if(!await t.fs.access(n)){let n=`package.json "types" property is set to "${r.packageJson.types}" but cannot be found.`;me(r.packageJson.types)!==me(a)&&(n+=` It's recommended to set the "types" property to: ${a}`),pL(e,t,r,n,'"types"')}}else{const n=`package.json "types" file must have a ".d.ts" extension: ${r.packageJson.types}`;_L(e,t,r,n,'"types"')}else _L(e,t,r,`package.json "types" property is required when generating a distribution. It's recommended to set the "types" property to: ${a}`,'"types"')},uL=(e,t,r,n)=>{if(n.collectionDir){const i=$e(Xe(e.rootDir,n.collectionDir),E);r.packageJson.collection&&me(r.packageJson.collection)===i||_L(e,t,r,`package.json "collection" property is required when generating a distribution and must be set to: ${i}`,'"collection"')}},dL=(e,t,r)=>{if($(r.packageJson.browser)){const n=`package.json "browser" property is set to "${r.packageJson.browser}". However, for maximum compatibility with all bundlers it's recommended to not set the "browser" property and instead ensure both "module" and "main" properties are set.`;_L(e,t,r,n,'"browser"')}},pL=(e,t,r,n,i)=>{const a=te(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a},_L=(e,t,r,n,i)=>{const a=te(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a.level="warn",a},fL=async(e,t,n,i)=>{try{if(r.chdir(e.rootDir),await(async(e,t,r)=>{if(r.isRebuild)return;const n=e.outputTargets.filter(CM).filter((e=>!0===e.empty)).map((e=>e.dir||e.esmDir)).filter($);if(0===n.length)return;const i=r.createTimeSpan(`cleaning ${n.length} dirs`,!0);await t.fs.emptyDirs(n),i.finish("cleaning dirs finished")})(e,t,n),n.hasError)return qR(n);if(e.srcIndexHtml){const r=await t.fs.readFile(e.srcIndexHtml);$(r)&&(n.indexDoc=Tf(r))}if(await(async(e,t,r)=>{try{const n=await t.fs.readFile(e.packageJsonFilePath);if(n){const t=Re(n,e.packageJsonFilePath);t.diagnostic?r.diagnostics.push(t.diagnostic):r.packageJson=t.data}}catch(t){if(!e.outputTargets.some((e=>e.type.includes("dist")))){const t=Z(r.diagnostics);t.header='Missing "package.json"',t.messageText=`Valid "package.json" file is required for distribution: ${e.packageJsonFilePath}`}}})(e,t,n),n.hasError)return qR(n);const a=n.createTimeSpan("transpile started"),o=await(async(e,t,r,n)=>{const i=Ce(n.getSyntacticDiagnostics()),a=Ce(n.getGlobalDiagnostics()),o=Ce(n.getOptionsDiagnostics());if(r.diagnostics.push(...i),r.diagnostics.push(...a),r.diagnostics.push(...o),r.hasError)return!1;const s=n.getProgram(),c=s.getTypeChecker(),l=e.outputTargets.filter(Kd),u=[];n.emit(void 0,((n,i,a,o,s)=>{if(n.endsWith(".js")||n.endsWith("js.map"))LR(e,t,r,s[0],i,n,c,null);else if(n.endsWith(".d.ts")){const r=me(s[0].fileName),a=jR(e,r,n);u.push(r),l.forEach((e=>{const r=$e(e.typesDir,a);i=YO(e.typesDir,r,i),t.fs.writeFile(r,i)}))}}),void 0,!1,{before:[sR(e,r.diagnostics,c)]});const d=Array.from(t.changedModules.keys());var p,_;if(r.debug("Transpiled modules: "+JSON.stringify(d,null,"\n")),r.moduleFiles=Array.from(t.moduleMap.values()),r.components=(p=r.moduleFiles,j(U(p.map((e=>e.cmps))),(e=>e.tagName))),_=t.moduleMap,r.components.forEach((e=>{pP(_,e.sourceFilePath,[]).forEach((t=>{e.hasVdomAttribute=e.hasVdomAttribute||t.hasVdomAttribute,e.hasVdomPropOrAttr=e.hasVdomPropOrAttr||t.hasVdomPropOrAttr,e.hasVdomXlink=e.hasVdomXlink||t.hasVdomXlink,e.hasVdomClass=e.hasVdomClass||t.hasVdomClass,e.hasVdomFunctional=e.hasVdomFunctional||t.hasVdomFunctional,e.hasVdomKey=e.hasVdomKey||t.hasVdomKey,e.hasVdomListener=e.hasVdomListener||t.hasVdomListener,e.hasVdomRef=e.hasVdomRef||t.hasVdomRef,e.hasVdomRender=e.hasVdomRender||t.hasVdomRender,e.hasVdomStyle=e.hasVdomStyle||t.hasVdomStyle,e.hasVdomText=e.hasVdomText||t.hasVdomText,e.htmlAttrNames.push(...t.htmlAttrNames),e.htmlTagNames.push(...t.htmlTagNames),e.potentialCmpRefs.push(...t.potentialCmpRefs)})),e.htmlAttrNames=V(e.htmlAttrNames),e.htmlTagNames=V(e.htmlTagNames),e.potentialCmpRefs=V(e.potentialCmpRefs)})),FM(r.components),((e,t)=>{for(const r of t.components)BR(e,t,r)})(e,r),r.hasError)return!1;if(await cM(e,t,r,"src"))return!0;if(l.length>0){const r=s.getRootFileNames().filter((e=>e.endsWith(".d.ts")&&!e.endsWith("components.d.ts"))).map(me).filter((e=>!u.includes(e))).map((r=>{const n=Xe(e.srcDir,r);return Promise.all(l.map((async e=>{const i=$e(e.typesDir,n);let a=await t.fs.readFile(r);a=YO(e.typesDir,i,a),await t.fs.writeFile(i,a)})))}));await Promise.all(r)}if(e.validateTypes){const t=Ce(n.getSemanticDiagnostics());e.devMode&&t.forEach((e=>{"6133"!==e.code&&"6192"!==e.code||(e.level="warn")})),r.diagnostics.push(...t)}return!1})(e,t,n,i);if(a.finish("transpile finished"),n.hasError)return qR(n);if(e.watch&&o)return null;if(n.stylesPromise=(async(e,t,r)=>{const n=e.outputTargets.filter(Pd);if(0===n.length)return;const i=await kM(e,t,r);i&&await Promise.all(n.map((e=>t.fs.writeFile(e.file,i))))})(e,t,n),n.hasError)return qR(n);if(await DM(e,t,n),n.hasError)return qR(n);await n.stylesPromise,await(async(e,t,r)=>{const n=r.createTimeSpan("writeBuildFiles started",!0);let i=0;try{const n=await t.fs.commit();r.filesWritten=n.filesWritten,r.filesDeleted=n.filesDeleted,r.dirsDeleted=n.dirsDeleted,r.dirsAdded=n.dirsAdded,i=n.filesWritten.length,r.debug(`in-memory-fs: ${t.fs.getMemoryStats()}`),await eL(e,r),await((e,t,r)=>r.hasError?null:Promise.all([iL(e,t,r),tL(e,t,r)]))(e,t,r)}catch(e){re(r.diagnostics,e)}n.finish(`writeBuildFiles finished, files wrote: ${i}`)})(e,t,n)}catch(e){re(n.diagnostics,e)}return t.changedFiles.clear(),(async e=>{const t=await XR(e.config,e.compilerCtx,e,!1),r={buildId:e.buildId,messages:e.buildMessages.slice(),progress:1};return e.compilerCtx.events.emit("buildLog",r),t})(n)},mL=e=>ze(e),gL=e=>e.split(".").pop().toLowerCase(),hL=["ts","tsx","js","jsx"],yL=e=>hL.includes(gL(e)),vL=["css","scss","sass","pcss","styl","stylus","less"],bL=e=>vL.includes(gL(e)),xL=(e,t)=>{if($(t)){if(e.watchIgnoredRegex.some((e=>e.test(t))))return!0;const r=e.outputTargets;if([...r.filter(Ld).map((e=>e.file)),...r.filter(Ld).map((e=>e.typesFile)),...r.filter(Vd).map((e=>e.file)),...r.filter(jd).map((e=>e.file))].includes(t))return!0}return!1},EL=async(e,t)=>{let r,n,i=!1;const a=new Promise((e=>n=e)),o=new Set,s=new Set,c=new Set,l=new Set,u=new Set,d=async r=>{const n=new ON(e,t);n.isRebuild=i,n.requiresFullBuild=!i,n.dirsAdded=Array.from(o.keys()).sort(),n.dirsDeleted=Array.from(s.keys()).sort(),n.filesAdded=Array.from(c.keys()).sort(),n.filesUpdated=Array.from(l.keys()).sort(),n.filesDeleted=Array.from(u.keys()).sort(),n.filesChanged=(e=>V([...e.filesUpdated,...e.filesAdded,...e.filesDeleted]).sort())(n),n.scriptsAdded=(e=>e.filesAdded.filter(yL).map(mL))(n),n.scriptsDeleted=(e=>e.filesDeleted.filter(yL).map(mL))(n),n.hasScriptChanges=(e=>e.filesChanged.some(yL))(n),n.hasStyleChanges=(e=>e.filesChanged.some(bL))(n),n.hasHtmlChanges=((e,t)=>!!t.filesChanged.some((e=>e.toLowerCase().endsWith(".html")))||t.filesChanged.some((t=>t===e.srcIndexHtml)))(e,n),n.hasServiceWorkerChanges=((e,t)=>!(e.devMode&&!e.flags.serviceWorker)&&e.outputTargets.filter(Ud).filter((e=>e.serviceWorker&&e.serviceWorker.swSrc)).some((e=>t.filesChanged.some((t=>!!e.serviceWorker&&ze(t).toLowerCase()===ze(e.serviceWorker.swSrc).toLowerCase())))))(e,n),o.clear(),s.clear(),c.clear(),l.clear(),u.clear(),TL(t,n),n.start();const a=await fL(e,t,n,r);a&&!a.hasError&&(i=!0)},_=new Map,f=new Map,m=(n,i)=>{if(r&&!xL(e,n)){switch(CL(e,t,n,i),i){case"dirAdd":o.add(n);break;case"dirDelete":s.add(n);break;case"fileAdd":c.add(n);break;case"fileUpdate":l.add(n);break;case"fileDelete":u.add(n)}e.logger.debug(`onFsChange ${i}: ${n}`),r.rebuild()}},g=(e,t)=>{null!=t&&m(e,t)},h=async()=>{_.forEach((e=>e.close())),f.forEach((e=>e.close())),_.clear(),f.clear(),r&&(r.program.close(),r=null);const e={exitCode:0};return n(e),e};return t.addWatchFile=t=>{!$(t)||f.has(t)||xL(e,t)||f.set(t,e.sys.watchFile(t,m))},t.addWatchDir=(t,r)=>{!$(t)||_.has(t)||xL(e,t)||_.set(t,e.sys.watchDirectory(t,g,r))},e.sys.addDestory(h),{async start(){const n=SL(e,t),i=DL(e,t);return await n,await i,r=await(async(e,t)=>{let r,n,i,a=!1;const o=lp(e),s={...p.sys,setTimeout(t,r){clearInterval(i);const o=n=setInterval((()=>{a||(t(),clearInterval(o),n=i=null)}),e.sys.watchTimeout||r);return o},clearTimeout:e=>clearInterval(e)};e.sys.addDestory((()=>s.clearTimeout(n)));const c=p.createWatchCompilerHost(e.tsconfig,o,s,p.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return c.afterProgramCreate=async e=>{r=e,a=!0,await t(e),a=!1},{program:p.createWatchProgram(c),rebuild(){r&&!n&&(i=s.setTimeout((()=>c.afterProgramCreate(r)),300))}}})(e,d),a},close:h,on:t.events.on,request:async r=>(async(e,t,r)=>{const n={path:r.path,nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null,cachePath:null,cacheHit:!1,content:"",status:404};try{const i=((e,t)=>{const r={nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null};if(t&&t.includes(jN)&&t.endsWith(".js")){const n=new URL(t,"https://stenciljs.com");let i=ze(n.pathname);i=i.substring(0,i.length-3);const a=i.split("@");2===a.length&&(r.nodeModuleId=decodeURIComponent(a[0]),r.nodeModuleVersion=decodeURIComponent(a[1]),r.nodeResolvedPath=n.searchParams.get("p"),r.nodeResolvedPath&&(r.nodeResolvedPath=decodeURIComponent(r.nodeResolvedPath),r.nodeResolvedPath=$e(e.rootDir,r.nodeResolvedPath)))}return r})(e,r.path);if(Object.assign(n,i),!i.nodeModuleId)return n.content="/* invalid dev module */",n.status=400,n;{if(!i.nodeModuleVersion)return n.content="/* invalid module version */",n.status=400,n;if(!i.nodeResolvedPath)return n.content="/* invalid resolved path */",n.status=400,n;const r=await(async(e,t)=>{if(e.enableCache)for(let r=0;r<10;r++){if("node_modules"===ze(t))return!0;if(await e.sys.isSymbolicLink(t))return!1;t=We(t)}return!1})(e,i.nodeResolvedPath);let a=null;if(r){a=((e,t)=>$e(e.cacheDir,`dev_module_${t.nodeModuleId}_${t.nodeModuleVersion}_${BN}.log`))(e,i);const t=await e.sys.readFile(a);if("string"==typeof t)return n.content=t,n.cachePath=a,n.cacheHit=!0,n.status=200,n}await(async(e,t,r,n)=>{const i=new ON(e,t);try{const a=Lw(e,t,i,{id:r.nodeModuleId,platform:"client",inputs:{index:r.nodeResolvedPath}}),o=await iN(a),s={banner:Ie(e),format:"es"};if(r.nodeModuleId){const t=Xe(e.rootDir,r.nodeResolvedPath);s.intro=`/**\n * Dev Node Module: ${r.nodeModuleId}, v${r.nodeModuleVersion}\n * Entry: ${t}\n * DEVELOPMENT PURPOSES ONLY!!\n */`,a.input=r.nodeResolvedPath}const c=await o.generate(s);i.hasError?(n.status=500,n.content=`console.error(${JSON.stringify(i.diagnostics)})`):c&&c.output&&c.output.length>0&&(n.content=c.output[0].code,n.status=200)}catch(e){n.status=500;const t=e instanceof Error?e.stack:e+"";n.content=`console.error(${JSON.stringify(t)})`}})(e,t,i,n),200===n.status&&r&&(n.cachePath=a,(async(e,t)=>{try{await e.sys.createDir(e.cacheDir),e.sys.writeFile(t.cachePath,t.content)}catch(e){console.error(e)}})(e,n))}}catch(e){e&&(e instanceof Error&&e.stack?n.content=`/*\n${e.stack}\n*/`:n.content=`/*\n${e}\n*/`),n.status=500}return n})(e,t,r)}},SL=async(e,t)=>{(await t.fs.readdir(e.srcDir,{recursive:!0,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"],excludeExtensions:[".md",".markdown",".txt",".spec.ts",".spec.tsx",".e2e.ts",".e2e.tsx",".gitignore",".editorconfig"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e))),t.addWatchDir(e.srcDir,!0)},DL=async(e,t)=>{(await t.fs.readdir(e.rootDir,{recursive:!1,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e)))},TL=(e,t)=>{(t.dirsAdded.length>0||t.dirsDeleted.length>0||t.filesUpdated.length>0||t.filesAdded.length>0||t.filesDeleted.length>0)&&e.events.emit("fsChange",{dirsAdded:t.dirsAdded.slice(),dirsDeleted:t.dirsDeleted.slice(),filesUpdated:t.filesUpdated.slice(),filesAdded:t.filesAdded.slice(),filesDeleted:t.filesDeleted.slice()})},CL=(e,t,r,n)=>{if(t.fs.clearFileCache(r),t.changedFiles.add(r),"fileDelete"===n)t.moduleMap.delete(r);else if("dirDelete"===n){const n=Ye("/");t.moduleMap.forEach(((i,a)=>{let o=We(a);for(let i=0;i<50&&o!==e.rootDir&&o!==n;i++){if(o===r){t.fs.clearFileCache(a),t.moduleMap.delete(a),t.changedFiles.add(a);break}o=We(o)}}))}};class kL{constructor(e,t){this.config=e,this.cacheFs=t,this.failed=0,this.skip=!1,this.sys=e.sys,this.logger=e.logger}async initCacheDir(){if(!this.config._isTesting&&this.config.cacheDir){if(!this.config.enableCache||!this.cacheFs)return this.config.logger.info("cache optimizations disabled"),this.clearDiskCache(),void 0;this.config.logger.debug(`cache enabled, cacheDir: ${this.config.cacheDir}`);try{const e=$e(this.config.cacheDir,"_README.log");await this.cacheFs.writeFile(e,PL)}catch(e){this.logger.error(`Cache, initCacheDir: ${e}`),this.config.enableCache=!1}}}async get(e){if(!this.config.enableCache||this.skip)return null;if(this.failed>=AL)return this.skip||(this.skip=!0,this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remander of build`)),null;let t;try{t=await this.cacheFs.readFile(this.getCacheFilePath(e)),this.failed=0,this.skip=!1}catch(e){this.failed++,t=null}return t}async put(e,t){if(!this.config.enableCache)return!1;let r;try{await this.cacheFs.writeFile(this.getCacheFilePath(e),t),r=!0}catch(e){this.failed++,r=!1}return r}async has(e){return"string"==typeof await this.get(e)}async createKey(e,...t){return this.config.enableCache?e+"_"+await this.sys.generateContentHash(JSON.stringify(t),32):e+9999999*Math.random()}async commit(){this.config.enableCache&&(this.skip=!1,this.failed=0,await this.cacheFs.commit(),await this.clearExpiredCache())}clear(){null!=this.cacheFs&&this.cacheFs.clearCache()}async clearExpiredCache(){if(null==this.cacheFs||null==this.sys.cacheStorage)return;const e=Date.now(),t=await this.sys.cacheStorage.get(FL);if(null!=t){if(e-t<NL)return;const r=this.cacheFs.sys,n=await r.readDir(this.config.cacheDir),i=n.map((e=>$e(this.config.cacheDir,e)));let a=0;const o=i.map((async t=>{const n=(await r.stat(t)).mtimeMs;e-n>wL&&(await r.removeFile(t),a++)}));await Promise.all(o),this.logger.debug(`clearExpiredCache, cachedFileNames: ${n.length}, totalCleared: ${a}`)}this.logger.debug("clearExpiredCache, set last clear"),await this.sys.cacheStorage.set(FL,e)}async clearDiskCache(){null!=this.cacheFs&&await this.cacheFs.access(this.config.cacheDir)&&(await this.cacheFs.remove(this.config.cacheDir),await this.cacheFs.commit())}getCacheFilePath(e){return $e(this.config.cacheDir,e)+".log"}getMemoryStats(){return null!=this.cacheFs?this.cacheFs.getMemoryStats():null}}const AL=100,NL=864e5,wL=7*NL,FL="last_clear_expired_cache",PL='# Stencil Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the stencil config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the stencil config.\n',IL=(e={})=>({task:null,args:[],knownArgs:[],unknownArgs:[],...e}),OL=e=>{const t=new Map,r=new Map,n=async(e,r={})=>{e=me(e);const n=[];if(!0===r.inMemoryOnly){let i=e;i.endsWith("/")||(i+="/");const o=e.split("/");t.forEach(((t,i)=>{if(!i.startsWith(e))return;const s=i.split("/");if((s.length===o.length+1||r.recursive&&s.length>o.length)&&t.exists){const e={absPath:i,relPath:s[o.length],isDirectory:t.isDirectory,isFile:t.isFile};a(r,e)||n.push(e)}}))}else await i(e,e,r,n);return n.sort(((e,t)=>e.absPath<t.absPath?-1:e.absPath>t.absPath?1:0))},i=async(t,r,n,o)=>{const c=await e.readDir(r);if(c.length>0){const e=m(r);e.exists=!0,e.isFile=!1,e.isDirectory=!0,await Promise.all(c.map((async e=>{const r=me(e),c=me(Xe(t,r)),l=await s(r),u={absPath:r,relPath:c,isDirectory:l.isDirectory,isFile:l.isFile};a(n,u)||(o.push(u),!0===n.recursive&&!0===l.isDirectory&&await i(t,r,n,o))})))}},a=(e,t)=>{if(t.isDirectory){if(Array.isArray(e.excludeDirNames)){const r=ze(t.absPath);if(e.excludeDirNames.some((e=>r===e)))return!0}}else if(Array.isArray(e.excludeExtensions)){const r=t.relPath.toLowerCase();if(e.excludeExtensions.some((e=>r.endsWith(e))))return!0}return!1},o=async e=>{const t=m(e);t.queueWriteToDisk||(t.queueDeleteFromDisk=!0)},s=async t=>{const r=m(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=await e.stat(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory,size:"number"==typeof r.size?r.size:0}},c=t=>{const r=m(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=e.statSync(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory,size:r.size}},l=async(t,n,i)=>{if("string"!=typeof t)throw new Error(`writeFile, invalid filePath: ${t}`);if("string"!=typeof n)throw new Error(`writeFile, invalid content: ${t}`);const a={ignored:!1,changedContent:!1,queuedWrite:!1};if(!0===RL(t))return a.ignored=!0,a;const o=m(t);if(o.exists=!0,o.isFile=!0,o.isDirectory=!1,o.queueDeleteFromDisk=!1,"string"==typeof o.fileText?a.changedContent=o.fileText.replace(/\r/g,"")!==n.replace(/\r/g,""):a.changedContent=!0,o.fileText=n,a.queuedWrite=!1,null!=i&&("string"==typeof i.outputTargetType&&r.set(t,i.outputTargetType),!1===i.useCache&&(o.useCache=!1)),null!=i&&!0===i.inMemoryOnly)o.queueWriteToDisk?a.queuedWrite=!0:o.queueWriteToDisk=!1,await u(t,!0);else if(null!=i&&!0===i.immediateWrite){if(a.changedContent||!0!==i.useCache){const r=await e.readFile(t);"string"==typeof r&&(a.changedContent=o.fileText.replace(/\r/g,"")!==r.replace(/\r/g,"")),a.changedContent&&(await u(t,!1),await e.writeFile(t,o.fileText))}}else o.queueWriteToDisk||!0!==a.changedContent||(o.queueWriteToDisk=!0,a.queuedWrite=!0);return a},u=async(e,t)=>{const r=[];for(;"string"==typeof(e=We(e))&&e.length>0&&"/"!==e&&!1===e.endsWith(":/")&&!1===e.endsWith(":\\");)r.push(e);r.reverse(),await d(r,t)},d=async(t,r)=>{const n=[];for(const i of t){const t=m(i);if(!0!==t.exists||!0!==t.isDirectory)try{t.exists=!0,t.isDirectory=!0,t.isFile=!1,r||await e.createDir(i),n.push(i)}catch(e){}}return n},p=async t=>{const r=m(t);if(null==r.fileText)throw new Error(`unable to find item fileText to write: ${t}`);return await e.writeFile(t,r.fileText),!1===r.useCache&&f(t),t},_=e=>{e=me(e),t.forEach(((t,r)=>{const n=Xe(e,r).split("/")[0];n.startsWith(".")||n.startsWith("/")||f(r)}))},f=e=>{e=me(e);const r=t.get(e);null==r||r.queueWriteToDisk||t.delete(e)},m=e=>{e=me(e);let r=t.get(e);return null!=r||t.set(e,r={exists:null,fileText:null,size:null,mtimeMs:null,isDirectory:null,isFile:null,queueCopyFileToDest:null,queueDeleteFromDisk:null,queueWriteToDisk:null,useCache:null}),r},g=5242880;return{async access(e){const t=m(e);return"boolean"!=typeof t.exists?(await s(e)).exists:t.exists},accessSync(e){const t=m(e);return"boolean"!=typeof t.exists?c(e).exists:t.exists},cancelDeleteDirectoriesFromDisk(e){for(const t of e){const e=m(t);!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},cancelDeleteFilesFromDisk(e){for(const t of e){const e=m(t);!0===e.isFile&&!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},clearCache(){t.clear()},clearDirCache:_,clearFileCache:f,async commit(){const r=ML(t),n=await d(r.dirsToEnsure,!1),i=await(l=r.filesToWrite,Promise.all(l.map((async e=>{if("string"!=typeof e)throw new Error("unable to writeFile without filePath");return p(e)})))),a=await(c=r.filesToCopy,Promise.all(c.map((async t=>{const[r,n]=t;return await e.copyFile(r,n),[r,n]})))),o=await(async t=>await Promise.all(t.map((async t=>{if("string"!=typeof t)throw new Error("unable to unlink without filePath");return await e.removeFile(t),t}))))(r.filesToDelete),s=await(async t=>{const r=[];for(const n of t)await e.removeDir(n),r.push(n);return r})(r.dirsToDelete);var c,l;return r.filesToDelete.forEach(f),r.dirsToDelete.forEach(_),{filesCopied:a,filesWritten:i,filesDeleted:o,dirsDeleted:s,dirsAdded:n}},async copyFile(e,t){m(e).queueCopyFileToDest=t},async emptyDirs(e){e=e.filter($).map(me).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);const t=await Promise.all(e.map((e=>n(e,{recursive:!0})))),r=[];for(const e of t)for(const t of e)r.includes(t.absPath)||r.push(t.absPath);r.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:0})),await Promise.all(r.map(o)),e.forEach((e=>{const t=m(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk=!0,t.queueDeleteFromDisk=!1}))},getBuildOutputs(){const e=[];return r.forEach(((t,r)=>{const n=e.find((e=>e.type===t));n?n.files.push(r):e.push({type:t,files:[r]})})),e.forEach((e=>e.files.sort())),e.sort(((e,t)=>e.type<t.type?-1:e.type>t.type?1:0))},getItem:m,getMemoryStats:()=>`data length: ${t.size}`,async readFile(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=m(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=await e.readFile(t),i=m(t);return"string"==typeof n?n.length<g&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readFileSync(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=m(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=e.readFileSync(t),i=m(t);return"string"==typeof n?n.length<g&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readdir:n,async remove(e){const t=await s(e);!0===t.isDirectory?await(async e=>{const t=m(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk||(t.queueDeleteFromDisk=!0);try{const t=await n(e,{recursive:!0});await Promise.all(t.map((e=>e.relPath.endsWith(".gitkeep")?null:o(e.absPath))))}catch(e){}})(e):!0===t.isFile&&await o(e)},stat:s,statSync:c,sys:e,writeFile:l,writeFiles(e,t){const r=[];return G(e)?e.forEach(((e,n)=>{r.push(l(n,e,t))})):Object.keys(e).map((n=>{r.push(l(n,e[n],t))})),Promise.all(r)}}},ML=e=>{const t={filesToDelete:[],filesToWrite:[],filesToCopy:[],dirsToDelete:[],dirsToEnsure:[]};e.forEach(((e,r)=>{if(!0===e.queueWriteToDisk){if(!0===e.isFile){t.filesToWrite.push(r);const e=me(We(r));t.dirsToEnsure.includes(e)||t.dirsToEnsure.push(e);const n=t.dirsToDelete.indexOf(e);n>-1&&t.dirsToDelete.splice(n,1);const i=t.filesToDelete.indexOf(r);i>-1&&t.filesToDelete.splice(i,1)}else if(!0===e.isDirectory){t.dirsToEnsure.includes(r)||t.dirsToEnsure.push(r);const e=t.dirsToDelete.indexOf(r);e>-1&&t.dirsToDelete.splice(e,1)}}else if(!0===e.queueDeleteFromDisk)e.isDirectory&&!t.dirsToEnsure.includes(r)?t.dirsToDelete.push(r):e.isFile&&!t.filesToWrite.includes(r)&&t.filesToDelete.push(r);else if("string"==typeof e.queueCopyFileToDest){const n=r,i=e.queueCopyFileToDest;t.filesToCopy.push([n,i]);const a=me(We(i));t.dirsToEnsure.includes(a)||t.dirsToEnsure.push(a);const o=t.dirsToDelete.indexOf(a);o>-1&&t.dirsToDelete.splice(o,1);const s=t.filesToDelete.indexOf(i);s>-1&&t.filesToDelete.splice(s,1)}e.queueDeleteFromDisk=!1,e.queueWriteToDisk=!1}));for(let e=0,r=t.dirsToEnsure.length;e<r;e++){const r=t.dirsToEnsure[e].split("/");for(let e=2;e<r.length;e++){const n=r.slice(0,e).join("/");!1===t.dirsToEnsure.includes(n)&&t.dirsToEnsure.push(n)}}t.dirsToEnsure.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e.length<t.length?-1:e.length>t.length?1:0})),t.dirsToDelete.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:e.length<t.length?1:e.length>t.length?-1:0}));for(const e of t.dirsToEnsure){const r=t.dirsToDelete.indexOf(e);r>-1&&t.dirsToDelete.splice(r,1)}return t.dirsToDelete=t.dirsToDelete.filter((e=>"/"!==e&&!0!==e.endsWith(":/"))),t.dirsToEnsure=t.dirsToEnsure.filter((t=>{const r=e.get(t);return(null==r||!0!==r.exists||!0!==r.isDirectory)&&"/"!==t&&!t.endsWith(":/")})),t},RL=e=>(e=e.trim().toLowerCase(),LL.some((t=>e.endsWith(t)))),LL=[".ds_store",".gitignore","desktop.ini","thumbs.db"],BL=e=>({optimizeCss:e.handler("optimizeCss"),prepareModule:e.handler("prepareModule"),prerenderWorker:e.handler("prerenderWorker"),transformCssToEsm:e.handler("transformCssToEsm")}),jL=e=>JSON.stringify({compilerOptions:{allowSyntheticDefaultImports:!0,experimentalDecorators:!0,lib:["dom","es2015"],moduleResolution:"node",module:"esnext",target:"es2017",jsx:"react",jsxFactory:"h",jsxFragmentFactory:"Fragment",sourceMap:e.sourceMap,inlineSources:e.sourceMap},include:[Xe(e.rootDir,e.srcDir)]},null,2),UL=(e,t)=>(He(t)||(t=$e(e.rootDir,t)),t),VL=(e,t,r,n)=>{var i;if(r){const n=null===(i=e.flags)||void 0===i?void 0:i[r];z(n)&&(e[t]=n)}const a=KL(e,t);"function"==typeof e[a]&&(e[a]=!!e[a]()),z(e[a])?e[t]=e[a]:e[t]=n},KL=(e,t)=>{var r;const n=Object.keys(e);for(const i of n)if(i.toLowerCase()===t.toLowerCase()){if(i!==t)return null===(r=e.logger)||void 0===r?void 0:r.warn(`config "${i}" should be "${t}"`),i;break}return t},zL=(e,t)=>t.filter(wd).map((t=>{let r=t.directivesProxyFile;r&&!He(r)&&(r=$e(e.rootDir,r));let n=t.directivesArrayFile;n&&!He(n)&&(n=$e(e.rootDir,n));let i=t.directivesUtilsFile;return i&&!He(i)&&(i=$e(e.rootDir,i)),{type:"angular",componentCorePackage:t.componentCorePackage,directivesProxyFile:r,directivesArrayFile:n,directivesUtilsFile:i,excludeComponents:t.excludeComponents||[]}})),WL=(e,t)=>t.filter(Td).map((t=>{var r,n;return{...t,transformAliasedImportPaths:null!==(r=t.transformAliasedImportPaths)&&void 0!==r&&r,dir:UL(e,null!==(n=t.dir)&&void 0!==n?n:"dist/collection")}})),JL=(e,t=[])=>{if(null===e||!1===e)return[];Array.isArray(e)||(e=[]),e=e.slice();for(const r of t)e.every((e=>e.src!==r.src))&&e.push(r);return V(e,(e=>`${e.src}:${e.dest}:${e.keepDirStructure}`))},HL=(e,t)=>{const r="dist";return t.filter(Cd).reduce(((t,n)=>{const i={...n,dir:UL(e,n.dir||$e(r,"components"))};if(z(i.empty)||(i.empty=!0),z(i.externalRuntime)||(i.externalRuntime=!0),i.generateTypeDeclarations){const n=UL(e,$e(r,"types"));t.push({type:Xd,dir:i.dir,typesDir:n})}return i.copy=JL(i.copy,[]),i.copy.length>0&&t.push({type:Wd,dir:e.rootDir,copy:[...i.copy]}),t.push(i),t}),[])},$L=(e,t)=>t.filter(kd).reduce(((t,r)=>{const n={...r,dir:UL(e,r.dir||"dist/custom-elements")};return z(n.empty)||(n.empty=!0),z(n.externalRuntime)||(n.externalRuntime=!0),n.copy=JL(n.copy,[]),n.copy.length>0&&t.push({type:Wd,dir:e.rootDir,copy:[...n.copy]}),t.push(n),t}),[]),GL=(e,t,r)=>r.filter(Od).map((r=>{if(r.validate){const n=[];try{r.validate(e,t)}catch(e){re(n,e)}r.copy&&r.copy.length>0&&e.outputTargets.push({type:Wd,dir:e.rootDir,copy:[...r.copy]}),t.push(...n)}return r})),qL=(e,t)=>t.filter(Dd).reduce(((t,r)=>{var n;const i=XL(e,r);t.push(i);const a=e.fsNamespace||"app",o=$e(i.buildDir,a);if(t.push({type:Qd,esmDir:o,systemDir:e.buildEs5?o:void 0,systemLoaderFile:e.buildEs5?$e(o,a+".js"):void 0,legacyLoaderFile:$e(i.buildDir,a+".js"),polyfills:void 0===i.polyfills||!!i.polyfills,isBrowserBuild:!0,empty:i.empty}),t.push({type:Wd,dir:o,copyAssets:"dist",copy:(null!==(n=i.copy)&&void 0!==n?n:[]).concat()}),t.push({type:ep,file:$e(o,`${e.fsNamespace}.css`)}),t.push({type:Xd,dir:i.dir,typesDir:i.typesDir}),e.buildDist){i.collectionDir&&(t.push({type:$d,dir:i.dir,collectionDir:i.collectionDir,empty:i.empty,transformAliasedImportPaths:i.transformAliasedImportPathsInCollection}),t.push({type:Wd,dir:i.collectionDir,copyAssets:"collection",copy:[...i.copy,{src:"**/*.svg"},{src:"**/*.js"}]}));const r=$e(i.dir,"esm"),n=e.buildEs5?$e(i.dir,"esm-es5"):void 0,a=$e(i.dir,"cjs");t.push({type:Qd,esmDir:r,esmEs5Dir:n,cjsDir:a,cjsIndexFile:$e(i.dir,"index.cjs.js"),esmIndexFile:$e(i.dir,"index.js"),polyfills:!0,empty:i.empty}),t.push({type:Zd,dir:i.esmLoaderPath,esmDir:r,esmEs5Dir:n,cjsDir:a,componentDts:Sd(i),empty:i.empty})}return t}),[]),XL=(e,t)=>{var r,n;const i={...t,dir:UL(e,t.dir||YL),buildDir:$(t.buildDir)?t.buildDir:QL,collectionDir:void 0!==t.collectionDir?t.collectionDir:ZL,typesDir:t.typesDir||eB,esmLoaderPath:t.esmLoaderPath||tB,copy:JL(null!==(r=t.copy)&&void 0!==r?r:[],[]),polyfills:z(t.polyfills)?t.polyfills:void 0,empty:!z(t.empty)||t.empty,transformAliasedImportPathsInCollection:null!==(n=t.transformAliasedImportPathsInCollection)&&void 0!==n&&n};return He(i.buildDir)||(i.buildDir=$e(i.dir,i.buildDir)),i.collectionDir&&!He(i.collectionDir)&&(i.collectionDir=$e(i.dir,i.collectionDir)),He(i.esmLoaderPath)||(i.esmLoaderPath=Ye(i.dir,i.esmLoaderPath)),He(i.typesDir)||(i.typesDir=$e(i.dir,i.typesDir)),i},YL="dist",QL="",ZL="collection",eB="types",tB="loader",rB=(e,t,r)=>{const n=[];return $(e.flags.docsJson)&&n.push(iB(e,t,{type:"docs-json",file:e.flags.docsJson})),r.filter(Ld).forEach((r=>{n.push(iB(e,t,r))})),(e.flags.docs||"docs"===e.flags.task)&&(r.some(Rd)||n.push(nB(e,{type:"docs-readme"}))),r.filter(Rd).forEach((t=>{n.push(nB(e,t))})),r.filter(Bd).forEach((e=>{n.push(aB(t,e))})),r.filter(jd).forEach((e=>{n.push(oB(t,e))})),n},nB=(e,t)=>($(t.dir)||(t.dir=e.srcDir),He(t.dir)||(t.dir=$e(e.rootDir,t.dir)),null==t.footer&&(t.footer="*Built with [StencilJS](https://stenciljs.com/)*"),t.strict=!!t.strict,t),iB=(e,t,r)=>($(r.file)||(Z(t).messageText='docs-json outputTarget missing the "file" option'),r.file=$e(e.rootDir,r.file),$(r.typesFile)?r.typesFile=$e(e.rootDir,r.typesFile):null!==r.typesFile&&r.file.endsWith(".json")&&(r.typesFile=r.file.replace(/\.json$/,".d.ts")),r.strict=!!r.strict,r),aB=(e,t)=>(W(t.generator)||(Z(e).messageText='docs-custom outputTarget missing the "generator" function'),t.strict=!!t.strict,t),oB=(e,t)=>($(t.file)||(Z(e).messageText='docs-vscode outputTarget missing the "file" path'),t),sB=(e,t)=>{const r=[];if(!t.some(Id)){const r=t.filter(Ud).some((e=>$(e.indexHtml))),n=e.flags.prerender||e.flags.ssr;if(r&&n){let e;const r=t.find(Dd);e=null!=r&&$(r.dir)?$e(r.dir,"hydrate"):"dist/hydrate";const n={type:Yd,dir:e};t.push(n)}}return t.filter(Id).forEach((t=>{$(t.dir)||(t.dir="hydrate"),He(t.dir)||(t.dir=$e(e.rootDir,t.dir)),z(t.empty)||(t.empty=!0),t.external=t.external||[],t.external.push(...ym),r.push(t)})),r},cB=(e,t)=>t.filter(Nd).map((t=>{const r=UL(e,t.dir||$e("dist",e.fsNamespace));return{type:Qd,esmDir:r,systemDir:e.buildEs5?r:void 0,systemLoaderFile:e.buildEs5?$e(r,`${e.fsNamespace}.js`):void 0,polyfills:!!t.polyfills,isBrowserBuild:!0,empty:!z(t.empty)||t.empty}})),lB=(e,t)=>{const r=[];return e.flags.stats&&(t.some(Vd)||r.push({type:ap})),r.push(...t.filter(Vd)),r.forEach((t=>{t.file||(t.file="stencil-stats.json"),He(t.file)||(t.file=$e(e.rootDir,t.file))})),r},uB=["*.html","**/*.{js,css,json}"],dB=(e,t,r)=>{const n=r.length>0,i=!!e.flags.e2e,a=r.filter(Ud);return n&&(!i||r.some(Ud)||r.some(Dd))||a.push({type:op}),e.flags.prerender&&0===a.length&&(Z(t).messageText='You need at least one "www" output target configured in your stencil.config.ts, when the "--prerender" flag is used'),a.reduce(((r,n)=>{const i=pB(e,n,t);r.push(i);const a=i.buildDir;return r.push({type:Qd,dir:a,esmDir:a,systemDir:e.buildEs5?a:void 0,systemLoaderFile:e.buildEs5?$e(a,`${e.fsNamespace}.js`):void 0,polyfills:i.polyfills,isBrowserBuild:!0}),r.push({type:Wd,dir:a,copyAssets:"dist"}),r.push({type:Wd,dir:i.appDir,copy:JL(i.copy,[{src:"assets",warn:!1},{src:"manifest.json",warn:!1}])}),r.push({type:ep,file:$e(a,`${e.fsNamespace}.css`)}),r}),[])},pB=(e,t,r)=>{$(t.baseUrl)||(t.baseUrl="/"),t.baseUrl.endsWith("/")||(t.baseUrl+="/"),t.dir=UL(e,t.dir||"www");const n=new URL(t.baseUrl,"http://localhost/").pathname;return t.appDir=$e(t.dir,n),(t.appDir.endsWith("/")||t.appDir.endsWith("\\"))&&(t.appDir=t.appDir.substring(0,t.appDir.length-1)),$(t.buildDir)||(t.buildDir="build"),He(t.buildDir)||(t.buildDir=$e(t.appDir,t.buildDir)),$(t.indexHtml)||(t.indexHtml="index.html"),He(t.indexHtml)||(t.indexHtml=$e(t.appDir,t.indexHtml)),z(t.empty)||(t.empty=!0),((e,t,r)=>{if(e.flags.ssr||e.flags.prerender||"prerender"===e.flags.task){r.baseUrl=me(r.baseUrl),r.baseUrl.startsWith("http://")||r.baseUrl.startsWith("https://")||(Z(t).messageText='When prerendering, the "baseUrl" output target config must be a full URL and start with either "http://" or "https://". The config can be updated in the "www" output target within the stencil config.');try{new URL(r.baseUrl)}catch(e){Z(t).messageText=`invalid "baseUrl": ${e}`}r.baseUrl.endsWith("/")||(r.baseUrl+="/"),$(r.prerenderConfig)&&(He(r.prerenderConfig)||(r.prerenderConfig=$e(e.rootDir,r.prerenderConfig)))}})(e,r,t),((e,t)=>{if(!1!==t.serviceWorker){if(e.devMode&&!e.flags.serviceWorker)return t.serviceWorker=null,void 0;if(null===t.serviceWorker)return t.serviceWorker=null,void 0;if(!0===t.serviceWorker)t.serviceWorker={};else if(!t.serviceWorker&&e.devMode)return t.serviceWorker=null,void 0;"object"!=typeof t.serviceWorker&&(t.serviceWorker={}),Array.isArray(t.serviceWorker.globPatterns)||("string"==typeof t.serviceWorker.globPatterns?t.serviceWorker.globPatterns=[t.serviceWorker.globPatterns]:"string"!=typeof t.serviceWorker.globPatterns&&(t.serviceWorker.globPatterns=uB.slice())),"string"!=typeof t.serviceWorker.globDirectory&&(t.serviceWorker.globDirectory=t.appDir),"string"==typeof t.serviceWorker.globIgnores&&(t.serviceWorker.globIgnores=[t.serviceWorker.globIgnores]),t.serviceWorker.globIgnores=t.serviceWorker.globIgnores||[],((e,t)=>{t.push("**/host.config.json","**/*.system.entry.js","**/*.system.js",`**/${e.fsNamespace}.js`,`**/${e.fsNamespace}.esm.js`,`**/${e.fsNamespace}.css`)})(e,t.serviceWorker.globIgnores),t.serviceWorker.dontCacheBustURLsMatching=/p-\w{8}/,$(t.serviceWorker.swSrc)&&!He(t.serviceWorker.swSrc)&&(t.serviceWorker.swSrc=$e(e.rootDir,t.serviceWorker.swSrc)),$(t.serviceWorker.swDest)||(t.serviceWorker.swDest=$e(t.appDir,"sw.js")),He(t.serviceWorker.swDest)||(t.serviceWorker.swDest=$e(t.appDir,t.serviceWorker.swDest))}})(e,t),void 0===t.polyfills&&(t.polyfills=!0),t.polyfills=!!t.polyfills,t},_B={inputOptions:{},outputOptions:{}},fB=(e,t)=>{e.includes(t)||e.push(t)},mB=[".vscode",".stencil","node_modules"],gB=(e={},t)=>{var r,n,i,a;const o=Object.assign({},e),s=[],c=t.logger||o.logger||_t(),l={...o,flags:JSON.parse(JSON.stringify(o.flags||{})),logger:c,outputTargets:null!==(r=o.outputTargets)&&void 0!==r?r:[],rootDir:"string"==typeof o.rootDir?o.rootDir:"/",sys:null!==(i=null!==(n=o.sys)&&void 0!==n?n:t.sys)&&void 0!==i?i:Yr({logger:c}),testing:null!==(a=o.testing)&&void 0!==a?a:{}};return l.flags.prod?l.devMode=!1:l.flags.dev?l.devMode=!0:z(l.devMode)||(l.devMode=hB),l.extras=l.extras||{},l.extras.appendChildSlotFix=!!l.extras.appendChildSlotFix,l.extras.cloneNodeFix=!!l.extras.cloneNodeFix,l.extras.cssVarsShim=!!l.extras.cssVarsShim,l.extras.dynamicImportShim=!!l.extras.dynamicImportShim,l.extras.lifecycleDOMEvents=!!l.extras.lifecycleDOMEvents,l.extras.safari10=!!l.extras.safari10,l.extras.scriptDataOpts=!!l.extras.scriptDataOpts,l.extras.shadowDomShim=!!l.extras.shadowDomShim,l.extras.slotChildNodesFix=!!l.extras.slotChildNodesFix,l.extras.initializeNextTick=!!l.extras.initializeNextTick,l.extras.tagNameTransform=!!l.extras.tagNameTransform,l.buildEs5=!0===l.buildEs5||!l.devMode&&"prod"===l.buildEs5,VL(l,"minifyCss",null,!l.devMode),VL(l,"minifyJs",null,!l.devMode),VL(l,"sourceMap",null,void 0!==l.sourceMap&&l.sourceMap),VL(l,"watch","watch",!1),VL(l,"buildDocs","docs",!l.devMode),VL(l,"buildDist","esm",!l.devMode||l.buildEs5),VL(l,"profile","profile",l.devMode),VL(l,"writeLog","log",!1),VL(l,"buildAppCore",null,!0),VL(l,"autoprefixCss",null,l.buildEs5),VL(l,"validateTypes",null,!l._isTesting),VL(l,"allowInlineScripts",null,!0),$(l.taskQueue)||(l.taskQueue="async"),z(l.hashFileNames)||(l.hashFileNames=!l.devMode),J(l.hashedFileNameLength)||(l.hashedFileNameLength=yB),l.hashedFileNameLength<vB&&(Z(s).messageText=`validatedConfig.hashedFileNameLength must be at least ${vB} characters`),l.hashedFileNameLength>bB&&(Z(s).messageText=`validatedConfig.hashedFileNameLength cannot be more than ${bB} characters`),l.env||(l.env={}),((e,t)=>{e.namespace=$(e.namespace)?e.namespace:"App",e.namespace=e.namespace.trim();const r=e.namespace.replace(/(\w)|(\-)|(\$)/g,"");""!==r&&(Z(t).messageText=`Namespace "${e.namespace}" contains invalid characters: ${r}`),e.namespace.length<3&&(Z(t).messageText=`Namespace "${e.namespace}" must be at least 3 characters`),/^\d+$/.test(e.namespace.charAt(0))&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a number for the first character`),"-"===e.namespace.charAt(0)&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the first character`),"-"===e.namespace.charAt(e.namespace.length-1)&&(Z(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the last character`),$(e.fsNamespace)||(e.fsNamespace=e.namespace.toLowerCase().trim()),e.namespace.includes("-")&&(e.namespace=R(e.namespace))})(l,s),(e=>{"string"!=typeof e.rootDir&&(e.rootDir="/"),"string"!=typeof e.srcDir&&(e.srcDir="src"),He(e.srcDir)||(e.srcDir=$e(e.rootDir,e.srcDir)),"string"!=typeof e.cacheDir&&(e.cacheDir=".stencil"),He(e.cacheDir)||(e.cacheDir=$e(e.rootDir,e.cacheDir)),"string"!=typeof e.srcIndexHtml&&(e.srcIndexHtml=$e(e.srcDir,"index.html")),He(e.srcIndexHtml)||(e.srcIndexHtml=$e(e.rootDir,e.srcIndexHtml)),"string"!=typeof e.globalScript||He(e.globalScript)||He(e.globalScript)||(e.globalScript=$e(e.rootDir,e.globalScript)),"string"==typeof e.globalStyle&&(He(e.globalStyle)||(e.globalStyle=$e(e.rootDir,e.globalStyle))),e.writeLog&&("string"!=typeof e.buildLogFilePath&&(e.buildLogFilePath="stencil-build.log"),He(e.buildLogFilePath)||(e.buildLogFilePath=$e(e.rootDir,e.buildLogFilePath))),e.packageJsonFilePath=$e(e.rootDir,"package.json")})(l),((e,t)=>{const r=(e.outputTargets||[]).slice();r.forEach((e=>{var r;r=e.type,sp.includes(r)?e.type===qd&&(ee(t).messageText='dist-custom-elements-bundle is deprecated and will be removed in a future major version release. Use "dist-custom-elements" instead. If "dist-custom-elements" does not meet your needs, please add a comment to https://github.com/ionic-team/stencil/issues/3136.'):Z(t).messageText=`Invalid outputTarget type "${e.type}". Valid outputTarget types include: ${sp.map((e=>`"${e}"`)).join(", ")}`})),e.outputTargets=[...WL(e,r),...HL(e,r),...$L(e,r),...GL(e,t,r),...cB(e,r),...dB(e,t,r),...qL(e,r),...rB(e,t,r),...zL(e,r),...lB(e,r)],e.outputTargets=[...e.outputTargets,...sB(e,[...r,...e.outputTargets])]})(l,s),((e,t)=>{const r=e.plugins;if(e.rollupPlugins||(e.rollupPlugins={}),!Array.isArray(r))return e.plugins=[],void 0;const n=r.filter((e=>!(!e||"object"!=typeof e||e.pluginType))),i=n.some((e=>"node-resolve"===e.name));n.some((e=>"commonjs"===e.name))&&(ee(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),i&&(ee(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),e.rollupPlugins.before=[...e.rollupPlugins.before||[],...n.filter((({name:e})=>"node-resolve"!==e&&"commonjs"!==e))],e.plugins=r.filter((e=>!(!e||"object"!=typeof e||!e.pluginType)))})(l,s),(e=>{const t=(e=>{let t=_B;return e&&H(e)?(e.inputOptions&&H(e.inputOptions)&&(t={...t,inputOptions:K(e.inputOptions,["context","moduleContext","treeshake"])}),e.outputOptions&&H(e.outputOptions)&&(t={...t,outputOptions:K(e.outputOptions,["globals"])}),t):t})(e.rollupConfig);e.rollupConfig=t})(l),l.devServer=((e,t)=>{var r,n,i,a,o;if(!1===(null===e.devServer||e.devServer))return;const{flags:s}=e,c={...e.devServer};s.address&&$(s.address)?c.address=s.address:$(c.address)||(c.address="0.0.0.0");let l="http";c.address.toLowerCase().startsWith("http://")?(c.address=c.address.substring(7),l="http"):c.address.toLowerCase().startsWith("https://")&&(c.address=c.address.substring(8),l="https"),c.address=c.address.split("/")[0];const u=c.address.split(":");let d,p,_="localhost"!==u[0]&&isNaN(u[0].split(".")[0])?void 0:3333;if(u.length>1&&(isNaN(u[1])||(c.address=u[0],_=parseInt(u[1],10))),J(s.port)?c.port=s.port:null===c.port||J(c.port)||J(_)&&(c.port=_),void 0===c.reloadStrategy?c.reloadStrategy="hmr":"hmr"!==c.reloadStrategy&&"pageReload"!==c.reloadStrategy&&null!==c.reloadStrategy&&(Z(t).messageText=`Invalid devServer reloadStrategy "${c.reloadStrategy}". Valid configs include "hmr", "pageReload" and null.`),z(c.gzip)||(c.gzip=!0),z(c.openBrowser)||(c.openBrowser=!0),z(c.websocket)||(c.websocket=!0),s.ssr?c.ssr=!0:c.ssr=!!c.ssr,c.ssr){const t=(null!==(r=e.outputTargets)&&void 0!==r?r:[]).find(Ud);c.prerenderConfig=null==t?void 0:t.prerenderConfig}$(e.srcIndexHtml)&&(c.srcIndexHtml=me(e.srcIndexHtml)),"http"!==c.protocol&&"https"!==c.protocol&&(c.protocol=c.https?"https":l||"http"),null!==c.historyApiFallback&&!1!==c.historyApiFallback&&(c.historyApiFallback=c.historyApiFallback||{},$(c.historyApiFallback.index)||(c.historyApiFallback.index="index.html"),z(c.historyApiFallback.disableDotRule)||(c.historyApiFallback.disableDotRule=!1)),(!1===s.open||s.prerender&&!e.watch)&&(c.openBrowser=!1);const f=(null!==(n=e.outputTargets)&&void 0!==n?n:[]).find(Ud);return f?(p=new URL(null!==(i=f.baseUrl)&&void 0!==i?i:"","http://config.stenciljs.com").pathname,d=null!==(a=f.appDir)&&void 0!==a?a:""):(p="",d=null!==(o=e.rootDir)&&void 0!==o?o:""),$(p)&&""!==p.trim()||(p="/"),p=me(p),p.startsWith("/")||(p="/"+p),p.endsWith("/")||(p+="/"),z(c.logRequests)||(c.logRequests="debug"===e.logLevel),$(c.root)||(c.root=d),$(c.basePath)||(c.basePath=p),$(c.baseUrl)&&(Z(t).messageText='devServer config "baseUrl" has been renamed to "basePath", and should not include a domain or protocol.'),He(c.root)||(c.root=$e(e.rootDir,c.root)),c.root=me(c.root),c.excludeHmr?Array.isArray(c.excludeHmr)||(Z(t).messageText="dev server excludeHmr must be an array of glob strings"):c.excludeHmr=[],!e.devMode||e.buildEs5?c.experimentalDevModules=!1:c.experimentalDevModules=!!c.experimentalDevModules,c})(l,s),((e,t)=>{var r;const n=e.testing=Object.assign({},e.testing||{});if(!e.flags.e2e&&!e.flags.spec)return;let i=e.configPath;$(i)?ze(i).includes(".")&&(i=We(i)):i=e.rootDir,"boolean"==typeof e.flags.headless?n.browserHeadless=e.flags.headless:"boolean"!=typeof n.browserHeadless&&(n.browserHeadless=!0),n.browserWaitUntil||(n.browserWaitUntil="load"),n.browserArgs=n.browserArgs||[],fB(n.browserArgs,"--font-render-hinting=medium"),fB(n.browserArgs,"--incognito"),e.flags.ci&&(fB(n.browserArgs,"--no-sandbox"),fB(n.browserArgs,"--disable-setuid-sandbox"),fB(n.browserArgs,"--disable-dev-shm-usage"),n.browserHeadless=!0),"string"==typeof n.rootDir?He(n.rootDir)||(n.rootDir=$e(e.rootDir,n.rootDir)):n.rootDir=e.rootDir,"string"==typeof e.flags.screenshotConnector&&(n.screenshotConnector=e.flags.screenshotConnector),"string"==typeof n.screenshotConnector?He(n.screenshotConnector)||(n.screenshotConnector=$e(e.rootDir,n.screenshotConnector)):n.screenshotConnector=$e(e.sys.getCompilerExecutingPath(),"..","..","screenshot","local-connector.js"),Array.isArray(n.testPathIgnorePatterns)||(n.testPathIgnorePatterns=mB.map((e=>$e(n.rootDir,e))),(null!==(r=e.outputTargets)&&void 0!==r?r:[]).filter((e=>(Dd(e)||Ud(e))&&e.dir)).forEach((e=>{var t;null===(t=n.testPathIgnorePatterns)||void 0===t?void 0:t.push(e.dir)}))),"string"!=typeof n.preset?n.preset=$e(e.sys.getCompilerExecutingPath(),"..","..","testing"):He(n.preset)||(n.preset=$e(i,n.preset)),Array.isArray(n.setupFilesAfterEnv)||(n.setupFilesAfterEnv=[]),n.setupFilesAfterEnv.unshift($e(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-setuptestframework.js")),$(n.testEnvironment)&&!He(n.testEnvironment)&&Mr(n.testEnvironment)&&(n.testEnvironment=$e(i,n.testEnvironment)),"number"==typeof n.allowableMismatchedPixels?n.allowableMismatchedPixels<0&&(Z(t).messageText="allowableMismatchedPixels must be a value that is 0 or greater"):n.allowableMismatchedPixels=100,"number"==typeof n.allowableMismatchedRatio&&(n.allowableMismatchedRatio<0||n.allowableMismatchedRatio>1)&&(Z(t).messageText="allowableMismatchedRatio must be a value ranging from 0 to 1"),"number"==typeof n.pixelmatchThreshold?(n.pixelmatchThreshold<0||n.pixelmatchThreshold>1)&&(Z(t).messageText="pixelmatchThreshold must be a value ranging from 0 to 1"):n.pixelmatchThreshold=.1,void 0===n.testRegex&&(n.testRegex="(/__tests__/.*|(\\.|/)(test|spec|e2e))\\.[jt]sx?$"),Array.isArray(n.testMatch)?delete n.testRegex:"string"==typeof n.testRegex&&delete n.testMatch,"string"!=typeof n.runner&&(n.runner=$e(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-runner.js")),"number"==typeof n.waitBeforeScreenshot?n.waitBeforeScreenshot<0&&(Z(t).messageText="waitBeforeScreenshot must be a value that is 0 or greater"):n.waitBeforeScreenshot=10,Array.isArray(n.emulate)&&0!==n.emulate.length||(n.emulate=[{userAgent:"default",viewport:{width:600,height:600,deviceScaleFactor:1,isMobile:!1,hasTouch:!1,isLandscape:!1}}])})(l,s),l.hydratedFlag=(e=>{if(null===e.hydratedFlag||!1===e.hydratedFlag)return;const t={...e.hydratedFlag};return $(t.name)&&""!==t.property||(t.name="hydrated"),"attribute"===t.selector?t.selector="attribute":t.selector="class",$(t.property)&&""!==t.property||(t.property="visibility"),$(t.initialValue)||null===t.initialValue||(t.initialValue="hidden"),$(t.hydratedValue)||null===t.initialValue||(t.hydratedValue="inherit"),t})(l),Array.isArray(l.bundles)?l.bundles=j(l.bundles,(e=>e.components.length)):l.bundles=[],(e=>{"number"!=typeof e.maxConcurrentWorkers&&(e.maxConcurrentWorkers=8),"number"==typeof e.flags.maxWorkers?e.maxConcurrentWorkers=e.flags.maxWorkers:e.flags.ci&&(e.maxConcurrentWorkers=4),e.maxConcurrentWorkers=Math.max(Math.min(e.maxConcurrentWorkers,16),0),e.devServer&&(e.devServer.worker=e.maxConcurrentWorkers>0)})(l),VL(l,"devInspector",null,l.devMode),l._isTesting||((e,t)=>{var r;!(null!==(r=e.outputTargets)&&void 0!==r?r:[]).some(Dd)||$(e.namespace)&&"app"!==e.namespace.toLowerCase()||(Z(t).messageText='When generating a distribution it is recommended to choose a unique namespace rather than the default setting "App". Please updated the "namespace" config property within the stencil config.')})(l,s),VL(l,"enableCache","cache",!0),Array.isArray(l.watchIgnoredRegex)||null==l.watchIgnoredRegex||(l.watchIgnoredRegex=[l.watchIgnoredRegex]),l.watchIgnoredRegex=(l.watchIgnoredRegex||[]).reduce(((e,t)=>(t instanceof RegExp&&e.push(t),e)),[]),{config:l,diagnostics:s}},hB=!1,yB=8,vB=4,bB=32,xB=async(e,t,r)=>{let n=null;try{if(i){const e=Gl(r);t.push(...e.diagnostics),n=e.module}else{let i=await e.readFile(r);if(i=EB(t,i,r),ne(t))return n;n=new Function(`const exports = {}; ${i}; return exports;`)()}}catch(e){re(t,e)}return n},EB=(e,t,r)=>{if(ne(e))return t;const n={fileName:r,compilerOptions:{module:p.ModuleKind.CommonJS,moduleResolution:p.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:p.ScriptTarget.ES2015,allowJs:!0},reportDiagnostics:!1};return p.transpileModule(t,n).outputText},SB=(e,t)=>{const r=new URL(e.outputTarget.baseUrl,e.devServerHostUrl).pathname.toLowerCase(),n=new URL(t,e.devServerHostUrl).pathname.toLowerCase(),i=r.split("/"),a=n.split("/");let o;o=r===n?rt.basename(e.outputTarget.indexHtml):"index.html";const s=[];for(let e=0;e<a.length;e++){const t=i[e],r=a[e];if("string"!=typeof t||t!==r){if(e===a.length-1){const t=a[e].toLowerCase();if(t.endsWith(".html")||t.endsWith(".htm")){o=a[e];break}}s.push(r)}}return s.push(o),rt.join(e.outputTarget.appDir,...s)},DB=(e,t,r)=>{if($(t)&&""!==t&&!e.urlsPending.has(t)&&!e.urlsProcessing.has(t)&&!e.urlsCompleted.has(t)&&(e.urlsPending.add(t),e.isDebug)){const n=new URL(t,e.outputTarget.baseUrl).pathname,i=r.startsWith("#")?r:new URL(r,e.outputTarget.baseUrl).pathname;e.config.logger.debug(`prerender queue: ${n} (from ${i})`)}},TB=(e,t)=>{const r=t.urlsPending.values().next();if(!r.done)if(t.urlsProcessing.size>t.maxConcurrency)setTimeout((()=>TB(e,t)));else{const n=r.value;t.urlsPending.delete(n),t.urlsProcessing.add(n),CB(e,t,n),t.urlsProcessing.size<t.maxConcurrency&&t.config.sys.nextTick((()=>TB(e,t)))}0===t.urlsProcessing.size&&0===t.urlsPending.size&&W(t.resolve)&&(t.resolve(),t.resolve=null)},CB=async(e,t,r)=>{let n=r;try{let i;n=new URL(r).pathname,t.isDebug&&(i=t.config.logger.createTimeSpan(`prerender start: ${n}`,!0));const a={appDir:t.outputTarget.appDir,baseUrl:t.outputTarget.baseUrl,buildId:e.buildId,componentGraphPath:t.componentGraphPath,devServerHostUrl:t.devServerHostUrl,hydrateAppFilePath:t.hydrateAppFilePath,isDebug:t.isDebug,prerenderConfigPath:t.prerenderConfigPath,staticSite:t.staticSite,templateId:t.templateId,url:r,writeToFilePath:SB(t,r)},o=await t.prerenderUrlWorker(a);if(t.isDebug){const e=Xe(t.config.rootDir,o.filePath);o.diagnostics.some((e=>"error"===e.level))?i.finish(`prerender failed: ${n}, ${e}`,"red"):i.finish(`prerender finish: ${n}, ${e}`)}if(t.diagnostics.push(...o.diagnostics),Array.isArray(o.anchorUrls))for(const e of o.anchorUrls)DB(t,e,r)}catch(e){re(t.diagnostics,e)}t.urlsProcessing.delete(r),t.urlsCompleted.add(r),e.urls++;const i=t.urlsCompleted.size;t.progressLogger&&i>1&&t.progressLogger.update(` prerendered ${i} urls: ${t.config.logger.dim(n)}`),t.config.sys.nextTick((()=>TB(e,t)))},kB=e=>{const t=[];if("function"==typeof e.prerenderConfig.canonicalUrl)for(const r of e.urlsCompleted){const n=e.prerenderConfig.canonicalUrl(new URL(r));"string"==typeof n&&""!==n.trim()&&t.push(n)}else for(const r of e.urlsCompleted)"string"==typeof r&&t.push(r);return t.sort(AB)},AB=(e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0},NB=async(e,t,r,n,i,a,o,s,c)=>{try{const l=n.logger.createTimeSpan("prerendering started"),u=new URL(i.browserUrl),d=u.origin,p=ql(r,c.prerenderConfig),_=Xl(p,u,r);if(n.logger.debug(`prerender hydrate app: ${a}`),n.logger.debug(`prerender dev server: ${d}`),ne(r))return;const f=[],m={prerenderUrlWorker:t=>e.prerenderWorker(t),componentGraphPath:null,config:n,diagnostics:f,devServerHostUrl:d,hydrateAppFilePath:a,isDebug:"debug"===n.logLevel,logCount:0,maxConcurrency:Math.max(20,10*n.maxConcurrentWorkers),outputTarget:c,prerenderConfig:p,prerenderConfigPath:c.prerenderConfig,staticSite:!1,templateId:null,urlsCompleted:new Set,urlsPending:new Set,urlsProcessing:new Set,resolve:null};if(n.flags.ci||m.isDebug||(m.progressLogger=await n.logger.createLineUpdater()),((e,t)=>{const r=[];if(Array.isArray(t.prerenderConfig.entryUrls))for(const e of t.prerenderConfig.entryUrls){const t={href:e};r.push(t)}else{const e={href:t.outputTarget.baseUrl};r.push(e)}for(const n of r)try{new URL(n.href,t.outputTarget.baseUrl)}catch(t){const r=Z(e.diagnostics);return r.header=`Invalid Prerender Entry Url: ${n.href}`,r.messageText="Entry Urls must include the protocol and domain of the site being prerendered.",void 0}const n=new URL(t.outputTarget.baseUrl),i=Ul(t.prerenderConfig,e.diagnostics,n,n,r);for(const e of i)DB(t,e,"#entryUrl")})(t,m),0===m.urlsPending.size)return Z(r).messageText="prerendering failed: no urls found in the prerender config",void 0;const g=await(async(e,t,r,n,i,a,o,s)=>{try{let c;if($(i)||(i=a.indexHtml),W(t.loadTemplate)){const e=t.loadTemplate(i);c=q(e)?await e:e}else c=await e.sys.readFile(i);let l=Tf(c),u=!1;if(t.staticSite?(ou(l),u=!0):u=!(e=>!!e.querySelector("script[data-stencil]"))(l),l.documentElement.classList.add("hydrated"),o.inlineExternalStyleSheets&&!n)try{await(async(e,t,r)=>{const n=Array.from(r.querySelectorAll("link[rel=stylesheet]"));0!==n.length&&await Promise.all(n.map((async n=>{const i=n.getAttribute("href");if(!i.startsWith("/")||null!==n.getAttribute("media"))return;const a=$e(t,i);try{let t=await e.readFile(a);t=(await Tn({input:t})).output;const i=r.createElement("style");i.innerHTML=t,n.parentNode.insertBefore(i,n),n.remove(),i.setAttribute("data-styles",""),n.setAttribute("media","(max-width: 0px)"),n.setAttribute("importance","low"),n.setAttribute("onload","this.media=''"),r.body.appendChild(n)}catch(e){}})))})(e.sys,a.appDir,l)}catch(e){re(r,e)}if(o.minifyScriptElements&&!n)try{await ru(l,!0)}catch(e){re(r,e)}if(o.minifyStyleElements&&!n)try{const t=new URL(a.baseUrl,s.devServerHostUrl);await nu(e.sys,a.appDir,l,t,!0)}catch(e){re(r,e)}if(W(t.beforeSerializeTemplate)){const e=t.beforeSerializeTemplate(l);l=q(e)?await e:e}let d=Zp(l);if(W(t.afterSerializeTemplate)){const e=t.afterSerializeTemplate(d);d=q(e)?await e:e}return{html:d,staticSite:u}}catch(e){re(r,e)}})(n,p,r,m.isDebug,s,c,_,m);if(r.length>0||!g||!$(g.html))return;if(m.templateId=await wB(n,g.html),m.staticSite=g.staticSite,m.componentGraphPath=await FB(n,o,c),await new Promise((e=>{m.resolve=e,n.sys.nextTick((()=>TB(t,m)))})),m.isDebug){const e=f.filter((e=>"debug"===e.level));e.length>0&&n.logger.printDiagnostics(e)}const h=l.duration(),y=await(async e=>{if(null===e.prerenderConfig.sitemapXml)return null;try{"function"!=typeof e.prerenderConfig.sitemapXml&&(e.prerenderConfig.sitemapXml=e=>{const t=[];t.push('<?xml version="1.0" encoding="UTF-8"?>'),t.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');for(const r of e.urls)t.push(`<url><loc>${r}</loc></url>`);return t.push("</urlset>"),t.join("\n")});const t={urls:kB(e),baseUrl:e.outputTarget.baseUrl,dir:e.outputTarget.appDir},r=e.prerenderConfig.sitemapXml(t);if(null==r)return null;const n={content:null,filePath:null,url:null};if("string"==typeof r?n.content=r:(n.content=r.content,n.filePath=r.filePath),"string"!=typeof n.content)return null;if("string"!=typeof n.filePath&&(n.filePath=$e(e.outputTarget.appDir,"sitemap.xml")),"string"!=typeof n.url){const t=new URL("sitemap.xml",e.outputTarget.baseUrl);n.url=t.href}return await e.config.sys.writeFile(n.filePath,n.content),n}catch(t){return re(e.diagnostics,t),null}})(m);await(async(e,t)=>{if(null===e.prerenderConfig.robotsTxt)return null;try{"function"!=typeof e.prerenderConfig.robotsTxt&&(e.prerenderConfig.robotsTxt=e=>{const t=["User-agent: *","Disallow:"];return"string"==typeof e.sitemapUrl&&t.push(`Sitemap: ${e.sitemapUrl}`),t.join("\n")});const r={urls:kB(e),baseUrl:e.outputTarget.baseUrl,sitemapUrl:t?t.url:null,dir:e.outputTarget.dir},n=e.prerenderConfig.robotsTxt(r);if(null==n)return null;const i={content:null,filePath:null,url:null};if("string"==typeof n?i.content=n:(i.content=n.content,i.filePath=n.filePath),"string"!=typeof i.content)return null;const a=i.content.replace(/\r/g,"\n").split("\n");if(i.content=a.map((e=>e.trim())).join("\n"),"string"!=typeof i.filePath&&(i.filePath=$e(e.outputTarget.dir,"robots.txt")),"string"!=typeof i.url){const t=new URL("/robots.txt",e.outputTarget.baseUrl);i.url=t.href}return await e.config.sys.writeFile(i.filePath,i.content),i}catch(t){return re(e.diagnostics,t),null}})(m,y);const v=f.filter((e=>"error"===e.level)),b=f.filter((e=>"runtime"===e.type));if(v.length>0){for(const e of v)e.type="runtime";r.push(...v)}r.push(...b),m.progressLogger&&await m.progressLogger.stop();const x=m.urlsCompleted.size;if(x>1){const e=Math.round(h/x);n.logger.info(`prerendered ${x} urls, averaging ${e} ms per url`)}const E=v.length>0?"failed":"finished",S=v.length>0?"red":"green";l.finish(`prerendering ${E}`,S,!0)}catch(e){re(r,e)}},wB=async(e,t)=>{const r=`prerender-${await e.sys.generateContentHash(t,12)}.html`,n=$e(e.sys.tmpDirSync(),r);return e.logger.debug(`prerender template: ${n}`),e.sys.writeFileSync(n,t),n},FB=async(e,t,r)=>{if(t){const n=PB(t,r),i=`prerender-component-graph-${await e.sys.generateContentHash(n)}.json`,a=$e(e.sys.tmpDirSync(),i);return e.sys.writeFileSync(a,n),a}return null},PB=(e,t)=>{const r=Yl(t),n={},i=Object.entries(e);for(const[e,t]of i)n[e]=t.map((e=>$e(r,e)));return JSON.stringify(n)},IB=(e,t)=>{$(t.file)||(t.file="module.tsx");const r=ld(t.file),n={code:"string"==typeof e?e:"",data:[],diagnostics:[],inputFileExtension:r.ext,inputFilePath:t.file,imports:[],map:null,outputFilePath:null};return{importData:r.data,results:n}},OB={sys:null},MB=e=>{e.sys?OB.sys=e.sys:OB.sys||(OB.sys=i?u("../sys/node/index.js").createNodeSys():Yr());const t={componentExport:LB(e.componentExport,BB,"customelement"),componentMetadata:LB(e.componentMetadata,jB,null),coreImportPath:$(e.coreImportPath)?e.coreImportPath:hN,currentDirectory:$(e.currentDirectory)?e.currentDirectory:OB.sys.getCurrentDirectory(),file:e.file,proxy:LB(e.proxy,VB,"defineproperty"),module:LB(e.module,UB,"esm"),sourceMap:"inline"===e.sourceMap?"inline":!1!==e.sourceMap,style:LB(e.style,KB,"static"),styleImportData:LB(e.styleImportData,zB,"queryparams"),target:LB(e.target,WB,"latest")},r={allowSyntheticDefaultImports:!0,esModuleInterop:!0,sourceMap:!1!==t.sourceMap,isolatedModules:!0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0,noLib:!0,noResolve:!0};$(e.baseUrl)&&(t.baseUrl=e.baseUrl,r.baseUrl=t.baseUrl),e.paths&&(t.paths={...e.paths},r.paths={...t.paths});const n={coreImportPath:t.coreImportPath,componentExport:t.componentExport,componentMetadata:t.componentMetadata,currentDirectory:t.currentDirectory,isolatedModules:!0,module:t.module,proxy:t.proxy,file:t.file,style:t.style,styleImportData:t.styleImportData,target:t.target};return{compileOpts:t,config:{rootDir:t.currentDirectory,srcDir:t.currentDirectory,devMode:!0,minifyCss:!0,minifyJs:!1,_isTesting:!0,validateTypes:!1,enableCache:!1,sys:OB.sys,tsCompilerOptions:r},transformOpts:n}},RB=(e,t,r)=>({file:r.inputFilePath,input:r.code,tag:t&&t.tag,encapsulation:t&&t.encapsulation,mode:t&&t.mode,sourceMap:!1!==e.sourceMap,commentOriginalSelector:!1,minify:!1,autoprefixer:!1,module:e.module,styleImportData:e.styleImportData}),LB=(e,t,r)=>null===e||"null"===e?null:(e=$(e)?e.toLowerCase().trim():null,t.has(e)?e:r),BB=new Set(["customelement","module"]),jB=new Set(["compilerstatic",null]),UB=new Set(["cjs","esm"]),VB=new Set(["defineproperty",null]),KB=new Set(["static"]),zB=new Set(["queryparams"]),WB=new Set(["latest","esnext","es2020","es2019","es2018","es2017","es2016","es2015","es5"]),JB=(e,t,r,n,i,a)=>o=>{let s,c;const l=i=>p.isClassDeclaration(i)?CR(t,n,i,c,a):(p.isImportDeclaration(i)?RR(e,t,r,c,s,i,!a.isolatedModules):p.isCallExpression(i)?dR(c,i):p.isStringLiteral(i)&&ER(c,i),p.visitEachChild(i,l,o));return e=>(s=We(e.fileName),c=((e,t,r)=>{r=me(r);const n=t.moduleMap.get(r);if(null!=n)return n;{const e=We(r),n=Je(r),i=ze(r,n),a={sourceFilePath:r,jsFilePath:$e(e,i+".js"),cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],staticSourceFile:null,staticSourceFileText:"",sourceMapPath:null,sourceMapFileText:null};return t.moduleMap.set(r,a),a}})(0,t,e.fileName),(e=>{e.cmps.length=0,e.coreRuntimeApis.length=0,e.collectionName=null,e.dtsFilePath=null,e.excludeFromCollection=!1,e.externalImports.length=0,e.isCollectionDependency=!1,e.localImports.length=0,e.originalCollectionComponentPath=null,e.originalImports.length=0,e.hasVdomXlink=!1,e.hasVdomAttribute=!1,e.hasVdomClass=!1,e.hasVdomFunctional=!1,e.hasVdomKey=!1,e.hasVdomListener=!1,e.hasVdomRef=!1,e.hasVdomRender=!1,e.hasVdomStyle=!1,e.hasVdomText=!1,e.htmlAttrNames.length=0,e.htmlTagNames.length=0,e.potentialCmpRefs.length=0})(c),null!=i?(c.isCollectionDependency=!0,c.collectionName=i.collectionName,i.moduleFiles.push(c)):(c.isCollectionDependency=!1,c.collectionName=null),l(e))},HB=(e,r,n,i)=>{const a=((e,t,r)=>{e.logger||(e={...e,logger:_t()});const n=new xd,i=new ON(e,n),a={...e.tsCompilerOptions};let o=r.file;o=$(o)?me(o):a.jsx?"module.tsx":"module.ts";const s={sourceFilePath:o,code:null,map:null,diagnostics:[],moduleFile:null};"cjs"===r.module?a.module=p.ModuleKind.CommonJS:a.module=p.ModuleKind.ESNext,a.target=(e=>{const t=e.target&&e.target.toUpperCase();return J(p.ScriptTarget[t])?p.ScriptTarget[t]:p.ScriptTarget.Latest})(r),(o.endsWith(".tsx")||o.endsWith(".jsx"))&&null==a.jsx&&(a.jsx=p.JsxEmit.React),null==a.jsx||$(a.jsxFactory)||(a.jsxFactory="h"),null==a.jsx||$(a.jsxFragmentFactory)||(a.jsxFragmentFactory="Fragment"),a.paths&&!$(a.baseUrl)&&(a.baseUrl=".");const c=p.createSourceFile(o,t,a.target),l={getSourceFile(e){return me(e)===me(o)?c:void 0},writeFile(e,t){e.endsWith(".js.map")?s.map=t:e.endsWith(".js")&&(s.code=t)},getDefaultLibFileName(){return"lib.d.ts"},useCaseSensitiveFileNames(){return!1},getCanonicalFileName(e){return e},getCurrentDirectory(){return r.currentDirectory||d()},getNewLine(){return p.sys.newLine||"\n"},fileExists(e){return me(e)===me(o)},readFile(){return""},directoryExists(){return!0},getDirectories(){return[]}},u=p.createProgram([o],a,l),_=u.getTypeChecker(),f=[JB(e,n,i,_,null,r)];"customelement"===r.componentExport||"module"===r.componentExport?f.push(cP(n,r)):f.push(eI(n,r)),u.emit(void 0,void 0,void 0,!1,{before:[sR(e,i.diagnostics,_),lP(r.coreImportPath)],after:f});const m=[...u.getSyntacticDiagnostics()];return e.validateTypes&&m.push(...u.getOptionsDiagnostics()),i.diagnostics.push(...Ce(m)),s.diagnostics.push(...i.diagnostics),s.moduleFile=n.moduleMap.get(s.sourceFilePath),s})(e,i.code,n);if(i.diagnostics.push(...a.diagnostics),"string"==typeof a.code&&(i.code=a.code,i.map=a.map,"inline"===r.sourceMap))try{const e=JSON.parse(a.map);e.file=r.file,e.sources=[r.file],delete e.sourceRoot;const n=i.code.lastIndexOf("//#");i.code=i.code.slice(0,n)+(o=JSON.stringify(e),`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${t.from(o,"utf8").toString("base64")}`)}catch(e){console.error(e)}var o;$(a.sourceFilePath)&&(i.inputFilePath=a.sourceFilePath);const s=a.moduleFile;s&&(i.outputFilePath=s.jsFilePath,s.cmps.forEach((e=>{i.data.push(fR(e))})),s.originalImports.forEach((e=>{i.imports.push({path:e})})))},$B=e=>{e.code=((e,t={})=>{const r=t.compact?"":"indent"in t?t.indent:"\t",n=t.compact?"":" ",i=t.compact?"":"\n",a=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=fb(e,t.compact?null:r,"");return`export default${n||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const s=[];for(const[c,l]of Object.entries(e))c===pb(c)?(t.objectShorthand?s.push(c):s.push(`${c}:${n}${c}`),o+=`export ${a} ${c}${n}=${n}${fb(l,t.compact?null:r,"")};${i}`):s.push(`${_b(c)}:${n}${fb(l,t.compact?null:r,"")}`);return`${o}export default${n}{${i}${r}${s.join(`,${i}${r}`)}${i}};${i}`})(JSON.parse(e.code),{preferConst:!0,compact:!1,indent:" "}),e.map={mappings:""}},GB=e=>["tsx","ts","mjs","jsx","js"].includes(e);s&&(e=>{let t=!1;const r=Promise.resolve(),n=[],i=()=>{t=!1,self.postMessage(n),n.length=0},a=e=>{n.push(e),t||(t=!0,r.then(i))},o=(e,t)=>{const r={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};$(t)?r.stencilRtnError+=": "+t:t&&(t.stack?r.stencilRtnError+=": "+t.stack:t.message&&(r.stencilRtnError+=": "+t.message)),a(r)},s=async t=>{if(t&&J(t.stencilId))try{const r={stencilId:t.stencilId,stencilRtnValue:await e(t),stencilRtnError:null};a(r)}catch(e){o(t.stencilId,e)}};self.onmessage=e=>{const t=e.data;if(Array.isArray(t))for(const e of t)s(e)},self.onerror=e=>{o(-1,e)}})(bd(Yr())),e.buildId="20221003165302",e.createCompiler=async e=>{const t=(e=>{var t,r,n,i,a;const o=null!==(t=e.logger)&&void 0!==t?t:_t(),s={...e,flags:IL(null!==(r=e.flags)&&void 0!==r?r:{}),logger:o,outputTargets:null!==(n=e.outputTargets)&&void 0!==n?n:[],rootDir:null!==(i=e.rootDir)&&void 0!==i?i:"/",sys:null!==(a=e.sys)&&void 0!==a?a:Yr({logger:o}),testing:null!=e?e:{}};return nt(s.sys.platformPath),s.flags.debug||s.flags.verbose?s.logLevel="debug":s.flags.logLevel?s.logLevel=s.flags.logLevel:"string"!=typeof s.logLevel&&(s.logLevel="info"),s.logger.setLevel(s.logLevel),s})(e),r=t.sys,n=new xd;W(t.sys.setupCompiler)&&t.sys.setupCompiler({ts:p}),(e=>{const t=Dt;Object.assign(t.__sys,e)})(r),n.fs=OL(r),n.cache=new kL(t,OL(r)),await n.cache.initCacheDir(),r.resolveModuleId=e=>qr(r,n.fs,e),n.worker=(e=>{if(W(e.sys.createWorkerController)&&e.maxConcurrentWorkers>0&&e.sys.hardwareConcurrency>1){const t=e.sys.createWorkerController(e.maxConcurrentWorkers);return e.sys.addDestory((()=>t.destroy())),e.logger.debug(`create workers, maxWorkers: ${t.maxWorkers}`),BL(t)}return e.logger.debug(`no workers, maxConcurrentWorkers: ${e.maxConcurrentWorkers}, hardwareConcurrency: ${e.sys.hardwareConcurrency}`),vd(e.sys)})(t),r.events&&r.events.on(n.events.emit),sw(t,n.fs);const i={build:()=>(async(e,t)=>new Promise((r=>{let n=null;t.events.on("fileUpdate",(r=>{e.logger.debug(`fileUpdate: ${r}`),t.fs.clearFileCache(r)})),(async(e,t)=>{let r,n=!1;const i=lp(e),a={...p.sys,watchFile(){return{close(){}}},watchDirectory(){return{close(){}}},setTimeout(t,i){return r=setInterval((()=>{n||(t(),clearInterval(r))}),e.sys.watchTimeout||i),r},clearTimeout(e){clearInterval(e)}};e.sys.addDestory((()=>a.clearTimeout(r)));const o=p.createWatchCompilerHost(e.tsconfig,i,a,p.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return o.afterProgramCreate=async e=>{n=!0,await t(e),n=!1},p.createWatchProgram(o)})(e,(async i=>{const a=new ON(e,t);a.isRebuild=!1,a.requiresFullBuild=!0,a.start();const o=await fL(e,t,a,i);null!==o&&(n&&(n.close(),n=null),r(o))})).then((e=>{n=e}))})))(t,n),createWatcher:()=>EL(t,n),async destroy(){n.reset(),n.events.unsubscribeAll(),await r.destroy()},sys:r};return t.logger.printDiagnostics([]),i},e.createPrerenderer=async e=>({start:t=>(async(e,t,r,n,i)=>{const a=Date.now(),o=[],s={buildId:i,diagnostics:o,urls:0,duration:0,average:0},c=e.outputTargets.filter(Ud).filter((e=>$(e.indexHtml)));if($(s.buildId)||(s.buildId=(()=>{let e="abcdefghijklmnopqrstuvwxyz",t="";for(;t.length<8;)t+=e[Math.floor(Math.random()*e.length)],1===t.length&&(e+="0123456789");return t})()),0===c.length)return s;if($(t)){if(He(t)||(t=$e(e.sys.getCurrentDirectory(),t)),!await e.sys.access(t)){const e=Z(o);e.header="Prerender Error",e.messageText=`Unable to open "hydrateAppFilePath": ${t}`}}else{const e=Z(o);e.header="Prerender Error",e.messageText='Build results missing "hydrateAppFilePath"'}if(!ne(o)){let i,a;null==e.sys.createWorkerController||e.maxConcurrentWorkers<1?i=vd(e.sys):(a=e.sys.createWorkerController(e.maxConcurrentWorkers),i=BL(a));const l={...e.devServer};l.openBrowser=!1,l.gzip=!1,l.logRequests=!1,l.reloadStrategy=null;const u=e.sys.getDevServerExecutingPath(),{start:d}=await e.sys.dynamicImport(u),p=await d(l,e.logger);try{await Promise.all(c.map((a=>NB(i,s,o,e,p,t,r,n,a))))}catch(e){re(o,e)}a&&a.destroy(),p&&await p.close()}return s.duration=Date.now()-a,s.urls>0&&(s.average=s.duration/s.urls),s})(e,t.hydrateAppFilePath,t.componentGraph,t.srcIndexHtmlPath,t.buildId)}),e.createSystem=Yr,e.createWorkerContext=vd,e.createWorkerMessageHandler=bd,e.dependencies=[{name:"@stencil/core",version:"2.18.1",main:"compiler/stencil.js",resources:["package.json","compiler/lib.d.ts","compiler/lib.dom.d.ts","compiler/lib.dom.iterable.d.ts","compiler/lib.es2015.collection.d.ts","compiler/lib.es2015.core.d.ts","compiler/lib.es2015.d.ts","compiler/lib.es2015.generator.d.ts","compiler/lib.es2015.iterable.d.ts","compiler/lib.es2015.promise.d.ts","compiler/lib.es2015.proxy.d.ts","compiler/lib.es2015.reflect.d.ts","compiler/lib.es2015.symbol.d.ts","compiler/lib.es2015.symbol.wellknown.d.ts","compiler/lib.es2016.array.include.d.ts","compiler/lib.es2016.d.ts","compiler/lib.es2016.full.d.ts","compiler/lib.es2017.d.ts","compiler/lib.es2017.full.d.ts","compiler/lib.es2017.intl.d.ts","compiler/lib.es2017.object.d.ts","compiler/lib.es2017.sharedmemory.d.ts","compiler/lib.es2017.string.d.ts","compiler/lib.es2017.typedarrays.d.ts","compiler/lib.es2018.asyncgenerator.d.ts","compiler/lib.es2018.asynciterable.d.ts","compiler/lib.es2018.d.ts","compiler/lib.es2018.full.d.ts","compiler/lib.es2018.intl.d.ts","compiler/lib.es2018.promise.d.ts","compiler/lib.es2018.regexp.d.ts","compiler/lib.es2019.array.d.ts","compiler/lib.es2019.d.ts","compiler/lib.es2019.full.d.ts","compiler/lib.es2019.object.d.ts","compiler/lib.es2019.string.d.ts","compiler/lib.es2019.symbol.d.ts","compiler/lib.es2020.bigint.d.ts","compiler/lib.es2020.d.ts","compiler/lib.es2020.date.d.ts","compiler/lib.es2020.full.d.ts","compiler/lib.es2020.intl.d.ts","compiler/lib.es2020.number.d.ts","compiler/lib.es2020.promise.d.ts","compiler/lib.es2020.sharedmemory.d.ts","compiler/lib.es2020.string.d.ts","compiler/lib.es2020.symbol.wellknown.d.ts","compiler/lib.es2021.d.ts","compiler/lib.es2021.full.d.ts","compiler/lib.es2021.intl.d.ts","compiler/lib.es2021.promise.d.ts","compiler/lib.es2021.string.d.ts","compiler/lib.es2021.weakref.d.ts","compiler/lib.es2022.array.d.ts","compiler/lib.es2022.d.ts","compiler/lib.es2022.error.d.ts","compiler/lib.es2022.full.d.ts","compiler/lib.es2022.intl.d.ts","compiler/lib.es2022.object.d.ts","compiler/lib.es2022.string.d.ts","compiler/lib.es5.d.ts","compiler/lib.es6.d.ts","compiler/lib.esnext.d.ts","compiler/lib.esnext.full.d.ts","compiler/lib.esnext.intl.d.ts","compiler/lib.esnext.promise.d.ts","compiler/lib.esnext.string.d.ts","compiler/lib.esnext.weakref.d.ts","compiler/lib.scripthost.d.ts","compiler/lib.webworker.d.ts","compiler/lib.webworker.importscripts.d.ts","compiler/lib.webworker.iterable.d.ts","internal/index.d.ts","internal/index.js","internal/package.json","internal/stencil-ext-modules.d.ts","internal/stencil-private.d.ts","internal/stencil-public-compiler.d.ts","internal/stencil-public-docs.d.ts","internal/stencil-public-runtime.d.ts","mock-doc/index.js","mock-doc/package.json","internal/client/css-shim.js","internal/client/dom.js","internal/client/index.js","internal/client/package.json","internal/client/patch-browser.js","internal/client/patch-esm.js","internal/client/shadow-css.js","internal/hydrate/index.js","internal/hydrate/package.json","internal/hydrate/runner.js","internal/hydrate/shadow-css.js","internal/stencil-core/index.d.ts","internal/stencil-core/index.js"]},{name:"rollup",version:"2.42.3",main:"dist/es/rollup.browser.js"},{name:"terser",version:"5.6.1",main:"dist/bundle.min.js"},{name:"typescript",version:"4.7.4",main:"lib/typescript.js"}],e.loadConfig=async(e={})=>{var t;const r={config:null,diagnostics:[],tsconfig:{path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null}},n={};try{const i=e.config||{};let a=e.configPath||i.configPath;const o=null!==(t=e.sys)&&void 0!==t?t:Yr(),s=await(async(e,t,r)=>{let n=null;if($(r)){const i=await xB(e,t,r);if(ne(t))return n;if(!i.config){const e=Z(t);return e.messageText=`Invalid Stencil configuration file "${r}". Missing "config" property.`,e.absFilePath=r,n}n=i.config,n.configPath=me(r)}return n})(o,r.diagnostics,a);if(ne(r.diagnostics))return r;null!==s?(a=s.configPath,n.config={...s,...i},n.config.configPath=a,n.config.rootDir=me(We(a))):(n.config={...i},n.config.configPath=null,n.config.rootDir=me(o.getCurrentDirectory())),n.config.sys=o;const c=gB(n.config,e);if(r.diagnostics.push(...c.diagnostics),ne(r.diagnostics))return r;if(r.config=c.config,r.config.flags.debug||r.config.flags.verbose?r.config.logLevel="debug":r.config.flags.logLevel?r.config.logLevel=r.config.flags.logLevel:"string"!=typeof r.config.logLevel&&(r.config.logLevel="info"),r.config.logger.setLevel(r.config.logLevel),!ne(r.diagnostics)){const t=await(async(e,t,r)=>{var n;const i={path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null,diagnostics:[]};try{const o=await(async(e,t,r)=>{const n={path:null,content:null};if($(e.tsconfig)?He(e.tsconfig)?n.path=e.tsconfig:n.path=$e(e.rootDir,e.tsconfig):n.path=$e(e.rootDir,"tsconfig.json"),n.content=await t.readFile(n.path),!$(n.content)){if(!r.initTsConfig)return null;n.path=$e(e.rootDir,"tsconfig.json"),n.content=jL(e),await t.writeFile(n.path,n.content)}return n.path=me(n.path),n})(e,t,r);if(o){i.path=o.path;const r={...p.sys,readFile(e){return e===i.path?o.content:t.readFileSync(e)},readDirectory(e){return t.readDirSync(e)},fileExists(e){return t.accessSync(e)},onUnRecoverableConfigFileDiagnostic(e){return console.error(e)}},s=p.getParsedCommandLineOfConfigFile(i.path,{},r);if(s.errors&&s.errors.length>0)s.errors.forEach((e=>{const t=ke(e);"18003"===t.code&&(t.level="warn"),t.absFilePath=i.path,i.diagnostics.push(t)}));else{if(s.raw){const t=Xe(e.rootDir,e.srcDir);if(!((e,t)=>Array.isArray(e)&&e.includes(t))(s.raw.include,t)){const e=ee(i.diagnostics);e.header='tsconfig.json "include" required',e.messageText=`In order for TypeScript to improve watch performance, it's recommended the "tsconfig.json" file should have the "include" property, with at least the app's "${t}" directory listed. For example: "include": ["${t}"]`}if(a=s.raw.include,Array.isArray(a)&&a.includes("stencil.config.ts")){const e=ee(i.diagnostics);e.header="tsconfig.json should not reference stencil.config.ts",e.messageText="stencil.config.ts is not part of the output build, it should not be included."}Array.isArray(s.raw.files)&&(i.files=s.raw.files.slice()),Array.isArray(s.raw.include)&&(i.include=s.raw.include.slice()),Array.isArray(s.raw.exclude)&&(i.exclude=s.raw.exclude.slice()),$(s.raw.extends)&&(i.extends=s.raw.extends)}if(s.options){i.compilerOptions=s.options;const t=null!==(n=i.compilerOptions.target)&&void 0!==n?n:p.ScriptTarget.ES5;[p.ScriptTarget.ES3,p.ScriptTarget.ES5,p.ScriptTarget.ES2015,p.ScriptTarget.ES2016].includes(t)&&(ee(i.diagnostics).messageText='To improve bundling, it is always recommended to set the tsconfig.json “target” setting to "es2017". Note that the compiler will automatically handle transpilation for ES5-only browsers.'),i.compilerOptions.module===p.ModuleKind.ESNext||e._isTesting||(ee(i.diagnostics).messageText="To improve bundling, it is always recommended to set the tsconfig.json “module” setting to “esnext”. Note that the compiler will automatically handle bundling both modern and legacy builds."),i.compilerOptions.sourceMap=e.sourceMap,i.compilerOptions.inlineSources=e.sourceMap}}}else{const t=Z(i.diagnostics);t.header="Missing tsconfig.json",t.messageText=`Unable to load TypeScript config file. Please create a "tsconfig.json" file within the "${e.rootDir}" directory.`}}catch(e){re(i.diagnostics,e)}var a;return i})(r.config,o,e);r.diagnostics.push(...t.diagnostics),r.config.tsconfig=t.path,r.config.tsCompilerOptions=t.compilerOptions,r.tsconfig.path=t.path,r.tsconfig.compilerOptions=JSON.parse(JSON.stringify(t.compilerOptions)),r.tsconfig.files=t.files,r.tsconfig.include=t.include,r.tsconfig.exclude=t.exclude,r.tsconfig.extends=t.extends}}catch(e){re(r.diagnostics,e)}return r},e.nodeRequire=Gl,e.optimizeCss=Tn,e.optimizeJs=eu,e.path=rt,e.transpile=async(e,t={})=>{const{importData:r,results:n}=IB(e,t);try{if(GB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=MB(t);sw(e,null),HB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){const e=RB(t,r,n);await(async(e,t)=>{const r=await pd(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(e,n)}else"json"===n.inputFileExtension&&$B(n)}catch(e){re(n.diagnostics,e)}return n},e.transpileSync=(e,t={})=>{const{importData:r,results:n}=IB(e,t);try{if(GB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=MB(t);sw(e,null),HB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){((e,t)=>{const r=(e=>{const t=_d(e);return fd(e,t)})(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(RB(t,r,n),n)}else"json"===n.inputFileExtension&&$B(n)}catch(e){re(n.diagnostics,e)}return n},e.ts=p,e.vermoji="😛",e.version=ut,e.versions=dt,"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.stencil=e}({});