@rspack-canary/test-tools 1.6.0-canary-6cd722f4-20251022123039 → 1.6.0-canary-4ad8b49f-20251023175711
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/case/builtin.d.ts +3 -2
- package/dist/case/builtin.js +1 -1
- package/dist/case/cache.d.ts +2 -2
- package/dist/case/cache.js +9 -6
- package/dist/case/common.d.ts +10 -10
- package/dist/case/common.js +33 -30
- package/dist/case/compiler.d.ts +9 -8
- package/dist/case/compiler.js +5 -6
- package/dist/case/config.d.ts +6 -5
- package/dist/case/defaults.d.ts +5 -4
- package/dist/case/defaults.js +10 -10
- package/dist/case/diagnostic.js +4 -5
- package/dist/case/error.d.ts +5 -5
- package/dist/case/error.js +7 -8
- package/dist/case/example.js +2 -2
- package/dist/case/hash.d.ts +2 -2
- package/dist/case/hash.js +1 -1
- package/dist/case/hook.d.ts +4 -3
- package/dist/case/hook.js +3 -2
- package/dist/case/hot-step.d.ts +2 -2
- package/dist/case/hot-step.js +4 -6
- package/dist/case/hot.d.ts +5 -4
- package/dist/case/hot.js +6 -6
- package/dist/case/incremental.d.ts +2 -2
- package/dist/case/index.d.ts +0 -1
- package/dist/case/index.js +1 -3
- package/dist/case/multi-compiler.d.ts +9 -8
- package/dist/case/multi-compiler.js +3 -4
- package/dist/case/normal.js +1 -1
- package/dist/case/runner.d.ts +5 -4
- package/dist/case/runner.js +12 -8
- package/dist/case/serial.d.ts +2 -2
- package/dist/case/stats-api.d.ts +6 -5
- package/dist/case/stats-api.js +5 -7
- package/dist/case/stats-output.d.ts +3 -2
- package/dist/case/stats-output.js +1 -1
- package/dist/case/treeshaking.js +1 -1
- package/dist/case/watch.d.ts +6 -6
- package/dist/case/watch.js +15 -14
- package/dist/compiler.d.ts +16 -17
- package/dist/compiler.js +116 -16
- package/dist/helper/index.d.ts +1 -0
- package/dist/helper/index.js +1 -0
- package/dist/helper/legacy/checkArrayExpectation.js +1 -1
- package/dist/helper/read-config-file.d.ts +3 -2
- package/dist/helper/read-config-file.js +7 -0
- package/dist/helper/setup-env.js +1 -0
- package/dist/helper/stringify-config.d.ts +2 -0
- package/dist/helper/stringify-config.js +43 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/plugin/index.d.ts +0 -3
- package/dist/plugin/index.js +0 -3
- package/dist/runner/node/index.d.ts +13 -8
- package/dist/runner/node/index.js +86 -7
- package/dist/runner/web/index.d.ts +6 -5
- package/dist/runner/web/index.js +38 -50
- package/dist/test/context.d.ts +15 -16
- package/dist/test/context.js +44 -59
- package/dist/test/creator.d.ts +14 -14
- package/dist/test/creator.js +4 -5
- package/dist/test/debug.d.ts +15 -0
- package/dist/test/debug.js +205 -0
- package/dist/test/tester.js +13 -4
- package/dist/type.d.ts +37 -50
- package/dist/type.js +1 -6
- package/package.json +5 -9
- package/dist/case/diff.d.ts +0 -19
- package/dist/case/diff.js +0 -274
- package/dist/compare/comparator.d.ts +0 -17
- package/dist/compare/comparator.js +0 -52
- package/dist/compare/compare.d.ts +0 -17
- package/dist/compare/compare.js +0 -178
- package/dist/compare/format-code.d.ts +0 -16
- package/dist/compare/format-code.js +0 -244
- package/dist/compare/index.d.ts +0 -5
- package/dist/compare/index.js +0 -21
- package/dist/compare/replace-module-argument.d.ts +0 -1
- package/dist/compare/replace-module-argument.js +0 -8
- package/dist/compare/replace-runtime-module-name.d.ts +0 -1
- package/dist/compare/replace-runtime-module-name.js +0 -71
- package/dist/plugin/rspack-diff-config-plugin.d.ts +0 -7
- package/dist/plugin/rspack-diff-config-plugin.js +0 -42
- package/dist/plugin/webpack-diff-config-plugin.d.ts +0 -7
- package/dist/plugin/webpack-diff-config-plugin.js +0 -41
- package/dist/plugin/webpack-module-placeholder-plugin.d.ts +0 -3
- package/dist/plugin/webpack-module-placeholder-plugin.js +0 -106
- package/template/diff.bundle.css +0 -1
- package/template/diff.bundle.js +0 -144
- package/template/diff.html +0 -14
- package/template/editor.worker.js +0 -1
package/template/diff.bundle.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
!function(){var e={76784:function(e,t,r){"use strict";r.r(t),r.d(t,{objectSpread2:function(){return i},objectWithoutProperties:function(){return s},slicedToArray:function(){return a}});function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,s;n=e,i=t,s=r[t],i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++){if(r=s[n],!(t.indexOf(r)>=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}}return i}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{!n&&null!=o.return&&o.return()}finally{if(i)throw s}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}},94603:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}}},1202:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.default}});var n=r("2565")},2565:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r("76784"),i=r("18575"),s=r("94603"),a=r("70576"),o=r("77718"),u=r("52927"),l=r("75854"),c=i.default.create({config:s.default,isInitialized:!1,resolve:null,reject:null,monaco:null}),p=(0,n.slicedToArray)(c,2),d=p[0],h=p[1];function f(e){return document.body.appendChild(e)}function m(e){var t,r,n=d(function(e){return{config:e.config,reject:e.reject}});var i=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return i.onload=function(){return e()},i.onerror=n.reject,i}function y(){var e=d(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){g(t),e.resolve(t)},function(t){e.reject(t)})}function g(e){!d().monaco&&h({monaco:e})}var D=new Promise(function(e,t){return h({resolve:e,reject:t})}),v={config:function(e){var t=a.default.config(e),r=t.monaco,i=(0,n.objectWithoutProperties)(t,["monaco"]);h(function(e){return{config:(0,u.default)(e.config,i),monaco:r}})},init:function(){var e=d(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(h({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),(0,l.default)(D);if(window.monaco&&window.monaco.editor)return g(window.monaco),e.resolve(window.monaco),(0,l.default)(D);(0,o.default)(f,m)(y)}return(0,l.default)(D)},__getMonacoInstance:function(){return d(function(e){return e.monaco})}}},77718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}},47888:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=function(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];return t.apply(r,[].concat(i,n))}}}},52927:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("76784"),i=function e(t,r){return Object.keys(r).forEach(function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))}),(0,n.objectSpread2)((0,n.objectSpread2)({},t),r)}},63398:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=function(e){return({}).toString.call(e).includes("Object")}},75854:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n={type:"cancelation",msg:"operation is manually canceled"},i=function(e){var t=!1,r=new Promise(function(r,i){e.then(function(e){return t?i(n):r(e)}),e.catch(i)});return r.cancel=function(){return t=!0},r}},70576:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("47888"),i=r("63398"),s={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},a=(0,n.default)(function(e,t){throw Error(e[t]||e.default)})(s),o={config:function(e){return(!e&&a("configIsRequired"),!(0,i.default)(e)&&a("configType"),e.urls)?(function(){console.warn(s.deprecation)}(),{paths:{vs:e.urls.monacoBase}}):e}}},28879:function(e,t,r){var n,i;e=r.nmd(e),n=this,i=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",s="month",a="quarter",o="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",f={};f[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var m=function(e){return e instanceof v},y=function e(t,r,n){var i;if(!t)return h;if("string"==typeof t){var s=t.toLowerCase();f[s]&&(i=s),r&&(f[s]=r,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;f[o]=t,i=o}return!n&&i&&(h=i),i||!n&&h},g=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new v(r)},D={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,s),a=r-i<0,o=t.clone().add(n+(a?-1:1),s);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:s,y:o,w:i,d:"day",D:u,h:n,m:r,s:t,ms:e,Q:a})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};D.l=y,D.i=m,D.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var v=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(D.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return D},h.isValid=function(){return this.$d.toString()!==l},h.isSame=function(e,t){var r=g(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return g(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<g(e)},h.$g=function(e,t,r){return D.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var l=this,c=!!D.u(a)||a,p=D.p(e),d=function(e,t){var r=D.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?r:r.endOf("day")},h=function(e,t){return D.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},f=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(p){case o:return c?d(1,0):d(31,11);case s:return c?d(1,m):d(0,m+1);case i:var v=this.$locale().weekStart||0,x=(f<v?f+7:f)-v;return d(c?y-x:y+(6-x),m);case"day":case u:return h(g+"Hours",0);case n:return h(g+"Minutes",1);case r:return h(g+"Seconds",2);case t:return h(g+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,a){var l,c=D.p(i),p="set"+(this.$u?"UTC":""),d=((l={}).day=p+"Date",l[u]=p+"Date",l[s]=p+"Month",l[o]=p+"FullYear",l[n]=p+"Hours",l[r]=p+"Minutes",l[t]=p+"Seconds",l[e]=p+"Milliseconds",l)[c],h="day"===c?this.$D+(a-this.$W):a;if(c===s||c===o){var f=this.clone().set(u,1);f.$d[d](h),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[D.p(e)]()},h.add=function(e,a){var u,l=this;e=Number(e);var c=D.p(a),p=function(t){var r=g(l);return D.w(r.date(r.date()+Math.round(t*e)),l)};if(c===s)return this.set(s,this.$M+e);if(c===o)return this.set(o,this.$y+e);if("day"===c)return p(1);if(c===i)return p(7);var d=((u={})[r]=6e4,u[n]=36e5,u[t]=1e3,u)[c]||1,h=this.$d.getTime()+e*d;return D.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),s=this.$H,a=this.$m,o=this.$M,u=r.weekdays,c=r.months,d=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].slice(0,s)},h=function(e){return D.s(s%12||12,e,"0")},f=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:D.s(o+1,2,"0"),MMM:d(r.monthsShort,o,c,3),MMMM:d(c,o),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,u,2),ddd:d(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:D.s(s,2,"0"),h:h(1),hh:h(2),a:f(s,a,!0),A:f(s,a,!1),m:String(a),mm:D.s(a,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:i};return n.replace(p,function(e,t){return t||m[e]||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,u,l){var c,p=D.p(u),d=g(e),h=(d.utcOffset()-this.utcOffset())*6e4,f=this-d,m=D.m(this,d);return m=((c={})[o]=m/12,c[s]=m,c[a]=m/3,c[i]=(f-h)/6048e5,c.day=(f-h)/864e5,c[n]=f/36e5,c[r]=f/6e4,c[t]=f/1e3,c)[p]||f,l?m:D.a(m)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return f[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return D.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),x=v.prototype;return g.prototype=x,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",s],["$y",o],["$D",u]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),g.extend=function(e,t){return e.$i||(e(t,v,g),e.$i=!0),g},g.locale=y,g.isDayjs=m,g.unix=function(e){return g(1e3*e)},g.en=f[h],g.Ls=f,g.p={},g},"object"==typeof t&&void 0!==e?e.exports=i():"function"==typeof define&&define.amd?define(i):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=i()},98833:function(e,t,r){var n,i;e=r.nmd(e),n=this,i=function(e){"use strict";var t,r=(t=e)&&"object"==typeof t&&"default"in t?t:{default:t},n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return r.default.locale(n,null,!0),n},"object"==typeof t&&void 0!==e?e.exports=i(r("28879")):"function"==typeof define&&define.amd?define(["dayjs"],i):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_locale_zh_cn=i(n.dayjs)},65291:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("82456");function i(e,t){e.classList?e.classList.add(t):!(0,n.default)(e,t)&&("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},82456:function(e,t,r){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}r.r(t),r.d(t,{default:function(){return n}})},94693:function(e,t,r){"use strict";function n(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}r.r(t),r.d(t,{default:function(){return i}})},39515:function(e,t,r){var n=r("38761")(r("37772"),"DataView");e.exports=n},89612:function(e,t,r){var n=r("52118"),i=r("96909"),s=r("98138"),a=r("4174"),o=r("7942");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=o,e.exports=u},80235:function(e,t,r){var n=r("3945"),i=r("21846"),s=r("88028"),a=r("72344"),o=r("94769");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=o,e.exports=u},10326:function(e,t,r){var n=r("38761")(r("37772"),"Map");e.exports=n},96738:function(e,t,r){var n=r("92411"),i=r("36417"),s=r("86928"),a=r("79493"),o=r("24150");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=o,e.exports=u},52760:function(e,t,r){var n=r("38761")(r("37772"),"Promise");e.exports=n},2143:function(e,t,r){var n=r("38761")(r("37772"),"Set");e.exports=n},45386:function(e,t,r){var n=r("96738"),i=r("52842"),s=r("52482");function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=s,e.exports=a},86571:function(e,t,r){var n=r("80235"),i=r("15243"),s=r("72858"),a=r("4417"),o=r("8605"),u=r("71418");function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=a,l.prototype.has=o,l.prototype.set=u,e.exports=l},50857:function(e,t,r){var n=r("37772").Symbol;e.exports=n},79162:function(e,t,r){var n=r("37772").Uint8Array;e.exports=n},93215:function(e,t,r){var n=r("38761")(r("37772"),"WeakMap");e.exports=n},67552:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}},1634:function(e,t,r){var n=r("36473"),i=r("79631"),s=r("86152"),a=r("73226"),o=r("39045"),u=r("77598"),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),c=!r&&i(e),p=!r&&!c&&a(e),d=!r&&!c&&!p&&u(e),h=r||c||p||d,f=h?n(e.length,String):[],m=f.length;for(var y in e)(t||l.call(e,y))&&!(h&&("length"==y||p&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||o(y,m)))&&f.push(y);return f}},50343:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},65067:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},87064:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},22218:function(e,t,r){var n=r("41225");e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},13324:function(e,t,r){var n=r("17297"),i=r("33812");e.exports=function(e,t){t=n(t,e);for(var r=0,s=t.length;null!=e&&r<s;)e=e[i(t[r++])];return r&&r==s?e:void 0}},1897:function(e,t,r){var n=r("65067"),i=r("86152");e.exports=function(e,t,r){var s=t(e);return i(e)?s:n(s,r(e))}},53366:function(e,t,r){var n=r("50857"),i=r("62107"),s=r("37157"),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):s(e)}},15183:function(e,t,r){var n=r("53366"),i=r("15125");e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},88746:function(e,t,r){var n=r("51952"),i=r("15125");e.exports=function e(t,r,s,a,o){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,s,a,e,o):t!=t&&r!=r)}},51952:function(e,t,r){var n=r("86571"),i=r("74871"),s=r("11491"),a=r("17416"),o=r("70940"),u=r("86152"),l=r("73226"),c=r("77598"),p="[object Arguments]",d="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,g){var D=u(e),v=u(t),x=D?d:o(e),b=v?d:o(t);x=x==p?h:x,b=b==p?h:b;var E=x==h,C=b==h,S=x==b;if(S&&l(e)){if(!l(t))return!1;D=!0,E=!1}if(S&&!E)return g||(g=new n),D||c(e)?i(e,t,r,m,y,g):s(e,t,x,r,m,y,g);if(!(1&r)){var A=E&&f.call(e,"__wrapped__"),w=C&&f.call(t,"__wrapped__");if(A||w){var T=A?e.value():e,P=w?t.value():t;return g||(g=new n),y(T,P,r,m,g)}}return!!S&&(g||(g=new n),a(e,t,r,m,y,g))}},6840:function(e,t,r){var n=r("61049"),i=r("47394"),s=r("29259"),a=r("87035"),o=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||i(e))&&(n(e)?p:o).test(a(e))}},35522:function(e,t,r){var n=r("53366"),i=r("61158"),s=r("15125"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;e.exports=function(e){return s(e)&&i(e.length)&&!!a[n(e)]}},86411:function(e,t,r){var n=r("16001"),i=r("54248"),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},36473:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},1054:function(e,t,r){var n=r("50857"),i=r("50343"),s=r("86152"),a=r("4795"),o=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-o?"-0":r}},51704:function(e,t,r){var n=r("52153"),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},59950:function(e){e.exports=function(e,t){return e.has(t)}},17297:function(e,t,r){var n=r("86152"),i=r("21401"),s=r("54452"),a=r("66188");e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:s(a(e))}},24019:function(e,t,r){var n=r("37772")["__core-js_shared__"];e.exports=n},74871:function(e,t,r){var n=r("45386"),i=r("87064"),s=r("59950");e.exports=function(e,t,r,a,o,u){var l=1&r,c=e.length,p=t.length;if(c!=p&&!(l&&p>c))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var f=-1,m=!0,y=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++f<c;){var g=e[f],D=t[f];if(a)var v=l?a(D,g,f,t,e,u):a(g,D,f,e,t,u);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!i(t,function(e,t){if(!s(y,t)&&(g===e||o(g,e,r,a,u)))return y.push(t)})){m=!1;break}}else if(!(g===D||o(g,D,r,a,u))){m=!1;break}}return u.delete(e),u.delete(t),m}},11491:function(e,t,r){var n=r("50857"),i=r("79162"),s=r("41225"),a=r("74871"),o=r("75179"),u=r("16909"),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!p(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=o;case"[object Set]":var f=1&n;if(h||(h=u),e.size!=t.size&&!f)break;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var y=a(h(e),h(t),n,l,p,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},17416:function(e,t,r){var n=r("13483"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,s,a,o){var u=1&r,l=n(e),c=l.length;if(c!=n(t).length&&!u)return!1;for(var p=c;p--;){var d=l[p];if(!(u?d in t:i.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=u;++p<c;){var g=e[d=l[p]],D=t[d];if(s)var v=u?s(D,g,d,t,e,o):s(g,D,d,e,t,o);if(!(void 0===v?g===D||a(g,D,r,s,o):v)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var x=e.constructor,b=t.constructor;x!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}},51242:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},13483:function(e,t,r){var n=r("1897"),i=r("80633"),s=r("90249");e.exports=function(e){return n(e,s,i)}},27937:function(e,t,r){var n=r("98304");e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},38761:function(e,t,r){var n=r("6840"),i=r("98109");e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},62107:function(e,t,r){var n=r("50857"),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,o=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[o]=r:delete e[o]),i}},80633:function(e,t,r){var n=r("67552"),i=r("30981"),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return s.call(e,t)})}:i;e.exports=o},70940:function(e,t,r){var n=r("39515"),i=r("10326"),s=r("52760"),a=r("2143"),o=r("93215"),u=r("53366"),l=r("87035"),c="[object Map]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",f="[object DataView]",m=l(n),y=l(i),g=l(s),D=l(a),v=l(o),x=u;(n&&x(new n(new ArrayBuffer(1)))!=f||i&&x(new i)!=c||s&&x(s.resolve())!=p||a&&x(new a)!=d||o&&x(new o)!=h)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case m:return f;case y:return c;case g:return p;case D:return d;case v:return h}return t}),e.exports=x},98109:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},52118:function(e,t,r){var n=r("99191");e.exports=function(){this.__data__=n?n(null):{},this.size=0}},96909:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:function(e,t,r){var n=r("99191"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},4174:function(e,t,r){var n=r("99191"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},7942:function(e,t,r){var n=r("99191");e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},39045:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},21401:function(e,t,r){var n=r("86152"),i=r("4795"),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!s.test(e)||null!=t&&e in Object(t)}},98304:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:function(e,t,r){var n,i=r("24019");var s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!s&&s in e}},16001:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:function(e){e.exports=function(){this.__data__=[],this.size=0}},21846:function(e,t,r){var n=r("22218"),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},88028:function(e,t,r){var n=r("22218");e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},72344:function(e,t,r){var n=r("22218");e.exports=function(e){return n(this.__data__,e)>-1}},94769:function(e,t,r){var n=r("22218");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r("89612"),i=r("80235"),s=r("10326");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},36417:function(e,t,r){var n=r("27937");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r("27937");e.exports=function(e){return n(this,e).get(e)}},79493:function(e,t,r){var n=r("27937");e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r("27937");e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},77777:function(e,t,r){var n=r("30733");e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r("38761")(Object,"create");e.exports=n},54248:function(e,t,r){var n=r("60241")(Object.keys,Object);e.exports=n},4146:function(e,t,r){e=r.nmd(e);var n=r("51242"),i="object"==typeof t&&t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i&&n.process,o=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37772:function(e,t,r){var n=r("51242"),i="object"==typeof self&&self&&self.Object===Object&&self,s=n||i||Function("return this")();e.exports=s},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},15243:function(e,t,r){var n=r("80235");e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,r){var n=r("80235"),i=r("10326"),s=r("96738");e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},54452:function(e,t,r){var n=r("77777"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(s,"$1"):r||e)}),t});e.exports=a},33812:function(e,t,r){var n=r("4795"),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},54073:function(e,t,r){var n=r("29259"),i=r("61100"),s=r("7642"),a=Math.max,o=Math.min;e.exports=function(e,t,r){var u,l,c,p,d,h,f=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function D(t){var r=u,n=l;return u=l=void 0,f=t,p=e.apply(n,r)}t=s(t)||0,n(r)&&(m=!!r.leading,c=(y="maxWait"in r)?a(s(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g);function v(e){var r=e-h,n=e-f;return void 0===h||r>=t||r<0||y&&n>=c}function x(){var e,r,n,s,a=i();if(v(a))return b(a);d=setTimeout(x,(r=(e=a)-h,n=e-f,s=t-r,y?o(s,c-n):s))}function b(e){return(d=void 0,g&&u)?D(e):(u=l=void 0,p)}function E(){var e,r=i(),n=v(r);if(u=arguments,l=this,h=r,n){if(void 0===d){;return f=e=h,d=setTimeout(x,t),m?D(e):p}if(y)return clearTimeout(d),d=setTimeout(x,t),D(h)}return void 0===d&&(d=setTimeout(x,t)),p}return E.cancel=function(){void 0!==d&&clearTimeout(d),f=0,u=h=l=d=void 0},E.flush=function(){return void 0===d?p:b(i())},E}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,r){var n=r("13324");e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},79631:function(e,t,r){var n=r("15183"),i=r("15125"),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=u},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,r){var n=r("61049"),i=r("61158");e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r("37772"),i=r("36330"),s="object"==typeof t&&t&&!t.nodeType&&t,a=s&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===s?n.Buffer:void 0,u=o?o.isBuffer:void 0;e.exports=u||i},13383:function(e,t,r){var n=r("88746");e.exports=function(e,t,r){var i=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===i?n(e,t,void 0,r):!!i}},61049:function(e,t,r){var n=r("53366"),i=r("29259");e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,r){var n=r("53366"),i=r("15125");e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r("35522"),i=r("47826"),s=r("4146"),a=s&&s.isTypedArray,o=a?i(a):n;e.exports=o},90249:function(e,t,r){var n=r("1634"),i=r("86411"),s=r("67878");e.exports=function(e){return s(e)?n(e):i(e)}},30733:function(e,t,r){var n=r("96738");function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},61100:function(e,t,r){var n=r("37772");e.exports=function(){return n.Date.now()}},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,r){var n=r("54073"),i=r("29259");e.exports=function(e,t,r){var s=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:s,maxWait:t,trailing:a})}},7642:function(e,t,r){var n=r("51704"),i=r("29259"),s=r("4795"),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):o.test(e)?a:+e}},66188:function(e,t,r){var n=r("1054");e.exports=function(e){return null==e?"":n(e)}},98483:function(e,t,r){e=r.nmd(e),!function(n){if("object"==typeof t&&"object"==typeof e)e.exports=n();else if("function"==typeof define&&define.amd)define(n);else{var i="u">typeof globalThis?globalThis:"u">typeof r.g?r.g:"u">typeof self?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.babel=n()}}(function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e((e,t)=>{var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()}),n=e((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}}),i=e((e,t)=>{var r=n();t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})}),s=e((e,t)=>{var r=n();t.exports=!r(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),a=e((e,t)=>{var r=s(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}),o=e(e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t}),u=e((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),l=e((e,t)=>{var r=s(),n=Function.prototype,i=n.call,a=r&&n.bind.bind(i,i);t.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}}),c=e((e,t)=>{var r=l(),n=r({}.toString),i=r("".slice);t.exports=function(e){return i(n(e),8,-1)}}),p=e((e,t)=>{var r=l(),i=n(),s=c(),a=Object,o=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==s(e)?o(e,""):a(e)}:a}),d=e((e,t)=>{t.exports=function(e){return null==e}}),h=e((e,t)=>{var r=d(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}}),f=e((e,t)=>{var r=p(),n=h();t.exports=function(e){return r(n(e))}}),m=e((e,t)=>{var r="object"==typeof document&&document.all;t.exports={all:r,IS_HTMLDDA:typeof r>"u"&&void 0!==r}}),y=e((e,t)=>{var r=m(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}}),g=e((e,t)=>{var r=y(),n=m(),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}}),D=e((e,r)=>{var n=t(),i=y();r.exports=function(e,t){var r;return arguments.length<2?i(r=n[e])?r:void 0:n[e]&&n[e][t]}}),v=e((e,t)=>{var r=l();t.exports=r({}.isPrototypeOf)}),x=e((e,t)=>{var r=D();t.exports=r("navigator","userAgent")||""}),b=e((e,r)=>{var n,i,s=t(),a=x(),o=s.process,u=s.Deno,l=o&&o.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),r.exports=i}),E=e((e,t)=>{var r=b(),i=n();t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&r&&r<41})}),C=e((e,t)=>{var r=E();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),S=e((e,t)=>{var r=D(),n=y(),i=v(),s=C(),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}}),A=e((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}}),w=e((e,t)=>{var r=y(),n=A(),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not a function")}}),T=e((e,t)=>{var r=w(),n=d();t.exports=function(e,t){var i=e[t];return n(i)?void 0:r(i)}}),P=e((e,t)=>{var r=a(),n=y(),i=g(),s=TypeError;t.exports=function(e,t){var a,o;if("string"===t&&n(a=e.toString)&&!i(o=r(a,e))||n(a=e.valueOf)&&!i(o=r(a,e))||"string"!==t&&n(a=e.toString)&&!i(o=r(a,e)))return o;throw s("Can't convert object to primitive value")}}),F=e((e,t)=>{t.exports=!1}),k=e((e,r)=>{var n=t(),i=Object.defineProperty;r.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}}),N=e((e,r)=>{var n=t(),i=k(),s="__core-js_shared__",a=n[s]||i(s,{});r.exports=a}),O=e((e,t)=>{var r=F(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),I=e((e,t)=>{var r=h(),n=Object;t.exports=function(e){return n(r(e))}}),j=e((e,t)=>{var r=l(),n=I(),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(n(e),t)}}),B=e((e,t)=>{var r=l(),n=0,i=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}}),L=e((e,r)=>{var n=t(),i=O(),s=j(),a=B(),o=E(),u=C(),l=i("wks"),c=n.Symbol,p=c&&c.for,d=u?c:c&&c.withoutSetter||a;r.exports=function(e){if(!s(l,e)||!(o||"string"==typeof l[e])){var t="Symbol."+e;o&&s(c,e)?l[e]=c[e]:u&&p?l[e]=p(t):l[e]=d(t)}return l[e]}}),_=e((e,t)=>{var r=a(),n=g(),i=S(),s=T(),o=P(),u=L(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!n(e)||i(e))return e;var a,u=s(e,c);if(u){if(void 0===t&&(t="default"),!n(a=r(u,e,t))||i(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}}),M=e((e,t)=>{var r=_(),n=S();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}}),R=e((e,r)=>{var n=t(),i=g(),s=n.document,a=i(s)&&i(s.createElement);r.exports=function(e){return a?s.createElement(e):{}}}),$=e((e,t)=>{var r=i(),s=n(),a=R();t.exports=!r&&!s(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})}),U=e(e=>{var t=i(),r=a(),n=o(),s=u(),l=f(),c=M(),p=j(),d=$(),h=Object.getOwnPropertyDescriptor;e.f=t?h:function(e,t){if(e=l(e),t=c(t),d)try{return h(e,t)}catch{}if(p(e,t))return s(!r(n.f,e,t),e[t])}}),V=e((e,t)=>{var r=i(),s=n();t.exports=r&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),z=e((e,t)=>{var r=g(),n=String,i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not an object")}}),H=e(e=>{var t=i(),r=$(),n=V(),s=z(),a=M(),o=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",d="writable";e.f=t?n?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:c in r?r[c]:n[c],writable:!1})}return u(e,t,r)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}),W=e((e,t)=>{var r=i(),n=H(),s=u();t.exports=r?function(e,t,r){return n.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}}),q=e((e,t)=>{var r=i(),n=j(),s=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=n(s,"name"),u=o&&(!r||r&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:o&&"something"===(function(){}).name,CONFIGURABLE:u}}),K=e((e,t)=>{var r=l(),n=y(),i=N(),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),t.exports=i.inspectSource}),J=e((e,r)=>{var n=t(),i=y(),s=n.WeakMap;r.exports=i(s)&&/native code/.test(String(s))}),G=e((e,t)=>{var r=O(),n=B(),i=r("keys");t.exports=function(e){return i[e]||(i[e]=n(e))}}),X=e((e,t)=>{t.exports={}}),Y=e((e,r)=>{var n,i,s,a,o,u=J(),l=t(),c=g(),p=W(),d=j(),h=N(),f=G(),m=X(),y="Object already initialized",D=l.TypeError,v=l.WeakMap;u||h.state?((n=h.state||(h.state=new v)).get=n.get,n.has=n.has,n.set=n.set,s=function(e,t){if(n.has(e))throw D(y);return t.facade=e,n.set(e,t),t},a=function(e){return n.get(e)||{}},o=function(e){return n.has(e)}):(m[i=f("state")]=!0,s=function(e,t){if(d(e,i))throw D(y);return t.facade=e,p(e,i,t),t},a=function(e){return d(e,i)?e[i]:{}},o=function(e){return d(e,i)}),r.exports={set:s,get:a,has:o,enforce:function(e){return o(e)?a(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw D("Incompatible receiver, "+e+" required");return r}}}}),Q=e((e,t)=>{var r=n(),s=y(),a=j(),o=i(),u=q().CONFIGURABLE,l=K(),c=Y(),p=c.enforce,d=c.get,h=Object.defineProperty,f=o&&!r(function(){return 8!==h(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=p(e);return a(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=g(function(){return s(this)&&d(this).source||l(this)},"toString")}),Z=e((e,t)=>{var r=y(),n=H(),i=Q(),s=k();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&i(a,l,o),o.global)u?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}}),ee=e((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}}),et=e((e,t)=>{var r=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}}),er=e((e,t)=>{var r=et(),n=Math.max,i=Math.min;t.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}}),en=e((e,t)=>{var r=et(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}}),ei=e((e,t)=>{var r=en();t.exports=function(e){return r(e.length)}}),es=e((e,t)=>{var r=f(),n=er(),i=ei(),s=function(e){return function(t,s,a){var o,u=r(t),l=i(u),c=n(a,l);if(e&&s!=s){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}}),ea=e((e,t)=>{var r=l(),n=j(),i=f(),s=es().indexOf,a=X(),o=r([].push);t.exports=function(e,t){var r,u=i(e),l=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&o(c,r);for(;t.length>l;)n(u,r=t[l++])&&(~s(c,r)||o(c,r));return c}}),eo=e((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),eu=e(e=>{var t=ea(),r=eo().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}}),el=e(e=>{e.f=Object.getOwnPropertySymbols}),ec=e((e,t)=>{var r=D(),n=l(),i=eu(),s=el(),a=z(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?o(t,r(e)):t}}),ep=e((e,t)=>{var r=j(),n=ec(),i=U(),s=H();t.exports=function(e,t,a){for(var o=n(t),u=s.f,l=i.f,c=0;c<o.length;c++){var p=o[c];r(e,p)||a&&r(a,p)||u(e,p,l(t,p))}}}),ed=e((e,t)=>{var r=n(),i=y(),s=/#|\.prototype\./,a=function(e,t){var n=u[o(e)];return n==c||n!=l&&(i(t)?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a}),eh=e((e,r)=>{var n=t(),i=U().f,s=W(),a=Z(),o=k(),u=ep(),l=ed();r.exports=function(e,t){var r,c,p,d,h,f=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[f]||o(f,{}):(n[f]||{}).prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(h=i(r,c))&&h.value:r[c],!l(m?c:f+(y?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),a(r,c,d,e)}}}),ef=e(()=>{var e=eh(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})}),em=e(()=>{ef()}),ey=e((e,t)=>{var r=Q(),n=H();t.exports=function(e,t,i){return i.get&&r(i.get,t,{getter:!0}),i.set&&r(i.set,t,{setter:!0}),n.f(e,t,i)}}),eg=e((e,t)=>{var r=z();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),eD=e(()=>{var e=t(),r=i(),s=ey(),a=eg(),o=n(),u=e.RegExp,l=u.prototype;r&&o(function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==n||r!==n})&&s(l,"flags",{configurable:!0,get:a})}),ev=e((e,t)=>{var r=c();t.exports=Array.isArray||function(e){return"Array"==r(e)}}),ex=e((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}}),eb=e((e,t)=>{var r=c(),n=l();t.exports=function(e){if("Function"===r(e))return n(e)}}),eE=e((e,t)=>{var r=eb(),n=w(),i=s(),a=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}}),eC=e((e,t)=>{var r=ev(),n=ei(),i=ex(),s=eE(),a=function(e,t,o,u,l,c,p,d){for(var h,f,m=l,y=0,g=!!p&&s(p,d);y<u;)y in o&&(h=g?g(o[y],y,t):o[y],c>0&&r(h)?(f=n(h),m=a(e,t,h,f,m,c-1)-1):(i(m+1),e[m]=h),m++),y++;return m};t.exports=a}),eS=e((e,t)=>{var r=L()("toStringTag"),n={};n[r]="z",t.exports="[object z]"===String(n)}),eA=e((e,t)=>{var r=eS(),n=y(),i=c(),s=L()("toStringTag"),a=Object,o="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch{}};t.exports=r?i:function(e){var t,r,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:o?i(t):"Object"==(l=i(t))&&n(t.callee)?"Arguments":l}}),ew=e((e,t)=>{var r=l(),i=n(),s=y(),a=eA(),o=D(),u=K(),c=function(){},p=[],d=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),m=!h.exec(c),g=function(e){if(!s(e))return!1;try{return d(c,p,e),!0}catch{return!1}},v=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(h,u(e))}catch{return!0}};v.sham=!0,t.exports=!d||i(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0})||e})?v:g}),eT=e((e,t)=>{var r=ev(),n=ew(),i=g(),s=L()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(n(t=e.constructor)&&(t===a||r(t.prototype))?t=void 0:i(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?a:t}}),eP=e((e,t)=>{var r=eT();t.exports=function(e,t){return new(r(e))(0===t?0:t)}}),eF=e(()=>{var e=eh(),t=eC(),r=w(),n=I(),i=ei(),s=eP();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=i(o);return r(e),(a=s(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})});return e((e,t)=>{em(),eD(),eF();var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},o=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of i(t))s.call(e,u)||u===a||r(e,u,{get:()=>t[u],enumerable:!(o=n(t,u))||o.enumerable});return e},l=e=>u(r({},"__esModule",{value:!0}),e),c=a({"<define:process>"(){}}),p=o({"src/utils/try-combinations.js"(e,t){c();t.exports=function(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let[t,n]of r.entries())try{return{result:n()}}catch(r){0===t&&(e=r)}return{error:e}}}}),d=o({"src/language-js/utils/get-shebang.js"(e,t){c();t.exports=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
2
|
-
`);return -1===t?e:e.slice(0,t)}}}),h=o({"src/utils/text/skip-inline-comment.js"(e,t){c();t.exports=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2}return t}}}),f=o({"src/utils/text/skip-newline.js"(e,t){c();t.exports=function(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&i===`
|
|
3
|
-
`)return t-2;if(i===`
|
|
4
|
-
`||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&e.charAt(t+1)===`
|
|
5
|
-
`)return t+2;if(i===`
|
|
6
|
-
`||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}}}),m=o({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}c();var n=r(/\s/),i=r(" "),s=r(",; "),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),y=o({"src/utils/text/skip-trailing-comment.js"(e,t){c();var{skipEverythingButNewLine:r}=m();t.exports=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}}}),g=o({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){c();var r=h(),n=f(),i=y(),{skipSpaces:s}=m();t.exports=function(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}}}),D={};function v(){if(typeof I>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])I="BE";else if(513===r[0])I="LE";else throw Error("unable to figure out endianess")}return I}function x(){return"u">typeof globalThis.location?globalThis.location.hostname:""}function b(){return[]}function E(){return 0}function C(){return Number.MAX_VALUE}function S(){return Number.MAX_VALUE}function A(){return[]}function w(){return"Browser"}function T(){return"u">typeof globalThis.navigator?globalThis.navigator.appVersion:""}function P(){}function F(){}function k(){return"javascript"}function N(){return"browser"}function O(){return"/tmp"}((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(D,{EOL:()=>B,arch:()=>k,cpus:()=>A,default:()=>L,endianness:()=>v,freemem:()=>C,getNetworkInterfaces:()=>F,hostname:()=>x,loadavg:()=>b,networkInterfaces:()=>P,platform:()=>N,release:()=>T,tmpDir:()=>O,tmpdir:()=>j,totalmem:()=>S,type:()=>w,uptime:()=>E});var I,j,B,L,_=a({"node-modules-polyfills:os"(){c(),L={EOL:B=`
|
|
7
|
-
`,tmpdir:j=O,tmpDir:O,networkInterfaces:P,getNetworkInterfaces:F,release:T,type:w,cpus:A,totalmem:S,freemem:C,uptime:E,loadavg:b,hostname:x,endianness:v}}}),M=o({"node-modules-polyfills-commonjs:os"(e,t){c();var r=(_(),l(D));if(r&&r.default)for(let e in t.exports=r.default,r)t.exports[e]=r[e];else r&&(t.exports=r)}}),R=o({"node_modules/detect-newline/index.js"(e,t){c();var r=e=>{if("string"!=typeof e)throw TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter(e=>e===`\r
|
|
8
|
-
`).length,n=t.length-r;return r>n?`\r
|
|
9
|
-
`:`
|
|
10
|
-
`};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||`
|
|
11
|
-
`}}),$=o({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=M();return t=function(){return e},e}function r(){let e=function(e){return e&&e.__esModule?e:{default:e}}(R());return r=function(){return e},e}c(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(e){let t=e.match(s);return t?t[0].trimLeft():""},e.parse=function(e){return h(e).pragmas},e.parseWithComments=h,e.print=function(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a=Object.keys(i),o=a.map(e=>f(e,i[e])).reduce((e,t)=>e.concat(t),[]).map(e=>` * ${e}${s}`).join("");if(!n){if(0===a.length)return"";if(1===a.length&&!Array.isArray(i[a[0]])){let e=i[a[0]];return`/** ${f(a[0],e)[0]} */`}}let u=n.split(s).map(e=>` * ${e}`).join(s)+s;return"/**"+s+(n?u:"")+(n&&a.length?" *"+s:"")+o+" */"},e.strip=function(e){let t=e.match(s);return t&&t[0]?e.substring(t[0].length):e};var n=/\*\/$/,i=/^\/\*\*?/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,u=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,d=[];function h(e){let s=(0,r().default)(e)||t().EOL;e=e.replace(i,"").replace(n,"").replace(p,"$1");let c="";for(;c!==e;)c=e,e=e.replace(u,`${s}$1 $2${s}`);e=e.replace(o,"").trimRight();let h=Object.create(null),f=e.replace(l,"").replace(o,"").trimRight(),m;for(;m=l.exec(e);){let e=m[2].replace(a,"");"string"==typeof h[m[1]]||Array.isArray(h[m[1]])?h[m[1]]=d.concat(h[m[1]],e):h[m[1]]=e}return{comments:f,pragmas:h}}function f(e,t){return d.concat(t).map(t=>`@${e} ${t}`.trim())}}}),U=o({"src/common/end-of-line.js"(e,t){c();t.exports={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
12
|
-
`?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
13
|
-
`;default:return`
|
|
14
|
-
`}},countEndOfLineChars:function(e,t){let r;switch(t){case`
|
|
15
|
-
`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r
|
|
16
|
-
`:r=/\r\n/g;break;default:throw Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,`
|
|
17
|
-
`)}}}}),V=o({"src/language-js/pragma.js"(e,t){c();var{parseWithComments:r,strip:n,extract:i,print:s}=$(),{normalizeEndOfLine:a}=U(),o=d();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:s}=r(i(e));return{shebang:t,text:e,pragmas:n,comments:s}}t.exports={hasPragma:function(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r);return(t?`${t}
|
|
18
|
-
`:"")+a(s({pragmas:Object.assign({format:""},i),comments:o.trimStart()}))+(l.startsWith(`
|
|
19
|
-
`)?`
|
|
20
|
-
`:`
|
|
21
|
-
|
|
22
|
-
`)+l}}}}),z=o({"src/utils/is-non-empty-array.js"(e,t){c();t.exports=function(e){return Array.isArray(e)&&e.length>0}}}),H=o({"src/language-js/loc.js"(e,t){c();var r=z();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:function(e,t){var r,n;let a;return s(e,t)&&(r=e,n=t,Number.isInteger(a=i(r))&&a===i(n))}}}}),W=o({"src/language-js/parse/utils/create-parser.js"(e,t){c();var{hasPragma:r}=V(),{locStart:n,locEnd:i}=H();t.exports=function(e){return Object.assign({astFormat:"estree",hasPragma:r,locStart:n,locEnd:i},e="function"==typeof e?{parse:e}:e)}}}),q=o({"src/common/parser-create-error.js"(e,t){c();t.exports=function(e,t){let r=SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r}}}),K=o({"src/language-js/parse/utils/create-babel-parse-error.js"(e,t){c();var r=q();t.exports=function(e){let{message:t,loc:n}=e;return r(t.replace(/ \(.*\)/,""),{start:{line:n?n.line:0,column:n?n.column+1:0}})}}}),J=o({"src/language-js/utils/is-ts-keyword-type.js"(e,t){c();t.exports=function(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}}}),G=o({"src/language-js/utils/is-block-comment.js"(e,t){c();var r=new Set(["Block","CommentBlock","MultiLine"]);t.exports=e=>r.has(null==e?void 0:e.type)}}),X=o({"src/language-js/utils/is-type-cast-comment.js"(e,t){c();var r=G();t.exports=function(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}}}),Y=o({"src/utils/get-last.js"(e,t){c();t.exports=e=>e[e.length-1]}}),Q=o({"src/language-js/parse/postprocess/visit-node.js"(e,t){c();t.exports=function e(t,r){if(Array.isArray(t)){for(let n=0;n<t.length;n++)t[n]=e(t[n],r);return t}if(t&&"object"==typeof t&&"string"==typeof t.type){let n=Object.keys(t);for(let i=0;i<n.length;i++)t[n[i]]=e(t[n[i]],r);return r(t)||t}return t}}}),Z=o({"src/language-js/parse/postprocess/throw-syntax-error.js"(e,t){c();var r=q();t.exports=function(e,t){let{start:n,end:i}=e.loc;throw r(t,{start:{line:n.line,column:n.column+1},end:{line:i.line,column:i.column+1}})}}}),ee=o({"src/language-js/parse/postprocess/index.js"(e,t){c();var{locStart:r,locEnd:n}=H(),i=J(),s=X(),a=Y(),o=Q(),u=Z();function l(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}t.exports=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser&&"acorn"!==t.parser&&"espree"!==t.parser&&"meriyah"!==t.parser){let t=new Set;e=o(e,e=>{e.leadingComments&&e.leadingComments.some(s)&&t.add(r(e))}),e=o(e,e=>{if("ParenthesizedExpression"===e.type){let{expression:n}=e;if("TypeCastExpression"===n.type)return n.range=e.range,n;let i=r(e);if(!t.has(i))return n.extra=Object.assign(Object.assign({},n.extra),{},{parenthesized:!0}),n}})}return e=o(e,e=>{switch(e.type){case"ChainExpression":return function e(t){switch(t.type){case"CallExpression":t.type="OptionalCallExpression",t.callee=e(t.callee);break;case"MemberExpression":t.type="OptionalMemberExpression",t.object=e(t.object);break;case"TSNonNullExpression":t.expression=e(t.expression)}return t}(e.expression);case"LogicalExpression":if(l(e))return function e(t){return l(t)?e({type:"LogicalExpression",operator:t.operator,left:e({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[r(t.left),n(t.right.left)]}),right:t.right.right,range:[r(t),n(t)]}):t}(e);break;case"VariableDeclaration":{let i=a(e.declarations);i&&i.init&&function(e,i){";"!==t.originalText[n(i)]&&(e.range=[r(e),n(i)])}(e,i);break}case"TSParenthesizedType":return i(e.typeAnnotation)||"TSThisType"===e.typeAnnotation.type||(e.typeAnnotation.range=[r(e),n(e)]),e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){let t=r(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"ObjectExpression":if("typescript"===t.parser){let t=e.properties.find(e=>"Property"===e.type&&"TSEmptyBodyFunctionExpression"===e.value.type);t&&u(t.value,"Unexpected token.")}break;case"SequenceExpression":{let t=a(e.expressions);e.range=[r(e),Math.min(n(t),n(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:i}=e;if("meriyah"===t.parser&&i&&"Identifier"===i.type){let s=t.originalText.slice(r(i),n(i));(s.startsWith('"')||s.startsWith("'"))&&(e.exported=Object.assign(Object.assign({},e.exported),{},{type:"Literal",value:e.exported.name,raw:s}))}break}case"PropertyDefinition":if("meriyah"===t.parser&&e.static&&!e.computed&&!e.key){let t="static",n=r(e);Object.assign(e,{static:!1,key:{type:"Identifier",name:t,range:[n,n+t.length]}})}}})}}}),et=o({"node_modules/@babel/parser/lib/index.js"(e){c(),Object.defineProperty(e,"__esModule",{value:!0});var t={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0},r=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},n={brace:new r("{"),j_oTag:new r("<tag"),j_cTag:new r("</tag"),j_expr:new r("<tag>...</tag>",!0)};n.template=new r("`",!0);var i=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}},s=new Map;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;let r=y(e,t);return s.set(e,r),r}function o(e,t){return y(e,{beforeExpr:!0,binop:t})}var u=-1,l=[],p=[],d=[],h=[],f=[],m=[];function y(e){var t,r,n,s;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++u,p.push(e),d.push(null!=(t=a.binop)?t:-1),h.push(null!=(r=a.beforeExpr)&&r),f.push(null!=(n=a.startsExpr)&&n),m.push(null!=(s=a.prefix)&&s),l.push(new i(e,a)),u}function g(e){var t,r,n,a;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++u,s.set(e,u),p.push(e),d.push(null!=(t=o.binop)?t:-1),h.push(null!=(r=o.beforeExpr)&&r),f.push(null!=(n=o.startsExpr)&&n),m.push(null!=(a=o.prefix)&&a),l.push(new i("name",o)),u}var D={bracketL:y("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:y("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:y("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:y("]"),bracketBarR:y("|]"),braceL:y("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:y("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:y("#{",{beforeExpr:!0,startsExpr:!0}),braceR:y("}"),braceBarR:y("|}"),parenL:y("(",{beforeExpr:!0,startsExpr:!0}),parenR:y(")"),comma:y(",",{beforeExpr:!0}),semi:y(";",{beforeExpr:!0}),colon:y(":",{beforeExpr:!0}),doubleColon:y("::",{beforeExpr:!0}),dot:y("."),question:y("?",{beforeExpr:!0}),questionDot:y("?."),arrow:y("=>",{beforeExpr:!0}),template:y("template"),ellipsis:y("...",{beforeExpr:!0}),backQuote:y("`",{startsExpr:!0}),dollarBraceL:y("${",{beforeExpr:!0,startsExpr:!0}),templateTail:y("...`",{startsExpr:!0}),templateNonTail:y("...${",{beforeExpr:!0,startsExpr:!0}),at:y("@"),hash:y("#",{startsExpr:!0}),interpreterDirective:y("#!..."),eq:y("=",{beforeExpr:!0,isAssign:!0}),assign:y("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:y("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:y("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:y("_=",{beforeExpr:!0,isAssign:!0}),incDec:y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:y("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:y("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:y("^^",{startsExpr:!0}),doubleAt:y("@@",{startsExpr:!0}),pipeline:o("|>",0),nullishCoalescing:o("??",1),logicalOR:o("||",1),logicalAND:o("&&",2),bitwiseOR:o("|",3),bitwiseXOR:o("^",4),bitwiseAND:o("&",5),equality:o("==/!=/===/!==",6),lt:o("</>/<=/>=",7),gt:o("</>/<=/>=",7),relational:o("</>/<=/>=",7),bitShift:o("<</>>/>>>",8),bitShiftL:o("<</>>/>>>",8),bitShiftR:o("<</>>/>>>",8),plusMin:y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",{binop:10,startsExpr:!0}),star:y("*",{binop:10}),slash:o("/",10),exponent:y("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:a("in",{beforeExpr:!0,binop:7}),_instanceof:a("instanceof",{beforeExpr:!0,binop:7}),_break:a("break"),_case:a("case",{beforeExpr:!0}),_catch:a("catch"),_continue:a("continue"),_debugger:a("debugger"),_default:a("default",{beforeExpr:!0}),_else:a("else",{beforeExpr:!0}),_finally:a("finally"),_function:a("function",{startsExpr:!0}),_if:a("if"),_return:a("return",{beforeExpr:!0}),_switch:a("switch"),_throw:a("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:a("try"),_var:a("var"),_const:a("const"),_with:a("with"),_new:a("new",{beforeExpr:!0,startsExpr:!0}),_this:a("this",{startsExpr:!0}),_super:a("super",{startsExpr:!0}),_class:a("class",{startsExpr:!0}),_extends:a("extends",{beforeExpr:!0}),_export:a("export"),_import:a("import",{startsExpr:!0}),_null:a("null",{startsExpr:!0}),_true:a("true",{startsExpr:!0}),_false:a("false",{startsExpr:!0}),_typeof:a("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:a("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:a("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:a("do",{isLoop:!0,beforeExpr:!0}),_for:a("for",{isLoop:!0}),_while:a("while",{isLoop:!0}),_as:g("as",{startsExpr:!0}),_assert:g("assert",{startsExpr:!0}),_async:g("async",{startsExpr:!0}),_await:g("await",{startsExpr:!0}),_from:g("from",{startsExpr:!0}),_get:g("get",{startsExpr:!0}),_let:g("let",{startsExpr:!0}),_meta:g("meta",{startsExpr:!0}),_of:g("of",{startsExpr:!0}),_sent:g("sent",{startsExpr:!0}),_set:g("set",{startsExpr:!0}),_static:g("static",{startsExpr:!0}),_using:g("using",{startsExpr:!0}),_yield:g("yield",{startsExpr:!0}),_asserts:g("asserts",{startsExpr:!0}),_checks:g("checks",{startsExpr:!0}),_exports:g("exports",{startsExpr:!0}),_global:g("global",{startsExpr:!0}),_implements:g("implements",{startsExpr:!0}),_intrinsic:g("intrinsic",{startsExpr:!0}),_infer:g("infer",{startsExpr:!0}),_is:g("is",{startsExpr:!0}),_mixins:g("mixins",{startsExpr:!0}),_proto:g("proto",{startsExpr:!0}),_require:g("require",{startsExpr:!0}),_satisfies:g("satisfies",{startsExpr:!0}),_keyof:g("keyof",{startsExpr:!0}),_readonly:g("readonly",{startsExpr:!0}),_unique:g("unique",{startsExpr:!0}),_abstract:g("abstract",{startsExpr:!0}),_declare:g("declare",{startsExpr:!0}),_enum:g("enum",{startsExpr:!0}),_module:g("module",{startsExpr:!0}),_namespace:g("namespace",{startsExpr:!0}),_interface:g("interface",{startsExpr:!0}),_type:g("type",{startsExpr:!0}),_opaque:g("opaque",{startsExpr:!0}),name:y("name",{startsExpr:!0}),string:y("string",{startsExpr:!0}),num:y("num",{startsExpr:!0}),bigint:y("bigint",{startsExpr:!0}),decimal:y("decimal",{startsExpr:!0}),regexp:y("regexp",{startsExpr:!0}),privateName:y("#name",{startsExpr:!0}),eof:y("eof"),jsxName:y("jsxName"),jsxText:y("jsxText",{beforeExpr:!0}),jsxTagStart:y("jsxTagStart",{startsExpr:!0}),jsxTagEnd:y("jsxTagEnd"),placeholder:y("%%",{startsExpr:!0})};function v(e){return e>=93&&e<=130}function x(e){return e>=58&&e<=130}function b(e){return e>=58&&e<=134}function E(e){return f[e]}function C(e){return e>=127&&e<=129}function S(e){return e>=58&&e<=92}function A(e){return p[e]}function w(e){return d[e]}function T(e){return e>=24&&e<=25}function P(e){return l[e]}function F(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}l[8].updateContext=e=>{e.pop()},l[5].updateContext=l[7].updateContext=l[23].updateContext=e=>{e.push(n.brace)},l[22].updateContext=e=>{e[e.length-1]===n.template?e.pop():e.push(n.template)},l[140].updateContext=e=>{e.push(n.j_expr,n.j_oTag)};var k=class{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}},N=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function O(e,t){let{line:r,column:n,index:i}=e;return new k(r,n+t,i+t)}var I={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length-1;return{get(){return e.reduce((e,t)=>e[t],this)},set(r){e.reduce((e,n,i)=>i===t?e[n]=r:e[n],this)}}},B=(e,t,r)=>Object.keys(r).map(e=>[e,r[e]]).filter(e=>{let[,t]=e;return!!t}).map(e=>{let[t,r]=e;return[t,"function"==typeof r?{value:r,enumerable:!1}:"string"==typeof r.reflect?Object.assign({},r,j(r.reflect.split("."))):r]}).reduce((e,t)=>{let[r,n]=t;return Object.defineProperty(e,r,Object.assign({configurable:!0},n))},Object.assign(new e,t)),L={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:I.SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:I.SourceTypeModuleError}},_={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},M=e=>{let{type:t,prefix:r}=e;return"UpdateExpression"===t?_.UpdateExpression[String(r)]:_[t]},R=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),$=["toMessage"],U=["message"];function V(e,t){if(Array.isArray(e))return t=>V(t,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=s,o=F(s,U),u="string"==typeof a?()=>a:a;r[n]=function(e){let{toMessage:t}=e,r=F(e,$);return function e(n){let{loc:i,details:s}=n;return B(SyntaxError,Object.assign({},r,{loc:i}),{clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.loc||{};return e({loc:new k("line"in r?r.line:this.loc.line,"column"in r?r.column:this.loc.column,"index"in r?r.index:this.loc.index),details:Object.assign({},this.details,t.details)})},details:{value:s,enumerable:!1},message:{get(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set(e){Object.defineProperty(this,"message",{value:e})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in s&&{reflect:"details.missingPlugin",enumerable:!0}})}}(Object.assign({code:I.SyntaxError,reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var z=Object.assign({},V(L),V({AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.
|
|
23
|
-
- Did you mean \`export { '${t}' as '${r}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.
|
|
24
|
-
- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${M(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${M(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:r}=e;return`Unexpected token${r?` '${r}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),V({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),V`pipelineOperator`({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${M({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'})),{defineProperty:H}=Object,W=(e,t)=>H(e,t,{enumerable:!1,value:e[t]});function q(e){return e.loc.start&&W(e.loc.start,"index"),e.loc.end&&W(e.loc.end,"index"),e}var K="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",J="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",G=RegExp("["+K+"]"),X=RegExp("["+K+J+"]");K=J=null;var Y=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Q=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Z(e,t){let r=65536;for(let n=0,i=t.length;n<i&&!((r+=t[n])>e);n+=2){;if((r+=t[n+1])>=e)return!0}return!1}function ee(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&G.test(String.fromCharCode(e)):Z(e,Y)))}function et(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&X.test(String.fromCharCode(e)):Z(e,Y)||Z(e,Q))))}var er={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},en=new Set(er.keyword),ei=new Set(er.strict),es=new Set(er.strictBind);function ea(e,t){return t&&"await"===e||"enum"===e}function eo(e,t){return ea(e,t)||ei.has(e)}function eu(e){return es.has(e)}function el(e,t){var r;return eo(e,t)||(r=e,es.has(r))}var ec=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]),ep=387,ed=8331,eh=8201,ef=9,em=5,ey=17,eg=130,eD=2,ev=8459,ex=1024,eb=64,eE=65,eC=8971,eS=1024,eA=4098,ew=3,eT=6,eP=5,eF=class{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}},ek=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(t&(64|ep))return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new eF(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.add(e):n.lexical.add(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(n.flags&ep));--i);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(z.VarRedeclaration,{at:n,identifierName:t})}isRedeclaredInScope(e,t,r){return!!(1&r)&&(8&r?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):16&r?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(8&e.flags&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))}checkLocalExport(e){let{name:t}=e,r=this.scopeStack[0];r.lexical.has(t)||r.var.has(t)||r.functions.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&ep)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&(64|ep)&&!(4&t))return t}}},eN=class extends eF{constructor(){super(...arguments),this.declareFunctions=new Set}},eO=class extends ek{createScope(e){return new eN(e)}declareName(e,t,r){let n=this.currentScope();if(2048&t){this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),n.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){return!!super.isRedeclaredInScope(e,t,r)||!!(2048&r)&&!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t))}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},eI=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}};function ej(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function eB(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function eL(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?eB(e,r.comments):ej(n,r.comments)}var e_=class extends eI{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);let{start:s}=e;for(;n>=0;n--){let r=t[n],i=r.end;if(i>s)r.containingNode=e,this.finalizeComment(r),t.splice(n,1);else{i===s&&(r.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode){var r,n;null!==e.leadingNode&&ej(e.leadingNode,t),null!==e.trailingNode&&(r=e.trailingNode,n=t,void 0===r.leadingComments?r.leadingComments=n:r.leadingComments.unshift(...n))}else{let{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":eL(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":eL(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":eL(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":eL(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":eL(r,r.specifiers,e);break;default:eB(r,t)}else eB(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},eM=/\r\n?|[\n\u2028\u2029]/,eR=RegExp(eM.source,"g");function e$(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var eU=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eV=RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),ez=class{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.comments=[],this.commentStack=[],this.pos=0,this.type=137,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[n.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:i}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new k(n,i,0)}curPosition(){return new k(this.curLine,this.pos-this.lineStart,this.pos)}clone(e){let t=new ez,r=Object.keys(this);for(let n=0,i=r.length;n<i;n++){let i=r[n],s=this[i];!e&&Array.isArray(s)&&(s=s.slice()),t[i]=s}return t}},eH={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},eW={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function eq(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:d}=t;for(;;){if(r>=d){s.unterminated(a,o,u),l+=t.slice(p,r);break}let h=t.charCodeAt(r);if(function(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}(e,h,t,r)){l+=t.slice(p,r);break}if(92===h){l+=t.slice(p,r);let a=function(e,t,r,n,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
|
|
25
|
-
`);case 114:return o("\r");case 120:{let i;return{code:i,pos:t}=eK(e,t,r,n,2,!1,a,s),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=eG(e,t,r,n,a,s),o(null===i?null:String.fromCodePoint(i))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let a=t-1,u=e.slice(a,t+2).match(/^[0-7]+/)[0],l=parseInt(u,8);l>255&&(l=parseInt(u=u.slice(0,-1),8)),t+=u.length-1;let c=e.charCodeAt(t);if("0"!==u||56===c||57===c){if(i)return o(null);s.strictNumericEscape(a,r,n)}return o(String.fromCharCode(l))}return o(String.fromCharCode(u))}}(t,r,n,i,"template"===e,s);null!==a.ch||c?l+=a.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===h||8233===h?(++r,++i,n=r):10===h||13===h?"template"===e?(l+=t.slice(p,r)+`
|
|
26
|
-
`,++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function eK(e,t,r,n,i,s,a,o){let u=t,l;return{n:l,pos:t}=eJ(e,t,r,n,16,i,s,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function eJ(e,t,r,n,i,s,a,o,u,l){let c=t,p=16===i?eH.hex:eH.decBinOct,d=16===i?eW.hex:10===i?eW.dec:8===i?eW.oct:eW.bin,h=!1,f=0;for(let c=0,y=null==s?1/0:s;c<y;++c){var m;let s=e.charCodeAt(t),c;if(95===s&&"bail"!==o){let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||p.has(i)||p.has(s)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if((c=s>=97?s-97+10:s>=65?s-65+10:(m=s)>=48&&m<=57?s-48:1/0)>=i){if(c<=9&&l)return{n:null,pos:t};if(c<=9&&u.invalidDigit(t,r,n,i))c=0;else if(a)c=0,h=!0;else break}++t,f=f*i+c}return t===c||null!=s&&t-c!==s||h?{n:null,pos:t}:{n:f,pos:t}}function eG(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=eK(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=eK(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}var eX=["at"],eY=["at"];function eQ(e,t,r){return new k(r,e-t,e)}var eZ=new Set([103,109,115,105,121,117,100,118]),e0=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new N(e.startLoc,e.endLoc)}},e1=class extends e_{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(z.InvalidDigit,{at:eQ(e,t,r),radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(z.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(z.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(z.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(z.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(z.StrictNumericEscape,{at:eQ(e,t,r)})},unterminated:(e,t,r)=>{throw this.raise(z.UnterminatedString,{at:eQ(e-1,t,r)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(z.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(z.UnterminatedTemplate,{at:eQ(e,t,r)})}}),this.state=new ez,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new e0(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return eU.lastIndex=e,eU.test(this.input)?eU.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){let r=this.input.charCodeAt(e);(64512&r)==56320&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(e=>{let[t,r]=e;return this.raise(t,{at:r})}),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(z.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=n+e.length,eR.lastIndex=r+2;eR.test(this.input)&&eR.lastIndex<=n;)++this.state.curLine,this.state.lineStart=eR.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+e.length,loc:new N(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!e$(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new N(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(function(e){switch(e){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 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){let r=this.state.pos;if(45===this.input.charCodeAt(r+1)&&62===this.input.charCodeAt(r+2)&&(0===e||this.state.lineStart>e)){let e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break e}else if(60===r&&!this.inModule&&this.options.annexB){let e=this.state.pos;if(33===this.input.charCodeAt(e+1)&&45===this.input.charCodeAt(e+2)&&45===this.input.charCodeAt(e+3)){let e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break e}else break e}}if(t.length>0){let r=this.state.pos;this.state.commentStack.push({start:e,end:r,comments:t,leadingNode:null,trailingNode:null,containingNode:null})}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(z.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?z.RecordExpressionHashIncorrectStartSyntaxType:z.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ee(t)?(++this.state.pos,this.finishToken(136,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!e$(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2);return}if(124===e){if(62===t){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(z.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(z.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(4);return}}if(61===t){this.finishOp(30,2);return}this.finishOp(124===e?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}61===t?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t){if(61===this.input.charCodeAt(e+2)){this.finishOp(30,3);return}this.finishOp(51,2);return}if(61===t){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;if(61===this.input.charCodeAt(e+t)){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(61===t){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61===t){this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);return}if(61===e&&62===t){this.state.pos+=2,this.finishToken(19);return}this.finishOp(61===e?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(z.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(z.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e){this.readRadixNumber(16);return}if(111===e||79===e){this.readRadixNumber(8);return}if(98===e||66===e){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ee(e)){this.readWord(e);return}}throw this.raise(z.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,n,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(z.UnterminatedRegExp,{at:O(e,1)});let t=this.input.charCodeAt(i);if(e$(t))throw this.raise(z.UnterminatedRegExp,{at:O(e,1)});if(r)r=!1;else{if(91===t)n=!0;else if(93===t&&n)n=!1;else if(47===t&&!n)break;r=92===t}}let s=this.input.slice(t,i);++i;let a="",o=()=>O(e,i+2-t);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(eZ.has(e))118===e?(this.expectPlugin("regexpUnicodeSets",o()),a.includes("u")&&this.raise(z.IncompatibleRegExpUVFlags,{at:o()})):117===e&&a.includes("v")&&this.raise(z.IncompatibleRegExpUVFlags,{at:o()}),a.includes(t)&&this.raise(z.DuplicateRegExpFlags,{at:o()});else if(et(e)||92===e)this.raise(z.MalformedRegExpFlags,{at:o()});else break;++i,a+=t}this.state.pos=i,this.finishToken(135,{pattern:s,flags:a})}readInt(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{n:i,pos:s}=eJ(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.curPosition(),r=!1;this.state.pos+=2;let n=this.readInt(e);null==n&&this.raise(z.InvalidDigit,{at:O(t,2),radix:e});let i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,r=!0;else if(109===i)throw this.raise(z.InvalidDecimal,{at:t});if(ee(this.codePointAtPos(this.state.pos)))throw this.raise(z.NumberIdentifier,{at:this.state.curPosition()});if(r){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,e);return}this.finishToken(132,n)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,i=!1,s=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(z.InvalidNumber,{at:this.state.curPosition()});let u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(z.StrictOctalLiteral,{at:r}),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(z.ZeroDigitNumericSeparator,{at:O(r,t)})}o=u&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46!==l||o||(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||o||((43===(l=this.input.charCodeAt(++this.state.pos))||45===l)&&++this.state.pos,null===this.readInt(10)&&this.raise(z.InvalidOrMissingExponent,{at:r}),n=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||u)&&this.raise(z.InvalidBigIntLiteral,{at:r}),++this.state.pos,i=!0),109===l&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(z.InvalidDecimal,{at:r}),++this.state.pos,s=!0),ee(this.codePointAtPos(this.state.pos)))throw this.raise(z.NumberIdentifier,{at:this.state.curPosition()});let c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(133,c);return}if(s){this.finishToken(134,c);return}let p=o?parseInt(c,8):parseFloat(c);this.finishToken(132,p)}readCodePoint(e){let{code:t,pos:r}=eG(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:i}=eq(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(131,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:i,lineStart:s}=eq("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new k(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let{at:r}=t,n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,{at:r}):this.state.strictErrors.set(n,[e,r])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(et(e))this.state.pos+=e<=65535?1:2;else if(92===e){this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===r?ee:et;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(z.MissingUnicodeEscape,{at:this.state.curPosition()}),n=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(z.EscapedCharNotAnIdentifier,{at:e}),t+=String.fromCodePoint(s)),n=this.state.pos}else break}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=s.get(t);void 0!==r?this.finishToken(r,p[r]):this.finishToken(130,t)}checkKeywordEscapes(){let{type:e}=this.state;S(e)&&this.state.containsEsc&&this.raise(z.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:p[e]})}raise(e,t){let{at:r}=t,n=F(t,eX),i=e({loc:r instanceof k?r:r.loc.start,details:n});if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t){let{at:r}=t,n=F(t,eY),i=r instanceof k?r:r.loc.start,s=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.loc.index===s)return a[t]=e({loc:i,details:n});if(r.loc.index<s)break}return this.raise(e,t)}updateContext(e){}unexpected(e,t){throw this.raise(z.UnexpectedToken,{expected:t?p[t]:null,at:null!=e?e:this.state.startLoc})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(z.MissingPlugin,{at:null!=t?t:this.state.startLoc,missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(z.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,{at:eQ(t,r,n)})}}},e2=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},e3=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new e2)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(z.InvalidPrivateFieldResolution,{at:n,identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current(),a=n.has(e);if(t&ew){let r=a&&i.get(e);if(r){let n=4&t,s=t&ew;(a=(r&ew)===s||(4&r)!==n)||i.delete(e)}else a||i.set(e,t)}a&&this.parser.raise(z.PrivateNameRedeclaration,{at:r,identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(z.InvalidPrivateFieldResolution,{at:t,identifierName:e})}},e8=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},e4=class extends e8{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let{at:r}=t,n=r.index;this.declarationErrors.set(n,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},e6=class{constructor(e){this.parser=void 0,this.stack=[new e8],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{at:r}=t,n={at:r.loc.start},{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n);a=i[--s]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{at:r}=t,{stack:n}=this,i=n[n.length-1],s={at:r.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(e,s);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,s)}}recordAsyncArrowParametersError(e){let{at:t}=e,{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(z.AwaitBindingIdentifier,{at:t}),i=r[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(t=>{let[r,n]=t;this.parser.raise(r,{at:n});let i=e.length-2,s=e[i];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(n.index),s=e[--i]})}};function e7(){return new e8}var e5=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}};function e9(e,t){return(e?2:0)|(t?1:0)}var te=class extends e1{addExtra(e,t,r){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!e)return;let i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let r=e+t.length;if(this.input.slice(e,r)===t){let e=this.input.charCodeAt(r);return!(et(e)||(64512&e)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,{at:this.state.startLoc});this.unexpected(null,e)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return eM.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return eV.lastIndex=this.state.end,eV.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(!(arguments.length>0)||void 0===arguments[0]||arguments[0]?this.isLineTerminator():this.eat(13))||this.raise(z.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{let n=e(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let e=this.state;if(this.state=t,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:e};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:e};throw n}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s}=e,a=!!r||!!n||!!s||!!i;if(!t)return a;null!=r&&this.raise(z.InvalidCoverInitializedName,{at:r}),null!=n&&this.raise(z.DuplicateProto,{at:n}),null!=i&&this.raise(z.UnexpectedPrivateField,{at:i}),null!=s&&this.unexpected(s)}isLiteralPropertyName(){return b(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new e5;let o=this.classScope;this.classScope=new e3(this);let u=this.expressionScope;return this.expressionScope=new e6(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=u}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},tt=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},tr=class{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new N(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}},tn=tr.prototype;tn.__clone=function(){let e=new tr(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};function ti(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(tn);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}var ts=class extends te{startNode(){return new tr(this,this.state.start,this.state.startLoc)}startNodeAt(e){return new tr(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},ta=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),to=V`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitailized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function tu(e){return"type"===e.importKind||"typeof"===e.importKind}function tl(e){return x(e)&&97!==e}var tc={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},tp=/\*?\s*@((?:no)?flow)\b/,td={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},th=V`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function tf(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function tm(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return tm(e.object)+"."+tm(e.property);throw Error("Node had unexpected type: "+e.type)}var ty=class extends eF{constructor(){super(...arguments),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}},tg=class extends ek{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new ty(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1){for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,r){if(4096&t){this.hasImport(e,!0)&&this.parser.raise(z.VarRedeclaration,{at:r,identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let n=this.currentScope();if(1024&t){this.maybeExportDefined(n,e),n.exportOnlyBindings.add(e);return}super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),n.types.add(e)),256&t&&n.enums.add(e),512&t&&n.constEnums.add(e),128&t&&n.classes.add(e)}isRedeclaredInScope(e,t,r){if(e.enums.has(t))return!(256&r)||!!(512&r)!==e.constEnums.has(t);return 128&r&&e.classes.has(t)?!!e.lexical.has(t)&&!!(1&r):!!(2&r&&e.types.has(t))||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let e=r-1;e>=0;e--){let r=this.scopeStack[e];if(r.types.has(t)||r.exportOnlyBindings.has(t))return}super.checkLocalExport(e)}},tD=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t],tv=e=>"ParenthesizedExpression"===e.type?tv(e.expression):e,tx=class extends ts{toAssignable(e){var t,r,n;let i,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(("ParenthesizedExpression"===e.type||null!=(t=e.extra)&&t.parenthesized)&&(i=tv(e),s?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(z.InvalidParenthesizedAssignment,{at:e}):"MemberExpression"!==i.type&&this.raise(z.InvalidParenthesizedAssignment,{at:e}):this.raise(z.InvalidParenthesizedAssignment,{at:e})),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let t=0,r=e.properties.length,i=r-1;t<r;t++){let r=e.properties[t],a=t===i;this.toAssignableObjectExpressionProp(r,a,s),a&&"RestElement"===r.type&&null!=(n=e.extra)&&n.trailingCommaLoc&&this.raise(z.RestTrailingComma,{at:e.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:t,value:r}=e;this.isPrivateName(t)&&this.classScope.usePrivateName(this.getPrivateNameSV(t),t.loc.start),this.toAssignable(r,s);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,s);break;case"AssignmentExpression":"="!==e.operator&&this.raise(z.MissingEqInAssignment,{at:e.left.loc.end}),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,s);break;case"ParenthesizedExpression":this.toAssignable(i,s)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?z.PatternHasAccessor:z.PatternHasMethod,{at:e.key});else if("SpreadElement"===e.type){e.type="RestElement";let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(z.RestTrailingComma,{at:e})}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let i=0;i<=n;i++){let s=e[i];if(s){if("SpreadElement"===s.type){s.type="RestElement";let e=s.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(s,r);"RestElement"===s.type&&(i<n?this.raise(z.RestTrailingComma,{at:s}):t&&this.raise(z.RestTrailingComma,{at:t}))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){for(let r of(this.toReferencedList(e,t),e))(null==r?void 0:r.type)==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(z.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let e=this.startNode(),{type:t,startLoc:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(136===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){let r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);let n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r,n;if(null!=e||(e=this.state.startLoc),t=null!=(n=t)?n:this.parseBindingAtom(),!this.eat(29))return t;let i=this.startNodeAt(e);return i.left=t,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,t,r){return tD({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}checkLVal(e,t){var r;let{in:n,binding:i=eb,checkClashes:s=!1,strictModeChanged:a=!1,hasParenthesizedAncestor:o=!1}=t,u=e.type;if(this.isObjectMethod(e))return;if("MemberExpression"===u){i!==eb&&this.raise(z.InvalidPropertyBindingPattern,{at:e});return}if("Identifier"===u){this.checkIdentifier(e,i,a);let{name:t}=e;s&&(s.has(t)?this.raise(z.ParamDupe,{at:e}):s.add(t));return}let l=this.isValidLVal(u,!(o||null!=(r=e.extra)&&r.parenthesized)&&"AssignmentExpression"===n.type,i);if(!0===l)return;if(!1===l){let t=i===eb?z.InvalidLhs:z.InvalidLhsBinding;this.raise(t,{at:e,ancestor:n});return}let[c,p]=Array.isArray(l)?l:[l,"ParenthesizedExpression"===u],d="ArrayPattern"===u||"ObjectPattern"===u||"ParenthesizedExpression"===u?{type:u}:n;for(let t of[].concat(e[c]))t&&this.checkLVal(t,{in:d,binding:i,checkClashes:s,strictModeChanged:a,hasParenthesizedAncestor:p})}checkIdentifier(e,t){var r;let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?el(e.name,this.inModule):(r=e.name,es.has(r)))&&(t===eb?this.raise(z.StrictEvalArguments,{at:e,referenceName:e.name}):this.raise(z.StrictEvalArgumentsBinding,{at:e,bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(z.LetInLexicalBinding,{at:e}),t&eb||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(z.InvalidRestAssignmentPattern,{at:e})}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?z.RestTrailingComma:z.ElementAfterRest,{at:this.state.startLoc}),!0)}},tb=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t];function tE(e){if(!e)throw Error("Assert fail")}var tC=V`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function tS(e){return"private"===e||"public"===e||"protected"===e}function tA(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}var tw=V`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function tT(e,t){let[r,n]="string"==typeof t?[t,{}]:t,i=Object.keys(n),s=0===i.length;return e.some(e=>{if("string"==typeof e)return s&&e===r;{let[t,s]=e;if(t!==r)return!1;for(let e of i)if(s[e]!==n[e])return!1;return!0}})}function tP(e,t,r){let n=e.find(e=>Array.isArray(e)?e[0]===t:e===t);return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var tF=["minimal","fsharp","hack","smart"],tk=["^^","@@","^","%","#"],tN=["hash","bar"],tO={estree:e=>class extends e{parse(){let e=q(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(q)),e}parseRegExpLiteral(e){let{pattern:t,flags:r}=e,n=null;try{n=new RegExp(t,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;return delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue,e.type="ExpressionStatement",e.expression=t,e.directive=t.extra.rawValue,delete t.extra,e}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);let s=e.directives.map(e=>this.directiveToStmt(e));e.body=s.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,i,s){this.parseMethod(t,r,n,i,s,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=e.kind,(o=super.parseMethod(o,t,r,n,i,s,a)).type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){let e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(){let e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseObjectMethod(e,t,r,n,i){let s=super.parseObjectMethod(e,t,r,n,i);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}parseObjectProperty(e,t,r,n){let i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(z.PatternHasAccessor,{at:e.key}):e.method?this.raise(z.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);if("Import"===r.callee.type){if(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAssertions")){var n;r.attributes=null!=(n=r.arguments[1])?n:null}delete r.arguments,delete r.callee}return r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:e}=n;(null==e?void 0:e.type)==="ClassDeclaration"&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){let i=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(("OptionalMemberExpression"===i.type||"OptionalCallExpression"===i.type)&&(i.type=i.type.substring(8)),n.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===i.type||"CallExpression"===i.type)&&(i.optional=!1);return i}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,r){return q(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t),q(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),q(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(th.UnterminatedJsxContent,{at:this.state.startLoc});let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(r);return}e+=this.input.slice(t,this.state.pos),this.finishToken(139,e);return;case 38:e+=this.input.slice(t,this.state.pos)+this.jsxReadEntity(),t=this.state.pos;break;default:e$(r)?(e+=this.input.slice(t,this.state.pos)+this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?`
|
|
27
|
-
`:`\r
|
|
28
|
-
`):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(z.UnterminatedString,{at:this.state.startLoc});let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos)+this.jsxReadEntity(),r=this.state.pos):e$(n)?(t+=this.input.slice(r,this.state.pos)+this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(131,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t=td[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(et(e)||45===e);this.finishToken(138,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(138)?e.name=this.state.value:S(this.state.type)?e.name=p[this.state.type]:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(n.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,n.j_oTag)).expression.type&&this.raise(th.AttributeIsEmpty,{at:e}),e;case 140:case 131:return this.parseExprAtom();default:throw this.raise(th.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(n.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(n.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(n.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(141);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(141),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(141)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(141),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],i=this.jsxParseOpeningElementAt(e),s=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case 140:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 139:r.push(this.parseExprAtom());break;case 5:{let e=this.startNode();this.setContext(n.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,n.j_expr));break}default:this.unexpected()}tf(i)&&!tf(s)&&null!==s?this.raise(th.MissingClosingTagFragment,{at:s}):!tf(i)&&tf(s)?this.raise(th.MissingClosingTagElement,{at:s,openingTagName:tm(i.name)}):tf(i)||tf(s)||tm(s.name)===tm(i.name)||this.raise(th.MissingClosingTagElement,{at:s,openingTagName:tm(i.name)})}if(tf(i)?(t.openingFragment=i,t.closingFragment=s):(t.openingElement=i,t.closingElement=s),t.children=r,this.match(47))throw this.raise(th.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return tf(i)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(139)?this.parseLiteral(this.state.value,"JSXText"):this.match(140)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(140),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===n.j_expr){this.jsxReadToken();return}if(t===n.j_oTag||t===n.j_cTag){if(ee(e)){this.jsxReadWord();return}if(62===e){++this.state.pos,this.finishToken(141);return}if((34===e||39===e)&&t===n.j_oTag){this.jsxReadString(e);return}}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(140);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:r}=this.state;if(56===r&&140===e)t.splice(-2,2,n.j_cTag),this.state.canStartJSXElement=!1;else if(140===r)t.push(n.j_oTag);else if(141===r){let r=t[t.length-1];r===n.j_oTag&&56===e||r===n.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===n.j_expr):(this.setContext(n.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=h[r]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return eO}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){131!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){let t=tp.exec(e.value);if(t){if("flow"===t[1])this.flowPragma="flow";else if("noflow"===t[1])this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>t.index+1&&this.raise(to.UnexpectedSpaceBetweenModuloChecks,{at:t}),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(125)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(to.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e)):this.isContextual(128)?this.flowParseDeclareTypeAlias(e):this.isContextual(129)?this.flowParseDeclareOpaqueType(e):this.isContextual(127)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,em,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(131)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(128)||this.match(87)||this.raise(to.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(e)):(this.expectContextual(123,to.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach(e=>{var t;"DeclareExportAllDeclaration"!==(t=e).type&&("DeclareExportDeclaration"!==t.type||t.declaration&&("TypeAlias"===t.declaration.type||"InterfaceDeclaration"===t.declaration.type))?"DeclareModuleExports"===e.type&&(i&&this.raise(to.DuplicateDeclareModuleExports,{at:e}),"ES"===n&&this.raise(to.AmbiguousDeclareModuleKind,{at:e}),n="CommonJS",i=!0):("CommonJS"===n&&this.raise(to.AmbiguousDeclareModuleKind,{at:e}),n="ES")}),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!t){let e=this.state.value;throw this.raise(to.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:e,suggestion:tc[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(129)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?ey:eh,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(this.eatContextual(115))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(to.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(e,t,r){ta.has(e)&&this.raise(r?to.AssignReservedType:to.UnexpectedReservedType,{at:t,reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,eh,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,eh,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(to.MissingTypeParamDefault,{at:t}),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let r=!1;do{let e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){let r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,allowProto:i,allowInexact:s}=e,a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let u,l,c=!1;for(r&&this.match(6)?(this.expect(6),u=9,l=!0):(this.expect(5),u=8,l=!1),o.exact=l;!this.match(u);){let e=!1,r=null,a=null,u=this.startNode();if(i&&this.isContextual(116)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=this.state.startLoc,t=!1)}if(t&&this.isContextual(104)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}let p=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(p&&this.unexpected(p.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):o.indexers.push(this.flowParseObjectTypeIndexer(u,e,p));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),p&&this.unexpected(p.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(98)||this.isContextual(103))&&b(this.lookahead().type)&&(t=this.state.value,this.next());let i=this.flowParseObjectTypeProperty(u,e,r,p,t,n,null!=s?s:!l);null===i?(c=!0,a=this.state.lastTokStartLoc):o.properties.push(i)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(to.UnexpectedExplicitInexactInObject,{at:a})}this.expect(u),n&&(o.inexact=c);let p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,p}flowParseObjectTypeProperty(e,t,r,n,i,s,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(to.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(to.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),n&&this.raise(to.InexactVariance,{at:n}),null):(s||this.raise(to.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=r&&this.unexpected(r),n&&this.raise(to.SpreadVariance,{at:n}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===i||"set"===i)&&this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(to.ThisParamBannedInConstructor,{at:e.value.this})):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?to.GetterMayNotHaveThisParam:to.SetterMayNotHaveThisParam,{at:e.value.this}),r!==t&&this.raise("get"===e.kind?z.BadGetterArity:z.BadSetterArity,{at:e}),"set"===e.kind&&e.value.rest&&this.raise(z.BadSetterRestParameter,{at:e})}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){var r;null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){let r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null,i=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(to.ThisParamMustBeFirst,{at:i}),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(to.ThisParamMayNotBeOptional,{at:i})),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),r,n,i=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=s,n;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21)){if(v(this.state.type)||this.match(78)){let e=this.lookahead().type;i=17!==e&&14!==e}else i=!0}if(i){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(to.UnexpectedSubtractionOperand,{at:this.state.startLoc})}this.unexpected();return;case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(S(this.state.type)){let e=p[this.state.type];return this.next(),super.createIdentifier(t,e)}if(v(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(130!==this.state.type||"_"!==this.state.value)return this.flowParseType();{let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,r));return}super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(x(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type){if("declare"===t.name){if(this.match(80)||v(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(v(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){let{type:e}=this.state;return C(e)||this.shouldParseEnums()&&124===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return C(e)||this.shouldParseEnums()&&124===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);let n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[u,l]=this.getArrowLikeExpressions(a);if(o||l.length>0){let e=[...i];if(l.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[u,l]=this.getArrowLikeExpressions(a)}o&&u.length>1&&this.raise(to.AmbiguousConditionalArrow,{at:n.startLoc}),o&&1===u.length&&(this.state=n,e.push(u[0].start),this.state.noArrowAt=e,{consequent:a,failed:o}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let r=[e],n=[];for(;0!==r.length;){let e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach(e=>this.finishArrowValidation(e)),[n,[]]):function(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}(n,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return -1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExport(e,t){let r=super.parseExport(e,t);return("ExportNamedDeclaration"===r.type||"ExportAllDeclaration"===r.type)&&(r.exportKind=r.exportKind||"value"),r}parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(129)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(127)){e.exportKind="type";let t=this.startNode();return this.next(),this.flowParseInterface(t)}else{if(!(this.shouldParseEnums()&&this.isContextual(124)))return super.parseExportDeclaration(e);e.exportKind="value";let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}}eatExportStar(e){return!!super.eatExportStar(e)||!!this.isContextual(128)&&55===this.lookahead().type&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){let{startLoc:n}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(to.DeclareClassElement,{at:n}):t.value&&this.raise(to.DeclareClassFieldInitializer,{at:t.value}))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){let e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(z.InvalidIdentifier,{at:this.state.curPosition(),identifierName:t}),this.finishToken(130,t)}getTokenFromCode(e){var t,r,n;let i=this.input.charCodeAt(this.state.pos+1);123===e&&124===i?this.finishOp(6,2):this.state.inType&&(62===e||60===e)?this.finishOp(62===e?48:47,1):this.state.inType&&63===e?46===i?this.finishOp(18,2):this.finishOp(17,1):(t=e,r=i,n=this.input.charCodeAt(this.state.pos+2),64===t&&64===r&&ee(n))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];(null==r?void 0:r.type)==="TypeCastExpression"&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;let i=e[n];i&&"TypeCastExpression"===i.type&&!(null!=(r=i.extra)&&r.parenthesized)&&(e.length>1||!t)&&this.raise(to.TypeCastInPattern,{at:i.typeAnnotation})}return e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(to.ThisParamBannedInConstructor,{at:t})}else if("MethodDefinition"===t.type&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(to.ThisParamBannedInConstructor,{at:t})}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(to.GetterMayNotHaveThisParam,{at:r}):this.isThisParam(r)&&this.raise(to.SetterMayNotHaveThisParam,{at:r})}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(e,t,r,n,i,s,a);return o&&((u.value||u).typeParameters=o),u}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(to.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(to.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(to.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(to.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(to.TypeBeforeInitializer,{at:r.typeAnnotation}),r}shouldParseDefaultImport(e){return tu(e)?tl(this.state.type):super.shouldParseDefaultImport(e)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(to.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}parseImportSpecifierLocal(e,t,r){t.local=tu(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(87)?t="typeof":this.isContextual(128)&&(t="type"),t){let r=this.lookahead(),{type:n}=r;"type"===t&&55===n&&this.unexpected(null,r.type),(tl(n)||5===n||55===n)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e,t,r,n,i){let s=e.imported,a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let t=this.parseIdentifier(!0);null===a||x(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=ti(t))}else{if(null!==a&&x(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(z.ImportBindingIsString,{at:e,importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=ti(e.imported))}let u=tu(e);return r&&u&&this.raise(to.ImportTypeShorthandOnlyInPureImport,{at:e}),(r||u)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||r||u||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){if(78===this.state.type)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseFunctionParams(e,t){let r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r,i,s;let a=null,o;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(a=this.state.clone(),!(o=this.tryParse(()=>super.parseMaybeAssign(e,t),a)).error)return o.node;let{context:r}=this.state,i=r[r.length-1];(i===n.j_oTag||i===n.j_expr)&&r.pop()}if(null!=(r=o)&&r.error||this.match(47)){a=a||this.state.clone();let r,n=this.tryParse(n=>{var i;r=this.flowParseTypeParameterDeclaration();let s=this.forwardNoArrowParamsConversionAt(r,()=>{let n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n});null!=(i=s.extra)&&i.parenthesized&&n();let a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),s},a),u=null;if(n.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(n.node).type){if(!n.error&&!n.aborted)return n.node.async&&this.raise(to.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:r}),n.node;u=n.node}if(null!=(i=o)&&i.node)return this.state=o.failState,o.node;if(u)return this.state=n.failState,u;throw null!=(s=o)&&s.thrown?o.error:n.thrown?n.error:this.raise(to.UnexpectedTokenAfterTypeParameter,{at:r})}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!(r&&-1!==this.state.noArrowParamsConversionAt.indexOf(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(to.ThisParamMustBeFirst,{at:e.params[t]});super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();let r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){let n=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),n);if(!i.error&&!i.aborted)return i.node;let s=this.tryParse(()=>super.parseSubscripts(e,t,r),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){let r=this.startNodeAt(t);r.callee=e;let i=this.tryParse(()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(124===e&&125===t){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(to.UnterminatedFlowComment,{at:this.state.curPosition()}),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(to.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(z.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(to.EnumBooleanMemberNotInitialized,{at:e,memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?to.EnumInvalidMemberInitializerSymbolType:to.EnumInvalidMemberInitializerPrimaryType:to.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},t))}flowEnumErrorNumberMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(to.EnumNumberMemberNotInitialized,{at:e,enumName:r,memberName:n})}flowEnumErrorStringMemberInconsistentlyInitailized(e,t){let{enumName:r}=t;this.raise(to.EnumStringMemberInconsistentlyInitailized,{at:e,enumName:r})}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 131:{let r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){let{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e,n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let e=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),u=a.name;if(""===u)continue;/^[a-z]/.test(u)&&this.raise(to.EnumInvalidMemberName,{at:a,memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:t}),n.has(u)&&this.raise(to.EnumDuplicateMemberName,{at:a,memberName:u,enumName:t}),n.add(u);let l={enumName:t,explicitType:r,memberName:u};switch(e.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"boolean"),e.init=o.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"number"),e.init=o.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,l,"string"),e.init=o.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,l);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,l);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(e,t,r){let{enumName:n}=r;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:n});return t}for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(101))return null;if(!v(this.state.type))throw this.raise(to.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:t});let{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(to.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){let r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let i=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,u=s.defaultedMembers.length;if(!i&&!a&&!o&&!u)return t();if(!i&&!a)return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");if(a||o||!(i>=u)){if(i||o||!(a>=u))return this.raise(to.EnumInconsistentMemberValues,{at:n,enumName:r}),t();else{for(let e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}}for(let e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){let e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){let t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:tC.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:tC.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:tC.InvalidModifierOnTypeParameter})}getScopeHandler(){return tg}tsIsIdentifier(){return v(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!v(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=tC.InvalidModifierOnTypeMember}=e,a=(e,r,n,i)=>{r===n&&t[i]&&this.raise(tC.InvalidModifiersOrder,{at:e,orderedModifiers:[n,i]})},o=(e,r,n,i)=>{(t[n]&&r===i||t[i]&&r===n)&&this.raise(tC.IncompatibleModifiers,{at:e,modifiers:[n,i]})};for(;;){var u;let{startLoc:e}=this.state,l=this.tsParseModifier(r.concat(null!=n?n:[]),i);if(!l)break;tS(l)?t.accessibility?this.raise(tC.DuplicateAccessibilityModifier,{at:e,modifier:l}):(a(e,l,l,"override"),a(e,l,l,"static"),a(e,l,l,"readonly"),t.accessibility=l):"in"===(u=l)||"out"===u?(t[l]&&this.raise(tC.DuplicateModifier,{at:e,modifier:l}),t[l]=!0,a(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(tC.DuplicateModifier,{at:e,modifier:l}):(a(e,l,"static","readonly"),a(e,l,"static","override"),a(e,l,"override","readonly"),a(e,l,"abstract","override"),o(e,l,"declare","override"),o(e,l,"static","abstract")),t[l]=!0),null!=n&&n.includes(l)&&this.raise(s,{at:e,modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let n=t();if(null==n)return;if(i.push(n),this.eat(12)){s=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;r&&this.expect(12);return}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));let s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(tC.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(tC.EmptyTypeParameters,{at:t}),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=19===e,n="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),r?t[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map(e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(tC.UnsupportedSignatureParameterKind,{at:e,type:e.type}),e))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!v(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);if(this.match(10)||this.match(47)){t&&this.raise(tC.ReadonlyForMethodSignature,{at:e});e.kind&&this.match(47)&&this.raise(tC.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon();let r="parameters",n="typeAnnotation";if("get"===e.kind)e[r].length>0&&(this.raise(z.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(e[r][0])&&this.raise(tC.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===e.kind){if(1!==e[r].length)this.raise(z.BadSetterArity,{at:this.state.curPosition()});else{let t=e[r][0];this.isThisParam(t)&&this.raise(tC.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===t.type&&t.optional&&this.raise(tC.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===t.type&&this.raise(tC.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}e[n]&&this.raise(tC.SetAccesorCannotHaveReturnType,{at:e[n]})}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}{t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!!(this.match(0)&&(this.next(),this.tsIsIdentifier()))&&(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,r=null;return e.elementTypes.forEach(e=>{var n;let{type:i}=e;t&&"TSRestType"!==i&&"TSOptionalType"!==i&&!("TSNamedTupleMember"===i&&e.optional)&&this.raise(tC.OptionalTypeBeforeRequired,{at:e}),t||(t="TSNamedTupleMember"===i&&e.optional||"TSOptionalType"===i);let s=i;"TSRestType"===i&&(s=(e=e.typeAnnotation).type);let a="TSNamedTupleMember"===s;null!=r||(r=a),r!==a&&this.raise(tC.MixedLabeledAndUnlabeledElements,{at:e})}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let{startLoc:e}=this.state,t=this.eat(21),r,n,i,s,a=x(this.state.type)?this.lookaheadCharCode():null;if(58===a)r=!0,i=!1,n=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(63===a){i=!0;let e=this.state.startLoc,t=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,n=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),s=this.tsParseType()):(r=!1,s=a,this.expect(17))}else s=this.tsParseType(),i=this.eat(17),r=this.eat(14);if(r){let e;n?((e=this.startNodeAtNode(n)).optional=i,e.label=n,e.elementType=s,this.eat(17)&&(e.optional=!0,this.raise(tC.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):((e=this.startNodeAtNode(s)).optional=i,this.raise(tC.InvalidTupleMemberLabel,{at:s}),e.label=s,e.elementType=this.tsParseType()),s=this.finishNode(e,"TSNamedTupleMember")}else if(i){let e=this.startNodeAtNode(s);e.typeAnnotation=s,s=this.finishNode(e,"TSOptionalType")}if(t){let t=this.startNodeAt(e);t.typeAnnotation=s,s=this.finishNode(t,"TSRestType")}return s}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,r)),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();return e.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 132!==t.type&&133!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(v(e)||88===e||84===e){let t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(tC.UnexpectedReadonly,{at:e})}}tsParseInferType(){let e=this.startNode();this.expectContextual(113);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=119&&e<=121&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),i=this.eat(r),s=[];do s.push(t());while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(v(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),!!(v(this.state.type)||this.match(78))&&(e&&this.raise(z.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){tE(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(tC.ReservedTypeAssertion,{at:this.state.startLoc});let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")});return r.length||this.raise(tC.EmptyHeritageClauseType,{at:t,token:e}),r}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),t.declare&&(e.declare=!0),v(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,eg)):(e.id=null,this.raise(tC.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,eD),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&16!==this.lookahead().type){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType(()=>this.expect(e))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(e){return this.tsInType(()=>(e(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?eC:ev),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,eS),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(tC.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,r;return this.isContextual(99)&&(t=74,r="let"),this.tsInAmbientContext(()=>{if(68===t)return e.declare=!0,super.parseFunctionStatement(e,!1,!1);if(80===t)return e.declare=!0,this.parseClass(e,!0,!1);if(124===t)return this.tsParseEnumDeclaration(e,{declare:!0});if(110===t)return this.tsParseAmbientExternalModuleDeclaration(e);if(75===t||74===t)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,r||this.state.value,!0));if(127===t){let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}if(v(t))return this.tsParseDeclaration(e,this.state.value,!0,null)})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{let t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);return e.global=!0,e.id=t,e.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(e,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||v(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(v(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&v(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&v(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,r)return super.parseArrowExpression(r,null,!0)}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length&&this.raise(tC.EmptyTypeArguments,{at:e}),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var e;return(e=this.state.type)>=122&&e<=128}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let i=n.accessibility,s=n.override,a=n.readonly;!(4&e)&&(i||a||s)&&this.raise(tC.UnexpectedParameterModifier,{at:r});let o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);let u=this.parseMaybeDefault(o.loc.start,o);if(i||a||s){let e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(tC.UnsupportedParameterPropertyKind,{at:e}),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(tC.PatternIsOptional,{at:t})}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(tC.DeclareFunctionHasImplementation,{at:e}),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,ex):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{(null==e?void 0:e.type)==="TSTypeCastExpression"&&this.raise(tC.UnexpectedTypeAnnotation,{at:e.typeAnnotation})})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){let i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s,a=this.tsTryParseAndCatch(()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10)){s=this.state.curPosition();return}if(T(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&f[o]&&!this.hasPrecedingLineBreak())return;let u=this.startNodeAt(t);return u.expression=e,u.typeParameters=a,this.finishNode(u,"TSInstantiationExpression")});if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(tC.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(d[58]>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(118)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(z.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(tC.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",v(this.state.type)||this.match(55)||this.match(5)){let t=this.lookahead();if(this.isContextual(128)&&12!==t.type&&97!==t.type&&29!==t.type&&(e.importKind="type",this.next(),t=this.lookahead()),v(this.state.type)&&29===t.type)return this.tsParseImportEqualsDeclaration(e)}let t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(tC.TypeImportCannotSpecifyDefaultAndNamed,{at:t}),t}parseExport(e,t){if(this.match(83))return this.next(),this.isContextual(128)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(29))return e.expression=super.parseExpression(),this.semicolon(),this.finishNode(e,"TSExportAssignment");if(this.eatContextual(93))return this.expectContextual(126),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration");if(e.exportKind="value",this.isContextual(128)){let t=this.lookaheadCharCode();(123===t||42===t)&&(this.next(),e.exportKind="type")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;for(let{id:e,init:r}of i.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(tC.InitializerNotAllowedInAmbientContext,{at:r}):function(e,t){var r;let{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(tA(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&tA(n,t))return!0}return!1}(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||"TemplateLiteral"===r.type&&!(r.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(r,this.hasPlugin("estree"))||this.raise(tC.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:r}));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>tS(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:tC.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(tC.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(tC.IndexSignatureHasAbstract,{at:t}),t.accessibility&&this.raise(tC.IndexSignatureHasAccessibility,{at:t,modifier:t.accessibility}),t.declare&&this.raise(tC.IndexSignatureHasDeclare,{at:t}),t.override&&this.raise(tC.IndexSignatureHasOverride,{at:t});return}!this.state.inAbstractClass&&t.abstract&&this.raise(tC.NonAbstractClassHasAbstractMethod,{at:t}),t.override&&(r.hadSuperClass||this.raise(tC.OverrideNotInSubClass,{at:t})),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(tC.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(tC.ClassMethodHasDeclare,{at:e})}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);let n=this.tryParse(()=>super.parseConditional(e,t));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,r=this.eatContextual(123);if(r&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(tC.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let n=v(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(111))return;super.parseClassId(e,t,r,e.declare?ex:ed);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(tC.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){let{key:t}=e;this.raise(tC.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(tC.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(tC.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(tC.AccessorCannotBeOptional,{at:e}),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(tC.ConstructorHasTypeParameters,{at:a});let{declare:o=!1,kind:u}=t;o&&("get"===u||"set"===u)&&this.raise(tC.DeclareAccessor,{at:t,kind:u}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"===e.type||("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,i,s,a,o,u,l;let c,p,d;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(c=this.state.clone(),!(p=this.tryParse(()=>super.parseMaybeAssign(e,t),c)).error)return p.node;let{context:r}=this.state,i=r[r.length-1];(i===n.j_oTag||i===n.j_expr)&&r.pop()}if(!(null!=(r=p)&&r.error)&&!this.match(47))return super.parseMaybeAssign(e,t);c&&c!==this.state||(c=this.state.clone());let h,f=this.tryParse(r=>{var n,i;h=this.tsParseTypeParameters(this.tsParseConstModifier);let s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),(null==(i=h)?void 0:i.params.length)!==0&&this.resetStartLocationFromNode(s,h),s.typeParameters=h,s},c);if(!f.error&&!f.aborted)return h&&this.reportReservedArrowTypeParam(h),f.node;if(!p&&(tE(!this.hasPlugin("jsx")),!(d=this.tryParse(()=>super.parseMaybeAssign(e,t),c)).error))return d.node;if(null!=(i=p)&&i.node)return this.state=p.failState,p.node;if(f.node)return this.state=f.failState,h&&this.reportReservedArrowTypeParam(h),f.node;if(null!=(s=d)&&s.node)return this.state=d.failState,d.node;throw null!=(a=p)&&a.thrown?p.error:f.thrown?f.error:null!=(o=d)&&o.thrown?d.error:(null==(u=p)?void 0:u.error)||f.error||(null==(l=d)?void 0:l.error)}reportReservedArrowTypeParam(e){var t;1===e.params.length&&!e.params[0].constraint&&!(null!=(t=e.extra)&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(tC.ReservedArrowTypeParam,{at:e})}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(tC.UnexpectedTypeCastInParameter,{at:e}):this.raise(tC.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){return tb({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(r!==eb||!t)&&["expression",!0],TSSatisfiesExpression:(r!==eb||!t)&&["expression",!0],TSTypeAssertion:(r!==eb||!t)&&["expression",!0]},e)||super.isValidLVal(e,t,r)}parseBindingAtom(){if(78===this.state.type)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(tC.TypeAnnotationAfterAssign,{at:r.typeAnnotation}),r}getTokenFromCode(e){if(this.state.inType){if(62===e){this.finishOp(48,1);return}if(60===e){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){let r=e[t];(null==r?void 0:r.type)==="TSTypeCastExpression"&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(tC.NonClassMethodPropertyHasAbstractModifer,{at:e}),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,a){let o=super.parseMethod(e,t,r,n,i,s,a);if(o.abstract&&(this.hasPlugin("estree")?!!o.value.body:!!o.body)){let{key:e}=o;this.raise(tC.AbstractMethodHasImplementation,{at:o,methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?eA:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){let n=t?"imported":"local",i=t?"local":"exported",s=e[n],a,o=!1,u=!0,l=s.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();x(this.state.type)?(o=!0,s=e,a=t?this.parseIdentifier():this.parseModuleExportName()):a=r,u=!1}else x(this.state.type)?(u=!1,a=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,s=e)}else x(this.state.type)&&(o=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());o&&r&&this.raise(t?tC.TypeModifierIsUsedInTypeImports:tC.TypeModifierIsUsedInTypeExports,{at:l}),e[n]=s,e[i]=a;e[t?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=ti(e[n])),t&&this.checkIdentifier(e[i],o?eA:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),v(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(142)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=!!(e.expectedNode&&"Placeholder"===e.type);return e.expectedNode=t,r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(142,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!(super.chStartsBindingIdentifier(e,t)||142===this.lookahead().type)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){return"Placeholder"!==t.type||t.extra&&t.extra.parenthesized?super.parseExpressionStatement(e,t):this.match(14)?(e.label=this.finishPlaceholder(t,"Identifier"),this.next(),e.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(e,"LabeledStatement")):(this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement"))}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(this.match(81)||this.match(142)||this.match(5))e.id=s;else{if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(tw.ClassNameIsRequired,{at:this.state.startLoc})}}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(p[142],this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return!!e.specifiers&&e.specifiers.length>0||super.maybeParseExportDefaultSpecifier(e)}checkExport(e){let{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(tw.UnexpectedSpace,{at:this.state.lastTokEndLoc})}}},tI=Object.keys(tO),tj=class extends tx{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if(("Identifier"===i.type?i.name:i.value)==="__proto__"){if(t){this.raise(z.RecordNoProto,{at:i});return}r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(z.DuplicateProto,{at:i})),r.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){var r;let n,i=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,i)),e}e?n=!1:(e=new tt,n=!0);let{type:s}=this.state;(10===s||v(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,i)),(r=this.state.type)>=29&&r<=33){let t=this.startNodeAt(i),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(a,!0),t.left=a;let r=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,{in:this.finishNode(t,"AssignmentExpression")}),t}return n&&this.checkExpressionErrors(e,!0),a}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){var n;if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);!(r>=d[58])&&this.prodParam.hasIn&&this.match(58)||this.raise(z.PrivateInExpectedIn,{at:e,identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let i=this.state.type;if((n=i)>=39&&n<=59&&(this.prodParam.hasIn||!this.match(58))){let n=d[i];if(n>r){if(39===i){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=41===i||42===i,o=40===i;if(o&&(n=d[42]),this.next(),39===i&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(z.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});s.right=this.parseExprOpRightExpr(i,n);let u=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(o&&(41===l||42===l)||a&&40===l)throw this.raise(z.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(z.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return R.has(r.type)&&!(null!=(e=r.extra)&&e.parenthesized)&&this.raise(z.PipeUnparenthesizedBody,{at:t,type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(z.PipeTopicUnused,{at:t}),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(z.UnexpectedTokenUnaryExponentiation,{at:e.argument})}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),s=this.startNode();if(m[this.state.type]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=s.argument;"Identifier"===e.type?this.raise(z.StrictDelete,{at:s}):this.hasPropertyAsPrivateName(e)&&this.raise(z.DeletePrivateField,{at:s})}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,i,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?f[e]:f[e]&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(z.AwaitNotInAsyncContext,{at:r}),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t)return this.checkLVal(e.argument,{in:this.finishNode(e,"UpdateExpression")}),e;let n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1;while(!n.stop);return e}parseSubscript(e,t,r,n){let{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(T(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(z.OptionalChainingNoNew,{at:this.state.startLoc}),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{let r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):(n.stop=!0,e)}}parseMember(e,t,r,n,i){let s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(136)?("Super"===e.type&&this.raise(z.SuperPrivateField,{at:t}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let i=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:u}=r;o&&(this.expressionScope.enter(new e4(2)),s=new tt),u&&(a.optional=n),n?a.arguments=this.parseCallExpressionArguments(11):a.arguments=this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,a,s);let l=this.finishCallExpression(a,u);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(z.OptionalChainingNoTemplate,{at:t}),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type){if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(z.ImportCallArity,{at:e,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(z.ImportCallSpreadArgument,{at:t})}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){let s=[],a=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(z.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(!1,i,r))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&eB(e,t.innerComments),t.callee.trailingComments&&eB(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(z.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(z.UnsupportedBind,{at:e})}case 136:return this.raise(z.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());ee(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(v(n)){if(this.isContextual(125)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(v(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=O(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n))return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?z.PrimaryTopicNotAllowed:z.PipeTopicUnbound,{at:t}),this.registerTopicReference(),this.finishNode(e,"smart"===r?"PipelinePrimaryTopicReference":"TopicReference");throw this.raise(z.PipeTopicUnconfiguredToken,{at:t,token:p[n]})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:p[r]}]);case"smart":return 27===r;default:throw this.raise(z.PipeTopicRequiresHackPipes,{at:t})}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(e9(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(z.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(z.UnexpectedSuper,{at:e}):this.raise(z.SuperNotAllowed,{at:e}),this.match(10)||this.match(0)||this.match(16)||this.raise(z.UnsupportedSuper,{at:e}),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(O(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(z.UnsupportedMetaProperty,{at:e.property,target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(z.ImportMetaOutsideModule,{at:t}),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(new e4(1));let n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let s=this.state.startLoc,a=[],o=new tt,u=!0,l,c;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}let p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,a,!1),d):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?((r=this.startNodeAt(s)).expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,p)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(z.UnexpectedNewTarget,{at:r}),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){e.callee=this.parseNoCallExpr(),"Import"===e.callee.type&&this.raise(z.ImportCallNotNewExpression,{at:e.callee})}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:i}=this.state,s=this.startNodeAt(O(r,1));null===i&&(e||this.raise(z.InvalidEscapeSequenceTemplate,{at:O(this.state.firstInvalidTemplateEscapePos,1)}));let a=this.match(24),o=a?-1:-2,u=n+o;s.value={raw:this.input.slice(t+1,u).replace(/\r\n?/g,`
|
|
29
|
-
`),cooked:null===i?null:i.slice(1,o)},s.tail=a,this.next();let l=this.finishNode(s,"TemplateElement");return this.resetEndLocation(l,O(this.state.lastTokEndLoc,o)),l}parseTemplate(e){let t=this.startNode();t.expressions=[];let r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=Object.create(null),a=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){let i;if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(z.InvalidRecordProperty,{at:i}),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return t?u="ObjectPattern":r&&(u="RecordExpression"),this.finishNode(o,u)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStart),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(z.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let r=this.startNode(),n=!1,i=!1,s;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(s=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc,u=this.parsePropertyName(r,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let e=u.name;"async"!==e||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(u),a=this.eat(55),this.parsePropertyName(r)),("get"===e||"set"===e)&&(i=!0,this.resetPreviousNodeTrailingComments(u),r.kind=e,this.match(55)&&(a=!0,this.raise(z.AccessorIsGenerator,{at:this.state.curPosition(),kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,s,a,n,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?z.BadGetterArity:z.BadSetterArity,{at:e}),"set"===e.kind&&(null==(t=n[n.length-1])?void 0:t.type)==="RestElement"&&this.raise(z.BadSetterRestParameter,{at:e})}parseObjectMethod(e,t,r,n,i){if(i){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,ti(e.key));else if(this.match(29)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(z.InvalidCoverInitializedName,{at:r}),e.value=this.parseMaybeDefault(t,ti(e.key))}else e.value=ti(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,s,a){let o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:n}=this.state,i;if(x(r))i=this.parseIdentifier(!0);else switch(r){case 132:i=this.parseNumericLiteral(n);break;case 131:i=this.parseStringLiteral(n);break;case 133:i=this.parseBigIntLiteral(n);break;case 134:i=this.parseDecimalLiteral(n);break;case 136:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(z.UnexpectedPrivateField,{at:e}),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,136!==r&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(18|(a?64:0)|(i?32:0)),this.prodParam.enter(e9(r,e.generator)),this.parseFunctionParams(e,n);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let i=e9(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,r);let s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t&&!this.match(5);if(this.expressionScope.enter(new e8),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(z.IllegalLanguageModeDirective,{at:("method"===e.kind||"constructor"===e.kind)&&e.key?e.key.loc.end:e});let a=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!s,t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,eE,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,{in:s,binding:em,checkClashes:i,strictModeChanged:n})}parseExprList(e,t,r,n){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(z.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),n=null;else if(this.match(21)){let e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(z.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:r,type:n}=this.state;x(n)?t=this.state.value:this.unexpected();let i=n<=92;return e?i&&this.replaceToken(130):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){var i,s;if(!(e.length>10)&&(i=e,ec.has(i))){;if(r&&(s=e,en.has(s))){this.raise(z.UnexpectedKeyword,{at:t,keyword:e});return}if((this.state.strict?n?el:eo:ea)(e,this.inModule)){this.raise(z.UnexpectedReservedWord,{at:t,reservedWord:e});return}if("yield"===e){if(this.prodParam.hasYield){this.raise(z.YieldBindingIdentifier,{at:t});return}}else if("await"===e){if(this.prodParam.hasAwait){this.raise(z.AwaitBindingIdentifier,{at:t});return}if(this.scope.inStaticBlock){this.raise(z.AwaitBindingIdentifierInStaticBlock,{at:t});return}this.expressionScope.recordAsyncArrowParametersError({at:t})}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction){this.raise(z.ArgumentsInClass,{at:t});return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(z.AwaitExpressionFormalParameter,{at:t}),this.eat(55)&&this.raise(z.ObsoleteAwaitStar,{at:t}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 53===e||10===e||0===e||T(e)||101===e&&!this.state.containsEsc||135===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(z.YieldInParameter,{at:e}),this.next();let t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(z.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(z.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(z.PipelineTopicUnused,{at:e})}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},tB={kind:"loop"},tL={kind:"switch"},t_=/[\uD800-\uDFFF]/u,tM=/in(?:stanceof)?/y,tR=class extends tj{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=function(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:i}=n;if("number"==typeof i){if(136===i){let{loc:t,start:i,value:s,end:a}=n,o=i+1,u=O(t.start,1);e.splice(r,1,new e0({type:l[27],value:"#",start:i,end:o,startLoc:t.start,endLoc:u}),new e0({type:l[130],value:s,start:o,end:a,startLoc:u,endLoc:t.end})),r++;continue}if(T(i)){let s,a,o,u,{loc:c,start:p,value:d,end:h}=n,f=p+1,m=O(c.start,1),y;y=96===t.charCodeAt(p)?new e0({type:l[22],value:"`",start:p,end:f,startLoc:c.start,endLoc:m}):new e0({type:l[8],value:"}",start:p,end:f,startLoc:c.start,endLoc:m}),24===i?(a=h-1,o=O(c.end,-1),s=null===d?null:d.slice(1,-1),u=new e0({type:l[22],value:"`",start:a,end:h,startLoc:o,endLoc:c.end})):(a=h-2,o=O(c.end,-2),s=null===d?null:d.slice(1,-2),u=new e0({type:l[23],value:"${",start:a,end:h,startLoc:o,endLoc:c.end})),e.splice(r,1,y,new e0({type:l[20],value:s,start:f,end:a,startLoc:m,endLoc:o}),u),r+=2;continue}n.type=l[i]}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:137,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(z.ModuleExportUndefined,{at:t,localName:e});return 137===r?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",O(this.state.startLoc,-1))}stmtToDirective(e){e.type="Directive",e.value=e.expression,delete e.expression;let t=e.value,r=t.value,n=this.input.slice(t.start,t.end),i=t.value=n.slice(1,-1);return this.addExtra(t,"raw",n),this.addExtra(t,"rawValue",i),this.addExtra(t,"expressionValue",r),t.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(!ee(e))return 92===e;if(tM.lastIndex=t,tM.test(this.input)){let e=this.codePointAtPos(tM.lastIndex);if(!et(e)&&92!==e)return!1}return!0}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasFollowingBindingIdentifier(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let e=this.lookahead();return(101!==e.type||!!e.containsEsc)&&(this.expectPlugin("explicitResourceManagement"),!0)}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?z.StrictFunction:this.options.annexB?z.SloppyFunctionAnnexB:z.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(z.UnexpectedUsingDeclaration,{at:this.state.startLoc}):i||this.raise(z.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(n,"using");case 99:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 75:i||this.raise(z.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||a||this.raise(z.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===r?"ImportDeclaration"!==(e=this.parseImport(n)).type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"!==(e=this.parseExport(n,t)).type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(z.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}let o=this.state.value,u=this.parseExpression();return v(r)&&"Identifier"===u.type&&this.eat(14)?this.parseLabeledStatement(n,o,u,e):this.parseExpressionStatement(n,u,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(z.ImportOutsideModule,{at:e})}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(z.DecoratorsBeforeAfterExport,{at:t.decorators[0]}),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(z.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(z.UnexpectedLeadingDecorator,{at:this.state.startLoc});return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(z.DecoratorArgumentsOutsideParentheses,{at:n})}else{for(r=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=r,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||"loop"===n.kind)||e.label&&t))break}r===this.state.labels.length&&this.raise(z.IllegalBreakContinue,{at:e,type:t?"BreakStatement":"ContinueStatement"})}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(tB),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(tB);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(99),n=this.isContextual(105)&&!this.hasFollowingLineBreak(),i=r&&this.hasFollowingBindingAtom()||n&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||i){let r=this.startNode(),i=this.state.value;this.next(),this.parseVar(r,!0,i);let s=this.finishNode(r,"VariableDeclaration"),a=this.match(58);return a&&n&&this.raise(z.ForInUsing,{at:s}),(a||this.isContextual(101))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}let s=this.isContextual(95),a=new tt,o=this.parseExpression(!0,a),u=this.isContextual(101);if(u&&(r&&this.raise(z.ForOfLet,{at:o}),null===t&&s&&"Identifier"===o.type&&this.raise(z.ForOfAsync,{at:o})),u||this.match(58))return this.checkDestructuringPrivate(a),this.toAssignable(o,!0),this.checkLVal(o,{in:{type:u?"ForOfStatement":"ForInStatement"}}),this.parseForIn(e,o,t);return this.checkExpressionErrors(a,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(z.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){let t,r;this.next(),e.discriminant=this.parseHeaderExpression();let n=e.cases=[];for(this.expect(5),this.state.labels.push(tL),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){let e=this.match(61);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),e?t.test=this.parseExpression():(r&&this.raise(z.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),r=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(z.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:ef}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(z.NoCatchOrFinally,{at:e}),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(tB),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(z.StrictWith,{at:this.state.startLoc}),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){var i;for(let e of this.state.labels)e.name===t&&this.raise(z.LabelRedeclaration,{at:r,labelName:t});let s=(i=this.state.type)>=90&&i<=92?"loop":this.match(71)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart===e.start)r.statementStart=this.state.start,r.kind=s;else break}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){let s=this.state.strict,a=!1,o=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}i&&i.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(z.ForInOfLoopInitializer,{at:t,type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(z.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(101))?"const"!==r||this.match(58)||this.isContextual(101)||this.raise(z.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(z.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){"using"===t&&!this.inModule&&this.match(96)&&this.raise(z.AwaitInUsingBinding,{at:this.state.startLoc});let r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?em:eh}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&t,n=!!(1&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(r&&this.raise(z.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(n&&!(4&t)));let s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(e9(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||v(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new e8(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?em:eh:ey,e.id.loc.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!e.computed&&!e.static&&("constructor"===e.key.name||"constructor"===e.key.value)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(z.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(z.DecoratorConstructor,{at:e})}}),this.state.strict=t,this.next(),n.length)throw this.raise(z.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=r,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=r,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(r),!1)}parseClassMember(e,t,r){let n=this.isContextual(104);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){t.kind="method";let r=this.match(136);if(this.parseClassElementName(t),r){this.pushClassPrivateMethod(e,t,!0,!1);return}this.isNonstaticConstructor(t)&&this.raise(z.ConstructorIsGenerator,{at:t.key}),this.pushClassMethod(e,t,!0,!1,!1,!1);return}let i=v(this.state.type)&&!this.state.containsEsc,s=this.match(136),a=this.parseClassElementName(t),o=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",s){this.pushClassPrivateMethod(e,t,!1,!1);return}let n=this.isNonstaticConstructor(t),i=!1;n&&(t.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(z.DuplicateConstructor,{at:a}),n&&this.hasPlugin("typescript")&&t.override&&this.raise(z.OverrideOnConstructor,{at:a}),r.hadConstructor=!0,i=r.hadSuperClass),this.pushClassMethod(e,t,!1,!1,n,i)}else if(this.isClassProperty())s?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if(i&&"async"===a.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(a);let r=this.eat(55);t.optional&&this.unexpected(o),t.kind="method";let n=this.match(136);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),n?this.pushClassPrivateMethod(e,t,r,!0):(this.isNonstaticConstructor(t)&&this.raise(z.ConstructorIsAsync,{at:t.key}),this.pushClassMethod(e,t,r,!0,!1,!1))}else if(i&&("get"===a.name||"set"===a.name)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(a),t.kind=a.name;let r=this.match(136);this.parseClassElementName(t),r?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(z.ConstructorIsAccessor,{at:t.key}),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}else if(i&&"accessor"===a.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(a);let r=this.match(136);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,r)}else this.isLineTerminator()?s?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((130===t||131===t)&&e.static&&"prototype"===r&&this.raise(z.StaticPrototype,{at:this.state.startLoc}),136===t){"constructor"===r&&this.raise(z.ConstructorClassPrivateField,{at:this.state.startLoc});let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(208);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(z.DecoratorStaticBlock,{at:t})}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(z.ConstructorClassField,{at:t.key}),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){let e=t.key;("constructor"===e.name||"constructor"===e.value)&&this.raise(z.ConstructorClassField,{at:e})}let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?eT:2:"set"===i.kind?i.static?eP:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(new e8),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ed;if(v(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(z.MissingClassName,{at:this.state.startLoc})}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r,n=this.maybeParseExportDefaultSpecifier(e),i=!n||this.eat(12),s=i&&this.eatExportStar(e),a=s&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),u=n||s;if(s&&!a){if(n&&this.unexpected(),t)throw this.raise(z.UnsupportedDecoratorExport,{at:e});return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let l=this.maybeParseExportNamedSpecifiers(e);if(n&&i&&!s&&!l&&this.unexpected(null,5),a&&o&&this.unexpected(null,97),u||l){if(r=!1,t)throw this.raise(z.UnsupportedDecoratorExport,{at:e});this.parseExportFrom(e,u)}else r=this.maybeParseExportDeclaration(e);if(u||l||r){var c;if(this.checkExport(e,!0,!1,!!e.source),(null==(c=e.declaration)?void 0:c.type)==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(z.UnsupportedDecoratorExport,{at:e});return this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(65)){let r=this.parseExportDefaultExpression();if(e.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,e);else if(t)throw this.raise(z.UnsupportedDecoratorExport,{at:e});return this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenStart();return!eM.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(z.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(z.UnsupportedDefaultExport,{at:this.state.startLoc});let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(v(e)){if(95===e&&!this.state.containsEsc||99===e)return!1;if((128===e||127===e)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(v(e)&&97!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||v(this.state.type)&&r)return!0;if(this.match(65)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){if(this.eatContextual(97)){e.source=this.parseImportSource(),this.checkExport(e);let t=this.maybeParseImportAssertions();t&&(e.assertions=t,this.checkJSONModuleImport(e))}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(z.DecoratorBeforeExport,{at:this.state.startLoc}),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;let t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(i=t.extra)&&i.parenthesized||this.raise(z.ExportDefaultFromAsIdentifier,{at:t})}}else if(e.specifiers&&e.specifiers.length)for(let t of e.specifiers){let{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){let{local:e}=t;"Identifier"!==e.type?this.raise(z.ExportBindingIsString,{at:t,localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){let t=e.declaration.id;if(!t)throw Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(let t of e.declaration.declarations)this.checkDeclaration(t.id)}}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(z.DuplicateDefaultExport,{at:e}):this.raise(z.DuplicateExport,{at:e,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(128),i=this.match(131),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if("Placeholder"===t)return ti(e);let o=Object.create(tn);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=a,o.value=e.value,o}(e.local):e.exported||(e.exported=ti(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let e=this.parseStringLiteral(this.state.value),t=e.value.match(t_);return t&&this.raise(z.ModuleExportNameHasLoneSurrogate,{at:e,surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(e=>{let{key:t,value:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)})}checkImportReflection(e){if(e.module){var t;(1!==e.specifiers.length||"ImportDefaultSpecifier"!==e.specifiers[0].type)&&this.raise(z.ImportReflectionNotBinding,{at:e.specifiers[0].loc.start}),(null==(t=e.assertions)?void 0:t.length)>0&&this.raise(z.ImportReflectionHasAssertion,{at:e.specifiers[0].loc.start})}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){let{specifiers:t}=e;if(null!=t){let e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(z.ImportJSONBindingNotDefault,{at:e.loc.start})}}}parseMaybeImportReflection(e){let t=!1;if(this.isContextual(125)){let e=this.lookahead(),r=e.type;v(r)?(97!==r||102===this.input.charCodeAt(this.nextTokenStartSince(e.end)))&&(t=!0):12!==r&&(t=!0)}t?(this.expectPlugin("importReflection"),this.next(),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1)}parseImport(e){if(e.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(e);let t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(12),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(97)}e.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{let t=this.maybeParseModuleAttributes();t&&(e.attributes=t)}return this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return v(this.state.type)}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseAssertEntries(){let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(z.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:n}),t.add(n),this.match(131)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(z.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(z.ModuleAttributeDifferentFromType,{at:r.key}),t.has(r.key.name)&&this.raise(z.ModuleAttributesWithDuplicateKeys,{at:r.key,key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(131))throw this.raise(z.ModuleAttributeInvalidValue,{at:this.state.startLoc});r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(12));return e}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next();this.eat(5);let e=this.parseAssertEntries();return this.eat(8),e}maybeParseDefaultImportSpecifier(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(z.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let r=this.startNode(),n=this.match(131),i=this.isContextual(128);r.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(z.ImportBindingIsString,{at:e,importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=ti(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},t$=class extends tR{constructor(e,r){super(e=function(e){if(e&&null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");let r={};for(let n of Object.keys(t))r[n]=e&&null!=e[n]?e[n]:t[n];return r}(e),r),this.options=e,this.initializeScopes(),this.plugins=function(e){let t=new Map;for(let r of e){let[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ek}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e}},tU=function(e){let t={};for(let r of Object.keys(e))t[r]=l[e[r]];return t}(D);function tV(e,t){let r=t$;return null!=e&&e.plugins&&(function(e){if(tT(e,"decorators")){if(tT(e,"decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let t=tP(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=tP(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw Error("'allowCallParenthesized' must be a boolean.")}if(tT(e,"flow")&&tT(e,"typescript"))throw Error("Cannot combine flow and typescript plugins.");if(tT(e,"placeholders")&&tT(e,"v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(tT(e,"pipelineOperator")){let t=tP(e,"pipelineOperator","proposal");if(!tF.includes(t)){let e=tF.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let r=tT(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(tT(e,"placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(tT(e,"v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=tP(e,"pipelineOperator","topicToken");if(!tk.includes(t)){let e=tk.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&r)throw Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(tT(e,"moduleAttributes")){if(tT(e,"importAssertions"))throw Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==tP(e,"moduleAttributes","version"))throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(tT(e,"recordAndTuple")&&null!=tP(e,"recordAndTuple","syntaxType")&&!tN.includes(tP(e,"recordAndTuple","syntaxType")))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+tN.map(e=>`'${e}'`).join(", "));if(tT(e,"asyncDoExpressions")&&!tT(e,"doExpressions")){let e=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}(e.plugins),r=function(e){let t=tI.filter(t=>tT(e,t)),r=t.join("/"),n=tz[r];if(!n){for(let e of(n=t$,t))n=tO[e](n);tz[r]=n}return n}(e.plugins)),new r(e,t)}var tz={};e.parse=function(e,t){var r;if((null==(r=t)?void 0:r.sourceType)!=="unambiguous")return tV(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";let r=tV(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",tV(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",tV(t,e).parse()}catch{}throw r}},e.parseExpression=function(e,t){let r=tV(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=tU}}),er=o({"src/language-js/parse/json.js"(e,t){c();var r=z(),n=q(),i=W(),s=K();function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{allowComments:t=!0}=e;return function(e){let{parseExpression:n}=et(),i;try{i=n(e,{tokens:!0,ranges:!0})}catch(e){throw s(e)}if(!t&&r(i.comments))throw o(i.comments[0],"Comment");return function e(t){switch(t.type){case"ArrayExpression":for(let r of t.elements)null!==r&&e(r);return;case"ObjectExpression":for(let r of t.properties)e(r);return;case"ObjectProperty":if(t.computed)throw o(t.key,"Computed key");if(t.shorthand)throw o(t.key,"Shorthand property");"Identifier"!==t.key.type&&e(t.key),e(t.value);return;case"UnaryExpression":{let{operator:e,argument:r}=t;if("+"!==e&&"-"!==e)throw o(t,`Operator '${t.operator}'`);if("NumericLiteral"===r.type||"Identifier"===r.type&&("Infinity"===r.name||"NaN"===r.name))return;throw o(r,`Operator '${e}' before '${r.type}'`)}case"Identifier":if("Infinity"!==t.name&&"NaN"!==t.name&&"undefined"!==t.name)throw o(t,`Identifier '${t.name}'`);return;case"TemplateLiteral":if(r(t.expressions))throw o(t.expressions[0],"'TemplateLiteral' with expression");for(let r of t.quasis)e(r);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw o(t,`'${t.type}'`)}}(i),i}}function o(e,t){let[r,i]=[e.loc.start,e.loc.end].map(e=>{let{line:t,column:r}=e;return{line:t,column:r+1}});return n(`${t} is not allowed in JSON.`,{start:r,end:i})}var u=a(),l={json:i({parse:u,hasPragma:()=>!0}),json5:i(u),"json-stringify":i({parse:a({allowComments:!1}),astFormat:"estree-json"})};t.exports=l}});c();var en=p(),ei=d(),es=g(),ea=W(),eo=K(),eu=ee(),el=er(),ec={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},ep=["recordAndTuple",{syntaxType:"hash"}],ed="v8intrinsic",eh=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],ef=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ec;return Object.assign(Object.assign({},t),{},{plugins:[...t.plugins,...e]})},ey=/@(?:no)?flow\b/;function eg(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(("babel"===i.parser||"__babel_estree"===i.parser)&&function(e,t){if(t.filepath&&t.filepath.endsWith(".js.flow"))return!0;let r=ei(e);r&&(e=e.slice(r.length));let n=es(e,0);return!1!==n&&(e=e.slice(0,n)),ey.test(e)}(t,i))return i.parser="babel-flow",ex(t,n,i);let s=r;"script"===i.__babelSourceType&&(s=s.map(e=>Object.assign(Object.assign({},e),{},{sourceType:"script"}))),/#[[{]/.test(t)&&(s=s.map(e=>ef([ep],e)));let a=/%[A-Z]/.test(t);t.includes("|>")?s=(a?[...eh,ed]:eh).flatMap(e=>s.map(t=>ef([e],t))):a&&(s=s.map(e=>ef([ed],e)));let{result:o,error:u}=en(...s.map(r=>()=>(function(e,t,r){let n=(0,et()[e])(t,r),i=n.errors.find(e=>!eA.has(e.reasonCode));if(i)throw i;return n})(e,t,r)));if(!o)throw eo(u);return i.originalText=t,eu(o,i)}}var ev=eg("parse",ef(["jsx","flow"])),ex=eg("parse",ef(["jsx",["flow",{all:!0,enums:!0}]])),eb=eg("parse",ef(["jsx","typescript"]),ef(["typescript"])),eE=eg("parse",ef(["jsx","flow","estree"])),eC=eg("parseExpression",ef(["jsx"])),eS=eg("parseExpression",ef(["typescript"])),eA=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),ew=ea(ev),eT=ea(eb),eP=ea(eC),ek=ea(eS);t.exports={parsers:Object.assign(Object.assign({babel:ew,"babel-flow":ea(ex),"babel-ts":eT},el),{},{__js_expression:eP,__vue_expression:eP,__vue_ts_expression:ek,__vue_event_binding:ew,__vue_ts_event_binding:eT,__babel_estree:ea(eE)})}})()})},29691:function(e,t,r){e=r.nmd(e),!function(n){"object"==typeof t&&"object"==typeof e?e.exports=n():"function"==typeof define&&define.amd?define(n):("u">typeof globalThis?globalThis:"u">typeof r.g?r.g:"u">typeof self?self:this||{}).prettier=n()}(function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e((e,t)=>{var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()}),n=e((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}}),i=e((e,t)=>{var r=n();t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})}),s=e((e,t)=>{var r=n();t.exports=!r(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),a=e((e,t)=>{var r=s(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}),o=e(e=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t}),u=e((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),l=e((e,t)=>{var r=s(),n=Function.prototype,i=n.call,a=r&&n.bind.bind(i,i);t.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}}),c=e((e,t)=>{var r=l(),n=r({}.toString),i=r("".slice);t.exports=function(e){return i(n(e),8,-1)}}),p=e((e,t)=>{var r=l(),i=n(),s=c(),a=Object,o=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==s(e)?o(e,""):a(e)}:a}),d=e((e,t)=>{t.exports=function(e){return null==e}}),h=e((e,t)=>{var r=d(),n=TypeError;t.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}}),f=e((e,t)=>{var r=p(),n=h();t.exports=function(e){return r(n(e))}}),m=e((e,t)=>{var r="object"==typeof document&&document.all;t.exports={all:r,IS_HTMLDDA:typeof r>"u"&&void 0!==r}}),y=e((e,t)=>{var r=m(),n=r.all;t.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}}),g=e((e,t)=>{var r=y(),n=m(),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}}),D=e((e,r)=>{var n=t(),i=y();r.exports=function(e,t){var r;return arguments.length<2?i(r=n[e])?r:void 0:n[e]&&n[e][t]}}),v=e((e,t)=>{var r=l();t.exports=r({}.isPrototypeOf)}),x=e((e,t)=>{var r=D();t.exports=r("navigator","userAgent")||""}),b=e((e,r)=>{var n,i,s=t(),a=x(),o=s.process,u=s.Deno,l=o&&o.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),r.exports=i}),E=e((e,t)=>{var r=b(),i=n();t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&r&&r<41})}),C=e((e,t)=>{var r=E();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),S=e((e,t)=>{var r=D(),n=y(),i=v(),s=C(),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}}),A=e((e,t)=>{var r=String;t.exports=function(e){try{return r(e)}catch{return"Object"}}}),w=e((e,t)=>{var r=y(),n=A(),i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not a function")}}),T=e((e,t)=>{var r=w(),n=d();t.exports=function(e,t){var i=e[t];return n(i)?void 0:r(i)}}),P=e((e,t)=>{var r=a(),n=y(),i=g(),s=TypeError;t.exports=function(e,t){var a,o;if("string"===t&&n(a=e.toString)&&!i(o=r(a,e))||n(a=e.valueOf)&&!i(o=r(a,e))||"string"!==t&&n(a=e.toString)&&!i(o=r(a,e)))return o;throw s("Can't convert object to primitive value")}}),F=e((e,t)=>{t.exports=!1}),k=e((e,r)=>{var n=t(),i=Object.defineProperty;r.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}}),N=e((e,r)=>{var n=t(),i=k(),s="__core-js_shared__",a=n[s]||i(s,{});r.exports=a}),O=e((e,t)=>{var r=F(),n=N();(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),I=e((e,t)=>{var r=h(),n=Object;t.exports=function(e){return n(r(e))}}),j=e((e,t)=>{var r=l(),n=I(),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(n(e),t)}}),B=e((e,t)=>{var r=l(),n=0,i=Math.random(),s=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}}),L=e((e,r)=>{var n=t(),i=O(),s=j(),a=B(),o=E(),u=C(),l=i("wks"),c=n.Symbol,p=c&&c.for,d=u?c:c&&c.withoutSetter||a;r.exports=function(e){if(!s(l,e)||!(o||"string"==typeof l[e])){var t="Symbol."+e;o&&s(c,e)?l[e]=c[e]:u&&p?l[e]=p(t):l[e]=d(t)}return l[e]}}),_=e((e,t)=>{var r=a(),n=g(),i=S(),s=T(),o=P(),u=L(),l=TypeError,c=u("toPrimitive");t.exports=function(e,t){if(!n(e)||i(e))return e;var a,u=s(e,c);if(u){if(void 0===t&&(t="default"),!n(a=r(u,e,t))||i(a))return a;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}}),M=e((e,t)=>{var r=_(),n=S();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}}),R=e((e,r)=>{var n=t(),i=g(),s=n.document,a=i(s)&&i(s.createElement);r.exports=function(e){return a?s.createElement(e):{}}}),$=e((e,t)=>{var r=i(),s=n(),a=R();t.exports=!r&&!s(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})}),U=e(e=>{var t=i(),r=a(),n=o(),s=u(),l=f(),c=M(),p=j(),d=$(),h=Object.getOwnPropertyDescriptor;e.f=t?h:function(e,t){if(e=l(e),t=c(t),d)try{return h(e,t)}catch{}if(p(e,t))return s(!r(n.f,e,t),e[t])}}),V=e((e,t)=>{var r=i(),s=n();t.exports=r&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),z=e((e,t)=>{var r=g(),n=String,i=TypeError;t.exports=function(e){if(r(e))return e;throw i(n(e)+" is not an object")}}),H=e(e=>{var t=i(),r=$(),n=V(),s=z(),a=M(),o=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",d="writable";e.f=t?n?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=l(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:c in r?r[c]:n[c],writable:!1})}return u(e,t,r)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}),W=e((e,t)=>{var r=i(),n=H(),s=u();t.exports=r?function(e,t,r){return n.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}}),q=e((e,t)=>{var r=i(),n=j(),s=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=n(s,"name"),u=o&&(!r||r&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:o&&"something"===(function(){}).name,CONFIGURABLE:u}}),K=e((e,t)=>{var r=l(),n=y(),i=N(),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),t.exports=i.inspectSource}),J=e((e,r)=>{var n=t(),i=y(),s=n.WeakMap;r.exports=i(s)&&/native code/.test(String(s))}),G=e((e,t)=>{var r=O(),n=B(),i=r("keys");t.exports=function(e){return i[e]||(i[e]=n(e))}}),X=e((e,t)=>{t.exports={}}),Y=e((e,r)=>{var n,i,s,a,o,u=J(),l=t(),c=g(),p=W(),d=j(),h=N(),f=G(),m=X(),y="Object already initialized",D=l.TypeError,v=l.WeakMap;u||h.state?((n=h.state||(h.state=new v)).get=n.get,n.has=n.has,n.set=n.set,s=function(e,t){if(n.has(e))throw D(y);return t.facade=e,n.set(e,t),t},a=function(e){return n.get(e)||{}},o=function(e){return n.has(e)}):(m[i=f("state")]=!0,s=function(e,t){if(d(e,i))throw D(y);return t.facade=e,p(e,i,t),t},a=function(e){return d(e,i)?e[i]:{}},o=function(e){return d(e,i)}),r.exports={set:s,get:a,has:o,enforce:function(e){return o(e)?a(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw D("Incompatible receiver, "+e+" required");return r}}}}),Q=e((e,t)=>{var r=n(),s=y(),a=j(),o=i(),u=q().CONFIGURABLE,l=K(),c=Y(),p=c.enforce,d=c.get,h=Object.defineProperty,f=o&&!r(function(){return 8!==h(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=t.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=p(e);return a(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=g(function(){return s(this)&&d(this).source||l(this)},"toString")}),Z=e((e,t)=>{var r=y(),n=H(),i=Q(),s=k();t.exports=function(e,t,a,o){o||(o={});var u=o.enumerable,l=void 0!==o.name?o.name:t;if(r(a)&&i(a,l,o),o.global)u?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(u=!0):delete e[t]}catch{}u?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}}),ee=e((e,t)=>{var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}}),et=e((e,t)=>{var r=ee();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}}),er=e((e,t)=>{var r=et(),n=Math.max,i=Math.min;t.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}}),en=e((e,t)=>{var r=et(),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}}),ei=e((e,t)=>{var r=en();t.exports=function(e){return r(e.length)}}),es=e((e,t)=>{var r=f(),n=er(),i=ei(),s=function(e){return function(t,s,a){var o,u=r(t),l=i(u),c=n(a,l);if(e&&s!=s){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}}),ea=e((e,t)=>{var r=l(),n=j(),i=f(),s=es().indexOf,a=X(),o=r([].push);t.exports=function(e,t){var r,u=i(e),l=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&o(c,r);for(;t.length>l;)n(u,r=t[l++])&&(~s(c,r)||o(c,r));return c}}),eo=e((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),eu=e(e=>{var t=ea(),r=eo().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}}),el=e(e=>{e.f=Object.getOwnPropertySymbols}),ec=e((e,t)=>{var r=D(),n=l(),i=eu(),s=el(),a=z(),o=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?o(t,r(e)):t}}),ep=e((e,t)=>{var r=j(),n=ec(),i=U(),s=H();t.exports=function(e,t,a){for(var o=n(t),u=s.f,l=i.f,c=0;c<o.length;c++){var p=o[c];r(e,p)||a&&r(a,p)||u(e,p,l(t,p))}}}),ed=e((e,t)=>{var r=n(),i=y(),s=/#|\.prototype\./,a=function(e,t){var n=u[o(e)];return n==c||n!=l&&(i(t)?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a}),eh=e((e,r)=>{var n=t(),i=U().f,s=W(),a=Z(),o=k(),u=ep(),l=ed();r.exports=function(e,t){var r,c,p,d,h,f=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[f]||o(f,{}):(n[f]||{}).prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(h=i(r,c))&&h.value:r[c],!l(m?c:f+(y?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),a(r,c,d,e)}}}),ef=e((e,t)=>{var r=c();t.exports=Array.isArray||function(e){return"Array"==r(e)}}),em=e((e,t)=>{var r=TypeError;t.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}}),ey=e((e,t)=>{var r=c(),n=l();t.exports=function(e){if("Function"===r(e))return n(e)}}),eg=e((e,t)=>{var r=ey(),n=w(),i=s(),a=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}}),eD=e((e,t)=>{var r=ef(),n=ei(),i=em(),s=eg(),a=function(e,t,o,u,l,c,p,d){for(var h,f,m=l,y=0,g=!!p&&s(p,d);y<u;)y in o&&(h=g?g(o[y],y,t):o[y],c>0&&r(h)?(f=n(h),m=a(e,t,h,f,m,c-1)-1):(i(m+1),e[m]=h),m++),y++;return m};t.exports=a}),ev=e((e,t)=>{var r=L()("toStringTag"),n={};n[r]="z",t.exports="[object z]"===String(n)}),ex=e((e,t)=>{var r=ev(),n=y(),i=c(),s=L()("toStringTag"),a=Object,o="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch{}};t.exports=r?i:function(e){var t,r,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:o?i(t):"Object"==(l=i(t))&&n(t.callee)?"Arguments":l}}),eb=e((e,t)=>{var r=l(),i=n(),s=y(),a=ex(),o=D(),u=K(),c=function(){},p=[],d=o("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),m=!h.exec(c),g=function(e){if(!s(e))return!1;try{return d(c,p,e),!0}catch{return!1}},v=function(e){if(!s(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(h,u(e))}catch{return!0}};v.sham=!0,t.exports=!d||i(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0})||e})?v:g}),eE=e((e,t)=>{var r=ef(),n=eb(),i=g(),s=L()("species"),a=Array;t.exports=function(e){var t;return r(e)&&(n(t=e.constructor)&&(t===a||r(t.prototype))?t=void 0:i(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?a:t}}),eC=e((e,t)=>{var r=eE();t.exports=function(e,t){return new(r(e))(0===t?0:t)}}),eS=e(()=>{var e=eh(),t=eD(),r=w(),n=I(),i=ei(),s=eC();e({target:"Array",proto:!0},{flatMap:function(e){var a,o=n(this),u=i(o);return r(e),(a=s(o,0)).length=t(a,o,o,u,0,1,e,arguments.length>1?arguments[1]:void 0),a}})}),eA=e((e,t)=>{t.exports={}}),ew=e((e,t)=>{var r=L(),n=eA(),i=r("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||s[i]===e)}}),eT=e((e,t)=>{var r=ex(),n=T(),i=d(),s=eA(),a=L()("iterator");t.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||s[r(e)]}}),eP=e((e,t)=>{var r=a(),n=w(),i=z(),s=A(),o=eT(),u=TypeError;t.exports=function(e,t){var a=arguments.length<2?o(e):t;if(n(a))return i(r(a,e));throw u(s(e)+" is not iterable")}}),eF=e((e,t)=>{var r=a(),n=z(),i=T();t.exports=function(e,t,s){var a,o;n(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw s;return s}a=r(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw s;if(o)throw a;return n(a),s}}),ek=e((e,t)=>{var r=eg(),n=a(),i=z(),s=A(),o=ew(),u=ei(),l=v(),c=eP(),p=eT(),d=eF(),h=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;t.exports=function(e,t,a){var y,g,D,v,x,b,E,C=a&&a.that,S=!!(a&&a.AS_ENTRIES),A=!!(a&&a.IS_RECORD),w=!!(a&&a.IS_ITERATOR),T=!!(a&&a.INTERRUPTED),P=r(t,C),F=function(e){return y&&d(y,"normal",e),new f(!0,e)},k=function(e){return S?(i(e),T?P(e[0],e[1],F):P(e[0],e[1])):T?P(e,F):P(e)};if(A)y=e.iterator;else if(w)y=e;else{if(!(g=p(e)))throw h(s(e)+" is not iterable");if(o(g)){for(D=0,v=u(e);v>D;D++)if((x=k(e[D]))&&l(m,x))return x;return new f(!1)}y=c(e,g)}for(b=A?e.next:y.next;!(E=n(b,y)).done;){try{x=k(E.value)}catch(e){d(y,"throw",e)}if("object"==typeof x&&x&&l(m,x))return x}return new f(!1)}}),eN=e((e,t)=>{var r=M(),n=H(),i=u();t.exports=function(e,t,s){var a=r(t);a in e?n.f(e,a,i(0,s)):e[a]=s}}),eO=e(()=>{var e=eh(),t=ek(),r=eN();e({target:"Object",stat:!0},{fromEntries:function(e){var n={};return t(e,function(e,t){r(n,e,t)},{AS_ENTRIES:!0}),n}})}),eI=e((e,t)=>{var r=Q(),n=H();t.exports=function(e,t,i){return i.get&&r(i.get,t,{getter:!0}),i.set&&r(i.set,t,{setter:!0}),n.f(e,t,i)}}),ej=e((e,t)=>{var r=z();t.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),eB=e(()=>{var e=t(),r=i(),s=eI(),a=ej(),o=n(),u=e.RegExp,l=u.prototype;r&&o(function(){var e=!0;try{u(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==n||r!==n})&&s(l,"flags",{configurable:!0,get:a})}),eL=e(()=>{var e=eh(),r=t();e({global:!0,forced:r.globalThis!==r},{globalThis:r})}),e_=e(()=>{eL()}),eM=e(()=>{var e=eh(),t=eD(),r=I(),n=ei(),i=et(),s=eC();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,a=r(this),o=n(a),u=s(a,0);return u.length=t(u,a,a,o,0,void 0===e?1:i(e)),u}})});return e((e,t)=>{var r=["cliName","cliCategory","cliDescription"],n=["_"],i=["languageId"];function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}eS(),eO(),eB(),e_(),eM();var a,o=Object.create,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=(e,t)=>function(){return e&&(t=(0,e[c(e)[0]])(e=0)),t},f=(e,t)=>function(){return t||(0,e[c(e)[0]])((t={exports:{}}).exports,t),t.exports},m=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},y=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))d.call(e,i)||i===r||u(e,i,{get:()=>t[i],enumerable:!(n=l(t,i))||n.enumerable});return e},g=(e,t,r)=>(r=null!=e?o(p(e)):{},y(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)),D=e=>y(u({},"__esModule",{value:!0}),e),v=h({"<define:process>"(){a={env:{},argv:[]}}}),x=f({"package.json"(e,t){t.exports={version:"2.8.8"}}}),b=f({"node_modules/diff/lib/diff/base.js"(e){function t(){}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.callback;"function"==typeof r&&(n=r,r={}),this.options=r;var i=this;function s(e){return n?(setTimeout(function(){n(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,o=e.length,u=1,l=a+o,c=[{newPos:-1,components:[]}],p=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=a&&p+1>=o)return s([{value:this.join(t),count:t.length}]);function d(){for(var r=-1*u;r<=u;r+=2){var n=void 0,l=c[r-1],p=c[r+1],d=(p?p.newPos:0)-r;l&&(c[r-1]=void 0);var h=l&&l.newPos+1<a,f=p&&0<=d&&d<o;if(!h&&!f){c[r]=void 0;continue}if(!h||f&&l.newPos<p.newPos?(n=function(e){return{newPos:e.newPos,components:e.components.slice(0)}}(p),i.pushComponent(n.components,void 0,!0)):(n=l,n.newPos++,i.pushComponent(n.components,!0,void 0)),d=i.extractCommon(n,t,e,r),n.newPos+1>=a&&d+1>=o)return s(function(e,t,r,n,i){for(var s=0,a=t.length,o=0,u=0;s<a;s++){var l=t[s];if(l.removed){if(l.value=e.join(n.slice(u,u+l.count)),u+=l.count,s&&t[s-1].added){var c=t[s-1];t[s-1]=t[s],t[s]=c}}else{if(!l.added&&i){var p=r.slice(o,o+l.count);p=p.map(function(e,t){var r=n[u+t];return r.length>e.length?r:e}),l.value=e.join(p)}else l.value=e.join(r.slice(o,o+l.count));o+=l.count,l.added||(u+=l.count)}}var d=t[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[a-2].value+=d.value,t.pop()),t}(i,n.components,t,e,i.useLongestToken));c[r]=n}u++}if(n)!function e(){setTimeout(function(){if(u>l)return n();d()||e()},0)}();else for(;u<=l;){var h=d();if(h)return h}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var i=t.length,s=r.length,a=e.newPos,o=a-n,u=0;a+1<i&&o+1<s&&this.equals(t[a+1],r[o+1]);)a++,o++,u++;return u&&e.components.push({count:u}),e.newPos=a,o},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}}),E=f({"node_modules/diff/lib/diff/array.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=function(e,t,n){return r.diff(e,t,n)},e.arrayDiff=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(b()),r=new t.default;e.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}}}),C=f({"src/document/doc-builders.js"(e,t){function r(e){return{type:"concat",parts:e}}function n(e){return{type:"indent",contents:e}}function i(e,t){return{type:"align",contents:t,n:e}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}v();var a={type:"break-parent"},o={type:"line",hard:!0},u={type:"line",hard:!0,literal:!0},l=r([o,a]),c=r([u,a]),p={type:"cursor",placeholder:Symbol("cursor")};t.exports={concat:r,join:function(e,t){let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return r(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:l,literalline:c,group:s,conditionalGroup:function(e,t){return s(e[0],Object.assign(Object.assign({},t),{},{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:p,breakParent:a,ifBreak:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:"if-break",breakContents:e,flatContents:t,groupId:r.groupId}},trim:{type:"trim"},indent:n,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:i,addAlignmentToDoc:function(e,t,r){let s=e;if(t>0){for(let e=0;e<Math.floor(t/r);++e)s=n(s);s=i(t%r,s),s=i(Number.NEGATIVE_INFINITY,s)}return s},markAsRoot:function(e){return i({type:"root"},e)},dedentToRoot:function(e){return i(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return i(-1,e)},hardlineWithoutBreakParent:o,literallineWithoutBreakParent:u,label:function(e,t){return{type:"label",label:e,contents:t}}}}}),S=f({"src/common/end-of-line.js"(e,t){v();t.exports={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
30
|
-
`?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
31
|
-
`;default:return`
|
|
32
|
-
`}},countEndOfLineChars:function(e,t){let r;switch(t){case`
|
|
33
|
-
`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r
|
|
34
|
-
`:r=/\r\n/g;break;default:throw Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,`
|
|
35
|
-
`)}}}}),A=f({"src/utils/get-last.js"(e,t){v();t.exports=e=>e[e.length-1]}}),w=h({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){v()}}),T=h({"node_modules/strip-ansi/index.js"(){v(),w()}}),P=h({"node_modules/is-fullwidth-code-point/index.js"(){v()}}),F=f({"node_modules/emoji-regex/index.js"(e,t){v(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),k={};function N(e){if("string"!=typeof e||0===e.length||0===(e=function(e){if("string"!=typeof e)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")}(),"")}(e)).length)return 0;e=e.replace((0,O.default)()," ");let t=0;for(let n=0;n<e.length;n++){var r;let i=e.codePointAt(n);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&n++,t+=Number.isInteger(r=i)&&r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65131||65281<=r&&r<=65376||65504<=r&&r<=65510||110592<=r&&r<=110593||127488<=r&&r<=127569||131072<=r&&r<=262141)?2:1)}return t}m(k,{default:()=>N});var O,I=h({"node_modules/string-width/index.js"(){v(),T(),P(),O=g(F())}}),j=f({"src/utils/get-string-width.js"(e,t){v();var r=(I(),D(k)).default,n=/[^\x20-\x7F]/;t.exports=function(e){return e?n.test(e)?r(e):e.length:0}}}),B=f({"src/document/doc-utils.js"(e,t){v();var r=A(),{literalline:n,join:i}=C(),s=e=>Array.isArray(e)||e&&"concat"===e.type,a=e=>{if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw Error("Expect doc type to be `concat` or `fill`.");return e.parts},o={};function u(e,t,r,n){let i=[e];for(;i.length>0;){let e=i.pop();if(e===o){r(i.pop());continue}if(r&&i.push(e,o),!t||!1!==t(e)){if(s(e)||"fill"===e.type){let t=a(e);for(let e=t.length,r=e-1;r>=0;--r)i.push(t[r])}else if("if-break"===e.type)e.flatContents&&i.push(e.flatContents),e.breakContents&&i.push(e.breakContents);else if("group"===e.type&&e.expandedStates){if(n)for(let t=e.expandedStates.length,r=t-1;r>=0;--r)i.push(e.expandedStates[r]);else i.push(e.contents)}else e.contents&&i.push(e.contents)}}}function l(e,t){let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let i=function(e){if(Array.isArray(e))return t(e.map(n));if("concat"===e.type||"fill"===e.type){let r=e.parts.map(n);return t(Object.assign(Object.assign({},e),{},{parts:r}))}if("if-break"===e.type){let r=e.breakContents&&n(e.breakContents),i=e.flatContents&&n(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:r,flatContents:i}))}if("group"===e.type&&e.expandedStates){let r=e.expandedStates.map(n),i=r[0];return t(Object.assign(Object.assign({},e),{},{contents:i,expandedStates:r}))}if(e.contents){let r=n(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:r}))}return t(e)}(e);return r.set(e,i),i}}function c(e,t,r){let n=r,i=!1;return u(e,function(e){let r=t(e);if(void 0!==r&&(i=!0,n=r),i)return!1}),n}function p(e){if("group"===e.type&&e.break||"line"===e.type&&e.hard||"break-parent"===e.type)return!0}function d(e){if(e.length>0){let t=r(e);t.expandedStates||t.break||(t.break="propagated")}return null}function h(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}var f=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function m(e){return l(e,e=>(function(e){switch(e.type){case"fill":if(e.parts.every(e=>""===e))return"";break;case"group":if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!s(e))return e;let t=[];for(let n of a(e)){if(!n)continue;let[e,...i]=s(n)?a(n):[n];"string"==typeof e&&"string"==typeof r(t)?t[t.length-1]+=e:t.push(e),t.push(...i)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})})(e))}function y(e){let t=[],n=e.filter(Boolean);for(;n.length>0;){let e=n.shift();if(e){if(s(e)){n.unshift(...a(e));continue}if(t.length>0&&"string"==typeof r(t)&&"string"==typeof e){t[t.length-1]+=e;continue}t.push(e)}}return t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return i(t,e.split(`
|
|
36
|
-
`)).parts}function D(e){if("line"===e.type)return!0}t.exports={isConcat:s,getDocParts:a,willBreak:function(e){return c(e,p,!1)},traverseDoc:u,findInDoc:c,mapDoc:l,propagateBreaks:function(e){let t=new Set,r=[];u(e,function(e){if("break-parent"===e.type&&d(r),"group"===e.type){if(r.push(e),t.has(e))return!1;t.add(e)}},function(e){"group"===e.type&&r.pop().break&&d(r)},!0)},removeLines:function(e){return l(e,h)},stripTrailingHardline:function(e){return function e(t){if(!t)return t;if(s(t)||"fill"===t.type){let n=a(t);for(;n.length>1&&f(...n.slice(-2));)n.length-=2;if(n.length>0){let t=e(r(n));n[n.length-1]=t}return Array.isArray(t)?n:Object.assign(Object.assign({},t),{},{parts:n})}switch(t.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let r=e(t.contents);return Object.assign(Object.assign({},t),{},{contents:r})}case"if-break":{let r=e(t.breakContents),n=e(t.flatContents);return Object.assign(Object.assign({},t),{},{breakContents:r,flatContents:n})}}return t}(m(e))},normalizeParts:y,normalizeDoc:function(e){return l(e,e=>Array.isArray(e)?y(e):e.parts?Object.assign(Object.assign({},e),{},{parts:y(e.parts)}):e)},cleanDoc:m,replaceTextEndOfLine:g,replaceEndOfLine:function(e){return l(e,e=>"string"==typeof e&&e.includes(`
|
|
37
|
-
`)?g(e):e)},canBreak:function(e){return c(e,D,!1)}}}}),L=f({"src/document/doc-printer.js"(e,t){v();var r,{convertEndOfLineToChars:n}=S(),i=A(),s=j(),{fill:a,cursor:o,indent:u}=C(),{isConcat:l,getDocParts:c}=B();function p(){return{value:"",length:0,queue:[]}}function d(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,a=0,o=0;for(let e of n)switch(e.type){case"indent":c(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":c(),i+=e.n,s+=e.n.length;break;case"numberAlign":a+=1,o+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return p(),Object.assign(Object.assign({},e),{},{value:i,length:s,queue:n});function u(e){i+=" ".repeat(e),s+=r.tabWidth*e}function l(e){i+=" ".repeat(e),s+=e}function c(){r.useTabs?function(){a>0&&u(a),function(){a=0,o=0}()}():p()}function p(){o>0&&l(o),function(){a=0,o=0}()}function d(){a=0,o=0}}function h(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof i(e)&&/^[\t ]*$/.test(i(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof i(e)){let r=i(e).replace(/[\t ]*$/,"");t+=i(e).length-r.length,e[e.length-1]=r}return t}function f(e,t,n,a,o){let u=t.length,p=[e],d=[];for(;n>=0;){if(0===p.length){if(0===u)return!0;p.push(t[--u]);continue}let{mode:e,doc:f}=p.pop();if("string"==typeof f)d.push(f),n-=s(f);else if(l(f)||"fill"===f.type){let t=c(f);for(let r=t.length-1;r>=0;r--)p.push({mode:e,doc:t[r]})}else switch(f.type){case"indent":case"align":case"indent-if-break":case"label":p.push({mode:e,doc:f.contents});break;case"trim":n+=h(d);break;case"group":{if(o&&f.break)return!1;let t=f.break?1:e,r=f.expandedStates&&1===t?i(f.expandedStates):f.contents;p.push({mode:t,doc:r});break}case"if-break":{let t=(f.groupId?r[f.groupId]||2:e)===1?f.breakContents:f.flatContents;t&&p.push({mode:e,doc:t});break}case"line":if(1===e||f.hard)return!0;f.soft||(d.push(" "),n--);break;case"line-suffix":a=!0;break;case"line-suffix-boundary":if(a)return!1}}return!1}t.exports={printDocToString:function(e,t){r={};let m=t.printWidth,y=n(t.endOfLine),g=0,D=[{ind:p(),mode:1,doc:e}],v=[],x=!1,b=[];for(;D.length>0;){let{ind:e,mode:n,doc:A}=D.pop();if("string"==typeof A){let e=y!==`
|
|
38
|
-
`?A.replace(/\n/g,y):A;v.push(e),g+=s(e)}else if(l(A)){let t=c(A);for(let r=t.length-1;r>=0;r--)D.push({ind:e,mode:n,doc:t[r]})}else switch(A.type){case"cursor":v.push(o.placeholder);break;case"indent":D.push({ind:d(e,{type:"indent"},t),mode:n,doc:A.contents});break;case"align":var E,C,S;D.push({ind:(E=e,C=A.n,S=t,C===Number.NEGATIVE_INFINITY?E.root||p():C<0?d(E,{type:"dedent"},S):C?"root"===C.type?Object.assign(Object.assign({},E),{},{root:E}):d(E,{type:"string"==typeof C?"stringAlign":"numberAlign",n:C},S):E),mode:n,doc:A.contents});break;case"trim":g-=h(v);break;case"group":switch(n){case 2:if(!x){D.push({ind:e,mode:A.break?1:2,doc:A.contents});break}case 1:{x=!1;let t={ind:e,mode:2,doc:A.contents},r=m-g,n=b.length>0;if(!A.break&&f(t,D,r,n))D.push(t);else if(A.expandedStates){let t=i(A.expandedStates);if(A.break)D.push({ind:e,mode:1,doc:t});else for(let i=1;i<A.expandedStates.length+1;i++)if(i>=A.expandedStates.length){D.push({ind:e,mode:1,doc:t});break}else{let t={ind:e,mode:2,doc:A.expandedStates[i]};if(f(t,D,r,n)){D.push(t);break}}}else D.push({ind:e,mode:1,doc:A.contents})}}A.id&&(r[A.id]=i(D).mode);break;case"fill":{let t=m-g,{parts:r}=A;if(0===r.length)break;let[i,s]=r,o={ind:e,mode:2,doc:i},u={ind:e,mode:1,doc:i},l=f(o,[],t,b.length>0,!0);if(1===r.length){l?D.push(o):D.push(u);break}let c={ind:e,mode:2,doc:s},p={ind:e,mode:1,doc:s};if(2===r.length){l?D.push(c,o):D.push(p,u);break}r.splice(0,2);let d={ind:e,mode:n,doc:a(r)};f({ind:e,mode:2,doc:[i,s,r[0]]},[],t,b.length>0,!0)?D.push(d,c,o):l?D.push(d,p,o):D.push(d,p,u);break}case"if-break":case"indent-if-break":{let t=A.groupId?r[A.groupId]:n;if(1===t){let t="if-break"===A.type?A.breakContents:A.negate?A.contents:u(A.contents);t&&D.push({ind:e,mode:n,doc:t})}if(2===t){let t="if-break"===A.type?A.flatContents:A.negate?u(A.contents):A.contents;t&&D.push({ind:e,mode:n,doc:t})}break}case"line-suffix":b.push({ind:e,mode:n,doc:A.contents});break;case"line-suffix-boundary":b.length>0&&D.push({ind:e,mode:n,doc:{type:"line",hard:!0}});break;case"line":switch(n){case 2:if(A.hard)x=!0;else{A.soft||(v.push(" "),g+=1);break}case 1:if(b.length>0){D.push({ind:e,mode:n,doc:A},...b.reverse()),b.length=0;break}A.literal?e.root?(v.push(y,e.root.value),g=e.root.length):(v.push(y),g=0):(g-=h(v),v.push(y+e.value),g=e.length)}break;case"label":D.push({ind:e,mode:n,doc:A.contents})}0===D.length&&b.length>0&&(D.push(...b.reverse()),b.length=0)}let A=v.indexOf(o.placeholder);if(-1!==A){let e=v.indexOf(o.placeholder,A+1),t=v.slice(0,A).join(""),r=v.slice(A+1,e).join("");return{formatted:t+r+v.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:v.join("")}}}}}),_=f({"src/document/doc-debug.js"(e,t){v();var{isConcat:r,getDocParts:n}=B();t.exports={printDocToDebug:function(e){let t=Object.create(null),i=new Set;return function e(t,i,a){if("string"==typeof t)return JSON.stringify(t);if(r(t)){let r=n(t).map(e).filter(Boolean);return 1===r.length?r[0]:`[${r.join(", ")}]`}if("line"===t.type){let e=Array.isArray(a)&&a[i+1]&&"break-parent"===a[i+1].type;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(a)&&a[i-1]&&"line"===a[i-1].type&&a[i-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${s(t.groupId)} }`:"")+")";if("indent-if-break"===t.type){let r=[];t.negate&&r.push("negate: true"),t.groupId&&r.push(`groupId: ${s(t.groupId)}`);let n=r.length>0?`, { ${r.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${n})`}if("group"===t.type){let r=[];t.break&&"propagated"!==t.break&&r.push("shouldBreak: true"),t.id&&r.push(`id: ${s(t.id)}`);let n=r.length>0?`, { ${r.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${n})`:`group(${e(t.contents)}${n})`}if("fill"===t.type)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw Error("Unknown doc type "+t.type)}(function e(t){if(!t)return"";if(r(t)){let i=[];for(let s of n(t))if(r(s))i.push(...e(s).parts);else{let t=e(s);""!==t&&i.push(t)}return{type:"concat",parts:i}}return"if-break"===t.type?Object.assign(Object.assign({},t),{},{breakContents:e(t.breakContents),flatContents:e(t.flatContents)}):"group"===t.type?Object.assign(Object.assign({},t),{},{contents:e(t.contents),expandedStates:t.expandedStates&&t.expandedStates.map(e)}):"fill"===t.type?{type:"fill",parts:t.parts.map(e)}:t.contents?Object.assign(Object.assign({},t),{},{contents:e(t.contents)}):t}(e));function s(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=String(e).slice(7,-1)||"symbol";for(let n=0;;n++){let s=r+(n>0?` #${n}`:"");if(!i.has(s))return i.add(s),t[e]=`Symbol.for(${JSON.stringify(s)})`}}}}}}),M=f({"src/document/index.js"(e,t){v(),t.exports={builders:C(),printer:L(),utils:B(),debug:_()}}}),R={};function $(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}m(R,{default:()=>$});var U=h({"node_modules/escape-string-regexp/index.js"(){v()}}),V=f({"node_modules/semver/internal/debug.js"(e,t){v();var r="object"==typeof a&&a.env&&a.env.NODE_DEBUG&&/\bsemver\b/i.test(a.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error("SEMVER",...t)}:()=>{};t.exports=r}}),z=f({"node_modules/semver/internal/constants.js"(e,t){v();var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}}}),H=f({"node_modules/semver/internal/re.js"(e,t){v();var{MAX_SAFE_COMPONENT_LENGTH:r}=z(),n=V(),i=(e=t.exports={}).re=[],s=e.src=[],a=e.t={},o=0,u=(e,t,r)=>{let u=o++;n(e,u,t),a[e]=u,s[u]=t,i[u]=new RegExp(t,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),u("FULL",`^${s[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),u("LOOSE",`^${s[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),u("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",s[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",u("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",u("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),W=f({"node_modules/semver/internal/parse-options.js"(e,t){v();var r=["includePrerelease","loose","rtl"];t.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}}}),q=f({"node_modules/semver/internal/identifiers.js"(e,t){v();var r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1};t.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}}}),K=f({"node_modules/semver/classes/semver.js"(e,t){v();var r=V(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=z(),{re:s,t:a}=H(),o=W(),{compareIdentifiers:u}=q(),l=class{constructor(e,t){if(t=o(t),e instanceof l){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid Version: ${e}`);if(e.length>n)throw TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let u=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!u)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>i||this.major<0)throw TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;if(n===i)continue;return u(n,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;if(n===i)continue;return u(n,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};t.exports=l}}),J=f({"node_modules/semver/functions/compare.js"(e,t){v();var r=K();t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}}),G=f({"node_modules/semver/functions/lt.js"(e,t){v();var r=J();t.exports=(e,t,n)=>0>r(e,t,n)}}),X=f({"node_modules/semver/functions/gte.js"(e,t){v();var r=J();t.exports=(e,t,n)=>r(e,t,n)>=0}}),Y=f({"src/utils/arrayify.js"(e,t){v(),t.exports=(e,t)=>Object.entries(e).map(e=>{let[r,n]=e;return Object.assign({[t]:r},n)})}}),Q=f({"node_modules/outdent/lib/index.js"(e,t){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function n(){return"u">typeof WeakMap?new WeakMap:function(){return{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}()}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.outdent=void 0;var i=Object.prototype.hasOwnProperty,s=function(e,t){return i.call(e,t)};function a(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return e}var o=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,l=/^(?:[\r\n]|$)/,c=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,p=/^[ \t]*[\r\n][ \t\r\n]*$/;function d(e,t,r){var n=0,i=e[0].match(c);i&&(n=i[1].length);var s=RegExp("(\\r\\n|\\r|\\n).{0,"+n+"}","g");t&&(e=e.slice(1));var a=r.newline,l=r.trimLeadingNewline,p=r.trimTrailingNewline,d="string"==typeof a,h=e.length;return e.map(function(e,t){return e=e.replace(s,"$1"),0===t&&l&&(e=e.replace(o,"")),t===h-1&&p&&(e=e.replace(u,"")),d&&(e=e.replace(/\r\n|\n|\r/g,function(e){return a})),e})}var h=function e(t){var r=n(),i=n();return a(function n(o){for(var u,c=[],f=1;f<arguments.length;f++)c[f-1]=arguments[f];if(!(s(u=o,"raw")&&s(u,"length")))return e(a(a({},t),o||{}));var m=(c[0]===n||c[0]===h)&&p.test(o[0])&&l.test(o[1]),y=m?i:r,g=y.get(o);return(g||(g=d(o,m,t),y.set(o,g)),0===c.length)?g[0]:function(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}(g,m?c.slice(1):c)},{string:function(e){return d([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});if(e.outdent=h,e.default=h,"u">typeof t)try{t.exports=h,Object.defineProperty(h,"__esModule",{value:!0}),h.default=h,h.outdent=h}catch{}}}),Z=f({"src/main/core-options.js"(e,t){v();var{outdent:r}=Q(),n="Config",i="Editor",s="Other",a="Global",o="Special",u={cursorOffset:{since:"1.4.0",category:o,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
39
|
-
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
40
|
-
This option cannot be used with --range-start and --range-end.
|
|
41
|
-
`,cliCategory:i},endOfLine:{since:"1.15.0",category:a,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:r`
|
|
42
|
-
Maintain existing
|
|
43
|
-
(mixed values within one file are normalised by looking at what's used after the first line)
|
|
44
|
-
`}]},filepath:{since:"1.4.0",category:o,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:s,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:o,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:s},parser:{since:"0.0.10",category:a,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:a,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:n},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:a,description:r`
|
|
45
|
-
Custom directory that contains prettier plugins in node_modules subdirectory.
|
|
46
|
-
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
|
47
|
-
Multiple values are accepted.
|
|
48
|
-
`,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:n},printWidth:{since:"0.0.0",category:a,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:o,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
49
|
-
Format code ending at a given character offset (exclusive).
|
|
50
|
-
The range will extend forwards to the end of the selected statement.
|
|
51
|
-
This option cannot be used with --cursor-offset.
|
|
52
|
-
`,cliCategory:i},rangeStart:{since:"1.4.0",category:o,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:r`
|
|
53
|
-
Format code starting at a given character offset.
|
|
54
|
-
The range will extend backwards to the start of the first line containing the selected statement.
|
|
55
|
-
This option cannot be used with --cursor-offset.
|
|
56
|
-
`,cliCategory:i},requirePragma:{since:"1.7.0",category:o,type:"boolean",default:!1,description:r`
|
|
57
|
-
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
58
|
-
in order for it to be formatted.
|
|
59
|
-
`,cliCategory:s},tabWidth:{type:"int",category:a,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:a,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:a,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:n,CATEGORY_EDITOR:i,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:s,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:a,CATEGORY_SPECIAL:o,options:u}}}),ee=f({"src/main/support.js"(e,t){v();var n={compare:J(),lt:G(),gte:X()},i=Y(),a=x().version,o=Z().options;t.exports={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:u=!1,showInternal:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=a.split("-",1)[0],p=e.flatMap(e=>e.languages||[]).filter(h),d=i(Object.assign({},...e.map(e=>{let{options:t}=e;return t}),o),"name").filter(e=>h(e)&&f(e)).sort((e,t)=>e.name===t.name?0:e.name<t.name?-1:1).map(function(e){if(l)return e;let{cliName:t,cliCategory:n,cliDescription:i}=e;return s(e,r)}).map(t=>{Array.isArray((t=Object.assign({},t)).default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(h).sort((e,t)=>n.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>h(e)&&f(e)),"parser"===t.name&&function(e,t,r){let n=new Set(e.choices.map(e=>e.value));for(let i of t)if(i.parsers){for(let t of i.parsers)if(!n.has(t)){n.add(t);let s=r.find(e=>e.parsers&&e.parsers[t]),a=i.name;s&&s.name&&(a+=` (plugin: ${s.name})`),e.choices.push({value:t,description:a})}}}(t,p,e));let r=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})});return{languages:p,options:d};function h(e){return t||!("since"in e)||e.since&&n.gte(c,e.since)}function f(e){return u||!("deprecated"in e)||e.deprecated&&n.lt(c,e.deprecated)}}}}}),et=f({"src/utils/is-non-empty-array.js"(e,t){v();t.exports=function(e){return Array.isArray(e)&&e.length>0}}}),er=f({"src/utils/text/skip.js"(e,t){function r(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}}v();var n=r(/\s/),i=r(" "),s=r(",; "),a=r(/[^\n\r]/);t.exports={skipWhitespace:n,skipSpaces:i,skipToLineEnd:s,skipEverythingButNewLine:a}}}),en=f({"src/utils/text/skip-inline-comment.js"(e,t){v();t.exports=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2}return t}}}),ei=f({"src/utils/text/skip-trailing-comment.js"(e,t){v();var{skipEverythingButNewLine:r}=er();t.exports=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?r(e,t):t)}}}),es=f({"src/utils/text/skip-newline.js"(e,t){v();t.exports=function(e,t,r){let n=r&&r.backwards;if(!1===t)return!1;let i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&i===`
|
|
60
|
-
`)return t-2;if(i===`
|
|
61
|
-
`||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&e.charAt(t+1)===`
|
|
62
|
-
`)return t+2;if(i===`
|
|
63
|
-
`||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}}}),ea=f({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){v();var r=en(),n=es(),i=ei(),{skipSpaces:s}=er();t.exports=function(e,t){let a=null,o=t;for(;o!==a;)a=o,o=s(e,o),o=r(e,o),o=i(e,o),o=n(e,o);return o}}}),eo=f({"src/common/util.js"(e,t){v();var{default:r}=(U(),D(R)),n=A(),{getSupportInfo:i}=ee(),s=et(),a=j(),{skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c}=er(),p=en(),d=ei(),h=es(),f=ea();function m(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=u(e,r.backwards?t-1:t,r),i=h(e,n,r);return n!==i}function y(e,t){let r=null,n=t;for(;n!==r;)r=n,n=l(e,n),n=p(e,n),n=u(e,n);return n=d(e,n),!1!==(n=h(e,n))&&m(e,n)}function g(e,t,r){return f(e,r(t))}function x(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0;for(let i=r;i<e.length;++i)" "===e[i]?n=n+t-n%t:n++;return n}function b(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?n:r,s=i===n?r:n,a=i;return(e.includes(i.quote)||e.includes(s.quote))&&(a=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length?s:i),a}function E(e,t,r){let n='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,(e,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function C(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}t.exports={inferParserByLanguage:function(e,t){let{languages:r}=i({plugins:t.plugins}),n=r.find(t=>{let{name:r}=t;return r.toLowerCase()===e})||r.find(t=>{let{aliases:r}=t;return Array.isArray(r)&&r.includes(e)})||r.find(t=>{let{extensions:r}=t;return Array.isArray(r)&&r.includes(`.${e}`)});return n&&n.parsers[0]},getStringWidth:a,getMaxContinuousCount:function(e,t){let n=e.match(RegExp(`(${r(t)})+`,"g"));return null===n?0:n.reduce((e,r)=>Math.max(e,r.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let n=e.match(RegExp(`(${r(t)})+`,"g"));if(null===n)return 0;let i=new Map,s=0;for(let e of n){let r=e.length/t.length;i.set(r,!0),r>s&&(s=r)}for(let e=1;e<s;e++)if(!i.get(e))return e;return s+1},getPenultimate:e=>e[e.length-2],getLast:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:g,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(g(e,t,r))},skip:function(e){return(t,r,n)=>{let i=n&&n.backwards;if(!1===r)return!1;let{length:s}=t,a=r;for(;a>=0&&a<s;){let r=t.charAt(a);if(e instanceof RegExp){if(!e.test(r))return a}else if(!e.includes(r))return a;i?a--:a++}return(-1===a||a===s)&&a}},skipWhitespace:o,skipSpaces:u,skipToLineEnd:l,skipEverythingButNewLine:c,skipInlineComment:p,skipTrailingComment:d,skipNewline:h,isNextLineEmptyAfterIndex:y,isNextLineEmpty:function(e,t,r){return y(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;n=u(e,n,{backwards:!0}),n=h(e,n,{backwards:!0}),n=u(e,n,{backwards:!0});let i=h(e,n,{backwards:!0});return n!==i},hasNewline:m,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
64
|
-
`)return!0;return!1},hasSpaces:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:x,getIndentSize:function(e,t){let r=e.lastIndexOf(`
|
|
65
|
-
`);return -1===r?0:x(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:b,printString:function(e,t){let r=e.slice(1,-1),n="json"!==t.parser&&("json5"!==t.parser||"preserve"!==t.quoteProps||t.singleQuote)?t.__isInHtmlAttribute?"'":b(r,t.singleQuote?"'":'"').quote:'"';return E(r,n,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:E,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,C(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),C(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,C(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},isNonEmptyArray:s,createGroupIdMapper:function(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}}}}),eu={};function el(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function ec(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return e=el(eD(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}function ep(e){var t=ed(e),r="/"===eA(e,-1);return(e=el(eD(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function ed(e){return"/"===e.charAt(0)}function eh(){var e=Array.prototype.slice.call(arguments,0);return ep(eD(e,function(e,t){if("string"!=typeof e)throw TypeError("Arguments to path.join must be strings");return e}).join("/"))}function ef(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ec(e).substr(1),t=ec(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),a=s,o=0;o<s;o++)if(n[o]!==i[o]){a=o;break}for(var u=[],o=a;o<n.length;o++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function em(e){var t=ex(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function ey(e,t){var r=ex(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function eg(e){return ex(e)[3]}function eD(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}m(eu,{basename:()=>ey,default:()=>eC,delimiter:()=>eE,dirname:()=>em,extname:()=>eg,isAbsolute:()=>ed,join:()=>eh,normalize:()=>ep,relative:()=>ef,resolve:()=>ec,sep:()=>eb});var ev,ex,eb,eE,eC,eA,ew=h({"node-modules-polyfills:path"(){v(),ev=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ex=function(e){return ev.exec(e).slice(1)},eC={extname:eg,basename:ey,dirname:em,sep:eb="/",delimiter:eE=":",relative:ef,join:eh,isAbsolute:ed,normalize:ep,resolve:ec},eA="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}}),eT=f({"node-modules-polyfills-commonjs:path"(e,t){v();var r=(ew(),D(eu));if(r&&r.default)for(let e in t.exports=r.default,r)t.exports[e]=r[e];else r&&(t.exports=r)}}),eP=f({"src/common/errors.js"(e,t){v();var r=class extends Error{},n=class extends Error{},i=class extends Error{},s=class extends Error{};t.exports={ConfigError:r,DebugError:n,UndefinedParserError:i,ArgExpansionBailout:s}}}),eF={};function ek(e,t){function r(){this.constructor=e}e2(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function eN(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function eI(e,t,r,n){var i,s=arguments.length,a=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a}function ej(e,t){return function(r,n){t(r,n,e)}}function eL(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function eR(e,t,r,n){return new(r||(r=Promise))(function(i,s){function a(e){try{u(n.next(e))}catch(e){s(e)}}function o(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}u((n=n.apply(e,t||[])).next())})}function e$(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}function eU(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function eV(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function ez(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eH(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function eW(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(eH(arguments[t]));return e}function eq(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n}function eK(e){return this instanceof eK?(this.v=e,this):new eK(e)}function eJ(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||o(e,t)})})}function o(e,t){try{(function(e){e.value instanceof eK?Promise.resolve(e.value.v).then(u,l):c(s[0][2],e)})(i[e](t))}catch(e){c(s[0][3],e)}}function u(e){o("next",e)}function l(e){o("throw",e)}function c(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function eG(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:eK(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function eX(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=ez(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}function eY(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function eQ(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function eZ(e){return e&&e.__esModule?e:{default:e}}function e0(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function e1(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}m(eF,{__assign:()=>e3,__asyncDelegator:()=>eG,__asyncGenerator:()=>eJ,__asyncValues:()=>eX,__await:()=>eK,__awaiter:()=>eR,__classPrivateFieldGet:()=>e0,__classPrivateFieldSet:()=>e1,__createBinding:()=>eU,__decorate:()=>eI,__exportStar:()=>eV,__extends:()=>ek,__generator:()=>e$,__importDefault:()=>eZ,__importStar:()=>eQ,__makeTemplateObject:()=>eY,__metadata:()=>eL,__param:()=>ej,__read:()=>eH,__rest:()=>eN,__spread:()=>eW,__spreadArrays:()=>eq,__values:()=>ez});var e2,e3,e8=h({"node_modules/tslib/tslib.es6.js"(){v(),e2=function(e,t){return(e2=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},e3=function(){return(e3=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}}}),e4=f({"node_modules/vnopts/lib/descriptors/api.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(t=>e.apiDescriptor.value(t)).join(", ")}]`;let r=Object.keys(t);return 0===r.length?"{}":`{ ${r.map(r=>`${e.apiDescriptor.key(r)}: ${e.apiDescriptor.value(t[r])}`).join(", ")} }`},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}}}),e6=f({"node_modules/vnopts/lib/descriptors/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(e8(),D(eF)).__exportStar(e4(),e)}}),e7=f({"scripts/build/shims/chalk.cjs"(e,t){v();var r=e=>e;r.grey=r,r.red=r,r.bold=r,r.yellow=r,r.blue=r,r.default=r,t.exports=r}}),e5=f({"node_modules/vnopts/lib/handlers/deprecated/common.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=e7();e.commonDeprecatedHandler=(e,r,n)=>{let{descriptor:i}=n,s=[`${t.default.yellow("string"==typeof e?i.key(e):i.pair(e))} is deprecated`];return r&&s.push(`we now treat it as ${t.default.blue("string"==typeof r?i.key(r):i.pair(r))}`),s.join("; ")+"."}}}),e9=f({"node_modules/vnopts/lib/handlers/deprecated/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(e8(),D(eF)).__exportStar(e5(),e)}}),te=f({"node_modules/vnopts/lib/handlers/invalid/common.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=e7();e.commonInvalidHandler=(e,r,n)=>`Invalid ${t.default.red(n.descriptor.key(e))} value. Expected ${t.default.blue(n.schemas[e].expected(n))}, but received ${t.default.red(n.descriptor.value(r))}.`}}),tt=f({"node_modules/vnopts/lib/handlers/invalid/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(e8(),D(eF)).__exportStar(te(),e)}}),tr=f({"node_modules/vnopts/node_modules/leven/index.js"(e,t){v();var r=[],n=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var s=e.length,a=t.length;if(0===s)return a;if(0===a)return s;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-a);)s--,a--;if(0===s)return a;for(var o=0;o<s&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(s-=o,a-=o,0===s)return a;for(var u,l,c,p,d=0,h=0;d<s;)n[o+d]=e.charCodeAt(o+d),r[d]=++d;for(;h<a;)for(u=t.charCodeAt(o+h),c=h++,l=h,d=0;d<s;d++)p=u===n[o+d]?c:c+1,c=r[d],l=r[d]=c>l?p>l?l+1:p:p>c?c+1:p;return l}}}),tn=f({"node_modules/vnopts/lib/handlers/unknown/leven.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=e7(),r=tr();e.levenUnknownHandler=(e,n,i)=>{let{descriptor:s,logger:a,schemas:o}=i,u=[`Ignored unknown option ${t.default.yellow(s.pair({key:e,value:n}))}.`],l=Object.keys(o).sort().find(t=>3>r(e,t));l&&u.push(`Did you mean ${t.default.blue(s.key(l))}?`),a.warn(u.join(" "))}}}),ti=f({"node_modules/vnopts/lib/handlers/unknown/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),(e8(),D(eF)).__exportStar(tn(),e)}}),ts=f({"node_modules/vnopts/lib/handlers/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(e8(),D(eF));t.__exportStar(e9(),e),t.__exportStar(tt(),e),t.__exportStar(ti(),e)}}),ta=f({"node_modules/vnopts/lib/schema.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,r){let i=new e(r),s=Object.create(i);for(let e of t)e in r&&(s[e]=function(e,t,r){return"function"==typeof e?function(){for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return e(...i.slice(0,r-1),t,...i.slice(r-1))}:()=>e}(r[e],i,n.prototype[e].length));return s}e.createSchema=r;var n=class{constructor(e){this.name=e.name}static create(e){return r(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return e}};e.Schema=n}}),to=f({"node_modules/vnopts/lib/schemas/alias.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=class extends t.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}};e.AliasSchema=r}}),tu=f({"node_modules/vnopts/lib/schemas/any.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=class extends t.Schema{expected(){return"anything"}validate(){return!0}};e.AnySchema=r}}),tl=f({"node_modules/vnopts/lib/schemas/array.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(e8(),D(eF)),r=ta(),n=class extends r.Schema{constructor(e){var{valueSchema:r,name:n=r.name}=e;super(Object.assign({},t.__rest(e,["valueSchema","name"]),{name:n})),this._valueSchema=r}expected(e){return`an array of ${this._valueSchema.expected(e)}`}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map(e=>{let{value:t}=e;return{value:[t]}}))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(i))}return r}redirect(e,t){let r=[],n=[];for(let s of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(i))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function i(e){let{from:t,to:r}=e;return{from:[t],to:r}}e.ArraySchema=n}}),tc=f({"node_modules/vnopts/lib/schemas/boolean.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=class extends t.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};e.BooleanSchema=r}}),tp=f({"node_modules/vnopts/lib/utils.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});e.recordFromArray=function(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r};e.mapFromArray=function(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r};e.createAutoChecklist=function(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}};e.partition=function(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]};e.isInt=function(e){return e===Math.floor(e)};e.comparePrimitive=function(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)};e.normalizeDefaultResult=function(e){return void 0===e?{}:e};e.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)};function t(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function r(e,r){return void 0===e?[]:Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)]}e.normalizeDeprecatedResult=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},e.normalizeTransferResult=t,e.normalizeForwardResult=r;e.normalizeRedirectResult=function(e,t){let n=r("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}}}),td=f({"node_modules/vnopts/lib/schemas/choice.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=tp(),n=class extends t.Schema{constructor(e){super(e),this._choices=r.mapFromArray(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected(e){let{descriptor:t}=e,n=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(r.comparePrimitive).map(t.value),i=n.slice(0,-2),s=n.slice(-2);return i.concat(s.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}};e.ChoiceSchema=n}}),th=f({"node_modules/vnopts/lib/schemas/number.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=class extends t.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}};e.NumberSchema=r}}),tf=f({"node_modules/vnopts/lib/schemas/integer.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=tp(),r=th(),n=class extends r.NumberSchema{expected(){return"an integer"}validate(e,r){return!0===r.normalizeValidateResult(super.validate(e,r),e)&&t.isInt(e)}};e.IntegerSchema=n}}),tm=f({"node_modules/vnopts/lib/schemas/string.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=ta(),r=class extends t.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}};e.StringSchema=r}}),ty=f({"node_modules/vnopts/lib/schemas/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(e8(),D(eF));t.__exportStar(to(),e),t.__exportStar(tu(),e),t.__exportStar(tl(),e),t.__exportStar(tc(),e),t.__exportStar(td(),e),t.__exportStar(tf(),e),t.__exportStar(th(),e),t.__exportStar(tm(),e)}}),tg=f({"node_modules/vnopts/lib/defaults.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=e4(),r=e5(),n=tt(),i=tn();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=n.commonInvalidHandler,e.defaultDeprecatedHandler=r.commonDeprecatedHandler}}),tD=f({"node_modules/vnopts/lib/normalize.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=tg(),r=tp();e.normalize=(e,t,r)=>new n(t,r).normalize(e);var n=class{constructor(e,n){let{logger:i=console,descriptor:s=t.defaultDescriptor,unknown:a=t.defaultUnknownHandler,invalid:o=t.defaultInvalidHandler,deprecated:u=t.defaultDeprecatedHandler}=n||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},schemas:r.recordFromArray(e,"name"),normalizeDefaultResult:r.normalizeDefaultResult,normalizeDeprecatedResult:r.normalizeDeprecatedResult,normalizeForwardResult:r.normalizeForwardResult,normalizeRedirectResult:r.normalizeRedirectResult,normalizeValidateResult:r.normalizeValidateResult},this._unknownHandler=a,this._invalidHandler=o,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=r.createAutoChecklist()}normalize(e){let t={},n=[e],i=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};for(let e of(i(),Object.keys(this._utils.schemas))){let i=this._utils.schemas[e];if(!(e in t)){let t=r.normalizeDefaultResult(i.default(this._utils));"value"in t&&n.push({[e]:t.value})}}for(let e of(i(),Object.keys(this._utils.schemas))){let r=this._utils.schemas[e];e in t&&(t[e]=r.postprocess(t[e],this._utils))}return t}_applyNormalization(e,t){let n=[],[i,s]=r.partition(Object.keys(e),e=>e in this._utils.schemas);for(let s of i){let i=this._utils.schemas[s],a=i.preprocess(e[s],this._utils),o=r.normalizeValidateResult(i.validate(a,this._utils),a);if(!0!==o){let{value:e}=o,t=this._invalidHandler(s,e,this._utils);throw"string"==typeof t?Error(t):t}let u=e=>{let{from:t,to:r}=e;n.push("string"==typeof r?{[r]:t}:{[r.key]:r.value})},l=e=>{let{value:t,redirectTo:n}=e,o=r.normalizeDeprecatedResult(i.deprecated(t,this._utils),a,!0);if(!1!==o){if(!0===o)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,n,this._utils));else for(let{value:e}of o){let t={key:s,value:e};if(!this._hasDeprecationWarned(t)){let r="string"==typeof n?{key:n,value:e}:n;this._utils.logger.warn(this._deprecatedHandler(t,r,this._utils))}}}};r.normalizeForwardResult(i.forward(a,this._utils),a).forEach(u);let c=r.normalizeRedirectResult(i.redirect(a,this._utils),a);if(c.redirect.forEach(u),"remain"in c){let e=c.remain;t[s]=s in t?i.overlap(t[s],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of c.redirect)l({value:e,redirectTo:t})}for(let r of s){let i=e[r],s=this._unknownHandler(r,i,this._utils);if(s)for(let e of Object.keys(s)){let r={[e]:s[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}};e.Normalizer=n}}),tv=f({"node_modules/vnopts/lib/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=(e8(),D(eF));t.__exportStar(e6(),e),t.__exportStar(ts(),e),t.__exportStar(ty(),e),t.__exportStar(tD(),e),t.__exportStar(ta(),e)}}),tx=f({"src/main/options-normalizer.js"(e,t){v();var r,i=tv(),a=A(),o={key:e=>1===e.length?`-${e}`:`--${e}`,value:e=>i.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return!1===r?`--no-${t}`:!0===r?o.key(t):""===r?`${o.key(t)} without an argument`:`${o.key(t)}=${r}`}},u=e=>{let{colorsModule:t,levenshteinDistance:r}=e;return class extends i.ChoiceSchema{constructor(e){let{name:t,flags:r}=e;super({name:t,choices:r}),this._flags=[...r].sort()}preprocess(e,n){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){let i=this._flags.find(t=>3>r(t,e));if(i)return n.logger.warn(`Unknown flag ${t.yellow(n.descriptor.value(e))}, did you mean ${t.blue(n.descriptor.value(i))}?`),i}return e}expected(){return"a flag"}}};function l(e,t){let{logger:l=!1,isCLI:c=!1,passThrough:p=!1,colorsModule:d=null,levenshteinDistance:h=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=p?Array.isArray(p)?(e,t)=>p.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let a=r.schemas,{_:o}=a,u=s(a,n);return i.levenUnknownHandler(e,t,Object.assign(Object.assign({},r),{},{schemas:u}))},m=c?o:i.apiDescriptor,y=function(e,t){let{isCLI:r,colorsModule:n,levenshteinDistance:s}=t,o=[];for(let t of(r&&o.push(i.AnySchema.create({name:"_"})),e))o.push(function(e,t){let{isCLI:r,optionInfos:n,colorsModule:s,levenshteinDistance:o}=t,{name:l}=e;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return i.AnySchema.create({name:l,preprocess:e=>(!1===e||(e=Array.isArray(e)?e:[e]),e),validate:e=>!1===e||e.every(e=>"string"==typeof e),expected:()=>"false or paths to plugin search dir"});let c={name:l},p,d={};switch(e.type){case"int":p=i.IntegerSchema,r&&(c.preprocess=Number);break;case"string":case"path":p=i.StringSchema;break;case"choice":p=i.ChoiceSchema,c.choices=e.choices.map(t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":p=i.BooleanSchema;break;case"flag":p=u({colorsModule:s,levenshteinDistance:o}),c.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?c.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):c.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(d.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(d.deprecated=!0),r&&!e.array){let e=c.preprocess||(e=>e);c.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?a(t):t),n)}return e.array?i.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),d),{},{valueSchema:p.create(c)})):p.create(Object.assign(Object.assign({},c),d))}(t,{isCLI:r,optionInfos:e,colorsModule:n,levenshteinDistance:s})),t.alias&&r&&o.push(i.AliasSchema.create({name:t.alias,sourceName:t.name}));return o}(t,{isCLI:c,colorsModule:d,levenshteinDistance:h}),g=new i.Normalizer(y,{logger:l,unknown:f,descriptor:m}),D=!1!==l;D&&r&&(g._hasDeprecationWarned=r);let v=g.normalize(e);return D&&(r=g._hasDeprecationWarned),c&&!1===v["plugin-search"]&&(v["plugin-search-dir"]=!1),v}t.exports={normalizeApiOptions:function(e,t,r){return l(e,t,r)},normalizeCliOptions:function(e,t,r){return l(e,t,Object.assign({isCLI:!0},r))}}}}),tb=f({"src/language-js/loc.js"(e,t){v();var r=et();function n(e){var t,i;let s=e.range?e.range[0]:e.start,a=null!==(t=null===(i=e.declaration)||void 0===i?void 0:i.decorators)&&void 0!==t?t:e.decorators;return r(a)?Math.min(n(a[0]),s):s}function i(e){return e.range?e.range[1]:e.end}function s(e,t){let r=n(e);return Number.isInteger(r)&&r===n(t)}t.exports={locStart:n,locEnd:i,hasSameLocStart:s,hasSameLoc:function(e,t){var r,n;let a;return s(e,t)&&(r=e,n=t,Number.isInteger(a=i(r))&&a===i(n))}}}}),tE=f({"src/main/load-parser.js"(e,t){v(),t.exports=()=>{}}}),tC=f({"scripts/build/shims/babel-highlight.cjs"(e,t){v();var r=e7();t.exports={shouldHighlight:()=>!1,getChalk:()=>r}}}),tS=f({"node_modules/@babel/code-frame/lib/index.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=i,e.default=function(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";a.emitWarning?a.emitWarning(e,"DeprecationWarning"):(Error(e).name="DeprecationWarning",console.warn(Error(e)))}return i(e,{start:{column:n=Math.max(n,0),line:t}},s)};var t=tC(),r=!1,n=/\r\n|[\n\r\u2028\u2029]/;function i(e,r){var i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(s.highlightCode||s.forceColor)&&(0,t.shouldHighlight)(s),o=(0,t.getChalk)(s),u={gutter:(i=o).grey,marker:i.red.bold,message:i.red.bold},l=(e,t)=>a?e(t):t,{start:c,end:p,markerLines:d}=function(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),d=Math.min(t.length,l+a);-1===o&&(p=0),-1===l&&(d=t.length);let h=l-o,f={};if(h)for(let e=0;e<=h;e++){let r=e+o;if(u){if(0===e){let e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===h)f[r]=[0,c];else{let n=t[r-e].length;f[r]=[0,n]}}else f[r]=!0}else u===c?u?f[o]=[u,0]:f[o]=!0:f[o]=[u,c-u];return{start:p,end:d,markerLines:f}}(r,e.split(n),s),h=r.start&&"number"==typeof r.start.column,f=String(p).length,m=(a?(0,t.default)(e,s):e).split(n,p).slice(c,p).map((e,t)=>{let r=c+1+t,n=` ${` ${r}`.slice(-f)} |`,i=d[r],a=!d[r+1];if(!i)return` ${l(u.gutter,n)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(i)){let r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=[`
|
|
66
|
-
`,l(u.gutter,n.replace(/\d/g," "))," ",r,l(u.marker,"^").repeat(o)].join(""),a&&s.message&&(t+=" "+l(u.message,s.message))}return[l(u.marker,">"),l(u.gutter,n),e.length>0?` ${e}`:"",t].join("")}}).join(`
|
|
67
|
-
`);return s.message&&!h&&(m=`${" ".repeat(f+1)}${s.message}
|
|
68
|
-
${m}`),a?o.reset(m):m}}}),tA=f({"src/main/parser.js"(e,t){v();var{ConfigError:r}=eP(),n=tb(),{locStart:i,locEnd:s}=(tE(),n),a=Object.getOwnPropertyNames,o=Object.getOwnPropertyDescriptor;function u(e){let t={};for(let r of e.plugins)if(r.parsers)for(let e of a(r.parsers))Object.defineProperty(t,e,o(r.parsers,e));return t}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:s};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new r(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}t.exports={parse:function(e,t){let r=u(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map(e=>[e,{enumerable:!0,get:()=>r[e].parse}]))),i=l(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(r){let{loc:t}=r;if(t){let{codeFrameColumns:n}=tS();throw r.codeFrame=n(e,t,{highlightCode:!0}),r.message+=`
|
|
69
|
-
`+r.codeFrame,r}throw r}},resolveParser:l}}}),tw=f({"src/main/options.js"(e,t){v();var r=eT(),{UndefinedParserError:n}=eP(),{getSupportInfo:i}=ee(),s=tx(),{resolveParser:a}=tA(),o={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function u(e,t){let n=r.basename(e).toLowerCase(),s=i({plugins:t}).languages.filter(e=>null!==e.since).find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.some(e=>e.toLowerCase()===n));return s&&s.parsers[0]}t.exports={normalize:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e),l=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,c=Object.assign(Object.assign({},o),Object.fromEntries(l.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!r.parser){if(r.filepath){if(r.parser=u(r.filepath,r.plugins),!r.parser)throw new n(`No parser could be inferred for file: ${r.filepath}`)}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel"}let p=a(s.normalizeApiOptions(r,[l.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));r.astFormat=p.astFormat,r.locEnd=p.locEnd,r.locStart=p.locStart;let d=function(e){let{astFormat:t}=e;if(!t)throw Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(e=>e.printers&&e.printers[t]);if(!r)throw Error(`Couldn't find plugin for AST format "${t}"`);return r}(r);r.printer=d.printers[r.astFormat];let h=Object.fromEntries(l.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[d.name]).map(e=>[e.name,e.pluginDefaults[d.name]]));for(let[e,t]of Object.entries(Object.assign(Object.assign({},c),h)))(null===r[e]||void 0===r[e])&&(r[e]=t);return"json"===r.parser&&(r.trailingComma="none"),s.normalizeApiOptions(r,l,Object.assign({passThrough:Object.keys(o)},t))},hiddenDefaults:o,inferParser:u}}}),tT=f({"src/main/massage-ast.js"(e,t){v();t.exports=function e(t,r,n){if(Array.isArray(t))return t.map(t=>e(t,r,n)).filter(Boolean);if(!t||"object"!=typeof t)return t;let i=r.printer.massageAstNode,s;s=i&&i.ignoredProperties?i.ignoredProperties:new Set;let a={};for(let[n,i]of Object.entries(t))s.has(n)||"function"==typeof i||(a[n]=e(i,r,t));if(i){let e=i(t,a,n);if(null===e)return;if(e)return e}return a}}}),tP=f({"scripts/build/shims/assert.cjs"(e,t){v();var r=()=>{};r.ok=r,r.strictEqual=r,t.exports=r}}),tF=f({"src/main/comments.js"(e,t){v();var r=tP(),{builders:{line:n,hardline:i,breakParent:s,indent:a,lineSuffix:o,join:u,cursor:l}}=M(),{hasNewline:c,skipNewline:p,skipSpaces:d,isPreviousLineEmpty:h,addLeadingComment:f,addDanglingComment:m,addTrailingComment:y}=eo(),g=new WeakMap;function D(e,t,r){if(!e)return;let{printer:n,locStart:i,locEnd:s}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let t;for(t=r.length-1;t>=0&&!(i(r[t])<=i(e)&&s(r[t])<=s(e));--t);r.splice(t+1,0,e);return}}else if(g.has(e))return g.get(e);let a=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter(e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t}).map(e=>{let[,t]=e;return t});if(a){for(let n of(r||(r=[],g.set(e,r)),a))D(n,t,r);return r}}var x=()=>!1,b=e=>!/[\S\n\u2028\u2029]/.test(e);function E(e,t,n){let i=e.length;if(0===i)return;let{precedingNode:s,followingNode:a,enclosingNode:o}=e[0],u=n.printer.getGapRegex&&n.printer.getGapRegex(o)||/^[\s(]*$/,l=n.locStart(a),c;for(c=i;c>0;--c){let{comment:i,precedingNode:o,followingNode:p}=e[c-1];r.strictEqual(o,s),r.strictEqual(p,a);let d=t.slice(n.locEnd(i),l);if(u.test(d))l=n.locStart(i);else break}for(let[t,{comment:r}]of e.entries())t<c?y(s,r):f(a,r);for(let e of[s,a])e.comments&&e.comments.length>1&&e.comments.sort((e,t)=>n.locStart(e)-n.locStart(t));e.length=0}function C(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function S(e,t,r){let n=r.locStart(t)-1;for(let t=1;t<e.length;++t)if(n<r.locStart(e[t]))return t-1;return 0}function A(e,t,r){let a=e.getValue();if(!a)return{};let u=a.comments||[];r&&(u=u.filter(e=>!r.has(e)));let f=a===t.cursorNode;if(0===u.length){let e=f?l:"";return{leading:e,trailing:e}}let m=[],y=[];return e.each(()=>{let a=e.getValue();if(r&&r.has(a))return;let{leading:u,trailing:l}=a;u?m.push(function(e,t){let r=e.getValue(),s=[C(e,t)],{printer:a,originalText:o,locStart:u,locEnd:l}=t;if(a.isBlockComment&&a.isBlockComment(r)){let e=c(o,l(r))?c(o,u(r),{backwards:!0})?i:n:" ";s.push(e)}else s.push(i);let h=p(o,d(o,l(r)));return!1!==h&&c(o,h)&&s.push(i),s}(e,t)):l&&y.push(function(e,t){let r=e.getValue(),n=C(e,t),{printer:a,originalText:u,locStart:l}=t,p=a.isBlockComment&&a.isBlockComment(r);if(c(u,l(r),{backwards:!0}))return o([i,h(u,r,l)?i:"",n]);let d=[" ",n];return p||(d=[o(d),s]),d}(e,t))},"comments"),f&&(m.unshift(l),y.push(l)),{leading:m,trailing:y}}t.exports={attach:function(e,t,r,n){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:a,printer:{handleComments:o={}}}=n,{avoidAstMutation:u,ownLine:l=x,endOfLine:p=x,remaining:d=x}=o,h=e.map((i,s)=>Object.assign(Object.assign({},function e(t,r,n,i){let{locStart:s,locEnd:a}=n,o=s(r),u=a(r),l=D(t,n),c,p,d=0,h=l.length;for(;d<h;){let t=d+h>>1,i=l[t],f=s(i),m=a(i);if(f<=o&&u<=m)return e(i,r,n,i);if(m<=o){c=i,d=t+1;continue}if(u<=f){p=i,h=t;continue}throw Error("Comment location overlaps with node location")}if(i&&"TemplateLiteral"===i.type){let{quasis:e}=i,t=S(e,r,n);c&&S(e,c,n)!==t&&(c=null),p&&S(e,p,n)!==t&&(p=null)}return{enclosingNode:i,precedingNode:c,followingNode:p}}(t,i,n)),{},{comment:i,text:r,options:n,ast:t,isLastComment:e.length-1===s}));for(let[e,t]of h.entries()){let r,{comment:n,precedingNode:o,enclosingNode:g,followingNode:D,text:v,options:x,ast:C,isLastComment:S}=t;if("json"===x.parser||"json5"===x.parser||"__js_expression"===x.parser||"__vue_expression"===x.parser||"__vue_ts_expression"===x.parser){if(s(n)-s(C)<=0){f(C,n);continue}if(a(n)-a(C)>=0){y(C,n);continue}}if(u?r=[t]:(n.enclosingNode=g,n.precedingNode=o,n.followingNode=D,r=[n,v,x,C,S]),function(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=a(i);if(s)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:i}=r[t];if(i!==s||!b(e.slice(o(n),u)))break;u=a(n)}return c(e,u,{backwards:!0})}(v,x,h,e))n.placement="ownLine",l(...r)||(D?f(D,n):o?y(o,n):m(g||C,n));else if(function(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=o(i);if(s)for(let t=n+1;t<r.length;t++){let{comment:n,followingNode:i}=r[t];if(i!==s||!b(e.slice(u,a(n))))break;u=o(n)}return c(e,u)}(v,x,h,e))n.placement="endOfLine",p(...r)||(o?y(o,n):D?f(D,n):m(g||C,n));else if(n.placement="remaining",!d(...r)){if(o&&D){let e=i.length;e>0&&i[e-1].followingNode!==D&&E(i,v,x),i.push(t)}else o?y(o,n):D?f(D,n):m(g||C,n)}}if(E(i,r,n),!u)for(let t of e)delete t.precedingNode,delete t.enclosingNode,delete t.followingNode},printComments:function(e,t,r,n){let{leading:i,trailing:s}=A(e,r,n);return i||s?[i,t,s]:t},printCommentsSeparately:A,printDanglingComments:function(e,t,r,n){let s=[],o=e.getValue();return o&&o.comments&&(e.each(()=>{let r=e.getValue();!r.leading&&!r.trailing&&(!n||n(r))&&s.push(C(e,t))},"comments"),0!==s.length)?r?u(i,s):a([i,u(i,s)]):""},getSortedChildNodes:D,ensureAllCommentsPrinted:function(e){if(e)for(let t of e){if(!t.printed)throw Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}}}}),tk=f({"src/common/ast-path.js"(e,t){v();var r=A();function n(e,t){let r=i(e.stack,t);return -1===r?null:e.stack[r]}function i(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return -1}var s=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return r(this.stack)}getNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n(this,e)}getParentNode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n(this,e+1)}call(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);let u=e(this);return t.length=n,u}callParent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=i(this.stack,t+1),n=this.stack.splice(r+1),s=e(this);return this.stack.push(...n),s}each(e){let{stack:t}=this,{length:n}=t,i=r(t);for(var s=arguments.length,a=Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];for(let e of a)i=i[e],t.push(e,i);for(let r=0;r<i.length;++r)t.push(r,i[r]),e(this,r,i),t.length-=2;t.length=n}map(e){let t=[];for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return this.each((r,n,i)=>{t[n]=e(r,n,i)},...n),t}try(e){let{stack:t}=this,r=[...t];try{return e()}finally{t.length=0,t.push(...r)}}match(){let e=this.stack.length-1,t=null,r=this.stack[e--];for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];for(let n of i){if(void 0===r)return!1;let i=null;if("number"==typeof t&&(i=t,t=this.stack[e--],r=this.stack[e--]),n&&!n(r,t,i))return!1;t=this.stack[e--],r=this.stack[e--]}return!0}findAncestor(e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(;n;){let i=null;if("number"==typeof r&&(i=r,r=this.stack[t--],n=this.stack[t--]),null!==r&&e(n,r,i))return n;r=this.stack[t--],n=this.stack[t--]}}};t.exports=s}}),tN=f({"src/main/multiparser.js"(e,t){v();var{utils:{stripTrailingHardline:r}}=M(),{normalize:n}=tw(),i=tF();t.exports={printSubtree:function(e,t,s,a){if(s.printer.embed&&"auto"===s.embeddedLanguageFormatting)return s.printer.embed(e,t,(e,t,o)=>(function(e,t,s,a){let{stripTrailingHardline:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=n(Object.assign(Object.assign(Object.assign({},s),t),{},{parentParser:s.parser,originalText:e}),{passThrough:!0}),l=tA().parse(e,u),{ast:c}=l;e=l.text;let p=c.comments;delete c.comments,i.attach(p,c,e,u),u[Symbol.for("comments")]=p||[],u[Symbol.for("tokens")]=c.tokens||[];let d=a(c,u);return i.ensureAllCommentsPrinted(p),o?"string"==typeof d?d.replace(/(?:\r?\n)*$/,""):r(d):d})(e,t,s,a,o),s)}}}}),tO=f({"src/main/ast-to-doc.js"(e,t){v();var r=tk(),{builders:{hardline:n,addAlignmentToDoc:i},utils:{propagateBreaks:s}}=M(),{printComments:a}=tF(),o=tN();function u(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{printer:c}=t;c.preprocess&&(e=c.preprocess(e,t));let p=new Map,d=new r(e),h=f();return l>0&&(h=i([n,h],l,t.tabWidth)),s(h),h;function f(e,t){return void 0===e||e===d?m(t):Array.isArray(e)?d.call(()=>m(t),...e):d.call(()=>m(t),e)}function m(e){let r=d.getValue(),n=r&&"object"==typeof r&&void 0===e;if(n&&p.has(r))return p.get(r);let i=function(e,t,r,n){let i=e.getValue(),{printer:s}=t,l,c;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))({doc:l,printedComments:c}=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s}=t,a=i(e),o=s(e),u=new Set;for(let e of n)i(e)>=a&&s(e)<=o&&(e.printed=!0,u.add(e));return{doc:r.slice(a,o),printedComments:u}}(i,t));else{if(i)try{l=o.printSubtree(e,r,t,u)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}l||(l=s.print(e,t,r,n))}return s.willPrintOwnComments&&s.willPrintOwnComments(e,t)||(l=a(e,l,t,c)),l}(d,t,f,e);return n&&p.set(r,i),i}}t.exports=u}}),tI=f({"src/main/range-util.js"(e,t){v();var r=tP(),n=tF(),i=e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t};function s(e){let t=e.length-1;for(;;){let r=e[t];if(r&&("Program"===r.type||"File"===r.type))t--;else break}return e.slice(0,t+1)}function a(e,t,r,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,{locStart:u,locEnd:l}=r,c=u(e),p=l(e);if(!(t>p||t<c||"rangeEnd"===o&&t===c||"rangeStart"===o&&t===p)){for(let u of n.getSortedChildNodes(e,r)){let n=a(u,t,r,i,[e,...s],o);if(n)return n}if(!i||i(e,s[0]))return{node:e,parentNodes:s}}}var o=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),u=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function l(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":var n;return n=t.type,"DeclareExportDeclaration"!==(r&&r.type)&&"TypeParameterDeclaration"!==n&&("Directive"===n||"TypeAlias"===n||"TSExportAssignment"===n||n.startsWith("Declare")||n.startsWith("TSDeclare")||n.endsWith("Statement")||n.endsWith("Declaration"));case"json":case"json5":case"json-stringify":return o.has(t.type);case"graphql":return u.has(t.kind);case"vue":return"root"!==t.tag}return!1}t.exports={calculateRange:function(e,t,n){let u,c,{rangeStart:p,rangeEnd:d,locStart:h,locEnd:f}=t;r.ok(d>p);let m=e.slice(p,d).search(/\S/),y=-1===m;if(!y)for(p+=m;d>p&&!/\S/.test(e[d-1]);--d);let g=a(n,p,t,(e,r)=>l(t,e,r),[],"rangeStart"),D=y?g:a(n,d,t,e=>l(t,e),[],"rangeEnd");if(!g||!D)return{rangeStart:0,rangeEnd:0};if(i(t)){var v,x;let e,t;let r=(v=g,x=D,e=[v.node,...v.parentNodes],t=new Set([x.node,...x.parentNodes]),e.find(e=>o.has(e.type)&&t.has(e)));u=r,c=r}else({startNode:u,endNode:c}=function(e,t,r){let{locStart:n,locEnd:i}=r,a=e.node,o=t.node;if(a===o)return{startNode:a,endNode:o};let u=n(e.node);for(let e of s(t.parentNodes))if(n(e)>=u)o=e;else break;let l=i(t.node);for(let t of s(e.parentNodes)){if(i(t)<=l)a=t;else break;if(a===o)break}return{startNode:a,endNode:o}}(g,D,t));return{rangeStart:Math.min(h(u),h(c)),rangeEnd:Math.max(f(u),f(c))}},findNodeAtOffset:a}}}),tj=f({"src/main/core.js"(e,t){v();var{diffArrays:r}=E(),{printer:{printDocToString:n},debug:{printDocToDebug:i}}=M(),{getAlignmentSize:s}=eo(),{guessEndOfLine:a,convertEndOfLineToChars:o,countEndOfLineChars:u,normalizeEndOfLine:l}=S(),c=tw().normalize,p=tT(),d=tF(),h=tA(),f=tO(),m=tI(),y=Symbol("cursor");function g(e,t,r){let n=t.comments;return n&&(delete t.comments,d.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function D(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:s,text:a}=h.parse(e,t);if(t.cursorOffset>=0){let e=m.findNodeAtOffset(s,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}let u=g(a,s,t),l=n(f(s,t,i),t);if(d.ensureAllCommentsPrinted(u),i>0){let e=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(e)),l.formatted=e+o(t.endOfLine)}if(t.cursorOffset>=0){let e,n,i,s,o;if(t.cursorNode&&l.cursorNodeText?(e=t.locStart(t.cursorNode),n=a.slice(e,t.locEnd(t.cursorNode)),i=t.cursorOffset-e,s=l.cursorNodeStart,o=l.cursorNodeText):(e=0,n=a,i=t.cursorOffset,s=0,o=l.formatted),n===o)return{formatted:l.formatted,cursorOffset:s+i,comments:u};let c=[...n];c.splice(i,0,y);let p=r(c,[...o]),d=s;for(let e of p)if(e.removed){if(e.value.includes(y))break}else d+=e.count;return{formatted:l.formatted,cursorOffset:d,comments:u}}return{formatted:l.formatted,cursorOffset:-1,comments:u}}function x(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function b(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=x(e,r,-1),n=x(e,n,0),i=x(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i})}function C(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=b(e,t),o="\uFEFF"===e.charAt(0);if(o&&(e=e.slice(1),r--,n--,i--),"auto"===s&&(s=a(e)),e.includes("\r")){let t=t=>u(e.slice(0,Math.max(t,0)),`\r
|
|
70
|
-
`);r-=t(r),n-=t(n),i-=t(i),e=l(e)}return{hasBOM:o,text:e,options:b(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}))}}function A(e,t){let r=h.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function w(e,t){let r,{hasBOM:n,text:i,options:a}=C(e,c(t));return a.rangeStart>=a.rangeEnd&&""!==i||a.requirePragma&&!A(i,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd<i.length?r=function(e,t){let{ast:r,text:n}=h.parse(e,t),{rangeStart:i,rangeEnd:a}=m.calculateRange(n,t,r),l=n.slice(i,a),c=Math.min(i,n.lastIndexOf(`
|
|
71
|
-
`,i)+1),p=s(n.slice(c,i).match(/^\s*/)[0],t.tabWidth),d=D(l,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:"lf"}),p),f=d.formatted.trimEnd(),{cursorOffset:y}=t;y>a?y+=f.length-l.length:d.cursorOffset>=0&&(y=d.cursorOffset+i);let g=n.slice(0,i)+f+n.slice(a);if("lf"!==t.endOfLine){let e=o(t.endOfLine);y>=0&&e===`\r
|
|
72
|
-
`&&(y+=u(g.slice(0,y),`
|
|
73
|
-
`)),g=g.replace(/\n/g,e)}return{formatted:g,cursorOffset:y,comments:d.comments}}(i,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!A(i,a)&&(i=a.printer.insertPragma(i)),r=D(i,a)),n&&(r.formatted="\uFEFF"+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}t.exports={formatWithCursor:w,parse(e,t,r){let{text:n,options:i}=C(e,c(t)),s=h.parse(n,i);return r&&(s.ast=p(s.ast,i)),s},formatAST:(e,t)=>n(f(e,t=c(t)),t),formatDoc:(e,t)=>w(i(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=c(t);let{ast:r,text:n}=h.parse(e,t);return g(n,r,t),f(r,t)},printDocToString:(e,t)=>n(e,c(t))}}}),tB=f({"src/common/util-shared.js"(e,t){v();var{getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:x,getNextNonSpaceNonCommentCharacterIndex:b,makeString:E,addLeadingComment:C,addDanglingComment:S,addTrailingComment:A}=eo();t.exports={getMaxContinuousCount:r,getStringWidth:n,getAlignmentSize:i,getIndentSize:s,skip:a,skipWhitespace:o,skipSpaces:u,skipNewline:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:d,skipTrailingComment:h,hasNewline:f,hasNewlineInRange:m,hasSpaces:y,isNextLineEmpty:g,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:x,getNextNonSpaceNonCommentCharacterIndex:b,makeString:E,addLeadingComment:C,addDanglingComment:S,addTrailingComment:A}}}),tL=f({"src/utils/create-language.js"(e,t){v(),t.exports=function(e,t){let{languageId:r}=e;return Object.assign(Object.assign({linguistLanguageId:r},s(e,i)),t(e))}}}),t_=f({"node_modules/esutils/lib/ast.js"(e,t){v(),function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}t.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()}}),tM=f({"node_modules/esutils/lib/code.js"(e,t){v(),function(){var e,r,n,i,s,a;r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(i=Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(s=Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;t.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(o(t))},isIdentifierPartES6:function(t){return t<128?s[t]:e.NonAsciiIdentifierPart.test(o(t))}}}()}}),tR=f({"node_modules/esutils/lib/keyword.js"(e,t){v(),function(){var e=tM();function r(e,t){return(!!t||"yield"!==e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(t){var r,n,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(r=1,n=t.length;r<n;++r)if(i=t.charCodeAt(r),!e.isIdentifierPartES5(i))return!1;return!0}function o(t){var r,n,i,s,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,r=0,n=t.length;r<n;++r){if(55296<=(i=t.charCodeAt(r))&&i<=56319){if(++r>=n||!(56320<=(s=t.charCodeAt(r))&&s<=57343))return!1;i=(i-55296)*1024+(s-56320)+65536}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}t.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:s,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:a,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return a(e)&&!i(e,t)},isIdentifierES6:function(e,t){return o(e)&&!s(e,t)}}}()}}),t$=f({"node_modules/esutils/lib/utils.js"(e){v(),e.ast=t_(),e.code=tM(),e.keyword=tR()}}),tU=f({"src/language-js/utils/is-block-comment.js"(e,t){v();var r=new Set(["Block","CommentBlock","MultiLine"]);t.exports=e=>r.has(null==e?void 0:e.type)}}),tV=f({"src/language-js/utils/is-node-matches.js"(e,t){v();t.exports=function(e,t){return t.some(t=>(function(e,t){let r=t.split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(0===t)return"Identifier"===e.type&&e.name===n;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}})(e,t))}}}),tz=f({"src/language-js/utils/index.js"(e,t){v();var r=t$().keyword.isIdentifierNameES5,{getLast:n,hasNewline:i,skipWhitespace:s,isNonEmptyArray:a,isNextLineEmptyAfterIndex:o,getStringWidth:u}=eo(),{locStart:l,locEnd:c,hasSameLocStart:p}=tb(),d=tU(),h=tV(),f="(?:(?=.)\\s)",m=RegExp(`^${f}*:`),y=RegExp(`^${f}*::`);function g(e){return e=new Set(e),t=>e.has(null==t?void 0:t.type)}var D=g(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),x=g(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]),b=g(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function E(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function C(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var S=g(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),A=g(["FunctionExpression","ArrowFunctionExpression"]);function w(e){return I(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var T=g(["JSXElement","JSXFragment"]);function P(e){return"get"===e.kind||"set"===e.kind}function F(e){return P(e)||p(e,e.value)}var k=g(["BinaryExpression","LogicalExpression","NGPipeExpression"]),N=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),O=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"],I=g(["CallExpression","OptionalCallExpression"]),j=g(["MemberExpression","OptionalMemberExpression"]);function B(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function L(e){return e.quasis.some(e=>e.value.raw.includes(`
|
|
74
|
-
`))}function _(e){var t,r;return null!==(t=null===(r=e.extra)||void 0===r?void 0:r.raw)&&void 0!==t?t:e.raw}var M={"==":!0,"!=":!0,"===":!0,"!==":!0},R={"*":!0,"/":!0,"%":!0},$={">>":!0,">>>":!0,"<<":!0},U=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(e=>[e,t])));function V(e){return U.get(e)}var z=new WeakMap;function H(e){if(z.has(e))return z.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),z.set(e,t),t}var W=new WeakMap;function q(e){if(W.has(e))return W.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),W.set(e,t),t}function K(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function J(e){return e&&(e.prettierIgnore||Y(e,G.PrettierIgnore))}var G={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},X=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&G.Leading&&!r.leading||e&G.Trailing&&!r.trailing||e&G.Dangling&&(r.leading||r.trailing)||e&G.Block&&!d(r)||e&G.Line&&!D(r)||e&G.First&&0!==n||e&G.Last&&n!==i.length-1||e&G.PrettierIgnore&&!K(r)||t&&!t(r))};function Y(e,t,r){if(!a(null==e?void 0:e.comments))return!1;let n=X(t,r);return!n||e.comments.some(n)}function Q(e,t,r){if(!Array.isArray(null==e?void 0:e.comments))return[];let n=X(t,r);return n?e.comments.filter(n):e.comments}function Z(e){return I(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var ee=Symbol("ifWithoutBlockAndSameLineComment");function et(e){return"TSAsExpression"===e.type||"TSSatisfiesExpression"===e.type}t.exports={getFunctionParameters:H,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:q,iterateCallArgumentsPath:function(e,t){let r=e.getValue();"ImportExpression"===r.type?(e.call(e=>t(e,0),"source"),r.attributes&&e.call(e=>t(e,1),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){var t;return!!e.rest||(null===(t=n(H(e)))||void 0===t?void 0:t.type)==="RestElement"},getLeftSide:function(e){var t,r,n,i,s,a;return e.expressions?e.expressions[0]:null!==(t=null!==(r=null!==(n=null!==(i=null!==(s=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==s?s:e.callee)&&void 0!==i?i:e.object)&&void 0!==n?n:e.tag)&&void 0!==r?r:e.argument)&&void 0!==t?t:e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return"declaration"===e.getName()&&x(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e||"-"===e?e+t:t},hasFlowAnnotationComment:function(e){let t=null==e?void 0:e[0];return d(t)&&y.test(t.value)},hasFlowShorthandAnnotationComment:function(e){var t,r;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&d(null===(r=e.trailingComments)||void 0===r?void 0:r[0])&&m.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return T(t)?J(t):Y(t,G.Leading,t=>i(e,c(t)))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||I(e)||j(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||et(e)||"TSNonNullExpression"===e.type},hasNode:function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some(t=>e(t,r));let n=r(t);return"boolean"==typeof n?n:Object.values(t).some(t=>e(t,r))},hasIgnoreComment:function(e){return J(e.getValue())},hasNodeIgnoreComment:J,identity:function(e){return e},isBinaryish:k,isCallLikeExpression:Z,isEnabledHackPipeline:function(e){return!!e.__isUsingHackPipeline},isLineComment:D,isPrettierIgnoreComment:K,isCallExpression:I,isMemberExpression:j,isExportDeclaration:x,isFlowAnnotationComment:function(e,t){let r=l(t),n=s(e,c(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(A(r)){if((t+=1)>1)return!0}else if(I(r)){for(let e of r.arguments)if(A(e))return!0}return!1},isFunctionNotation:F,isFunctionOrArrowExpression:A,isGetterOrSetter:P,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))},isJsxNode:T,isLiteral:b,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return I(t)&&I(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=t=>e(t,r+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&u(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every(e=>!e.value.raw.includes(`
|
|
75
|
-
`))&&t.expressions.every(n):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null===e||n(e)):Z(t)?("ImportExpression"===t.type||e(t.callee,r))&&q(t).every(n):j(t)?e(t.object,r)&&e(t.property,r):"UnaryExpression"===t.type&&({"!":!0,"-":!0,"+":!0,"~":!0})[t.operator]?e(t.argument,r):"UpdateExpression"===t.type&&({"++":!0,"--":!0})[t.operator]?e(t.argument,r):"TSNonNullExpression"===t.type&&e(t.expression,r)))},isMemberish:function(e){return j(e)||"BindExpression"===e.type&&!!e.object},isNumericLiteral:E,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&E(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:S,isObjectTypePropertyAFunction:function(e){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!F(e)},isSimpleType:function(e){return!!e&&!!(("GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type)&&!e.typeParameters||N.has(e.type))},isSimpleNumber:B,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");let r=e[t];return 0!==r.length&&r.every(e=>{if(Y(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(j(e)){let t=e;for(;j(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||Y(t=t.object))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:C,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&C(e.key)&&_(e.key).slice(1,-1)===e.key.value&&(r(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||B(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&L(e)||"TaggedTemplateExpression"===e.type&&L(e.quasi))&&!i(t,l(e),{backwards:!0})},isTestCall:function e(t,r){var n,i;if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){;if(w(t)&&r&&e(r))return A(t.arguments[0]);if("Identifier"===(n=t).callee.type&&/^(?:before|after)(?:Each|All)$/.test(n.callee.name)&&1===n.arguments.length)return w(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("TemplateLiteral"===t.arguments[0].type||C(t.arguments[0]))&&h(t.callee,O)){;return(!t.arguments[2]||!!E(t.arguments[2]))&&((2===t.arguments.length?A(t.arguments[1]):("FunctionExpression"===(i=t.arguments[1]).type||"ArrowFunctionExpression"===i.type&&"BlockStatement"===i.body.type)&&H(t.arguments[1]).length<=1)||w(t.arguments[1]))}return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;let r=t.getNode();if(!r.expression||!T(r.expression))return!1;let n=t.getParentNode();return"Program"===n.type&&1===n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!p(e,e.typeAnnotation)},isNextLineEmpty:(e,t)=>{let{originalText:r}=t;return o(r,c(e))},needsHardlineAfterDanglingComment:function(e){if(!Y(e))return!1;let t=n(Q(e,G.Dangling));return t&&!d(t)},rawText:_,shouldPrintComma:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return!!$[e]||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return!(V(t)!==V(e)||"**"===e||M[e]&&M[t]||"%"===t&&R[e]||"%"===e&&R[t]||t!==e&&R[t]&&R[e]||$[e]&&$[t])},startsWithNoLookaheadToken:function e(t,r){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return e(t.left,r);case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,r);default:return r(t)}},getPrecedence:V,hasComment:Y,getComments:Q,CommentCheckFlags:G,markerForIfWithoutBlockAndSameLineComment:ee,isTSTypeExpression:et}}}),tH=f({"src/language-js/print/template-literal.js"(e,t){v();var r=A(),{getStringWidth:n,getIndentSize:i}=eo(),{builders:{join:s,hardline:a,softline:o,group:u,indent:l,align:c,lineSuffixBoundary:p,addAlignmentToDoc:d},printer:{printDocToString:h},utils:{mapDoc:f}}=M(),{isBinaryish:m,isJestEachTemplateLiteral:y,isSimpleTemplateLiteral:g,hasComment:D,isMemberExpression:x,isTSTypeExpression:b}=tz();function E(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:function(e,t,f){let v=e.getValue();if("TemplateLiteral"===v.type&&y(v,e.getParentNode())){let i=function(e,t,i){let o=e.getNode(),u=o.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some(e=>e.length>0)){t.__inJestEach=!0;let c=e.map(i,"expressions");t.__inJestEach=!1;let d=[],f=c.map(e=>"${"+h(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),m=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<o.quasis.length;e++){let t=r(m),n=f[e-1];t.cells.push(n),n.includes(`
|
|
76
|
-
`)&&(t.hasLineBreak=!0),o.quasis[e].value.raw.includes(`
|
|
77
|
-
`)&&m.push({hasLineBreak:!1,cells:[]})}let y=Array.from({length:Math.max(u.length,...m.map(e=>e.cells.length))}).fill(0),g=[{cells:u},...m.filter(e=>e.cells.length>0)];for(let{cells:e}of g.filter(e=>!e.hasLineBreak))for(let[t,r]of e.entries())y[t]=Math.max(y[t],n(r));return d.push(p,"`",l([a,s(a,g.map(e=>s(" | ",e.cells.map((t,r)=>e.hasLineBreak?t:t+" ".repeat(y[r]-n(t))))))]),a,"`"),d}}(e,f,t);if(i)return i}let E="expressions";"TSTemplateLiteralType"===v.type&&(E="types");let C=[],S=e.map(t,E),A=g(v);return A&&(S=S.map(e=>h(e,Object.assign(Object.assign({},f),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),C.push(p,"`"),e.each(e=>{let r=e.getName();if(C.push(t()),r<S.length){let{tabWidth:t}=f,n=e.getValue(),s=i(n.value.raw,t),a=S[r];if(!A){let e=v[E][r];(D(e)||x(e)||"ConditionalExpression"===e.type||"SequenceExpression"===e.type||b(e)||m(e))&&(a=[l([o,a]),o])}let h=0===s&&n.value.raw.endsWith(`
|
|
78
|
-
`)?c(Number.NEGATIVE_INFINITY,a):d(a,s,t);C.push(u(["${",h,p,"}"]))}},"quasis"),C.push("`"),C},printTemplateExpressions:function(e,t){return e.map(e=>{var r,n;let i,s;return r=e,n=t,i=r.getValue(),s=n(),D(i)&&(s=u([l([o,s]),o])),["${",s,p,"}"]},"expressions")},escapeTemplateCharacters:function(e,t){return f(e,e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):E(e):e)},uncookTemplateElementValue:E}}}),tW=f({"src/language-js/embed/markdown.js"(e,t){v();var{builders:{indent:r,softline:n,literalline:i,dedentToRoot:s}}=M(),{escapeTemplateCharacters:a}=tH();t.exports=function(e,t,o){let u=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`"),l=function(e){let t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(u),c=""!==l;c&&(u=u.replace(RegExp(`^${l}`,"gm"),""));let p=a(o(u,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",c?r([n,p]):[i,s(p)],n,"`"]}}}),tq=f({"src/language-js/embed/css.js"(e,t){v();var{isNonEmptyArray:r}=eo(),{builders:{indent:n,hardline:i,softline:s},utils:{mapDoc:a,replaceEndOfLine:o,cleanDoc:u}}=M(),{printTemplateExpressions:l}=tH();t.exports=function(e,t,c){let p=e.getValue(),d=p.quasis.map(e=>e.value.raw),h=0;return function(e,t,l){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";let c=function(e,t){if(!r(t))return e;let n=0,i=a(u(e),e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((e,r)=>r%2==0?o(e):(n++,t[e])):e);return t.length===n?i:null}(e,l);if(!c)throw Error("Couldn't insert all the expressions");return["`",n([i,c]),s,"`"]}(c(d.reduce((e,t,r)=>0===r?t:e+"@prettier-placeholder-"+h+++"-id"+t,""),{parser:"scss"},{stripTrailingHardline:!0}),p,l(e,t))}}}),tK=f({"src/language-js/embed/graphql.js"(e,t){v();var{builders:{indent:r,join:n,hardline:i}}=M(),{escapeTemplateCharacters:s,printTemplateExpressions:a}=tH();t.exports=function(e,t,o){let u=e.getValue(),l=u.quasis.length;if(1===l&&""===u.quasis[0].value.raw.trim())return"``";let c=a(e,t),p=[];for(let e=0;e<l;e++){let t=u.quasis[e],r=0===e,a=e===l-1,d=t.value.cooked,h=d.split(`
|
|
79
|
-
`),f=h.length,m=c[e],y=f>2&&""===h[0].trim()&&""===h[1].trim(),g=f>2&&""===h[f-1].trim()&&""===h[f-2].trim(),D=h.every(e=>/^\s*(?:#[^\n\r]*)?$/.test(e));if(!a&&/#[^\n\r]*$/.test(h[f-1]))return null;let v=null;(v=D?function(e){let t=[],r=!1,s=e.map(e=>e.trim());for(let[e,n]of s.entries())""!==n&&(""===s[e-1]&&r?t.push([i,n]):t.push(n),r=!0);return 0===t.length?null:n(i,t)}(h):o(d,{parser:"graphql"},{stripTrailingHardline:!0}))?(v=s(v,!1),!r&&y&&p.push(""),p.push(v),!a&&g&&p.push("")):r||a||!y||p.push(""),m&&p.push(m)}return["`",r([i,n(i,p)]),i,"`"]}}}),tJ=f({"src/language-js/embed/html.js"(e,t){v();var{builders:{indent:r,line:n,hardline:i,group:s},utils:{mapDoc:a}}=M(),{printTemplateExpressions:o,uncookTemplateElementValue:u}=tH(),l=0;t.exports=function(e,t,c,p,d){let{parser:h}=d,f=e.getValue(),m=l;l=l+1>>>0;let y=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${m}_IN_JS`,g=f.quasis.map((e,t,r)=>t===r.length-1?e.value.cooked:e.value.cooked+y(t)).join(""),D=o(e,t);if(0===D.length&&0===g.trim().length)return"``";let v=RegExp(y("(\\d+)"),"g"),x=0,b=a(c(g,{parser:h,__onHtmlRoot(e){x=e.children.length}},{stripTrailingHardline:!0}),e=>{if("string"!=typeof e)return e;let t=[],r=e.split(v);for(let e=0;e<r.length;e++){let n=r[e];if(e%2==0){n&&(n=u(n),p.__embeddedInHtml&&(n=n.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(n));continue}let i=Number(n);t.push(D[i])}return t}),E=/^\s/.test(g)?" ":"",C=/\s$/.test(g)?" ":"",S="ignore"===p.htmlWhitespaceSensitivity?i:E&&C?n:null;return s(S?["`",r([S,s(b)]),S,"`"]:["`",E,x>1?r(s(b)):s(b),C,"`"])}}}),tG=f({"src/language-js/embed.js"(e,t){v();var{hasComment:r,CommentCheckFlags:n,isObjectProperty:i}=tz(),s=tW(),a=tq(),o=tK(),u=tJ(),l=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function c(e){return"Identifier"===e.type&&"styled"===e.name}function p(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function d(e,t){return r(e,n.Block|n.Leading,e=>{let{value:r}=e;return r===` ${t} `})}t.exports=function(e,t,r,n){var h;let f=e.getValue();if("TemplateLiteral"!==f.type||function(e){let{quasis:t}=e;return t.some(e=>{let{value:{cooked:t}}=e;return null===t})}(f))return;let m=function(e){let t=e.getValue(),r=e.getParentNode(),n=e.getParentNode(1);return n&&t.quasis&&"JSXExpressionContainer"===r.type&&"JSXElement"===n.type&&"style"===n.openingElement.name.name&&n.openingElement.attributes.some(e=>"jsx"===e.name.name)||r&&"TaggedTemplateExpression"===r.type&&"Identifier"===r.tag.type&&"css"===r.tag.name||r&&"TaggedTemplateExpression"===r.type&&"MemberExpression"===r.tag.type&&"css"===r.tag.object.name&&("global"===r.tag.property.name||"resolve"===r.tag.property.name)}(h=e)||function(e){let t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;let r="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(r.type){case"MemberExpression":return c(r.object)||p(r);case"CallExpression":return c(r.callee)||"MemberExpression"===r.callee.type&&("MemberExpression"===r.callee.object.type&&(c(r.callee.object.object)||p(r.callee.object))||"CallExpression"===r.callee.object.type&&c(r.callee.object.callee));case"Identifier":return"css"===r.name;default:return!1}}(h)||function(e){let t=e.getParentNode(),r=e.getParentNode(1);return r&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===r.type&&"JSXIdentifier"===r.name.type&&"css"===r.name.name}(h)||function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>i(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...l)}(h)?"css":function(e){let t=e.getValue(),r=e.getParentNode();return d(t,"GraphQL")||r&&("TaggedTemplateExpression"===r.type&&("MemberExpression"===r.tag.type&&"graphql"===r.tag.object.name&&"experimental"===r.tag.property.name||"Identifier"===r.tag.type&&("gql"===r.tag.name||"graphql"===r.tag.name))||"CallExpression"===r.type&&"Identifier"===r.callee.type&&"graphql"===r.callee.name)}(h)?"graphql":function(e){return d(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(h)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>i(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...l)}(h)?"angular":function(e){let t=e.getValue(),r=e.getParentNode();return r&&"TaggedTemplateExpression"===r.type&&1===t.quasis.length&&"Identifier"===r.tag.type&&("md"===r.tag.name||"markdown"===r.tag.name)}(h)?"markdown":void 0;if(m){if("markdown"===m)return s(e,t,r);if("css"===m)return a(e,t,r);if("graphql"===m)return o(e,t,r);if("html"===m||"angular"===m)return u(e,t,r,n,{parser:m})}}}}),tX=f({"src/language-js/clean.js"(e,t){v();var r=tU(),n=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=e=>{for(let t of e.quasis)delete t.value};function s(e,t,n){if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&t.value&&(t.value=t.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name))for(let{type:e,expression:r}of t.children)"JSXExpressionContainer"===e&&"TemplateLiteral"===r.type&&i(r);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){let r=e.expression.arguments[0].properties;for(let[e,n]of t.expression.arguments[0].properties.entries())switch(r[e].key.name){case"styles":"ArrayExpression"===n.value.type&&i(n.value.elements[0]);break;case"template":"TemplateLiteral"===n.value.type&&i(n.value)}}if("TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&i(t.quasi),"TemplateLiteral"===e.type){var a;((null===(a=e.leadingComments)||void 0===a?void 0:a.some(e=>r(e)&&["GraphQL","HTML"].some(t=>e.value===` ${t} `)))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&i(t)}if("InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),("TSIntersectionType"===e.type||"TSUnionType"===e.type)&&1===e.types.length)return t.types[0]}s.ignoredProperties=n,t.exports=s}}),tY={};function tQ(){if(typeof rr>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])rr="BE";else if(513===r[0])rr="LE";else throw Error("unable to figure out endianess")}return rr}function tZ(){return"u">typeof globalThis.location?globalThis.location.hostname:""}function t0(){return[]}function t1(){return 0}function t2(){return Number.MAX_VALUE}function t3(){return Number.MAX_VALUE}function t8(){return[]}function t4(){return"Browser"}function t6(){return"u">typeof globalThis.navigator?globalThis.navigator.appVersion:""}function t7(){}function t5(){}function t9(){return"javascript"}function re(){return"browser"}function rt(){return"/tmp"}m(tY,{EOL:()=>ri,arch:()=>t9,cpus:()=>t8,default:()=>rs,endianness:()=>tQ,freemem:()=>t2,getNetworkInterfaces:()=>t5,hostname:()=>tZ,loadavg:()=>t0,networkInterfaces:()=>t7,platform:()=>re,release:()=>t6,tmpDir:()=>rt,tmpdir:()=>rn,totalmem:()=>t3,type:()=>t4,uptime:()=>t1});var rr,rn,ri,rs,ra=h({"node-modules-polyfills:os"(){v(),rs={EOL:ri=`
|
|
80
|
-
`,tmpdir:rn=rt,tmpDir:rt,networkInterfaces:t7,getNetworkInterfaces:t5,release:t6,type:t4,cpus:t8,totalmem:t3,freemem:t2,uptime:t1,loadavg:t0,hostname:tZ,endianness:tQ}}}),ro=f({"node-modules-polyfills-commonjs:os"(e,t){v();var r=(ra(),D(tY));if(r&&r.default)for(let e in t.exports=r.default,r)t.exports[e]=r[e];else r&&(t.exports=r)}}),ru=f({"node_modules/detect-newline/index.js"(e,t){v();var r=e=>{if("string"!=typeof e)throw TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let r=t.filter(e=>e===`\r
|
|
81
|
-
`).length,n=t.length-r;return r>n?`\r
|
|
82
|
-
`:`
|
|
83
|
-
`};t.exports=r,t.exports.graceful=e=>"string"==typeof e&&r(e)||`
|
|
84
|
-
`}}),rl=f({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=ro();return t=function(){return e},e}function r(){let e=function(e){return e&&e.__esModule?e:{default:e}}(ru());return r=function(){return e},e}v(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=function(e){let t=e.match(s);return t?t[0].trimLeft():""},e.parse=function(e){return d(e).pragmas},e.parseWithComments=d,e.print=function(e){let{comments:n="",pragmas:i={}}=e,s=(0,r().default)(n)||t().EOL,a=Object.keys(i),o=a.map(e=>h(e,i[e])).reduce((e,t)=>e.concat(t),[]).map(e=>` * ${e}${s}`).join("");if(!n){if(0===a.length)return"";if(1===a.length&&!Array.isArray(i[a[0]])){let e=i[a[0]];return`/** ${h(a[0],e)[0]} */`}}let u=n.split(s).map(e=>` * ${e}`).join(s)+s;return"/**"+s+(n?u:"")+(n&&a.length?" *"+s:"")+o+" */"},e.strip=function(e){let t=e.match(s);return t&&t[0]?e.substring(t[0].length):e};var n=/\*\/$/,i=/^\/\*\*?/,s=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,u=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,l=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,c=/(\r?\n|^) *\* ?/g,p=[];function d(e){let s=(0,r().default)(e)||t().EOL;e=e.replace(i,"").replace(n,"").replace(c,"$1");let d="";for(;d!==e;)d=e,e=e.replace(u,`${s}$1 $2${s}`);e=e.replace(o,"").trimRight();let h=Object.create(null),f=e.replace(l,"").replace(o,"").trimRight(),m;for(;m=l.exec(e);){let e=m[2].replace(a,"");"string"==typeof h[m[1]]||Array.isArray(h[m[1]])?h[m[1]]=p.concat(h[m[1]],e):h[m[1]]=e}return{comments:f,pragmas:h}}function h(e,t){return p.concat(t).map(t=>`@${e} ${t}`.trim())}}}),rc=f({"src/language-js/utils/get-shebang.js"(e,t){v();t.exports=function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
85
|
-
`);return -1===t?e:e.slice(0,t)}}}),rp=f({"src/language-js/pragma.js"(e,t){v();var{parseWithComments:r,strip:n,extract:i,print:s}=rl(),{normalizeEndOfLine:a}=S(),o=rc();function u(e){let t=o(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:s}=r(i(e));return{shebang:t,text:e,pragmas:n,comments:s}}t.exports={hasPragma:function(e){let t=Object.keys(u(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:i,comments:o}=u(e),l=n(r);return(t?`${t}
|
|
86
|
-
`:"")+a(s({pragmas:Object.assign({format:""},i),comments:o.trimStart()}))+(l.startsWith(`
|
|
87
|
-
`)?`
|
|
88
|
-
`:`
|
|
89
|
-
|
|
90
|
-
`)+l}}}}),rd=f({"src/language-js/utils/is-type-cast-comment.js"(e,t){v();var r=tU();t.exports=function(e){return r(e)&&"*"===e.value[0]&&/@(?:type|satisfies)\b/.test(e.value)}}}),rh=f({"src/language-js/comments.js"(e,t){v();var{getLast:r,hasNewline:n,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:i,getNextNonSpaceNonCommentCharacter:s,hasNewlineInRange:a,addLeadingComment:o,addTrailingComment:u,addDanglingComment:l,getNextNonSpaceNonCommentCharacterIndex:c,isNonEmptyArray:p}=eo(),{getFunctionParameters:d,isPrettierIgnoreComment:h,isJsxNode:f,hasFlowShorthandAnnotationComment:m,hasFlowAnnotationComment:y,hasIgnoreComment:g,isCallLikeExpression:D,getCallArguments:x,isCallExpression:b,isMemberExpression:E,isObjectProperty:C,isLineComment:S,getComments:A,CommentCheckFlags:w,markerForIfWithoutBlockAndSameLineComment:T}=tz(),{locStart:P,locEnd:F}=tb(),k=tU(),N=rd();function O(e,t){let r=(e.body||e.properties).find(e=>{let{type:t}=e;return"EmptyStatement"!==t});r?o(r,t):l(e,t)}function I(e,t){"BlockStatement"===e.type?O(e,t):o(e,t)}function j(e){let{comment:t,followingNode:r}=e;return!!(r&&N(t))&&(o(r,t),!0)}function B(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;if((null==n?void 0:n.type)!=="IfStatement"||!i)return!1;if(")"===s(a,t,F))return u(r,t),!0;if(r===n.consequent&&i===n.alternate){if("BlockStatement"===r.type)u(r,t);else{let e="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,i=t.loc.start.line===r.loc.start.line;e&&i?l(r,t,T):l(n,t)}return!0}return"BlockStatement"===i.type?(O(i,t),!0):"IfStatement"===i.type?(I(i.consequent,t),!0):n.consequent===i&&(o(i,t),!0)}function L(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:a}=e;return(null==n?void 0:n.type)==="WhileStatement"&&!!i&&(")"===s(a,t,F)?(u(r,t),!0):"BlockStatement"===i.type?(O(i,t),!0):n.body===i&&(o(i,t),!0))}function _(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return((null==n?void 0:n.type)==="TryStatement"||(null==n?void 0:n.type)==="CatchClause")&&!!i&&("CatchClause"===n.type&&r?(u(r,t),!0):"BlockStatement"===i.type?(O(i,t),!0):"TryStatement"===i.type?(I(i.finalizer,t),!0):"CatchClause"===i.type&&(I(i.body,t),!0))}function M(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!!E(r)&&(null==n?void 0:n.type)==="Identifier"&&(o(r,t),!0)}function R(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i,text:s}=e,u=r&&!a(s,F(r),P(t));return(!r||!u)&&((null==n?void 0:n.type)==="ConditionalExpression"||(null==n?void 0:n.type)==="TSConditionalType")&&!!i&&(o(i,t),!0)}function $(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!C(n)&&!!n.shorthand&&n.key===r&&"AssignmentPattern"===n.value.type&&(u(n.value.left,t),!0)}var U=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function V(e){let{comment:t,precedingNode:n,enclosingNode:i,followingNode:s}=e;if(U.has(null==i?void 0:i.type)){if(p(i.decorators)&&!(s&&"Decorator"===s.type))return u(r(i.decorators),t),!0;if(i.body&&s===i.body)return O(i.body,t),!0;if(s){if(i.superClass&&s===i.superClass&&n&&(n===i.id||n===i.typeParameters))return u(n,t),!0;for(let e of["implements","extends","mixins"])if(i[e]&&s===i[e][0])return n&&(n===i.id||n===i.typeParameters||n===i.superClass)?u(n,t):l(i,t,e),!0}}return!1}var z=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function H(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return!!(n&&r&&"("===s(i,t,F)&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===r.type&&n.key===r&&":"!==s(i,r,F)||(null==r?void 0:r.type)==="Decorator"&&z.has(null==n?void 0:n.type))&&(u(r,t),!0)}var W=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function q(e){let{comment:t,precedingNode:r,enclosingNode:n,text:i}=e;return"("===s(i,t,F)&&!!(r&&W.has(null==n?void 0:n.type))&&(u(r,t),!0)}function K(e){let{comment:t,enclosingNode:r,text:n}=e;if((null==r?void 0:r.type)!=="ArrowFunctionExpression")return!1;let i=c(n,t,F);return!1!==i&&"=>"===n.slice(i,i+2)&&(l(r,t),!0)}function J(e){let{comment:t,enclosingNode:r,text:n}=e;return")"===s(n,t,F)&&(r&&(eh(r)&&0===d(r).length||D(r)&&0===x(r).length)?(l(r,t),!0):((null==r?void 0:r.type)==="MethodDefinition"||(null==r?void 0:r.type)==="TSAbstractMethodDefinition")&&0===d(r.value).length&&(l(r.value,t),!0))}function G(e){let{comment:t,precedingNode:n,enclosingNode:a,followingNode:o,text:l}=e;if((null==n?void 0:n.type)==="FunctionTypeParam"&&(null==a?void 0:a.type)==="FunctionTypeAnnotation"&&(null==o?void 0:o.type)!=="FunctionTypeParam"||((null==n?void 0:n.type)==="Identifier"||(null==n?void 0:n.type)==="AssignmentPattern")&&a&&eh(a)&&")"===s(l,t,F))return u(n,t),!0;if((null==a?void 0:a.type)==="FunctionDeclaration"&&(null==o?void 0:o.type)==="BlockStatement"){let e=(()=>{let e=d(a);if(e.length>0)return i(l,F(r(e)));let t=i(l,F(a.id));return!1!==t&&i(l,t+1)})();if(P(t)>e)return O(o,t),!0}return!1}function X(e){let{comment:t,enclosingNode:r}=e;return(null==r?void 0:r.type)==="LabeledStatement"&&(o(r,t),!0)}function Y(e){let{comment:t,enclosingNode:r}=e;return((null==r?void 0:r.type)==="ContinueStatement"||(null==r?void 0:r.type)==="BreakStatement")&&!r.label&&(u(r,t),!0)}function Q(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!!b(n)&&!!r&&n.callee===r&&n.arguments.length>0&&(o(n.arguments[0],t),!0)}function Z(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return(null==n?void 0:n.type)==="UnionTypeAnnotation"||(null==n?void 0:n.type)==="TSUnionType"?(h(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!r&&(u(r,t),!0)):(((null==i?void 0:i.type)==="UnionTypeAnnotation"||(null==i?void 0:i.type)==="TSUnionType")&&h(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ee(e){let{comment:t,enclosingNode:r}=e;return!!C(r)&&(o(r,t),!0)}function et(e){let{comment:t,enclosingNode:r,followingNode:n,ast:i,isLastComment:s}=e;return i&&i.body&&0===i.body.length?(s?l(i,t):o(i,t),!0):(null==r?void 0:r.type)!=="Program"||(null==r?void 0:r.body.length)!==0||p(r.directives)?(null==n?void 0:n.type)==="Program"&&(null==n?void 0:n.body.length)===0&&(null==r?void 0:r.type)==="ModuleExpression"&&(l(n,t),!0):(s?l(r,t):o(r,t),!0)}function er(e){let{comment:t,enclosingNode:r}=e;return((null==r?void 0:r.type)==="ForInStatement"||(null==r?void 0:r.type)==="ForOfStatement")&&(o(r,t),!0)}function en(e){let{comment:t,precedingNode:r,enclosingNode:i,text:s}=e;if((null==i?void 0:i.type)==="ImportSpecifier"||(null==i?void 0:i.type)==="ExportSpecifier")return o(i,t),!0;let a=(null==r?void 0:r.type)==="ImportSpecifier"&&(null==i?void 0:i.type)==="ImportDeclaration",l=(null==r?void 0:r.type)==="ExportSpecifier"&&(null==i?void 0:i.type)==="ExportNamedDeclaration";return!!((a||l)&&n(s,F(t)))&&(u(r,t),!0)}function ei(e){let{comment:t,enclosingNode:r}=e;return(null==r?void 0:r.type)==="AssignmentPattern"&&(o(r,t),!0)}var es=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ea=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function eu(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!!(es.has(null==r?void 0:r.type)&&n&&(ea.has(n.type)||k(t)))&&(o(n,t),!0)}function el(e){let{comment:t,enclosingNode:r,followingNode:n,text:i}=e;return!n&&((null==r?void 0:r.type)==="TSMethodSignature"||(null==r?void 0:r.type)==="TSDeclareFunction"||(null==r?void 0:r.type)==="TSAbstractMethodDefinition")&&";"===s(i,t,F)&&(u(r,t),!0)}function ec(e){let{comment:t,enclosingNode:r,followingNode:n}=e;if(h(t)&&(null==r?void 0:r.type)==="TSMappedType"&&(null==n?void 0:n.type)==="TSTypeParameter"&&n.constraint)return r.prettierIgnore=!0,t.unignore=!0,!0}function ep(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:i}=e;return(null==n?void 0:n.type)==="TSMappedType"&&((null==i?void 0:i.type)==="TSTypeParameter"&&i.name?(o(i.name,t),!0):(null==r?void 0:r.type)==="TSTypeParameter"&&!!r.constraint&&(u(r.constraint,t),!0))}function ed(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!!r&&"SwitchCase"===r.type&&!r.test&&!!n&&n===r.consequent[0]&&("BlockStatement"===n.type&&S(t)?O(n,t):l(r,t),!0)}function eh(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}t.exports={handleOwnLineComment:function(e){return[ec,G,M,B,L,_,V,er,Z,et,en,ei,H,X,Y].some(t=>t(e))},handleEndOfLineComment:function(e){return[j,G,R,en,B,L,_,V,X,Q,ee,et,eu,Y,ed].some(t=>t(e))},handleRemainingComment:function(e){return[ec,B,L,$,J,H,et,K,q,ep,Y,el].some(t=>t(e))},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===d(e.value).length&&!e.value.returnType&&!p(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){var t;let r=e.getValue(),n=e.getParentNode();return(r&&(f(r)||m(r)||b(n)&&(y(A(t=r,w.Leading))||y(A(t,w.Trailing))))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===r))&&(!g(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}}}}),rf=f({"src/language-js/needs-parens.js"(e,t){v();var r=A(),n=et(),{getFunctionParameters:i,getLeftSidePathName:s,hasFlowShorthandAnnotationComment:a,hasNakedLeftSide:o,hasNode:u,isBitwiseOperator:l,startsWithNoLookaheadToken:c,shouldFlatten:p,getPrecedence:d,isCallExpression:h,isMemberExpression:f,isObjectProperty:m,isTSTypeExpression:y}=tz();function g(e,t){var D,v;let x=e.getParentNode();if(!x)return!1;let b=e.getName(),E=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){if("ObjectExpression"===e.type)return!0;return!1}(E)&&function e(t){let n=t.getValue(),i=t.getParentNode(),s=t.getName();switch(i.type){case"NGPipeExpression":if("number"==typeof s&&i.arguments[s]===n&&i.arguments.length-1===s)return t.callParent(e);break;case"ObjectProperty":if("value"===s)return r(t.getParentNode(1).properties)===i;break;case"BinaryExpression":case"LogicalExpression":if("right"===s)return t.callParent(e);break;case"ConditionalExpression":if("alternate"===s)return t.callParent(e);break;case"UnaryExpression":if(i.prefix)return t.callParent(e)}return!1}(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(E))return!1;if("flow"!==t.parser&&a(e.getValue()))return!0;if("Identifier"===E.type){if(E.extra&&E.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(E.name)||"left"===b&&("async"===E.name&&!x.await||"let"===E.name)&&"ForOfStatement"===x.type)return!0;if("let"===E.name){let t=null===(D=e.findAncestor(e=>"ForOfStatement"===e.type))||void 0===D?void 0:D.left;if(t&&c(t,e=>e===E))return!0}if("object"===b&&"let"===E.name&&"MemberExpression"===x.type&&x.computed&&!x.optional){let t=e.findAncestor(e=>"ExpressionStatement"===e.type||"ForStatement"===e.type||"ForInStatement"===e.type),r=t?"ExpressionStatement"===t.type?t.expression:"ForStatement"===t.type?t.init:t.left:void 0;if(r&&c(r,e=>e===E))return!0}return!1}if("ObjectExpression"===E.type||"FunctionExpression"===E.type||"ClassExpression"===E.type||"DoExpression"===E.type){let t=null===(v=e.findAncestor(e=>"ExpressionStatement"===e.type))||void 0===v?void 0:v.expression;if(t&&c(t,e=>e===E))return!0}switch(x.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===b&&("ArrowFunctionExpression"===E.type||"AssignmentExpression"===E.type||"AwaitExpression"===E.type||"BinaryExpression"===E.type||"ConditionalExpression"===E.type||"LogicalExpression"===E.type||"NewExpression"===E.type||"ObjectExpression"===E.type||"SequenceExpression"===E.type||"TaggedTemplateExpression"===E.type||"UnaryExpression"===E.type||"UpdateExpression"===E.type||"YieldExpression"===E.type||"TSNonNullExpression"===E.type))return!0;break;case"ExportDefaultDeclaration":return function e(t,r){let n=t.getValue(),i=t.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===i.type||!g(t,r):!(!o(n)||"ExportDefaultDeclaration"!==i.type&&g(t,r))&&t.call(t=>e(t,r),...s(t,n))}(e,t)||"SequenceExpression"===E.type;case"Decorator":if("expression"===b){if(f(E)&&E.computed)return!0;let e=!1,r=!1,n=E;for(;n;)switch(n.type){case"MemberExpression":r=!0,n=n.object;break;case"CallExpression":if(r||e)return"typescript"!==t.parser;e=!0,n=n.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ArrowFunctionExpression":if("body"===b&&"SequenceExpression"!==E.type&&c(E,e=>"ObjectExpression"===e.type))return!0}switch(E.type){case"UpdateExpression":if("UnaryExpression"===x.type)return E.prefix&&("++"===E.operator&&"+"===x.operator||"--"===E.operator&&"-"===x.operator);case"UnaryExpression":switch(x.type){case"UnaryExpression":return E.operator===x.operator&&("+"===E.operator||"-"===E.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===b;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===b;case"BinaryExpression":return"left"===b&&"**"===x.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===x.type||"in"===E.operator&&function(e){let t=0,r=e.getValue();for(;r;){let n=e.getParentNode(t++);if(n&&"ForStatement"===n.type&&n.init===r)return!0;r=n}return!1}(e))return!0;if("|>"===E.operator&&E.extra&&E.extra.parenthesized){let t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(x.type){case"TSSatisfiesExpression":case"TSAsExpression":return!y(E);case"ConditionalExpression":return y(E);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===b;case"ClassExpression":case"ClassDeclaration":return"superClass"===b;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===b;case"AssignmentExpression":case"AssignmentPattern":return"left"===b&&("TSTypeAssertion"===E.type||y(E));case"LogicalExpression":if("LogicalExpression"===E.type)return x.operator!==E.operator;case"BinaryExpression":{let{operator:e,type:t}=E;if(!e&&"TSTypeAssertion"!==t)return!0;let r=d(e),n=x.operator,i=d(n);return i>r||"right"===b&&i===r||i===r&&!p(n,e)||(i<r&&"%"===e?"+"===n||"-"===n:!!l(n))}default:return!1}case"SequenceExpression":switch(x.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==b;case"ArrowFunctionExpression":return"body"!==b;default:return!0}case"YieldExpression":if("UnaryExpression"===x.type||"AwaitExpression"===x.type||y(x)||"TSNonNullExpression"===x.type)return!0;case"AwaitExpression":switch(x.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===b;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===b;case"ConditionalExpression":return"test"===b;case"BinaryExpression":return!(!E.argument&&"|>"===x.operator);default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if("extendsType"===b&&"TSConditionalType"===x.type){if("TSConditionalType"===E.type)return!0;let{typeAnnotation:e}=E.returnType||E.typeAnnotation;if("TSTypePredicate"===e.type&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),"TSInferType"===e.type&&e.typeParameter.constraint)return!0}if("checkType"===b&&"TSConditionalType"===x.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===x.type||"TSIntersectionType"===x.type)&&x.types.length>1&&(!E.types||E.types.length>1))return!0;case"TSInferType":if("TSInferType"===E.type&&"TSRestType"===x.type)break;case"TSTypeOperator":return"TSArrayType"===x.type||"TSOptionalType"===x.type||"TSRestType"===x.type||"objectType"===b&&"TSIndexedAccessType"===x.type||"TSTypeOperator"===x.type||"TSTypeAnnotation"===x.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return"objectType"===b&&"TSIndexedAccessType"===x.type||"elementType"===b&&"TSArrayType"===x.type;case"TypeofTypeAnnotation":return"objectType"===b&&("IndexedAccessType"===x.type||"OptionalIndexedAccessType"===x.type)||"elementType"===b&&"ArrayTypeAnnotation"===x.type;case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===x.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===x.type||"NullableTypeAnnotation"===x.type||"IntersectionTypeAnnotation"===x.type||"UnionTypeAnnotation"===x.type||"objectType"===b&&("IndexedAccessType"===x.type||"OptionalIndexedAccessType"===x.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===x.type||"objectType"===b&&("IndexedAccessType"===x.type||"OptionalIndexedAccessType"===x.type);case"FunctionTypeAnnotation":{let t="NullableTypeAnnotation"===x.type?e.getParentNode(1):x;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===b&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===x.type&&null===x.name&&i(E).some(e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type)}case"OptionalIndexedAccessType":return"objectType"===b&&"IndexedAccessType"===x.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof E.value&&"ExpressionStatement"===x.type&&!x.directive){let t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===b&&"MemberExpression"===x.type&&"number"==typeof E.value;case"AssignmentExpression":{let t=e.getParentNode(1);return"body"===b&&"ArrowFunctionExpression"===x.type||("key"!==b||"ClassProperty"!==x.type&&"PropertyDefinition"!==x.type||!x.computed)&&("init"!==b&&"update"!==b||"ForStatement"!==x.type)&&("ExpressionStatement"===x.type?"ObjectPattern"===E.left.type:!("key"===b&&"TSPropertySignature"===x.type||"AssignmentExpression"===x.type||"SequenceExpression"===x.type&&t&&"ForStatement"===t.type&&(t.init===x||t.update===x)||"value"===b&&"Property"===x.type&&t&&"ObjectPattern"===t.type&&t.properties.includes(x)||"NGChainedExpression"===x.type))}case"ConditionalExpression":switch(x.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===b;case"ConditionalExpression":return"test"===b;case"MemberExpression":case"OptionalMemberExpression":return"object"===b;default:return!1}case"FunctionExpression":switch(x.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===b;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(x.type){case"BinaryExpression":return"|>"!==x.operator||E.extra&&E.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===b;case"MemberExpression":case"OptionalMemberExpression":return"object"===b;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===b;default:return!1}case"ClassExpression":if(n(E.decorators))return!0;if("NewExpression"===x.type)return"callee"===b;break;case"OptionalMemberExpression":case"OptionalCallExpression":{let t=e.getParentNode(1);if("object"===b&&"MemberExpression"===x.type||"callee"===b&&("CallExpression"===x.type||"NewExpression"===x.type)||"TSNonNullExpression"===x.type&&"MemberExpression"===t.type&&t.object===x)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===b&&("BindExpression"===x.type||"NewExpression"===x.type)){let e=E;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}break;case"BindExpression":return"callee"===b&&("BindExpression"===x.type||"NewExpression"===x.type)||"object"===b&&f(x);case"NGPipeExpression":return!("NGRoot"===x.type||"NGMicrosyntaxExpression"===x.type||"ObjectProperty"===x.type&&!(E.extra&&E.extra.parenthesized)||"ArrayExpression"===x.type||h(x)&&x.arguments[b]===E||"right"===b&&"NGPipeExpression"===x.type||"property"===b&&"MemberExpression"===x.type||"AssignmentExpression"===x.type);case"JSXFragment":case"JSXElement":return"callee"===b||"left"===b&&"BinaryExpression"===x.type&&"<"===x.operator||"ArrayExpression"!==x.type&&"ArrowFunctionExpression"!==x.type&&"AssignmentExpression"!==x.type&&"AssignmentPattern"!==x.type&&"BinaryExpression"!==x.type&&"NewExpression"!==x.type&&"ConditionalExpression"!==x.type&&"ExpressionStatement"!==x.type&&"JsExpressionRoot"!==x.type&&"JSXAttribute"!==x.type&&"JSXElement"!==x.type&&"JSXExpressionContainer"!==x.type&&"JSXFragment"!==x.type&&"LogicalExpression"!==x.type&&!h(x)&&!m(x)&&"ReturnStatement"!==x.type&&"ThrowStatement"!==x.type&&"TypeCastExpression"!==x.type&&"VariableDeclarator"!==x.type&&"YieldExpression"!==x.type;case"TypeAnnotation":return"returnType"===b&&"ArrowFunctionExpression"===x.type&&function(e){return u(e,e=>"ObjectTypeAnnotation"===e.type&&u(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(E)}return!1}t.exports=g}}),rm=f({"src/language-js/print-preprocess.js"(e,t){v();t.exports=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}}}),ry=f({"src/language-js/print/html-binding.js"(e,t){v();var{builders:{join:r,line:n,group:i,softline:s,indent:a}}=M();t.exports={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,o){let u=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(u,t),"File"===u.type){if(t.__isVueForBindingLeft)return e.call(e=>{let t=r([",",n],e.map(o,"params")),{params:u}=e.getValue();return 1===u.length?t:["(",a([s,i(t)]),s,")"]},"program","body",0);if(t.__isVueBindings)return e.call(e=>r([",",n],e.map(o,"params")),"program","body",0)}}}}}),rg=f({"src/language-js/print/binaryish.js"(e,t){v();var{printComments:r}=tF(),{getLast:n}=eo(),{builders:{join:i,line:s,softline:a,group:o,indent:u,align:l,indentIfBreak:c},utils:{cleanDoc:p,getDocParts:d,isConcat:h}}=M(),{hasLeadingOwnLineComment:f,isBinaryish:m,isJsxNode:y,shouldFlatten:g,hasComment:D,CommentCheckFlags:x,isCallExpression:b,isMemberExpression:E,isObjectProperty:C,isEnabledHackPipeline:S}=tz(),A=0;function w(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||y(e.right))}t.exports={printBinaryishExpression:function(e,t,v){let T=e.getValue(),P=e.getParentNode(),F=e.getParentNode(1),k=T!==P.body&&("IfStatement"===P.type||"WhileStatement"===P.type||"SwitchStatement"===P.type||"DoWhileStatement"===P.type),N=S(t)&&"|>"===T.operator,O=function e(t,n,a,c,y){let v=t.getValue();if(!m(v))return[o(n())];let b=[];g(v.operator,v.left.operator)?b=t.call(t=>e(t,n,a,!0,y),"left"):b.push(o(n("left")));let E=w(v),C=("|>"===v.operator||"NGPipeExpression"===v.type||"|"===v.operator&&"__vue_expression"===a.parser)&&!f(a.originalText,v.right),A="NGPipeExpression"===v.type?"|":v.operator,T="NGPipeExpression"===v.type&&v.arguments.length>0?o(u([s,": ",i([s,": "],t.map(n,"arguments").map(e=>l(2,o(e))))])):"",P;if(E)P=[A," ",n("right"),T];else{let r=S(a)&&"|>"===A?t.call(t=>e(t,n,a,!0,y),"right"):n("right");P=[C?s:"",A,C?" ":s,r,T]}let F=t.getParentNode(),k=D(v.left,x.Trailing|x.Line),N=k||!(y&&"LogicalExpression"===v.type)&&F.type!==v.type&&v.left.type!==v.type&&v.right.type!==v.type;if(b.push(C?"":" ",N?o(P,{shouldBreak:k}):P),c&&D(v)){let e=p(r(t,b,a));return h(e)||"fill"===e.type?d(e):[e]}return b}(e,v,t,!1,k);if(k)return O;if(N)return o(O);if(b(P)&&P.callee===T||"UnaryExpression"===P.type||E(P)&&!P.computed)return o([u([a,...O]),a]);let I="ReturnStatement"===P.type||"ThrowStatement"===P.type||"JSXExpressionContainer"===P.type&&"JSXAttribute"===F.type||"|"!==T.operator&&"JsExpressionRoot"===P.type||"NGPipeExpression"!==T.type&&("NGRoot"===P.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===P.type&&"NGMicrosyntax"===F.type&&1===F.body.length)||T===P.body&&"ArrowFunctionExpression"===P.type||T!==P.body&&"ForStatement"===P.type||"ConditionalExpression"===P.type&&"ReturnStatement"!==F.type&&"ThrowStatement"!==F.type&&!b(F)||"TemplateLiteral"===P.type,j="AssignmentExpression"===P.type||"VariableDeclarator"===P.type||"ClassProperty"===P.type||"PropertyDefinition"===P.type||"TSAbstractPropertyDefinition"===P.type||"ClassPrivateProperty"===P.type||C(P),B=m(T.left)&&g(T.operator,T.left.operator);if(I||w(T)&&!B||!w(T)&&j)return o(O);if(0===O.length)return"";let L=y(T.right),_=O.findIndex(e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type),M=O.slice(0,-1===_?1:_+1),R=O.slice(M.length,L?-1:void 0),$=Symbol("logicalChain-"+ ++A),U=o([...M,u(R)],{id:$});return L?o([U,c(n(O),{groupId:$})]):U},shouldInlineLogicalExpression:w}}}),rD=f({"src/language-js/print/angular.js"(e,t){v();var{builders:{join:r,line:n,group:i}}=M(),{hasNode:s,hasComment:a,getComments:o}=tz(),{printBinaryishExpression:u}=rg();function l(e,t,r){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===r.body[0].type&&null===r.body[0].value}t.exports={printAngular:function(e,t,c){let p=e.getValue();if(p.type.startsWith("NG"))switch(p.type){case"NGRoot":return[c("node"),a(p.node)?" //"+o(p.node)[0].value.trimEnd():""];case"NGPipeExpression":return u(e,t,c);case"NGChainedExpression":return i(r([";",n],e.map(e=>(function(e){return s(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})})(e)?c():["(",c(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[p.prefix,": ",p.value.trim()];case"NGMicrosyntax":return e.map((e,t)=>[0===t?"":l(e.getValue(),t,p)?" ":[";",n],c()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(p.name)?p.name:JSON.stringify(p.name);case"NGMicrosyntaxExpression":return[c("expression"),null===p.alias?"":[" as ",c("alias")]];case"NGMicrosyntaxKeyedExpression":{let t=e.getName(),r=e.getParentNode(),n=l(p,t,r)||(1===t&&("then"===p.key.name||"else"===p.key.name)||2===t&&"else"===p.key.name&&"NGMicrosyntaxKeyedExpression"===r.body[t-1].type&&"then"===r.body[t-1].key.name)&&"NGMicrosyntaxExpression"===r.body[0].type;return[c("key"),n?" ":": ",c("expression")]}case"NGMicrosyntaxLet":return["let ",c("key"),null===p.value?"":[" = ",c("value")]];case"NGMicrosyntaxAs":return[c("key")," as ",c("alias")];default:throw Error(`Unknown Angular node type: ${JSON.stringify(p.type)}.`)}}}}}),rv=f({"src/language-js/print/jsx.js"(e,t){v();var{printComments:r,printDanglingComments:n,printCommentsSeparately:i}=tF(),{builders:{line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,fill:p,ifBreak:d,lineSuffixBoundary:h,join:f},utils:{willBreak:m}}=M(),{getLast:y,getPreferredQuote:g}=eo(),{isJsxNode:D,rawText:x,isCallExpression:b,isStringLiteral:E,isBinaryish:C,hasComment:S,CommentCheckFlags:A,hasNodeIgnoreComment:w}=tz(),T=rf(),{willPrintOwnComments:P}=rh(),F=e=>""===e||e===s||e===a||e===o;function k(e,t,r,n){return e?"":("JSXElement"!==r.type||r.closingElement)&&(!n||"JSXElement"!==n.type||n.closingElement)?o:1===t.length?o:a}function N(e,t,r,n){return e?a:1===t.length&&("JSXElement"!==r.type||r.closingElement)&&(!n||"JSXElement"!==n.type||n.closingElement)?o:a}function O(e,t,n){let i=e.getValue();return["{",e.call(e=>{let i=["...",n()];return S(e.getValue())&&P(e)?[l([o,r(e,i,t)]),o]:i},"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}var I=`
|
|
91
|
-
\r `,j=RegExp("(["+I+"]+)"),B=RegExp("[^"+I+"]"),L=e=>e.replace(RegExp("(?:^"+j.source+"|"+j.source+"$)"),"");function _(e){return"JSXText"===e.type&&(B.test(x(e))||!/\n/.test(x(e)))}t.exports={hasJsxIgnoreComment:function(e){let t=e.getValue(),r=e.getParentNode();if(!r||!t||!D(t)||!D(r))return!1;let n=r.children.indexOf(t),i=null;for(let e=n;e>0;e--){let t=r.children[e-1];if(!("JSXText"===t.type&&!_(t))){i=t;break}}return i&&"JSXExpressionContainer"===i.type&&"JSXEmptyExpression"===i.expression.type&&w(i.expression)},printJsx:function(e,t,v){var w,P,I,B,M,R,$,U,V,z,H,W;let q=e.getValue();if(q.type.startsWith("JSX"))switch(q.type){case"JSXAttribute":return function(e,t,r){let n=e.getValue(),s=[];if(s.push(r("name")),n.value){let a;if(E(n.value)){let r=x(n.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:s,quote:o,regex:u}=g(r,t.jsxSingleQuote?"'":'"');r=r.replace(u,s);let{leading:l,trailing:c}=e.call(()=>i(e,t),"value");a=[l,o,r,o,c]}else a=r("value");s.push("=",a)}return s}(e,t,v);case"JSXIdentifier":return String(q.name);case"JSXNamespacedName":return f(":",[v("namespace"),v("name")]);case"JSXMemberExpression":return f(".",[v("object"),v("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return O(e,t,v);case"JSXExpressionContainer":;let K,J;return w=e,P=0,I=v,K=w.getValue(),(J=(e,t)=>"JSXEmptyExpression"===e.type||!S(e)&&("ArrayExpression"===e.type||"ObjectExpression"===e.type||"ArrowFunctionExpression"===e.type||"AwaitExpression"===e.type&&(J(e.argument,e)||"JSXElement"===e.argument.type)||b(e)||"FunctionExpression"===e.type||"TemplateLiteral"===e.type||"TaggedTemplateExpression"===e.type||"DoExpression"===e.type||D(t)&&("ConditionalExpression"===e.type||C(e))))(K.expression,w.getParentNode(0))?u(["{",I("expression"),h,"}"]):u(["{",l([o,I("expression")]),o,h,"}"]);case"JSXFragment":case"JSXElement":;let G;return G=r(B=e,function(e,t,r){let n=e.getValue();if("JSXElement"===n.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;let t=e.children[0];return"JSXText"===t.type&&!_(t)}(n))return[r("openingElement"),r("closingElement")];let i=r("JSXElement"===n.type?"openingElement":"openingFragment"),h=r("JSXElement"===n.type?"closingElement":"closingFragment");if(1===n.children.length&&"JSXExpressionContainer"===n.children[0].type&&("TemplateLiteral"===n.children[0].expression.type||"TaggedTemplateExpression"===n.children[0].expression.type))return[i,...e.map(r,"children"),h];n.children=n.children.map(e=>(function(e){return"JSXExpressionContainer"===e.type&&E(e.expression)&&" "===e.expression.value&&!S(e.expression)})(e)?{type:"JSXText",value:" ",raw:" "}:e);let f=n.children.some(D),g=n.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,v="JSXElement"===n.type&&n.openingElement.attributes.length>1,b=m(i)||f||v||g,C="mdx"===e.getParentNode().rootMarker,A=t.singleQuote?"{' '}":'{" "}',w=C?" ":d([A,o]," "),T=function(e,t,r,n,i){let o=[];return e.each((e,t,u)=>{let l=e.getValue();if("JSXText"===l.type){let e=x(l);if(_(l)){let r,a=e.split(j);if(""===a[0]){if(o.push(""),a.shift(),/\n/.test(a[0])){let e=u[t+1];o.push(N(i,a[1],l,e))}else o.push(n);a.shift()}if(""===y(a)&&(a.pop(),r=a.pop()),0===a.length)return;for(let[e,t]of a.entries())e%2==1?o.push(s):o.push(t);if(void 0!==r){if(/\n/.test(r)){let e=u[t+1];o.push(N(i,y(o),l,e))}else o.push(n)}else{let e=u[t+1];o.push(k(i,y(o),l,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",a):o.push("",n)}else{let e=r();o.push(e);let n=u[t+1];if(n&&_(n)){let e=L(x(n)).split(j)[0];o.push(k(i,e,l,n))}else o.push(a)}},"children"),o}(e,t,r,w,n.openingElement&&n.openingElement.name&&"fbt"===n.openingElement.name.name),P=n.children.some(e=>_(e));for(let e=T.length-2;e>=0;e--){let t=""===T[e]&&""===T[e+1],r=T[e]===a&&""===T[e+1]&&T[e+2]===a,n=(T[e]===o||T[e]===a)&&""===T[e+1]&&T[e+2]===w,i=T[e]===w&&""===T[e+1]&&(T[e+2]===o||T[e+2]===a),s=T[e]===w&&""===T[e+1]&&T[e+2]===w,u=T[e]===o&&""===T[e+1]&&T[e+2]===a||T[e]===a&&""===T[e+1]&&T[e+2]===o;r&&P||t||n||s||u?T.splice(e,2):i&&T.splice(e+1,2)}for(;T.length>0&&F(y(T));)T.pop();for(;T.length>1&&F(T[0])&&F(T[1]);)T.shift(),T.shift();let O=[];for(let[e,t]of T.entries()){if(t===w){if(1===e&&""===T[e-1]){if(2===T.length){O.push(A);continue}O.push([A,a]);continue}if(e===T.length-1){O.push(A);continue}else if(""===T[e-1]&&T[e-2]===a){O.push(A);continue}}O.push(t),m(t)&&(b=!0)}let I=P?p(O):u(O,{shouldBreak:!0});if(C)return I;let B=u([i,l([a,I]),a,h]);return b?B:c([u([i,...T,h]),B])}(B,M=t,v),M),function(e,t,r){let n=e.getParentNode();if(!n||({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0})[n.type])return t;let i=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,b,e=>"JSXExpressionContainer"===e.type),s=T(e,r);return u([s?"":d("("),l([o,t]),o,s?"":d(")")],{shouldBreak:i})}(B,G,M);case"JSXOpeningElement":return function(e,t,r){let n=e.getValue(),i=n.name&&S(n.name)||n.typeParameters&&S(n.typeParameters);if(n.selfClosing&&0===n.attributes.length&&!i)return["<",r("name"),r("typeParameters")," />"];if(n.attributes&&1===n.attributes.length&&n.attributes[0].value&&E(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
92
|
-
`)&&!i&&!S(n.attributes[0]))return u(["<",r("name"),r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let c=n.attributes&&n.attributes.some(e=>e.value&&E(e.value)&&e.value.value.includes(`
|
|
93
|
-
`)),p=t.singleAttributePerLine&&n.attributes.length>1?a:s;return u(["<",r("name"),r("typeParameters"),l(e.map(()=>[p,r()],"attributes")),...function(e,t,r){return e.selfClosing?[s,"/>"]:function(e,t,r){let n=e.attributes.length>0&&S(y(e.attributes),A.Trailing);return 0===e.attributes.length&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}(e,t,r)?[">"]:[o,">"]}(n,t,i)],{shouldBreak:c})}(e,t,v);case"JSXClosingElement":;let X,Y,Q;return R=e,$=0,U=v,X=R.getValue(),(Y=[]).push("</"),Q=U("name"),S(X.name,A.Leading|A.Line)?Y.push(l([a,Q]),a):S(X.name,A.Leading|A.Block)?Y.push(" ",Q):Y.push(Q),Y.push(">"),Y;case"JSXOpeningFragment":case"JSXClosingFragment":;let Z,ee,et,er;return V=e,z=t,ee=S(Z=V.getValue()),et=S(Z,A.Line),[(er="JSXOpeningFragment"===Z.type)?"<":"</",l([et?a:ee&&!er?" ":"",n(V,z,!0)]),et?a:"",">"];case"JSXEmptyExpression":;let en;return H=e,W=t,en=S(H.getValue(),A.Line),[n(H,W,!en),en?a:""];case"JSXText":throw Error("JSXText should be handled by JSXElement");default:throw Error(`Unknown JSX node type: ${JSON.stringify(q.type)}.`)}}}}}),rx=f({"src/language-js/print/misc.js"(e,t){v();var{isNonEmptyArray:r}=eo(),{builders:{indent:n,join:i,line:s}}=M(),{isFlowAnnotationComment:a}=tz();function o(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let i=e.getParentNode(),s="DeclareFunction"===i.type&&i.id===n;return a(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[s?"":": ",r("typeAnnotation")]}t.exports={printOptionalToken:function(e){let t=e.getValue();return t.optional&&("Identifier"!==t.type||t!==e.getParentNode().key)?"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?":""},printDefiniteToken:function(e){return e.getValue().definite||e.match(void 0,(e,t)=>"id"===t&&"VariableDeclarator"===e.type&&e.definite)?"!":""},printFunctionTypeParameters:function(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""},printBindExpressionCallee:function(e,t,r){return["::",r("callee")]},printTypeScriptModifiers:function(e,t,n){return r(e.getValue().modifiers)?[i(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:o,printRestSpread:function(e,t,r){return["...",r("argument"),o(e,t,r)]},adjustClause:function(e,t,r){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||r?[" ",t]:n([s,t])},printDirective:function(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}}}}),rb=f({"src/language-js/print/array.js"(e,t){v();var{printDanglingComments:r}=tF(),{builders:{line:n,softline:i,hardline:s,group:a,indent:o,ifBreak:u,fill:l}}=M(),{getLast:c,hasNewline:p}=eo(),{shouldPrintComma:d,hasComment:h,CommentCheckFlags:f,isNextLineEmpty:m,isNumericLiteral:y,isSignedNumericLiteral:g}=tz(),{locStart:D}=tb(),{printOptionalToken:x,printTypeAnnotation:b}=rx();function E(e,t){return e.elements.length>1&&e.elements.every(e=>e&&(y(e)||g(e)&&!h(e.argument))&&!h(e,f.Trailing|f.Line,e=>!p(t.originalText,D(e),{backwards:!0})))}function C(e,t,r,s){let o=[],u=[];return e.each(e=>{o.push(u,a(s())),u=[",",n],e.getValue()&&m(e.getValue(),t)&&u.push(i)},r),o}t.exports={printArray:function(e,t,p){let y=e.getValue(),g=[],D="TupleExpression"===y.type?"#[":"[";if(0===y.elements.length)h(y,f.Dangling)?g.push(a([D,r(e,t),i,"]"])):g.push(D,"]");else{let v=c(y.elements),x=!(v&&"RestElement"===v.type),b=Symbol("array"),S=!t.__inJestEach&&y.elements.length>1&&y.elements.every((e,t,r)=>{let n=e&&e.type;if("ArrayExpression"!==n&&"ObjectExpression"!==n)return!1;let i=r[t+1];if(i&&n!==i.type)return!1;let s="ArrayExpression"===n?"elements":"properties";return e[s]&&e[s].length>1}),A=E(y,t),w=x?null===v?",":d(t)?A?u(",","",{groupId:b}):u(","):"":"";g.push(a([D,o([i,A?function(e,t,r,i){let a=[];return e.each((e,o,u)=>{let l=o===u.length-1;a.push([r(),l?i:","]),l||a.push(m(e.getValue(),t)?[s,s]:h(u[o+1],f.Leading|f.Line)?s:n)},"elements"),l(a)}(e,t,p,w):[C(e,t,"elements",p),w],r(e,t,!0)]),i,"]"],{shouldBreak:S,id:b}))}return g.push(x(e),b(e,t,p)),g},printArrayItems:C,isConciselyPrintedArray:E}}}),rE=f({"src/language-js/print/call-arguments.js"(e,t){v();var{printDanglingComments:r}=tF(),{getLast:n,getPenultimate:i}=eo(),{getFunctionParameters:s,hasComment:a,CommentCheckFlags:o,isFunctionCompositionArgs:u,isJsxNode:l,isLongCurriedCallExpression:c,shouldPrintComma:p,getCallArguments:d,iterateCallArgumentsPath:h,isNextLineEmpty:f,isCallExpression:m,isStringLiteral:y,isObjectProperty:g,isTSTypeExpression:D}=tz(),{builders:{line:x,hardline:b,softline:E,group:C,indent:S,conditionalGroup:A,ifBreak:w,breakParent:T},utils:{willBreak:P}}=M(),{ArgExpansionBailout:F}=eP(),{isConciselyPrintedArray:k}=rb();function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||a(e))||"ArrayExpression"===e.type&&(e.elements.length>0||a(e))||"TSTypeAssertion"===e.type&&N(e.expression)||D(e)&&N(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||function(e){return"BlockStatement"===e.type&&(e.body.some(e=>"EmptyStatement"!==e.type)||a(e,o.Dangling))}(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&N(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(m(e.body)||"ConditionalExpression"===e.body.type)||l(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}t.exports=function(e,t,l){let m=e.getValue(),D="ImportExpression"===m.type,v=d(m);if(0===v.length)return["(",r(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===s(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some(e=>a(e))}(v))return["(",l(["arguments",0]),", ",l(["arguments",1]),")"];let O=!1,I=!1,j=v.length-1,B=[];h(e,(e,r)=>{let n=e.getNode(),i=[l()];r===j||(f(n,t)?(0===r&&(I=!0),O=!0,i.push(",",b,b)):i.push(",",x)),B.push(i)});let L=!(D||m.callee&&"Import"===m.callee.type)&&p(t,"all")?",":"";function _(){return C(["(",S([x,...B]),L,x,")"],{shouldBreak:!0})}if(O||"Decorator"!==e.getParentNode().type&&u(v))return _();let M=function(e){if(2!==e.length)return!1;let[t,r]=e;return!!("ModuleExpression"===t.type&&function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&g(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&y(e.properties[0].value)&&"module"===e.properties[0].value.value}(r))||!a(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!N(r)}(v),R=function(e,t){let r=n(e),s=i(e);return!a(r,o.Leading)&&!a(r,o.Trailing)&&N(r)&&(!s||s.type!==r.type)&&(2!==e.length||"ArrowFunctionExpression"!==s.type||"ArrayExpression"!==r.type)&&!(e.length>1&&"ArrayExpression"===r.type&&k(r,t))}(v,t);if(M||R){if(M?B.slice(1).some(P):B.slice(0,-1).some(P))return _();let t=[];try{e.try(()=>{h(e,(e,r)=>{M&&0===r&&(t=[[l([],{expandFirstArg:!0}),B.length>1?",":"",I?b:x,I?b:""],...B.slice(1)]),R&&r===j&&(t=[...B.slice(0,-1),l([],{expandLastArg:!0})])})})}catch(e){if(e instanceof F)return _();throw e}return[B.some(P)?T:"",A([["(",...t,")"],M?["(",C(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...B.slice(0,-1),C(n(t),{shouldBreak:!0}),")"],_()])]}let $=["(",S([E,...B]),w(L),E,")"];return c(e)?$:C($,{shouldBreak:B.some(P)||O})}}}),rC=f({"src/language-js/print/member.js"(e,t){v();var{builders:{softline:r,group:n,indent:i,label:s}}=M(),{isNumericLiteral:a,isMemberExpression:o,isCallExpression:u}=tz(),{printOptionalToken:l}=rx();function c(e,t,s){let o=s("property"),u=e.getValue(),c=l(e);return u.computed?!u.property||a(u.property)?[c,"[",o,"]"]:n([c,"[",i([r,o]),r,"]"]):[c,".",o]}t.exports={printMemberExpression:function(e,t,a){let l=e.getValue(),p=e.getParentNode(),d,h=0;do d=e.getParentNode(h),h++;while(d&&(o(d)||"TSNonNullExpression"===d.type));let f=a("object"),m=c(e,t,a),y=d&&("NewExpression"===d.type||"BindExpression"===d.type||"AssignmentExpression"===d.type&&"Identifier"!==d.left.type)||l.computed||"Identifier"===l.object.type&&"Identifier"===l.property.type&&!o(p)||("AssignmentExpression"===p.type||"VariableDeclarator"===p.type)&&(u(l.object)&&l.object.arguments.length>0||"TSNonNullExpression"===l.object.type&&u(l.object.expression)&&l.object.expression.arguments.length>0||"member-chain"===f.label);return s("member-chain"===f.label?"member-chain":"member",[f,y?m:n(i([r,m]))])},printMemberLookup:c}}}),rS=f({"src/language-js/print/member-chain.js"(e,t){v();var{printComments:r}=tF(),{getLast:n,isNextLineEmptyAfterIndex:i,getNextNonSpaceNonCommentCharacterIndex:s}=eo(),a=rf(),{isCallExpression:o,isMemberExpression:u,isFunctionOrArrowExpression:l,isLongCurriedCallExpression:c,isMemberish:p,isNumericLiteral:d,isSimpleCallArgument:h,hasComment:f,CommentCheckFlags:m,isNextLineEmpty:y}=tz(),{locEnd:g}=tb(),{builders:{join:D,hardline:x,group:b,indent:E,conditionalGroup:C,breakParent:S,label:A},utils:{willBreak:w}}=M(),T=rE(),{printMemberLookup:P}=rC(),{printOptionalToken:F,printFunctionTypeParameters:k,printBindExpressionCallee:N}=rx();t.exports=function(e,t,v){var O;let I,j,B,L=e.getParentNode(),_=!L||"ExpressionStatement"===L.type,M=[];function R(e){let{originalText:r}=t,n=s(r,e,g);return")"===r.charAt(n)?!1!==n&&i(r,n+1):y(e,t)}let $=e.getValue();M.unshift({node:$,printed:[F(e),k(e,t,v),T(e,t,v)]}),$.callee&&e.call(e=>(function e(n){let i=n.getValue();o(i)&&(p(i.callee)||o(i.callee))?(M.unshift({node:i,printed:[r(n,[F(n),k(n,t,v),T(n,t,v)],t),R(i)?x:""]}),n.call(t=>e(t),"callee")):p(i)?(M.unshift({node:i,needsParens:a(n,t),printed:r(n,u(i)?P(n,t,v):N(n,t,v),t)}),n.call(t=>e(t),"object")):"TSNonNullExpression"===i.type?(M.unshift({node:i,printed:r(n,"!",t)}),n.call(t=>e(t),"expression")):M.unshift({node:i,printed:v()})})(e),"callee");let U=[],V=[M[0]],z=1;for(;z<M.length&&("TSNonNullExpression"===M[z].node.type||o(M[z].node)||u(M[z].node)&&M[z].node.computed&&d(M[z].node.property));++z)V.push(M[z]);if(!o(M[0].node))for(;z+1<M.length&&p(M[z].node)&&p(M[z+1].node);++z)V.push(M[z]);U.push(V),V=[];let H=!1;for(;z<M.length;++z){if(H&&p(M[z].node)){if(M[z].node.computed&&d(M[z].node.property)){V.push(M[z]);continue}U.push(V),V=[],H=!1}(o(M[z].node)||"ImportExpression"===M[z].node.type)&&(H=!0),V.push(M[z]),f(M[z].node,m.Trailing)&&(U.push(V),V=[],H=!1)}function W(e){return/^[A-Z]|^[$_]+$/.test(e)}V.length>0&&U.push(V);let q=U.length>=2&&!f(U[1][0].node)&&function(e){let r=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){let n=e[0][0].node;return"ThisExpression"===n.type||"Identifier"===n.type&&(W(n.name)||_&&n.name.length<=t.tabWidth||r)}let i=n(e[0]).node;return u(i)&&"Identifier"===i.property.type&&(W(i.property.name)||r)}(U);function K(e){let t=e.map(e=>e.printed);return e.length>0&&n(e).needsParens?["(",...t,")"]:t}let J=U.map(K),G=q?3:2,X=U.flat(),Y=X.slice(1,-1).some(e=>f(e.node,m.Leading))||X.slice(0,-1).some(e=>f(e.node,m.Trailing))||U[G]&&f(U[G][0].node,m.Leading);if(U.length<=G&&!Y)return c(e)?J:b(J);let Q=n(U[q?1:0]).node,Z=!o(Q)&&R(Q),ee=[K(U[0]),q?U.slice(1,2).map(K):"",Z?x:"",0===(O=U.slice(q?2:1)).length?"":E(b([x,D(x,O.map(K))]))],et=M.map(e=>{let{node:t}=e;return t}).filter(o);return A("member-chain",B=Y||et.length>2&&et.some(e=>!e.arguments.every(e=>h(e,0)))||J.slice(0,-1).some(w)||(I=n(n(U)).node,j=n(J),o(I)&&w(j)&&et.slice(0,-1).some(e=>e.arguments.some(l)))?b(ee):[w(J)||Z?S:"",C([J,ee])])}}}),rA=f({"src/language-js/print/call-expression.js"(e,t){v();var{builders:{join:r,group:n}}=M(),i=rf(),{getCallArguments:s,hasFlowAnnotationComment:a,isCallExpression:o,isMemberish:u,isStringLiteral:l,isTemplateOnItsOwnLine:c,isTestCall:p,iterateCallArgumentsPath:d}=tz(),h=rS(),f=rE(),{printOptionalToken:m,printFunctionTypeParameters:y}=rx();t.exports={printCallExpression:function(e,t,g){let D=e.getValue(),v=e.getParentNode(),x="NewExpression"===D.type,b="ImportExpression"===D.type,E=m(e),C=s(D);if(C.length>0&&(!b&&!x&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){let r=s(e);return"ExpressionStatement"===t.type&&(1===r.length||2===r.length&&"ArrayExpression"===r[0].type||3===r.length&&l(r[0])&&"ArrayExpression"===r[1].type)}return!1}(D,v)||1===C.length&&c(C[0],t.originalText)||!x&&p(D,v))){let n=[];return d(e,()=>{n.push(g())}),[x?"new ":"",g("callee"),E,y(e,t,g),"(",r(", ",n),")"]}let S=("babel"===t.parser||"babel-flow"===t.parser)&&D.callee&&"Identifier"===D.callee.type&&a(D.callee.trailingComments);if(S&&(D.callee.trailingComments[0].printed=!0),!b&&!x&&u(D.callee)&&!e.call(e=>i(e,t),"callee"))return h(e,t,g);let A=[x?"new ":"",b?"import":g("callee"),E,S?`/*:: ${D.callee.trailingComments[0].value.slice(2).trim()} */`:"",y(e,t,g),f(e,t,g)];return b||o(D.callee)?n(A):A}}}}),rw=f({"src/language-js/print/assignment.js"(e,t){v();var{isNonEmptyArray:r,getStringWidth:n}=eo(),{builders:{line:i,group:s,indent:a,indentIfBreak:o,lineSuffixBoundary:u},utils:{cleanDoc:l,willBreak:c,canBreak:p}}=M(),{hasLeadingOwnLineComment:d,isBinaryish:h,isStringLiteral:f,isLiteral:m,isNumericLiteral:y,isCallExpression:g,isMemberExpression:D,getCallArguments:x,rawText:b,hasComment:E,isSignedNumericLiteral:C,isObjectProperty:S}=tz(),{shouldInlineLogicalExpression:A}=rg(),{printCallExpression:w}=rA();function T(e,t,v,T,O,I){let j=function(e,t,i,s,a){let o=e.getValue(),u=o[a];if(!u)return"only-left";let v=!P(u);if(e.match(P,F,e=>!v||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type))return v?"ArrowFunctionExpression"===u.type&&"ArrowFunctionExpression"===u.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!v&&P(u.right)||d(t.originalText,u))return"break-after-operator";if("CallExpression"===u.type&&"require"===u.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(F(e)){let t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some(e=>S(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type))}return!1}(o)||function(e){let t=function(e){return function(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}(e);if(r(t)){let r="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some(e=>e[r]||e.default))return!0}return!1}(o)||function(e){if("VariableDeclarator"!==e.type)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=N(t.typeAnnotation);return r(n)&&n.length>1&&n.some(e=>r(N(e))||"TSConditionalType"===e.type)}(o)||k(o)&&p(s))return"break-lhs";let T=function(e,t,r){return!!S(e)&&(t=l(t),"string"==typeof t&&n(t)<r.tabWidth+3)}(o,s,t);return e.call(()=>(function(e,t,n,i){let s=e.getValue();if(h(s)&&!A(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:e}=s;return h(e)&&!A(e)}case"ClassExpression":return r(s.decorators)}if(i)return!1;let a=s,o=[];for(;;)if("UnaryExpression"===a.type)a=a.argument,o.push("argument");else if("TSNonNullExpression"===a.type)a=a.expression,o.push("expression");else break;return!!(f(a)||e.call(()=>(function e(t,n,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.getValue(),o=()=>e(t,n,i,!0);if("TSNonNullExpression"===a.type)return t.call(o,"expression");if(g(a)){if("member-chain"===w(t,n,i).label)return!1;let e=x(a);return!(!(0===e.length||1===e.length&&function(e,t){let{printWidth:r}=t;if(E(e))return!1;let n=.25*r;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||C(e)&&!E(e.argument))return!0;let i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=n:f(e)?b(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
|
|
94
|
-
`):m(e)}(e[0],n))||function(e,t){let n=function(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}(e);if(r(n)){if(n.length>1)return!0;if(1===n.length){let e=n[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"ObjectTypeAnnotation"===e.type)return!0}if(c(t(e.typeParameters?"typeParameters":"typeArguments")))return!0}return!1}(a,i))&&t.call(o,"callee")}return D(a)?t.call(o,"object"):s&&("Identifier"===a.type||"ThisExpression"===a.type)})(e,t,n),...o))})(e,t,i,T),a)?"break-after-operator":T||"TemplateLiteral"===u.type||"TaggedTemplateExpression"===u.type||"BooleanLiteral"===u.type||y(u)||"ClassExpression"===u.type?"never-break-after-operator":"fluid"}(e,t,v,T,I),B=v(I,{assignmentLayout:j});switch(j){case"break-after-operator":return s([s(T),O,s(a([i,B]))]);case"never-break-after-operator":return s([s(T),O," ",B]);case"fluid":{let e=Symbol("assignment");return s([s(T),O,s(a(i),{id:e}),u,o(B,{groupId:e})])}case"break-lhs":return s([T,O," ",s(B)]);case"chain":return[s(T),O,i,B];case"chain-tail":return[s(T),O,a([i,B])];case"chain-tail-arrow-chain":return[s(T),O,B];case"only-left":return T}}function P(e){return"AssignmentExpression"===e.type}function F(e){return P(e)||"VariableDeclarator"===e.type}function k(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function N(e){return function(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}t.exports={printVariableDeclarator:function(e,t,r){return T(e,t,r,r("id")," =","init")},printAssignmentExpression:function(e,t,r){let n=e.getValue();return T(e,t,r,r("left"),[" ",n.operator],"right")},printAssignment:T,isArrowFunctionVariableDeclarator:k}}}),rT=f({"src/language-js/print/function-parameters.js"(e,t){v();var{getNextNonSpaceNonCommentCharacter:r}=eo(),{printDanglingComments:n}=tF(),{builders:{line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l},utils:{removeLines:c,willBreak:p}}=M(),{getFunctionParameters:d,iterateFunctionParametersPath:h,isSimpleType:f,isTestCall:m,isTypeAnnotationAFunction:y,isObjectType:g,isObjectTypePropertyAFunction:D,hasRestParameter:x,shouldPrintComma:b,hasComment:E,isNextLineEmpty:C}=tz(),{locEnd:S}=tb(),{ArgExpansionBailout:A}=eP(),{printFunctionTypeParameters:w}=rx();function T(e){if(!e)return!1;let t=d(e);if(1!==t.length)return!1;let[r]=t;return!E(r)&&("ObjectPattern"===r.type||"ArrayPattern"===r.type||"Identifier"===r.type&&r.typeAnnotation&&("TypeAnnotation"===r.typeAnnotation.type||"TSTypeAnnotation"===r.typeAnnotation.type)&&g(r.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===r.type&&g(r.typeAnnotation)||"AssignmentPattern"===r.type&&("ObjectPattern"===r.left.type||"ArrayPattern"===r.left.type)&&("Identifier"===r.right.type||"ObjectExpression"===r.right.type&&0===r.right.properties.length||"ArrayExpression"===r.right.type&&0===r.right.elements.length))}t.exports={printFunctionParameters:function(e,t,g,v,E){let P=e.getValue(),F=d(P),k=E?w(e,g,t):"";if(0===F.length)return[k,"(",n(e,g,!0,e=>")"===r(g.originalText,e,S)),")"];let N=e.getParentNode(),O=m(N),I=T(P),j=[];if(h(e,(e,r)=>{let n=r===F.length-1;n&&P.rest&&j.push("..."),j.push(t()),n||(j.push(","),O||I?j.push(" "):C(F[r],g)?j.push(s,s):j.push(i))}),v){if(p(k)||p(j))throw new A;return o([c(k),"(",c(j),")"])}let B=F.every(e=>!e.decorators);return I&&B?[k,"(",...j,")"]:O?[k,"(",...j,")"]:(D(N)||y(N)||"TypeAlias"===N.type||"UnionTypeAnnotation"===N.type||"TSUnionType"===N.type||"IntersectionTypeAnnotation"===N.type||"FunctionTypeAnnotation"===N.type&&N.returnType===P)&&1===F.length&&null===F[0].name&&P.this!==F[0]&&F[0].typeAnnotation&&null===P.typeParameters&&f(F[0].typeAnnotation)&&!P.rest?"always"===g.arrowParens?["(",...j,")"]:j:[k,"(",u([a,...j]),l(!x(P)&&b(g,"all")?",":""),a,")"]},shouldHugFunctionParameters:T,shouldGroupFunctionParameters:function(e,t){var r;let n;let i=((r=e).returnType?(n=r.returnType).typeAnnotation&&(n=n.typeAnnotation):r.typeAnnotation&&(n=r.typeAnnotation),n);if(!i)return!1;let s=e.typeParameters&&e.typeParameters.params;if(s){if(s.length>1)return!1;if(1===s.length){let e=s[0];if(e.constraint||e.default)return!1}}return 1===d(e).length&&(g(i)||p(t))}}}}),rP=f({"src/language-js/print/type-annotation.js"(e,t){v();var{printComments:r,printDanglingComments:n}=tF(),{isNonEmptyArray:i}=eo(),{builders:{group:s,join:a,line:o,softline:u,indent:l,align:c,ifBreak:p}}=M(),d=rf(),{locStart:h}=tb(),{isSimpleType:f,isObjectType:m,hasLeadingOwnLineComment:y,isObjectTypePropertyAFunction:g,shouldPrintComma:D}=tz(),{printAssignment:x}=rw(),{printFunctionParameters:b,shouldGroupFunctionParameters:E}=rT(),{printArrayItems:C}=rb();function S(e){if(f(e)||m(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){let t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,r=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&r)return!0}return!1}t.exports={printOpaqueType:function(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];return s.push("opaque type ",r("id"),r("typeParameters")),i.supertype&&s.push(": ",r("supertype")),i.impltype&&s.push(" = ",r("impltype")),s.push(n),s},printTypeAlias:function(e,t,r){let n=t.semi?";":"",i=e.getValue(),s=[];return i.declare&&s.push("declare "),s.push("type ",r("id"),r("typeParameters")),[x(e,t,r,s," =","TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right"),n]},printIntersectionType:function(e,t,r){let n=e.getValue(),i=e.map(r,"types"),a=[],u=!1;for(let e=0;e<i.length;++e)0===e?a.push(i[e]):m(n.types[e-1])&&m(n.types[e])?a.push([" & ",u?l(i[e]):i[e]]):m(n.types[e-1])||m(n.types[e])?(e>1&&(u=!0),a.push(" & ",e>1?l(i[e]):i[e])):a.push(l([" &",o,i[e]]));return s(a)},printUnionType:function(e,t,n){let i=e.getValue(),h=e.getParentNode(),f="TypeParameterInstantiation"!==h.type&&"TSTypeParameterInstantiation"!==h.type&&"GenericTypeAnnotation"!==h.type&&"TSTypeReference"!==h.type&&"TSTypeAssertion"!==h.type&&"TupleTypeAnnotation"!==h.type&&"TSTupleType"!==h.type&&!("FunctionTypeParam"===h.type&&!h.name&&e.getParentNode(1).this!==h)&&!(("TypeAlias"===h.type||"VariableDeclarator"===h.type||"TSTypeAliasDeclaration"===h.type)&&y(t.originalText,i)),m=S(i),g=e.map(e=>{let i=n();return m||(i=c(2,i)),r(e,i,t)},"types");if(m)return a(" | ",g);let D=[p([f&&!y(t.originalText,i)?o:"","| "]),a([o,"| "],g)];return d(e,t)?s([l(D),u]):"TupleTypeAnnotation"===h.type&&h.types.length>1||"TSTupleType"===h.type&&h.elementTypes.length>1?s([l([p(["(",u]),D]),u,p(")")]):s(f?l(D):D)},printFunctionType:function(e,t,r){let n=e.getValue(),i=[],a=e.getParentNode(0),o=e.getParentNode(1),u=e.getParentNode(2),l="TSFunctionType"===n.type||!(("ObjectTypeProperty"===a.type||"ObjectTypeInternalSlot"===a.type)&&!a.variance&&!a.optional&&h(a)===h(n)||"ObjectTypeCallProperty"===a.type||u&&"DeclareFunction"===u.type),c=l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type),p=c&&l&&("TypeAnnotation"===a.type||"TSTypeAnnotation"===a.type)&&"ArrowFunctionExpression"===o.type;g(a)&&(l=!0,c=!0),p&&i.push("(");let d=b(e,r,t,!1,!0),f=n.returnType||n.predicate||n.typeAnnotation?[l?" => ":": ",r("returnType"),r("predicate"),r("typeAnnotation")]:"",m=E(n,f);return i.push(m?s(d):d),f&&i.push(f),p&&i.push(")"),s(i)},printTupleType:function(e,t,r){let a=e.getValue(),o="TSTupleType"===a.type?"elementTypes":"types",c=i(a[o]),d=c?u:"";return s(["[",l([d,C(e,t,o,r)]),p(c&&D(t,"all")?",":""),n(e,t,!0),d,"]"])},printIndexedAccessType:function(e,t,r){let n=e.getValue(),i="OptionalIndexedAccessType"===n.type&&n.optional?"?.[":"[";return[r("objectType"),i,r("indexType"),"]"]},shouldHugType:S,printJSDocType:function(e,t,r){let n=e.getValue();return[n.postfix?"":r,t("typeAnnotation"),n.postfix?r:""]}}}}),rF=f({"src/language-js/print/type-parameters.js"(e,t){v();var{printDanglingComments:r}=tF(),{builders:{join:n,line:i,hardline:s,softline:a,group:o,indent:u,ifBreak:l}}=M(),{isTestCall:c,hasComment:p,CommentCheckFlags:d,isTSXFile:h,shouldPrintComma:f,getFunctionParameters:m,isObjectType:y,getTypeScriptMappedTypeModifier:g}=tz(),{createGroupIdMapper:D}=eo(),{shouldHugType:x}=rP(),{isArrowFunctionVariableDeclarator:b}=rw(),E=D("typeParameters");t.exports={printTypeParameter:function(e,t,r){let n=e.getValue(),i=["TSTypeParameter"===n.type&&n.const?"const ":""],s=e.getParentNode();return"TSMappedType"===s.type?(s.readonly&&i.push(g(s.readonly,"readonly")," "),i.push("[",r("name")),n.constraint&&i.push(" in ",r("constraint")),s.nameType&&i.push(" as ",e.callParent(()=>r("nameType"))),i.push("]")):(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(r("name")),n.bound&&i.push(": ",r("bound")),n.constraint&&i.push(" extends ",r("constraint")),n.default&&i.push(" = ",r("default"))),i},printTypeParameters:function(e,t,g,D){let v=e.getValue();if(!v[D])return"";if(!Array.isArray(v[D]))return g(D);let C=e.getNode(2),S=C&&c(C),A=e.match(e=>!(1===e[D].length&&y(e[D][0])),void 0,(e,t)=>"typeAnnotation"===t,e=>"Identifier"===e.type,b);if(0===v[D].length||!A&&(S||1===v[D].length&&("NullableTypeAnnotation"===v[D][0].type||x(v[D][0]))))return["<",n(", ",e.map(g,D)),function(e,t){let n=e.getValue();if(!p(n,d.Dangling))return"";let i=!p(n,d.Line),a=r(e,t,i);return i?a:[a,s]}(e,t),">"];let w="TSTypeParameterInstantiation"===v.type?"":1===m(v).length&&h(t)&&!v[D][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":f(t,"all")?l(","):"";return o(["<",u([a,n([",",i],e.map(g,D))]),w,a,">"],{id:E(v)})},getTypeParametersGroupId:E}}}),rk=f({"src/language-js/print/property.js"(e,t){v();var{printComments:r}=tF(),{printString:n,printNumber:i}=eo(),{isNumericLiteral:s,isSimpleNumber:a,isStringLiteral:o,isStringPropSafeToUnquote:u,rawText:l}=tz(),{printAssignment:c}=rw(),p=new WeakMap;function d(e,t,c){let d=e.getNode();if(d.computed)return["[",c("key"),"]"];let h=e.getParentNode(),{key:f}=d;if("consistent"===t.quoteProps&&!p.has(h)){let e=(h.properties||h.body||h.members).some(e=>!e.computed&&e.key&&o(e.key)&&!u(e,t));p.set(h,e)}if(("Identifier"===f.type||s(f)&&a(i(l(f)))&&String(f.value)===i(l(f))&&!("typescript"===t.parser||"babel-ts"===t.parser))&&("json"===t.parser||"consistent"===t.quoteProps&&p.get(h))){let i=n(JSON.stringify("Identifier"===f.type?f.name:f.value.toString()),t);return e.call(e=>r(e,i,t),"key")}return u(d,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!p.get(h))?e.call(e=>r(e,/^\d/.test(f.value)?i(f.value):f.value,t),"key"):c("key")}t.exports={printProperty:function(e,t,r){return e.getValue().shorthand?r("value"):c(e,t,r,d(e,t,r),":","value")},printPropertyKey:d}}}),rN=f({"src/language-js/print/function.js"(e,t){v();var r=tP(),{printDanglingComments:n,printCommentsSeparately:i}=tF(),s=A(),{getNextNonSpaceNonCommentCharacterIndex:a}=eo(),{builders:{line:o,softline:u,group:l,indent:c,ifBreak:p,hardline:d,join:h,indentIfBreak:f},utils:{removeLines:m,willBreak:y}}=M(),{ArgExpansionBailout:g}=eP(),{getFunctionParameters:D,hasLeadingOwnLineComment:x,isFlowAnnotationComment:b,isJsxNode:E,isTemplateOnItsOwnLine:C,shouldPrintComma:S,startsWithNoLookaheadToken:w,isBinaryish:T,isLineComment:P,hasComment:F,getComments:k,CommentCheckFlags:N,isCallLikeExpression:O,isCallExpression:I,getCallArguments:j,hasNakedLeftSide:B,getLeftSide:L}=tz(),{locEnd:_}=tb(),{printFunctionParameters:R,shouldGroupFunctionParameters:$}=rT(),{printPropertyKey:U}=rk(),{printFunctionTypeParameters:V}=rx();function z(e,t,r){let n=e.getNode(),i=R(e,r,t),s=W(e,r,t),a=$(n,s),o=[V(e,t,r),l([a?l(i):i,s])];return n.body?o.push(" ",r("body")):o.push(t.semi?";":""),o}function H(e,t){if("always"===t.arrowParens)return!1;if("avoid"===t.arrowParens){var r;let t;return 1===(t=D(r=e.getValue())).length&&!r.typeParameters&&!F(r,N.Dangling)&&"Identifier"===t[0].type&&!t[0].typeAnnotation&&!F(t[0])&&!t[0].optional&&!r.predicate&&!r.returnType}return!1}function W(e,t,r){let n=e.getValue(),i=t("returnType");if(n.returnType&&b(r.originalText,n.returnType))return[" /*: ",i," */"];let s=[i];return n.returnType&&n.returnType.typeAnnotation&&s.unshift(": "),n.predicate&&s.push(n.returnType?" ":": ",t("predicate")),s}function q(e,t,r){let i=e.getValue(),a=t.semi?";":"",o=[];i.argument&&(function(e,t){if(x(e.originalText,t))return!0;if(B(t)){let r=t,n;for(;n=L(r);)if(r=n,x(e.originalText,r))return!0}return!1}(t,i.argument)?o.push([" (",c([d,r("argument")]),d,")"]):T(i.argument)||"SequenceExpression"===i.argument.type?o.push(l([p(" ("," "),c([u,r("argument")]),u,p(")")])):o.push(" ",r("argument")));let h=s(k(i)),f=h&&P(h);return f&&o.push(a),F(i,N.Dangling)&&o.push(" ",n(e,t,!0)),f||o.push(a),o}t.exports={printFunction:function(e,t,r,n){let i=e.getValue(),s=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&n&&n.expandLastArg){let t=e.getParentNode();I(t)&&j(t).length>1&&(s=!0)}let a=[];"TSDeclareFunction"===i.type&&i.declare&&a.push("declare "),i.async&&a.push("async "),i.generator?a.push("function* "):a.push("function "),i.id&&a.push(t("id"));let o=R(e,t,r,s),u=W(e,t,r),c=$(i,u);return a.push(V(e,r,t),l([c?l(o):o,u]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&a.push(";"),a},printArrowFunction:function(e,t,r,s){let d=e.getValue(),v=[],b=[],A=!1;if(function o(){let u=function(e,t,r,i){let s=e.getValue(),o=[];if(s.async&&o.push("async "),H(e,t))o.push(r(["params",0]));else{let n=i&&(i.expandLastArg||i.expandFirstArg),s=W(e,r,t);if(n){if(y(s))throw new g;s=l(m(s))}o.push(l([R(e,r,t,n,!0),s]))}let u=n(e,t,!0,e=>{let r=a(t.originalText,e,_);return!1!==r&&"=>"===t.originalText.slice(r,r+2)});return u&&o.push(" ",u),o}(e,t,r,s);if(0===v.length)v.push(u);else{let{leading:r,trailing:n}=i(e,t);v.push([r,u]),b.unshift(n)}A=A||d.returnType&&D(d).length>0||d.typeParameters||D(d).some(e=>"Identifier"!==e.type),"ArrowFunctionExpression"!==d.body.type||s&&s.expandLastArg?b.unshift(r("body",s)):(d=d.body,e.call(o,"body"))}(),v.length>1){var T,P,k,N,I,j;let t,r,n,i,a,m;return T=e,P=s,k=v,N=A,I=b,j=d,t=T.getName(),r=O(T.getParentNode())&&"callee"===t,n=!!(P&&P.assignmentLayout),i="BlockStatement"!==j.body.type&&"ObjectExpression"!==j.body.type&&"SequenceExpression"!==j.body.type,a=r&&i||P&&"chain-tail-arrow-chain"===P.assignmentLayout,m=Symbol("arrow-chain"),"SequenceExpression"===j.body.type&&(I=l(["(",c([u,I]),u,")"])),l([l(c([r||n?u:"",l(h([" =>",o],k),{shouldBreak:N})]),{id:m,shouldBreak:a})," =>",f(i?c([o,I]):[" ",I],{groupId:m}),r?p(u,"",{groupId:m}):""])}if(v.push(" =>"),!x(t.originalText,d.body)&&("ArrayExpression"===d.body.type||"ObjectExpression"===d.body.type||"BlockStatement"===d.body.type||E(d.body)||C(d.body,t.originalText)||"ArrowFunctionExpression"===d.body.type||"DoExpression"===d.body.type))return l([...v," ",b]);if("SequenceExpression"===d.body.type)return l([...v,l([" (",c([u,b]),u,")"])]);let B=(s&&s.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!F(d),L=s&&s.expandLastArg&&S(t,"all"),M="ConditionalExpression"===d.body.type&&!w(d.body,e=>"ObjectExpression"===e.type);return l([...v,l([c([o,M?p("","("):"",b,M?p("",")"):""]),B?[p(L?",":""),u]:""])])},printMethod:function(e,t,n){let i=e.getNode(),{kind:s}=i,a=i.value||i,o=[];return s&&"init"!==s&&"method"!==s&&"constructor"!==s?(r.ok("get"===s||"set"===s),o.push(s," ")):a.async&&o.push("async "),a.generator&&o.push("*"),o.push(U(e,t,n),i.optional||i.key.optional?"?":""),i===a?o.push(z(e,t,n)):"FunctionExpression"===a.type?o.push(e.call(e=>z(e,t,n),"value")):o.push(n("value")),o},printReturnStatement:function(e,t,r){return["return",q(e,t,r)]},printThrowStatement:function(e,t,r){return["throw",q(e,t,r)]},printMethodInternal:z,shouldPrintParamsWithoutParens:H}}}),rO=f({"src/language-js/print/decorators.js"(e,t){v();var{isNonEmptyArray:r,hasNewline:n}=eo(),{builders:{line:i,hardline:s,join:a,breakParent:o,group:u}}=M(),{locStart:l,locEnd:c}=tb(),{getParentExportDeclaration:p}=tz();function d(e,t){return e.decorators.some(e=>n(t.originalText,c(e)))}function h(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;let t=e.declaration&&e.declaration.decorators;return r(t)&&l(e)===l(t[0])}t.exports={printDecorators:function(e,t,n){let u=e.getValue(),{decorators:l}=u;if(!r(l)||h(e.getParentNode()))return;let c="ClassExpression"===u.type||"ClassDeclaration"===u.type||d(u,t);return[p(e)?s:c?o:"",a(i,e.map(n,"decorators")),i]},printClassMemberDecorators:function(e,t,r){let n=e.getValue();return u([a(i,e.map(r,"decorators")),d(n,t)?s:i])},printDecoratorsBeforeExport:function(e,t,r){return[a(s,e.map(r,"declaration","decorators")),s]},hasDecoratorsBeforeExport:h}}}),rI=f({"src/language-js/print/class.js"(e,t){v();var{isNonEmptyArray:r,createGroupIdMapper:n}=eo(),{printComments:i,printDanglingComments:s}=tF(),{builders:{join:a,line:o,hardline:u,softline:l,group:c,indent:p,ifBreak:d}}=M(),{hasComment:h,CommentCheckFlags:f}=tz(),{getTypeParametersGroupId:m}=rF(),{printMethod:y}=rN(),{printOptionalToken:g,printTypeAnnotation:D,printDefiniteToken:x}=rx(),{printPropertyKey:b}=rk(),{printAssignment:E}=rw(),{printClassMemberDecorators:C}=rO(),S=n("heritageGroup");function A(e){var t;return e.typeParameters&&!h(e.typeParameters,f.Trailing|f.Line)&&(t=e,!(["superClass","extends","mixins","implements"].filter(e=>!!t[e]).length>1))}function w(e,t,n,i){let l=e.getValue();if(!r(l[i]))return"";let h=s(e,t,!0,e=>{let{marker:t}=e;return t===i});return[A(l)?d(" ",o,{groupId:m(l.typeParameters)}):o,h,h&&u,i,c(p([o,a([",",o],e.map(n,i))]))]}t.exports={printClass:function(e,t,n){let s=e.getValue(),a=[];s.declare&&a.push("declare "),s.abstract&&a.push("abstract "),a.push("class");let u=s.id&&h(s.id,f.Trailing)||s.typeParameters&&h(s.typeParameters,f.Trailing)||s.superClass&&h(s.superClass)||r(s.extends)||r(s.mixins)||r(s.implements),m=[],y=[];if(s.id&&m.push(" ",n("id")),m.push(n("typeParameters")),s.superClass){let r=[function(e,t,r){let n=r("superClass");return"AssignmentExpression"===e.getParentNode().type?c(d(["(",p([l,n]),l,")"],n)):n}(e,t,n),n("superTypeParameters")],s=e.call(e=>["extends ",i(e,r,t)],"superClass");u?y.push(o,c(s)):y.push(" ",s)}else y.push(w(e,t,n,"extends"));if(y.push(w(e,t,n,"mixins"),w(e,t,n,"implements")),u){let e;e=A(s)?[...m,p(y)]:p([...m,y]),a.push(c(e,{id:S(s)}))}else a.push(...m,...y);return a.push(" ",n("body")),a},printClassMethod:function(e,t,n){let i=e.getValue(),s=[];return r(i.decorators)&&s.push(C(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.readonly&&s.push("readonly "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),s.push(y(e,t,n)),s},printClassProperty:function(e,t,n){let i=e.getValue(),s=[],a=t.semi?";":"";return r(i.decorators)&&s.push(C(e,t,n)),i.accessibility&&s.push(i.accessibility+" "),i.declare&&s.push("declare "),i.static&&s.push("static "),("TSAbstractPropertyDefinition"===i.type||"TSAbstractAccessorProperty"===i.type||i.abstract)&&s.push("abstract "),i.override&&s.push("override "),i.readonly&&s.push("readonly "),i.variance&&s.push(n("variance")),("ClassAccessorProperty"===i.type||"AccessorProperty"===i.type||"TSAbstractAccessorProperty"===i.type)&&s.push("accessor "),s.push(b(e,t,n),g(e),x(e),D(e,t,n)),[E(e,t,n,s," =","value"),a]},printHardlineAfterHeritage:function(e){return d(u,"",{groupId:S(e)})}}}}),rj=f({"src/language-js/print/interface.js"(e,t){v();var{isNonEmptyArray:r}=eo(),{builders:{join:n,line:i,group:s,indent:a,ifBreak:o}}=M(),{hasComment:u,identity:l,CommentCheckFlags:c}=tz(),{getTypeParametersGroupId:p}=rF(),{printTypeScriptModifiers:d}=rx();t.exports={printInterface:function(e,t,h){let f=e.getValue(),m=[];f.declare&&m.push("declare "),"TSInterfaceDeclaration"===f.type&&m.push(f.abstract?"abstract ":"",d(e,t,h)),m.push("interface");let y=[],g=[];"InterfaceTypeAnnotation"!==f.type&&y.push(" ",h("id"),h("typeParameters"));let D=f.typeParameters&&!u(f.typeParameters,c.Trailing|c.Line);return r(f.extends)&&g.push(D?o(" ",i,{groupId:p(f.typeParameters)}):i,"extends ",(1===f.extends.length?l:a)(n([",",i],e.map(h,"extends")))),f.id&&u(f.id,c.Trailing)||r(f.extends)?D?m.push(s([...y,a(g)])):m.push(s(a([...y,...g]))):m.push(...y,...g),m.push(" ",h("body")),s(m)}}}}),rB=f({"src/language-js/print/module.js"(e,t){v();var{isNonEmptyArray:r}=eo(),{builders:{softline:n,group:i,indent:s,join:a,line:o,ifBreak:u,hardline:l}}=M(),{printDanglingComments:c}=tF(),{hasComment:p,CommentCheckFlags:d,shouldPrintComma:h,needsHardlineAfterDanglingComment:f,isStringLiteral:m,rawText:y}=tz(),{locStart:g,hasSameLoc:D}=tb(),{hasDecoratorsBeforeExport:x,printDecoratorsBeforeExport:b}=rO();function E(e,t,r){let n=e.getValue();if(!n.source)return"";let i=[];return S(n,t)||i.push(" from"),i.push(" ",r("source")),i}function C(e,t,l){let c=e.getValue();if(S(c,t))return"";let d=[" "];if(r(c.specifiers)){let r=[],f=[];e.each(()=>{let t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)r.push(l());else if("ExportSpecifier"===t||"ImportSpecifier"===t)f.push(l());else throw Error(`Unknown specifier type ${JSON.stringify(t)}`)},"specifiers"),d.push(a(", ",r)),f.length>0&&(r.length>0&&d.push(", "),f.length>1||r.length>0||c.specifiers.some(e=>p(e))?d.push(i(["{",s([t.bracketSpacing?o:n,a([",",o],f)]),u(h(t)?",":""),t.bracketSpacing?o:n,"}"])):d.push(["{",t.bracketSpacing?" ":"",...f,t.bracketSpacing?" ":"","}"]))}else d.push("{}");return d}function S(e,t){let{type:n,importKind:i,source:s,specifiers:a}=e;return!("ImportDeclaration"!==n||r(a))&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(g(e),g(s)))}function A(e,t,n){return r(e.getNode().assertions)?[" assert {",t.bracketSpacing?" ":"",a(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}t.exports={printImportDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{importKind:a}=n;return s.push("import"),a&&"value"!==a&&s.push(" ",a),s.push(C(e,t,r),E(e,t,r),A(e,t,r),i),s},printExportDeclaration:function(e,t,r){let n=e.getValue(),i=[];x(n)&&i.push(b(e,t,r));let{type:s,exportKind:a,declaration:o}=n;return i.push("export"),(n.default||"ExportDefaultDeclaration"===s)&&i.push(" default"),p(n,d.Dangling)&&(i.push(" ",c(e,t,!0)),f(n)&&i.push(l)),o?i.push(" ",r("declaration")):i.push("type"===a?" type":"",C(e,t,r),E(e,t,r),A(e,t,r)),function(e,t){if(!t.semi)return!1;let{type:r,declaration:n}=e,i=e.default||"ExportDefaultDeclaration"===r;if(!n)return!0;let{type:s}=n;return!!(i&&"ClassDeclaration"!==s&&"FunctionDeclaration"!==s&&"TSInterfaceDeclaration"!==s&&"DeclareClass"!==s&&"DeclareFunction"!==s&&"TSDeclareFunction"!==s&&"EnumDeclaration"!==s)}(n,t)&&i.push(";"),i},printExportAllDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{exportKind:a,exported:o}=n;return s.push("export"),"type"===a&&s.push(" type"),s.push(" *"),o&&s.push(" as ",r("exported")),s.push(E(e,t,r),A(e,t,r),i),s},printModuleSpecifier:function(e,t,r){let n=e.getNode(),{type:i}=n,s=[],a="ImportSpecifier"===i?n.importKind:n.exportKind;a&&"value"!==a&&s.push(a," ");let o=i.startsWith("Import"),u=o?"imported":"local",l=o?"local":"exported",c=n[u],p=n[l],d="",h="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?d="*":c&&(d=r(u)),p&&!function(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;let{local:t,["ImportSpecifier"===e.type?"imported":"exported"]:r}=e;if(t.type!==r.type||!D(t,r))return!1;if(m(t))return t.value===r.value&&y(t)===y(r);if("Identifier"===t.type)return t.name===r.name;return!1}(n)&&(h=r(l)),s.push(d,d&&h?" as ":"",h),s}}}}),rL=f({"src/language-js/print/object.js"(e,t){v();var{printDanglingComments:r}=tF(),{builders:{line:n,softline:i,group:s,indent:a,ifBreak:o,hardline:u}}=M(),{getLast:l,hasNewlineInRange:c,hasNewline:p,isNonEmptyArray:d}=eo(),{shouldPrintComma:h,hasComment:f,getComments:m,CommentCheckFlags:y,isNextLineEmpty:g}=tz(),{locStart:D,locEnd:x}=tb(),{printOptionalToken:b,printTypeAnnotation:E}=rx(),{shouldHugFunctionParameters:C}=rT(),{shouldHugType:S}=rP(),{printHardlineAfterHeritage:A}=rI();t.exports={printObject:function(e,t,v){let w=t.semi?";":"",T=e.getValue(),P;P="TSTypeLiteral"===T.type?"members":"TSInterfaceBody"===T.type?"body":"properties";let F="ObjectTypeAnnotation"===T.type,k=[P];F&&k.push("indexers","callProperties","internalSlots");let N=k.map(e=>T[e][0]).sort((e,t)=>D(e)-D(t))[0],O=e.getParentNode(0),I=F&&O&&("InterfaceDeclaration"===O.type||"DeclareInterface"===O.type||"DeclareClass"===O.type)&&"body"===e.getName(),j="TSInterfaceBody"===T.type||I||"ObjectPattern"===T.type&&"FunctionDeclaration"!==O.type&&"FunctionExpression"!==O.type&&"ArrowFunctionExpression"!==O.type&&"ObjectMethod"!==O.type&&"ClassMethod"!==O.type&&"ClassPrivateMethod"!==O.type&&"AssignmentPattern"!==O.type&&"CatchClause"!==O.type&&T.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==T.type&&N&&c(t.originalText,D(T),D(N)),B=I?";":"TSInterfaceBody"===T.type||"TSTypeLiteral"===T.type?o(w,";"):",",L="RecordExpression"===T.type?"#{":T.exact?"{|":"{",_=T.exact?"|}":"}",M=[];for(let t of k)e.each(e=>{let t=e.getValue();M.push({node:t,printed:v(),loc:D(t)})},t);k.length>1&&M.sort((e,t)=>e.loc-t.loc);let R=[],$=M.map(e=>{let r=[...R,s(e.printed)];return R=[B,n],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&f(e.node,y.PrettierIgnore)&&R.shift(),g(e.node,t)&&R.push(u),r});if(T.inexact){let i;if(f(T,y.Dangling)){let s=f(T,y.Line);i=[r(e,t,!0),s||p(t.originalText,x(l(m(T))))?u:n,"..."]}else i=["..."];$.push([...R,...i])}let U=l(T[P]),V=!(T.inexact||U&&"RestElement"===U.type||U&&("TSPropertySignature"===U.type||"TSCallSignatureDeclaration"===U.type||"TSMethodSignature"===U.type||"TSConstructSignatureDeclaration"===U.type)&&f(U,y.PrettierIgnore)),z;if(0===$.length){if(!f(T,y.Dangling))return[L,_,E(e,t,v)];z=s([L,r(e,t),i,_,b(e),E(e,t,v)])}else z=[I&&d(T.properties)?A(O):"",L,a([t.bracketSpacing?n:i,...$]),o(V&&(","!==B||h(t))?B:""),t.bracketSpacing?n:i,_,b(e),E(e,t,v)];return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,r)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r)||e.match(S,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,r)=>C(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===r)||!j&&e.match(e=>"ObjectPattern"===e.type,e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type)?z:s(z,{shouldBreak:j})}}}}),r_=f({"src/language-js/print/flow.js"(e,t){v();var r=tP(),{printDanglingComments:n}=tF(),{printString:i,printNumber:s}=eo(),{builders:{hardline:a,softline:o,group:u,indent:l}}=M(),{getParentExportDeclaration:c,isFunctionNotation:p,isGetterOrSetter:d,rawText:h,shouldPrintComma:f}=tz(),{locStart:m,locEnd:y}=tb(),{replaceTextEndOfLine:g}=B(),{printClass:D}=rI(),{printOpaqueType:x,printTypeAlias:b,printIntersectionType:E,printUnionType:C,printFunctionType:S,printTupleType:A,printIndexedAccessType:w}=rP(),{printInterface:T}=rj(),{printTypeParameter:P,printTypeParameters:F}=rF(),{printExportDeclaration:k,printExportAllDeclaration:N}=rB(),{printArrayItems:O}=rb(),{printObject:I}=rL(),{printPropertyKey:j}=rk(),{printOptionalToken:L,printTypeAnnotation:_,printRestSpread:R}=rx();function $(e,t){let n=c(e);return n?(r.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:function(e,t,c){let v=e.getValue(),B=t.semi?";":"",M=[];switch(v.type){case"DeclareClass":return $(e,D(e,t,c));case"DeclareFunction":return $(e,["function ",c("id"),v.predicate?" ":"",c("predicate"),B]);case"DeclareModule":return $(e,["module ",c("id")," ",c("body")]);case"DeclareModuleExports":return $(e,["module.exports",": ",c("typeAnnotation"),B]);case"DeclareVariable":return $(e,["var ",c("id"),B]);case"DeclareOpaqueType":return $(e,x(e,t,c));case"DeclareInterface":return $(e,T(e,t,c));case"DeclareTypeAlias":return $(e,b(e,t,c));case"DeclareExportDeclaration":return $(e,k(e,t,c));case"DeclareExportAllDeclaration":return $(e,N(e,t,c));case"OpaqueType":return x(e,t,c);case"TypeAlias":return b(e,t,c);case"IntersectionTypeAnnotation":return E(e,t,c);case"UnionTypeAnnotation":return C(e,t,c);case"FunctionTypeAnnotation":return S(e,t,c);case"TupleTypeAnnotation":return A(e,t,c);case"GenericTypeAnnotation":return[c("id"),F(e,t,c,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return w(e,t,c);case"TypeAnnotation":return c("typeAnnotation");case"TypeParameter":return P(e,t,c);case"TypeofTypeAnnotation":return["typeof ",c("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[c("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(v.value);case"EnumDeclaration":return["enum ",c("id")," ",c("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===v.type||v.explicitType){let e=null;switch(v.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}M.push("of ",e," ")}if(0!==v.members.length||v.hasUnknownMembers){let r=v.members.length>0?[a,O(e,t,"members",c),v.hasUnknownMembers||f(t)?",":""]:[];M.push(u(["{",l([...r,...v.hasUnknownMembers?[a,"..."]:[]]),n(e,t,!0),a,"}"]))}else M.push(u(["{",n(e,t),o,"}"]));return M;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[c("id")," = ","object"==typeof v.init?c("init"):String(v.init)];case"EnumDefaultedMember":return c("id");case"FunctionTypeParam":{let t=v.name?c("name"):e.getParentNode().this===v?"this":"";return[t,L(e),t?": ":"",c("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return T(e,t,c);case"ClassImplements":case"InterfaceExtends":return[c("id"),c("typeParameters")];case"NullableTypeAnnotation":return["?",c("typeAnnotation")];case"Variance":{let{kind:e}=v;return r.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return v.static&&M.push("static "),M.push(c("value")),M;case"ObjectTypeIndexer":return[v.static?"static ":"",v.variance?c("variance"):"","[",c("id"),v.id?": ":"",c("key"),"]: ",c("value")];case"ObjectTypeProperty":{let r="";return v.proto?r="proto ":v.static&&(r="static "),[r,d(v)?v.kind+" ":"",v.variance?c("variance"):"",j(e,t,c),L(e),p(v)?"":": ",c("value")]}case"ObjectTypeAnnotation":return I(e,t,c);case"ObjectTypeInternalSlot":return[v.static?"static ":"","[[",c("id"),"]]",L(e),v.method?"":": ",c("value")];case"ObjectTypeSpreadProperty":return R(e,t,c);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[c("qualification"),".",c("id")];case"StringLiteralTypeAnnotation":return g(i(h(v),t));case"NumberLiteralTypeAnnotation":r.strictEqual(typeof v.value,"number");case"BigIntLiteralTypeAnnotation":return v.extra?s(v.extra.raw):s(v.raw);case"TypeCastExpression":return["(",c("expression"),_(e,t,c),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let r=F(e,t,c,"params");if("flow"===t.parser){let e=m(v),n=y(v),i=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",n);if(-1!==i&&-1!==s){let e=t.originalText.slice(i+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",r," */"]}}return r}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",c("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw Error("unprintable type: "+JSON.stringify(v.type))}}}}}),rM=f({"src/language-js/utils/is-ts-keyword-type.js"(e,t){v();t.exports=function(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}}}),rR=f({"src/language-js/print/ternary.js"(e,t){v();var{hasNewlineInRange:r}=eo(),{isJsxNode:n,getComments:i,isCallExpression:s,isMemberExpression:a,isTSTypeExpression:o}=tz(),{locStart:u,locEnd:l}=tb(),c=tU(),{builders:{line:p,softline:d,group:h,indent:f,align:m,ifBreak:y,dedent:g,breakParent:D}}=M(),x=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);t.exports={printTernary:function(e,t,v){var b,E,C,S,A,w;let T,P,F,k,N=e.getValue(),O="ConditionalExpression"===N.type,I=O?"consequent":"trueType",j=O?"alternate":"falseType",B=O?["test"]:["checkType","extendsType"],L=N[I],_=N[j],M=[],R=!1,$=e.getParentNode(),U=$.type===N.type&&B.some(e=>$[e]===N),V=$.type===N.type&&!U,z,H,W=0;do H=z||N,z=e.getParentNode(W),W++;while(z&&z.type===N.type&&B.every(e=>z[e]!==H));let q=z||$;if(O&&(n(N[B[0]])||n(L)||n(_)||function(e){let t=[e];for(let e=0;e<t.length;e++){let r=t[e];for(let e of["test","consequent","alternate"]){let i=r[e];if(n(i))return!0;"ConditionalExpression"===i.type&&t.push(i)}}return!1}(H))){;R=!0,V=!0;let e=e=>[y("("),f([d,e]),d,y(")")];M.push(" ? ","NullLiteral"===(b=L).type||"Literal"===b.type&&null===b.value||"Identifier"===b.type&&"undefined"===b.name?v(I):e(v(I))," : ",_.type===N.type||"NullLiteral"===(E=_).type||"Literal"===E.type&&null===E.value||"Identifier"===E.type&&"undefined"===E.name?v(j):e(v(j)))}else{let e=[p,"? ",L.type===N.type?y("","("):"",m(2,v(I)),L.type===N.type?y("",")"):"",p,": ",_.type===N.type?v(j):m(2,v(j))];M.push($.type!==N.type||$[j]===N||U?e:t.useTabs?g(f(e)):m(Math.max(0,t.tabWidth-2),e))}let K=[...B.map(e=>i(N[e])),i(L),i(_)].flat().some(e=>c(e)&&r(t.originalText,u(e),l(e))),J=!R&&(a($)||"NGPipeExpression"===$.type&&$.left===N)&&!$.computed,G=function(e){let t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let r,n=t;for(let t=0;!r;t++){let i=e.getParentNode(t);if(s(i)&&i.callee===n||a(i)&&i.object===n||"TSNonNullExpression"===i.type&&i.expression===n){n=i;continue}"NewExpression"===i.type&&i.callee===n||o(i)&&i.expression===n?(r=e.getParentNode(t+1),n=i):r=i}return n!==t&&r[x.get(r.type)]===n}(e),X=(w=[(C=e,A=v,P="ConditionalExpression"===(T=C.getValue()).type,F=C.getParentNode(),k=P?A("test"):[A("checkType")," ","extends"," ",A("extendsType")],F.type===T.type&&F[P?"alternate":"falseType"]===T?m(2,k):k),V?M:f(M),O&&J&&!G?d:""],$===q?h(w,{shouldBreak:K}):K?[w,D]:w);return U||G?h([f([d,X]),d]):X}}}}),r$=f({"src/language-js/print/statement.js"(e,t){v();var{builders:{hardline:r}}=M(),n=rf(),{getLeftSidePathName:i,hasNakedLeftSide:s,isJsxNode:a,isTheOnlyJsxElementInMarkdown:o,hasComment:u,CommentCheckFlags:l,isNextLineEmpty:c}=tz(),{shouldPrintParamsWithoutParens:p}=rN();function d(e,t,d,f){let m=e.getValue(),y=[],g="ClassBody"===m.type,D=function(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if("EmptyStatement"!==r.type)return r}}(m[f]);return e.each((e,f,m)=>{let v=e.getValue();if("EmptyStatement"===v.type)return;let x=d();!t.semi&&!g&&!o(t,e)&&function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>(function e(t,r){let o=t.getValue();switch(o.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!p(t,r))return!0;break;case"UnaryExpression":{let{prefix:e,operator:t}=o;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!o.object)return!0;break;case"Literal":if(o.regex)return!0;break;default:if(a(o))return!0}return!!n(t,r)||!!s(o)&&t.call(t=>e(t,r),...i(t,o))})(e,t),"expression")}(e,t)?u(v,l.Leading)?y.push(d([],{needsSemi:!0})):y.push(";",x):y.push(x),!t.semi&&g&&h(v)&&function(e,t){let{type:r,name:n}=e.key;if(!e.computed&&"Identifier"===r&&("static"===n||"get"===n||"set"===n||"accessor"===n)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){let e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(h(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;let e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case"TSIndexSignature":return!0}return!1}(v,m[f+1])&&y.push(";"),v!==D&&(y.push(r),c(v,t)&&y.push(r))},f),y}var h=e=>{let{type:t}=e;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t||"AccessorProperty"===t||"TSAbstractPropertyDefinition"===t||"TSAbstractAccessorProperty"===t};t.exports={printBody:function(e,t,r){return d(e,t,r,"body")},printSwitchCaseConsequent:function(e,t,r){return d(e,t,r,"consequent")}}}}),rU=f({"src/language-js/print/block.js"(e,t){v();var{printDanglingComments:r}=tF(),{isNonEmptyArray:n}=eo(),{builders:{hardline:i,indent:s}}=M(),{hasComment:a,CommentCheckFlags:o,isNextLineEmpty:u}=tz(),{printHardlineAfterHeritage:l}=rI(),{printBody:c}=r$();function p(e,t,s){let l=e.getValue(),p=n(l.directives),d=l.body.some(e=>"EmptyStatement"!==e.type),h=a(l,o.Dangling);if(!p&&!d&&!h)return"";let f=[];if(p&&e.each((e,r,n)=>{f.push(s()),(r<n.length-1||d||h)&&(f.push(i),u(e.getValue(),t)&&f.push(i))},"directives"),d&&f.push(c(e,t,s)),h&&f.push(r(e,t,!0)),"Program"===l.type){let t=e.getParentNode();t&&"ModuleExpression"===t.type||f.push(i)}return f}t.exports={printBlock:function(e,t,r){let a=e.getValue(),o=[];if("StaticBlock"===a.type&&o.push("static "),"ClassBody"===a.type&&n(a.body)){let t=e.getParentNode();o.push(l(t))}o.push("{");let u=p(e,t,r);if(u)o.push(s([i,u]),i);else{let t=e.getParentNode(),r=e.getParentNode(1);"ArrowFunctionExpression"!==t.type&&"FunctionExpression"!==t.type&&"FunctionDeclaration"!==t.type&&"ObjectMethod"!==t.type&&"ClassMethod"!==t.type&&"ClassPrivateMethod"!==t.type&&"ForStatement"!==t.type&&"WhileStatement"!==t.type&&"DoWhileStatement"!==t.type&&"DoExpression"!==t.type&&("CatchClause"!==t.type||r.finalizer)&&"TSModuleDeclaration"!==t.type&&"TSDeclareFunction"!==t.type&&"StaticBlock"!==a.type&&"ClassBody"!==a.type&&o.push(i)}return o.push("}"),o},printBlockBody:p}}}),rV=f({"src/language-js/print/typescript.js"(e,t){v();var{printDanglingComments:r}=tF(),{hasNewlineInRange:n}=eo(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l,conditionalGroup:c,ifBreak:p}}=M(),{isStringLiteral:d,getTypeScriptMappedTypeModifier:h,shouldPrintComma:f,isCallExpression:m,isMemberExpression:y}=tz(),g=rM(),{locStart:D,locEnd:x}=tb(),{printOptionalToken:b,printTypeScriptModifiers:E}=rx(),{printTernary:C}=rR(),{printFunctionParameters:S,shouldGroupFunctionParameters:A}=rT(),{printTemplateLiteral:w}=tH(),{printArrayItems:T}=rb(),{printObject:P}=rL(),{printClassProperty:F,printClassMethod:k}=rI(),{printTypeParameter:N,printTypeParameters:O}=rF(),{printPropertyKey:I}=rk(),{printFunction:j,printMethodInternal:B}=rN(),{printInterface:L}=rj(),{printBlock:_}=rU(),{printTypeAlias:R,printIntersectionType:$,printUnionType:U,printFunctionType:V,printTupleType:z,printIndexedAccessType:H,printJSDocType:W}=rP();t.exports={printTypescript:function(e,t,v){let M=e.getValue();if(!M.type.startsWith("TS"))return;if(g(M))return M.type.slice(2,-7).toLowerCase();let q=t.semi?";":"",K=[];switch(M.type){case"TSThisType":return"this";case"TSTypeAssertion":{let e=!("ArrayExpression"===M.expression.type||"ObjectExpression"===M.expression.type),t=u(["<",l([o,v("typeAnnotation")]),o,">"]),r=[p("("),l([o,v("expression")]),o,p(")")];return e?c([[t,v("expression")],[t,u(r,{shouldBreak:!0})],[t,v("expression")]]):u([t,v("expression")])}case"TSDeclareFunction":return j(e,v,t);case"TSExportAssignment":return["export = ",v("expression"),q];case"TSModuleBlock":return _(e,t,v);case"TSInterfaceBody":case"TSTypeLiteral":return P(e,t,v);case"TSTypeAliasDeclaration":return R(e,t,v);case"TSQualifiedName":return i(".",[v("left"),v("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return k(e,t,v);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return F(e,t,v);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return K.push(v("expression")),M.typeParameters&&K.push(v("typeParameters")),K;case"TSTemplateLiteralType":return w(e,v,t);case"TSNamedTupleMember":return[v("label"),M.optional?"?":"",": ",v("elementType")];case"TSRestType":return["...",v("typeAnnotation")];case"TSOptionalType":return[v("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return L(e,t,v);case"TSClassImplements":case"TSInstantiationExpression":return[v("expression"),v("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return O(e,t,v,"params");case"TSTypeParameter":return N(e,t,v);case"TSSatisfiesExpression":case"TSAsExpression":{let t="TSAsExpression"===M.type?"as":"satisfies";K.push(v("expression"),` ${t} `,v("typeAnnotation"));let r=e.getParentNode();return m(r)&&r.callee===M||y(r)&&r.object===M?u([l([o,...K]),o]):K}case"TSArrayType":return[v("elementType"),"[]"];case"TSPropertySignature":return M.readonly&&K.push("readonly "),K.push(I(e,t,v),b(e)),M.typeAnnotation&&K.push(": ",v("typeAnnotation")),M.initializer&&K.push(" = ",v("initializer")),K;case"TSParameterProperty":return M.accessibility&&K.push(M.accessibility+" "),M.export&&K.push("export "),M.static&&K.push("static "),M.override&&K.push("override "),M.readonly&&K.push("readonly "),K.push(v("parameter")),K;case"TSTypeQuery":return["typeof ",v("exprName"),v("typeParameters")];case"TSIndexSignature":{let r=e.getParentNode(),n=M.parameters.length>1?p(f(t)?",":""):"",s=u([l([o,i([", ",o],e.map(v,"parameters"))]),n,o]);return[M.export?"export ":"",M.accessibility?[M.accessibility," "]:"",M.static?"static ":"",M.readonly?"readonly ":"",M.declare?"declare ":"","[",M.parameters?s:"",M.typeAnnotation?"]: ":"]",M.typeAnnotation?v("typeAnnotation"):"","ClassBody"===r.type?q:""]}case"TSTypePredicate":return[M.asserts?"asserts ":"",v("parameterName"),M.typeAnnotation?[" is ",v("typeAnnotation")]:""];case"TSNonNullExpression":return[v("expression"),"!"];case"TSImportType":return[M.isTypeOf?"typeof ":"","import(",v(M.parameter?"parameter":"argument"),")",M.qualifier?[".",v("qualifier")]:"",O(e,t,v,"typeParameters")];case"TSLiteralType":return v("literal");case"TSIndexedAccessType":return H(e,t,v);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===M.type&&M.abstract&&K.push("abstract "),"TSCallSignatureDeclaration"!==M.type&&K.push("new "),K.push(u(S(e,v,t,!1,!0))),M.returnType||M.typeAnnotation){let e="TSConstructorType"===M.type;K.push(e?" => ":": ",v("returnType"),v("typeAnnotation"))}return K;case"TSTypeOperator":return[M.operator," ",v("typeAnnotation")];case"TSMappedType":{let i=n(t.originalText,D(M),x(M));return u(["{",l([t.bracketSpacing?s:o,v("typeParameter"),M.optional?h(M.optional,"?"):"",M.typeAnnotation?": ":"",v("typeAnnotation"),p(q)]),r(e,t,!0),t.bracketSpacing?s:o,"}"],{shouldBreak:i})}case"TSMethodSignature":{let r=M.kind&&"method"!==M.kind?`${M.kind} `:"";K.push(M.accessibility?[M.accessibility," "]:"",r,M.export?"export ":"",M.static?"static ":"",M.readonly?"readonly ":"",M.abstract?"abstract ":"",M.declare?"declare ":"",M.computed?"[":"",v("key"),M.computed?"]":"",b(e));let n=S(e,v,t,!1,!0),i=M.returnType?"returnType":"typeAnnotation",s=M[i],a=s?v(i):"",o=A(M,a);return K.push(o?u(n):n),s&&K.push(": ",u(a)),u(K)}case"TSNamespaceExportDeclaration":return K.push("export as namespace ",v("id")),t.semi&&K.push(";"),u(K);case"TSEnumDeclaration":return M.declare&&K.push("declare "),M.modifiers&&K.push(E(e,t,v)),M.const&&K.push("const "),K.push("enum ",v("id")," "),0===M.members.length?K.push(u(["{",r(e,t),o,"}"])):K.push(u(["{",l([a,T(e,t,"members",v),f(t,"es5")?",":""]),r(e,t,!0),a,"}"])),K;case"TSEnumMember":return M.computed?K.push("[",v("id"),"]"):K.push(v("id")),M.initializer&&K.push(" = ",v("initializer")),K;case"TSImportEqualsDeclaration":return M.isExport&&K.push("export "),K.push("import "),M.importKind&&"value"!==M.importKind&&K.push(M.importKind," "),K.push(v("id")," = ",v("moduleReference")),t.semi&&K.push(";"),u(K);case"TSExternalModuleReference":return["require(",v("expression"),")"];case"TSModuleDeclaration":{let r=e.getParentNode(),n=d(M.id),i="TSModuleDeclaration"===r.type,s=M.body&&"TSModuleDeclaration"===M.body.type;if(i)K.push(".");else{M.declare&&K.push("declare "),K.push(E(e,t,v));let r=t.originalText.slice(D(M),D(M.id));("Identifier"!==M.id.type||"global"!==M.id.name||/namespace|module/.test(r))&&K.push(n||/(?:^|\s)module(?:\s|$)/.test(r)?"module ":"namespace ")}return K.push(v("id")),s?K.push(v("body")):M.body?K.push(" ",u(v("body"))):K.push(q),K}case"TSConditionalType":return C(e,t,v);case"TSInferType":return["infer"," ",v("typeParameter")];case"TSIntersectionType":return $(e,t,v);case"TSUnionType":return U(e,t,v);case"TSFunctionType":return V(e,t,v);case"TSTupleType":return z(e,t,v);case"TSTypeReference":return[v("typeName"),O(e,t,v,"typeParameters")];case"TSTypeAnnotation":return v("typeAnnotation");case"TSEmptyBodyFunctionExpression":return B(e,t,v);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return W(e,v,"?");case"TSJSDocNonNullableType":return W(e,v,"!");default:throw Error(`Unknown TypeScript node type: ${JSON.stringify(M.type)}.`)}}}}}),rz=f({"src/language-js/print/comment.js"(e,t){v();var{hasNewline:r}=eo(),{builders:{join:n,hardline:i},utils:{replaceTextEndOfLine:s}}=M(),{isLineComment:a}=tz(),{locStart:o,locEnd:u}=tb(),l=tU();t.exports={printComment:function(e,t){let c=e.getValue();if(a(c))return t.originalText.slice(o(c),u(c)).trimEnd();if(l(c)){if(function(e){let t=`*${e.value}*`.split(`
|
|
95
|
-
`);return t.length>1&&t.every(e=>"*"===e.trim()[0])}(c)){let e=function(e){let t=e.value.split(`
|
|
96
|
-
`);return["/*",n(i,t.map((e,r)=>0===r?e.trimEnd():" "+(r<t.length-1?e.trim():e.trimStart()))),"*/"]}(c);return c.trailing&&!r(t.originalText,o(c),{backwards:!0})?[i,e]:e}let e=u(c),a="*-/"===t.originalText.slice(e-3,e);return["/*",s(c.value),a?"*-/":"*/"]}throw Error("Not a comment: "+JSON.stringify(c))}}}}),rH=f({"src/language-js/print/literal.js"(e,t){v();var{printString:r,printNumber:n}=eo(),{replaceTextEndOfLine:i}=B(),{printDirective:s}=rx();function a(e){return e.toLowerCase()}function o(e){let{pattern:t,flags:r}=e;return r=[...r].sort().join(""),`/${t}/${r}`}t.exports={printLiteral:function(e,t){let u=e.getNode();switch(u.type){case"RegExpLiteral":return o(u);case"BigIntLiteral":return a(u.bigint||u.extra.raw);case"NumericLiteral":return n(u.extra.raw);case"StringLiteral":return i(r(u.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(u.value);case"DecimalLiteral":return n(u.value)+"m";case"Literal":{if(u.regex)return o(u.regex);if(u.bigint)return a(u.raw);if(u.decimal)return n(u.decimal)+"m";let{value:l}=u;return"number"==typeof l?n(u.raw):"string"==typeof l?function(e){if("expression"!==e.getName())return;let t=e.getParentNode();return"ExpressionStatement"===t.type&&t.directive}(e)?s(u.raw,t):i(r(u.raw,t)):String(l)}}}}}}),rW=f({"src/language-js/printer-estree.js"(e,t){v();var{printDanglingComments:r}=tF(),{hasNewline:n}=eo(),{builders:{join:i,line:s,hardline:a,softline:o,group:u,indent:l},utils:{replaceTextEndOfLine:c}}=M(),p=tG(),d=tX(),{insertPragma:h}=rp(),f=rh(),m=rf(),y=rm(),{hasFlowShorthandAnnotationComment:g,hasComment:D,CommentCheckFlags:x,isTheOnlyJsxElementInMarkdown:b,isLineComment:E,isNextLineEmpty:C,needsHardlineAfterDanglingComment:S,hasIgnoreComment:A,isCallExpression:w,isMemberExpression:T,markerForIfWithoutBlockAndSameLineComment:P}=tz(),{locStart:F,locEnd:k}=tb(),N=tU(),{printHtmlBinding:O,isVueEventBindingExpression:I}=ry(),{printAngular:j}=rD(),{printJsx:B,hasJsxIgnoreComment:L}=rv(),{printFlow:_}=r_(),{printTypescript:R}=rV(),{printOptionalToken:$,printBindExpressionCallee:U,printTypeAnnotation:V,adjustClause:z,printRestSpread:H,printDefiniteToken:W,printDirective:q}=rx(),{printImportDeclaration:K,printExportDeclaration:J,printExportAllDeclaration:G,printModuleSpecifier:X}=rB(),{printTernary:Y}=rR(),{printTemplateLiteral:Q}=tH(),{printArray:Z}=rb(),{printObject:ee}=rL(),{printClass:et,printClassMethod:er,printClassProperty:en}=rI(),{printProperty:ei}=rk(),{printFunction:es,printArrowFunction:ea,printMethod:eu,printReturnStatement:el,printThrowStatement:ec}=rN(),{printCallExpression:ep}=rA(),{printVariableDeclarator:ed,printAssignmentExpression:eh}=rw(),{printBinaryishExpression:ef}=rg(),{printSwitchCaseConsequent:em}=r$(),{printMemberExpression:ey}=rC(),{printBlock:eg,printBlockBody:eD}=rU(),{printComment:ev}=rz(),{printLiteral:ex}=rH(),{printDecorators:eb}=rO();t.exports={preprocess:y,print:function(e,t,p,d){let h=function(e,t,p,d){let h=e.getValue(),f=t.semi?";":"";if(!h)return"";if("string"==typeof h)return h;for(let r of[ex,O,j,B,_,R]){let n=r(e,t,p);if("u">typeof n)return n}let m=[];switch(h.type){case"JsExpressionRoot":return p("node");case"JsonRoot":return[p("node"),a];case"File":return h.program&&h.program.interpreter&&m.push(p(["program","interpreter"])),m.push(p("program")),m;case"Program":return eD(e,t,p);case"EmptyStatement":return"";case"ExpressionStatement":{if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){let t=e.getParentNode();if("Program"===t.type&&1===t.body.length&&t.body[0]===h)return[p("expression"),I(h.expression)?";":""]}let n=r(e,t,!0,e=>{let{marker:t}=e;return t===P});return[p("expression"),b(t,e)?"":f,n?[" ",n]:""]}case"ParenthesizedExpression":return D(h.expression)||"ObjectExpression"!==h.expression.type&&"ArrayExpression"!==h.expression.type?u(["(",l([o,p("expression")]),o,")"]):["(",p("expression"),")"];case"AssignmentExpression":return eh(e,t,p);case"VariableDeclarator":return ed(e,t,p);case"BinaryExpression":case"LogicalExpression":return ef(e,t,p);case"AssignmentPattern":return[p("left")," = ",p("right")];case"OptionalMemberExpression":case"MemberExpression":return ey(e,t,p);case"MetaProperty":return[p("meta"),".",p("property")];case"BindExpression":return h.object&&m.push(p("object")),m.push(u(l([o,U(e,t,p)]))),m;case"Identifier":return[h.name,$(e),W(e),V(e,t,p)];case"V8IntrinsicIdentifier":return["%",h.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return H(e,t,p);case"FunctionDeclaration":case"FunctionExpression":return es(e,p,t,d);case"ArrowFunctionExpression":return ea(e,t,p,d);case"YieldExpression":return m.push("yield"),h.delegate&&m.push("*"),h.argument&&m.push(" ",p("argument")),m;case"AwaitExpression":if(m.push("await"),h.argument){m.push(" ",p("argument"));let t=e.getParentNode();if(w(t)&&t.callee===h||T(t)&&t.object===h){m=[l([o,...m]),o];let t=e.findAncestor(e=>"AwaitExpression"===e.type||"BlockStatement"===e.type);if(!t||"AwaitExpression"!==t.type)return u(m)}}return m;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return J(e,t,p);case"ExportAllDeclaration":return G(e,t,p);case"ImportDeclaration":return K(e,t,p);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return X(e,t,p);case"ImportAttribute":return[p("key"),": ",p("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return eg(e,t,p);case"ThrowStatement":return ec(e,t,p);case"ReturnStatement":return el(e,t,p);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ep(e,t,p);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return ee(e,t,p);case"ObjectProperty":case"Property":return h.method||"get"===h.kind||"set"===h.kind?eu(e,t,p):ei(e,t,p);case"ObjectMethod":return eu(e,t,p);case"Decorator":return["@",p("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Z(e,t,p);case"SequenceExpression":{let t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){let t=[];return e.each((e,r)=>{0===r?t.push(p()):t.push(",",l([s,p()]))},"expressions"),u(t)}return u(i([",",s],e.map(p,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[p("value"),f];case"DirectiveLiteral":return q(h.extra.raw,t);case"UnaryExpression":return m.push(h.operator),/[a-z]$/.test(h.operator)&&m.push(" "),D(h.argument)?m.push(u(["(",l([o,p("argument")]),o,")"])):m.push(p("argument")),m;case"UpdateExpression":return m.push(p("argument"),h.operator),h.prefix&&m.reverse(),m;case"ConditionalExpression":return Y(e,t,p);case"VariableDeclaration":{let t=e.map(p,"declarations"),r=e.getParentNode(),n="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,i=h.declarations.some(e=>e.init),o;return 1!==t.length||D(h.declarations[0])?t.length>0&&(o=l(t[0])):o=t[0],m=[h.declare?"declare ":"",h.kind,o?[" ",o]:"",l(t.slice(1).map(e=>[",",i&&!n?a:s,e]))],n&&r.body!==h||m.push(f),u(m)}case"WithStatement":return u(["with (",p("object"),")",z(h.body,p("body"))]);case"IfStatement":{let n=z(h.consequent,p("consequent")),i=u(["if (",u([l([o,p("test")]),o]),")",n]);if(m.push(i),h.alternate){let n=D(h.consequent,x.Trailing|x.Line)||S(h),i="BlockStatement"===h.consequent.type&&!n;m.push(i?" ":a),D(h,x.Dangling)&&m.push(r(e,t,!0),n?a:" "),m.push("else",u(z(h.alternate,p("alternate"),"IfStatement"===h.alternate.type)))}return m}case"ForStatement":{let n=z(h.body,p("body")),i=r(e,t,!0),a=i?[i,o]:"";return h.init||h.test||h.update?[a,u(["for (",u([l([o,p("init"),";",s,p("test"),";",s,p("update")]),o]),")",n])]:[a,u(["for (;;)",n])]}case"WhileStatement":return u(["while (",u([l([o,p("test")]),o]),")",z(h.body,p("body"))]);case"ForInStatement":return u(["for (",p("left")," in ",p("right"),")",z(h.body,p("body"))]);case"ForOfStatement":return u(["for",h.await?" await":""," (",p("left")," of ",p("right"),")",z(h.body,p("body"))]);case"DoWhileStatement":return m=[u(["do",z(h.body,p("body"))])],"BlockStatement"===h.body.type?m.push(" "):m.push(a),m.push("while (",u([l([o,p("test")]),o]),")",f),m;case"DoExpression":return[h.async?"async ":"","do ",p("body")];case"BreakStatement":return m.push("break"),h.label&&m.push(" ",p("label")),m.push(f),m;case"ContinueStatement":return m.push("continue"),h.label&&m.push(" ",p("label")),m.push(f),m;case"LabeledStatement":return"EmptyStatement"===h.body.type?[p("label"),":;"]:[p("label"),": ",p("body")];case"TryStatement":return["try ",p("block"),h.handler?[" ",p("handler")]:"",h.finalizer?[" finally ",p("finalizer")]:""];case"CatchClause":if(h.param){let e=D(h.param,e=>!N(e)||e.leading&&n(t.originalText,k(e))||e.trailing&&n(t.originalText,F(e),{backwards:!0})),r=p("param");return["catch ",e?["(",l([o,r]),o,") "]:["(",r,") "],p("body")]}return["catch ",p("body")];case"SwitchStatement":return[u(["switch (",l([o,p("discriminant")]),o,")"])," {",h.cases.length>0?l([a,i(a,e.map((e,r,n)=>{let i=e.getValue();return[p(),r!==n.length-1&&C(i,t)?a:""]},"cases"))]):"",a,"}"];case"SwitchCase":{h.test?m.push("case ",p("test"),":"):m.push("default:"),D(h,x.Dangling)&&m.push(" ",r(e,t,!0));let n=h.consequent.filter(e=>"EmptyStatement"!==e.type);if(n.length>0){let r=em(e,t,p);m.push(1===n.length&&"BlockStatement"===n[0].type?[" ",r]:l([a,r]))}return m}case"DebuggerStatement":return["debugger",f];case"ClassDeclaration":case"ClassExpression":return et(e,t,p);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return er(e,t,p);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return en(e,t,p);case"TemplateElement":return c(h.value.raw);case"TemplateLiteral":return Q(e,p,t);case"TaggedTemplateExpression":return[p("tag"),p("typeParameters"),p("quasi")];case"PrivateIdentifier":return["#",p("name")];case"PrivateName":return["#",p("id")];case"InterpreterDirective":return m.push("#!",h.value,a),C(h,t)&&m.push(a),m;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{m.push("module {");let e=p("body");return e&&m.push(l([a,e]),a),m.push("}"),m}default:throw Error("unknown type: "+JSON.stringify(h.type))}}(e,t,p,d);if(!h)return"";let f=e.getValue(),{type:y}=f;if("ClassMethod"===y||"ClassPrivateMethod"===y||"ClassProperty"===y||"ClassAccessorProperty"===y||"AccessorProperty"===y||"TSAbstractAccessorProperty"===y||"PropertyDefinition"===y||"TSAbstractPropertyDefinition"===y||"ClassPrivateProperty"===y||"MethodDefinition"===y||"TSAbstractMethodDefinition"===y||"TSDeclareMethod"===y)return h;let v=[h],E=eb(e,t,p),A="ClassExpression"===f.type&&E;if(E&&(v=[...E,h],!A))return u(v);if(!m(e,t))return d&&d.needsSemi&&v.unshift(";"),1===v.length&&v[0]===h?h:v;if(A&&(v=[l([s,...v])]),v.unshift("("),d&&d.needsSemi&&v.unshift(";"),g(f)){let[e]=f.trailingComments;v.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return A&&v.push(s),v.push(")"),v},embed:p,insertPragma:h,massageAstNode:d,hasPrettierIgnore:e=>A(e)||L(e),willPrintOwnComments:f.willPrintOwnComments,canAttachComment:function(e){return e.type&&!N(e)&&!E(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:ev,isBlockComment:N,handleComments:{avoidAstMutation:!0,ownLine:f.handleOwnLineComment,endOfLine:f.handleEndOfLineComment,remaining:f.handleRemainingComment},getCommentChildNodes:f.getCommentChildNodes}}}),rq=f({"src/language-js/printer-estree-json.js"(e,t){v();var{builders:{hardline:r,indent:n,join:i}}=M(),s=rm();function a(e){return"key"===e.getName()&&"ObjectProperty"===e.getParentNode().type}var o=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function u(e,t){let{type:r}=e;if("ObjectProperty"===r){let{key:r}=e;"Identifier"===r.type?t.key={type:"StringLiteral",value:r.name}:"NumericLiteral"===r.type&&(t.key={type:"StringLiteral",value:String(r.value)});return}if("UnaryExpression"===r&&"+"===e.operator)return t.argument;if("ArrayExpression"===r){for(let[r,n]of e.elements.entries())null===n&&t.elements.splice(r,0,{type:"NullLiteral"});return}if("TemplateLiteral"===r)return{type:"StringLiteral",value:e.quasis[0].value.cooked}}u.ignoredProperties=o,t.exports={preprocess:s,print:function(e,t,s){let o=e.getValue();switch(o.type){case"JsonRoot":return[s("node"),r];case"ArrayExpression":if(0===o.elements.length)return"[]";return["[",n([r,i([",",r],e.map(()=>null===e.getValue()?"null":s(),"elements"))]),r,"]"];case"ObjectExpression":return 0===o.properties.length?"{}":["{",n([r,i([",",r],e.map(s,"properties"))]),r,"}"];case"ObjectProperty":return[s("key"),": ",s("value")];case"UnaryExpression":return["+"===o.operator?"":o.operator,s("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return o.value?"true":"false";case"StringLiteral":return JSON.stringify(o.value);case"NumericLiteral":return a(e)?JSON.stringify(String(o.value)):JSON.stringify(o.value);case"Identifier":return a(e)?JSON.stringify(o.name):o.name;case"TemplateLiteral":return s(["quasis",0]);case"TemplateElement":return JSON.stringify(o.value.cooked);default:throw Error("unknown type: "+JSON.stringify(o.type))}},massageAstNode:u}}}),rK=f({"src/common/common-options.js"(e,t){v();var r="Common";t.exports={bracketSpacing:{since:"0.0.0",category:r,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:r,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:r,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:r,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:r,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),rJ=f({"src/language-js/options.js"(e,t){v();var r=rK(),n="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:n,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:r.bracketSameLine,bracketSpacing:r.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:n,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:n,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:r.singleQuote,jsxSingleQuote:{since:"1.15.0",category:n,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:n,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:n,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:r.singleAttributePerLine}}}),rG=f({"src/language-js/parse/parsers.js"(){v()}}),rX=f({"node_modules/linguist-languages/data/JavaScript.json"(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),rY=f({"node_modules/linguist-languages/data/TypeScript.json"(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),rQ=f({"node_modules/linguist-languages/data/TSX.json"(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),rZ=f({"node_modules/linguist-languages/data/JSON.json"(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),r0=f({"node_modules/linguist-languages/data/JSON with Comments.json"(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),r1=f({"node_modules/linguist-languages/data/JSON5.json"(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),r2=f({"src/language-js/index.js"(e,t){v();var r=tL(),n=rW(),i=rq(),s=rJ(),a=rG(),o=[r(rX(),e=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter(e=>".jsx"!==e),".wxs"]})),r(rX(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),r(rX(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),r(rY(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),r(rQ(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),r(rZ(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),r(rZ(),e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter(e=>".jsonl"!==e)})),r(r0(),e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc",".swcrc"]})),r(r1(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))];t.exports={languages:o,options:s,printers:{estree:n,"estree-json":i},parsers:a}}}),r3=f({"src/language-css/clean.js"(e,t){v();var{isFrontMatterNode:r}=eo(),n=A(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function s(e,t,i){if(r(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||r(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&n(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=function(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(e,t,r)=>{let n=Number(t);return Number.isNaN(n)?e:n+r.toLowerCase()})),"selector-tag"===e.type){let r=e.value.toLowerCase();["from","to"].includes(r)&&(t.value=r)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){let r=e.groups.findIndex(e=>"value-number"===e.type&&"..."===e.unit);-1!==r&&(t.groups[r].unit="",t.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if("value-comma_group"===e.type&&e.groups.some(e=>"value-atword"===e.type&&e.value.endsWith("[")||"value-word"===e.type&&e.value.startsWith("]")))return{type:"value-atword",value:e.groups.map(e=>e.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}s.ignoredProperties=i;t.exports=s}}),r8=f({"src/utils/front-matter/print.js"(e,t){v();var{builders:{hardline:r,markAsRoot:n}}=M();t.exports=function(e,t){if("yaml"===e.lang){let i=e.value.trim(),s=i?t(i,{parser:"yaml"},{stripTrailingHardline:!0}):"";return n([e.startDelimiter,r,s,s?r:"",e.endDelimiter])}}}}),r4=f({"src/language-css/embed.js"(e,t){v();var{builders:{hardline:r}}=M(),n=r8();t.exports=function(e,t,i){let s=e.getValue();if("front-matter"===s.type){let e=n(s,i);return e?[e,r]:""}}}}),r6=f({"src/utils/front-matter/parse.js"(e,t){v();var r=RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");t.exports=function(e){let t=e.match(r);if(!t)return{content:e};let{startDelimiter:n,language:i,value:s="",endDelimiter:a}=t.groups,o=i.trim()||"yaml";if("+++"===n&&(o="toml"),"yaml"!==o&&n!==a)return{content:e};let[u]=t;return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:n,endDelimiter:a,raw:u.replace(/\n$/,"")},content:u.replace(/[^\n]/g," ")+e.slice(u.length)}}}}),r7=f({"src/language-css/pragma.js"(e,t){v();var r=rp(),n=r6();t.exports={hasPragma:function(e){return r.hasPragma(n(e).content)},insertPragma:function(e){let{frontMatter:t,content:i}=n(e);return(t?t.raw+`
|
|
97
|
-
|
|
98
|
-
`:"")+r.insertPragma(i)}}}}),r5=f({"src/language-css/utils/index.js"(e,t){v();var r=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function n(e,t){let r=Array.isArray(t)?t:[t],n=-1,i;for(;i=e.getParentNode(++n);)if(r.includes(i.type))return n;return -1}function i(e,t){let r=n(e,t);return -1===r?null:e.getParentNode(r)}var s=new Set(["initial","inherit","unset","revert"]);function a(e){return"value-operator"===e.type&&"*"===e.value}function o(e){return"value-operator"===e.type&&"/"===e.value}function u(e){return"value-operator"===e.type&&"+"===e.value}function l(e){return"value-operator"===e.type&&"-"===e.value}function c(e){return"value-operator"===e.type&&"%"===e.value}function p(e){var t,r;return"value-comma_group"===e.type&&(null===(t=e.groups)||void 0===t||null===(r=t[1])||void 0===r?void 0:r.type)==="value-colon"}function d(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&p(e.groups[0])}function h(e){return(null==e?void 0:e.type)==="value-colon"}t.exports={getAncestorCounter:n,getAncestorNode:i,getPropOfDeclNode:function(e){var t;let r=i(e,"css-decl");return null==r||null===(t=r.prop)||void 0===t?void 0:t.toLowerCase()},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){var r;let n=i(e,"value-func");return(null==n||null===(r=n.value)||void 0===r?void 0:r.toLowerCase())===t},insideICSSRuleNode:function(e){var t;let r=i(e,"css-rule"),n=null==r||null===(t=r.raws)||void 0===t?void 0:t.selector;return n&&(n.startsWith(":import")||n.startsWith(":export"))},insideAtRuleNode:function(e,t){let r=Array.isArray(t)?t:[t],n=i(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){let t=e.getValue(),r=i(e,"css-atrule");return(null==r?void 0:r.name)==="import"&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){let r=i(e,"css-atrule");return(null==r?void 0:r.name)&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return s.has(e.toLowerCase())},isLastNode:function(e,t){var r;let n=null===(r=e.getParentNode())||void 0===r?void 0:r.nodes;return n&&n.indexOf(t)===n.length-1},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){let{selector:t}=e;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:a,isDivisionNode:o,isAdditionNode:u,isSubtractionNode:l,isModuloNode:c,isMathOperatorNode:function(e){return a(e)||o(e)||u(e)||l(e)||c(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){var t,r;return(null===(t=e.value)||void 0===t?void 0:t.type)==="value-root"&&(null===(r=e.value.group)||void 0===r?void 0:r.type)==="value-value"&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){var t,r,n;return(null===(t=e.value)||void 0===t||null===(r=t.group)||void 0===r||null===(n=r.group)||void 0===n?void 0:n.type)==="value-paren_group"&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.before)===""},isDetachedRulesetCallNode:function(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&(null==t?void 0:t.type)==="value-word"&&!t.raws.before},isKeyValuePairNode:p,isKeyValuePairInParenGroupNode:d,isKeyInValuePairNode:function(e,t){if(!p(t))return!1;let{groups:r}=t,n=r.indexOf(e);return -1!==n&&h(r[n+1])},isSCSSMapItemNode:function(e){var t;let r=e.getValue();if(0===r.groups.length)return!1;let n=e.getParentNode(1);if(!d(r)&&!(n&&d(n)))return!1;let s=i(e,"css-decl");return!!(null!=s&&null!==(t=s.prop)&&void 0!==t&&t.startsWith("$")||d(n)||"value-func"===n.type)},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:h,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&r.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},isAtWordPlaceholderNode:function(e){return(null==e?void 0:e.type)==="value-atword"&&e.value.startsWith("prettier-placeholder-")},isConfigurationNode:function(e,t){var r,n;if((null===(r=e.open)||void 0===r?void 0:r.value)!=="("||(null===(n=e.close)||void 0===n?void 0:n.value)!==")"||e.groups.some(e=>"value-comma_group"!==e.type))return!1;if("value-comma_group"===t.type){let r=t.groups.indexOf(e)-1,n=t.groups[r];if((null==n?void 0:n.type)==="value-word"&&"with"===n.value)return!0}return!1},isParenGroupNode:function(e){var t,r;return"value-paren_group"===e.type&&(null===(t=e.open)||void 0===t?void 0:t.value)==="("&&(null===(r=e.close)||void 0===r?void 0:r.value)===")"}}}}),r9=f({"src/utils/line-column-to-index.js"(e,t){v(),t.exports=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf(`
|
|
99
|
-
`,r)+1;return r+e.column}}}),ne=f({"src/language-css/loc.js"(e,t){v();var{skipEverythingButNewLine:r}=er(),n=A(),i=r9();function s(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?i(e.source.start,t)-1:null}function a(e,t){if("css-comment"===e.type&&e.inline)return r(t,e.source.startOffset);let s=e.nodes&&n(e.nodes);return s&&e.source&&!e.source.end&&(e=s),e.source&&e.source.end?i(e.source.end,t):null}t.exports={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,r){for(let n in t.source&&(t.source.startOffset=s(t,r),t.source.endOffset=a(t,r)),t){let i=t[n];"source"!==n&&i&&"object"==typeof i&&("value-root"===i.type||"value-unknown"===i.type?function e(t,r,n){for(let i in t.source&&(t.source.startOffset=s(t,n)+r,t.source.endOffset=a(t,n)+r),t){let s=t[i];"source"!==i&&s&&"object"==typeof s&&e(s,r,n)}}(i,function(e){let t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}(t),i.text||i.value):e(i,r))}},replaceQuotesInInlineComments:function(e){let t="initial",r="initial",n,i=!1,s=[];for(let a=0;a<e.length;a++){let o=e[a];switch(t){case"initial":if("'"===o){t="single-quotes";continue}if('"'===o){t="double-quotes";continue}if(("u"===o||"U"===o)&&"url("===e.slice(a,a+4).toLowerCase()){t="url",a+=3;continue}if("*"===o&&"/"===e[a-1]){t="comment-block";continue}"/"===o&&"/"===e[a-1]&&(t="comment-inline",n=a-1);continue;case"single-quotes":if("'"===o&&"\\"!==e[a-1]&&(t=r,r="initial"),o===`
|
|
100
|
-
`||"\r"===o)return e;continue;case"double-quotes":if('"'===o&&"\\"!==e[a-1]&&(t=r,r="initial"),o===`
|
|
101
|
-
`||"\r"===o)return e;continue;case"url":if(")"===o&&(t="initial"),o===`
|
|
102
|
-
`||"\r"===o)return e;if("'"===o){t="single-quotes",r="url";continue}'"'===o&&(t="double-quotes",r="url");continue;case"comment-block":"/"===o&&"*"===e[a-1]&&(t="initial");continue;case"comment-inline":('"'===o||"'"===o||"*"===o)&&(i=!0),(o===`
|
|
103
|
-
`||"\r"===o)&&(i&&s.push([n,a]),t="initial",i=!1);continue}}for(let[t,r]of s)e=e.slice(0,t)+e.slice(t,r).replace(/["'*]/g," ")+e.slice(r);return e}}}}),nt=f({"src/language-css/utils/is-less-parser.js"(e,t){v();t.exports=function(e){return"css"===e.parser||"less"===e.parser}}}),nr=f({"src/language-css/utils/is-scss.js"(e,t){v();t.exports=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}}}),nn=f({"src/language-css/utils/css-units.evaluate.js"(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),ni=f({"src/language-css/utils/print-unit.js"(e,t){v();var r=nn();t.exports=function(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:e}}}),ns=f({"src/language-css/printer-postcss.js"(e,t){v();var r=A(),{printNumber:n,printString:i,hasNewline:s,isFrontMatterNode:a,isNextLineEmpty:o,isNonEmptyArray:u}=eo(),{builders:{join:l,line:c,hardline:p,softline:d,group:h,fill:f,indent:m,dedent:y,ifBreak:g,breakParent:D},utils:{removeLines:x,getDocParts:b}}=M(),E=r3(),C=r4(),{insertPragma:S}=r7(),{getAncestorNode:w,getPropOfDeclNode:T,maybeToLowerCase:P,insideValueFunctionNode:F,insideICSSRuleNode:k,insideAtRuleNode:N,insideURLFunctionInImportAtRuleNode:O,isKeyframeAtRuleKeywords:I,isWideKeywords:j,isLastNode:B,isSCSSControlDirectiveNode:L,isDetachedRulesetDeclarationNode:_,isRelationalOperatorNode:R,isEqualityOperatorNode:$,isMultiplicationNode:U,isDivisionNode:V,isAdditionNode:z,isSubtractionNode:H,isMathOperatorNode:W,isEachKeywordNode:q,isForKeywordNode:K,isURLFunctionNode:J,isIfElseKeywordNode:G,hasComposesNode:X,hasParensAroundNode:Y,hasEmptyRawBefore:Q,isKeyValuePairNode:Z,isKeyInValuePairNode:ee,isDetachedRulesetCallNode:et,isTemplatePlaceholderNode:er,isTemplatePropNode:en,isPostcssSimpleVarNode:ei,isSCSSMapItemNode:es,isInlineValueCommentNode:ea,isHashNode:eu,isLeftCurlyBraceNode:el,isRightCurlyBraceNode:ec,isWordNode:ep,isColonNode:ed,isMediaAndSupportsKeywords:eh,isColorAdjusterFuncNode:ef,lastLineHasInlineComment:em,isAtWordPlaceholderNode:ey,isConfigurationNode:eg,isParenGroupNode:eD}=r5(),{locStart:ev,locEnd:ex}=ne(),eb=nt(),eE=nr(),eC=ni();function eS(e,t,r){let n=[];return e.each((e,i,u)=>{let l=u[i-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){let r=e.getValue();n.push(t.originalText.slice(ev(r),ex(r)))}else n.push(r());i!==u.length-1&&(("css-comment"!==u[i+1].type||s(t.originalText,ev(u[i+1]),{backwards:!0})||a(u[i]))&&("css-atrule"!==u[i+1].type||"else"!==u[i+1].name||"css-comment"===u[i].type)?(n.push(t.__isHTMLStyleAttribute?c:p),o(t.originalText,e.getValue(),ex)&&!a(u[i])&&n.push(p)):n.push(" "))},"nodes"),n}var eA=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,ew=RegExp(eA.source+`|(${/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source})?(${/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source})(${/[A-Za-z]+/g.source})?`,"g");function eT(e,t){return e.replace(eA,e=>i(e,t))}function eP(e){return e.replace(ew,(e,t,r,n,i)=>!r&&n?eF(n)+P(i||""):e)}function eF(e){return n(e).replace(/\.0(?=$|e)/,"")}t.exports={print:function(e,t,n){var s,a,v;let E=e.getValue();if(!E)return"";if("string"==typeof E)return E;switch(E.type){case"front-matter":return[E.raw,p];case"css-root":{let r=eS(e,t,n),i=E.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r,i?` ${i}`:"",b(r).length>0?p:""]}case"css-comment":{let e=E.inline||E.raws.inline,r=t.originalText.slice(ev(E),ex(E));return e?r.trimEnd():r}case"css-rule":return[n("selector"),E.important?" !important":"",E.nodes?[E.selector&&"selector-unknown"===E.selector.type&&em(E.selector.value)?c:" ","{",E.nodes.length>0?m([p,eS(e,t,n)]):"",p,"}",_(E)?";":""]:";"];case"css-decl":{let r=e.getParentNode(),{between:i}=E.raws,s=i.trim(),a=":"===s,o=X(E)?x(n("value")):n("value");return!a&&em(s)&&(o=m([p,y(o)])),[E.raws.before.replace(/[\s;]/g,""),"css-atrule"===r.type&&r.variable||k(e)?E.prop:P(E.prop),s.startsWith("//")?" ":"",s,E.extend?"":" ",eb(t)&&E.extend&&E.selector?["extend(",n("selector"),")"]:"",o,E.raws.important?E.raws.important.replace(/\s*!\s*important/i," !important"):E.important?" !important":"",E.raws.scssDefault?E.raws.scssDefault.replace(/\s*!default/i," !default"):E.scssDefault?" !default":"",E.raws.scssGlobal?E.raws.scssGlobal.replace(/\s*!global/i," !global"):E.scssGlobal?" !global":"",E.nodes?[" {",m([d,eS(e,t,n)]),d,"}"]:en(E)&&!r.raws.semicolon&&";"!==t.originalText[ex(E)-1]?"":t.__isHTMLStyleAttribute&&B(e,E)?g(";"):";"]}case"css-atrule":{let r=e.getParentNode(),i=er(E)&&!r.raws.semicolon&&";"!==t.originalText[ex(E)-1];if(eb(t)){if(E.mixin)return[n("selector"),E.important?" !important":"",i?"":";"];if(E.function)return[E.name,n("params"),i?"":";"];if(E.variable)return["@",E.name,": ",E.value?n("value"):"",E.raws.between.trim()?E.raws.between.trim()+" ":"",E.nodes?["{",m([E.nodes.length>0?d:"",eS(e,t,n)]),d,"}"]:"",i?"":";"]}return["@",et(E)||E.name.endsWith(":")?E.name:P(E.name),E.params?[et(E)?"":er(E)?""===E.raws.afterName?"":E.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(E.raws.afterName)?[p,p]:/^\s*\n/.test(E.raws.afterName)?p:" ":" ",n("params")]:"",E.selector?m([" ",n("selector")]):"",E.value?h([" ",n("value"),L(E)?Y(E)?" ":c:""]):"else"===E.name?" ":"",E.nodes?[L(E)?"":E.selector&&!E.selector.nodes&&"string"==typeof E.selector.value&&em(E.selector.value)||!E.selector&&"string"==typeof E.params&&em(E.params)?c:" ","{",m([E.nodes.length>0?d:"",eS(e,t,n)]),d,"}"]:i?"":";"]}case"media-query-list":{let t=[];return e.each(e=>{let r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())},"nodes"),h(m(l(c,t)))}case"media-query":return[l(" ",e.map(n,"nodes")),B(e,E)?"":","];case"media-type":case"media-value":return eP(eT(E.value,t));case"media-feature-expression":return E.nodes?["(",...e.map(n,"nodes"),")"]:E.value;case"media-feature":return P(eT(E.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[E.value," "];case"media-keyword":case"selector-string":return eT(E.value,t);case"media-url":return eT(E.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return E.value;case"selector-root":return h([N(e,"custom-selector")?[w(e,"css-atrule").customSelector,c]:"",l([",",N(e,["extend","custom-selector","nest"])?c:p],e.map(n,"nodes"))]);case"selector-selector":return h(m(e.map(n,"nodes")));case"selector-tag":{let t=e.getParentNode(),r=t&&t.nodes.indexOf(E),n=r&&t.nodes[r-1];return[E.namespace?[!0===E.namespace?"":E.namespace.trim(),"|"]:"","selector-nesting"===n.type?E.value:eP(I(e,E.value)?E.value.toLowerCase():E.value)]}case"selector-id":return["#",E.value];case"selector-class":return[".",eP(eT(E.value,t))];case"selector-attribute":return["[",E.namespace?[!0===E.namespace?"":E.namespace.trim(),"|"]:"",E.attribute.trim(),null!==(s=E.operator)&&void 0!==s?s:"",E.value?function(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}(eT(E.value.trim(),t),t):"",E.insensitive?" i":"","]"];case"selector-combinator":if("+"===E.value||">"===E.value||"~"===E.value||">>>"===E.value){let t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===E?"":c,E.value,B(e,E)?"":" "]}return[E.value.trim().startsWith("(")?c:"",eP(eT(E.value.trim(),t))||c];case"selector-universal":return[E.namespace?[!0===E.namespace?"":E.namespace.trim(),"|"]:"",E.value];case"selector-pseudo":return[P(E.value),u(E.nodes)?h(["(",m([d,l([",",c],e.map(n,"nodes"))]),d,")"]):""];case"selector-unknown":{let r=w(e,"css-rule");if(r&&r.isSCSSNesterProperty)return eP(eT(P(E.value),t));let n=e.getParentNode();if(n.raws&&n.raws.selector){let e=ev(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.getParentNode(1);if("value-paren_group"===n.type&&i&&"value-func"===i.type&&"selector"===i.value){let e=ex(n.open)+1,r=ev(n.close),i=t.originalText.slice(e,r).trim();return em(i)?[D,i]:i}return E.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(ev(E),ex(E));case"value-comma_group":{let r=e.getParentNode(),i=e.getParentNode(1),s=T(e),o=s&&"value-value"===r.type&&("grid"===s||s.startsWith("grid-template")),u=w(e,"css-atrule"),l=u&&L(u),g=E.groups.some(e=>ea(e)),v=e.map(n,"groups"),x=[],b=F(e,"url"),C=!1,S=!1;for(let n=0;n<E.groups.length;++n){x.push(v[n]);let s=E.groups[n-1],h=E.groups[n],f=E.groups[n+1],m=E.groups[n+2];if(b){(f&&z(f)||z(h))&&x.push(" ");continue}if(N(e,"forward")&&"value-word"===h.type&&h.value&&void 0!==s&&"value-word"===s.type&&"as"===s.value&&"value-operator"===f.type&&"*"===f.value||!f||"value-word"===h.type&&h.value.endsWith("-")&&ey(f))continue;if("value-string"===h.type&&h.quoted){let e=h.value.lastIndexOf("#{"),t=h.value.lastIndexOf("}");-1!==e&&-1!==t?C=e>t:-1!==e?C=!0:-1!==t&&(C=!1)}if(C||ed(h)||ed(f)||"value-atword"===h.type&&(""===h.value||h.value.endsWith("["))||"value-word"===f.type&&f.value.startsWith("]")||"~"===h.value||h.value&&h.value.includes("\\")&&f&&"value-comment"!==f.type||s&&s.value&&s.value.indexOf("\\")===s.value.length-1&&"value-operator"===h.type&&"/"===h.value||"\\"===h.value||ei(h,f)||eu(h)||el(h)||ec(f)||el(f)&&Q(f)||ec(h)&&Q(f)||"--"===h.value&&eu(f))continue;let g=W(h),D=W(f);if((g&&eu(f)||D&&ec(h))&&Q(f)||!s&&V(h)||F(e,"calc")&&(z(h)||z(f)||H(h)||H(f))&&Q(f))continue;let A=(z(h)||H(h))&&0===n&&("value-number"===f.type||f.isHex)&&i&&ef(i)&&!Q(f),w=m&&"value-func"===m.type||m&&ep(m)||"value-func"===h.type||ep(h),T="value-func"===f.type||ep(f)||s&&"value-func"===s.type||s&&ep(s);if(!(!(U(f)||U(h))&&!F(e,"calc")&&!A&&(V(f)&&!w||V(h)&&!T||z(f)&&!w||z(h)&&!T||H(f)||H(h))&&(Q(f)||g&&(!s||s&&W(s))))&&!(("scss"===t.parser||"less"===t.parser)&&g&&"-"===h.value&&eD(f)&&ex(h)===ev(f.open)&&"("===f.open.value)){if(ea(h)){if("value-paren_group"===r.type){x.push(y(p));continue}x.push(p);continue}if(l&&($(f)||R(f)||G(f)||q(h)||K(h))||u&&"namespace"===u.name.toLowerCase()){x.push(" ");continue}if(o){h.source&&f.source&&h.source.start.line!==f.source.start.line?(x.push(p),S=!0):x.push(" ");continue}if(D){x.push(" ");continue}if(!(f&&"..."===f.value)&&!(ey(h)&&ey(f)&&ex(h)===ev(f))){if(ey(h)&&eD(f)&&ex(h)===ev(f.open)){x.push(d);continue}if("with"===h.value&&eD(f)){x.push(" ");continue}null!==(a=h.value)&&void 0!==a&&a.endsWith("#")&&"{"===f.value&&eD(f.group)||x.push(c)}}}return g&&x.push(D),S&&x.unshift(p),l?h(m(x)):O(e)?h(f(x)):h(m(f(x)))}case"value-paren_group":{;let i=e.getParentNode();if(i&&J(i)&&(1===E.groups.length||E.groups.length>0&&"value-comma_group"===E.groups[0].type&&E.groups[0].groups.length>0&&"value-word"===E.groups[0].groups[0].type&&E.groups[0].groups[0].value.startsWith("data:")))return[E.open?n("open"):"",l(",",e.map(n,"groups")),E.close?n("close"):""];if(!E.open){let t=e.map(n,"groups"),r=[];for(let e=0;e<t.length;e++)0!==e&&r.push([",",c]),r.push(t[e]);return h(m(f(r)))}let s=es(e),a=r(E.groups),D=a&&"value-comment"===a.type,x=ee(E,i),C=eg(E,i),S=h([E.open?n("open"):"",m([d,l([c],e.map((e,i)=>{let s=e.getValue(),a=i===E.groups.length-1,l=[n(),a?"":","];if(Z(s)&&"value-comma_group"===s.type&&s.groups&&"value-paren_group"!==s.groups[0].type&&s.groups[2]&&"value-paren_group"===s.groups[2].type){let e=b(l[0].contents.contents);e[1]=h(e[1]),l=[h(y(l))]}if(!a&&"value-comma_group"===s.type&&u(s.groups)){let e=r(s.groups);!e.source&&e.close&&(e=e.close),e.source&&o(t.originalText,e,ex)&&l.push(p)}return l},"groups"))]),g(!D&&eE(t.parser,t.originalText)&&s&&("es5"===(v=t).trailingComma||"all"===v.trailingComma)?",":""),d,E.close?n("close"):""],{shouldBreak:C||s&&!x});return C||x?y(S):S}case"value-func":return[E.value,N(e,"supports")&&eh(E)?" ":"",n("group")];case"value-number":return[eF(E.value),eC(E.unit)];case"value-word":return E.isColor&&E.isHex||j(E.value)?E.value.toLowerCase():E.value;case"value-colon":{let t=e.getParentNode(),n=t&&t.groups.indexOf(E),i=n&&t.groups[n-1];return[E.value,i&&"string"==typeof i.value&&"\\"===r(i.value)||F(e,"url")?"":c]}case"value-string":return i(E.raws.quote+E.value+E.raws.quote,t);case"value-atword":return["@",E.value];default:throw Error(`Unknown postcss type ${JSON.stringify(E.type)}`)}},embed:C,insertPragma:S,massageAstNode:E}}}),na=f({"src/language-css/options.js"(e,t){v();var r=rK();t.exports={singleQuote:r.singleQuote}}}),no=f({"src/language-css/parsers.js"(){v()}}),nu=f({"node_modules/linguist-languages/data/CSS.json"(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),nl=f({"node_modules/linguist-languages/data/PostCSS.json"(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),nc=f({"node_modules/linguist-languages/data/Less.json"(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),np=f({"node_modules/linguist-languages/data/SCSS.json"(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),nd=f({"src/language-css/index.js"(e,t){v();var r=tL(),n=ns(),i=na(),s=no(),a=[r(nu(),e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),r(nl(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),r(nc(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),r(np(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))];t.exports={languages:a,options:i,printers:{postcss:n},parsers:s}}}),nh=f({"src/language-handlebars/loc.js"(e,t){v();t.exports={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}}}}),nf=f({"src/language-handlebars/clean.js"(e,t){function r(e,t){if("TextNode"===e.type){let r=e.chars.trim();if(!r)return null;t.chars=r.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}v(),r.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=r}}),nm=f({"src/language-handlebars/html-void-elements.evaluate.js"(e,t){t.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),ny=f({"src/language-handlebars/utils.js"(e,t){v();var r=A(),n=nm();function i(e){return e.toUpperCase()===e}var s=new Set(n);function a(e){return o(e,["TextNode"])&&!/\S/.test(e.chars)}function o(e,t){return e&&t.includes(e.type)}function u(e,t){return o(e.getParentNode(0),t)}function l(e,t){var r,n,i,s;let a=e.getValue(),o=null!==(r=e.getParentNode(0))&&void 0!==r?r:{},u=null!==(n=null!==(i=null!==(s=o.children)&&void 0!==s?s:o.body)&&void 0!==i?i:o.parts)&&void 0!==n?n:[],l=u.indexOf(a);return -1!==l&&u[l+t]}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return l(e,-t)}function p(e){return l(e,1)}function d(e){return o(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}t.exports={getNextNode:p,getPreviousNode:c,hasPrettierIgnore:function(e){let t=e.getValue(),r=c(e,2);return d(t)||d(r)},isLastNodeOfSiblings:function(e){let t=e.getValue(),n=e.getParentNode(0);return!!(u(e,["ElementNode"])&&r(n.children)===t||u(e,["Block"])&&r(n.body)===t)},isNextNodeOfSomeType:function(e,t){return o(p(e),t)},isNodeOfSomeType:o,isParentOfSomeType:u,isPreviousNodeOfSomeType:function(e,t){return o(c(e),t)},isVoid:function(e){var t,r;return!0===e.selfClosing||(t=e.tag,s.has(t.toLowerCase())&&!i(t[0]))||o(r=e,["ElementNode"])&&"string"==typeof r.tag&&!r.tag.startsWith(":")&&(i(r.tag[0])||r.tag.includes("."))&&e.children.every(e=>a(e))},isWhitespaceNode:a}}}),ng=f({"src/language-handlebars/printer-glimmer.js"(e,t){v();var{builders:{dedent:r,fill:n,group:i,hardline:s,ifBreak:a,indent:o,join:u,line:l,softline:c},utils:{getDocParts:p,replaceTextEndOfLine:d}}=M(),{getPreferredQuote:h,isNonEmptyArray:f}=eo(),{locStart:m,locEnd:y}=nh(),g=nf(),{getNextNode:D,getPreviousNode:x,hasPrettierIgnore:b,isLastNodeOfSiblings:E,isNextNodeOfSomeType:C,isNodeOfSomeType:S,isParentOfSomeType:A,isPreviousNodeOfSomeType:w,isVoid:T,isWhitespaceNode:P}=ny();function F(e,t){return m(e)-m(t)}function k(e,t,r){let n=e.getValue().children.every(e=>P(e));return"ignore"===t.htmlWhitespaceSensitivity&&n?"":e.map((e,n)=>{let i=r();return 0===n&&"ignore"===t.htmlWhitespaceSensitivity?[c,i]:i},"children")}function N(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function O(e){let t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function I(e){return[N(e),e.closeStrip.open?"~":"","/"]}function j(e){let t=O(e);return[e.closeStrip.close?"~":"",t]}function B(e){return[N(e),e.inverseStrip.open?"~":""]}function L(e){let t=O(e);return[e.inverseStrip.close?"~":"",t]}function _(e){return S(e,["BlockStatement"])&&e.program.body.every(e=>P(e))}function R(e){return S(e,["BlockStatement"])&&e.inverse}function $(e,t,r){if(_(e.getValue()))return"";let n=t("program");return"ignore"===r.htmlWhitespaceSensitivity?o([s,n]):o(n)}function U(e,t,r){var n,i;let a=e.getValue(),u=t("inverse"),l="ignore"===r.htmlWhitespaceSensitivity?[s,u]:u;return R(n=a)&&1===n.inverse.body.length&&S(n.inverse.body[0],["BlockStatement"])&&n.inverse.body[0].path.parts[0]===n.path.parts[0]?l:R(a)?[(i=a,["ignore"===r.htmlWhitespaceSensitivity?s:"",B(i),"else",L(i)]),o(l)]:""}function V(e){return p(u(l,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function z(e){return(e="string"==typeof e?e:"").split(`
|
|
104
|
-
`).length-1}function H(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,2)}).fill(s)}function W(e,t){let{quote:r,regex:n}=h(e,t);return[r,e.replace(n,`\\${r}`),r]}function q(e,t){let r=function(e,t){return t("path")}(e,t),n=J(e,t);return n?[o([r,l,n]),c]:r}function K(e,t){return t("path")}function J(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let r=e.map(t,"params");n.push(...r)}if(r.hash&&r.hash.pairs.length>0){let e=t("hash");n.push(e)}return 0===n.length?"":u(l,n)}function G(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:function(e,t,p){let g=e.getValue();if(!g)return"";if(b(e))return t.originalText.slice(m(g),y(g));let v=t.singleQuote?"'":'"';switch(g.type){case"Block":case"Program":case"Template":return i(e.map(p,"body"));case"ElementNode":{let r=i(function(e,t){let r=e.getValue(),n=["attributes","modifiers","comments"].filter(e=>f(r[e])),i=n.flatMap(e=>r[e]).sort(F);for(let r of n)e.each(e=>{let r=i.indexOf(e.getValue());i.splice(r,1,[l,t()])},r);return f(r.blockParams)&&i.push(l,G(r)),["<",r.tag,o(i),function(e){return T(e)?a([c,"/>"],[" />",c]):a([c,">"],">")}(r)]}(e,p)),n="ignore"===t.htmlWhitespaceSensitivity&&C(e,["ElementNode"])?c:"";if(T(g))return[r,n];let u=["</",g.tag,">"];return 0===g.children.length?[r,o(u),n]:"ignore"===t.htmlWhitespaceSensitivity?[r,o(k(e,t,p)),s,o(u),n]:[r,o(i(k(e,t,p))),o(u),n]}case"BlockStatement":{let r=e.getParentNode(1);return r&&r.inverse&&1===r.inverse.body.length&&r.inverse.body[0]===g&&r.inverse.body[0].path.parts[0]===r.path.parts[0]?[function(e,t,r){let n=e.getValue(),s=e.getParentNode(1);return i([B(s),["else"," ",r],o([l,i(J(e,t)),...f(n.program.blockParams)?[l,G(n.program)]:[]]),c,L(s)])}(e,p,r.inverse.body[0].path.parts[0]),$(e,p,t),U(e,p,t)]:[function(e,t){var r,n;let s,a=e.getValue(),p=[],d=J(e,t);return d&&p.push(i(d)),f(a.program.blockParams)&&p.push(G(a.program)),i([[N(r=a),r.openStrip.open?"~":"","#"],function(e,t){return t("path")}(e,t),p.length>0?o([l,u(l,p)]):"",c,(s=O(n=a),[n.openStrip.close?"~":"",s])])}(e,p),i([$(e,p,t),U(e,p,t),function(e,t,r){let n=e.getValue();return"ignore"===r.htmlWhitespaceSensitivity?[_(n)?c:s,I(n),t("path"),j(n)]:[I(n),t("path"),j(n)]}(e,p,t)])]}case"ElementModifierStatement":return i(["{{",q(e,p),"}}"]);case"MustacheStatement":return i([N(g),q(e,p),O(g)]);case"SubExpression":return i(["(",function(e,t){let r=function(e,t){return t("path")}(e,t),n=J(e,t);return n?o([r,l,i(n)]):r}(e,p),c,")"]);case"AttrNode":{let e="TextNode"===g.value.type;if(e&&""===g.value.chars&&m(g.value)===y(g.value))return g.name;let t=e?h(g.value.chars,v).quote:"ConcatStatement"===g.value.type?h(g.value.parts.filter(e=>"TextNode"===e.type).map(e=>e.chars).join(""),v).quote:"",r=p("value");return[g.name,"=",t,"class"===g.name&&t?i(o(r)):r,t]}case"ConcatStatement":return e.map(p,"parts");case"Hash":return u(l,e.map(p,"pairs"));case"HashPair":return[g.key,"=",p("value")];case"TextNode":{let i=g.chars.replace(/{{/g,"\\{{"),s=function(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r&&"AttrNode"===r.type)return r.name.toLowerCase()}}(e);if(s){if("class"===s){let t=i.trim().split(/\s+/).join(" "),r=!1,n=!1;return A(e,["ConcatStatement"])&&(w(e,["MustacheStatement"])&&/^\s/.test(i)&&(r=!0),C(e,["MustacheStatement"])&&/\s$/.test(i)&&""!==t&&(n=!0)),[r?l:"",t,n?l:""]}return d(i)}let a=/^[\t\n\f\r ]*$/.test(i),o=!x(e),u=!D(e);if("ignore"!==t.htmlWhitespaceSensitivity){let t=/^[\t\n\f\r ]*/,s=/[\t\n\f\r ]*$/,c=u&&A(e,["Template"]),p=o&&A(e,["Template"]);if(a){if(p||c)return"";let t=[l],n=z(i);return n&&(t=H(n)),E(e)&&(t=t.map(e=>r(e))),t}let[d]=i.match(t),[h]=i.match(s),f=[];if(d){f=[l];let e=z(d);e&&(f=H(e)),i=i.replace(t,"")}let m=[];if(h){if(!c){m=[l];let t=z(h);t&&(m=H(t)),E(e)&&(m=m.map(e=>r(e)))}i=i.replace(s,"")}return[...f,n(V(i)),...m]}let c=z(i),p=function(e){return z(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(i),h=function(e){return z(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(i);if((o||u)&&a&&A(e,["Block","ElementNode","Template"]))return"";a&&c?(p=Math.min(c,2),h=0):(C(e,["BlockStatement","ElementNode"])&&(h=Math.max(h,1)),w(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1)));let f="",m="";return 0===h&&C(e,["MustacheStatement"])&&(m=" "),0===p&&w(e,["MustacheStatement"])&&(f=" "),o&&(p=0,f=""),u&&(h=0,m=""),i=i.replace(/^[\t\n\f\r ]+/g,f).replace(/[\t\n\f\r ]+$/,m),[...H(p),n(V(i)),...H(h)]}case"MustacheCommentStatement":{let e=m(g),r=y(g),n="~"===t.originalText.charAt(e+2),i="~"===t.originalText.charAt(r-3),s=g.value.includes("}}")?"--":"";return["{{",n?"~":"","!",s,g.value,s,i?"~":"","}}"]}case"PathExpression":return g.original;case"BooleanLiteral":case"NumberLiteral":return String(g.value);case"CommentStatement":return["\x3c!--",g.value,"-->"];case"StringLiteral":if(function(e){let t=0,r=e.getParentNode(t);for(;r&&S(r,["SubExpression"]);)t++,r=e.getParentNode(t);return!!(r&&S(e.getParentNode(t+1),["ConcatStatement"])&&S(e.getParentNode(t+2),["AttrNode"]))}(e)){let e=t.singleQuote?'"':"'";return W(g.value,e)}return W(g.value,v);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw Error("unknown glimmer type: "+JSON.stringify(g.type))}},massageAstNode:g}}}),nD=f({"src/language-handlebars/parsers.js"(){v()}}),nv=f({"node_modules/linguist-languages/data/Handlebars.json"(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),nx=f({"src/language-handlebars/index.js"(e,t){v();var r=tL(),n=ng(),i=nD(),s=[r(nv(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))];t.exports={languages:s,printers:{glimmer:n},parsers:i}}}),nb=f({"src/language-graphql/pragma.js"(e,t){v();t.exports={hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format
|
|
105
|
-
|
|
106
|
-
`+e}}}}),nE=f({"src/language-graphql/loc.js"(e,t){v();t.exports={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}}),nC=f({"src/language-graphql/printer-graphql.js"(e,t){v();var{builders:{join:r,hardline:n,line:i,softline:s,group:a,indent:o,ifBreak:u}}=M(),{isNextLineEmpty:l,isNonEmptyArray:c}=eo(),{insertPragma:p}=nb(),{locStart:d,locEnd:h}=nE();function f(e,t,n){if(0===n.directives.length)return"";let u=r(i,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?a([i,u]):[" ",a(o([s,u]))]}function m(e,t,r,i){return e.map((e,i,s)=>{let a=r();return i<s.length-1&&l(t.originalText,e.getValue(),h)?[a,n]:a},i)}function y(e,t,r){let n=e.getNode(),s=[],{interfaces:a}=n,o=e.map(e=>r(e),"interfaces");for(let e=0;e<a.length;e++){let r=a[e];s.push(o[e]);let n=a[e+1];if(n){let e=t.originalText.slice(r.loc.end,n.loc.start),a=e.includes("#"),o=e.replace(/#.*/g,"").trim();s.push(","===o?",":" &",a?i:" ")}}return s}function g(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes(`
|
|
107
|
-
`)&&(t.value=t.value.trim())}g.ignoredProperties=new Set(["loc","comments"]);t.exports={print:function(e,t,p){let g=e.getValue();if(!g)return"";if("string"==typeof g)return g;switch(g.kind){case"Document":{let r=[];return e.each((e,i,s)=>{r.push(p()),i!==s.length-1&&(r.push(n),l(t.originalText,e.getValue(),h)&&r.push(n))},"definitions"),[...r,n]}case"OperationDefinition":{let n="{"!==t.originalText[d(g)],i=!!g.name;return[n?g.operation:"",n&&i?[" ",p("name")]:"",n&&!i&&c(g.variableDefinitions)?" ":"",c(g.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):"",f(e,p,g),g.selectionSet&&(n||i)?" ":"",p("selectionSet")]}case"FragmentDefinition":return["fragment ",p("name"),c(g.variableDefinitions)?a(["(",o([s,r([u("",", "),s],e.map(p,"variableDefinitions"))]),s,")"]):""," on ",p("typeCondition"),f(e,p,g)," ",p("selectionSet")];case"SelectionSet":return["{",o([n,r(n,m(e,t,p,"selections"))]),n,"}"];case"Field":return a([g.alias?[p("alias"),": "]:"",p("name"),g.arguments.length>0?a(["(",o([s,r([u("",", "),s],m(e,t,p,"arguments"))]),s,")"]):"",f(e,p,g),g.selectionSet?" ":"",p("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return g.value;case"StringValue":if(g.block){let e=g.value.replace(/"""/g,"\\$&").split(`
|
|
108
|
-
`);return 1===e.length&&(e[0]=e[0].trim()),e.every(e=>""===e)&&(e.length=0),r(n,['"""',...e,'"""'])}return['"',g.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return g.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",p("name")];case"ListValue":return a(["[",o([s,r([u("",", "),s],e.map(p,"values"))]),s,"]"]);case"ObjectValue":return a(["{",t.bracketSpacing&&g.fields.length>0?" ":"",o([s,r([u("",", "),s],e.map(p,"fields"))]),s,u("",t.bracketSpacing&&g.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[p("name"),": ",p("value")];case"Directive":return["@",p("name"),g.arguments.length>0?a(["(",o([s,r([u("",", "),s],m(e,t,p,"arguments"))]),s,")"]):""];case"NamedType":return p("name");case"VariableDefinition":return[p("variable"),": ",p("type"),g.defaultValue?[" = ",p("defaultValue")]:"",f(e,p,g)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[p("description"),g.description?n:"","ObjectTypeExtension"===g.kind?"extend ":"","type ",p("name"),g.interfaces.length>0?[" implements ",...y(e,t,p)]:"",f(e,p,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,p,"fields"))]),n,"}"]:""];case"FieldDefinition":return[p("description"),g.description?n:"",p("name"),g.arguments.length>0?a(["(",o([s,r([u("",", "),s],m(e,t,p,"arguments"))]),s,")"]):"",": ",p("type"),f(e,p,g)];case"DirectiveDefinition":return[p("description"),g.description?n:"","directive ","@",p("name"),g.arguments.length>0?a(["(",o([s,r([u("",", "),s],m(e,t,p,"arguments"))]),s,")"]):"",g.repeatable?" repeatable":""," on ",r(" | ",e.map(p,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[p("description"),g.description?n:"","EnumTypeExtension"===g.kind?"extend ":"","enum ",p("name"),f(e,p,g),g.values.length>0?[" {",o([n,r(n,m(e,t,p,"values"))]),n,"}"]:""];case"EnumValueDefinition":return[p("description"),g.description?n:"",p("name"),f(e,p,g)];case"InputValueDefinition":return[p("description"),g.description?g.description.block?n:i:"",p("name"),": ",p("type"),g.defaultValue?[" = ",p("defaultValue")]:"",f(e,p,g)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[p("description"),g.description?n:"","InputObjectTypeExtension"===g.kind?"extend ":"","input ",p("name"),f(e,p,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,p,"fields"))]),n,"}"]:""];case"SchemaExtension":return["extend schema",f(e,p,g),...g.operationTypes.length>0?[" {",o([n,r(n,m(e,t,p,"operationTypes"))]),n,"}"]:[]];case"SchemaDefinition":return[p("description"),g.description?n:"","schema",f(e,p,g)," {",g.operationTypes.length>0?o([n,r(n,m(e,t,p,"operationTypes"))]):"",n,"}"];case"OperationTypeDefinition":return[p("operation"),": ",p("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[p("description"),g.description?n:"","InterfaceTypeExtension"===g.kind?"extend ":"","interface ",p("name"),g.interfaces.length>0?[" implements ",...y(e,t,p)]:"",f(e,p,g),g.fields.length>0?[" {",o([n,r(n,m(e,t,p,"fields"))]),n,"}"]:""];case"FragmentSpread":return["...",p("name"),f(e,p,g)];case"InlineFragment":return["...",g.typeCondition?[" on ",p("typeCondition")]:"",f(e,p,g)," ",p("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return a([p("description"),g.description?n:"",a(["UnionTypeExtension"===g.kind?"extend ":"","union ",p("name"),f(e,p,g),g.types.length>0?[" =",u(""," "),o([u([i," "]),r([i,"| "],e.map(p,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[p("description"),g.description?n:"","ScalarTypeExtension"===g.kind?"extend ":"","scalar ",p("name"),f(e,p,g)];case"NonNullType":return[p("type"),"!"];case"ListType":return["[",p("type"),"]"];default:throw Error("unknown graphql type: "+JSON.stringify(g.kind))}},massageAstNode:g,hasPrettierIgnore:function(e){var t;let r=e.getValue();return null==r||null===(t=r.comments)||void 0===t?void 0:t.some(e=>"prettier-ignore"===e.value.trim())},insertPragma:p,printComment:function(e){let t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}}}}),nS=f({"src/language-graphql/options.js"(e,t){v();var r=rK();t.exports={bracketSpacing:r.bracketSpacing}}}),nA=f({"src/language-graphql/parsers.js"(){v()}}),nw=f({"node_modules/linguist-languages/data/GraphQL.json"(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),nT=f({"src/language-graphql/index.js"(e,t){v();var r=tL(),n=nC(),i=nS(),s=nA(),a=[r(nw(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))];t.exports={languages:a,options:i,printers:{graphql:n},parsers:s}}}),nP=f({"node_modules/collapse-white-space/index.js"(e,t){v(),t.exports=function(e){return String(e).replace(/\s+/g," ")}}}),nF=f({"src/language-markdown/loc.js"(e,t){v();t.exports={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}),nk=f({"src/language-markdown/constants.evaluate.js"(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879][\udc00-\udfff]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67]|\ud83c[\ude00\ude50-\ude51]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])(?:[\\ufe00-\\ufe0f]|\udb40[\udd00-\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801[\udd6f]|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud803[\udf55-\udf59]|\ud804[\udc47-\udc4d\udcbb-\udcbc\udcbe-\udcc1\udd40-\udd43\udd74-\udd75\uddc5-\uddc8\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud806[\udc3b\udde2\ude3f-\ude46\ude9a-\ude9c\ude9e-\udea2]|\ud807[\udc41-\udc45\udc70-\udc71\udef7-\udef8\udfff]|\ud809[\udc70-\udc74]|\ud81a[\ude6e-\ude6f\udef5\udf37-\udf3b\udf44]|\ud81b[\ude97-\ude9a\udfe2]|\ud82f[\udc9f]|\ud836[\ude87-\ude8b]|\ud83a[\udd5e-\udd5f]"}}}),nN=f({"src/language-markdown/utils.js"(e,t){v();var{getLast:r}=eo(),{locStart:n,locEnd:i}=nF(),{cjkPattern:s,kPattern:a,punctuationPattern:o}=nk(),u=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],l=[...u,"tableCell","paragraph","heading"],c=new RegExp(a),p=new RegExp(o);function d(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}t.exports={mapAst:function(e,t){return function e(r,n,i){let s=Object.assign({},t(r,n,i));return s.children&&(s.children=s.children.map((t,r)=>e(t,r,[s,...i]))),s}(e,null,[])},splitText:function(e,t){let n="non-cjk",i="cj-letter",a="cjk-punctuation",o=[],u=("preserve"===t.proseWrap?e:e.replace(RegExp(`(${s})
|
|
109
|
-
(${s})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[e,t]of u.entries()){if(e%2==1){o.push({type:"whitespace",value:/\n/.test(t)?`
|
|
110
|
-
`:" "});continue}if((0===e||e===u.length-1)&&""===t)continue;let d=t.split(RegExp(`(${s})`));for(let[e,t]of d.entries())if(!((0===e||e===d.length-1)&&""===t)){if(e%2==0){""!==t&&l({type:"word",value:t,kind:n,hasLeadingPunctuation:p.test(t[0]),hasTrailingPunctuation:p.test(r(t))});continue}l(p.test(t)?{type:"word",value:t,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:t,kind:c.test(t)?"k-letter":i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return o;function l(e){let t=r(o);!t||"word"!==t.type||((t.kind!==n||e.kind!==i||t.hasTrailingPunctuation)&&(t.kind!==i||e.kind!==n||e.hasLeadingPunctuation)?function(r,n){return t.kind===r&&e.kind===n||t.kind===n&&e.kind===r}(n,a)||[t.value,e.value].some(e=>/\u3000/.test(e))||o.push({type:"whitespace",value:""}):o.push({type:"whitespace",value:" "})),o.push(e)}},punctuationPattern:o,getFencedCodeBlockValue:function(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
|
|
111
|
-
`)&&t.endsWith(`
|
|
112
|
-
`)?r.slice(0,-1):r},getOrderedListItemInfo:d,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(d(e.children[0],t.originalText).numberText),n=Number(d(e.children[1],t.originalText).numberText);if(0===r&&e.children.length>2){let r=Number(d(e.children[2],t.originalText).numberText);return 1===n&&1===r}return 1===n},INLINE_NODE_TYPES:u,INLINE_NODE_WRAPPER_TYPES:l,isAutolink:function(e){if((null==e?void 0:e.type)!=="link"||1!==e.children.length)return!1;let[t]=e.children;return n(e)===n(t)&&i(e)===i(t)}}}}),nO=f({"src/language-markdown/embed.js"(e,t){v();var{inferParserByLanguage:r,getMaxContinuousCount:n}=eo(),{builders:{hardline:i,markAsRoot:s},utils:{replaceEndOfLine:a}}=M(),o=r8(),{getFencedCodeBlockValue:u}=nN();t.exports=function(e,t,l,c){let p=e.getValue();if("code"===p.type&&null!==p.lang){let e=r(p.lang,c);if(e){let t=c.__inJsTemplate?"~":"`",r=t.repeat(Math.max(3,n(p.value,t)+1)),o={parser:e};"tsx"===p.lang&&(o.filepath="dummy.tsx");let d=l(u(p,c.originalText),o,{stripTrailingHardline:!0});return s([r,p.lang,p.meta?" "+p.meta:"",i,a(d),i,r])}}switch(p.type){case"front-matter":return o(p,l);case"importExport":return[l(p.value,{parser:"babel"},{stripTrailingHardline:!0}),i];case"jsx":return l(`<$>${p.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}}}),nI=f({"src/language-markdown/pragma.js"(e,t){v();var r=r6(),n=["format","prettier"];function i(e){let t=`@(${n.join("|")})`,r=RegExp(`<!--\\s*${t}\\s*-->|{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*}|<!--.*\r?
|
|
113
|
-
[\\s\\S]*(^|
|
|
114
|
-
)[^\\S
|
|
115
|
-
]*${t}[^\\S
|
|
116
|
-
]*($|
|
|
117
|
-
)[\\s\\S]*
|
|
118
|
-
.*-->`,"m"),i=e.match(r);return(null==i?void 0:i.index)===0}t.exports={startWithPragma:i,hasPragma:e=>i(r(e).content.trimStart()),insertPragma:e=>{let t=r(e),i=`<!-- @${n[0]} -->`;return t.frontMatter?`${t.frontMatter.raw}
|
|
119
|
-
|
|
120
|
-
${i}
|
|
121
|
-
|
|
122
|
-
${t.content}`:`${i}
|
|
123
|
-
|
|
124
|
-
${t.content}`}}}}),nj=f({"src/language-markdown/print-preprocess.js"(e,t){v();var r=A(),{getOrderedListItemInfo:n,mapAst:i,splitText:s}=nN(),a=/^.$/su;function o(e,t,n){return i(e,e=>{if(!e.children)return e;let i=e.children.reduce((e,i)=>{let s=r(e);return s&&t(s,i)?e.splice(-1,1,n(s,i)):e.push(i),e},[]);return Object.assign(Object.assign({},e),{},{children:i})})}t.exports=function(e,t){return e=function(e){return o(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+`
|
|
125
|
-
|
|
126
|
-
`+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e){return i(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"}))}(e=function(e,t){return i(e,(e,r,n)=>{let[i]=n;if("text"!==e.type)return e;let{value:a}=e;return"paragraph"===i.type&&(0===r&&(a=a.trimStart()),r===i.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:e.position,children:s(a,t)}})}(e=function(e,t){return i(e,(e,i,s)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t<s.length;t++){let r=s[t];if("list"===r.type&&!r.isAligned)return e.isAligned=!1,e}e.isAligned=function(e){if(!e.ordered)return!0;let[i,s]=e.children;if(n(i,t.originalText).leadingSpaces.length>1)return!0;let a=r(i);return -1!==a&&(1===e.children.length?a%t.tabWidth==0:a===r(s)&&(a%t.tabWidth==0||n(s,t.originalText).leadingSpaces.length>1))}(e)}return e});function r(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return i(e,(e,r,n)=>{if("code"===e.type){let r=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=r,r)for(let e=0;e<n.length;e++){let t=n[e];if(t.hasIndentedCodeblock)break;"list"===t.type&&(t.hasIndentedCodeblock=!0)}}return e})}(e=function(e,t){return i(e,e=>"inlineCode"!==e.type||"preserve"===t.proseWrap?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")}))}(e=function(e){return o(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e,t){return i(e,e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&a.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e)}(e,t)),t),t),t),t)))}}}),nB=f({"src/language-markdown/clean.js"(e,t){v();var r=nP(),{isFrontMatterNode:n}=eo(),{startWithPragma:i}=nI(),s=new Set(["position","raw"]);function a(e,t,s){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type||"imageReference"===e.type)&&(t.label=r(e.label)),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),s&&"root"===s.type&&s.children.length>0&&(s.children[0]===e||n(s.children[0])&&s.children[1]===e)&&"html"===e.type&&i(e.value)))return null}a.ignoredProperties=s,t.exports=a}}),nL=f({"src/language-markdown/printer-markdown.js"(e,t){v();var r=nP(),{getLast:n,getMinNotPresentContinuousCount:i,getMaxContinuousCount:s,getStringWidth:a,isNonEmptyArray:o}=eo(),{builders:{breakParent:u,join:l,line:c,literalline:p,markAsRoot:d,hardline:h,softline:f,ifBreak:m,fill:y,align:g,indent:D,group:x,hardlineWithoutBreakParent:b},utils:{normalizeDoc:E,replaceTextEndOfLine:C},printer:{printDocToString:S}}=M(),A=nO(),{insertPragma:w}=nI(),{locStart:T,locEnd:P}=nF(),F=nj(),k=nB(),{getFencedCodeBlockValue:N,hasGitDiffFriendlyOrderedList:O,splitText:I,punctuationPattern:j,INLINE_NODE_TYPES:B,INLINE_NODE_WRAPPER_TYPES:L,isAutolink:_}=nN(),R=new Set(["importExport"]),$=["heading","tableCell","link","wikiLink"],U=new Set(["listItem","definition","footnoteDefinition"]);function V(e,t,r,n){let i=e.getValue(),s=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[s,K(e,t,r,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return g(" ".repeat(s.length),r());let a=" ".repeat(function(e,t,r){return e<t?t:e>r?r:e}(t.tabWidth-n.length,0,3));return[a,g(a,r())]}})]}function z(e,t){return function(e,t,r){let n=-1;for(let i of t.children)if(i.type===e.type&&r(i)?n++:n=-1,i===e)return n}(e,t,t=>t.ordered===e.ordered)}function H(e,t){let r=Array.isArray(t)?t:[t],n=-1,i;for(;i=e.getParentNode(++n);)if(r.includes(i.type))return n;return -1}function W(e,t){let r=H(e,t);return -1===r?null:e.getParentNode(r)}function q(e,t,r){if("preserve"===r.proseWrap&&t===`
|
|
127
|
-
`)return h;let n="always"===r.proseWrap&&!W(e,$);return""!==t?n?c:" ":n?f:""}function K(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{postprocessor:i}=n,s=n.processor||(()=>r()),a=e.getValue(),o=[],u;return e.each((e,r)=>{let n=e.getValue(),i=s(e,r);if(!1!==i){let e={parts:o,prevNode:u,parentNode:a,options:t};(function(e,t){let r=0===t.parts.length,n=B.includes(e.type),i="html"===e.type&&L.includes(t.parentNode.type);return!r&&!n&&!i})(n,e)&&(o.push(h),u&&R.has(u.type)||(function(e,t){var r,n,i;let s=(t.prevNode&&t.prevNode.type)===e.type&&U.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,o=(null===(r=t.prevNode)||void 0===r?void 0:r.type)==="listItem"&&t.prevNode.loose,u="next"===G(t.prevNode),l="html"===e.type&&(null===(n=t.prevNode)||void 0===n?void 0:n.type)==="html"&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&(null===(i=t.prevNode)||void 0===i?void 0:i.type)==="paragraph"&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(s||a||u||l||c)}(n,e)||X(n,e))&&o.push(h),X(n,e)&&o.push(h)),o.push(i),u=n}},"children"),i?i(o):o}function J(e){return"html"===e.type?e.value:"paragraph"===e.type&&Array.isArray(e.children)&&1===e.children.length&&"esComment"===e.children[0].type?["{/* ",e.children[0].value," */}"]:void 0}function G(e){let t;if("html"===e.type)t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;"esComment"===e.type?r=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]||"next")}function X(e,t){let r=t.prevNode&&"list"===t.prevNode.type,n="code"===e.type&&e.isIndented;return r&&n}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new RegExp([" ",...Array.isArray(t)?t:[t]].map(e=>`\\${e}`).join("|")).test(e)?`<${e}>`:e}function Q(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e)return"";if(r)return" "+Q(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=e.split("'").length-1,i=e.split('"').length-1,s=n>i?'"':i>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(RegExp(`(${s})`,"g"),"\\$1"),`${s}${e}${s}`}function Z(e){return`[${r(e.label)}]`}function ee(e){return`[^${e.label}]`}t.exports={preprocess:F,print:function(e,t,r){let v=e.getValue();if(function(e){let t=W(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return I(t.originalText.slice(v.position.start.offset,v.position.end.offset),t).map(r=>"word"===r.type?r.value:""===r.value?"":q(e,r.value,t));switch(v.type){case"front-matter":return t.originalText.slice(v.position.start.offset,v.position.end.offset);case"root":return 0===v.children.length?"":[E(function(e,t,r){let n=[],i=null,{children:s}=e.getValue();for(let[e,t]of s.entries())switch(G(t)){case"start":null===i&&(i={index:e,offset:t.position.end.offset});break;case"end":null!==i&&(n.push({start:i,end:{index:e,offset:t.position.start.offset}}),i=null)}return K(e,t,r,{processor:(e,i)=>{if(n.length>0){let e=n[0];if(i===e.start.index)return[J(s[e.start.index]),t.originalText.slice(e.start.offset,e.end.offset),J(s[e.end.index])];if(e.start.index<i&&i<e.end.index)return!1;if(i===e.end.index)return n.shift(),!1}return r()}})}(e,t,r)),R.has(function(e){let t=e;for(;o(t.children);)t=n(t.children);return t}(v).type)?"":h];case"paragraph":return K(e,t,r,{postprocessor:y});case"sentence":return K(e,t,r);case"word":{let t=v.value.replace(/\*/g,"\\$&").replace(RegExp(`(^|${j})(_+)|(_+)(${j}|$)`,"g"),(e,t,r,n,i)=>(r?`${t}${r}`:`${n}${i}`).replace(/_/g,"\\_")),r=(e,t,r)=>"sentence"===e.type&&0===r,n=(e,t,r)=>_(e.children[r-1]);return t!==v.value&&(e.match(void 0,r,n)||e.match(void 0,r,(e,t,r)=>"emphasis"===e.type&&0===r,n))&&(t=t.replace(/^(\\?[*_])+/,e=>e.replace(/\\/g,""))),t}case"whitespace":{let r=e.getParentNode(),n=r.children.indexOf(v),i=r.children[n+1],s=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(i.value)?"never":t.proseWrap;return q(e,v.value,{proseWrap:s})}case"emphasis":{let i;if(_(v.children[0]))i=t.originalText[v.position.start.offset];else{let t=e.getParentNode(),r=t.children.indexOf(v),s=t.children[r-1],a=t.children[r+1];i=s&&"sentence"===s.type&&s.children.length>0&&"word"===n(s.children).type&&!n(s.children).hasTrailingPunctuation||a&&"sentence"===a.type&&a.children.length>0&&"word"===a.children[0].type&&!a.children[0].hasLeadingPunctuation||W(e,"emphasis")?"*":"_"}return[i,K(e,t,r),i]}case"strong":return["**",K(e,t,r),"**"];case"delete":return["~~",K(e,t,r),"~~"];case"inlineCode":{let e=i(v.value,"`"),t="`".repeat(e||1),r=e&&!/^\s/.test(v.value)?" ":"";return[t,r,v.value,r,t]}case"wikiLink":{let e="";return["[[",e="preserve"===t.proseWrap?v.value:v.value.replace(/[\t\n]+/g," "),"]]"]}case"link":switch(t.originalText[v.position.start.offset]){case"<":{let e="mailto:";return["<",v.url.startsWith(e)&&t.originalText.slice(v.position.start.offset+1,v.position.start.offset+1+e.length)!==e?v.url.slice(e.length):v.url,">"]}case"[":return["[",K(e,t,r),"](",Y(v.url,")"),Q(v.title,t),")"];default:return t.originalText.slice(v.position.start.offset,v.position.end.offset)}case"image":return[""),Q(v.title,t),")"];case"blockquote":return["> ",g("> ",K(e,t,r))];case"heading":return["#".repeat(v.depth)+" ",K(e,t,r)];case"code":{if(v.isIndented){let e=" ".repeat(4);return g(e,[e,...C(v.value,h)])}let e=t.__inJsTemplate?"~":"`",r=e.repeat(Math.max(3,s(v.value,e)+1));return[r,v.lang||"",v.meta?" "+v.meta:"",h,...C(N(v,t.originalText),h),h,r]}case"html":{let t=e.getParentNode(),r="root"===t.type&&n(t.children)===v?v.value.trimEnd():v.value,i=/^<!--.*-->$/s.test(r);return C(r,i?h:d(p))}case"list":{let n=z(v,e.getParentNode()),i=O(v,t);return K(e,t,r,{processor:(e,s)=>{let a=function(){let e=v.ordered?(0===s?v.start:i?1:v.start+s)+(n%2==0?". ":") "):n%2==0?"- ":"* ";return v.isAligned||v.hasIndentedCodeblock?function(e,t){let r=function(){let r=e.length%t.tabWidth;return 0===r?0:t.tabWidth-r}();return e+" ".repeat(r>=4?0:r)}(e,t):e}(),o=e.getValue();return 2===o.children.length&&"html"===o.children[1].type&&o.children[0].position.start.column!==o.children[1].position.start.column?[a,V(e,t,r,a)]:[a,g(" ".repeat(a.length),V(e,t,r,a))]}})}case"thematicBreak":{let t=H(e,"list");return -1===t?"---":z(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",K(e,t,r),"]","full"===v.referenceType?Z(v):"collapsed"===v.referenceType?"[]":""];case"imageReference":if("full"===v.referenceType)return["![",v.alt||"","]",Z(v)];return["![",v.alt,"]","collapsed"===v.referenceType?"[]":""];case"definition":{let e="always"===t.proseWrap?c:" ";return x([Z(v),":",D([e,Y(v.url),null===v.title?"":[e,Q(v.title,t,!1)]])])}case"footnote":return["[^",K(e,t,r),"]"];case"footnoteReference":return ee(v);case"footnoteDefinition":{let n=e.getParentNode().children[e.getName()+1],i=1===v.children.length&&"paragraph"===v.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&v.children[0].position.start.line===v.children[0].position.end.line);return[ee(v),": ",i?K(e,t,r):x([g(" ".repeat(4),K(e,t,r,{processor:(e,t)=>0===t?x([f,r()]):r()})),n&&"footnoteDefinition"===n.type?f:""])]}case"table":return function(e,t,r){let n=e.getValue(),i=[],s=e.map(e=>e.map((e,n)=>{let s=S(r(),t).formatted,o=a(s);return i[n]=Math.max(i[n]||3,o),{text:s,width:o}},"children"),"children"),o=c(!1);if("never"!==t.proseWrap)return[u,o];return[u,x(m(c(!0),o))];function c(e){let t=[p(s[0],e),function(e){return`| ${i.map((t,r)=>{let i=n.align[r],s=e?"-":"-".repeat(t-2);return`${"center"===i||"left"===i?":":"-"}${s}${"center"===i||"right"===i?":":"-"}`}).join(" | ")} |`}(e)];return s.length>1&&t.push(l(b,s.slice(1).map(t=>p(t,e)))),l(b,t)}function p(e,t){return`| ${e.map((e,r)=>{let{text:s,width:a}=e;if(t)return s;let o=i[r]-a,u=n.align[r],l=0;"right"===u?l=o:"center"===u&&(l=Math.floor(o/2));let c=o-l;return`${" ".repeat(l)}${s}${" ".repeat(c)}`}).join(" | ")} |`}}(e,t,r);case"tableCell":return K(e,t,r);case"break":return/\s/.test(t.originalText[v.position.start.offset])?[" ",d(p)]:["\\",h];case"liquidNode":return C(v.value,h);case"importExport":return[v.value,h];case"esComment":return["{/* ",v.value," */}"];case"jsx":return v.value;case"math":return["$$",h,v.value?[...C(v.value,h),h]:"","$$"];case"inlineMath":return t.originalText.slice(T(v),P(v));default:throw Error(`Unknown markdown type ${JSON.stringify(v.type)}`)}},embed:A,massageAstNode:k,hasPrettierIgnore:function(e){let t=Number(e.getName());return 0!==t&&"next"===G(e.getParentNode().children[t-1])},insertPragma:w}}}),n_=f({"src/language-markdown/options.js"(e,t){v();var r=rK();t.exports={proseWrap:r.proseWrap,singleQuote:r.singleQuote}}}),nM=f({"src/language-markdown/parsers.js"(){v()}}),nR=f({"node_modules/linguist-languages/data/Markdown.json"(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),n$=f({"src/language-markdown/index.js"(e,t){v();var r=tL(),n=nL(),i=n_(),s=nM(),a=[r(nR(),e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter(e=>".mdx"!==e)})),r(nR(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))];t.exports={languages:a,options:i,printers:{mdast:n},parsers:s}}}),nU=f({"src/language-html/clean.js"(e,t){v();var{isFrontMatterNode:r}=eo(),n=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||r(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=n,t.exports=i}}),nV=f({"src/language-html/constants.evaluate.js"(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),nz=f({"src/language-html/utils/is-unknown-namespace.js"(e,t){v();t.exports=function(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}}}),nH=f({"src/language-html/utils/index.js"(e,t){v();var{inferParserByLanguage:r,isFrontMatterNode:n}=eo(),{builders:{line:i,hardline:s,join:a},utils:{getDocParts:o,replaceTextEndOfLine:u}}=M(),{CSS_DISPLAY_TAGS:l,CSS_DISPLAY_DEFAULT:c,CSS_WHITE_SPACE_TAGS:p,CSS_WHITE_SPACE_DEFAULT:d}=nV(),h=nz(),f=new Set([" ",`
|
|
128
|
-
`,"\f","\r"," "]),m=e=>e.replace(/^[\t\n\f\r ]+/,""),y=e=>e.replace(/[\t\n\f\r ]+$/,""),g=e=>e.replace(/^[\t\f\r ]*\n/g,""),D=e=>g(y(e)),x=e=>e.split(/[\t\n\f\r ]+/),b=e=>e.match(/^[\t\n\f\r ]*/)[0];function E(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||h(e)&&("script"===e.name||"style"===e.name))}function C(e){return I(e).startsWith("pre")}function S(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function A(e){return F(e)||"element"===e.type&&"br"===e.fullName||function(e){return T(e)&&P(e)}(e)}function w(e){return T(e)&&P(e)}function T(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function P(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function F(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function k(e){let{type:t,lang:r}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))||"speculationrules"===t?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function N(e){return"block"===e||"list-item"===e||e.startsWith("table")}function O(e){return I(e).startsWith("pre")}function I(e){return"element"===e.type&&(!e.namespace||h(e))&&p[e.name]||d}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
|
|
129
|
-
`)){if(0===r.length)continue;if(!f.has(r[0]))return 0;let e=b(r).length;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}(e);return 0===t?e:e.split(`
|
|
130
|
-
`).map(e=>e.slice(t)).join(`
|
|
131
|
-
`)}var B=new Set(["template","style","script"]);function L(e,t){return _(e,t)&&!B.has(e.fullName)}function _(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function R(e,t){return _(e,t)&&(L(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}t.exports={htmlTrim:e=>m(y(e)),htmlTrimPreserveIndentation:D,hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},canHaveInterpolation:function(e){return e.children&&!E(e)},countChars:function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},countParents:function(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let i=e.stack[n];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&r++}return r},dedentString:j,forceBreakChildren:S,forceBreakContent:function(e){return S(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(e=>(function(e){return e.children&&e.children.some(e=>"text"!==e.type)})(e)))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&T(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||P(e.lastChild))},forceNextEmptyLine:function(e){return n(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(t)return t[1]}let r=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||r||h(e))&&l[e.name]||c}},getNodeCssStyleWhiteSpace:I,hasPrettierIgnore:function(e){return"attribute"!==e.type&&!!e.parent&&!!e.prev&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.prev)},inferScriptParser:function(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?function(e,t){let{lang:n}=e.attrMap;return n&&"postcss"!==n&&"css"!==n?"scss"===n?"scss":"less"===n?"less":"stylus"===n?r("stylus",t):void 0:"css"}(e,t):t&&R(e,t)?k(e)||!("src"in e.attrMap)&&r(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?k(e):"babel"},isVueCustomBlock:L,isVueNonHtmlBlock:R,isVueScriptTag:function(e,t){return _(e,t)&&"script"===e.name},isVueSlotAttribute:function(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){let r=e.parent;if(!_(r,t))return!1;let n=r.fullName,i=e.fullName;return"script"===n&&"setup"===i||"style"===n&&"vars"===i},isVueSfcBlock:_,isDanglingSpaceSensitiveNode:function(e){return function(e){return!N(e)&&"inline-block"!==e}(e.cssDisplay)&&!E(e)},isIndentationSensitiveNode:C,isLeadingSpaceSensitiveNode:function(e,t){let r=function(){return!n(e)&&(("text"===e.type||"interpolation"===e.type)&&!!e.prev&&("text"===e.prev.type||"interpolation"===e.prev.type)||!!e.parent&&"none"!==e.parent.cssDisplay&&(!!O(e.parent)||!(!e.prev&&("root"===e.parent.type||O(e)&&e.parent||E(e.parent)||L(e.parent,t)||!function(e){return!N(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.prev&&!function(e){return!N(e)}(e.prev.cssDisplay))))}();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:r},isPreLikeNode:O,isScriptLikeTag:E,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e,t){return!n(e)&&(("text"===e.type||"interpolation"===e.type)&&!!e.next&&("text"===e.next.type||"interpolation"===e.next.type)||!!e.parent&&"none"!==e.parent.cssDisplay&&(!!O(e.parent)||!(!e.next&&("root"===e.parent.type||O(e)&&e.parent||E(e.parent)||L(e.parent,t)||!function(e){return!N(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function(e){return!N(e)}(e.next.cssDisplay))))},isWhitespaceSensitiveNode:function(e){return E(e)||"interpolation"===e.type||C(e)},isUnknownNamespace:h,preferHardlineAsLeadingSpaces:function(e){return F(e)||e.prev&&A(e.prev)||function(e){return T(e)&&P(e)}(e)},preferHardlineAsTrailingSpaces:A,shouldPreserveContent:function(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||O(e)&&e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type)||R(e,t)&&!E(e)&&"interpolation"!==e.type)},unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')},getTextValueParts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?u(t):u(j(D(t)),s):o(a(i,x(t)))}}}}),nW=f({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96;function t(t){return e.$0<=t&&t<=e.$9}e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t;e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z};e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)};e.isNewLine=function(t){return t===e.$LF||t===e.$CR};e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}}),nq=f({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e,t,r){this.filePath=e,this.name=t,this.members=r}assertNoMembers(){if(this.members.length)throw Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};e.StaticSymbol=t;var r=class{constructor(){this.cache=new Map}get(e,r,n){let i=(n=n||[]).length?`.${n.join(".")}`:"",s=`"${e}".${r}${i}`,a=this.cache.get(s);return a||(a=new t(e,r,n),this.cache.set(s,a)),a}};e.StaticSymbolCache=r}}),nK=f({"node_modules/angular-html-parser/lib/compiler/src/util.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;e.dashCaseToCamelCase=function(e){return e.replace(t,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[1].toUpperCase()})};e.splitAtColon=function(e,t){return r(e,":",t)};function r(e,t,r){let n=e.indexOf(t);return -1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function n(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===o}(e)?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r)}e.splitAtPeriod=function(e,t){return r(e,".",t)},e.visitValue=n;e.isDefined=function(e){return null!=e};e.noUndefined=function(e){return void 0===e?null:e};var i=class{visitArray(e,t){return e.map(e=>n(e,this,t))}visitStringMap(e,t){let r={};return Object.keys(e).forEach(i=>{r[i]=n(e[i],this,t)}),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}};e.ValueTransformer=i,e.SyncAsync={assertSync:e=>{if(u(e))throw Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>u(e)?e.then(t):t(e),all:e=>e.some(u)?Promise.all(e):e};e.error=function(e){throw Error(`Internal Error: ${e}`)};e.syntaxError=function(e,t){let r=Error(e);return r[s]=!0,t&&(r[a]=t),r};var s="ngSyntaxError",a="ngParseErrors";e.isSyntaxError=function(e){return e[s]};e.getParseErrors=function(e){return e[a]||[]};e.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var o=Object.getPrototypeOf({});e.utf8Encode=function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(r++,n=(n-55296<<10)+t-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t};e.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let r=t.toString();if(null==r)return""+r;let n=r.indexOf(`
|
|
132
|
-
`);return -1===n?r:r.substring(0,n)};function u(e){return!!e&&"function"==typeof e.then}e.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},e.isPromise=u;e.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};var l="u">typeof window&&window,c="u">typeof self&&"u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,p="u">typeof globalThis&&globalThis;e.global=p||l||c}}),nJ=f({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t,r,n=nq(),i=nK(),s=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function a(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=a;var o=0;function u(e){if(!e||!e.reference)return null;let t=e.reference;if(t instanceof n.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;let r=i.stringify(t);return r.indexOf("(")>=0?(r=`anonymous_${o++}`,t.__anonymousType=r):r=a(r),r}e.identifierName=u;e.identifierModuleUrl=function(e){let t=e.reference;return t instanceof n.StaticSymbol?t.filePath:`./${i.stringify(t)}`};e.viewClassName=function(e,t){return`View_${u({reference:e})}_${t}`};e.rendererTypeName=function(e){return`RenderType_${u({reference:e})}`};e.hostViewClassName=function(e){return`HostView_${u({reference:e})}`};e.componentFactoryName=function(e){return`${u({reference:e})}NgFactory`},(t=r=e.CompileSummaryKind||(e.CompileSummaryKind={}))[t.Pipe=0]="Pipe",t[t.Directive=1]="Directive",t[t.NgModule=2]="NgModule",t[t.Injectable=3]="Injectable";e.tokenName=function(e){return null!=e.value?a(e.value):u(e.identifier)};e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};var l=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=d(t),this.styleUrls=d(r)}};e.CompileStylesheetMetadata=l;e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:r,templateUrl:n,htmlAst:i,styles:s,styleUrls:a,externalStylesheets:o,animations:u,ngContentSelectors:l,interpolation:c,isInline:p,preserveWhitespaces:f}=e;if(this.encapsulation=t,this.template=r,this.templateUrl=n,this.htmlAst=i,this.styles=d(s),this.styleUrls=d(a),this.externalStylesheets=d(o),this.animations=u?h(u):[],this.ngContentSelectors=l||[],c&&2!=c.length)throw Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=p,this.preserveWhitespaces=f}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};var c=class{static create(e){let{isHost:t,type:r,isComponent:n,selector:a,exportAs:o,changeDetection:u,inputs:l,outputs:p,host:d,providers:h,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:v,componentViewType:x,rendererType:b,componentFactory:E}=e,C={},S={},A={};null!=d&&Object.keys(d).forEach(e=>{let t=d[e],r=e.match(s);null===r?A[e]=t:null!=r[1]?S[r[1]]=t:null!=r[2]&&(C[r[2]]=t)});let w={};null!=l&&l.forEach(e=>{let t=i.splitAtColon(e,[e,e]);w[t[0]]=t[1]});let T={};return null!=p&&p.forEach(e=>{let t=i.splitAtColon(e,[e,e]);T[t[0]]=t[1]}),new c({isHost:t,type:r,isComponent:!!n,selector:a,exportAs:o,changeDetection:u,inputs:w,outputs:T,hostListeners:C,hostProperties:S,hostAttributes:A,providers:h,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:v,componentViewType:x,rendererType:b,componentFactory:E})}constructor(e){let{isHost:t,type:r,isComponent:n,selector:i,exportAs:s,changeDetection:a,inputs:o,outputs:u,hostListeners:l,hostProperties:c,hostAttributes:p,providers:h,viewProviders:f,queries:m,guards:y,viewQueries:g,entryComponents:D,template:v,componentViewType:x,rendererType:b,componentFactory:E}=e;this.isHost=!!t,this.type=r,this.isComponent=n,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=o,this.outputs=u,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=p,this.providers=d(h),this.viewProviders=d(f),this.queries=d(m),this.guards=y,this.viewQueries=d(g),this.entryComponents=d(D),this.template=v,this.componentViewType=x,this.rendererType=b,this.componentFactory=E}toSummary(){return{summaryKind:r.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};e.CompileDirectiveMetadata=c;e.CompilePipeMetadata=class{constructor(e){let{type:t,name:r,pure:n}=e;this.type=t,this.name=r,this.pure=!!n}toSummary(){return{summaryKind:r.Pipe,type:this.type,name:this.name,pure:this.pure}}};e.CompileShallowModuleMetadata=class{};e.CompileNgModuleMetadata=class{constructor(e){let{type:t,providers:r,declaredDirectives:n,exportedDirectives:i,declaredPipes:s,exportedPipes:a,entryComponents:o,bootstrapComponents:u,importedModules:l,exportedModules:c,schemas:p,transitiveModule:h,id:f}=e;this.type=t||null,this.declaredDirectives=d(n),this.exportedDirectives=d(i),this.declaredPipes=d(s),this.exportedPipes=d(a),this.providers=d(r),this.entryComponents=d(o),this.bootstrapComponents=d(u),this.importedModules=d(l),this.exportedModules=d(c),this.schemas=d(p),this.id=f||null,this.transitiveModule=h||null}toSummary(){let e=this.transitiveModule;return{summaryKind:r.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}};var p=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}};function d(e){return e||[]}e.TransitiveCompileNgModuleMetadata=p;function h(e){return e.reduce((e,t)=>{let r=Array.isArray(t)?h(t):t;return e.concat(r)},[])}function f(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=class{constructor(e,t){let{useClass:r,useValue:n,useExisting:i,useFactory:s,deps:a,multi:o}=t;this.token=e,this.useClass=r||null,this.useValue=n,this.useExisting=i,this.useFactory=s||null,this.dependencies=a||null,this.multi=!!o}},e.flatten=h;e.templateSourceUrl=function(e,t,r){let i;return i=r.isInline?t.type.reference instanceof n.StaticSymbol?`${t.type.reference.filePath}.${t.type.reference.name}.html`:`${u(e)}/${u(t.type)}.html`:r.templateUrl,t.type.reference instanceof n.StaticSymbol?i:f(i)};e.sharedStylesheetJitUrl=function(e,t){let r=e.moduleUrl.split(/\/\\/g),n=r[r.length-1];return f(`css/${t}${n}.ngstyle.js`)};e.ngModuleJitUrl=function(e){return f(`${u(e.type)}/module.ngfactory.js`)};e.templateJitUrl=function(e,t){return f(`${u(e)}/${u(t.type)}.ngfactory.js`)}}}),nG=f({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(e){v(),Object.defineProperty(e,"__esModule",{value:!0});var t,r,n=nW(),i=nJ(),s=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,r=t.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&e<0;)if(i--,e++,t.charCodeAt(i)==n.$LF){a--;let e=t.substr(0,i-1).lastIndexOf(String.fromCharCode(n.$LF));o=e>0?i-e:i}else o--;for(;i<r&&e>0;){let r=t.charCodeAt(i);i++,e--,r==n.$LF?(a++,o=0):o++}return new s(this.file,i,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let i=n,s=0,a=0;for(;s<e&&n>0&&(n--,s++,!(r[n]==`
|
|
133
|
-
`&&++a==t)););for(s=0,a=0;s<e&&i<r.length-1&&(i++,s++,!(r[i]==`
|
|
134
|
-
`&&++a==t)););return{before:r.substring(n,this.offset),after:r.substring(this.offset,i+1)}}return null}};e.ParseLocation=s;var a=class{constructor(e,t){this.content=e,this.url=t}};e.ParseSourceFile=a;var o=class{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=o,e.EMPTY_PARSE_LOCATION=new s(new a("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new o(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(t=r=e.ParseErrorLevel||(e.ParseErrorLevel={}))[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR";var u=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.ERROR;this.span=e,this.msg=t,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${r[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};e.ParseError=u;e.typeSourceSpan=function(e,t){let r=i.identifierModuleUrl(t),n=new a("",null!=r?`in ${e} ${i.identifierName(t)} in ${r}`:`in ${e} ${i.identifierName(t)}`);return new o(new s(n,-1,-1,-1),new s(n,-1,-1,-1))};e.r3JitTypeSourceSpan=function(e,t,r){let n=new a("",`in ${e} ${t} in ${r}`);return new o(new s(n,-1,-1,-1),new s(n,-1,-1,-1))}}}),nX=f({"src/language-html/print-preprocess.js"(e,t){v();var{ParseSourceSpan:r}=nG(),{htmlTrim:n,getLeadingAndTrailingHtmlWhitespace:i,hasHtmlWhitespace:s,canHaveInterpolation:a,getNodeCssStyleDisplay:o,isDanglingSpaceSensitiveNode:u,isIndentationSensitiveNode:l,isLeadingSpaceSensitiveNode:c,isTrailingSpaceSensitiveNode:p,isWhitespaceSensitiveNode:d,isVueScriptTag:h}=nH(),f=[function(e){e.walk(e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&e.children[0].value[0]===`
|
|
135
|
-
`){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}})},function(e){let t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.firstChild;e.removeChild(s),n--;let o=new r(s.sourceSpan.start,a.sourceSpan.end),u=new r(o.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=u,i.startSourceSpan=o,i.removeChild(a)}})},function(e){return function(e,t,n){e.walk(e=>{if(e.children)for(let i=0;i<e.children.length;i++){let s=e.children[i];if("text"!==s.type&&!t(s))continue;"text"!==s.type&&(s.type="text",s.value=n(s));let a=s.prev;!a||"text"!==a.type||(a.value+=s.value,a.sourceSpan=new r(a.sourceSpan.start,s.sourceSpan.end),e.removeChild(s),i--)}})}(e,e=>"cdata"===e.type,e=>`<![CDATA[${e.value}]]>`)},function(e,t){if("html"===t.parser)return;let n=/{{(.+?)}}/s;e.walk(e=>{if(a(e))for(let t of e.children){if("text"!==t.type)continue;let i=t.sourceSpan.start,s=null,a=t.value.split(n);for(let n=0;n<a.length;n++,i=s){let o=a[n];if(n%2==0){s=i.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:"text",value:o,sourceSpan:new r(i,s)});continue}s=i.moveBy(o.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new r(i,s),children:0===o.length?[]:[{type:"text",value:o,sourceSpan:new r(i.moveBy(2),s.moveBy(-2))}]})}e.removeChild(t)}})},function(e){e.walk(e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===n(e.children[0].value).length){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let t=d(e),s=l(e);if(!t)for(let t=0;t<e.children.length;t++){let n=e.children[t];if("text"!==n.type)continue;let{leadingWhitespace:s,text:a,trailingWhitespace:o}=i(n.value),u=n.prev,l=n.next;a?(n.value=a,n.sourceSpan=new r(n.sourceSpan.start.moveBy(s.length),n.sourceSpan.end.moveBy(-o.length)),s&&(u&&(u.hasTrailingSpaces=!0),n.hasLeadingSpaces=!0),o&&(n.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(n),t--,(s||o)&&(u&&(u.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=s})},function(e,t){e.walk(e=>{e.cssDisplay=o(e,t)})},function(e){e.walk(e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})},function(e,t){e.walk(e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})},function(e,t){e.walk(e=>{let{children:r}=e;if(r){if(0===r.length){e.isDanglingSpaceSensitive=u(e);return}for(let e of r)e.isLeadingSpaceSensitive=c(e,t),e.isTrailingSpaceSensitive=p(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})},function(e){let t=e=>"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!s(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let i=e.children[n];if(!t(i))continue;let s=i.prev,a=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+a.value,s.sourceSpan=new r(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(i),n--,e.removeChild(a)}})},function(e,t){if("vue"===t.parser){let r=e.children.find(e=>h(e,t));if(!r)return;let{lang:n}=r.attrMap;("ts"===n||"typescript"===n)&&(t.__should_parse_vue_template_with_ts=!0)}}];t.exports=function(e,t){for(let r of f)r(e,t);return e}}}),nY=f({"src/language-html/pragma.js"(e,t){v();t.exports={hasPragma:function(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)},insertPragma:function(e){return`<!-- @format -->
|
|
136
|
-
|
|
137
|
-
`+e.replace(/^\s*\n/,"")}}}}),nQ=f({"src/language-html/loc.js"(e,t){v();t.exports={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}}}}),nZ=f({"src/language-html/print/tag.js"(e,t){v();var r=tP(),{isNonEmptyArray:n}=eo(),{builders:{indent:i,join:s,line:a,softline:o,hardline:u},utils:{replaceTextEndOfLine:l}}=M(),{locStart:c,locEnd:p}=nQ(),{isTextLikeNode:d,getLastDescendant:h,isPreLikeNode:f,hasPrettierIgnore:m,shouldPreserveContent:y,isVueSfcBlock:g}=nH();function D(e,t){return e.lastChild&&T(e.lastChild)?"":[function(e,t){return w(e)?C(e.lastChild,t):""}(e,t),E(e,t)]}function x(e,t){return(e.next?A(e.next):w(e.parent))?"":[C(e,t),b(e,t)]}function b(e,t){return T(e)?E(e.parent,t):P(e)?O(e.next):""}function E(e,t){if(r(!e.isSelfClosing),S(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function C(e,t){if(S(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]>\x3c!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function S(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(m(e)||y(e.parent,t))}function A(e){return e.prev&&"docType"!==e.prev.type&&!d(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function w(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!d(h(e.lastChild))&&!f(e)}function T(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&d(h(e))}function P(e){return e.next&&!d(e.next)&&d(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function F(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function k(e,t){return e.prev&&P(e.prev)?"":[N(e,t),O(e)]}function N(e,t){return F(e)?I(e.parent):A(e)?C(e.prev,t):""}function O(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function I(e){switch(r(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]-->";default:return">"}}t.exports={printClosingTag:function(e,t){return[e.isSelfClosing?"":D(e,t),x(e,t)]},printClosingTagStart:D,printClosingTagStartMarker:E,printClosingTagEndMarker:C,printClosingTagSuffix:b,printClosingTagEnd:x,needsToBorrowLastChildClosingTagEndMarker:w,needsToBorrowParentClosingTagStartMarker:T,needsToBorrowPrevClosingTagEndMarker:A,printOpeningTag:function(e,t,r){var d;let h=e.getValue();return[k(h,t),function(e,t,r){let d,h=e.getValue();if(!n(h.attrs))return h.isSelfClosing?" ":"";let f=h.prev&&"comment"===h.prev.type&&!!(d=h.prev.value.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s))&&(!d[1]||d[1].split(/\s+/)),m="boolean"==typeof f?()=>f:Array.isArray(f)?e=>f.includes(e.rawName):()=>!1,y=e.map(e=>{let n=e.getValue();return m(n)?l(t.originalText.slice(c(n),p(n))):r()},"attrs"),D="element"===h.type&&"script"===h.fullName&&1===h.attrs.length&&"src"===h.attrs[0].fullName&&0===h.children.length,v=t.singleAttributePerLine&&h.attrs.length>1&&!g(h,t)?u:a,x=[i([D?" ":a,s(v,y)])];return h.firstChild&&F(h.firstChild)||h.isSelfClosing&&w(h.parent)||D?x.push(h.isSelfClosing?" ":""):x.push(t.bracketSameLine?h.isSelfClosing?" ":"":h.isSelfClosing?a:o),x}(e,t,r),h.isSelfClosing?"":(d=h).firstChild&&F(d.firstChild)?"":I(d)]},printOpeningTagStart:k,printOpeningTagPrefix:N,printOpeningTagStartMarker:O,printOpeningTagEndMarker:I,needsToBorrowNextOpeningTagStartMarker:P,needsToBorrowParentOpeningTagEndMarker:F}}}),n0=f({"node_modules/parse-srcset/src/parse-srcset.js"(e,t){var r,n;v(),r=e,n=function(){return function(e,t){var r=t&&t.logger||console;function n(e){return" "===e||" "===e||e===`
|
|
138
|
-
`||"\f"===e||"\r"===e}function i(t){var r,n=t.exec(e.substring(g));if(n)return r=n[0],g+=r.length,r}for(var s,a,o,u,l,c=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,D=[];;){if(i(d),g>=c)return D;s=i(h),a=[],","===s.slice(-1)?(s=s.replace(f,""),v()):function(){for(i(p),o="",u="in descriptor";;){if(l=e.charAt(g),"in descriptor"===u){if(n(l))o&&(a.push(o),o="",u="after descriptor");else if(","===l){g+=1,o&&a.push(o),v();return}else if("("===l)o+=l,u="in parens";else if(""===l){o&&a.push(o),v();return}else o+=l}else if("in parens"===u){if(")"===l)o+=l,u="in descriptor";else if(""===l){a.push(o),v();return}else o+=l}else if("after descriptor"===u&&!n(l)){if(""===l){v();return}u="in descriptor",g-=1}g+=1}}()}function v(){var t,n,i,o,u,l,c,p,d,h=!1,f={};for(o=0;o<a.length;o++)l=(u=a[o])[u.length-1],p=parseInt(c=u.substring(0,u.length-1),10),d=parseFloat(c),m.test(c)&&"w"===l?((t||n)&&(h=!0),0===p?h=!0:t=p):y.test(c)&&"x"===l?((t||n||i)&&(h=!0),d<0?h=!0:n=d):m.test(c)&&"h"===l?((i||n)&&(h=!0),0===p?h=!0:i=p):h=!0;h?r&&r.error&&r.error("Invalid srcset descriptor found in '"+e+"' at '"+u+"'."):(f.url=s,t&&(f.w=t),n&&(f.d=n),i&&(f.h=i),D.push(f))}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof t&&t.exports?t.exports=n():r.parseSrcset=n()}}),n1=f({"src/language-html/syntax-attribute.js"(e,t){v();var r=n0(),{builders:{ifBreak:n,join:i,line:s}}=M();t.exports={printImgSrcset:function(e){let t=r(e,{logger:{error(e){throw Error(e)}}}),a=t.some(e=>{let{w:t}=e;return t}),o=t.some(e=>{let{h:t}=e;return t});if(a+o+t.some(e=>{let{d:t}=e;return t})>1)throw Error("Mixed descriptor in srcset is not supported");let u=a?"w":o?"h":"d",l=a?"w":o?"h":"x",c=e=>Math.max(...e),p=t.map(e=>e.url),d=c(p.map(e=>e.length)),h=t.map(e=>e[u]).map(e=>e?e.toString():""),f=h.map(e=>{let t=e.indexOf(".");return -1===t?e.length:t}),m=c(f);return i([",",s],p.map((e,t)=>{let r=[e],i=h[t];if(i){let s=d-e.length+1,a=m-f[t],o=" ".repeat(s+a);r.push(n(o," "),i+l)}return r}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}}}}),n2=f({"src/language-html/syntax-vue.js"(e,t){v();var{builders:{group:r}}=M();t.exports={isVueEventBindingExpression:function(e){let t=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){let{left:n,operator:i,right:s}=function(e){let t=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=e.match(/(.*?)\s+(in|of)\s+(.*)/s);if(!r)return;let n={};if(n.for=r[3].trim(),!n.for)return;let i=r[1].trim().replace(/^\(|\)$/g,""),s=i.match(t);s?(n.alias=i.replace(t,""),n.iterator1=s[1].trim(),s[2]&&(n.iterator2=s[2].trim())):n.alias=i;let a=[n.alias,n.iterator1,n.iterator2];if(!a.some((e,t)=>!e&&(0===t||a.slice(t+1).some(Boolean))))return{left:a.filter(Boolean).join(","),operator:r[2],right:n.for}}(e);return[r(t(`function _(${n}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",i," ",t(s,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,t){return t(`function _(${e}) {}`,{parser:"babel",__isVueBindings:!0})}}}}),n3=f({"src/language-html/get-node-content.js"(e,t){v();var{needsToBorrowParentClosingTagStartMarker:r,printClosingTagStartMarker:n,needsToBorrowLastChildClosingTagEndMarker:i,printClosingTagEndMarker:s,needsToBorrowParentOpeningTagEndMarker:a,printOpeningTagEndMarker:o}=nZ();t.exports=function(e,t){let u=e.startSourceSpan.end.offset;e.firstChild&&a(e.firstChild)&&(u-=o(e).length);let l=e.endSourceSpan.start.offset;return e.lastChild&&r(e.lastChild)?l+=n(e,t).length:i(e)&&(l-=s(e.lastChild,t).length),t.originalText.slice(u,l)}}}),n8=f({"src/language-html/embed.js"(e,t){v();var{builders:{breakParent:r,group:n,hardline:i,indent:s,line:a,fill:o,softline:u},utils:{mapDoc:l,replaceTextEndOfLine:c}}=M(),p=r8(),{printClosingTag:d,printClosingTagSuffix:h,needsToBorrowPrevClosingTagEndMarker:f,printOpeningTagPrefix:m,printOpeningTag:y}=nZ(),{printImgSrcset:g,printClassNames:D}=n1(),{printVueFor:x,printVueBindings:b,isVueEventBindingExpression:E}=n2(),{isScriptLikeTag:C,isVueNonHtmlBlock:S,inferScriptParser:A,htmlTrimPreserveIndentation:w,dedentString:T,unescapeQuoteEntities:P,isVueSlotAttribute:F,isVueSfcBindingsAttribute:k,getTextValueParts:N}=nH(),O=n3();t.exports=function(e,t,v,I){let j=e.getValue();switch(j.type){case"element":if(C(j)||"interpolation"===j.type)return;if(!j.isSelfClosing&&S(j,I)){let r=A(j,I);if(!r)return;let s=O(j,I),a=/^\s*$/.test(s),o="";return a||(a=""===(o=v(w(s),{parser:r,__embeddedInHtml:!0},{stripTrailingHardline:!0}))),[m(j,I),n(y(e,I,t)),a?"":i,o,a?"":i,d(j,I),h(j,I)]}break;case"text":if(C(j.parent)){let e=A(j.parent,I);if(e){let t="markdown"===e?T(j.value.replace(/^[^\S\n]*\n/,"")):j.value,n={parser:e,__embeddedInHtml:!0};if("html"===I.parser&&"babel"===e){let e="script",{attrMap:t}=j.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),n.__babelSourceType=e}return[r,m(j,I),v(t,n,{stripTrailingHardline:!0}),h(j,I)]}}else if("interpolation"===j.parent.type){let e={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===I.parser?(e.parser="__ng_interpolation",e.trailingComma="none"):"vue"===I.parser?e.parser=I.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":e.parser="__js_expression",[s([a,v(j.value,e,{stripTrailingHardline:!0})]),j.parent.next&&f(j.parent.next)?" ":a]}break;case"attribute":{if(!j.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(I.originalText.slice(j.valueSpan.start.offset,j.valueSpan.end.offset))||"lwc"===I.parser&&/^{.*}$/s.test(I.originalText.slice(j.valueSpan.start.offset,j.valueSpan.end.offset)))return[j.rawName,"=",j.value];let e=function(e,t,r){let i=t=>new RegExp(t.join("|")).test(e.fullName),l=()=>P(e.value),p=!1,d=(e,t)=>{let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||"__vue_expression"===t.parser&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))&&(p=!0)},h=e=>n(e),f=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return n([s([u,e]),t?u:""])},m=e=>p?h(e):f(e),y=(e,r)=>t(e,Object.assign({__onHtmlBindingRoot:d,__embeddedInHtml:!0},r));if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return f(g(l()));if("class"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return D(e)}if("style"===e.fullName&&!r.parentParser){let e=l();if(!e.includes("{{"))return f(y(e,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===r.parser){if("v-for"===e.fullName)return x(l(),y);if(F(e)||k(e,r))return b(l(),y);if(i(["^@","^v-on:"])){let e=l(),t=E(e)?"__js_expression":r.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(y(e,{parser:t}))}if(i(["^:","^v-bind:"]))return m(y(l(),{parser:"__vue_expression"}));if(i(["^v-"]))return m(y(l(),{parser:"__js_expression"}))}if("angular"===r.parser){let t=(e,t)=>y(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"}));if(i(["^\\(.+\\)$","^on-"]))return m(t(l(),{parser:"__ng_action"}));if(i(["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"]))return m(t(l(),{parser:"__ng_binding"}));if(i(["^i18n(-.+)?$"])){let t=l().trim();return f(o(N(e,t)),!t.includes("@@"))}if(i(["^\\*"]))return m(t(l(),{parser:"__ng_directive"}));let r=/{{(.+?)}}/s,u=l();if(r.test(u)){let e=[];for(let[i,o]of u.split(r).entries())if(i%2==0)e.push(c(o));else try{e.push(n(["{{",s([a,t(o,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),a,"}}"]))}catch{e.push("{{",c(o),"}}")}return n(e)}}return null}(j,(e,t)=>v(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0}),I);if(e)return[j.rawName,'="',n(l(e,e=>"string"==typeof e?e.replace(/"/g,"""):e)),'"'];break}case"front-matter":return p(j,v)}}}}),n4=f({"src/language-html/print/children.js"(e,t){v();var{builders:{breakParent:r,group:n,ifBreak:i,line:s,softline:a,hardline:o},utils:{replaceTextEndOfLine:u}}=M(),{locStart:l,locEnd:c}=nQ(),{forceBreakChildren:p,forceNextEmptyLine:d,isTextLikeNode:h,hasPrettierIgnore:f,preferHardlineAsLeadingSpaces:m}=nH(),{printOpeningTagPrefix:y,needsToBorrowNextOpeningTagStartMarker:g,printOpeningTagStartMarker:D,needsToBorrowPrevClosingTagEndMarker:x,printClosingTagEndMarker:b,printClosingTagSuffix:E,needsToBorrowParentClosingTagStartMarker:C}=nZ();function S(e,t,r){let n=e.getValue();return f(n)?[y(n,t),...u(t.originalText.slice(l(n)+(n.prev&&g(n.prev)?D(n).length:0),c(n)-(n.next&&x(n.next)?b(n,t).length:0))),E(n,t)]:r()}function A(e,t){return h(e)&&h(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?m(t)?o:s:"":m(t)?o:a:g(e)&&(f(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&x(t)?"":!t.isLeadingSpaceSensitive||m(t)||x(t)&&e.lastChild&&C(e.lastChild)&&e.lastChild.lastChild&&C(e.lastChild.lastChild)?o:t.hasLeadingSpaces?s:a}t.exports={printChildren:function(e,t,s){let u=e.getValue();if(p(u))return[r,...e.map(e=>{let r=e.getValue(),n=r.prev?A(r.prev,r):"";return[n?[n,d(r.prev)?o:""]:"",S(e,t,s)]},"children")];let l=u.children.map(()=>Symbol(""));return e.map((e,r)=>{let u=e.getValue();if(h(u)){if(u.prev&&h(u.prev)){let r=A(u.prev,u);if(r)return d(u.prev)?[o,o,S(e,t,s)]:[r,S(e,t,s)]}return S(e,t,s)}let c=[],p=[],f=[],m=[],y=u.prev?A(u.prev,u):"",g=u.next?A(u,u.next):"";return y&&(d(u.prev)?c.push(o,o):y===o?c.push(o):h(u.prev)?p.push(y):p.push(i("",a,{groupId:l[r-1]}))),g&&(d(u)?h(u.next)&&m.push(o,o):g===o?h(u.next)&&m.push(o):f.push(g)),[...c,n([...p,n([S(e,t,s),...f],{id:l[r]})]),...m]},"children")}}}}),n6=f({"src/language-html/print/element.js"(e,t){v();var{builders:{breakParent:r,dedentToRoot:n,group:i,ifBreak:s,indentIfBreak:a,indent:o,line:u,softline:l},utils:{replaceTextEndOfLine:c}}=M(),p=n3(),{shouldPreserveContent:d,isScriptLikeTag:h,isVueCustomBlock:f,countParents:m,forceBreakContent:y}=nH(),{printOpeningTagPrefix:g,printOpeningTag:D,printClosingTagSuffix:x,printClosingTag:b,needsToBorrowPrevClosingTagEndMarker:E,needsToBorrowLastChildClosingTagEndMarker:C}=nZ(),{printChildren:S}=n4();t.exports={printElement:function(e,t,v){var A;let w=e.getValue();if(d(w,t))return[g(w,t),i(D(e,t,v)),...c(p(w,t)),...b(w,t),x(w,t)];let T=1===w.children.length&&"interpolation"===w.firstChild.type&&w.firstChild.isLeadingSpaceSensitive&&!w.firstChild.hasLeadingSpaces&&w.lastChild.isTrailingSpaceSensitive&&!w.lastChild.hasTrailingSpaces,P=Symbol("element-attr-group-id"),F=r=>i([i(D(e,t,v),{id:P}),r,b(w,t)]);return F(0===w.children.length?w.hasDanglingSpaces&&w.isDanglingSpaceSensitive?u:"":[y(w)?r:"",(A=[T?s(l,"",{groupId:P}):w.firstChild.hasLeadingSpaces&&w.firstChild.isLeadingSpaceSensitive?u:"text"===w.firstChild.type&&w.isWhitespaceSensitive&&w.isIndentationSensitive?n(l):l,S(e,t,v)],T?a(A,{groupId:P}):(h(w)||f(w,t))&&"root"===w.parent.type&&"vue"===t.parser&&!t.vueIndentScriptAndStyle?A:o(A)),(w.next?E(w.next):C(w.parent))?w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?" ":"":T?s(l,"",{groupId:P}):w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?u:("comment"===w.lastChild.type||"text"===w.lastChild.type&&w.isWhitespaceSensitive&&w.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*m(e,e=>e.parent&&"root"!==e.parent.type)}}$`).test(w.lastChild.value)?"":l])}}}}),n7=f({"src/language-html/printer-html.js"(e,t){v();var{builders:{fill:r,group:n,hardline:i,literalline:s},utils:{cleanDoc:a,getDocParts:o,isConcat:u,replaceTextEndOfLine:l}}=M(),c=nU(),{countChars:p,unescapeQuoteEntities:d,getTextValueParts:h}=nH(),f=nX(),{insertPragma:m}=nY(),{locStart:y,locEnd:g}=nQ(),D=n8(),{printClosingTagSuffix:x,printClosingTagEnd:b,printOpeningTagPrefix:E,printOpeningTagStart:C}=nZ(),{printElement:S}=n6(),{printChildren:A}=n4();t.exports={preprocess:f,print:function(e,t,c){let f=e.getValue();switch(f.type){case"front-matter":return l(f.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(f),[n(A(e,t,c)),i];case"element":case"ieConditionalComment":return S(e,t,c);case"ieConditionalStartComment":case"ieConditionalEndComment":return[C(f),b(f)];case"interpolation":return[C(f,t),...e.map(c,"children"),b(f,t)];case"text":{if("interpolation"===f.parent.type){let e=/\n[^\S\n]*$/,t=e.test(f.value);return[...l(t?f.value.replace(e,""):f.value),t?i:""]}let e=a([E(f,t),...h(f),x(f,t)]);return u(e)||"fill"===e.type?r(o(e)):e}case"docType":return[n([C(f,t)," ",f.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),b(f,t)];case"comment":return[E(f,t),...l(t.originalText.slice(y(f),g(f)),s),x(f,t)];case"attribute":{if(null===f.value)return f.rawName;let e=d(f.value),t=p(e,"'")<p(e,'"')?"'":'"';return[f.rawName,"=",t,...l('"'===t?e.replace(/"/g,"""):e.replace(/'/g,"'")),t]}default:throw Error(`Unexpected node type ${f.type}`)}},insertPragma:m,massageAstNode:c,embed:D}}}),n5=f({"src/language-html/options.js"(e,t){v();var r=rK(),n="HTML";t.exports={bracketSameLine:r.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:n,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:r.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:n,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),n9=f({"src/language-html/parsers.js"(){v()}}),ie=f({"node_modules/linguist-languages/data/HTML.json"(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),it=f({"node_modules/linguist-languages/data/Vue.json"(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),ir=f({"src/language-html/index.js"(e,t){v();var r=tL(),n=n7(),i=n5(),s=n9(),a=[r(ie(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),r(ie(),e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...e.extensions,".mjml"]})),r(ie(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),r(it(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))];t.exports={languages:a,printers:{html:n},options:i,parsers:s}}}),ii=f({"src/language-yaml/pragma.js"(e,t){v();t.exports={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format
|
|
139
|
-
|
|
140
|
-
${e}`}}}}),is=f({"src/language-yaml/loc.js"(e,t){v();t.exports={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}}}}),ia=f({"src/language-yaml/embed.js"(e,t){v();t.exports=function(e,t,r,n){if("root"===e.getValue().type&&n.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(n.filepath))return r(n.originalText,Object.assign(Object.assign({},n),{},{parser:"json"}))}}}),io=f({"src/language-yaml/utils.js"(e,t){v();var{getLast:r,isNonEmptyArray:n}=eo();function i(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function s(e){return"prettier-ignore"===e.value.trim()}function a(e){return n(null==e?void 0:e.leadingComments)}function o(e){return n(null==e?void 0:e.middleComments)}function u(e){return null==e?void 0:e.indicatorComment}function l(e){return null==e?void 0:e.trailingComment}function c(e){return n(null==e?void 0:e.endComments)}function p(e){let t=[],r;for(let n of e.split(/( +)/))" "!==n?" "===r?t.push(n):t.push((t.pop()||"")+n):void 0===r&&t.unshift(""),r=n;return" "===r&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}t.exports={getLast:r,getAncestorCount:function(e,t){let r=0,n=e.stack.length-1;for(let s=0;s<n;s++){let n=e.stack[s];i(n)&&t(n)&&r++}return r},isNode:i,isEmptyNode:function(e){return!n(e.children)&&!function(e){return a(e)||o(e)||u(e)||l(e)||c(e)}(e)},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}},mapNode:function e(t,r,n){return r("children"in t?Object.assign(Object.assign({},t),{},{children:t.children.map(n=>e(n,r,t))}):t,n)},defineShortcut:function(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})},isNextLineEmpty:function(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let e=t[i];if(e===`
|
|
141
|
-
`&&r++,1===r&&/\S/.test(e))break;if(2===r)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let t=e.stack[r],n=e.stack[r-1];if(Array.isArray(n)&&"number"==typeof t&&t!==n.length-1)return!1}return!0},getBlockValueLineContents:function(e,t){let{parentIndent:n,isLastDescendant:i,options:s}=t,a=e.position.start.line===e.position.end.line?"":s.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],o;if(null===e.indent){let e=a.match(/^(?<leadingSpace> *)[^\n\r ]/m);o=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else o=e.indent-1+n;let u=a.split(`
|
|
142
|
-
`).map(e=>e.slice(o));if("preserve"===s.proseWrap||"blockLiteral"===e.type)return l(u.map(e=>0===e.length?[]:[e]));return l(u.map(e=>0===e.length?[]:p(e)).reduce((e,t,n)=>0!==n&&u[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(r(e))?[...e.slice(0,-1),[...r(e),...t]]:[...e,t],[]).map(e=>e.reduce((e,t)=>e.length>0&&/\s$/.test(r(e))?[...e.slice(0,-1),r(e)+" "+t]:[...e,t],[])).map(e=>"never"===s.proseWrap?[e.join(" ")]:e));function l(t){if("keep"===e.chomping)return 0===r(t).length?t.slice(0,-1):t;let n=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)n++;return 0===n?t:n>=2&&!i?t.slice(0,-(n-1)):t.slice(0,-n)}},getFlowScalarLineContents:function(e,t,n){let i=t.split(`
|
|
143
|
-
`).map((e,t,r)=>0===t&&t===r.length-1?e:0!==t&&t!==r.length-1?e.trim():0===t?e.trimEnd():e.trimStart());return"preserve"===n.proseWrap?i.map(e=>0===e.length?[]:[e]):i.map(e=>0===e.length?[]:p(e)).reduce((t,n,s)=>0!==s&&i[s-1].length>0&&n.length>0&&!("quoteDouble"===e&&r(r(t)).endsWith("\\"))?[...t.slice(0,-1),[...r(t),...n]]:[...t,n],[]).map(e=>"never"===n.proseWrap?[e.join(" ")]:e)},getLastDescendantNode:function e(t){return n(t.children)?e(r(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if("documentBody"===t.type){let t=e.getParentNode();return c(t.head)&&s(r(t.head.endComments))}return a(t)&&s(r(t.leadingComments))},hasLeadingComments:a,hasMiddleComments:o,hasIndicatorComment:u,hasTrailingComment:l,hasEndComments:c}}}),iu=f({"src/language-yaml/print-preprocess.js"(e,t){v();var{defineShortcut:r,mapNode:n}=io();function i(e){switch(e.type){case"document":r(e,"head",()=>e.children[0]),r(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":r(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":r(e,"key",()=>e.children[0]),r(e,"value",()=>e.children[1])}return e}t.exports=function(e){return n(e,i)}}}),il=f({"src/language-yaml/print/misc.js"(e,t){v();var{builders:{softline:r,align:n}}=M(),{hasEndComments:i,isNextLineEmpty:s,isNode:a}=io(),o=new WeakMap;function u(e){return i(e)&&!a(e,["documentHead","documentBody","flowMapping","flowSequence"])}t.exports={alignWithSpaces:function(e,t){return n(" ".repeat(e),t)},shouldPrintEndComments:u,printNextEmptyLine:function(e,t){let n=e.getValue(),i=e.stack[0],a;return o.has(i)?a=o.get(i):(a=new Set,o.set(i,a)),!a.has(n.position.end.line)&&(a.add(n.position.end.line),s(n,t)&&!u(e.getParentNode()))?r:""}}}}),ic=f({"src/language-yaml/print/flow-mapping-sequence.js"(e,t){v();var{builders:{ifBreak:r,line:n,softline:i,hardline:s,join:a}}=M(),{isEmptyNode:o,getLast:u,hasEndComments:l}=io(),{printNextEmptyLine:c,alignWithSpaces:p}=il();function d(e,t,d){let h=e.getValue(),f="flowMapping"===h.type,m=i;f&&h.children.length>0&&d.bracketSpacing&&(m=n);let y=u(h.children),g=y&&"flowMappingItem"===y.type&&o(y.key)&&o(y.value);return[f?"{":"[",p(d.tabWidth,[m,function(e,t,r){let i=e.getValue();return e.map((e,s)=>[t(),s===i.children.length-1?"":[",",n,i.children[s].position.start.line!==i.children[s+1].position.start.line?c(e,r.originalText):""]],"children")}(e,t,d),"none"===d.trailingComma?"":r(","),l(h)?[s,a(s,e.map(t,"endComments"))]:""]),g?"":m,f?"}":"]"]}t.exports={printFlowMapping:d,printFlowSequence:d}}}),ip=f({"src/language-yaml/print/mapping-item.js"(e,t){v();var{builders:{conditionalGroup:r,group:n,hardline:i,ifBreak:s,join:a,line:o}}=M(),{hasLeadingComments:u,hasMiddleComments:l,hasTrailingComment:c,hasEndComments:p,isNode:d,isEmptyNode:h,isInlineNode:f}=io(),{alignWithSpaces:m}=il();function y(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
|
|
144
|
-
`);case"always":return!/[\n ]/.test(e.value);default:return!1}}t.exports=function(e,t,g,D,v){let{key:x,value:b}=e,E=h(x),C=h(b);if(E&&C)return": ";let S=D("key"),A=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(C)return"flowMappingItem"===e.type&&"flowMapping"===t.type?S:"mappingItem"===e.type&&y(x.content,v)&&!c(x.content)&&(!t.tag||"tag:yaml.org,2002:set"!==t.tag.value)?[S,A,":"]:["? ",m(2,S)];let w=D("value");if(E)return[": ",m(2,w)];if(u(b)||!f(x.content))return["? ",m(2,S),i,a("",g.map(D,"value","leadingComments").map(e=>[e,i])),": ",m(2,w)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(x.content)&&!u(x.content)&&!l(x.content)&&!c(x.content)&&!p(x)&&!u(b.content)&&!l(b.content)&&!p(b)&&y(b.content,v))return[S,A,": ",w];let T=Symbol("mappingKey"),P=n([s("? "),n(m(2,S),{id:T})]),F=[i,": ",m(2,w)],k=[A,":"];u(b.content)||p(b)&&b.content&&!d(b.content,["mapping","sequence"])||"mapping"===t.type&&c(x.content)&&f(b.content)||d(b.content,["mapping","sequence"])&&null===b.content.tag&&null===b.content.anchor?k.push(i):b.content&&k.push(o),k.push(w);let N=m(v.tabWidth,k);return!y(x.content,v)||u(x.content)||l(x.content)||p(x)?r([[P,s(F,N,{groupId:T})]]):r([[S,N]])}}}),id=f({"src/language-yaml/print/block.js"(e,t){v();var{builders:{dedent:r,dedentToRoot:n,fill:i,hardline:s,join:a,line:o,literalline:u,markAsRoot:l},utils:{getDocParts:c}}=M(),{getAncestorCount:p,getBlockValueLineContents:d,hasIndicatorComment:h,isLastDescendantNode:f,isNode:m}=io(),{alignWithSpaces:y}=il();t.exports=function(e,t,g){let D=e.getValue(),v=p(e,e=>m(e,["sequence","mapping"])),x=f(e),b=["blockFolded"===D.type?">":"|"];null!==D.indent&&b.push(D.indent.toString()),"clip"!==D.chomping&&b.push("keep"===D.chomping?"+":"-"),h(D)&&b.push(" ",t("indicatorComment"));let E=d(D,{parentIndent:v,isLastDescendant:x,options:g}),C=[];for(let[e,t]of E.entries())0===e&&C.push(s),C.push(i(c(a(o,t)))),e!==E.length-1?C.push(0===t.length?s:l(u)):"keep"===D.chomping&&x&&C.push(n(0===t.length?s:u));return null===D.indent?b.push(r(y(g.tabWidth,C))):b.push(n(y(D.indent-1+v,C))),b}}}),ih=f({"src/language-yaml/printer-yaml.js"(e,t){v();var{builders:{breakParent:r,fill:n,group:i,hardline:s,join:a,line:o,lineSuffix:u,literalline:l},utils:{getDocParts:c,replaceTextEndOfLine:p}}=M(),{isPreviousLineEmpty:d}=eo(),{insertPragma:h,isPragma:f}=ii(),{locStart:m}=is(),y=ia(),{getFlowScalarLineContents:g,getLastDescendantNode:D,hasLeadingComments:x,hasMiddleComments:b,hasTrailingComment:E,hasEndComments:C,hasPrettierIgnore:S,isLastDescendantNode:A,isNode:w,isInlineNode:T}=io(),P=iu(),{alignWithSpaces:F,printNextEmptyLine:k,shouldPrintEndComments:N}=il(),{printFlowMapping:O,printFlowSequence:I}=ic(),j=ip(),B=id();function L(e,t){return E(e)||t&&(t.head.children.length>0||C(t.head))}function _(e,t,r){return a(s,g(e,t,r).map(e=>n(c(a(o,e)))))}t.exports={preprocess:P,embed:y,print:function(e,t,n){let o=e.getValue(),c=[];"mappingValue"!==o.type&&x(o)&&c.push([a(s,e.map(n,"leadingComments")),s]);let{tag:h,anchor:f}=o;h&&c.push(n("tag")),h&&f&&c.push(" "),f&&c.push(n("anchor"));let y="";w(o,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!A(e)&&(y=k(e,t.originalText)),(h||f)&&(w(o,["sequence","mapping"])&&!b(o)?c.push(s):c.push(" ")),b(o)&&c.push([1===o.middleComments.length?"":s,a(s,e.map(n,"middleComments")),s]);let g=e.getParentNode();return S(e)?c.push(p(t.originalText.slice(o.position.start.offset,o.position.end.offset).trimEnd(),l)):c.push(i(function(e,t,r,n,i){switch(e.type){case"root":{let{children:t}=e,n=[];r.each((e,r)=>{let a=t[r],o=t[r+1];0!==r&&n.push(s),n.push(i()),L(a,o)?(n.push(s,"..."),E(a)&&n.push(" ",i("trailingComment"))):o&&!E(o.head)&&n.push(s,"---")},"children");let a=D(e);return w(a,["blockLiteral","blockFolded"])&&"keep"===a.chomping||n.push(s),n}case"document":{let o=t.children[r.getName()+1],u=[];return"head"===function(e,t,r,n){return r.children[0]===e&&/---(?:\s|$)/.test(n.originalText.slice(m(e),m(e)+4))||e.head.children.length>0||C(e.head)||E(e.head)?"head":!L(e,t)&&!!t&&"root"}(e,o,t,n)&&((e.head.children.length>0||e.head.endComments.length>0)&&u.push(i("head")),E(e.head)?u.push(["---"," ",i(["head","trailingComment"])]):u.push("---")),function(e){return e.body.children.length>0||C(e.body)}(e)&&u.push(i("body")),a(s,u)}case"documentHead":return a(s,[...r.map(i,"children"),...r.map(i,"endComments")]);case"documentBody":{let{children:t,endComments:n}=e,o="";if(t.length>0&&n.length>0){let t=D(e);w(t,["blockFolded","blockLiteral"])?"keep"!==t.chomping&&(o=[s,s]):o=s}return[a(s,r.map(i,"children")),o,a(s,r.map(i,"endComments"))]}case"directive":return["%",a(" ",[e.name,...e.parameters])];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return _(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let t=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&t.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(t)){let r="quoteDouble"===e.type?'"':"'";return[r,_(e.type,t,n),r]}if(t.includes('"'))return["'",_(e.type,"quoteDouble"===e.type?t.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):t,n),"'"];if(t.includes("'"))return['"',_(e.type,"quoteSingle"===e.type?t.replace(/''/g,"'"):t,n),'"'];let r=n.singleQuote?"'":'"';return[r,_(e.type,t,n),r]}case"blockFolded":case"blockLiteral":return B(r,i,n);case"mapping":case"sequence":return a(s,r.map(i,"children"));case"sequenceItem":return["- ",F(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return j(e,t,r,i,n);case"flowMapping":return O(r,i,n);case"flowSequence":return I(r,i,n);case"flowSequenceItem":return i("content");default:throw Error(`Unexpected node type ${e.type}`)}}(o,g,e,t,n))),E(o)&&!w(o,["document","documentHead"])&&c.push(u(["mappingValue"!==o.type||o.content?" ":"","mappingKey"===g.type&&"mapping"===e.getParentNode(2).type&&T(o)?"":r,n("trailingComment")])),N(o)&&c.push(F("sequenceItem"===o.type?2:0,[s,a(s,e.map(e=>[d(t.originalText,e.getValue(),m)?s:"",n()],"endComments"))])),c.push(y),c},massageAstNode:function(e,t){if(w(t))switch(delete t.position,t.type){case"comment":if(f(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:h}}}),im=f({"src/language-yaml/options.js"(e,t){v();var r=rK();t.exports={bracketSpacing:r.bracketSpacing,singleQuote:r.singleQuote,proseWrap:r.proseWrap}}}),iy=f({"src/language-yaml/parsers.js"(){v()}}),ig=f({"node_modules/linguist-languages/data/YAML.json"(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),iD=f({"src/language-yaml/index.js"(e,t){v();var r=tL(),n=ih(),i=im(),s=iy(),a=[r(ig(),e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...e.filenames.filter(e=>"yarn.lock"!==e),".prettierrc",".stylelintrc",".lintstagedrc"]}))];t.exports={languages:a,printers:{yaml:n},options:i,parsers:s}}}),iv=f({"src/languages.js"(e,t){v(),t.exports=[r2(),nd(),nx(),nT(),n$(),ir(),iD()]}});v();var{version:ix}=x(),ib=tj(),{getSupportInfo:iE}=ee(),iC=tB(),iS=iv(),iA=M();function iw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];let s=n[t]||{},a=s.plugins||[];return n[t]=Object.assign(Object.assign({},s),{},{plugins:[...iS,...Array.isArray(a)?a:Object.values(a)]}),e(...n)}}var iT=iw(ib.formatWithCursor);t.exports={formatWithCursor:iT,format:(e,t)=>iT(e,t).formatted,check(e,t){let{formatted:r}=iT(e,t);return r===e},doc:iA,getSupportInfo:iw(iE,0),version:ix,util:iC,__debug:{parse:iw(ib.parse),formatAST:iw(ib.formatAST),formatDoc:iw(ib.formatDoc),printToDoc:iw(ib.printToDoc),printDocToString:iw(ib.printDocToString)}}})()})},97209:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return E}});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,i=0;function s(){r&&(r=!1,e()),n&&u()}function o(){a(s)}function u(){var e=Date.now();if(r){if(e-i<2)return;n=!0}else r=!0,n=!1,setTimeout(o,20);i=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){!~this.observers_.indexOf(e)&&this.observers_.push(e),!this.connected_&&this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;o.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return!this.instance_&&(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},d=y(0,0,0,0);function h(e){return parseFloat(e)||0}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+h(e["border-"+r+"-width"])},0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e,t,r,n){return{x:e,y:t,width:r,height:n}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!i)return d;if(m(e)){var t;return y(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return d;var n=p(e).getComputedStyle(e),i=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],s=e["padding-"+i];t[i]=h(s)}return t}(n),s=i.left+i.right,a=i.top+i.bottom,o=h(n.width),u=h(n.height);if("border-box"===n.boxSizing&&(Math.round(o+s)!==t&&(o-=f(n,"left","right")+s),Math.round(u+a)!==r&&(u-=f(n,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var l=Math.round(o+s)-t,c=Math.round(u+a)-r;1!==Math.abs(l)&&(o-=l),1!==Math.abs(c)&&(u-=c)}return y(i.left,i.top,o,u)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),D=function(e,t){var r,n,i,s,a,o,u=(n=(r=t).x,i=r.y,s=r.width,a=r.height,c(o=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:i,width:s,height:a,top:i,right:n+s,bottom:a+i,left:n}),o);c(this,{target:e,contentRect:u})},v=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;!t.has(e)&&(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),!t.size&&this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new D(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,b=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new v(t,l.getInstance(),this);x.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){b.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var E=void 0!==s.ResizeObserver?s.ResizeObserver:b},93057:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("90261");function i(e){return e===Object(e)&&0!==Object.keys(e).length}var s=function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(i(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:(0,n.default)(e,t));if(!r){var s,a=!1===(s=t)?{block:"end",inline:"nearest"}:i(s)?s:{block:"start",inline:"nearest"};return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(e){var n=e.el,i=e.top,s=e.left;n.scroll&&r?n.scroll({top:i,left:s,behavior:t}):(n.scrollTop=i,n.scrollLeft=s)})}((0,n.default)(e,a),a.behavior)}}},90261:function(e,t,r){"use strict";function n(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function s(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.overflowX,t)}return!1}function a(e,t,r,n,i,s,a,o){return s<e&&a>t||s>e&&a<t?0:s<=e&&o<=r||a>=t&&o>=r?s-e-n:a>t&&o<r||s<e&&o>r?a-t+i:0}function o(e,t){var r=t.scrollMode,i=t.block,o=t.inline,u=t.boundary,l=t.skipOverflowHiddenElements,c="function"==typeof u?u:function(e){return e!==u};if(!n(e))throw TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,d=[],h=e;n(h)&&c(h);){if((h=h.parentNode)===p){d.push(h);break}if(!(h===document.body&&s(h))||!!s(document.documentElement))s(h,l)&&d.push(h)}for(var f=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,D=e.getBoundingClientRect(),v=D.height,x=D.width,b=D.top,E=D.right,C=D.bottom,S=D.left,A="start"===i||"nearest"===i?b:"end"===i?C:b+v/2,w="center"===o?S+x/2:"end"===o?E:S,T=[],P=0;P<d.length;P++){var F=d[P],k=F.getBoundingClientRect(),N=k.height,O=k.width,I=k.top,j=k.right,B=k.bottom,L=k.left;if("if-needed"===r&&b>=0&&S>=0&&C<=m&&E<=f&&b>=I&&C<=B&&S>=L&&E<=j)break;var _=getComputedStyle(F),M=parseInt(_.borderLeftWidth,10),R=parseInt(_.borderTopWidth,10),$=parseInt(_.borderRightWidth,10),U=parseInt(_.borderBottomWidth,10),V=0,z=0,H="offsetWidth"in F?F.offsetWidth-F.clientWidth-M-$:0,W="offsetHeight"in F?F.offsetHeight-F.clientHeight-R-U:0;if(p===F)V="start"===i?A:"end"===i?A-m:"nearest"===i?a(g,g+m,m,R,U,g+A,g+A+v,v):A-m/2,z="start"===o?w:"center"===o?w-f/2:"end"===o?w-f:a(y,y+f,f,M,$,y+w,y+w+x,x),V=Math.max(0,V+g),z=Math.max(0,z+y);else{V="start"===i?A-I-R:"end"===i?A-B+U+W:"nearest"===i?a(I,B,N,R,U+W,A,A+v,v):A-(I+N/2)+W/2,z="start"===o?w-L-M:"center"===o?w-(L+O/2)+H/2:"end"===o?w-j+$+H:a(L,j,O,M,$+H,w,w+x,x);var q=F.scrollLeft,K=F.scrollTop;V=Math.max(0,Math.min(K+V,F.scrollHeight-N+W)),z=Math.max(0,Math.min(q+z,F.scrollWidth-O+H)),A+=K-V,w+=q-z}T.push({el:F,top:V,left:z})}return T}r.r(t),r.d(t,{default:function(){return o}})},18575:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,s;n=e,i=t,s=r[t],i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];return t.apply(r,[].concat(i,n))}}}function a(e){return({}).toString.call(e).includes("Object")}function o(e){return"function"==typeof e}var u=s(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),l={changes:function(e,t){return!a(t)&&u("changeType"),Object.keys(t).some(function(t){var r,n;return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n)})&&u("changeField"),t},selector:function(e){!o(e)&&u("selectorType")},handler:function(e){!(o(e)||a(e))&&u("handlerType"),a(e)&&Object.values(e).some(function(e){return!o(e)})&&u("handlersType")},initial:function(e){if(!e&&u("initialIsRequired"),!a(e)&&u("initialType"),!Object.keys(e).length)u("initialContent")}};function c(e,t){return o(t)?t(e.current):t}function p(e,t){return e.current=i(i({},e.current),t),t}function d(e,t,r){return o(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var h={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.initial(e),l.handler(t);var r={current:e},n=s(d)(r,t),i=s(p)(r),a=s(l.changes)(e),o=s(c)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return l.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,i,a,o)(e)}]}}},73607:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r("67294"),i=r.n(n),s=r("37785"),a=r("34855"),o=r("63138"),u=r("96803"),l=r("15955"),c=r("50049"),p=r("25227"),d=r("62647"),h=r("92833"),f=r("53367"),m=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],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},D=i().forwardRef(function(e,t){var r,u=(0,n.useRef)(null),D=(0,n.useContext)(o.ConfigContext),v=D.getPrefixCls,x=D.componentConfig,b=D.rtl,E=(0,h.default)(e,{},null==x?void 0:x.Checkbox),C=(0,n.useContext)(s.CheckboxGroupContext),S=v("checkbox"),A=C.onGroupChange,w=m({},E);C.isCheckboxGroup&&(w.checked=-1!==C.checkboxGroupValue.indexOf(E.value),w.disabled="disabled"in E?E.disabled:C.disabled);var T=w.disabled,P=w.children,F=w.className,k=w.value,N=w.style,O=w.indeterminate,I=w.error,j=y(w,["disabled","children","className","value","style","indeterminate","error"]),B=g((0,l.default)(!1,{value:w.checked,defaultValue:w.defaultChecked}),2),L=B[0],_=B[1],M=(0,a.default)(S,((r={})[S+"-disabled"]=!!T,r[S+"-indeterminate"]=!!O,r[S+"-checked"]=L,r[S+"-rtl"]=b,r.error=I,r),F);(0,n.useEffect)(function(){return C.registerValue(k),function(){C.unRegisterValue(k)}},[k]);var R=(0,n.useCallback)(function(e){e.persist(),e.stopPropagation(),_(e.target.checked),C.isCheckboxGroup&&A&&A(E.value,e.target.checked,e),E.onChange&&E.onChange(e.target.checked,e)},[A,C.isCheckboxGroup,E.onChange,E.value]),$=i().useCallback(function(e){(0,f.isFunction)(E.children)&&(e.preventDefault(),u.current&&u.current.click()),j.onClick&&j.onClick(e)},[E.children,j.onClick]),U=i().createElement(d.default,{className:S+"-mask-icon"});return w.icon&&(U=i().isValidElement(w.icon)?i().cloneElement(w.icon,{className:S+"-mask-icon"}):w.icon),i().createElement("label",m({ref:t,"aria-disabled":T},(0,c.default)(j,["onChange"]),{onClick:$,className:M,style:N}),i().createElement("input",{value:k,disabled:!!T,ref:u,checked:!!L,onChange:R,onClick:function(e){return e.stopPropagation()},type:"checkbox"}),(0,f.isFunction)(P)?P({checked:L,indeterminate:O}):i().createElement(i().Fragment,null,i().createElement(p.default,{prefix:S,className:S+"-mask-wrapper",disabled:L||T||O},i().createElement("div",{className:S+"-mask"},U)),!(0,f.isNullOrUndefined)(P)&&i().createElement("span",{className:S+"-text"},P)))});D.displayName="Checkbox",D.Group=s.default,D.useCheckbox=u.default;var v=D},37785:function(e,t,r){"use strict";r.r(t),r.d(t,{CheckboxGroupContext:function(){return f},default:function(){return y}});var n=r("67294"),i=r.n(n),s=r("73607"),a=r("34855"),o=r("63138"),u=r("15955"),l=r("53367"),c=r("91702"),p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},h=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},f=(0,n.createContext)({isCheckboxGroup:!1,checkboxGroupValue:[],onGroupChange:function(){},registerValue:function(){},unRegisterValue:function(){}});function m(e){var t,r=d((0,u.default)([],{defaultValue:"defaultValue"in e?e.defaultValue||[]:void 0,value:"value"in e?e.value||[]:void 0}),2),m=r[0],y=r[1],g=d((0,n.useState)([]),2),D=g[0],v=g[1],x=(0,n.useContext)(o.ConfigContext),b=x.getPrefixCls,E=x.rtl,C=e.disabled,S=e.options,A=e.style,w=e.className,T=e.error,P=e.children,F=e.direction,k=void 0===F?"horizontal":F,N=b("checkbox"),O=(0,a.default)(N+"-group",((t={})[N+"-group-is-error"]=T,t[N+"-group-direction-"+k]=k,t[N+"-group-rtl"]=E,t),w),I=(0,n.useCallback)(function(t,r,n){var i=m.slice();r?i.push(t):i.splice(m.indexOf(t),1),y(i),e.onChange&&e.onChange(i.filter(function(e){return D.indexOf(e)>-1}),n)},[m,e.onChange,D]);return i().createElement("span",p({className:O,style:A},(0,c.pickTriggerPropsFromRest)(e)),i().createElement(f.Provider,{value:{isCheckboxGroup:!0,checkboxGroupValue:m,onGroupChange:I,disabled:C,registerValue:function(e){v(function(t){return Array.from(new Set(h(h([],d(t),!1),[e],!1)))})},unRegisterValue:function(e){v(function(t){return t.filter(function(t){return t!==e})})}}},(0,l.isArray)(S)?S.map(function(e){var t=(0,l.isObject)(e)?e.label:e,r=(0,l.isObject)(e)?e.value:e,n=(0,l.isObject)(e)?e.icon:void 0;return i().createElement(s.default,{disabled:C||(0,l.isObject)(e)&&e.disabled,key:r,value:r,icon:n},t)}):P))}m.displayName="CheckboxGroup";var y=m},62647:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("67294"),i=r.n(n);function s(e){var t=e.className;return i().createElement("svg",{className:t,"aria-hidden":!0,focusable:!1,viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},i().createElement("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"}))}},13794:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=r("73607").default},96803:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("67294"),i=r("53367"),s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},a=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},o=function(e,t){var r=s((0,n.useState)(a([],s(t||[]),!1)),2),o=r[0],u=r[1],l=(0,n.useMemo)(function(){return{isSelected:function(e){return o.indexOf(e)>-1},setValueSelected:function(e,t){var r,n=(0,i.isArray)(e)?e:[e];r=t?a(a([],s(o),!1),s(n),!1):o.filter(function(e){return -1===n.indexOf(e)}),u(Array.from(new Set(r)))}}},[o]),c=l.isSelected,p=l.setValueSelected,d=(0,n.useMemo)(function(){var t=function(){return e.every(function(e){return c(e)})};return{selectAll:function(){u(e)},unSelectAll:function(){u([])},toggle:function(t){void 0===t&&(t=e);var r=(0,i.isArray)(t)?t:[t],n=a([],s(o),!1);r.forEach(function(e){var t=n.indexOf(e);t>-1?n.splice(t,1):n.push(e)}),u(n)},isAllSelected:t,isPartialSelected:function(){return e.some(function(e){return c(e)})&&!t()}}},[o,e,c]);return{selected:o,setSelected:u,setValueSelected:p,selectAll:d.selectAll,unSelectAll:d.unSelectAll,toggle:d.toggle,isSelected:c,isAllSelected:d.isAllSelected,isPartialSelected:d.isPartialSelected}}},63138:function(e,t,r){"use strict";r.r(t),r.d(t,{ConfigContext:function(){return v}});var n=r("67294"),i=r.n(n),s=r("9675"),a=r("53367"),o=r("82005"),u=r("19629"),l=r("28110"),c=r("43061"),p=r("91682"),d=r("4245"),h=r("50049"),f=r("92833"),m=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],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y={primaryColor:{default:"--arcoblue-6",hover:"--arcoblue-5",active:"--arcoblue-7"},successColor:{default:"--green-6",hover:"--green-5",active:"--green-7"},infoColor:{default:"--arcoblue-6",hover:"--arcoblue-5",active:"--arcoblue-7"},warningColor:{default:"--orangered-6",hover:"--orangered-5",active:"--orangered-7"},dangerColor:{default:"--red-6",hover:"--red-5",active:"--red-7"}},g={locale:s.default,prefixCls:"arco",getPopupContainer:function(){return document.body},size:"default",renderEmpty:function(e){return i().createElement(c.default,null)},focusLock:{modal:{autoFocus:!0},drawer:{autoFocus:!0}}},D={},v=(0,n.createContext)(m({getPrefixCls:function(e,t){return(t||"arco")+"-"+e}},g));function x(e){var t=(0,f.default)(e,g,D),r=t.theme,s=t.prefixCls,c=t.children,x=t.locale,b=t.rtl,E=t.effectGlobalNotice,C=void 0===E||E;(0,n.useEffect)(function(){!function(e){if(e&&(0,a.isObject)(e)){var t=document.body;Object.keys(y).forEach(function(r){e[r]&&(t.style.setProperty(y[r].default,(0,o.lighten)(e[r],0)),!e[r+"Hover"]&&t.style.setProperty(y[r].hover,(0,o.lighten)(e[r],10)),!e[r+"Active"]&&t.style.setProperty(y[r].active,(0,o.lighten)(e[r],-10)))})}}(r)},[r]),(0,n.useEffect)(function(){C&&(u.default.config({prefixCls:s,rtl:b}),l.default.config({prefixCls:s,rtl:b}))},[s,b,C]);var S=m(m({},(0,h.default)(t,["children"])),{getPrefixCls:function(e,t){return(t||s)+"-"+e}});(0,n.useEffect)(function(){(0,p.setConfigProviderProps)({locale:x,prefixCls:s,rtl:b})},[x,s]);var A=c;return s&&"arco"!==s&&(A=i().createElement(d.IconContext.Provider,{value:{prefixCls:s}},c)),i().createElement(v.Provider,{value:S},A)}x.ConfigContext=v,x.displayName="ConfigProvider",v.Consumer},82005:function(e,t,r){"use strict";r.r(t),r.d(t,{lighten:function(){return n}});function n(e,t){var r=function(e){var t,r,n,i,s={r:(i=(r=[],n=(t=e).substr(1),3===t.length&&(n=t.replace(/(.)/g,"$1$1")),n.replace(/../g,function(e){r.push(parseInt(e,16))}),{r:r[0],g:r[1],b:r[2],rgb:"rgb("+r.join(",")+")"})).r,g:i.g,b:i.b},a=function(e,t,r){var n,i,s=e/255,a=t/255,o=r/255,u=Math.max(s,a,o),l=Math.min(s,a,o),c=(u+l)/2;if(u===l)n=0,i=0;else{var p=u-l;switch(i=c>.5?p/(2-u-l):p/(u+l),u){case s:n=(a-o)/p+(a<o?6:0);break;case a:n=(o-s)/p+2;break;case o:n=(s-a)/p+4}n/=6}return{h:n,s:i,l:c,hsl:"hsl("+360*n+", "+100*i+"%, "+100*c+"%)"}}(s.r,s.g,s.b);return{h:a.h,s:a.s,l:a.l}}(e);return(function(e){var t,r,n,i=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[n=255*a,n,n];t=a<.5?a*(1+s):a+s-a*s;for(var o=2*a-t,u=[0,0,0],l=0;l<3;l++)(r=i+-(1/3*(l-1)))<0&&r++,r>1&&r--,n=6*r<1?o+(t-o)*6*r:2*r<1?t:3*r<2?o+(t-o)*(2/3-r)*6:o,u[l]=255*n;return u})([360*+r.h,100*+r.s,100*+r.l+ +t]).join(",")}},43061:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r("67294"),i=r.n(n),s=r("93008"),a=r("34855"),o=r("63138"),u=r("92833"),l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},p=(0,n.forwardRef)(function(e,t){var r=(0,n.useContext)(o.ConfigContext),p=r.getPrefixCls,d=r.locale,h=r.componentConfig,f=(0,u.default)(e,{},null==h?void 0:h.Empty),m=f.style,y=f.className,g=f.description,D=f.icon,v=f.imgSrc,x=c(f,["style","className","description","icon","imgSrc"]),b=p("empty"),E=(0,a.default)(b,y),C=d.Empty.noData,S="string"==typeof g?g:"empty";return i().createElement("div",l({ref:t,className:E,style:m},x),i().createElement("div",{className:b+"-wrapper"},i().createElement("div",{className:b+"-image"},v?i().createElement("img",{alt:S,src:v}):D||i().createElement(s.default,null)),i().createElement("div",{className:b+"-description"},g||C)))});p.displayName="Empty";var d=(0,n.memo)(p)},18692:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("63138"),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},l=(0,n.forwardRef)(function(e,t){var r=e.className,l=e.children,c=u(e,["className","children"]),p=(0,(0,n.useContext)(a.ConfigContext).getPrefixCls)("layout-content"),d=(0,s.default)(p,r);return i().createElement("main",o({ref:t},c,{className:d}),l)});l.displayName="LayoutContent";var c=l},44357:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("63138"),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},l=(0,n.forwardRef)(function(e,t){var r=e.className,l=e.children,c=u(e,["className","children"]),p=(0,(0,n.useContext)(a.ConfigContext).getPrefixCls)("layout-footer"),d=(0,s.default)(p,r);return i().createElement("footer",o({ref:t},c,{className:d}),l)});l.displayName="LayoutFooter";var c=l},81974:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("63138"),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},l=(0,n.forwardRef)(function(e,t){var r=(0,n.useContext)(a.ConfigContext).getPrefixCls,l=e.className,c=e.children,p=u(e,["className","children"]),d=r("layout-header"),h=(0,s.default)(d,l);return i().createElement("header",o({ref:t},p,{className:h}),c)});l.displayName="LayoutHeader";var c=l},99725:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r("67294"),i=r.n(n),s=r("72579"),a=r.n(s),o=r("34855"),u=r("19685"),l=r("81974"),c=r("44357"),p=r("18692"),d=r("63138"),h=r("92833"),f=function(){return(f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},m=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},g=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},D=(0,n.forwardRef)(function(e,t){var r,s=(0,n.useContext)(d.ConfigContext),u=s.getPrefixCls,l=s.componentConfig,c=(0,h.default)(e,{},null==l?void 0:l.Layout),p=c.className,D=c.hasSider,v=c.children,x=m(c,["className","hasSider","children"]),b=y((0,n.useState)([]),2),E=b[0],C=b[1],S=u("layout"),A=(0,o.default)(S,((r={})[S+"-has-sider"]="boolean"==typeof D?D:E.length>0,r),p);return i().createElement("section",f({ref:t},x,{className:A}),i().Children.map(v,function(e){var t=a()(e,"type.__ARCO_SIGN__")||a()(e,"props.sign");return e&&"sider"===t?i().cloneElement(e,{onSiderMount:function(e){return C(g(g([],y(E),!1),[e],!1))},onSiderUnmount:function(e){return C(E.filter(function(t){return t!==e}))}}):e}))});D.displayName="Layout",D.Sider=u.default,D.Header=l.default,D.Footer=c.default,D.Content=p.default;var v=D},19685:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n,i=r("67294"),s=r.n(i),a=r("34855"),o=r("42355"),u=r("826"),l=r("63138"),c=r("47537"),p=r("53367"),d=r("9205"),h=r("15955"),f=function(){return(f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},y=(0,i.createContext)({siderCollapsed:!1,collapsedWidth:64});var g=(n=0,function(e){return void 0===e&&(e=""),""+e+(n+=1)}),D=(0,i.forwardRef)(function(e,t){var r,n,D,v,x=e.children,b=e.className,E=e.style,C=e.theme,S=void 0===C?"light":C,A=e.trigger,w=e.reverseArrow,T=e.collapsedWidth,P=void 0===T?48:T,F=e.width,k=void 0===F?200:F,N=e.collapsible,O=e.resizeDirections,I=e.onSiderMount,j=e.onSiderUnmount,B=e.breakpoint,L=e.onBreakpoint,_=e.onCollapse,M=e.resizeBoxProps,R=void 0===M?{}:M,$=g("arco-sider-"),U=(0,(0,i.useContext)(l.ConfigContext).getPrefixCls)("layout-sider"),V=m((0,h.default)(!1,{value:"collapsed"in e?e.collapsed:void 0,defaultValue:e.defaultCollapsed}),2),z=V[0],H=V[1],W=(0,p.isNumber)(k)?k+"px":String(k),q=(0,p.isNumber)(P)?""+P:String(P),K=m((0,i.useState)(z?q:W),2),J=K[0],G=K[1],X=(0,i.useRef)(null),Y=(0,i.useRef)(null);Y.current={breakpoint:B,collapsed:z,onCollapse:_,onBreakpoint:L},(0,i.useEffect)(function(){return I&&I($),N&&B in d.responsiveMap&&(X.current=d.default.subscribe(function(e,t){var r=Y.current,n=r.breakpoint,i=r.collapsed,s=r.onCollapse,a=r.onBreakpoint;if(!t||t===n){var o=!e[n];o!==i&&(H(o),s&&s(o,"responsive")),a&&a(o)}})),function(){j&&j($),X.current&&d.default.unsubscribe(X.current)}},[]),(0,i.useEffect)(function(){var e=(0,p.isNumber)(P)?P+"px":String(P);G(z?e:W)},[z,W,P]);var Q=O&&(0,p.isArray)(O)||(null===(v=R.directions)||void 0===v?void 0:v.length),Z=Q?c.default:"aside",ee=(0,i.useMemo)(function(){return Q?f(f({component:"aside",onMoving:function(e,t){G(t.width)}},R),{width:J,directions:O}):{}},[Q,O,J,R]);return s().createElement(y.Provider,{value:{siderCollapsed:z,collapsedWidth:P}},s().createElement(Z,f({ref:t,style:f({width:J},E),className:(0,a.default)(U,((D={})[U+"-light"]="light"===S,D[U+"-has-trigger"]=null!==A&&N,D[U+"-collapsed"]=z,D),b)},ee),s().createElement("div",{className:U+"-children"},x),(n=A||(z?w?s().createElement(o.default,null):s().createElement(u.default,null):w?s().createElement(u.default,null):s().createElement(o.default,null)),N&&null!==A?s().createElement("div",{style:{width:J},className:(0,a.default)(U+"-trigger",((r={})[U+"-trigger-light"]="light"===S,r)),onClick:function(){H(!z),_&&_(!z,"clickTrigger")}},n):null)))});D.displayName="LayoutSider",D.__ARCO_SIGN__="sider";var v=D},19629:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var n,i,s,a,o,u,l=r("67294"),c=r.n(l),p=r("99240"),d=r("99583"),h=r("4272"),f=r("78033"),m=r("34855"),y=r("53367"),g=r("78523");var D=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},x={};function b(e){var t,r=v({position:"top",duration:a},e),n=r.position,s=r.transitionClassNames,u=r.transitionTimeout,l=x[n]||{},p=l.instance,h=l.pending;if(p||h){var f=function(){var s=(x[n]||{}).instance,a=s.state.notices;if(a.length>=i){var o=a.find(function(t){return t.id===e.id});o?s.add(v(v({},r),{id:o.id})):(a.shift(),s.add(r))}else t=s.add(r)};p?f():(null==h?void 0:h.then)&&h.then(function(){f(),x[n].pending=null})}else{var m=document.createElement("div");(o||document.body).appendChild(m),x[n]={},x[n].pending=new Promise(function(e){(0,d.render)(c().createElement(E,{transitionClassNames:s,transitionTimeout:u,ref:function(i){!x[n]&&(x[n]={}),x[n].instance=i,t=i.add(r),e(null)}}),m)})}return function(){var e,r;null===(r=null===(e=x[n])||void 0===e?void 0:e.instance)||void 0===r||r.remove(t)}}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.remove=function(r){var n=t.state.notices.find(function(e){return e.id===r});n&&t.update(v(v({},n),{style:v(v({},n.style),{opacity:0})})),setTimeout(function(){e.prototype.remove.call(t,r)},100)},t}return D(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.transitionClassNames,n=t.transitionTimeout,i=t.prefixCls,a=t.rtl,o=this.state,l=o.notices,d=o.position,h=i||s,g=(0,y.isUndefined)(a)?u:a,D=h?h+"-message":"arco-message",x={enter:(0,y.isNumber)(null==n?void 0:n.enter)?null==n?void 0:n.enter:100,exit:(0,y.isNumber)(null==n?void 0:n.exit)?null==n?void 0:n.exit:300},b=(0,m.default)(D+"-wrapper",D+"-wrapper-"+d);return c().createElement("div",{className:b},c().createElement(p.TransitionGroup,{component:null},l.map(function(t){return c().createElement(p.CSSTransition,{key:t.id,timeout:x,classNames:r||"fadeMessage",onExit:function(e){e.style.height=e.scrollHeight+"px"},onExiting:function(e){e.style.height=0},onExited:function(e){e.style.height=0,t.onClose&&t.onClose()}},c().createElement(f.default,v({},t,{prefixCls:D,iconPrefix:h,onClose:e.remove,noticeType:"message",rtl:g})))})))},t.config=function(e){void 0===e&&(e={}),(0,y.isNumber)(e.maxCount)&&(i=e.maxCount),e.prefixCls&&(s=e.prefixCls),(0,y.isNumber)(e.duration)&&(a=e.duration),"boolean"==typeof e.rtl&&(u=e.rtl),e.getContainer&&e.getContainer()!==o&&(o=e.getContainer(),Object.values(x).forEach(function(e){var t=e.instance;return null==t?void 0:t.clear()}),x={})},t.clear=function(){Object.values(x).forEach(function(e){var t=e.instance;null==t||t.clear()})},t.addInstance=b,t}(h.default);["info","success","error","warning","loading","normal"].forEach(function(e){E[e]=function(t){return b(v(v({},"string"==typeof t?{content:t}:t),{type:e}))}}),E.useMessage=g.default;var C=E},78523:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var n=r("67294"),i=r.n(n),s=r("996"),a=r("19629"),o=r("53367"),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e){void 0===e&&(e={});var t,r=e.maxCount,l=e.duration,c=void 0===l?3e3:l,p=e.prefixCls,d=(0,n.createRef)(),h=i().createElement(s.default,{ref:d}),f={},m={};return["info","success","warning","error","normal"].forEach(function(e){m[e]=function(n){var s=(0,o.isString)(n)?{content:n}:n;return function(e){if(d.current){var n,s,o,l=d.current.getContextConfig();s=l.rtl,n=l.prefixCls}var h=p||n,m=u({position:"top",duration:c},e),y=m.position,g=m.transitionClassNames;if(f[y]){var D=f[y].state.notices;D.length>=r?(o=D[0].id,D.shift(),f[y].add(u(u({},m),{id:o}))):o=f[y].add(m)}else t=i().createElement(a.default,{transitionClassNames:g,ref:function(e){f[y]=e,f[y]&&(o=f[y].add(m))},prefixCls:h,rtl:s}),d.current.addInstance(t);return function(){f[y]&&f[y].remove(o)}}(u(u({},s),{type:e}))}}),[m,h]}},91682:function(e,t,r){"use strict";r.r(t),r.d(t,{setConfigProviderProps:function(){return s}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={};function s(e){n({},e)}},28110:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var n,i,s,a,o,u,l=r("67294"),c=r.n(l),p=r("99240"),d=r("73935"),h=r("99583"),f=r("4272"),m=r("78033"),y=r("34855"),g=r("53367"),D=r("43333");var v=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),x=function(){return(x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},b={},E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.remove=function(r){var n=t.state.notices.find(function(e){return e.id===r});n&&t.update(x(x({},n),{style:x(x({},n.style),{opacity:0})})),setTimeout(function(){e.prototype.remove.call(t,r)},200)},t}return v(t,e),t.prototype.render=function(){var e,t,r=this,n=this.state.notices,i=this.props,a=i.prefixCls,o=i.rtl,l=i.getContainer,h=this.state.position,f=(0,g.isUndefined)(o)?u:o;(0,g.isUndefined)(h)&&(h=f?"topLeft":"topRight");var D=a||s,v=D?D+"-notification":"arco-notification";t="topLeft"===h||"bottomLeft"===h?"slideNoticeLeft":"slideNoticeRight";var b=(0,y.default)(v+"-wrapper",v+"-wrapper-"+h,((e={})[v+"-wrapper-rtl"]=u,e)),E=null==l?void 0:l(),C=c().createElement("div",{className:b},c().createElement(p.TransitionGroup,{component:null},n.map(function(e){return c().createElement(p.CSSTransition,{key:e.id,timeout:{enter:400,exit:300},classNames:t,onExit:function(e){e.style.height=e.scrollHeight+"px"},onExiting:function(e){e.style.height=0},onExited:function(t){t.style.height=0,e.onClose&&e.onClose()}},c().createElement(m.default,x({},e,{onClose:r.remove,prefixCls:v,iconPrefix:D,noticeType:"notification",rtl:f})))})));return E?(0,d.createPortal)(C,E):C},t.config=function(e){void 0===e&&(e={}),(0,g.isNumber)(e.maxCount)&&(i=e.maxCount),e.prefixCls&&(s=e.prefixCls),(0,g.isNumber)(e.duration)&&(a=e.duration),"boolean"==typeof e.rtl&&(u=e.rtl),e.getContainer&&e.getContainer()!==o&&(o=e.getContainer(),Object.values(b).forEach(function(e){var t=e.instance;return null==t?void 0:t.clear()}),b={})},t.clear=function(){Object.values(b).forEach(function(e){var t=e.instance;null==t||t.clear()})},t.remove=function(e){Object.values(b).forEach(function(t){var r=t.instance;null==r||r.remove(e)})},t.addInstance=function(e){var r=e.position;(0,g.isUndefined)(e.position)&&(r=u?"topLeft":"topRight");var n=x({duration:a},e),s=b[r]||{},l=s.instance,p=s.pending;if(l||p){var d=function(){var t=(b[r]||{}).instance,s=t.state.notices;if(s.length>=i){var a=s.find(function(t){return t.id===e.id});a?t.add(x(x({},n),{id:a.id})):(s.shift(),t.add(n))}else t.add(n);return t};return l?d():(null==p?void 0:p.then)&&p.then(function(){d(),b[r].pending=null}),l}var f=document.createElement("div");return(o||document.body).appendChild(f),b[r]={},b[r].pending=new Promise(function(e){(0,h.render)(c().createElement(t,{ref:function(t){return!b[r]&&(b[r]={}),b[r].instance=t,t.add(n),e(null),t}}),f)}),b[r].instance},t}(f.default);["info","success","error","warning","normal"].forEach(function(e){E[e]=function(t){return E.addInstance(x(x({},t),{type:e}))}}),E.useNotification=D.default;var C=E},43333:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var n=r("67294"),i=r.n(n),s=r("996"),a=r("28110"),o=r("53367"),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e){void 0===e&&(e={});var t,r=e.maxCount,l=e.duration,c=void 0===l?3e3:l,p=e.prefixCls,d=e.getContainer,h=(0,n.createRef)(),f=i().createElement(s.default,{ref:h}),m={},y={};return["info","success","warning","error","normal"].forEach(function(e){y[e]=function(n){return function(e){if(h.current){var n,s,l,f=h.current.getContextConfig();s=f.rtl,n=f.prefixCls}var y=p||n,g=e.position;(0,o.isUndefined)(e.position)&&(g=s?"topLeft":"topRight");var D=u({duration:c},e);if(m[g]){var v=m[g].state.notices;v.length>=r?(l=v[0].id,v.shift(),m[g].add(u(u({},D),{id:l}))):l=m[g].add(D)}else t=i().createElement(a.default,{ref:function(e){m[g]=e,m[g]&&(l=m[g].add(D))},prefixCls:y,rtl:s,getContainer:d}),h.current.addInstance(t);return m[g]}(u(u({},n),{type:e}))}}),[y,f]}},47537:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return A}});var n=r("67294"),i=r.n(n),s=r("50049"),a=r("34855"),o=r("63138"),u=r("53412"),l=r("67086"),c=r("39908"),p=r("15955"),d=r("53367"),h=r("92833"),f=r("45289"),m=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],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},D="left",v="right",x="bottom",b=[D,v,"top",x],E={component:"div",directions:["right"],resizeIcons:{},resizeTriggers:{}},C=function(e){switch(e){case"left":return"right";case"right":return"left";default:return e}},S=(0,n.forwardRef)(function(e,t){var r,c=(0,n.useContext)(o.ConfigContext),f=c.getPrefixCls,S=c.componentConfig,A=c.rtl,w=(0,h.default)(e,E,null==S?void 0:S.ResizeBox),T=w.style,P=w.className,F=w.component,k=w.directions,N=w.resizeIcons,O=w.children,I=w.resizeTriggers,j=w.width,B=w.height,L=y(w,["style","className","component","directions","resizeIcons","children","resizeTriggers","width","height"]),_=A?k.map(function(e){return C(e)}):k,M=f("resizebox"),R=(0,a.default)(M,((r={})[M+"-rtl"]=A,r),P),$=g((0,n.useState)({}),2),U=$[0],V=$[1],z=g((0,p.default)(void 0,{value:j}),2),H=z[0],W=z[1],q=g((0,p.default)(void 0,{value:B}),2),K=q[0],J=q[1],G=(0,n.useRef)({startX:0,startY:0,startWidth:0,startHeight:0,direction:v,moving:!1,padding:{top:0,bottom:0,left:0,right:0}}),X=(0,n.useRef)();function Y(e){return["top",x].indexOf(e)>-1}function Q(e,t){if(0===e)return 0;var r=e-t;return r<=0?0:r}function Z(e){var t="data-arco-origin-cursor";if(e)document.body.setAttribute(t,document.body.style.cursor),document.body.style.cursor=e;else{var r=document.body.getAttribute(t);document.body.style.cursor=r||"",document.body.removeAttribute(t)}}(0,n.useImperativeHandle)(t,function(){return X.current},[]);function ee(e){if(!G.current.moving)return!1;var t=G.current,r=t.startX,n=t.startY,i=t.startWidth,s=t.startHeight,a=i,o=s,u=e.pageX-r,l=e.pageY-n;switch(G.current.direction){case D:W(a=i-u);break;case v:W(a=i+u);break;case"top":J(o=s-l);break;case x:J(o=s+l)}w.onMoving&&w.onMoving(e,{width:a,height:o})}function et(){G.current.moving=!1,function(){(0,u.off)(window,"mousemove",ee),(0,u.off)(window,"touchmove",ee),(0,u.off)(window,"mouseup",et),(0,u.off)(window,"touchend",et),(0,u.off)(window,"contextmenu",et)}(),Z(),w.onMovingEnd&&w.onMovingEnd()}var er=m(m(m(m({},U),T||{}),(0,d.isNumber)(H)?{width:H}:{}),(0,d.isNumber)(K)?{height:K}:{});return i().createElement(F,m({},(0,s.default)(L,["onMovingStart","onMoving","onMovingEnd"]),{style:er,className:R,ref:X}),O,_.map(function(e){if(-1!==b.indexOf(e))return i().createElement(l.default,{key:e,className:M+"-direction-"+e,direction:Y(e)?"horizontal":"vertical",icon:N[e],onMouseDown:function(t){var r,n,i,s,a,o,l,c,p;r=e,n=t,w.onMovingStart&&w.onMovingStart(),G.current.moving=!0,G.current.startX=n.pageX,G.current.startY=n.pageY,G.current.direction=r,o=(a=G.current.padding).top,l=a.left,c=a.right,p=a.bottom,G.current.startWidth=Q(null===(i=X.current)||void 0===i?void 0:i.clientWidth,l+c),G.current.startHeight=Q(null===(s=X.current)||void 0===s?void 0:s.clientHeight,o+p),(0,u.on)(window,"mousemove",ee),(0,u.on)(window,"touchmove",ee),(0,u.on)(window,"mouseup",et),(0,u.on)(window,"touchend",et),(0,u.on)(window,"contextmenu",et),Z(Y(r)?"row-resize":"col-resize")},onResize:function(t){var r,n,i,s,a,o;r=e,n=t,i=Y(r),s=n[0].contentRect,a=""+r.slice(0,1).toUpperCase()+r.slice(1),o=s[i?"height":"width"],G.current.padding[r]=o,V(function(e){var t;return m(m({},e),((t={})["padding"+a]=o,t))})}},I[e])}))});S.Split=c.default,S.SplitGroup=f.default,S.displayName="ResizeBox";var A=S},67086:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return D}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("68761"),o=r("63138"),u=r("81181"),l=r("50843"),c=r("67945"),p=r("74280"),d=r("99042"),h=r("69195"),f=r("53367"),m=r("50049"),y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function D(e){var t,r,D=e.className,v=e.direction,x=e.icon,b=e.onMouseDown,E=e.onResize,C=e.children,S=e.collapsible,A=void 0===S?{}:S,w=e.resizable,T=void 0===w||w,P=e.renderChildren,F=g(e,["className","direction","icon","onMouseDown","onResize","children","collapsible","resizable","renderChildren"]),k=(0,n.useContext)(o.ConfigContext),N=k.getPrefixCls,O=k.rtl,I=N("resizebox-trigger"),j="horizontal"===v,B=O&&!j,L=(0,s.default)(I,I+"-"+(j?"horizontal":"vertical"),((t={})[I+"-not-resizable"]=!T,t),((r={})[I+"-rtl"]=O,r),D),_=B?[i().createElement(c.default,{key:"prev"}),i().createElement(p.default,{key:"next"})]:[i().createElement(p.default,{key:"prev"}),i().createElement(c.default,{key:"next"})],M=(0,f.isObject)(A.prev)?y(y({},A.prev),{icon:A.prev.icon||(j?i().createElement(h.default,null):_[0])}):{},R=(0,f.isObject)(A.next)?y(y({},A.next),{icon:A.next.icon||(j?i().createElement(d.default,null):_[1])}):{},$=M.icon&&!M.collapsed||R.collapsed?i().createElement("span",{className:(0,s.default)(I+"-icon",(0,s.default)(I+"-prev")),onClick:M.onClick},M.icon):i().createElement("span",{className:(0,s.default)(I+"-icon-empty")}),U=T?i().createElement("span",{className:I+"-icon"},x||(j?i().createElement(l.default,null):i().createElement(u.default,null))):i().createElement("span",{className:(0,s.default)(I+"-icon-empty")}),V=R.icon&&!R.collapsed||M.collapsed?i().createElement("span",{className:(0,s.default)(I+"-icon",(0,s.default)(I+"-next")),onClick:R.onClick},R.icon):i().createElement("span",{className:(0,s.default)(I+"-icon-empty")}),z=function(){return i().createElement("div",{className:I+"-icon-wrapper"},$,U,V)};return T?i().createElement(a.default,{onResize:E},i().createElement("div",y({},(0,m.default)(F,["style"]),{className:L,onMouseDown:b}),(0,f.isFunction)(P)?P($,U,V):C||z())):i().createElement("div",{className:L},(0,f.isFunction)(P)?P($,U,V):C||z())}},45289:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return D}});var n=r("67294"),i=r.n(n),s=r("63138"),a=r("34855"),o=r("53367"),u=r("67086"),l=r("53412"),c=r("50049"),p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},h=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},f=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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="horizontal",y="vertical",g=(0,n.forwardRef)(function(e,t){var r,g,D=e.panes,v=e.style,x=e.className,b=e.component,E=e.direction,C=e.icon,S=d(e,["panes","style","className","component","direction","icon"]),A=(0,n.useContext)(s.ConfigContext),w=A.getPrefixCls,T=A.rtl,P=1/D.length,F=(0,n.useRef)(),k=(0,n.useRef)(Array(D.length).fill({moving:!1,startOffset:0,startPosition:0})),N=(0,n.useRef)([]),O=(0,n.useRef)(0),I=(0,n.useRef)([]),j=h((0,n.useState)(Array(D.length).fill(P)),2),B=j[0],L=j[1],_=h((0,n.useState)(!1),2),M=_[0],R=_[1],$=h((0,n.useState)(Array(D.length).fill(0)),2),U=$[0],V=$[1],z=h((0,n.useState)(Array(Math.max(D.length-1,0)).fill({prev:!1,next:!1})),2),H=z[0],W=z[1],q=w("resizebox-split-group"),K=(void 0===E?"horizontal":E)===m,J=K&&T,G=!K,X=(0,a.default)(q,q+"-"+(K?m:y),((r={})[q+"-moving"]=M,r),((g={})[q+"-rtl"]=T,g),x),Y=function(){var e=[];D.forEach(function(t){var r=t.size;(0,o.isUndefined)(r)?e.push(void 0):e.push(Z(r))});var t=e.filter(function(e){return!e}),r=(1-e.reduce(function(e,t){return(e||0)+(t||0)},0))/t.length;return e=e.map(function(e){return(0,o.isUndefined)(e)?r:e})},Q=function(e){var t=U[e-1]||0,r=U[e],n=100*B[e];return"calc("+n+"% - "+(t+r)/2+"px)"};function Z(e){var t=K?F.current.offsetWidth:F.current.offsetHeight;return!e||(0,o.isNumber)(e)&&e<0?0:Math.min((0,o.isString)(e)?parseFloat(e)/t:e,1)}var ee=function(e){var t=Math.min(e+1,D.length-1),r=B[e]+B[t],n=Z(D[e].min)||0,i=Z(D[e].max)||r,s=Z(D[t].min)||0,a=Z(D[t].max)||r;return i=Math.min(r-s,i),a=Math.min(r-n,a),{currentMin:n,currentMax:i,nextMin:s,nextMax:a}},et=function(e,t,r){var n=O.current,i=n+1,s=f([],h(B),!1),a=B[n],o=B[i],u=ee(n),l=u.currentMin,c=u.currentMax,p=e+Z((r-t)*(J?-1:1)+"px");return p=Math.min(c,p=Math.max(l,p)),s[n]=p,s[i]=a+o-p,s},er=function(e){var t=D[e].collapsible;!(0,o.isObject)(t)&&(t=t?{prev:!0,next:!0}:{});var r=t.prev,n=t.next;return(r||n)&&H[e]?{hasPrev:!!r||!r&&H[e].next,hasNext:!!n||!n&&H[e].prev}:{}};function en(t){var r=O.current,n=k.current[r],i=K?F.current.offsetWidth:F.current.offsetHeight;if(n.moving){var s=et(n.startOffset,n.startPosition,K?t.pageX:t.pageY);L(s),I.current=s,e.onMoving&&e.onMoving(t,s.map(function(e){return e*i+"px"}),r)}}function ei(){var t=O.current;k.current[t].moving=!1,R(!1),(0,l.off)(window,"mousemove",en),(0,l.off)(window,"touchmove",en),(0,l.off)(window,"mouseup",ei),(0,l.off)(window,"touchend",ei),(0,l.off)(window,"contextmenu",ei),document.body.style.cursor="default",e.onMovingEnd&&e.onMovingEnd(t)}function es(t,r,n,i){var s=r+1,a=f([],h(B),!1),u=B[r],l=B[s],c=u+l,p=K?F.current.offsetWidth:F.current.offsetHeight,d=ee(r),m=d.currentMin,y=d.nextMin,g=I.current[r],D=I.current[s],v=H[r][n];"prev"===n?(l!==y||D===y)&&(g=m,D=c-m,v=!0):(u!==m||g===m)&&(g=c-y,D=y,v=!0),a[r]=g,a[s]=D,e.onMoving&&e.onMoving(t,a.map(function(e){return e*p+"px"}),r),e.onMovingEnd&&e.onMovingEnd(r),L(a),(0,o.isFunction)(i)&&i(t,r,n,v)}return(0,n.useEffect)(function(){var e=Y();L(e),I.current=e},[JSON.stringify(D.map(function(e){return e.size}))]),(0,n.useImperativeHandle)(t,function(){return F.current},[]),(0,n.useEffect)(function(){var e=[];B.forEach(function(t,r){var n={prev:!1,next:!1},i=r+1,s=ee(r),a=s.currentMin,o=s.nextMin;t===a?n.prev=!0:B[i]===o&&(n.next=!0),e.push(n)}),W(e)},[B]),i().createElement(void 0===b?"div":b,p({},(0,c.default)(S,["onMovingStart","onPaneResize","onMoving","onMovingEnd"]),{style:v,className:X,ref:F}),D.map(function(t,r){var n=t.content,s=t.disabled,a=t.trigger,c=t.resizable,p=t.collapsible,d=void 0===p?{}:p,g=er(r),v=g.hasPrev,x=g.hasNext,b=(0,o.isObject)(d)&&(0,o.isObject)(d.prev)?d.prev:{},E=(0,o.isObject)(d)&&(0,o.isObject)(d.next)?d.next:{};return i().createElement(i().Fragment,{key:r},i().createElement("div",{className:q+"-pane",style:{flexBasis:Q(r)},ref:function(e){return N.current[r]=e}},n),!s&&r!==D.length-1&&i().createElement(u.default,{className:q+"-trigger",direction:G?m:y,icon:C,onResize:function(e){var t,n,i,s;return t=e,n=r,i=t[0].contentRect[G?"height":"width"],void((s=f([],h(U),!1))[n]=i,V(s))},onMouseDown:function(t){var n,i,s;return n=t,i=r,e.onMovingStart&&e.onMovingStart(i),O.current=i,void((s=k.current[i]).moving=!0,s.startOffset=B[i],s.startPosition=K?n.pageX:n.pageY,R(!0),(0,l.on)(window,"mousemove",en),(0,l.on)(window,"touchmove",en),(0,l.on)(window,"mouseup",ei),(0,l.on)(window,"touchend",ei),(0,l.on)(window,"contextmenu",ei),document.body.style.cursor=G?"row-resize":"col-resize")},collapsible:{prev:v?{onClick:function(e){return es(e,r,"prev",b.onClick)},icon:b.icon,collapsed:H[r].prev}:void 0,next:x?{onClick:function(e){return es(e,r,"next",E.onClick)},icon:E.icon,collapsed:H[r].next}:void 0},resizable:void 0===c||c,renderChildren:a}))}))});g.displayName="ResizeBoxSplitGroup";var D=g},39908:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("67086"),o=r("63138"),u=r("53412"),l=r("81109"),c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},p="horizontal",d="vertical",h=(0,n.forwardRef)(function(e,t){var r,h,f=e.style,m=e.className,y=e.component,g=e.direction,D=void 0===g?"horizontal":g,v=e.icon,x=e.size,b=void 0===x?.5:x,E=e.min,C=e.max,S=e.panes,A=e.disabled,w=e.trigger,T=(0,n.useContext)(o.ConfigContext),P=T.getPrefixCls,F=T.rtl,k=P("resizebox-split"),N=D.includes(p),O=D.includes("reverse"),I=N&&F,j=!N,B=(0,s.default)(k,k+"-"+(N?p:d),((h={})[k+"-rtl"]=F,h),m),L=c(S,2),_=L[0],M=L[1],R="string"==typeof b,$=c((0,n.useState)(parseFloat(b)),2),U=$[0],V=$[1],z=c((0,n.useState)(0),2),H=z[0],W=z[1],q=(0,n.useRef)({startX:0,startY:0,startWidth:0,startHeight:0,startOffset:0,moving:!1}),K=(0,n.useRef)(),J=(0,n.useRef)([]);function G(e,t){return parseFloat(e)/parseFloat(t)}function X(e,t,r,n){var i="string"==typeof E?G(parseFloat(E),e):E||0,s="string"==typeof C?G(parseFloat(C),e):C||1,a=O?-1:1;a*=I?-1:1;var o=R?t+(n-r)*a:G(e*t+(n-r)*a,e),u=R?i*e:i,l=R?s*e:s;return o=Math.min(o=Math.max(o,u),l)}(0,n.useImperativeHandle)(t,function(){return K.current},[]);function Y(t){if(q.current.moving){var r=N?X(q.current.startWidth,q.current.startOffset,q.current.startX,t.pageX):X(q.current.startHeight,q.current.startOffset,q.current.startY,t.pageY);V(r),e.onMoving&&e.onMoving(t,R?r+"px":r)}}function Q(){q.current.moving=!1,(0,u.off)(window,"mousemove",Y),(0,u.off)(window,"touchmove",Y),(0,u.off)(window,"mouseup",Q),(0,u.off)(window,"touchend",Q),(0,u.off)(window,"contextmenu",Q),document.body.style.cursor="default",e.onMovingEnd&&e.onMovingEnd()}(0,n.useEffect)(function(){e.onPaneResize&&e.onPaneResize(J.current)},[U,H]),(0,l.default)(function(){var e=parseFloat(b);U!==e&&V(e)},[b]);var Z=i().createElement("div",{className:(0,s.default)(k+"-pane","first-pane"),style:{flexBasis:(r=R?"px":"%",U?"calc("+(R?U:100*U)+r+" - "+H/2+"px)":"0"+r)},ref:function(e){J.current[0]=e}},_),ee=i().createElement("div",{className:(0,s.default)(k+"-pane","second-pane"),ref:function(e){J.current[1]=e}},M),et=O?[ee,Z]:[Z,ee];return i().createElement(void 0===y?"div":y,{style:f,className:B,ref:K},et[0],!A&&i().createElement(a.default,{className:k+"-trigger",direction:j?p:d,icon:v,onMouseDown:function(t){var r,n;e.onMovingStart&&e.onMovingStart(),q.current.moving=!0,q.current.startX=t.pageX,q.current.startY=t.pageY,q.current.startWidth=null===(r=K.current)||void 0===r?void 0:r.offsetWidth,q.current.startHeight=null===(n=K.current)||void 0===n?void 0:n.offsetHeight,q.current.startOffset=U,(0,u.on)(window,"mousemove",Y),(0,u.on)(window,"touchmove",Y),(0,u.on)(window,"mouseup",Q),(0,u.on)(window,"touchend",Q),(0,u.on)(window,"contextmenu",Q),document.body.style.cursor=j?"row-resize":"col-resize"},onResize:function(e){W(e[0].contentRect[j?"height":"width"])}},w),et[1])});h.displayName="ResizeBoxSplit";var f=h},10134:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r("67294"),i=r.n(n),s=r("99240"),a=r("93470"),o=r("24620"),u=r("63138"),l=r("21207"),c=r("53367"),p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function d(e){return e.key||e._key}var h=function(e){var t,r=(0,n.useContext)(a.TreeContext),h=(0,(0,n.useContext)(u.ConfigContext).getPrefixCls)("tree-node"),f=r.getTreeState(),m=f.expandedKeys,y=f.currentExpandKeys,g=e.expanded,D=(0,n.useRef)(e.childrenData);D.current=e.childrenData,(0,n.useEffect)(function(){return function(){r.onExpandEnd&&r.onExpandEnd(e._key)}},[]);var v=(0,n.useMemo)(function(){var e=[],t=function(n){n.forEach(function(n){var i=r.getFieldInfo(n);e.push(i),i.children&&i.children.length&&t(i.children)})};return t(D.current||[]),e},[g]),x=(0,n.useMemo)(function(){var t=[];if(v.length){var n=new Set(m||[]);v.forEach(function(i){var s,a,o=p({},r.key2nodeProps[i.key]);if(g)a=o.parentKey===e._key||(null===(s=o.pathParentKeys)||void 0===s?void 0:s.every(function(e){return n.has(e)}));else if(o.pathParentKeys){var u=o.pathParentKeys.indexOf(e._key);a=o.pathParentKeys.slice(u+1).every(function(e){return n.has(e)})}a&&t.push(p(p({},o),{key:i.key}))})}return r.getNodeProps(t)},[v,e._key,g]),b=null===(t=r.virtualListProps)||void 0===t?void 0:t.height;return b=(0,c.isNumber)(b)?b:0,(0,n.useEffect)(function(){y.indexOf(e._key)>-1&&0===x.length&&r.onExpandEnd(e._key)},[x,y]),i().createElement(s.CSSTransition,{in:y.indexOf(e._key)>-1&&x.length>0,unmountOnExit:!0,classNames:"tree-slide-expand",timeout:{enter:200,exit:0},onEnter:function(e){var t=e.scrollHeight;e.style.height=g?0:Math.min(b||t,e.scrollHeight)+"px"},onEntering:function(e){var t=e.scrollHeight;e.style.height=g?Math.min(b||t,t)+"px":0},onEntered:function(t){t.style.height=e.expanded?"":0,r.onExpandEnd(e._key)},onExit:function(e){e.style.display="none"}},i().createElement(o.default,p({itemKey:d,className:h+"-list",isStaticItemHeight:!1},r.virtualListProps,{data:x,"aria-hidden":!0,style:{overflow:"hidden"}}),function(e){return i().createElement(l.default,p({},e))}))}},93470:function(e,t,r){"use strict";r.r(t),r.d(t,{TreeContext:function(){return n}});var n=(0,r("67294").createContext)({})},6804:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return A}});var n,i=r("67294"),s=r.n(i),a=r("13383"),o=r.n(a),u=r("34855"),l=r("21207"),c=r("48284"),p=r("53367"),d=r("63138"),h=r("53550"),f=r("93470"),m=r("9472");var y=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},D=function(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},x=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},b=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},E={key:"key",title:"title",children:"children",selectable:"selectable",disabled:"disabled",disableCheckbox:"disableCheckbox",checkable:"checkable",isLeaf:"isLeaf"},C={selectable:!0,autoExpandParent:!0,checkedStrategy:"all",actionOnClick:"select",allowDrop:function(){return!0},fieldNames:E},S=["style","className","height","size","blockNode","autoExpandParent","checkedStrategy","fieldNames","icons","virtualListProps","showLine","selectable","allowDrop","actionOnClick"],A=function(e){function t(r,n){var i=e.call(this,r,n)||this;i.cacheNodes={},i.key2nodeProps={},i.getMergedProps=function(e){var t=i.context.componentConfig,r=e||i.props,n=(null==t?void 0:t.Tree)||{},s={};return S.forEach(function(e){(0,p.isUndefined)(r[e])?(0,p.isUndefined)(n[e])?s[e]=C[e]:s[e]=n[e]:s[e]=r[e]}),s},i.scrollIntoView=function(e,t){var r=e;t&&(r=t._key),i.nodeListRef&&i.nodeListRef.scrollIntoView(r,t||i.key2nodeProps[r])},i.getTreeData=function(){return"treeData"in i.props?i.props.treeData:(0,h.getTreeDataFromTreeChildren)(i.props.children)},i.needUpdateTreeData=function(e,t){return e.treeData!==t.treeData||e.children!==t.children||["fieldNames","selectable","draggable","checkStrictly","showLine","blockNode","checkable","treeData","children"].some(function(r){return o()(e[r],t[r])})},i.getFieldInfo=function(e){var t=i.getMergedProps(),r=t.selectable,n=g(g({},E),"treeData"in i.props?t.fieldNames:{}),s={children:e[n.children],selectable:n.selectable in e?e[n.selectable]:r,checkable:n.checkable in e?e[n.checkable]:i.props.checkable,title:e[n.title],disabled:e[n.disabled],disableCheckbox:e[n.disableCheckbox],isLeaf:e[n.isLeaf],key:e[n.key]};return!(n.key in e)&&delete s.key,s},i.getNodeList=function(e,t){i.key2nodeProps={};var r=t||i.context.getPrefixCls("tree"),n=[],s=0,a=i.getMergedProps(),o=a.showLine,l=a.blockNode,c=function(e,t){var a=e.length;return e.map(function(e,p){var d=i.getFieldInfo(e),h=d.children,f=d.selectable,m=d.checkable,y=d.key,D=void 0===y?((null==t?void 0:t._key)||"")+"-"+p:y,E=v(d,["children","selectable","checkable","key"]),C=g(g(g({dataRef:e,draggable:i.props.draggable,selectable:f,checkable:m,showLine:o,blockNode:l},e),E),{key:D,children:h,_key:D,_index:s++,parentKey:t?t._key:void 0,pathParentKeys:t&&t.pathParentKeys||[],_level:t._level||0,_lineless:t&&t._lineless?b(b([],x(t._lineless||[]),!1),[t._isTail],!1):[]});return a===p+1&&(C.className=(0,u.default)(r+"-node-is-tail",C.className)),n.push(C),i.key2nodeProps[D]=C,h&&h.length&&(i.key2nodeProps[D].children=c(h,{_key:D,_level:C._level+1,_lineless:C._lineless,_isTail:a===p+1,pathParentKeys:b(b([],x((null==t?void 0:t.pathParentKeys)||[]),!1),[D],!1)})),C})};return c(e||[],{}),n},i.getInitExpandedKeys=function(e){if(!i.getMergedProps().autoExpandParent)return e||[];if(!e)return Object.keys(i.key2nodeProps).filter(function(e){var t=i.key2nodeProps[e];return t.children&&t.children.length});var t={};return e.forEach(function(e){var r=i.key2nodeProps[e];r&&(t[e]=1,r.pathParentKeys&&r.pathParentKeys.forEach(function(e){t[e]=1}))}),Object.keys(t)},i.getInitCheckedKeys=function(e){if(!i.props.checkStrictly){var t=(0,h.getCheckedKeysByInitKeys)(e,i.key2nodeProps);return{checkedKeys:t.checkedKeys,halfCheckedKeys:t.indeterminateKeys}}return{checkedKeys:e,halfCheckedKeys:i.props.halfCheckedKeys||[]}},i.handleSelect=function(e,t){var r=i.props.onSelect,n={e:t,node:i.getCacheNode([e])[0]};if(i.props.multiple){var s=b([],x(i.state.selectedKeys),!1),a=s.indexOf(e);a>-1?(s.splice(a,1),n.selected=!1):(n.selected=!0,s.push(e)),n.selectedNodes=i.getCacheNode(s),!("selectedKeys"in i.props)&&i.setState({selectedKeys:s}),r&&r(s,n)}else n.selected=!0,n.selectedNodes=i.getCacheNode([e]),!("selectedKeys"in i.props)&&i.setState({selectedKeys:[e]}),r&&r([e],n)},i.handleCheck=function(e,r,n){var s=i.getMergedProps().checkedStrategy,a=i.props,o=a.onCheck,u=a.checkStrictly,l={e:n,node:i.getCacheNode([r])[0]},c=i.state.checkedKeys,d=i.state.halfCheckedKeys;if(u){c=e?c.concat(r):c.filter(function(e){return e!==r});var f={};!("checkedKeys"in i.props)&&(f.checkedKeys=c),!("halfCheckedKeys"in i.props)&&(f.halfCheckedKeys=d),!(0,p.isEmptyObject)(f)&&i.setState(g({},f))}else{var m=(0,h.getAllCheckedKeysByCheck)(r,e,c,i.key2nodeProps,d),y=m.checkedKeys,D=m.indeterminateKeys;c=y,d=D,"checkedKeys"in i.props?i.setState({halfCheckedKeys:d}):i.setState({checkedKeys:c,halfCheckedKeys:d}),s===t.SHOW_PARENT?c=c.filter(function(e){var t=i.key2nodeProps[e];if(!t||-1===c.indexOf(t.parentKey))return!0}):s===t.SHOW_CHILD&&(c=c.filter(function(e){var t,r,n=i.key2nodeProps[e];if(!n||!(null===(t=n.children)||void 0===t?void 0:t.length)||(null===(r=n.children)||void 0===r?void 0:r.every(function(e){return -1===c.indexOf(e._key)})))return!0}))}o&&o(c,g({checkedNodes:i.getCacheNode(c),checked:e,halfCheckedKeys:d,halfCheckedNodes:i.getCacheNode(d)},l))},i.handleLoadMore=function(e){var t=i.props.loadMore;if((0,p.isFunction)(t)){var r=i.state,n=r.loadingKeys,s=r.loadedKeys;i.setState({loadingKeys:Array.from(new Set(b(b([],x(void 0===n?[]:n),!1),[e._key],!1))),loadedKeys:s.filter(function(t){return t!==e._key})},function(){var r,n,s,a;return r=i,n=void 0,s=void 0,a=function(){return D(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(this.getCacheNode([e._key])[0])];case 1:return r.sent(),this.setState({loadedKeys:Array.from(new Set(b(b([],x(this.state.loadedKeys),!1),[e._key],!1))),loadingKeys:this.state.loadingKeys.filter(function(t){return t!==e._key})}),this.handleExpand(!e.expanded,e._key),[3,3];case 2:return console.error("[tree]load data error: ",r.sent()),this.setState({loadingKeys:this.state.loadingKeys.filter(function(t){return t!==e._key})}),[3,3];case 3:return[2]}})},new(s||(s=Promise))(function(e,t){function i(e){try{u(a.next(e))}catch(e){t(e)}}function o(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(i,o)}u((a=a.apply(r,n||[])).next())})})}},i.handleNodeDragStart=function(e,t){i.dragNode=i.getCacheNode([t._key])[0],i.dropPosition=0;var r=i.props.onDragStart;r&&r(e,i.getCacheNode([t._key])[0])},i.handleNodeDragEnd=function(e,t){i.dragNode=null,i.dropPosition=0;var r=i.props.onDragEnd;r&&r(e,i.getCacheNode([t._key])[0])},i.handleNodeDragOver=function(e,t,r){i.dropPosition=r;var n=i.props.onDragOver;n&&n(e,i.getCacheNode([t._key])[0])},i.handleNodeDragLeave=function(e,t){i.dropPosition=0;var r=i.props.onDragLeave;r&&r(e,i.getCacheNode([t._key])[0])},i.isChildOfNode=function(e,t){for(var r=i.key2nodeProps[e.parentKey];r;){var n=r._key,s=r.parentKey;if(n===t.props._key)return!0;if(s===n)return;r=i.key2nodeProps[s]}},i.isSameNode=function(e,t){if(void 0===e||void 0===t)return!1;if(e===t)return!0;var r=e.key,n=t.key;if(void 0!==r||void 0!==n)return r===n;var i=e.props._key,s=t.props._key;return(void 0!==i||void 0!==s)&&i===s},i.handleNodeDrop=function(e,t,r){if(i.dragNode){var n=i.getMergedProps().allowDrop,s=i.props.onDrop,a=i.getCacheNode([t._key])[0];if(s&&!i.isChildOfNode(t,i.dragNode)&&!i.isSameNode(i.dragNode,a)){if(n&&!n({dropNode:a,dragNode:i.dragNode,dropPosition:r}))return;s({dragNode:i.dragNode,dropNode:a,dropPosition:r,e:e})}}},i.handleAllowDrop=function(e,t){var r=i.getMergedProps().allowDrop,n=!0;return"function"==typeof r&&(n=r({dropNode:i.getCacheNode([e._key])[0],dragNode:i.dragNode,dropPosition:t})),n},i.handleExpand=function(e,t){var r=i.state,n=r.currentExpandKeys,s=r.expandedKeys,a=void 0===s?[]:s,o=i.props.onExpand;if(!(n.indexOf(t)>-1)){var u=[];u=e?Array.from(new Set(b(b([],x(a),!1),[t],!1))):a.filter(function(e){return e!==t}),!("expandedKeys"in i.props)&&i.setState({expandedKeys:u,currentExpandKeys:b(b([],x(n),!1),[t],!1)}),o&&o(u,{expanded:e,node:i.getCacheNode([t])[0],expandedNodes:i.getCacheNode(u)})}},i.getCacheNode=function(e){var t=i.props.__ArcoAdapterMode__,r=[];return[].concat(e).forEach(function(e){var t=i.cacheNodes[e];t&&r.push(t)}),i.getNodeProps(r).map(function(r){return t?{props:r,key:e}:s().createElement(l.default,g({},r,{key:r.key}))})},i.getDataSet=function(e){var t,r,n,s;return{expandedKeysSet:(null==e?void 0:e.expandedKeysSet)||new Set((null===(t=i.state)||void 0===t?void 0:t.expandedKeys)||[]),checkedKeysSet:(null==e?void 0:e.checkedKeysSet)||new Set((null===(r=i.state)||void 0===r?void 0:r.checkedKeys)||[]),selectedKeysSet:(null==e?void 0:e.selectedKeysSet)||new Set((null===(n=i.state)||void 0===n?void 0:n.selectedKeys)||[]),halfCheckedKeysSet:(null==e?void 0:e.halfCheckedKeysSet)||new Set((null===(s=i.state)||void 0===s?void 0:s.halfCheckedKeys)||[])}},i.getNodeProps=function(e,t){var r=i.getMergedProps().autoExpandParent,n=i.props.loadMore,s=i.state,a=s.selectedKeys,o=s.expandedKeys,u=s.checkedKeys,l=s.loadingKeys,c=void 0===l?[]:l,d=s.loadedKeys,h=void 0===d?[]:d,f=i.getDataSet(t),m=f.expandedKeysSet,y=f.checkedKeysSet,D=f.selectedKeysSet,v=f.halfCheckedKeysSet,x=function(e){var t=e.children&&e.children.length,i={isLeaf:!t,autoExpandParent:!!t&&r,expanded:m?m.has(e._key):o.indexOf(e._key)>-1};if(n){var s=h.indexOf(e._key)>-1;i.loaded=s,i.isLeaf=!t&&e.isLeaf}return g(g(g({},e),i),{selected:D.has(e._key),indeterminated:v.has(e._key),loading:c.indexOf(e._key)>-1,checked:y.has(e._key),selectedKeys:a,checkedKeys:u,loadingKeys:c,loadedKeys:h,expandedKeys:o,childrenData:e.children||[],children:null})};return(0,p.isArray)(e)?e.map(function(e){return x(e)}):x(e)},i.handleExpandEnd=function(e){var t=i.state.currentExpandKeys;t.indexOf(e)>-1&&i.setState({currentExpandKeys:t.filter(function(t){return t!==e})})},i.getTreeState=function(){return i.state},i.state={};var a=i.getTreeData(),c=i.getNodeList(a,n.getPrefixCls("tree")),d=i.getInitCheckedKeys(r.checkedKeys||r.defaultCheckedKeys||[]),f=d.checkedKeys,m=d.halfCheckedKeys;return i.state={selectedKeys:r.selectedKeys||r.defaultSelectedKeys||[],checkedKeys:f,halfCheckedKeys:m,expandedKeys:i.getInitExpandedKeys(r.expandedKeys||r.defaultExpandedKeys),loadedKeys:[],loadingKeys:[],currentExpandKeys:[],nodeList:c},i}return y(t,e),t.getDerivedStateFromProps=function(e,t){var r={};return("selectedKeys"in e&&!o()(e.selectedKeys,t.selectedKeys)&&(r.selectedKeys=e.selectedKeys||[]),Object.keys(r).length)?r:null},t.prototype.componentDidUpdate=function(e){var t=this,r=this.getMergedProps(e),n=this.getMergedProps();if(e!==this.props||!o()(r,n)){var i={};if(this.needUpdateTreeData(g({prevMergedProps:r},e),g(g({},n),this.props))){var s=this.getTreeData(),a=this.getNodeList(s);i.treeData=s,i.nodeList=a}if(i.treeData||"checkedKeys"in this.props&&!o()(e.checkedKeys,this.props.checkedKeys)){var u="checkedKeys"in this.props?this.props.checkedKeys:this.state.checkedKeys,l=this.getInitCheckedKeys(u||[]),c=l.halfCheckedKeys,p=l.checkedKeys;!o()(p,this.state.checkedKeys)&&(i.checkedKeys=p),!o()(c,this.state.halfCheckedKeys)&&(i.halfCheckedKeys=c)}this.props.checkStrictly&&"halfCheckedKeys"in this.props&&!o()(e.halfCheckedKeys,this.props.halfCheckedKeys)&&(i.halfCheckedKeys=this.props.halfCheckedKeys),"expandedKeys"in this.props&&!o()(this.props.expandedKeys,e.expandedKeys)&&(i.expandedKeys=this.props.expandedKeys,i.currentExpandKeys=b(b([],x(i.expandedKeys),!1),x(this.state.expandedKeys),!1).reduce(function(e,t){var r=e.indexOf(t);return -1===r?e.push(t):e.splice(r,1),e},[]).filter(function(e,r,n){var i;if(t.key2nodeProps[e])return!t.key2nodeProps[e].pathParentKeys.some(function(e){return n.indexOf(e)>-1})&&(null===(i=t.key2nodeProps[e].children)||void 0===i?void 0:i.length)}));var d=i.currentExpandKeys||this.state.currentExpandKeys;i.treeData&&d&&(i.currentExpandKeys=d.filter(function(e){var t=i.treeData.find(function(t){return t.key===e});return t&&t.children&&t.children.length})),Object.keys(i).length&&this.setState(i)}},t.prototype.render=function(){var e,t=this;this.cacheNodes={};var r=this.getMergedProps(),n=r.className,i=r.showLine,a=r.size,o=r.virtualListProps,l=r.height,p=r.style,d=r.icons,h=r.actionOnClick,y=this.props,D=y.loadMore,v=y.checkable,x=o?g({threshold:100},o):l?{height:l,threshold:100}:{threshold:null},b=this.context,E=b.getPrefixCls,C=b.rtl,S=E("tree");return s().createElement(f.TreeContext.Provider,{value:{icons:d,key2nodeProps:this.key2nodeProps,getFieldInfo:this.getFieldInfo,getTreeState:this.getTreeState,getNodeProps:this.getNodeProps,onExpandEnd:this.handleExpandEnd,onSelect:this.handleSelect,onCheck:this.handleCheck,onNodeDragStart:this.handleNodeDragStart,onNodeDragEnd:this.handleNodeDragEnd,onNodeDragLeave:this.handleNodeDragLeave,onNodeDragOver:this.handleNodeDragOver,onNodeDrop:this.handleNodeDrop,onExpand:this.handleExpand,renderExtra:this.props.renderExtra,renderTitle:this.props.renderTitle,loadMore:D&&this.handleLoadMore,allowDrop:this.handleAllowDrop,actionOnClick:h,virtualListProps:x}},s().createElement(c.default,{ref:function(e){t.nodeListRef=e},className:(0,u.default)(S,((e={})[S+"-checkable"]=v,e[S+"-show-line"]=i,e[S+"-size-"+a]=a,e[S+"-rtl"]=C,e),n),style:p,filterNode:this.props.filterNode,virtualListProps:x,expandedKeys:this.state.expandedKeys,currentExpandKeys:this.state.currentExpandKeys,getNodeProps:this.getNodeProps,getDataSet:this.getDataSet,nodeList:this.state.nodeList,onMouseDown:this.props.onMouseDown,saveCacheNode:function(e){t.cacheNodes[e.key]=e},ariaProps:g({role:"tree","aria-multiselectable":this.props.multiple,tabIndex:0},(0,m.pickDataAttributes)(this.props))}))},t.displayName="Tree",t.SHOW_PARENT="parent",t.SHOW_ALL="all",t.SHOW_CHILD="child",t.Node=l.default,t.contextType=d.ConfigContext,t}(i.Component)},48284:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r("67294"),i=r.n(n),s=r("24620"),a=r("21207"),o=r("93817"),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))};function p(e){return e.key||e._key}var d=(0,n.forwardRef)(function(e,t){var r=e.className,d=e.style,h=e.filterNode,f=e.virtualListProps,m=e.expandedKeys,y=e.currentExpandKeys,g=e.saveCacheNode,D=e.nodeList,v=e.getNodeProps,x=e.getDataSet,b=(null==f?void 0:f.threshold)!==null,E=(0,n.useRef)(),C=(0,n.useRef)(),S=(0,n.useRef)(),A=(0,n.useMemo)(function(){return new Set(m)},[m]),w=(0,n.useMemo)(function(){var e=new Set,t=new Set(y);return D.forEach(function(r){(r.pathParentKeys||[]).every(function(e){return!t.has(e)&&A.has(e)})&&e.add(r._key)}),e},[A,y,D]),T=(0,n.useMemo)(function(){return D.filter(function(e){return!!((!h||h&&h(e))&&w.has(e.key))||(g(e),!1)})},[D,h,w]);return(0,n.useImperativeHandle)(t,function(){return{scrollIntoView:function(e,t){var r=e;if("string"==typeof e){var n=e;!w.has(e)&&t&&t.pathParentKeys&&(n=c([],l(t.pathParentKeys),!1).reverse().find(function(e){return w.has(e)})||r),r=T.findIndex(function(e){return e._key===n})}if(!b&&C.current){var i=C.current,s=i?i.children[r]:null;s&&(0,o.default)(s,{boundary:i.parentElement})}else E.current&&E.current.scrollTo({index:r})}}}),b?i().createElement(s.default,u({className:r,style:d,ref:E,data:T,isStaticItemHeight:!1,itemKey:p,onMouseDown:e.onMouseDown},e.ariaProps,f),function(e,t,r){0===r.itemIndex&&(S.current=x());var n=v(e,S.current),s=i().createElement(a.default,u({},e,{key:e.key},n));return g(e),s}):i().createElement("div",u({role:"tree",tabIndex:0,className:r,style:d,ref:C},e.ariaProps,{onMouseDown:e.onMouseDown}),T.map(function(e){var t=v(e),r=i().createElement(a.default,u({},t,{key:e.key}));return g(e),r}))})},21207:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return E}});var n=r("67294"),i=r.n(n),s=r("13794"),a=r("34855"),o=r("53367"),u=r("99042"),l=r("81181"),c=r("69049"),p=r("88590"),d=r("63138"),h=r("25227"),f=r("93470"),m=r("10134"),y=r("40694"),g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},D=function(e,t){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},v=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},x=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},b=(0,n.forwardRef)(function(e,t){var r,b,E,C,S,A=this,w=(0,n.useContext)(f.TreeContext),T=(0,n.useContext)(d.ConfigContext).getPrefixCls,P=(0,n.useRef)(),F=v((0,n.useState)({isAllowDrop:!0,isDragOver:!1,dragPosition:0,isDragging:!1}),2),k=F[0],N=F[1],O=e._key,I=void 0===O?"":O,j=e.title,B=e.icon,L=e.checkable,_=e.selected,M=e.disabled,R=e.disableCheckbox,$=e.isLeaf,U=e.draggable,V=e.expanded,z=e.showLine,H=e.loading,W=e.selectable,q=void 0===W||W,K=T("tree-node"),J=(0,a.default)(K,((E={})[K+"-selected"]=_,E[K+"-is-leaf"]=$,E[K+"-expanded"]=V,E[K+"-disabled-selectable"]=!q,E[K+"-disabled"]=M,E[K+"-draggable"]=U,E),e.className);var G=(r=(0,o.isFunction)(w.icons)?w.icons(e):w.icons,b=(0,o.isFunction)(e.icons)?e.icons(e):e.icons,g(g({},r),b)),X=(0,n.useCallback)(function(e){e!==V&&w.onExpand&&w.onExpand(e,I)},[V,w.onExpand]),Y=(0,n.useCallback)(function(){var t,r,n,i;return t=A,r=void 0,n=void 0,i=function(){var t,r,n;return D(this,function(i){switch(i.label){case 0:if(t=e.isLeaf,r=e.expanded,t)return[2];if(!(!(null===(n=e.childrenData)||void 0===n?void 0:n.length)&&(0,o.isFunction)(w.loadMore)&&!r))return[3,2];return[4,w.loadMore(e)];case 1:return i.sent(),[3,3];case 2:X(!r),i.label=3;case 3:return[2]}})},new(n||(n=Promise))(function(e,s){function a(e){try{u(i.next(e))}catch(e){s(e)}}function o(e){try{u(i.throw(e))}catch(e){s(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(a,o)}u((i=i.apply(t,r||[])).next())})},[e,X,w.loadMore]),Q=(0,n.useCallback)((0,y.default)(function(t){var r=P.current;if(r){var n=r.getBoundingClientRect(),i=window.pageYOffset+n.top,s=t.pageY,a=n.height/4,o=s-i,u=o<a?-1:o<n.height-a?0:1,l=w.allowDrop(e,u);N(g(g({},k),{isAllowDrop:l,isDragOver:!0,dragPosition:u})),w.onNodeDragOver&&w.onNodeDragOver(t,e,u)}}),[w.onNodeDragOver]),Z=(0,n.useCallback)(function(t,r){var n=e.disableCheckbox,i=e.disabled;!n&&!i&&w.onCheck&&w.onCheck(t,I,r)},[e.disabled,e.disableCheckbox]);return i().createElement(i().Fragment,null,i().createElement("div",{style:e.style,className:J,ref:t,role:"treeitem","aria-disabled":M,"aria-expanded":V,"aria-level":e._level},i().createElement("span",{className:K+"-indent","aria-hidden":!0},x([],v(Array(e._level)),!1).map(function(t,r){var n;return i().createElement("span",{className:(0,a.default)(K+"-indent-block",((n={})[K+"-indent-block-lineless"]=e._lineless&&e._lineless[r],n)),key:r})})),i().createElement("span",{className:(0,a.default)(K+"-switcher",((C={})[K+"-switcher-expanded"]=V,C))},function(){if(H)return"loadingIcon"in G?G.loadingIcon:i().createElement(c.default,null);var e=null,t=!1;if($)z&&(e="switcherIcon"in G?G.switcherIcon:i().createElement(p.default,null),t=!0);else{var r=z?i().createElement("span",{className:K+"-"+(V?"minus":"plus")+"-icon"}):i().createElement(u.default,null);e="switcherIcon"in G?G.switcherIcon:r,t=!z}if(e)return e=i().createElement("span",{className:K+"-switcher-icon","aria-label":V?"fold button":"expand button",role:"button",tabIndex:0,onClick:Y},e),t?i().createElement(h.default,{prefix:K},e):e}()),L?i().createElement(s.default,{disabled:R||M,value:I,indeterminate:e.indeterminated,checked:e.checked,onChange:Z}):null,i().createElement("span",{"aria-grabbed":k.isDragging,ref:P,className:(0,a.default)(K+"-title",((S={})[K+"-title-draggable"]=U,S[K+"-title-gap-top"]=k.isDragOver&&k.isAllowDrop&&k.dragPosition<0,S[K+"-title-gap-bottom"]=k.isDragOver&&k.isAllowDrop&&k.dragPosition>0,S[K+"-title-highlight"]=!k.isDragging&&k.isDragOver&&k.isAllowDrop&&0===k.dragPosition,S[K+"-title-dragging"]=k.isDragging,S[K+"-title-block"]=e.blockNode,S)),onClick:function(t){var r=w.onSelect,n=w.actionOnClick;if(!e.disabled){var i=[].concat(n);q&&i.indexOf("select")>-1&&r&&r(I,t),i.indexOf("expand")>-1&&Y(),L&&i.indexOf("check")>-1&&Z(!e.checked,t)}},draggable:U,onDrop:function(t){t.stopPropagation(),t.preventDefault(),w.onNodeDrop&&w.onNodeDrop(t,e,k.dragPosition),Q.cancel(),N(g(g({},k),{isDragOver:!1,dragPosition:0}))},onDragStart:function(t){if(U){t.stopPropagation(),N(g(g({},k),{isDragging:!0})),w.onNodeDragStart&&w.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}},onDragEnd:function(t){U&&(t.stopPropagation(),Q.cancel(),N(g(g({},k),{isDragOver:!1,isDragging:!1})),w.onNodeDragEnd&&w.onNodeDragEnd(t,e))},onDragOver:function(e){e.preventDefault(),e.stopPropagation(),e.persist(),Q(e)},onDragLeave:function(t){U&&(t.stopPropagation(),Q.cancel(),N(g(g({},k),{isDragOver:!1})),w.onNodeDragLeave&&w.onNodeDragLeave(t,e))}},B&&i().createElement("span",{className:K+"-icon "+K+"-custom-icon"},B),i().createElement("span",{className:K+"-title-text"},(0,o.isFunction)(w.renderTitle)?w.renderTitle(e):j),U&&i().createElement("span",{className:K+"-icon "+K+"-drag-icon"},"dragIcon"in G?G.dragIcon:i().createElement(l.default,null))),(0,o.isFunction)(w.renderExtra)&&w.renderExtra(e)),i().createElement(m.default,g({},e)))});b.displayName="TreeNode";var E=i().memo(b)},53550:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllCheckedKeysByCheck:function(){return d},getCheckedKeysByInitKeys:function(){return p},getTreeDataFromTreeChildren:function(){return u}});var n=r("67294"),i=r.n(n),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},o=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},u=function(e){var t=function(e){return i().Children.map(e,function(e){if(i().isValidElement(e)){var r=e.key;return s(s({},e.props),{key:r,children:t(e.props.children)})}})};return t(e)};function l(e,t){var r=new Set,n=function(e){e.map(function(e){var i=e.key,s=t[i];s&&!s.disabled&&!s.disableCheckbox&&!1!==s.checkable&&(r.add(i),n(s.children||[]))})};return e&&n(e.children||[]),r}var c=function(e,t,r,n){o([],a(t[e].pathParentKeys),!1).reverse().some(function(e){var i=t[e];if(!i||i.disabled||i.disableCheckbox||!1===i.checkable)return!0;var s=0,a=0;i.children.some(function(e){var i=e.key,o=t[i];if(!o||o.disabled||o.disableCheckbox||!1===o.checkable)return!1;if(s++,r.has(i))a++;else if(n.has(i))return a+=.5,!0}),a&&a!==s?n.add(e):n.delete(e),a&&a===s?r.add(e):r.delete(e)})};function p(e,t){var r=new Set(e||[]),n=new Set,i=new Set;return e.forEach(function(e){!i.has(e)&&l(t[e],t).forEach(function(e){i.add(e)}),t[e]&&!t[e].pathParentKeys.some(function(e){return r.has(e)})&&c(e,t,r,n)}),{checkedKeys:o([],a(new Set(o(o([],a(r),!1),a(i),!1))),!1),indeterminateKeys:o([],a(n),!1)}}function d(e,t,r,n,i){if(!n[e])return{checkedKeys:r,indeterminateKeys:i};var s=new Set(r),u=new Set(i),p=l(n[e],n);return t?(s.add(e),u.delete(e),p.forEach(function(e){s.add(e)})):(u.delete(e),s.delete(e),p.forEach(function(e){s.delete(e)})),c(e,n,s,u),{checkedKeys:o([],a(s),!1),indeterminateKeys:o([],a(u),!1)}}},68859:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("67294"),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e){var t=e.height,r=e.offset,s=e.children,a=e.outerStyle,o=e.innerStyle,u={},l={display:"flex",flexDirection:"column"};return void 0!==r&&(u=i({height:t,position:"relative",overflow:"hidden",zIndex:0},a),l=i(i(i({},l),{transform:"translateY("+r+"px)",position:"absolute",left:0,right:0,top:0}),o)),n.createElement("div",{style:u},n.createElement("div",{style:l},s))}},24620:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var n=r("67294"),i=r.n(n),s=r("10908"),a=r("44734"),o=r("53367"),u=r("69882"),l=r("16000"),c=r("68859"),p=r("23259"),d=r("91626"),h=r("65166"),f=r("68761"),m=r("81109"),y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},D=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},v="__virtual_item_height_"+Math.random().toFixed(5).slice(2),x=function(e){var t=(0,h.default)(),r=e.current;(0,n.useEffect)(function(){Object.keys(r).length&&!r[v]&&(r[v]=Object.entries(r).reduce(function(e,t,r,n){var i=e+D(t,2)[1];return r===n.length-1?Math.round(i/n.length):i},0),t())},[Object.keys(r).length])},b=function(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(e);return(0,n.useEffect)(function(){r.current=e},[e]),e!==r.current&&(t.current={}),function(r,n,i){return!t.current.hasOwnProperty(n)&&(t.current[n]=e(r,n,i)),t.current[n]}},E=i().forwardRef(function(e,t){var r=e.style,h=e.className,E=e.children,C=e.data,S=void 0===C?[]:C,A=e.itemKey,w=e.threshold,T=void 0===w?100:w,P=e.wrapper,F=e.height,k=e.isStaticItemHeight,N=void 0===k||k,O=e.itemHeight,I=e.measureLongestItem,j=e.scrollOptions,B=e.onScroll,L=e.needFiller,_=e.outerStyle,M=e.innerStyle,R=g(e,["style","className","children","data","itemKey","threshold","wrapper","height","isStaticItemHeight","itemHeight","measureLongestItem","scrollOptions","onScroll","needFiller","outerStyle","innerStyle"]),$=r&&r.maxHeight||(void 0===F?"100%":F),U=(0,n.useRef)({}),V=D((0,n.useState)(200),2),z=V[0],H=V[1],W=b(E);x(U);var q=S.length,K=O||U.current[v]||32,J=(0,o.isNumber)($)?$:z,G=Math.ceil(J/K),X=K*q,Y=null!==T&&q>=T&&X>J,Q=(0,n.useRef)(null),Z=(0,n.useRef)(null),ee=(0,n.useRef)(!1),et=(0,n.useRef)(Y),er=(0,n.useMemo)(function(){if(Q.current){var e=function(e){return+window.getComputedStyle(Q.current)[e].replace(/\D/g,"")};return{top:e("paddingTop"),bottom:e("paddingBottom")}}return{top:0,bottom:0}},[Q.current]),en=D((0,p.default)({status:"NONE",startIndex:0,endIndex:0,itemIndex:0,itemOffsetPtg:0,startItemTop:0,scrollTop:0}),2),ei=en[0],es=en[1],ea=(0,u.default)(S)||[],eo=(0,d.default)(),eu=function(e,t){return"function"==typeof A?A(e,t):"string"==typeof A?e[A]:e.key||t},el=function(e,t){if(void 0===t&&(t=S),e===t.length)return s.GHOST_ITEM_KEY;var r=t[e];return void 0!==r?eu(r,e):null},ec=function(e){return U.current[e]||K},ep=function(e){for(var t=e.itemIndex,r=e.relativeTop,n=Q.current,i=n.scrollHeight,o=n.clientHeight,u=ei.scrollTop,c=i-o,p=Number.MAX_VALUE,d=null,h=null,f=null,m=null,g=null,D=0,v=0;v<c;v++){var x=(0,l.getIndexByStartLoc)(0,c,u,v),b=(0,s.getScrollPercentage)({scrollTop:x,scrollHeight:i,clientHeight:o}),E=(0,s.getRangeIndex)(b,q,G),C=E.itemIndex,S=E.itemOffsetPtg,A=E.startIndex,w=E.endIndex;if(A<=t&&t<=w){var T=(0,s.getItemRelativeTop)({itemHeight:ec(el(C)),itemOffsetPtg:S,clientHeight:o,scrollPtg:b}),P=Math.abs((0,s.getCompareItemRelativeTop)({locatedItemRelativeTop:T,locatedItemIndex:C,compareItemIndex:t,startIndex:A,endIndex:w,itemHeight:K,getItemKey:el,itemElementHeights:U.current})-r);P<p?(p=P,d=x,h=C,f=S,m=A,g=w,D=0):D+=1}if(D>10)break}null!==d&&(ee.current=!0,Q.current.scrollTop=d,es(y(y({},ei),{status:"MEASURE_START",scrollTop:d,itemIndex:h,itemOffsetPtg:f,startIndex:m,endIndex:g}))),Z.current=(0,a.raf)(function(){ee.current=!1})},ed=function(e,t){void 0===t&&(t=!1);var r=Q.current,n=r.scrollTop,i=r.clientHeight,a=(0,s.getValidScrollTop)(n,X-i);if(t||a!==ei.scrollTop&&!ee.current){var o=(0,s.getScrollPercentage)({scrollTop:a,clientHeight:i,scrollHeight:X}),u=(0,s.getRangeIndex)(o,q,G),l=u.itemIndex,c=u.itemOffsetPtg,p=u.startIndex,d=u.endIndex;es(y(y({},ei),{scrollTop:a,itemIndex:l,itemOffsetPtg:c,startIndex:p,endIndex:d,status:"MEASURE_START"})),e&&B&&B(e)}};(0,n.useEffect)(function(){return function(){Z.current&&(0,a.caf)(Z.current)}},[]),(0,n.useEffect)(function(){Q.current&&(eo&&(Q.current.scrollTop=0),ed(null,!0))},[G]),(0,n.useEffect)(function(){if(Q.current){var e=null,t=et.current!==Y?Y?"virtual":"raw":"";if(et.current=Y,J&&ea.length!==S.length){var r=(0,l.findListDiffIndex)(ea,S,eu);e=r?r.index:null}if(t||Y&&e){var n=Q.current.clientHeight,i=(0,s.getItemRelativeTop)({itemHeight:ec(el(ei.itemIndex,ea)),itemOffsetPtg:ei.itemOffsetPtg,scrollPtg:(0,s.getScrollPercentage)({scrollTop:ei.scrollTop,scrollHeight:ea.length*K,clientHeight:n}),clientHeight:n});if("raw"===t){for(var o=i,u=0;u<ei.itemIndex;u++)o-=ec(el(u));Q.current.scrollTop=-o,ee.current=!0,Z.current=(0,a.raf)(function(){ee.current=!1})}else ep({itemIndex:ei.itemIndex,relativeTop:i})}}},[S,Y]),(0,m.default)(function(){if("MEASURE_START"===ei.status&&Q.current){for(var e=Q.current,t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight,i=(0,s.getScrollPercentage)({scrollTop:t,scrollHeight:r,clientHeight:n}),a=(0,s.getItemAbsoluteTop)({scrollPtg:i,clientHeight:n,scrollTop:t-(er.top+er.bottom)*i,itemHeight:ec(el(ei.itemIndex)),itemOffsetPtg:ei.itemOffsetPtg}),o=ei.itemIndex-1;o>=ei.startIndex;o--)a-=ec(el(o));es(y(y({},ei),{startItemTop:a,status:"MEASURE_DONE"}))}},[ei]),(0,n.useImperativeHandle)(t,function(){return{dom:Q.current,scrollTo:function(e){Z.current&&(0,a.caf)(Z.current),Z.current=(0,a.raf)(function(){if(!!Q.current){if("number"==typeof e){Q.current.scrollTop=e;return}var t,r="index"in e?e.index:"key"in e?S.findIndex(function(t,r){return eu(t,r)===e.key}):0,n=S[r];if(n){var i="object"==typeof e&&(null===(t=e.options)||void 0===t?void 0:t.block)?e.options.block:(null==j?void 0:j.block)||"nearest",a=Q.current,o=a.clientHeight,u=a.scrollTop;if(Y&&!N){if("nearest"===i){var l=ei.itemIndex,c=ei.itemOffsetPtg;if(Math.abs(l-r)<G){var p=(0,s.getItemRelativeTop)({itemHeight:ec(el(l)),itemOffsetPtg:c,clientHeight:o,scrollPtg:(0,s.getScrollPercentage)(Q.current)});if(r<l)for(var d=r;d<l;d++)p-=ec(el(d));else for(var d=l;d<r;d++)p+=ec(el(d));if(!(p<0)&&!(p>o))return;i=p<0?"start":"end"}else i=r<l?"start":"end"}es(y(y({},ei),{startIndex:Math.max(0,r-G),endIndex:Math.min(q-1,r+G)})).then(function(){var e=ec(eu(n,r));ep({itemIndex:r,relativeTop:"start"===i?0:(o-e)/("center"===i?2:1)})})}else{for(var h=ec(el(r)),p=0,d=0;d<r;d++)p+=ec(el(d));var f=p+h,m=p+h/2;if(m>u&&m<o+u)return;"nearest"===i&&(p<u?i="start":f>u+o&&(i="end"));var g=o-h;Q.current.scrollTop=p-("start"===i?0:g/("center"===i?2:1))}}}})}}},[S,K,ei]);var eh=function(e,t){return e.map(function(e,r){var n=t+r,a=W(e,n,{style:{},itemIndex:r}),o=eu(e,n);return i().cloneElement(a,{key:o,ref:function(e){var t=U.current;e&&"MEASURE_START"===ei.status&&(!N||void 0===t[o])&&(N?(!t[v]&&(t[v]=(0,s.getNodeHeight)(e,!0)),t[o]=t[v]):t[o]=(0,s.getNodeHeight)(e,!0))}})})},ef=(0,n.useRef)(null);return(0,n.useEffect)(function(){ef.current=null},[S]),i().createElement(f.default,{onResize:function(){Q.current&&!(0,o.isNumber)($)&&H(Q.current.clientHeight)}},i().createElement(void 0===P?"div":P,y({ref:Q,style:y(y({overflowY:"auto",overflowAnchor:"none"},r),{maxHeight:$}),className:h,onScroll:Y?ed:function(e){var t=Q.current,r=t.scrollTop,n=t.clientHeight,i=t.scrollHeight,a=(0,s.getValidScrollTop)(r,i-n),o=(0,s.getScrollPercentage)({scrollTop:a,clientHeight:n,scrollHeight:i}),u=(0,s.getLocationItem)(o,q),l=u.index,c=u.offsetPtg;es(y(y({},ei),{scrollTop:a,itemIndex:l,itemOffsetPtg:c})),e&&B&&B(e)}},R),Y?i().createElement(i().Fragment,null,i().createElement(c.default,{height:X,outerStyle:_,innerStyle:M,offset:"MEASURE_DONE"===ei.status?ei.startItemTop:0},eh(S.slice(ei.startIndex,ei.endIndex+1),ei.startIndex)),function(){if(I){var e=null===ef.current?(0,s.getLongestItemIndex)(S):ef.current,t=S[e];return ef.current=e,t?i().createElement("div",{style:{height:1,overflow:"hidden",opacity:0}},W(t,e,{style:{}})):null}return null}()):void 0===L||L?i().createElement(c.default,{height:J,outerStyle:_,innerStyle:M},eh(S,0)):eh(S,0)))});E.displayName="VirtualList";var C=E},16e3:function(e,t,r){"use strict";function n(e,t,r,n){var i=r-e,s=t-r;if(n<=2*Math.min(i,s)){var a=Math.floor(n/2);return n%2?r+a+1:r-a}return i>s?r-(n-s):r+(n-i)}function i(e,t,r){var n,i,s=e.length,a=t.length;if(0===s&&0===a)return null;s<a?(n=e,i=t):(n=t,i=e);var o={__EMPTY_ITEM__:!0};function u(e,t){return void 0!==e?r(e,t):o}for(var l=null,c=1!==Math.abs(s-a),p=0;p<i.length;p+=1){var d=u(n[p],p);if(d!==u(i[p],p)){l=p,c=c||d!==u(i[p+1],p+1);break}}return null===l?null:{index:l,multiple:c}}r.r(t),r.d(t,{findListDiffIndex:function(){return i},getIndexByStartLoc:function(){return n}})},10908:function(e,t,r){"use strict";r.r(t),r.d(t,{GHOST_ITEM_KEY:function(){return a},getCompareItemRelativeTop:function(){return f},getItemAbsoluteTop:function(){return h},getItemRelativeTop:function(){return d},getLocationItem:function(){return o},getLongestItemIndex:function(){return m},getNodeHeight:function(){return u},getRangeIndex:function(){return p},getScrollPercentage:function(){return c},getValidScrollTop:function(){return l}});var n=r("73935"),i=r("92072"),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},a="__rc_ghost_item__";function o(e,t){var r=Math.floor(e*t),n=(e-r/t)/(1/t);return{index:r,offsetPtg:Number.isNaN(n)?0:n}}function u(e,t){void 0===t&&(t=!1);var r=(0,n.findDOMNode)(e),i=0;if(t){var s=window.getComputedStyle(e),a=s.marginTop,o=s.marginBottom;i=isNaN(i=Number(a.replace(/\D/g,""))+Number(o.replace(/\D/g,"")))?0:i}return r?r.offsetHeight+i:0}function l(e,t){return e<0?0:e>t?t:e}function c(e){var t=e.scrollTop,r=e.scrollHeight-e.clientHeight;return r<=0?0:l(t,r)/r}function p(e,t,r){var n=o(e,t),i=n.index;return{itemIndex:i,itemOffsetPtg:n.offsetPtg,startIndex:Math.max(0,i-Math.ceil(e*r)),endIndex:Math.min(t-1,i+Math.ceil((1-e)*r))}}function d(e){var t=e.itemHeight,r=e.itemOffsetPtg,n=e.scrollPtg;return Math.floor(e.clientHeight*n-t*r)}function h(e){return e.scrollTop+d(s(e,["scrollTop"]))}function f(e){var t=e.locatedItemRelativeTop,r=e.locatedItemIndex,n=e.compareItemIndex,i=e.startIndex,s=e.endIndex,a=e.getItemKey,o=e.itemElementHeights,u=e.itemHeight,l=t,c=a(n);if(n<=r)for(var p=r;p>=i;p-=1){var d=a(p);if(d===c)break;l-=o[a(p-1)]||u}else for(var p=r;p<=s;p+=1){var d=a(p);if(d===c)break;l+=o[d]||u}return l}function m(e){var t=-1,r=0;return e.forEach(function(e,n){var s;if("string"==typeof(e="string"==typeof e?e:null===(s=e.props)||void 0===s?void 0:s.children)){var a=(0,i.default)(e);a>r&&(r=a,t=n)}}),t}},25227:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var n=r("67294"),i=r.n(n),s=r("34855"),a=r("63138"),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function l(e){var t,r=e.children,l=e.className,c=e.disabled,p=e.prefix,d=e.size,h=void 0===d?"default":d,f=u(e,["children","className","disabled","prefix","size"]),m=(0,(0,n.useContext)(a.ConfigContext).getPrefixCls)("icon-hover");return i().createElement("span",o({className:(0,s.default)(m,((t={})[p+"-icon-hover"]=p,t[m+"-size-"+h]=h&&"default"!==h,t[m+"-disabled"]=c,t),l),onClick:e.onClick},f),r)}},78033:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return y}});var n,i=r("67294"),s=r.n(i),a=r("59547"),o=r("19530"),u=r("39911"),l=r("65081"),c=r("67012"),p=r("69049"),d=r("34855"),h=r("25227"),f=r("4245");var m=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startTimer=function(){var e=t.props,r=e.duration,n=e.onClose,i=e.id;0!==r&&(t.timer=window.setTimeout(function(){n&&n(i),t.removeTimer()},r))},t.removeTimer=function(){t.timer&&(window.clearTimeout(t.timer),t.timer=null)},t.onClose=function(){t.props.onClose&&t.props.onClose(t.props.id)},t.renderIcon=function(){var e,r=t.props,n=r.showIcon,i=r.icon,a=r.type,d=r.prefixCls,h=r.iconPrefix;if(i)e=i;else if(n){switch(a){case"info":e=s().createElement(l.default,null);break;case"success":e=s().createElement(o.default,null);break;case"error":e=s().createElement(u.default,null);break;case"warning":e=s().createElement(c.default,null);break;case"loading":e=s().createElement(p.default,null)}e=s().createElement(f.IconContext.Provider,{value:h?{prefixCls:h}:{}},e)}return s().createElement("span",{className:d+"-icon"},e)},t.onMouseEnter=function(){t.removeTimer()},t.onMouseLeave=function(){t.removeTimer(),t.startTimer()},t}return m(t,e),t.prototype.componentDidMount=function(){this.startTimer()},t.prototype.componentDidUpdate=function(e){(e.duration!==this.props.duration||this.props.update)&&(this.removeTimer(),this.startTimer())},t.prototype.componentWillUnmount=function(){this.removeTimer()},t.prototype.render=function(){var e,t=this.props,r=t.title,n=t.content,i=t.showIcon,o=t.className,u=t.style,l=t.type,c=t.btn,p=t.icon,m=t.prefixCls,y=t.closable,g=t.noticeType,D=t.iconPrefix,v=t.rtl,x=t.closeIcon,b=(0,d.default)(m,m+"-"+l,((e={})[m+"-closable"]=y,e[m+"-rtl"]=v,e),o),E=!("closable"in this.props)||y,C=i;return("normal"===l&&!p&&(C=!1),"message"===g)?(E=y,s().createElement("div",{style:{textAlign:"center"},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},s().createElement("div",{className:b,style:u,role:"alert"},C&&this.renderIcon(),s().createElement("span",{className:m+"-content"},n),E&&(void 0!==x?s().createElement("span",{onClick:this.onClose,className:m+"-close-btn"},x):s().createElement(h.default,{prefix:m,className:m+"-close-btn",onClick:this.onClose},s().createElement(a.default,null)))))):"notification"===g?s().createElement("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},s().createElement("div",{className:b,style:u,role:"alert"},C&&s().createElement("div",{className:m+"-left"},this.renderIcon()),s().createElement("div",{className:m+"-right"},r&&s().createElement("div",{className:m+"-title"},r),s().createElement("div",{className:m+"-content"},n),c&&s().createElement("div",{className:m+"-btn-wrapper"},c)),E&&(void 0!==x?s().createElement("span",{onClick:this.onClose,className:m+"-close-btn"},x):s().createElement(h.default,{prefix:m,className:m+"-close-btn",onClick:this.onClose},s().createElement(f.IconContext.Provider,{value:D?{prefixCls:D}:{}},s().createElement(a.default,null)))))):void 0},t.defaultProps={type:"info",showIcon:!0,noticeType:"message",duration:3e3},t}(i.Component)},4272:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n,i=r("67294");var s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=function(e){function t(t){var r=e.call(this,t)||this;return r.add=function(e){var t,n=(null==(t=e)?void 0:t.id)?null==t?void 0:t.id:"arco_notice_id_"+Math.random().toFixed(10).slice(2),i=r.state.notices;return e.id&&~i.findIndex(function(t){return t.id===e.id})?r.update(e):r.setState(function(t){return{notices:t.notices.concat(a(a({},e),{id:n})),position:e.position}}),n},r.update=function(e){var t=r.state.notices.map(function(t){return e.id===t.id?e:t});r.setState({notices:t})},r.clear=function(){r.setState({notices:[]})},r.state={notices:[],position:"topRight"},r.remove=r.remove.bind(r),r}return s(t,e),t.prototype.remove=function(e){var t=this.state.notices.filter(function(t){return t.id!==e});this.setState({notices:t})},t}(i.Component)},34855:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("53367"),i=r("97802"),s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},a=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))};function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.length,o=[],u=0;u<r;u++)!function(t){var r=e[t];if(!r)return;(0,n.isString)(r)?o.push(r):(0,n.isArray)(r)?o=o.concat(r):(0,n.isObject)(r)?Object.keys(r).forEach(function(e){r[e]&&o.push(e)}):(0,i.default)(!0,"arguments must be one of string/array/object.")}(u);return a([],s(new Set(o)),!1).join(" ")}},91702:function(e,t,r){"use strict";r.r(t),r.d(t,{NOOP:function(){return i},pickTriggerPropsFromRest:function(){return s}});var n=r("9472"),i=function(){};function s(e){return(0,n.default)(e,["onMouseEnter","onMouseLeave","onMouseMove","onContextMenu","onClick","onFocus","onBlur","tabIndex"])}},996:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r("67294"),i=r.n(n),s=r("63138"),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},o=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))},u=(0,n.forwardRef)(function(e,t){var r=(0,n.useContext)(s.ConfigContext),u=a((0,n.useState)([]),2),l=u[0],c=u[1];function p(e){c(function(t){return o(o([],a(t),!1),[e],!1)})}function d(e){c(function(t){return t.filter(function(t){return e!==t})})}function h(){return r}return(0,n.useImperativeHandle)(t,function(){return{addInstance:p,removeInstance:d,getContextConfig:h}}),i().createElement(i().Fragment,null,i().Children.map(l,function(e,t){return i().cloneElement(e,{key:t})}))})},53412:function(e,t,r){"use strict";r.r(t),r.d(t,{isServerRendering:function(){return i},off:function(){return a},on:function(){return s}});var n=r("91702"),i=function(){try{return!("undefined"!=typeof window&&void 0!==document)}catch(e){return!0}}(),s=i?n.NOOP:function(e,t,r,n){e&&e.addEventListener(t,r,n||!1)},a=i?n.NOOP:function(e,t,r,n){e&&e.removeEventListener(t,r,n||!1)}},92072:function(e,t,r){"use strict";function n(e){for(var t=0,r=0;r<e.length;r++)e.charCodeAt(r)>127||94===e.charCodeAt(r)?t+=2:t++;return t}r.r(t),r.d(t,{default:function(){return n}})},65166:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("67294"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a};function s(){return i((0,n.useReducer)(function(e){return e+1},0),2)[1]}},91626:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("67294");function i(){var e=(0,n.useRef)(!0);return(0,n.useEffect)(function(){e.current=!1},[]),e.current}},81109:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("67294"),i=r("53412").isServerRendering?n.useEffect:n.useLayoutEffect},92833:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("67294"),i=r("50049"),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t,r){var a=e._ignorePropsFromGlobal,o=(0,n.useMemo)(function(){return s(s({},t),a?{}:r)},[t,r,a]);return(0,n.useMemo)(function(){var t=(0,i.default)(e,["_ignorePropsFromGlobal"]);for(var r in o)void 0===t[r]&&(t[r]=o[r]);return t},[e,o])}},15955:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("67294"),i=r("53367"),s=r("69882"),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a};function o(e,t){var r=t||{},o=r.defaultValue,u=r.value,l=(0,n.useRef)(!0),c=(0,s.default)(u),p=a((0,n.useState)((0,i.isUndefined)(u)?(0,i.isUndefined)(o)?e:o:u),2),d=p[0],h=p[1];return(0,n.useEffect)(function(){if(l.current){l.current=!1;return}void 0===u&&c!==u&&h(u)},[u]),[(0,i.isUndefined)(u)?d:u,h,d]}},69882:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("67294");function i(e){var t=(0,n.useRef)();return(0,n.useEffect)(function(){t.current=e}),t.current}},23259:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("67294"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},s=function(e){var t=i((0,n.useState)({value:e,resolve:function(e){}}),2),r=t[0],s=t[1];return(0,n.useEffect)(function(){r.resolve(r.value)},[r]),[r.value,function(e){return new Promise(function(t){s(function(r){var n=e;return"function"==typeof e&&(n=e(r.value)),{value:n,resolve:t}})})}]}},53367:function(e,t,r){"use strict";r.r(t),r.d(t,{isArray:function(){return i},isEmptyObject:function(){return p},isFunction:function(){return c},isNullOrUndefined:function(){return l},isNumber:function(){return o},isObject:function(){return s},isString:function(){return a},isUndefined:function(){return u}});var n=Object.prototype.toString;function i(e){return"[object Array]"===n.call(e)}function s(e){return"[object Object]"===n.call(e)}function a(e){return"[object String]"===n.call(e)}function o(e){return"[object Number]"===n.call(e)&&e==e}function u(e){return void 0===e}function l(e){return null==e}function c(e){return"function"==typeof e}function p(e){return s(e)&&0===Object.keys(e).length}},50049:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r=n({},e);return t.forEach(function(e){e in r&&delete r[e]}),r}},9472:function(e,t,r){"use strict";function n(e,t){var r={};return t.forEach(function(t){t in e&&(r[t]=e[t])}),r}function i(e){var t={};return e&&Object.keys(e).forEach(function(r){var n=String(r);0===n.indexOf("data-")&&(t[n]=e[n]),0===n.indexOf("aria-")&&(t[n]=e[n])}),t}r.r(t),r.d(t,{default:function(){return n},pickDataAttributes:function(){return i}})},44734:function(e,t,r){"use strict";r.r(t),r.d(t,{caf:function(){return s},raf:function(){return i}});var n="undefined"==typeof window?r.g:window,i=n.requestAnimationFrame,s=n.cancelAnimationFrame;if((!i||!s)&&(["webkit","ms","moz","o"].some(function(e){return i=n[e+"RequestAnimationFrame"],s=n[e+"CancelAnimationFrame"]||n[e+"CancelRequestAnimationFrame"],i&&s}),!i||!s)){var a=0;i=function(e){var t=Date.now(),r=Math.max(0,16-(t-a));return setTimeout(function(){e(),a=t+r},r)},s=function(e){clearTimeout(e)}}i=i.bind(n),s=s.bind(n)},99583:function(e,t,r){"use strict";r.r(t),r.d(t,{render:function(){return h}});var n,i,s,a=r("73935"),o=r.n(a),u=r("53367"),l="__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",c=o(),p=Number(null===(n=c.version)||void 0===n?void 0:n.split(".")[0])>17,d=function(e){(0,u.isObject)(c[l])&&(c[l].usingClientEntryPoint=e)};try{s=c.createRoot}catch(e){}var h=i=p&&s?function(e,t){d(!0);var r=s(t);return d(!1),r.render(e),r._unmount=function(){setTimeout(function(){var e;null===(e=null==r?void 0:r.unmount)||void 0===e||e.call(r)})},r}:function(e,t){return c.render(e,t),{render:function(e){c.render(e,t)},_unmount:function(){c.unmountComponentAtNode(t)}}}},68761:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n,i=r("67294"),s=r.n(i),a=r("97209"),o=r("12436"),u=r.n(o),l=r("73935");var c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(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 TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentWillUnmount=function(){t.resizeObserver&&t.destroyResizeObserver()},t.createResizeObserver=function(){var e=t.props.throttle,r=function(e){var r,n;null===(n=(r=t.props).onResize)||void 0===n||n.call(r,e)},n=void 0===e||e?u()(r):r,i=!0;t.resizeObserver=new a.default(function(e){i&&(i=!1,r(e)),n(e)}),t.resizeObserver.observe((0,l.findDOMNode)(t))},t.destroyResizeObserver=function(){t.resizeObserver&&t.resizeObserver.disconnect(),t.resizeObserver=null},t}return c(t,e),t.prototype.componentDidMount=function(){s().isValidElement(this.props.children)?this.createResizeObserver():console.warn("The children of ResizeObserver is invalid.")},t.prototype.componentDidUpdate=function(){!this.resizeObserver&&(0,l.findDOMNode)(this)&&this.createResizeObserver()},t.prototype.render=function(){return this.props.children},t}(s().Component)},9205:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u},responsiveMap:function(){return i}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},s=[],a=-1,o={},u={matchHandlers:{},dispatch:function(e,t){return o=e,!(s.length<1)&&(s.forEach(function(e){e.func(o,t)}),!0)},subscribe:function(e){0===s.length&&this.register();var t=(++a).toString();return s.push({token:t,func:e}),e(o,null),t},unsubscribe:function(e){0===(s=s.filter(function(t){return t.token!==e})).length&&this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach(function(t){var r=i[t],n=e.matchHandlers[r];n&&n.mql&&n.listener&&n.mql.removeListener(n.listener)})},register:function(){var e=this;Object.keys(i).forEach(function(t){var r=i[t],s=function(r){var i,s=r.matches;e.dispatch(n(n({},o),((i={})[t]=s,i)),t)},a=window.matchMedia(r);a.addListener(s),e.matchHandlers[r]={mql:a,listener:s},s(a)})}}},93817:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("93057"),i=r("53367"),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){if(e){(0,n.default)(e,s({block:"start",behavior:"instant",scrollMode:"if-needed"},t));var r=e.offsetHeight,a=e.getBoundingClientRect().height;if(t&&t.boundary&&r!==a){var o=(0,i.isFunction)(t.boundary)?t.boundary(e):t.boundary;o.scrollTop=Math.round(o.scrollTop*(r/a))}}}},40694:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("44734"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a},s=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;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))};function a(e){var t=null,r=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];t&&(0,n.caf)(t),t=(0,n.raf)(function(){e.apply(void 0,s([],i(r),!1)),t=null})};return r.cancel=function(){(0,n.caf)(t),t=null},r}},97802:function(e,t,r){"use strict";function n(e,t){}r.r(t),r.d(t,{default:function(){return n}})},87297:function(e,t,r){"use strict";r.r(t),r.d(t,{Layout:function(){return n.default},Tree:function(){return i.default}});var n=r("99725"),i=r("6804")},9675:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=r("85290").default},85290:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}}),r("98833");var n={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",monthBeforeYear:!1,today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},i={locale:"zh-CN",dayjsLocale:"zh-cn",Calendar:n,DatePicker:{Calendar:n,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度"},placeholders:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"]},selectTime:"选择时间",selectDate:"选择日期",today:"今天",now:"此刻",ok:"确定"},Drawer:{okText:"确定",cancelText:"取消"},Empty:{noData:"暂无数据"},Modal:{okText:"确定",cancelText:"取消"},Pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条",prev:"上一页",next:"下一页",currentPage:"第 {0} 页",prevSomePages:"向前 {0} 页",nextSomePages:"向后 {0} 页",pageSize:"页码"},Popconfirm:{okText:"确定",cancelText:"取消"},Table:{okText:"确定",resetText:"重置",sortAscend:"点击升序",sortDescend:"点击降序",cancelSort:"取消排序"},TimePicker:{ok:"确定",placeholder:"请选择时间",placeholders:["开始时间","结束时间"],now:"此刻"},Progress:{success:"完成",error:"失败"},Upload:{start:"开始",cancel:"取消",delete:"删除",reupload:"点击重试",upload:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},Typography:{copy:"复制",copied:"已复制",edit:"编辑",fold:"折叠",unfold:"展开"},Transfer:{resetText:"重置"},ImagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},Form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}}}},99042:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-caret-down")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconCaretDown";var p=c},74280:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-caret-left")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconCaretLeft";var p=c},67945:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-caret-right")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconCaretRight";var p=c},69195:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-caret-up")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconCaretUp";var p=c},19530:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle-fill")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",clipRule:"evenodd"}))});c.defaultProps={isIcon:!0},c.displayName="IconCheckCircleFill";var p=c},59547:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-close")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"}))});c.defaultProps={isIcon:!0},c.displayName="IconClose";var p=c},39911:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle-fill")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",clipRule:"evenodd"}))});c.defaultProps={isIcon:!0},c.displayName="IconCloseCircleFill";var p=c},50843:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-drag-dot")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"}),a().createElement("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconDragDot";var p=c},81181:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-drag-dot-vertical")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",stroke:"none",d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"}),a().createElement("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconDragDotVertical";var p=c},93008:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-empty")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconEmpty";var p=c},67012:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-exclamation-circle-fill")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",clipRule:"evenodd"}))});c.defaultProps={isIcon:!0},c.displayName="IconExclamationCircleFill";var p=c},88590:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-file")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"}))});c.defaultProps={isIcon:!0},c.displayName="IconFile";var p=c},65081:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-info-circle-fill")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",clipRule:"evenodd"}))});c.defaultProps={isIcon:!0},c.displayName="IconInfoCircleFill";var p=c},42355:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-left")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"M32 8.4 16.444 23.956 32 39.513"}))});c.defaultProps={isIcon:!0},c.displayName="IconLeft";var p=c},69049:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))});c.defaultProps={isIcon:!0},c.displayName="IconLoading";var p=c},826:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r("13714"),i=r("3214"),s=r("67294"),a=r.n(s),o=r("4245");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=a().forwardRef(function(e,t){var r=(0,s.useContext)(o.IconContext).prefixCls,i=void 0===r?"arco":r,u=e.spin,c=e.className,p=l(l({"aria-hidden":!0,focusable:!1,ref:t},e),{},{className:"".concat(c?c+" ":"").concat(i,"-icon ").concat(i,"-icon-right")});return u&&(p.className="".concat(p.className," ").concat(i,"-icon-loading")),delete p.spin,delete p.isIcon,a().createElement("svg",(0,n.default)({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},p),a().createElement("path",{d:"m16 39.513 15.556-15.557L16 8.4"}))});c.defaultProps={isIcon:!0},c.displayName="IconRight";var p=c},4245:function(e,t,r){"use strict";r.r(t),r.d(t,{IconContext:function(){return n}});var n=(0,r("67294").createContext)({prefixCls:"arco"})},64448:function(e,t,r){"use strict";var n,i,s,a,o,u,l=r("67294"),c=r("63840");function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,h={};function f(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(h[e]=t,e=0;e<t.length;e++)d.add(t[e])}var y=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),g=Object.prototype.hasOwnProperty,D=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},x={};function b(e,t,r,n,i,s,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){E[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];E[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){E[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){E[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){E[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){E[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){E[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){E[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){E[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}function A(e,t,r,n){var i,s=E.hasOwnProperty(t)?E[t]:null;if(null!==s?0!==s.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1]){;(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1})(t,r,s,n)&&(r=null),n||null===s?(i=t,(!!g.call(x,i)||!g.call(v,i)&&(D.test(i)?x[i]=!0:(v[i]=!0,!1)))&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r))):s.mustUseProperty?e[s.propertyName]=null===r?3!==s.type&&"":r:(t=s.attributeName,n=s.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(s=s.type)||4===s&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r)))}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C,S);E[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C,S);E[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C,S);E[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){E[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){E[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),P=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),I=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var $=Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}var V,z=Object.assign;function H(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var W=!1;function q(e,t){if(!e||W)return"";W=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),s=n.stack.split("\n"),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(1!==a||1!==o)do if(a--,0>--o||i[a]!==s[o]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=o);break}}}finally{W=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?H(e):""}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=J(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var r=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Z(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ee(e,t){null!=(t=t.checked)&&A(e,"checked",t,!1)}function et(e,t){ee(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n){e.removeAttribute("value");return}t.hasOwnProperty("value")?en(e,t.type,r):t.hasOwnProperty("defaultValue")&&en(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function er(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function en(e,t,r){("number"!==t||Y(e.ownerDocument)!==e)&&(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ei=Array.isArray;function es(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(i=0,r=""+K(r),t=null;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ea(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(p(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eo(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(p(92));if(ei(r)){if(1<r.length)throw Error(p(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function eu(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function el(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ec(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ep(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ec(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ed,eh,ef=(ed=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eh=eh||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return ed(e,t,r,n)})}:ed);function em(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType){r.nodeValue=t;return}}e.textContent=t}var ey={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eg=["Webkit","ms","Moz","O"];function eD(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||ey.hasOwnProperty(e)&&ey[e]?(""+t).trim():t+"px"}function ev(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=eD(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(ey).forEach(function(e){eg.forEach(function(t){ey[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=ey[e]})});var ex=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eb(e,t){if(t){if(ex[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(p(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(p(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(p(62))}}function eE(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eC=null;function eS(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eA=null,ew=null,eT=null;function eP(e){if(e=nI(e)){if("function"!=typeof eA)throw Error(p(280));var t=e.stateNode;t&&(t=nB(t),eA(e.stateNode,e.type,t))}}function eF(e){ew?eT?eT.push(e):eT=[e]:ew=e}function ek(){if(ew){var e=ew,t=eT;if(eT=ew=null,eP(e),t)for(e=0;e<t.length;e++)eP(t[e])}}function eN(e,t){return e(t)}function eO(){}var eI=!1;function ej(e,t,r){if(eI)return e(t,r);eI=!0;try{return eN(e,t,r)}finally{eI=!1,(null!==ew||null!==eT)&&(eO(),ek())}}function eB(e,t){var r=e.stateNode;if(null===r)return null;var n=nB(r);if(null===n)return null;switch(r=n[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(p(231,t,typeof r));return r}var eL=!1;if(y)try{var e_={};Object.defineProperty(e_,"passive",{get:function(){eL=!0}}),window.addEventListener("test",e_,e_),window.removeEventListener("test",e_,e_)}catch(e){eL=!1}function eM(e,t,r,n,i,s,a,o,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var eR=!1,e$=null,eU=!1,eV=null,ez={onError:function(e){eR=!0,e$=e}};function eH(e,t,r,n,i,s,a,o,u){eR=!1,e$=null,eM.apply(ez,arguments)}function eW(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(r=t.return),e=t.return;while(e)}return 3===t.tag?r:null}function eq(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function eK(e){if(eW(e)!==e)throw Error(p(188))}function eJ(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=eW(e)))throw Error(p(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(n=i.return)){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return eK(i),e;if(s===n)return eK(i),t;s=s.sibling}throw Error(p(188))}if(r.return!==n.return)r=i,n=s;else{for(var a=!1,o=i.child;o;){if(o===r){a=!0,r=i,n=s;break}if(o===n){a=!0,n=i,r=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===r){a=!0,r=s,n=i;break}if(o===n){a=!0,n=s,r=i;break}o=o.sibling}if(!a)throw Error(p(189))}}if(r.alternate!==n)throw Error(p(190))}if(3!==r.tag)throw Error(p(188));return r.stateNode.current===r?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var r=e(t);if(null!==r)return r;t=t.sibling}return null}(e):null}var eG=c.unstable_scheduleCallback,eX=c.unstable_cancelCallback,eY=c.unstable_shouldYield,eQ=c.unstable_requestPaint,eZ=c.unstable_now,e0=c.unstable_getCurrentPriorityLevel,e1=c.unstable_ImmediatePriority,e2=c.unstable_UserBlockingPriority,e3=c.unstable_NormalPriority,e8=c.unstable_LowPriority,e4=c.unstable_IdlePriority,e6=null,e7=null,e5=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(e9(e)/te|0)|0},e9=Math.log,te=Math.LN2,tt=64,tr=4194304;function tn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ti(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=268435455&r;if(0!==a){var o=a&~i;0!==o?n=tn(o):0!=(s&=a)&&(n=tn(s))}else 0!=(a=r&~i)?n=tn(a):0!==s&&(n=tn(s));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&i)&&((i=n&-n)>=(s=t&-t)||16===i&&0!=(4194240&s)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-e5(t)),n|=e[r],t&=~i;return n}function ts(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ta(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function to(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,e[t=31-e5(t)]=r}function tu(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-e5(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var tl=0;function tc(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tp,td,th,tf,tm,ty=!1,tg=[],tD=null,tv=null,tx=null,tb=new Map,tE=new Map,tC=[],tS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tA(e,t){switch(e){case"focusin":case"focusout":tD=null;break;case"dragenter":case"dragleave":tv=null;break;case"mouseover":case"mouseout":tx=null;break;case"pointerover":case"pointerout":tb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tE.delete(t.pointerId)}}function tw(e,t,r,n,i,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},null!==t&&null!==(t=nI(t))&&td(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function tT(e){var t=nO(e.target);if(null!==t){var r=eW(t);if(null!==r){if(13===(t=r.tag)){if(null!==(t=eq(r))){e.blockedOn=t,tm(e.priority,function(){th(r)});return}}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===r.tag?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=tM(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=nI(r))&&td(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);eC=n,r.target.dispatchEvent(n),eC=null;t.shift()}return!0}function tF(e,t,r){tP(e)&&r.delete(t)}function tk(){ty=!1,null!==tD&&tP(tD)&&(tD=null),null!==tv&&tP(tv)&&(tv=null),null!==tx&&tP(tx)&&(tx=null),tb.forEach(tF),tE.forEach(tF)}function tN(e,t){e.blockedOn===t&&(e.blockedOn=null,ty||(ty=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,tk)))}function tO(e){function t(t){return tN(t,e)}if(0<tg.length){tN(tg[0],e);for(var r=1;r<tg.length;r++){var n=tg[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==tD&&tN(tD,e),null!==tv&&tN(tv,e),null!==tx&&tN(tx,e),tb.forEach(t),tE.forEach(t),r=0;r<tC.length;r++)(n=tC[r]).blockedOn===e&&(n.blockedOn=null);for(;0<tC.length&&null===(r=tC[0]).blockedOn;)tT(r),null===r.blockedOn&&tC.shift()}var tI=w.ReactCurrentBatchConfig;function tj(e,t,r,n){var i=tl,s=tI.transition;tI.transition=null;try{tl=1,tL(e,t,r,n)}finally{tl=i,tI.transition=s}}function tB(e,t,r,n){var i=tl,s=tI.transition;tI.transition=null;try{tl=4,tL(e,t,r,n)}finally{tl=i,tI.transition=s}}function tL(e,t,r,n){var i=tM(e,t,r,n);if(null===i)ns(e,t,n,t_,r),tA(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return tD=tw(tD,e,t,r,n,i),!0;case"dragenter":return tv=tw(tv,e,t,r,n,i),!0;case"mouseover":return tx=tw(tx,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return tb.set(s,tw(tb.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,tE.set(s,tw(tE.get(s)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(tA(e,n),4&t&&-1<tS.indexOf(e)){for(;null!==i;){var s=nI(i);if(null!==s&&tp(s),null===(s=tM(e,t,r,n))&&ns(e,t,n,t_,r),s===i)break;i=s}null!==i&&n.stopPropagation()}else ns(e,t,n,null,r)}var t_=null;function tM(e,t,r,n){if(t_=null,null!==(e=nO(e=eS(n)))){if(null===(t=eW(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=eq(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return t_=e,null}function tR(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e0()){case e1:return 1;case e2:return 4;case e3:case e8:return 16;case e4:return 536870912;default:return 16}default:return 16}}var t$=null,tU=null,tV=null;function tz(){if(tV)return tV;var e,t,r=tU,n=r.length,i="value"in t$?t$.value:t$.textContent,s=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[s-t];t++);return tV=i.slice(e,1<t?1-t:void 0)}function tH(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tW(){return!0}function tq(){return!1}function tK(e){function t(t,r,n,i,s){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tW:tq,this.isPropagationStopped=tq,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tW)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tW)},persist:function(){},isPersistent:tW}),t}var tJ,tG,tX,tY={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tQ=tK(tY),tZ=z({},tY,{view:0,detail:0}),t0=tK(tZ),t1=z({},tZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tX&&(tX&&"mousemove"===e.type?(tJ=e.screenX-tX.screenX,tG=e.screenY-tX.screenY):tG=tJ=0,tX=e),tJ)},movementY:function(e){return"movementY"in e?e.movementY:tG}}),t2=tK(t1),t3=tK(z({},t1,{dataTransfer:0})),t8=tK(z({},tZ,{relatedTarget:0})),t4=tK(z({},tY,{animationName:0,elapsedTime:0,pseudoElement:0})),t6=tK(z({},tY,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),t7=tK(z({},tY,{data:0})),t5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t9={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},re={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=re[e])&&!!t[e]}function rr(){return rt}var rn=tK(z({},tZ,{key:function(e){if(e.key){var t=t5[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tH(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?t9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(e){return"keypress"===e.type?tH(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tH(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),ri=tK(z({},t1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rs=tK(z({},tZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr})),ra=tK(z({},tY,{propertyName:0,elapsedTime:0,pseudoElement:0})),ro=tK(z({},t1,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ru=[9,13,27,32],rl=y&&"CompositionEvent"in window,rc=null;y&&"documentMode"in document&&(rc=document.documentMode);var rp=y&&"TextEvent"in window&&!rc,rd=y&&(!rl||rc&&8<rc&&11>=rc),rh=!1;function rf(e,t){switch(e){case"keyup":return -1!==ru.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rm(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ry=!1,rg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!rg[e.type]:"textarea"===t}function rv(e,t,r,n){eF(n),0<(t=no(t,"onChange")).length&&(r=new tQ("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var rx=null,rb=null;function rE(e){r9(e,0)}function rC(e){if(X(nj(e)))return e}function rS(e,t){if("change"===e)return t}var rA=!1;if(y){if(y){var rw="oninput"in document;if(!rw){var rT=document.createElement("div");rT.setAttribute("oninput","return;"),rw="function"==typeof rT.oninput}n=rw}else n=!1;rA=n&&(!document.documentMode||9<document.documentMode)}function rP(){rx&&(rx.detachEvent("onpropertychange",rF),rb=rx=null)}function rF(e){if("value"===e.propertyName&&rC(rb)){var t=[];rv(t,rb,e,eS(e)),ej(rE,t)}}function rk(e,t,r){"focusin"===e?(rP(),rx=t,rb=r,rx.attachEvent("onpropertychange",rF)):"focusout"===e&&rP()}function rN(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rC(rb)}function rO(e,t){if("click"===e)return rC(t)}function rI(e,t){if("input"===e||"change"===e)return rC(t)}var rj="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function rB(e,t){if(rj(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!g.call(t,i)||!rj(e[i],t[i]))return!1}return!0}function rL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r_(e,t){var r,n=rL(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=rL(n)}}function rM(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(r)e=t.contentWindow;else break;t=Y(e.document)}return t}function rR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var r$=y&&"documentMode"in document&&11>=document.documentMode,rU=null,rV=null,rz=null,rH=!1;function rW(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;rH||null==rU||rU!==Y(n)||(n="selectionStart"in(n=rU)&&rR(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rz&&rB(rz,n)||(rz=n,0<(n=no(rV,"onSelect")).length&&(t=new tQ("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=rU)))}function rq(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var rK={animationend:rq("Animation","AnimationEnd"),animationiteration:rq("Animation","AnimationIteration"),animationstart:rq("Animation","AnimationStart"),transitionend:rq("Transition","TransitionEnd")},rJ={},rG={};function rX(e){if(rJ[e])return rJ[e];if(!rK[e])return e;var t,r=rK[e];for(t in r)if(r.hasOwnProperty(t)&&t in rG)return rJ[e]=r[t];return e}y&&(rG=document.createElement("div").style,"AnimationEvent"in window||(delete rK.animationend.animation,delete rK.animationiteration.animation,delete rK.animationstart.animation),"TransitionEvent"in window||delete rK.transitionend.transition);var rY=rX("animationend"),rQ=rX("animationiteration"),rZ=rX("animationstart"),r0=rX("transitionend"),r1=new Map,r2="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function r3(e,t){r1.set(e,t),f(t,[e])}for(var r8=0;r8<r2.length;r8++){var r4=r2[r8];r3(r4.toLowerCase(),"on"+(r4[0].toUpperCase()+r4.slice(1)))}r3(rY,"onAnimationEnd"),r3(rQ,"onAnimationIteration"),r3(rZ,"onAnimationStart"),r3("dblclick","onDoubleClick"),r3("focusin","onFocus"),r3("focusout","onBlur"),r3(r0,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var r6="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r7=new Set("cancel close invalid load scroll toggle".split(" ").concat(r6));function r5(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,!function(e,t,r,n,i,s,a,o,u){if(eH.apply(this,arguments),eR){if(eR){var l=e$;eR=!1,e$=null}else throw Error(p(198));eU||(eU=!0,eV=l)}}(n,t,void 0,e),e.currentTarget=null}function r9(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;t:{var s=void 0;if(t)for(var a=n.length-1;0<=a;a--){var o=n[a],u=o.instance,l=o.currentTarget;if(o=o.listener,u!==s&&i.isPropagationStopped())break t;r5(i,o,l),s=u}else for(a=0;a<n.length;a++){if(u=(o=n[a]).instance,l=o.currentTarget,o=o.listener,u!==s&&i.isPropagationStopped())break t;r5(i,o,l),s=u}}}if(eU)throw e=eV,eU=!1,eV=null,e}function ne(e,t){var r=t[nF];void 0===r&&(r=t[nF]=new Set);var n=e+"__bubble";r.has(n)||(ni(t,e,2,!1),r.add(n))}function nt(e,t,r){var n=0;t&&(n|=4),ni(r,e,n,t)}var nr="_reactListening"+Math.random().toString(36).slice(2);function nn(e){if(!e[nr]){e[nr]=!0,d.forEach(function(t){"selectionchange"!==t&&(r7.has(t)||nt(t,!1,e),nt(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[nr]||(t[nr]=!0,nt("selectionchange",!1,t))}}function ni(e,t,r,n){switch(tR(t)){case 1:var i=tj;break;case 4:i=tB;break;default:i=tL}r=i.bind(null,t,r,e),i=void 0,eL&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function ns(e,t,r,n,i){var s=n;if(0==(1&t)&&0==(2&t)&&null!==n)t:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var o=n.stateNode.containerInfo;if(o===i||8===o.nodeType&&o.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==o;){if(null===(a=nO(o)))return;if(5===(u=a.tag)||6===u){n=s=a;continue t}o=o.parentNode}}n=n.return}ej(function(){var n=s,i=eS(r),a=[];t:{var o=r1.get(e);if(void 0!==o){var u=tQ,l=e;switch(e){case"keypress":if(0===tH(r))break t;case"keydown":case"keyup":u=rn;break;case"focusin":l="focus",u=t8;break;case"focusout":l="blur",u=t8;break;case"beforeblur":case"afterblur":u=t8;break;case"click":if(2===r.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=t2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=t3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=rs;break;case rY:case rQ:case rZ:u=t4;break;case r0:u=ra;break;case"scroll":u=t0;break;case"wheel":u=ro;break;case"copy":case"cut":case"paste":u=t6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=ri}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==o?o+"Capture":null:o;c=[];for(var h,f=n;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=eB(f,d))&&c.push(na(f,m,h))),p)break;f=f.return}0<c.length&&(o=new u(o,l,null,r,i),a.push({event:o,listeners:c}))}}if(0==(7&t)){t:if(o="mouseover"===e||"pointerover"===e,u="mouseout"===e||"pointerout"===e,!(o&&r!==eC&&(l=r.relatedTarget||r.fromElement)&&(nO(l)||l[nP]))){if((u||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,u?(l=r.relatedTarget||r.toElement,u=n,null!==(l=l?nO(l):null)&&(p=eW(l),l!==p||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=n),u!==l)){if(c=t2,m="onMouseLeave",d="onMouseEnter",f="mouse",("pointerout"===e||"pointerover"===e)&&(c=ri,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==u?o:nj(u),h=null==l?o:nj(l),(o=new c(m,f+"leave",u,r,i)).target=p,o.relatedTarget=h,m=null,nO(i)===n&&((c=new c(d,f+"enter",l,r,i)).target=h,c.relatedTarget=p,m=c),p=m,u&&l)r:{for(c=u,d=l,f=0,h=c;h;h=nu(h))f++;for(h=0,m=d;m;m=nu(m))h++;for(;0<f-h;)c=nu(c),f--;for(;0<h-f;)d=nu(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break r;c=nu(c),d=nu(d)}c=null}else c=null;null!==u&&nl(a,o,u,c,!1),null!==l&&null!==p&&nl(a,p,l,c,!0)}}t:{if("select"===(u=(o=n?nj(n):window).nodeName&&o.nodeName.toLowerCase())||"input"===u&&"file"===o.type)var y,g=rS;else if(rD(o)){if(rA)g=rI;else{g=rN;var D=rk}}else(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=rO);if(g&&(g=g(e,n))){rv(a,g,r,i);break t}D&&D(e,o,n),"focusout"===e&&(D=o._wrapperState)&&D.controlled&&"number"===o.type&&en(o,"number",o.value)}switch(D=n?nj(n):window,e){case"focusin":(rD(D)||"true"===D.contentEditable)&&(rU=D,rV=n,rz=null);break;case"focusout":rz=rV=rU=null;break;case"mousedown":rH=!0;break;case"contextmenu":case"mouseup":case"dragend":rH=!1,rW(a,r,i);break;case"selectionchange":if(r$)break;case"keydown":case"keyup":rW(a,r,i)}if(rl)r:{switch(e){case"compositionstart":var v="onCompositionStart";break r;case"compositionend":v="onCompositionEnd";break r;case"compositionupdate":v="onCompositionUpdate";break r}v=void 0}else ry?rf(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(rd&&"ko"!==r.locale&&(ry||"onCompositionStart"!==v?"onCompositionEnd"===v&&ry&&(y=tz()):(tU="value"in(t$=i)?t$.value:t$.textContent,ry=!0)),0<(D=no(n,v)).length&&(v=new t7(v,e,null,r,i),a.push({event:v,listeners:D}),y?v.data=y:null!==(y=rm(r))&&(v.data=y))),(y=rp?function(e,t){switch(e){case"compositionend":return rm(t);case"keypress":if(32!==t.which)return null;return rh=!0," ";case"textInput":return" "===(e=t.data)&&rh?null:e;default:return null}}(e,r):function(e,t){if(ry)return"compositionend"===e||!rl&&rf(e,t)?(e=tz(),tV=tU=t$=null,ry=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rd&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=no(n,"onBeforeInput")).length&&(i=new t7("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y)}r9(a,t)})}function na(e,t,r){return{instance:e,listener:t,currentTarget:r}}function no(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,s=i.stateNode;5===i.tag&&null!==s&&(i=s,null!=(s=eB(e,r))&&n.unshift(na(e,s,i)),null!=(s=eB(e,t))&&n.push(na(e,s,i))),e=e.return}return n}function nu(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function nl(e,t,r,n,i){for(var s=t._reactName,a=[];null!==r&&r!==n;){var o=r,u=o.alternate,l=o.stateNode;if(null!==u&&u===n)break;5===o.tag&&null!==l&&(o=l,i?null!=(u=eB(r,s))&&a.unshift(na(r,u,o)):i||null!=(u=eB(r,s))&&a.push(na(r,u,o))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var nc=/\r\n?/g,np=/\u0000|\uFFFD/g;function nd(e){return("string"==typeof e?e:""+e).replace(nc,"\n").replace(np,"")}function nh(e,t,r){if(t=nd(t),nd(e)!==t&&r)throw Error(p(425))}function nf(){}var nm=null;function ny(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ng="function"==typeof setTimeout?setTimeout:void 0,nD="function"==typeof clearTimeout?clearTimeout:void 0,nv="function"==typeof Promise?Promise:void 0,nx="function"==typeof queueMicrotask?queueMicrotask:void 0!==nv?function(e){return nv.resolve(null).then(e).catch(nb)}:ng;function nb(e){setTimeout(function(){throw e})}function nE(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType){if("/$"===(r=i.data)){if(0===n){e.removeChild(i),tO(t);return}n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++}r=i}while(r);tO(t)}function nC(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function nS(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var nA=Math.random().toString(36).slice(2),nw="__reactFiber$"+nA,nT="__reactProps$"+nA,nP="__reactContainer$"+nA,nF="__reactEvents$"+nA,nk="__reactListeners$"+nA,nN="__reactHandles$"+nA;function nO(e){var t=e[nw];if(t)return t;for(var r=e.parentNode;r;){if(t=r[nP]||r[nw]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=nS(e);null!==e;){if(r=e[nw])return r;e=nS(e)}return t}r=(e=r).parentNode}return null}function nI(e){return(e=e[nw]||e[nP])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function nj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(p(33))}function nB(e){return e[nT]||null}var nL=[],n_=-1;function nM(e){return{current:e}}function nR(e){0>n_||(e.current=nL[n_],nL[n_]=null,n_--)}function n$(e,t){nL[++n_]=e.current,e.current=t}var nU={},nV=nM(nU),nz=nM(!1),nH=nU;function nW(e,t){var r=e.type.contextTypes;if(!r)return nU;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,s={};for(i in r)s[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function nq(e){return null!=(e=e.childContextTypes)}function nK(){nR(nz),nR(nV)}function nJ(e,t,r){if(nV.current!==nU)throw Error(p(168));n$(nV,t),n$(nz,r)}function nG(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(p(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case F:return"Fragment";case P:return"Portal";case N:return"Profiler";case k:return"StrictMode";case B:return"Suspense";case L:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case I:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case j:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case _:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case M:r=t._payload,t=t._init;try{return e(t(r))}catch(e){}}return null}(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",i));return z({},r,n)}function nX(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nU,nH=nV.current,n$(nV,e),n$(nz,nz.current),!0}function nY(e,t,r){var n=e.stateNode;if(!n)throw Error(p(169));r?(e=nG(e,t,nH),n.__reactInternalMemoizedMergedChildContext=e,nR(nz),nR(nV),n$(nV,e)):nR(nz),n$(nz,r)}var nQ=null,nZ=!1,n0=!1;function n1(e){null===nQ?nQ=[e]:nQ.push(e)}function n2(){if(!n0&&null!==nQ){n0=!0;var e=0,t=tl;try{var r=nQ;for(tl=1;e<r.length;e++){var n=r[e];do n=n(!0);while(null!==n)}nQ=null,nZ=!1}catch(t){throw null!==nQ&&(nQ=nQ.slice(e+1)),eG(e1,n2),t}finally{tl=t,n0=!1}}return null}var n3=w.ReactCurrentBatchConfig;function n8(e,t){if(e&&e.defaultProps)for(var r in t=z({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var n4=nM(null),n6=null,n7=null,n5=null;function n9(){n5=n7=n6=null}function ie(e){var t=n4.current;nR(n4),e._currentValue=t}function it(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ir(e,t){n6=e,n5=n7=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(at=!0),e.firstContext=null)}function ii(e){var t=e._currentValue;if(n5!==e){if(e={context:e,memoizedValue:t,next:null},null===n7){if(null===n6)throw Error(p(308));n7=e,n6.dependencies={lanes:0,firstContext:e}}else n7=n7.next=e}return t}var is=null,ia=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function il(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ic(e,t){var r=e.updateQueue;null!==r&&(r=r.shared,null!==aG&&0!=(1&e.mode)&&0==(2&aJ)?(null===(e=r.interleaved)?(t.next=t,null===is?is=[r]:is.push(r)):(t.next=e.next,e.next=t),r.interleaved=t):(null===(e=r.pending)?t.next=t:(t.next=e.next,e.next=t),r.pending=t))}function ip(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,tu(e,r)}}function id(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,s=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===s?i=s=a:s=s.next=a,r=r.next}while(null!==r);null===s?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ih(e,t,r,n){var i=e.updateQueue;ia=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var u=o,l=u.next;u.next=null,null===a?s=l:a.next=l,a=u;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===o?c.firstBaseUpdate=l:o.next=l,c.lastBaseUpdate=u)}if(null!==s){var p=i.baseState;for(a=0,c=l=u=null,o=s;;){var d=o.lane,h=o.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});t:{var f=e,m=o;switch(d=t,h=r,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break t}p=f;break t;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break t;p=z({},p,d);break t;case 2:ia=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[o]:d.push(o))}else h={eventTime:h,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(l=c=h,u=p):c=c.next=h,a|=d;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(d=o).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(u=p),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do a|=i.lane,i=i.next;while(i!==t)}else null===s&&(i.shared.lanes=0);a2|=a,e.lanes=a,e.memoizedState=p}}function im(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(p(191,i));i.call(n)}}}var iy=(new l.Component).refs;function ig(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:z({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var iD={isMounted:function(e){return!!(e=e._reactInternals)&&eW(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ol(),i=oc(e),s=il(n,i);s.payload=t,null!=r&&(s.callback=r),ic(e,s),null!==(t=op(e,i,n))&&ip(t,e,i)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ol(),i=oc(e),s=il(n,i);s.tag=1,s.payload=t,null!=r&&(s.callback=r),ic(e,s),null!==(t=op(e,i,n))&&ip(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ol(),n=oc(e),i=il(r,n);i.tag=2,null!=t&&(i.callback=t),ic(e,i),null!==(t=op(e,n,r))&&ip(t,e,n)}};function iv(e,t,r,n,i,s,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,s,a):!t.prototype||!t.prototype.isPureReactComponent||!rB(r,n)||!rB(i,s)}function ix(e,t,r){var n=!1,i=nU,s=t.contextType;return"object"==typeof s&&null!==s?s=ii(s):(i=nq(t)?nH:nV.current,s=(n=null!=(n=t.contextTypes))?nW(e,i):nU),t=new t(r,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=iD,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ib(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&iD.enqueueReplaceState(t,t.state,null)}function iE(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=iy,io(e);var s=t.contextType;"object"==typeof s&&null!==s?i.context=ii(s):(s=nq(t)?nH:nV.current,i.context=nW(e,s)),i.state=e.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(ig(e,t,s,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&iD.enqueueReplaceState(i,i.state,null),ih(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}var iC=[],iS=0,iA=null,iw=0,iT=[],iP=0,iF=null,ik=1,iN="";function iO(e,t){iC[iS++]=iw,iC[iS++]=iA,iA=e,iw=t}function iI(e,t,r){iT[iP++]=ik,iT[iP++]=iN,iT[iP++]=iF,iF=e;var n=ik;e=iN;var i=32-e5(n)-1;n&=~(1<<i),r+=1;var s=32-e5(t)+i;if(30<s){var a=i-i%5;s=(n&(1<<a)-1).toString(32),n>>=a,i-=a,ik=1<<32-e5(t)+i|r<<i|n,iN=s+e}else ik=1<<s|r<<i|n,iN=e}function ij(e){null!==e.return&&(iO(e,1),iI(e,1,0))}function iB(e){for(;e===iA;)iA=iC[--iS],iC[iS]=null,iw=iC[--iS],iC[iS]=null;for(;e===iF;)iF=iT[--iP],iT[iP]=null,iN=iT[--iP],iT[iP]=null,ik=iT[--iP],iT[iP]=null}var iL=null,i_=null,iM=!1,iR=null;function i$(e,t){var r=oR(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function iU(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,iL=e,i_=nC(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,iL=e,i_=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==iF?{id:ik,overflow:iN}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=oR(18,null,null,0)).stateNode=t,r.return=e,e.child=r,iL=e,i_=null,!0);default:return!1}}function iV(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function iz(e){if(iM){var t=i_;if(t){var r=t;if(!iU(e,t)){if(iV(e))throw Error(p(418));t=nC(r.nextSibling);var n=iL;t&&iU(e,t)?i$(n,r):(e.flags=-4097&e.flags|2,iM=!1,iL=e)}}else{if(iV(e))throw Error(p(418));e.flags=-4097&e.flags|2,iM=!1,iL=e}}}function iH(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;iL=e}function iW(e){if(e!==iL)return!1;if(!iM)return iH(e),iM=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ny(e.type,e.memoizedProps)),t&&(t=i_)){if(iV(e)){for(e=i_;e;)e=nC(e.nextSibling);throw Error(p(418))}for(;t;)i$(e,t),t=nC(t.nextSibling)}if(iH(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(p(317));t:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var t,r=e.data;if("/$"===r){if(0===t){i_=nC(e.nextSibling);break t}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}i_=null}}else i_=iL?nC(e.stateNode.nextSibling):null;return!0}function iq(){i_=iL=null,iM=!1}function iK(e){null===iR?iR=[e]:iR.push(e)}function iJ(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(p(309));var n=r.stateNode}if(!n)throw Error(p(147,e));var i=n,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:((t=function(e){var t=i.refs;t===iy&&(t=i.refs={}),null===e?delete t[s]:t[s]=e})._stringRef=s,t)}if("string"!=typeof e)throw Error(p(284));if(!r._owner)throw Error(p(290,e))}return e}function iG(e,t){throw Error(p(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iX(e){return(0,e._init)(e._payload)}function iY(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=oU(e,t)).index=0,e.sibling=null,e}function s(t,r,n){return(t.index=n,e)?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function o(e,t,r,n){return null===t||6!==t.tag?((t=oW(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function u(e,t,r,n){var s=r.type;return s===F?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===M&&iX(s)===t.type)?((n=i(t,r.props)).ref=iJ(e,t,r),n.return=e,n):((n=oV(r.type,r.key,r.props,null,e.mode,n)).ref=iJ(e,t,r),n.return=e,n)}function l(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=oq(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function c(e,t,r,n,s){return null===t||7!==t.tag?((t=oz(r,e.mode,n,s)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=oW(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case T:return(r=oV(t.type,t.key,t.props,null,e.mode,r)).ref=iJ(e,null,t),r.return=e,r;case P:return(t=oq(t,e.mode,r)).return=e,t;case M:return d(e,(0,t._init)(t._payload),r)}if(ei(t)||U(t))return(t=oz(t,e.mode,r,null)).return=e,t;iG(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:o(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case T:return r.key===i?u(e,t,r,n):null;case P:return r.key===i?l(e,t,r,n):null;case M:return h(e,t,(i=r._init)(r._payload),n)}if(ei(r)||U(r))return null!==i?null:c(e,t,r,n,null);iG(e,r)}return null}function f(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return o(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case T:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case P:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i);case M:return f(e,t,r,(0,n._init)(n._payload),i)}if(ei(n)||U(n))return c(t,e=e.get(r)||null,n,i,null);iG(t,n)}return null}return function o(u,l,c,m){if("object"==typeof c&&null!==c&&c.type===F&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case T:t:{for(var y=c.key,g=l;null!==g;){if(g.key===y){if((y=c.type)===F){if(7===g.tag){r(u,g.sibling),(l=i(g,c.props.children)).return=u,u=l;break t}}else if(g.elementType===y||"object"==typeof y&&null!==y&&y.$$typeof===M&&iX(y)===g.type){r(u,g.sibling),(l=i(g,c.props)).ref=iJ(u,g,c),l.return=u,u=l;break t}r(u,g);break}t(u,g);g=g.sibling}c.type===F?((l=oz(c.props.children,u.mode,m,c.key)).return=u,u=l):((m=oV(c.type,c.key,c.props,null,u.mode,m)).ref=iJ(u,l,c),m.return=u,u=m)}return a(u);case P:t:{for(g=c.key;null!==l;){if(l.key===g){if(4===l.tag&&l.stateNode.containerInfo===c.containerInfo&&l.stateNode.implementation===c.implementation){r(u,l.sibling),(l=i(l,c.children||[])).return=u,u=l;break t}r(u,l);break}t(u,l);l=l.sibling}(l=oq(c,u.mode,m)).return=u,u=l}return a(u);case M:return o(u,l,(g=c._init)(c._payload),m)}if(ei(c))return function(i,a,o,u){for(var l=null,c=null,p=a,m=a=0,y=null;null!==p&&m<o.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=h(i,p,o[m],u);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(i,p),a=s(g,a,m),null===c?l=g:c.sibling=g,c=g,p=y}if(m===o.length)return r(i,p),iM&&iO(i,m),l;if(null===p){for(;m<o.length;m++)null!==(p=d(i,o[m],u))&&(a=s(p,a,m),null===c?l=p:c.sibling=p,c=p);return iM&&iO(i,m),l}for(p=n(i,p);m<o.length;m++)null!==(y=f(p,i,m,o[m],u))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=s(y,a,m),null===c?l=y:c.sibling=y,c=y);return e&&p.forEach(function(e){return t(i,e)}),iM&&iO(i,m),l}(u,l,c,m);if(U(c))return function(i,a,o,u){var l=U(o);if("function"!=typeof l)throw Error(p(150));if(null==(o=l.call(o)))throw Error(p(151));for(var c=l=null,m=a,y=a=0,g=null,D=o.next();null!==m&&!D.done;y++,D=o.next()){m.index>y?(g=m,m=null):g=m.sibling;var v=h(i,m,D.value,u);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(i,m),a=s(v,a,y),null===c?l=v:c.sibling=v,c=v,m=g}if(D.done)return r(i,m),iM&&iO(i,y),l;if(null===m){for(;!D.done;y++,D=o.next())null!==(D=d(i,D.value,u))&&(a=s(D,a,y),null===c?l=D:c.sibling=D,c=D);return iM&&iO(i,y),l}for(m=n(i,m);!D.done;y++,D=o.next())null!==(D=f(m,i,y,D.value,u))&&(e&&null!==D.alternate&&m.delete(null===D.key?y:D.key),a=s(D,a,y),null===c?l=D:c.sibling=D,c=D);return e&&m.forEach(function(e){return t(i,e)}),iM&&iO(i,y),l}(u,l,c,m);iG(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==l&&6===l.tag?(r(u,l.sibling),(l=i(l,c)).return=u):(r(u,l),(l=oW(c,u.mode,m)).return=u),a(u=l)):r(u,l)}}var iQ=iY(!0),iZ=iY(!1),i0={},i1=nM(i0),i2=nM(i0),i3=nM(i0);function i8(e){if(e===i0)throw Error(p(174));return e}function i4(e,t){switch(n$(i3,t),n$(i2,e),n$(i1,i0),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ep(null,"");break;default:t=(e=8===e?t.parentNode:t).namespaceURI||null,t=ep(t,e=e.tagName)}nR(i1),n$(i1,t)}function i6(){nR(i1),nR(i2),nR(i3)}function i7(e){i8(i3.current);var t=i8(i1.current),r=ep(t,e.type);t!==r&&(n$(i2,e),n$(i1,r))}function i5(e){i2.current===e&&(nR(i1),nR(i2))}var i9=nM(0);function se(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var st=[];function sr(){for(var e=0;e<st.length;e++)st[e]._workInProgressVersionPrimary=null;st.length=0}var sn=w.ReactCurrentDispatcher,si=w.ReactCurrentBatchConfig,ss=0,sa=null,so=null,su=null,sl=!1,sc=!1,sp=0,sd=0;function sh(){throw Error(p(321))}function sf(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!rj(e[r],t[r]))return!1;return!0}function sm(e,t,r,n,i,s){if(ss=s,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sn.current=null===e||null===e.memoizedState?sY:sQ,e=r(n,i),sc){s=0;do{if(sc=!1,sp=0,25<=s)throw Error(p(301));s+=1,su=so=null,t.updateQueue=null,sn.current=sZ,e=r(n,i)}while(sc)}if(sn.current=sX,t=null!==so&&null!==so.next,ss=0,su=so=sa=null,sl=!1,t)throw Error(p(300));return e}function sy(){var e=0!==sp;return sp=0,e}function sg(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===su?sa.memoizedState=su=e:su=su.next=e,su}function sD(){if(null===so){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===su?sa.memoizedState:su.next;if(null!==t)su=t,so=e;else{if(null===e)throw Error(p(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===su?sa.memoizedState=su=e:su=su.next=e}return su}function sv(e,t){return"function"==typeof t?t(e):t}function sx(e){var t=sD(),r=t.queue;if(null===r)throw Error(p(311));r.lastRenderedReducer=e;var n=so,i=n.baseQueue,s=r.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}n.baseQueue=i=s,r.pending=null}if(null!==i){s=i.next,n=n.baseState;var o=a=null,u=null,l=s;do{var c=l.lane;if((ss&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===u?(o=u=d,a=n):u=u.next=d,sa.lanes|=c,a2|=c}l=l.next}while(null!==l&&l!==s);null===u?a=n:u.next=o,rj(n,t.memoizedState)||(at=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do s=i.lane,sa.lanes|=s,a2|=s,i=i.next;while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function sb(e){var t=sD(),r=t.queue;if(null===r)throw Error(p(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(null!==i){r.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i);rj(s,t.memoizedState)||(at=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function sE(){}function sC(e,t){var r=sa,n=sD(),i=t(),s=!rj(n.memoizedState,i);if(s&&(n.memoizedState=i,at=!0),n=n.queue,sj(sw.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||null!==su&&1&su.memoizedState.tag){if(r.flags|=2048,sF(9,sA.bind(null,r,n,i,t),void 0,null),null===aG)throw Error(p(349));0!=(30&ss)||sS(r,t,i)}return i}function sS(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function sA(e,t,r,n){t.value=r,t.getSnapshot=n,sT(t)&&op(e,1,-1)}function sw(e,t,r){return r(function(){sT(t)&&op(e,1,-1)})}function sT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!rj(e,r)}catch(e){return!0}}function sP(e){var t=sg();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sv,lastRenderedState:e},t.queue=e,e=e.dispatch=sW.bind(null,sa,e),[t.memoizedState,e]}function sF(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function sk(){return sD().memoizedState}function sN(e,t,r,n){var i=sg();sa.flags|=e,i.memoizedState=sF(1|t,r,void 0,void 0===n?null:n)}function sO(e,t,r,n){var i=sD();n=void 0===n?null:n;var s=void 0;if(null!==so){var a=so.memoizedState;if(s=a.destroy,null!==n&&sf(n,a.deps)){i.memoizedState=sF(t,r,s,n);return}}sa.flags|=e,i.memoizedState=sF(1|t,r,s,n)}function sI(e,t){return sN(8390656,8,e,t)}function sj(e,t){return sO(2048,8,e,t)}function sB(e,t){return sO(4,2,e,t)}function sL(e,t){return sO(4,4,e,t)}function s_(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function sM(e,t,r){return r=null!=r?r.concat([e]):null,sO(4,4,s_.bind(null,t,e),r)}function sR(){}function s$(e,t){var r=sD();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&sf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function sU(e,t){var r=sD();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&sf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function sV(e,t){var r=tl;tl=0!==r&&4>r?r:4,e(!0);var n=si.transition;si.transition={};try{e(!1),t()}finally{tl=r,si.transition=n}}function sz(){return sD().memoizedState}function sH(e,t,r){var n=oc(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sq(e)?sK(t,r):(sJ(e,t,r),null!==(e=op(e,n,r=ol()))&&sG(e,t,n))}function sW(e,t,r){var n=oc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sq(e))sK(t,i);else{sJ(e,t,i);var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,rj(o,a))return}catch(e){}finally{}null!==(e=op(e,n,r=ol()))&&sG(e,t,n)}}function sq(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function sK(e,t){sc=sl=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function sJ(e,t,r){null!==aG&&0!=(1&e.mode)&&0==(2&aJ)?(null===(e=t.interleaved)?(r.next=r,null===is?is=[t]:is.push(t)):(r.next=e.next,e.next=r),t.interleaved=r):(null===(e=t.pending)?r.next=r:(r.next=e.next,e.next=r),t.pending=r)}function sG(e,t,r){if(0!=(4194240&r)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,tu(e,r)}}var sX={readContext:ii,useCallback:sh,useContext:sh,useEffect:sh,useImperativeHandle:sh,useInsertionEffect:sh,useLayoutEffect:sh,useMemo:sh,useReducer:sh,useRef:sh,useState:sh,useDebugValue:sh,useDeferredValue:sh,useTransition:sh,useMutableSource:sh,useSyncExternalStore:sh,useId:sh,unstable_isNewReconciler:!1},sY={readContext:ii,useCallback:function(e,t){return sg().memoizedState=[e,void 0===t?null:t],e},useContext:ii,useEffect:sI,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,sN(4194308,4,s_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return sN(4194308,4,e,t)},useInsertionEffect:function(e,t){return sN(4,2,e,t)},useMemo:function(e,t){var r=sg();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sg();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=sH.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){var t=sg();return e={current:e},t.memoizedState=e},useState:sP,useDebugValue:sR,useDeferredValue:function(e){var t=sP(e),r=t[0],n=t[1];return sI(function(){var t=si.transition;si.transition={};try{n(e)}finally{si.transition=t}},[e]),r},useTransition:function(){var e=sP(!1),t=e[0];return e=sV.bind(null,e[1]),sg().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,i=sg();if(iM){if(void 0===r)throw Error(p(407));r=r()}else{if(r=t(),null===aG)throw Error(p(349));0!=(30&ss)||sS(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,sI(sw.bind(null,n,s,e),[e]),n.flags|=2048,sF(9,sA.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=sg(),t=aG.identifierPrefix;if(iM){var r=iN,n=ik;t=":"+t+"R"+(r=(n&~(1<<32-e5(n)-1)).toString(32)+r),0<(r=sp++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=sd++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sQ={readContext:ii,useCallback:s$,useContext:ii,useEffect:sj,useImperativeHandle:sM,useInsertionEffect:sB,useLayoutEffect:sL,useMemo:sU,useReducer:sx,useRef:sk,useState:function(){return sx(sv)},useDebugValue:sR,useDeferredValue:function(e){var t=sx(sv),r=t[0],n=t[1];return sj(function(){var t=si.transition;si.transition={};try{n(e)}finally{si.transition=t}},[e]),r},useTransition:function(){return[sx(sv)[0],sD().memoizedState]},useMutableSource:sE,useSyncExternalStore:sC,useId:sz,unstable_isNewReconciler:!1},sZ={readContext:ii,useCallback:s$,useContext:ii,useEffect:sj,useImperativeHandle:sM,useInsertionEffect:sB,useLayoutEffect:sL,useMemo:sU,useReducer:sb,useRef:sk,useState:function(){return sb(sv)},useDebugValue:sR,useDeferredValue:function(e){var t=sb(sv),r=t[0],n=t[1];return sj(function(){var t=si.transition;si.transition={};try{n(e)}finally{si.transition=t}},[e]),r},useTransition:function(){return[sb(sv)[0],sD().memoizedState]},useMutableSource:sE,useSyncExternalStore:sC,useId:sz,unstable_isNewReconciler:!1};function s0(e,t){try{var r="",n=t;do r+=function(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 1:return e=q(e.type,!0);default:return""}}(n),n=n.return;while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function s1(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var s2="function"==typeof WeakMap?WeakMap:Map;function s3(e,t,r){(r=il(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){a9||(a9=!0,oe=n),s1(e,t)},r}function s8(e,t,r){(r=il(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){s1(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(r.callback=function(){s1(e,t),"function"!=typeof n&&(null===ot?ot=new Set([this]):ot.add(this));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}function s4(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new s2;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=oI.bind(null,e,t,r),t.then(e,e))}function s6(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function s7(e,t,r,n,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=il(-1,1)).tag=2,ic(r,t))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function s5(e,t){if(!iM)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function s9(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}i=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},s=function(){},a=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,i8(i1.current);var s,a=null;switch(r){case"input":i=Q(e,i),n=Q(e,n),a=[];break;case"select":i=z({},i,{value:void 0}),n=z({},n,{value:void 0}),a=[];break;case"textarea":i=ea(e,i),n=ea(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=nf)}for(l in eb(r,n),r=null,i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l]){if("style"===l){var o=i[l];for(s in o)o.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(h.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null))}for(l in n){var u=n[l];if(o=null!=i?i[l]:void 0,n.hasOwnProperty(l)&&u!==o&&(null!=u||null!=o)){if("style"===l){if(o){for(s in o)!o.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&o[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(a||(a=[]),a.push(l,r)),r=u}else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,o=o?o.__html:void 0,null!=u&&o!==u&&(a=a||[]).push(l,u)):"children"===l?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(h.hasOwnProperty(l)?(null!=u&&"onScroll"===l&&ne("scroll",e),a||o===u||(a=[])):(a=a||[]).push(l,u))}}r&&(a=a||[]).push("style",r);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},o=function(e,t,r,n){r!==n&&(t.flags|=4)};var ae=w.ReactCurrentOwner,at=!1;function ar(e,t,r,n){t.child=null===e?iZ(t,null,r,n):iQ(t,e.child,r,n)}function an(e,t,r,n,i){r=r.render;var s=t.ref;return(ir(t,i),n=sm(e,t,r,n,s,i),r=sy(),null===e||at)?(iM&&r&&ij(t),t.flags|=1,ar(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,aC(e,t,i))}function ai(e,t,r,n,i){if(null===e){var s=r.type;return"function"!=typeof s||o$(s)||void 0!==s.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=oV(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,as(e,t,s,n,i))}if(s=e.child,0==(e.lanes&i)){var a=s.memoizedProps;if((r=null!==(r=r.compare)?r:rB)(a,n)&&e.ref===t.ref)return aC(e,t,i)}return t.flags|=1,(e=oU(s,n)).ref=t.ref,e.return=t,t.child=e}function as(e,t,r,n,i){if(null!==e&&rB(e.memoizedProps,n)&&e.ref===t.ref){if(at=!1,0==(e.lanes&i))return t.lanes=e.lanes,aC(e,t,i);0!=(131072&e.flags)&&(at=!0)}return au(e,t,r,n,i)}function aa(e,t,r){var n=t.pendingProps,i=n.children,s=null!==e?e.memoizedState:null;if("hidden"===n.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},n$(aZ,aQ),aQ|=r;else{if(0==(1073741824&r))return e=null!==s?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,n$(aZ,aQ),aQ|=e,null;t.memoizedState={baseLanes:0,cachePool:null},n=null!==s?s.baseLanes:r,n$(aZ,aQ),aQ|=n}}else null!==s?(n=s.baseLanes|r,t.memoizedState=null):n=r,n$(aZ,aQ),aQ|=n;return ar(e,t,i,r),t.child}function ao(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function au(e,t,r,n,i){var s=nq(r)?nH:nV.current;return(s=nW(t,s),ir(t,i),r=sm(e,t,r,n,s,i),n=sy(),null===e||at)?(iM&&n&&ij(t),t.flags|=1,ar(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,aC(e,t,i))}function al(e,t,r,n,i){if(nq(r)){var s=!0;nX(t)}else s=!1;if(ir(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ix(t,r,n),iE(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,l=r.contextType;l="object"==typeof l&&null!==l?ii(l):nW(t,l=nq(r)?nH:nV.current);var c=r.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==n||u!==l)&&ib(t,a,n,l),ia=!1;var d=t.memoizedState;a.state=d,ih(t,n,a,i),u=t.memoizedState,o!==n||d!==u||nz.current||ia?("function"==typeof c&&(ig(t,r,c,n),u=t.memoizedState),(o=ia||iv(t,r,o,n,d,u,l))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=l,n=o):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,iu(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:n8(t.type,o),a.props=l,p=t.pendingProps,d=a.context,u="object"==typeof(u=r.contextType)&&null!==u?ii(u):nW(t,u=nq(r)?nH:nV.current);var h=r.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==p||d!==u)&&ib(t,a,n,u),ia=!1,d=t.memoizedState,a.state=d,ih(t,n,a,i);var f=t.memoizedState;o!==p||d!==f||nz.current||ia?("function"==typeof h&&(ig(t,r,h,n),f=t.memoizedState),(l=ia||iv(t,r,l,n,d,f,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=u,n=l):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return ac(e,t,r,n,s,i)}function ac(e,t,r,n,i,s){ao(e,t);var a=0!=(128&t.flags);if(!n&&!a)return i&&nY(t,r,!1),aC(e,t,s);n=t.stateNode,ae.current=t;var o=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=iQ(t,e.child,null,s),t.child=iQ(t,null,o,s)):ar(e,t,o,s),t.memoizedState=n.state,i&&nY(t,r,!0),t.child}function ap(e){var t=e.stateNode;t.pendingContext?nJ(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nJ(e,t.context,!1),i4(e,t.containerInfo)}function ad(e,t,r,n,i){return iq(),iK(i),t.flags|=256,ar(e,t,r,n),t.child}var ah={dehydrated:null,treeContext:null,retryLane:0};function af(e){return{baseLanes:e,cachePool:null}}function am(e,t,r){var n,i=t.pendingProps,s=i9.current,a=!1,o=0!=(128&t.flags);if((n=o)||(n=(null===e||null!==e.memoizedState)&&0!=(2&s)),n?(a=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(s|=1),n$(i9,1&s),null===e)return(iz(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=oH(s,i,0,null),e=oz(e,i,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=af(r),t.memoizedState=ah,e):ay(t,s));if(null!==(s=e.memoizedState)){if(null!==(n=s.dehydrated)){if(o)return 256&t.flags?(t.flags&=-257,av(e,t,r,Error(p(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,s=t.mode,i=oH({mode:"visible",children:i.children},s,0,null),a=oz(a,s,r,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!=(1&t.mode)&&iQ(t,e.child,null,r),t.child.memoizedState=af(r),t.memoizedState=ah,a);if(0==(1&t.mode))t=av(e,t,r,null);else if("$!"===n.data)t=av(e,t,r,Error(p(419)));else if(i=0!=(r&e.childLanes),at||i){if(null!==(i=aG)){switch(r&-r){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(i=0!=(a&(i.suspendedLanes|r))?0:a)&&i!==s.retryLane&&(s.retryLane=i,op(e,i,-1))}oA(),t=av(e,t,r,Error(p(421)))}else"$?"===n.data?(t.flags|=128,t.child=e.child,t=oB.bind(null,e),n._reactRetry=t,t=null):(r=s.treeContext,i_=nC(n.nextSibling),iL=t,iM=!0,iR=null,null!==r&&(iT[iP++]=ik,iT[iP++]=iN,iT[iP++]=iF,ik=r.id,iN=r.overflow,iF=t),t=ay(t,t.pendingProps.children),t.flags|=4096);return t};}return a?(i=aD(e,t,i.children,i.fallback,r),a=t.child,s=e.child.memoizedState,a.memoizedState=null===s?af(r):{baseLanes:s.baseLanes|r,cachePool:null},a.childLanes=e.childLanes&~r,t.memoizedState=ah,i):(r=ag(e,t,i.children,r),t.memoizedState=null,r)}function ay(e,t){return(t=oH({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ag(e,t,r,n){var i=e.child;return e=i.sibling,r=oU(i,{mode:"visible",children:r}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r}function aD(e,t,r,n,i){var s=t.mode,a=(e=e.child).sibling,o={mode:"hidden",children:r};return 0==(1&s)&&t.child!==e?((r=t.child).childLanes=0,r.pendingProps=o,t.deletions=null):(r=oU(e,o)).subtreeFlags=14680064&e.subtreeFlags,null!==a?n=oU(a,n):(n=oz(n,s,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function av(e,t,r,n){return null!==n&&iK(n),iQ(t,e.child,null,r),e=ay(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ax(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),it(e.return,t,r)}function ab(e,t,r,n,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function aE(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(ar(e,t,n.children,r),0!=(2&(n=i9.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))t:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ax(e,r,t);else if(19===e.tag)ax(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(n$(i9,n),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,r=t.child;null!==r;)null!==(e=r.alternate)&&null===se(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ab(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===se(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ab(t,!0,r,null,s);break;case"together":ab(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aC(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),a2|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(p(153));if(null!==t.child){for(r=oU(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=oU(e,e.pendingProps)).return=t;r.sibling=null}return t.child}var aS=!1,aA=!1,aw="function"==typeof WeakSet?WeakSet:Set,aT=null;function aP(e,t){var r=e.ref;if(null!==r){if("function"==typeof r)try{r(null)}catch(r){oO(e,t,r)}else r.current=null}}function aF(e,t,r){try{r()}catch(r){oO(e,t,r)}}var ak=!1;function aN(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,void 0!==s&&aF(t,r,s)}i=i.next}while(i!==n)}}function aO(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function aI(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag;e=r;"function"==typeof t?t(e):t.current=e}}function aj(e,t,r){if(e7&&"function"==typeof e7.onCommitFiberUnmount)try{e7.onCommitFiberUnmount(e6,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var i=n,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)?aF(t,r,s):0!=(4&i)&&aF(t,r,s)),n=n.next}while(n!==e)}break;case 1:if(aP(t,r),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){oO(t,r,e)}break;case 5:aP(t,r);break;case 4:aM(e,t,r)}}function aB(e){return 5===e.tag||3===e.tag||4===e.tag}function aL(e){t:for(;;){for(;null===e.sibling;){if(null===e.return||aB(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue t;if(null===e.child||4===e.tag)continue t;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function a_(e){t:{for(var t=e.return;null!==t;){if(aB(t))break t;t=t.return}throw Error(p(160))}var r=t;switch(r.tag){case 5:t=r.stateNode,32&r.flags&&(em(t,""),r.flags&=-33),r=aL(e),function e(t,r,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,r?n.insertBefore(t,r):n.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t);break;case 3:case 4:t=r.stateNode.containerInfo,r=aL(e),function e(t,r,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,r?8===n.nodeType?n.parentNode.insertBefore(t,r):n.insertBefore(t,r):(8===n.nodeType?(r=n.parentNode).insertBefore(t,n):(r=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==r.onclick||(r.onclick=nf));else if(4!==i&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t);break;default:throw Error(p(161))}}function aM(e,t,r){for(var n,i,s=t,a=!1;;){if(!a){a=s.return;t:for(;;){if(null===a)throw Error(p(160));switch(n=a.stateNode,a.tag){case 5:i=!1;break t;case 3:case 4:n=n.containerInfo,i=!0;break t}a=a.return}a=!0}if(5===s.tag||6===s.tag){t:for(var o=e,u=s,l=u;;)if(aj(o,l,r),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break;for(;null===l.sibling;){if(null===l.return||l.return===u)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(o=n,u=s.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):n.removeChild(s.stateNode)}else if(18===s.tag)i?(o=n,u=s.stateNode,8===o.nodeType?nE(o.parentNode,u):1===o.nodeType&&nE(o,u),tO(o)):nE(n,s.stateNode);else if(4===s.tag){if(null!==s.child){n=s.stateNode.containerInfo,i=!0,s.child.return=s,s=s.child;continue}}else if(aj(e,s,r),null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break;for(;null===s.sibling;){if(null===s.return||s.return===t)return;4===(s=s.return).tag&&(a=!1)}s.sibling.return=s.return,s=s.sibling}}function aR(e,t){switch(t.tag){case 0:case 11:case 14:case 15:aN(3,t,t.return),aO(3,t),aN(5,t,t.return);return;case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,i=null!==e?e.memoizedProps:n;e=t.type;var s=t.updateQueue;if(t.updateQueue=null,null!==s){for("input"===e&&"radio"===n.type&&null!=n.name&&ee(r,n),eE(e,i),t=eE(e,n),i=0;i<s.length;i+=2){var a=s[i],o=s[i+1];"style"===a?ev(r,o):"dangerouslySetInnerHTML"===a?ef(r,o):"children"===a?em(r,o):A(r,a,o,t)}switch(e){case"input":et(r,n);break;case"textarea":eu(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(s=n.value)?es(r,!!n.multiple,s,!1):!!n.multiple!==e&&(null!=n.defaultValue?es(r,!!n.multiple,n.defaultValue,!0):es(r,!!n.multiple,n.multiple?[]:"",!1))}r[nT]=n}}return;case 6:if(null===t.stateNode)throw Error(p(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:null!==e&&e.memoizedState.isDehydrated&&tO(t.stateNode.containerInfo);return;case 13:case 19:a$(t);return}throw Error(p(163))}function a$(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new aw),t.forEach(function(t){var n=oL.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function aU(e){for(;null!==aT;){var t=aT;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:aA||aO(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!aA){if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:n8(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}}var s=t.updateQueue;null!==s&&im(t,s,n);break;case 3:var a=t.updateQueue;if(null!==a){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}im(t,a,r)}break;case 5:var o=t.stateNode;if(null===r&&4&t.flags){r=o;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var c=l.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&tO(d)}}}break;default:throw Error(p(163))}aA||512&t.flags&&aI(t)}catch(e){oO(t,t.return,e)}}if(t===e){aT=null;break}if(null!==(r=t.sibling)){r.return=t.return,aT=r;break}aT=t.return}}function aV(e){for(;null!==aT;){var t=aT;if(t===e){aT=null;break}var r=t.sibling;if(null!==r){r.return=t.return,aT=r;break}aT=t.return}}function az(e){for(;null!==aT;){var t=aT;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{aO(4,t)}catch(e){oO(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){oO(t,i,e)}}var s=t.return;try{aI(t)}catch(e){oO(t,s,e)}break;case 5:var a=t.return;try{aI(t)}catch(e){oO(t,a,e)}}}catch(e){oO(t,t.return,e)}if(t===e){aT=null;break}var o=t.sibling;if(null!==o){o.return=t.return,aT=o;break}aT=t.return}}var aH=Math.ceil,aW=w.ReactCurrentDispatcher,aq=w.ReactCurrentOwner,aK=w.ReactCurrentBatchConfig,aJ=0,aG=null,aX=null,aY=0,aQ=0,aZ=nM(0),a0=0,a1=null,a2=0,a3=0,a8=0,a4=null,a6=null,a7=0,a5=1/0,a9=!1,oe=null,ot=null,or=!1,on=null,oi=0,os=0,oa=null,oo=-1,ou=0;function ol(){return 0!=(6&aJ)?eZ():-1!==oo?oo:oo=eZ()}function oc(e){return 0==(1&e.mode)?1:0!=(2&aJ)&&0!==aY?aY&-aY:null!==n3.transition?(0===ou&&(e=tt,0==(4194240&(tt<<=1))&&(tt=64),ou=e),ou):0!==(e=tl)?e:e=void 0===(e=window.event)?16:tR(e.type)}function op(e,t,r){if(50<os)throw os=0,oa=null,Error(p(185));var n=od(e,t);return null===n?null:(to(n,t,r),(0==(2&aJ)||n!==aG)&&(n===aG&&(0==(2&aJ)&&(a3|=t),4===a0&&og(n,aY)),oh(n,r),1===t&&0===aJ&&0==(1&e.mode)&&(a5=eZ()+500,nZ&&n2())),n)}function od(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function oh(e,t){var r,n=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-e5(s),o=1<<a,u=i[a];-1===u?(0==(o&r)||0!=(o&n))&&(i[a]=function(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(o,t)):u<=t&&(e.expiredLanes|=o),s&=~o}}(e,t);var i=ti(e,e===aG?aY:0);if(0===i)null!==n&&eX(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&eX(n),1===t){;0===e.tag?(r=oD.bind(null,e),nZ=!0,n1(r)):n1(oD.bind(null,e)),nx(function(){0===aJ&&n2()}),n=null}else{switch(tc(i)){case 1:n=e1;break;case 4:n=e2;break;case 16:default:n=e3;break;case 536870912:n=e4}n=function(e,t){return eG(e,t)}(n,of.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function of(e,t){if(oo=-1,ou=0,0!=(6&aJ))throw Error(p(327));var r=e.callbackNode;if(ok()&&e.callbackNode!==r)return null;var n=ti(e,e===aG?aY:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=ow(e,n);else{t=n;var i=aJ;aJ|=2;var s=oS();for((aG!==e||aY!==t)&&(a5=eZ()+500,oE(e,t));;)try{(function(){for(;null!==aX&&!eY();)oT(aX)})();break}catch(t){oC(e,t)}n9(),aW.current=s,aJ=i,null!==aX?t=0:(aG=null,aY=0,t=a0)}if(0!==t){if(2===t&&0!==(i=ts(e))&&(n=i,t=om(e,i)),1===t)throw r=a1,oE(e,0),og(e,n),oh(e,eZ()),r;if(6===t)og(e,n);else{if(i=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!rj(s(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ow(e,n))&&0!==(s=ts(e))&&(n=s,t=om(e,s)),1===t))throw r=a1,oE(e,0),og(e,n),oh(e,eZ()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(p(345));case 2:case 5:oF(e,a6);break;case 3:if(og(e,n),(130023424&n)===n&&10<(t=a7+500-eZ())){if(0!==ti(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ol(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ng(oF.bind(null,e,a6),t);break}oF(e,a6);break;case 4:if(og(e,n),(4194240&n)===n)break;for(i=-1,t=e.eventTimes;0<n;){var a=31-e5(n);s=1<<a,(a=t[a])>i&&(i=a),n&=~s}if(n=i,10<(n=(120>(n=eZ()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aH(n/1960))-n)){e.timeoutHandle=ng(oF.bind(null,e,a6),n);break}oF(e,a6);break;default:throw Error(p(329))}}}return oh(e,eZ()),e.callbackNode===r?of.bind(null,e):null}function om(e,t){var r=a4;return e.current.memoizedState.isDehydrated&&(oE(e,t).flags|=256),2!==(e=ow(e,t))&&(t=a6,a6=r,null!==t&&oy(t)),e}function oy(e){null===a6?a6=e:a6.push.apply(a6,e)}function og(e,t){for(t&=~a8,t&=~a3,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-e5(t),n=1<<r;e[r]=-1,t&=~n}}function oD(e){if(0!=(6&aJ))throw Error(p(327));ok();var t=ti(e,0);if(0==(1&t))return oh(e,eZ()),null;var r=ow(e,t);if(0!==e.tag&&2===r){var n=ts(e);0!==n&&(t=n,r=om(e,n))}if(1===r)throw r=a1,oE(e,0),og(e,t),oh(e,eZ()),r;if(6===r)throw Error(p(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,oF(e,a6),oh(e,eZ()),null}function ov(e,t){var r=aJ;aJ|=1;try{return e(t)}finally{0===(aJ=r)&&(a5=eZ()+500,nZ&&n2())}}function ox(e){null!==on&&0===on.tag&&0==(6&aJ)&&ok();var t=aJ;aJ|=1;var r=aK.transition,n=tl;try{if(aK.transition=null,tl=1,e)return e()}finally{tl=n,aK.transition=r,0==(6&(aJ=t))&&n2()}}function ob(){aQ=aZ.current,nR(aZ)}function oE(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,nD(r)),null!==aX)for(r=aX.return;null!==r;){var n=r;switch(iB(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&nK();break;case 3:i6(),nR(nz),nR(nV),sr();break;case 5:i5(n);break;case 4:i6();break;case 13:case 19:nR(i9);break;case 10:ie(n.type._context);break;case 22:case 23:ob()}r=r.return}if(aG=e,aX=e=oU(e.current,null),aY=aQ=t,a0=0,a1=null,a8=a3=a2=0,a6=a4=null,null!==is){for(t=0;t<is.length;t++)if(null!==(n=(r=is[t]).interleaved)){r.interleaved=null;var i=n.next,s=r.pending;if(null!==s){var a=s.next;s.next=i,n.next=a}r.pending=n}is=null}return e}function oC(e,t){for(;;){var r=aX;try{if(n9(),sn.current=sX,sl){for(var n=sa.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}sl=!1}if(ss=0,su=so=sa=null,sc=!1,sp=0,aq.current=null,null===r||null===r.return){a0=1,a1=t,aX=null;break}t:{var s=e,a=r.return,o=r,u=t;if(t=aY,o.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u,c=o,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=s6(a);if(null!==f){f.flags&=-257,s7(f,a,o,s,t),1&f.mode&&s4(s,l,t),t=f,u=l;var m=t.updateQueue;if(null===m){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break t}if(0==(1&t)){s4(s,l,t),oA();break t}u=Error(p(426))}else if(iM&&1&o.mode){var g=s6(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),s7(g,a,o,s,t),iK(u);break t}}s=u,4!==a0&&(a0=2),null===a4?a4=[s]:a4.push(s),u=s0(u,o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var D=s3(o,u,t);id(o,D);break t;case 1:s=u;var v=o.type,x=o.stateNode;if(0==(128&o.flags)&&("function"==typeof v.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ot||!ot.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=s8(o,s,t);id(o,b);break t}}o=o.return}while(null!==o)}oP(r)}catch(e){t=e,aX===r&&null!==r&&(aX=r=r.return);continue}break}}function oS(){var e=aW.current;return aW.current=sX,null===e?sX:e}function oA(){(0===a0||3===a0||2===a0)&&(a0=4),null===aG||0==(268435455&a2)&&0==(268435455&a3)||og(aG,aY)}function ow(e,t){var r=aJ;aJ|=2;var n=oS();for(aG===e&&aY===t||oE(e,t);;)try{(function(){for(;null!==aX;)oT(aX)})();break}catch(t){oC(e,t)}if(n9(),aJ=r,aW.current=n,null!==aX)throw Error(p(261));return aG=null,aY=0,a0}function oT(e){var t=u(e.alternate,e,aQ);e.memoizedProps=e.pendingProps,null===t?oP(e):aX=t,aq.current=null}function oP(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=function(e,t,r){var n=t.pendingProps;switch(iB(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return s9(t),null;case 1:case 17:return nq(t.type)&&nK(),s9(t),null;case 3:return n=t.stateNode,i6(),nR(nz),nR(nV),sr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(iW(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==iR&&(oy(iR),iR=null))),s(e,t),s9(t),null;case 5:i5(t);var u=i8(i3.current);if(r=t.type,null!==e&&null!=t.stateNode)a(e,t,r,n,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(p(166));return s9(t),null}if(e=i8(i1.current),iW(t)){n=t.stateNode,r=t.type;var l=t.memoizedProps;switch(n[nw]=t,n[nT]=l,e=0!=(1&t.mode),r){case"dialog":ne("cancel",n),ne("close",n);break;case"iframe":case"object":case"embed":ne("load",n);break;case"video":case"audio":for(u=0;u<r6.length;u++)ne(r6[u],n);break;case"source":ne("error",n);break;case"img":case"image":case"link":ne("error",n),ne("load",n);break;case"details":ne("toggle",n);break;case"input":Z(n,l),ne("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!l.multiple},ne("invalid",n);break;case"textarea":eo(n,l),ne("invalid",n)}for(var c in eb(r,l),u=null,l)if(l.hasOwnProperty(c)){var d=l[c];"children"===c?"string"==typeof d?n.textContent!==d&&(nh(n.textContent,d,e),u=["children",d]):"number"==typeof d&&n.textContent!==""+d&&(nh(n.textContent,d,e),u=["children",""+d]):h.hasOwnProperty(c)&&null!=d&&"onScroll"===c&&ne("scroll",n)}switch(r){case"input":G(n),er(n,l,!0);break;case"textarea":G(n),el(n);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(n.onclick=nf)}n=u,t.updateQueue=n,null!==n&&(t.flags|=4)}else{c=9===u.nodeType?u:u.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ec(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[nw]=t,e[nT]=n,i(e,t,!1,!1),t.stateNode=e;t:{switch(c=eE(r,n),r){case"dialog":ne("cancel",e),ne("close",e),u=n;break;case"iframe":case"object":case"embed":ne("load",e),u=n;break;case"video":case"audio":for(u=0;u<r6.length;u++)ne(r6[u],e);u=n;break;case"source":ne("error",e),u=n;break;case"img":case"image":case"link":ne("error",e),ne("load",e),u=n;break;case"details":ne("toggle",e),u=n;break;case"input":Z(e,n),u=Q(e,n),ne("invalid",e);break;case"option":default:u=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},u=z({},n,{value:void 0}),ne("invalid",e);break;case"textarea":eo(e,n),u=ea(e,n),ne("invalid",e)}for(l in eb(r,u),d=u)if(d.hasOwnProperty(l)){var f=d[l];"style"===l?ev(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ef(e,f):"children"===l?"string"==typeof f?("textarea"!==r||""!==f)&&em(e,f):"number"==typeof f&&em(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(h.hasOwnProperty(l)?null!=f&&"onScroll"===l&&ne("scroll",e):null!=f&&A(e,l,f,c))}switch(r){case"input":G(e),er(e,n,!1);break;case"textarea":G(e),el(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(l=n.value)?es(e,!!n.multiple,l,!1):null!=n.defaultValue&&es(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=nf)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return s9(t),null;case 6:if(e&&null!=t.stateNode)o(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(p(166));if(r=i8(i3.current),i8(i1.current),iW(t)){if(n=t.stateNode,r=t.memoizedProps,n[nw]=t,(l=n.nodeValue!==r)&&null!==(e=iL))switch(c=0!=(1&e.mode),e.tag){case 3:nh(n.nodeValue,r,c);break;case 5:!0!==e.memoizedProps[void 0]&&nh(n.nodeValue,r,c)}l&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[nw]=t,t.stateNode=n}return s9(t),null;case 13:if(nR(i9),n=t.memoizedState,iM&&null!==i_&&0!=(1&t.mode)&&0==(128&t.flags)){for(n=i_;n;)n=nC(n.nextSibling);return iq(),t.flags|=98560,t}if(null!==n&&null!==n.dehydrated){if(n=iW(t),null===e){if(!n)throw Error(p(318));if(!(n=null!==(n=t.memoizedState)?n.dehydrated:null))throw Error(p(317));n[nw]=t}else iq(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return s9(t),null}if(null!==iR&&(oy(iR),iR=null),0!=(128&t.flags))return t.lanes=r,t;return n=null!==n,r=!1,null===e?iW(t):r=null!==e.memoizedState,n&&!r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&i9.current)?0===a0&&(a0=3):oA())),null!==t.updateQueue&&(t.flags|=4),s9(t),null;case 4:return i6(),s(e,t),null===e&&nn(t.stateNode.containerInfo),s9(t),null;case 10:return ie(t.type._context),s9(t),null;case 19:if(nR(i9),null===(l=t.memoizedState))return s9(t),null;if(n=0!=(128&t.flags),null===(c=l.rendering)){if(n)s5(l,!1);else{if(0!==a0||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=se(e))){for(t.flags|=128,s5(l,!1),null!==(n=c.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)l=r,e=n,l.flags&=14680066,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return n$(i9,1&i9.current|2),t.child}e=e.sibling}null!==l.tail&&eZ()>a5&&(t.flags|=128,n=!0,s5(l,!1),t.lanes=4194304)}}else{if(!n){if(null!==(e=se(c))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),s5(l,!0),null===l.tail&&"hidden"===l.tailMode&&!c.alternate&&!iM)return s9(t),null}else 2*eZ()-l.renderingStartTime>a5&&1073741824!==r&&(t.flags|=128,n=!0,s5(l,!1),t.lanes=4194304)}l.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=l.last)?r.sibling=c:t.child=c,l.last=c)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=eZ(),t.sibling=null,r=i9.current,n$(i9,n?1&r|2:1&r),t;return s9(t),null;case 22:case 23:return ob(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&aQ)&&(s9(t),6&t.subtreeFlags&&(t.flags|=8192)):s9(t),null;case 24:case 25:return null}throw Error(p(156,t.tag))}(r,t,aQ))){aX=r;return}}else{if(null!==(r=function(e,t){switch(iB(t),t.tag){case 1:return nq(t.type)&&nK(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return i6(),nR(nz),nR(nV),sr(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return i5(t),null;case 13:if(nR(i9),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(p(340));iq()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return nR(i9),null;case 4:return i6(),null;case 10:return ie(t.type._context),null;case 22:case 23:return ob(),null;default:return null}}(r,t))){r.flags&=32767,aX=r;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{a0=6,aX=null;return}}if(null!==(t=t.sibling)){aX=t;return}aX=t=e}while(null!==t);0===a0&&(a0=5)}function oF(e,t){var r=tl,n=aK.transition;try{aK.transition=null,tl=1,function(e,t,r){do ok();while(null!==on);if(0!=(6&aJ))throw Error(p(327));var n=e.finishedWork,i=e.finishedLanes;if(null===n)return;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(p(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(!function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-e5(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}(e,s),e===aG&&(aX=aG=null,aY=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||or||(or=!0,function(e,t){eG(e,t)}(e3,function(){return ok(),null})),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=aK.transition,aK.transition=null;var a,o,u,l=tl;tl=1;var c=aJ;aJ|=4,aq.current=null,!function(e,t){if(rR(e=rM())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i,s=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break t}var o=0,u=-1,l=-1,c=0,d=0,h=e,f=null;r:for(;;){for(;h!==r||0!==s&&3!==h.nodeType||(u=o+s),h!==a||0!==n&&3!==h.nodeType||(l=o+n),3===h.nodeType&&(o+=h.nodeValue.length),null!==(i=h.firstChild);){;f=h,h=i}for(;;){if(h===e)break r;if(f===r&&++c===s&&(u=o),f===a&&++d===n&&(l=o),null!==(i=h.nextSibling))break;f=(h=f).parentNode}h=i}r=-1===u||-1===l?null:{start:u,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nm={focusedElem:e,selectionRange:r},aT=t;null!==aT;)if(e=(t=aT).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,aT=e;else for(;null!==aT;){t=aT;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,g=m.memoizedState,D=t.stateNode,v=D.getSnapshotBeforeUpdate(t.elementType===t.type?y:n8(t.type,y),g);D.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;if(1===x.nodeType)x.textContent="";else if(9===x.nodeType){var b=x.body;null!=b&&(b.textContent="")}break;default:throw Error(p(163))}}catch(e){oO(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aT=e;break}aT=t.return}m=ak,ak=!1}(e,n),!function(e,t){for(aT=t;null!==aT;){var r=(t=aT).deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{aM(e,i,t);var s=i.alternate;null!==s&&(s.return=null),i.return=null}catch(e){oO(i,t,e)}}if(r=t.child,0!=(12854&t.subtreeFlags)&&null!==r)r.return=t,aT=r;else for(;null!==aT;){t=aT;try{var a=t.flags;if(32&a&&em(t.stateNode,""),512&a){var o=t.alternate;if(null!==o){var u=o.ref;null!==u&&("function"==typeof u?u(null):u.current=null)}}if(8192&a)switch(t.tag){case 13:if(null!==t.memoizedState){var l=t.alternate;(null===l||null===l.memoizedState)&&(a7=eZ())}break;case 22:var c=null!==t.memoizedState,p=t.alternate,d=null!==p&&null!==p.memoizedState;r=t;t:{n=r,i=c;for(var h=null,f=n;;){if(5===f.tag){if(null===h){h=f;var m=f.stateNode;if(i){var y=m.style;"function"==typeof y.setProperty?y.setProperty("display","none","important"):y.display="none"}else{var g=f.stateNode,D=f.memoizedProps.style,v=null!=D&&D.hasOwnProperty("display")?D.display:null;g.style.display=eD("display",v)}}}else if(6===f.tag)null===h&&(f.stateNode.nodeValue=i?"":f.memoizedProps);else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===n)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===n)break;for(;null===f.sibling;){if(null===f.return||f.return===n)break t;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}if(c&&!d&&0!=(1&r.mode)){aT=r;for(var x=r.child;null!==x;){for(r=aT=x;null!==aT;){var b=(n=aT).child;switch(n.tag){case 0:case 11:case 14:case 15:aN(4,n,n.return);break;case 1:aP(n,n.return);var E=n.stateNode;if("function"==typeof E.componentWillUnmount){var C=n.return;try{E.props=n.memoizedProps,E.state=n.memoizedState,E.componentWillUnmount()}catch(e){oO(n,C,e)}}break;case 5:aP(n,n.return);break;case 22:if(null!==n.memoizedState){aV(r);continue}}null!==b?(b.return=n,aT=b):aV(r)}x=x.sibling}}}switch(4102&a){case 2:a_(t),t.flags&=-3;break;case 6:a_(t),t.flags&=-3,aR(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,aR(t.alternate,t);break;case 4:aR(t.alternate,t)}}catch(e){oO(t,t.return,e)}if(null!==(r=t.sibling)){r.return=t.return,aT=r;break}aT=t.return}}}(e,n,i),!function(e){var t=rM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&function e(t,r){return!!t&&!!r&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(r.ownerDocument.documentElement,r)){if(null!==n&&rR(r)){if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=void 0===n.end?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=r_(r,s);var a=r_(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(nm),nm=null,e.current=n,a=n,o=e,u=i,aT=a,function e(t,r,n){for(var i=0!=(1&t.mode);null!==aT;){var s=aT,a=s.child;if(22===s.tag&&i){var o=null!==s.memoizedState||aS;if(!o){var u=s.alternate,l=null!==u&&null!==u.memoizedState||aA;u=aS;var c=aA;if(aS=o,(aA=l)&&!c)for(aT=s;null!==aT;)l=(o=aT).child,22===o.tag&&null!==o.memoizedState?az(s):null!==l?(l.return=o,aT=l):az(s);for(;null!==a;)aT=a,e(a,r,n),a=a.sibling;aT=s,aS=u,aA=c}aU(t,r,n)}else 0!=(8772&s.subtreeFlags)&&null!==a?(a.return=s,aT=a):aU(t,r,n)}}(a,o,u),eQ(),aJ=c,tl=l,aK.transition=s}else e.current=n;if(or&&(or=!1,on=e,oi=i),0===(s=e.pendingLanes)&&(ot=null),!function(e){if(e7&&"function"==typeof e7.onCommitFiberRoot)try{e7.onCommitFiberRoot(e6,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode,r),oh(e,eZ()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r(t[n]);if(a9)throw a9=!1,e=oe,oe=null,e;0!=(1&oi)&&0!==e.tag&&ok(),0!=(1&(s=e.pendingLanes))?e===oa?os++:(os=0,oa=e):os=0,n2()}(e,t,r)}finally{aK.transition=n,tl=r}return null}function ok(){if(null!==on){var e=tc(oi),t=aK.transition,r=tl;try{if(aK.transition=null,tl=16>e?16:e,null===on)var n=!1;else{if(e=on,on=null,oi=0,0!=(6&aJ))throw Error(p(331));var i=aJ;for(aJ|=4,aT=e.current;null!==aT;){var s=aT,a=s.child;if(0!=(16&aT.flags)){var o=s.deletions;if(null!==o){for(var u=0;u<o.length;u++){var l=o[u];for(aT=l;null!==aT;){var c=aT;switch(c.tag){case 0:case 11:case 15:aN(8,c,s)}var d=c.child;if(null!==d)d.return=c,aT=d;else for(;null!==aT;){var h=(c=aT).sibling,f=c.return;if(!function e(t){var r=t.alternate;null!==r&&(t.alternate=null,e(r)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(r=t.stateNode)&&(delete r[nw],delete r[nT],delete r[nF],delete r[nk],delete r[nN]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(c),c===l){aT=null;break}if(null!==h){h.return=f,aT=h;break}aT=f}}}var m=s.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}aT=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,aT=a;else for(;null!==aT;){if(s=aT,0!=(2048&s.flags))switch(s.tag){case 0:case 11:case 15:aN(9,s,s.return)}var D=s.sibling;if(null!==D){D.return=s.return,aT=D;break}aT=s.return}}var v=e.current;for(aT=v;null!==aT;){var x=(a=aT).child;if(0!=(2064&a.subtreeFlags)&&null!==x)x.return=a,aT=x;else for(a=v;null!==aT;){if(o=aT,0!=(2048&o.flags))try{switch(o.tag){case 0:case 11:case 15:aO(9,o)}}catch(e){oO(o,o.return,e)}if(o===a){aT=null;break}var b=o.sibling;if(null!==b){b.return=o.return,aT=b;break}aT=o.return}}if(aJ=i,n2(),e7&&"function"==typeof e7.onPostCommitFiberRoot)try{e7.onPostCommitFiberRoot(e6,e)}catch(e){}n=!0}return n}finally{tl=r,aK.transition=t}}return!1}function oN(e,t,r){t=s3(e,t=s0(r,t),1),ic(e,t),t=ol(),null!==(e=od(e,1))&&(to(e,1,t),oh(e,t))}function oO(e,t,r){if(3===e.tag)oN(e,e,r);else for(;null!==t;){if(3===t.tag){oN(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===ot||!ot.has(n))){e=s8(t,e=s0(r,e),1),ic(t,e),e=ol(),null!==(t=od(t,1))&&(to(t,1,e),oh(t,e));break}}t=t.return}}function oI(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ol(),e.pingedLanes|=e.suspendedLanes&r,aG===e&&(aY&r)===r&&(4===a0||3===a0&&(130023424&aY)===aY&&500>eZ()-a7?oE(e,0):a8|=r),oh(e,t)}function oj(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tr,0==(130023424&(tr<<=1))&&(tr=4194304)));var r=ol();null!==(e=od(e,t))&&(to(e,t,r),oh(e,r))}function oB(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),oj(e,r)}function oL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(p(314))}null!==n&&n.delete(t),oj(e,r)}function o_(e,t){return eG(e,t)}function oM(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oR(e,t,r,n){return new oM(e,t,r,n)}function o$(e){return!(!(e=e.prototype)||!e.isReactComponent)}u=function(e,t,r){if(null!==e){if(e.memoizedProps!==t.pendingProps||nz.current)at=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return at=!1,function(e,t,r){switch(t.tag){case 3:ap(t),iq();break;case 5:i7(t);break;case 1:nq(t.type)&&nX(t);break;case 4:i4(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;n$(n4,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState)){if(null!==n.dehydrated)return n$(i9,1&i9.current),t.flags|=128,null;if(0!=(r&t.child.childLanes))return am(e,t,r);return n$(i9,1&i9.current),null!==(e=aC(e,t,r))?e.sibling:null}n$(i9,1&i9.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return aE(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),n$(i9,i9.current),!n)return null;break;case 22:case 23:return t.lanes=0,aa(e,t,r)}return aC(e,t,r)}(e,t,r);at=0!=(131072&e.flags)}}else at=!1,iM&&0!=(1048576&t.flags)&&iI(t,iw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=nW(t,nV.current);ir(t,r),i=sm(null,t,n,e,i,r);var s=sy();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nq(n)?(s=!0,nX(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,io(t),i.updater=iD,t.stateNode=i,i._reactInternals=t,iE(t,n,e,r),t=ac(null,t,n,!0,s,r)):(t.tag=0,iM&&s&&ij(t),ar(null,t,i,r),t=t.child),t;case 16:n=t.elementType;t:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return o$(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===_)return 14}return 2}(n),e=n8(n,e),i){case 0:t=au(null,t,n,e,r);break t;case 1:t=al(null,t,n,e,r);break t;case 11:t=an(null,t,n,e,r);break t;case 14:t=ai(null,t,n,n8(n.type,e),r);break t}throw Error(p(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:n8(n,i),au(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:n8(n,i),al(e,t,n,i,r);case 3:t:{if(ap(t),null===e)throw Error(p(387));n=t.pendingProps,i=(s=t.memoizedState).element,iu(e,t),ih(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated){if(s={element:n,isDehydrated:!1,cache:a.cache,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=ad(e,t,n,r,i=Error(p(423)));break t}if(n!==i){t=ad(e,t,n,r,i=Error(p(424)));break t}else for(i_=nC(t.stateNode.containerInfo.firstChild),iL=t,iM=!0,iR=null,r=iZ(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(iq(),n===i){t=aC(e,t,r);break t}ar(e,t,n,r)}t=t.child}return t;case 5:return i7(t),null===e&&iz(t),n=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,a=i.children,ny(n,i)?a=null:null!==s&&ny(n,s)&&(t.flags|=32),ao(e,t),ar(e,t,a,r),t.child;case 6:return null===e&&iz(t),null;case 13:return am(e,t,r);case 4:return i4(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=iQ(t,null,n,r):ar(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:n8(n,i),an(e,t,n,i,r);case 7:return ar(e,t,t.pendingProps,r),t.child;case 8:case 12:return ar(e,t,t.pendingProps.children,r),t.child;case 10:t:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,n$(n4,n._currentValue),n._currentValue=a,null!==s){if(rj(s.value,a)){if(s.children===i.children&&!nz.current){t=aC(e,t,r);break t}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var o=s.dependencies;if(null!==o){a=s.child;for(var u=o.firstContext;null!==u;){if(u.context===n){if(1===s.tag){(u=il(-1,r&-r)).tag=2;var l=s.updateQueue;if(null!==l){var c=(l=l.shared).pending;null===c?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),it(s.return,r,t),o.lanes|=r;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(p(341));a.lanes|=r,null!==(o=a.alternate)&&(o.lanes|=r),it(a,r,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}}ar(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ir(t,r),n=n(i=ii(i)),t.flags|=1,ar(e,t,n,r),t.child;case 14:return i=n8(n=t.type,t.pendingProps),i=n8(n.type,i),ai(e,t,n,i,r);case 15:return as(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:n8(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,nq(n)?(e=!0,nX(t)):e=!1,ir(t,r),ix(t,n,i),iE(t,n,i,r),ac(null,t,n,!0,e,r);case 19:return aE(e,t,r);case 22:return aa(e,t,r)}throw Error(p(156,t.tag))};function oU(e,t){var r=e.alternate;return null===r?((r=oR(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function oV(e,t,r,n,i,s){var a=2;if(n=e,"function"==typeof e)o$(e)&&(a=1);else if("string"==typeof e)a=5;else t:switch(e){case F:return oz(r.children,i,s,t);case k:a=8,i|=8;break;case N:return(e=oR(12,r,t,2|i)).elementType=N,e.lanes=s,e;case B:return(e=oR(13,r,t,i)).elementType=B,e.lanes=s,e;case L:return(e=oR(19,r,t,i)).elementType=L,e.lanes=s,e;case R:return oH(r,i,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break t;case I:a=9;break t;case j:a=11;break t;case _:a=14;break t;case M:a=16,n=null;break t}throw Error(p(130,null==e?e:typeof e,""))}return(t=oR(a,r,t,i)).elementType=e,t.type=n,t.lanes=s,t}function oz(e,t,r,n){return(e=oR(7,e,n,t)).lanes=r,e}function oH(e,t,r,n){return(e=oR(22,e,n,t)).elementType=R,e.lanes=r,e.stateNode={},e}function oW(e,t,r){return(e=oR(6,e,null,t)).lanes=r,e}function oq(e,t,r){return(t=oR(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oK(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ta(0),this.expirationTimes=ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ta(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function oJ(e,t,r,n,i,s,a,o,u){return e=new oK(e,t,r,o,u),1===t?(t=1,!0===s&&(t|=8)):t=0,s=oR(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null},io(s),e}function oG(e){if(!e)return nU;e=e._reactInternals;t:{if(eW(e)!==e||1!==e.tag)throw Error(p(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(nq(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(null!==t);throw Error(p(171))}if(1===e.tag){var r=e.type;if(nq(r))return nG(e,r,t)}return t}function oX(e,t,r,n,i,s,a,o,u){return(e=oJ(r,n,!0,e,i,s,a,o,u)).context=oG(null),r=e.current,n=ol(),(s=il(n,i=oc(r))).callback=null!=t?t:null,ic(r,s),e.current.lanes=i,to(e,i,n),oh(e,n),e}function oY(e,t,r,n){var i=t.current,s=ol(),a=oc(i);return r=oG(r),null===t.context?t.context=r:t.pendingContext=r,(t=il(s,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),ic(i,t),null!==(e=op(i,a,s))&&ip(e,i,a),a}function oQ(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function oZ(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function o0(e,t){oZ(e,t),(e=e.alternate)&&oZ(e,t)}var o1="function"==typeof reportError?reportError:function(e){console.error(e)};function o2(e){this._internalRoot=e}function o3(e){this._internalRoot=e}function o8(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o4(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function o6(){}o3.prototype.render=o2.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(p(409));oY(e,t,null,null)},o3.prototype.unmount=o2.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ox(function(){oY(null,e,null,null)}),t[nP]=null}},o3.prototype.unstable_scheduleHydration=function(e){if(e){var t=tf();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tC.length&&0!==t&&t<tC[r].priority;r++);tC.splice(r,0,e),0===r&&tT(e)}};function o7(e,t,r,n,i){var s=r._reactRootContainer;if(s){var a=s;if("function"==typeof i){var o=i;i=function(){var e=oQ(a);o.call(e)}}oY(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"==typeof n){var s=n;n=function(){var e=oQ(a);s.call(e)}}var a=oX(t,n,e,0,null,!1,!1,"",o6);return e._reactRootContainer=a,e[nP]=a.current,nn(8===e.nodeType?e.parentNode:e),ox(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var o=n;n=function(){var e=oQ(u);o.call(e)}}var u=oJ(e,0,!1,null,null,!1,!1,"",o6);return e._reactRootContainer=u,e[nP]=u.current,nn(8===e.nodeType?e.parentNode:e),ox(function(){oY(t,u,r,n)}),u}(r,t,e,i,n);return oQ(a)}tp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=tn(t.pendingLanes);0!==r&&(tu(t,1|r),oh(t,eZ()),0==(6&aJ)&&(a5=eZ()+500,n2()))}break;case 13:var n=ol();ox(function(){return op(e,1,n)}),o0(e,1)}},td=function(e){13===e.tag&&(op(e,134217728,ol()),o0(e,134217728))},th=function(e){if(13===e.tag){var t=ol(),r=oc(e);op(e,r,t),o0(e,r)}},tf=function(){return tl},tm=function(e,t){var r=tl;try{return tl=e,t()}finally{tl=r}},eA=function(e,t,r){switch(t){case"input":if(et(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=nB(n);if(!i)throw Error(p(90));X(n),et(n,i)}}}break;case"textarea":eu(e,r);break;case"select":null!=(t=r.value)&&es(e,!!r.multiple,t,!1)}},eN=ov,eO=ox;var o5={findFiberByHostInstance:nO,bundleType:0,version:"18.0.0-fc46dba67-20220329",rendererPackageName:"react-dom"},o9={bundleType:o5.bundleType,version:o5.version,rendererPackageName:o5.rendererPackageName,rendererConfig:o5.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eJ(e))?null:e.stateNode},findFiberByHostInstance:o5.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ue=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ue.isDisabled&&ue.supportsFiber)try{e6=ue.inject(o9),e7=ue}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[nI,nj,nB,eF,ek,ov]},t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!o8(t))throw Error(p(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:P,key:null==n?null:""+n,children:e,containerInfo:t,implementation:null}}(e,t,null,r)},t.createRoot=function(e,t){if(!o8(e))throw Error(p(299));var r=!1,n="",i=o1;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=oJ(e,1,!1,null,null,r,!1,n,i),e[nP]=t.current,nn(8===e.nodeType?e.parentNode:e),new o2(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(p(188));throw Error(p(268,e=Object.keys(e).join(",")))}return e=null===(e=eJ(t))?null:e.stateNode},t.flushSync=function(e){return ox(e)},t.hydrate=function(e,t,r){if(!o4(t))throw Error(p(200));return o7(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!o8(e))throw Error(p(405));var n=null!=r&&r.hydratedSources||null,i=!1,s="",a=o1;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(s=r.identifierPrefix),void 0!==r.onRecoverableError&&(a=r.onRecoverableError)),t=oX(t,null,e,1,null!=r?r:null,i,!1,s,a),e[nP]=t.current,nn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new o3(t)},t.render=function(e,t,r){if(!o4(t))throw Error(p(200));return o7(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!o4(e))throw Error(p(40));return!!e._reactRootContainer&&(ox(function(){o7(null,null,e,!1,function(){e._reactRootContainer=null,e[nP]=null})}),!0)},t.unstable_batchedUpdates=ov,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!o4(r))throw Error(p(200));if(null==e||void 0===e._reactInternals)throw Error(p(38));return o7(e,t,r,!1,n)},t.version="18.0.0-fc46dba67-20220329"},20745:function(e,t,r){"use strict";var n=r("73935");t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},73935:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r("64448")},29697:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r("13714"),i=r("83660"),s=r("41543"),a=r("65291"),o=r("94693"),u=r("67294"),l=r.n(u),c=r("96630"),p=r("59391"),d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},h=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),i=n[0],s=n[1];t.removeClasses(i,"exit"),t.addClass(i,s?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),i=n[0],s=n[1];t.addClass(i,s?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),i=n[0],s=n[1]?"appear":"enter";t.removeClasses(i,s),t.addClass(i,s,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?(n&&r?r+"-":"")+e:r[e],s=n?i+"-active":r[e+"Active"],a=n?i+"-done":r[e+"Done"];return{baseClassName:i,activeClassName:s,doneClassName:a}},t}(0,s.default)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n,i,s=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;if("appear"===t&&"done"===r&&o&&(s+=" "+o),"active"===r&&e&&(0,p.forceReflow)(e),s){;this.appliedClasses[t][r]=s,n=e,i=s,n&&i&&i.split(" ").forEach(function(e){return(0,a.default)(n,e)})}},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,i=r.active,s=r.done;this.appliedClasses[t]={},n&&d(e,n),i&&d(e,i),s&&d(e,s)},r.render=function(){var e=this.props,t=(e.classNames,(0,i.default)(e,["classNames"]));return l().createElement(c.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l().Component);h.defaultProps={classNames:""},h.propTypes={};var f=h},96630:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r("83660"),i=r("41543"),s=r("67294"),a=r.n(s),o=r("73935"),u=r.n(o),l=r("6035"),c=r("220"),p=r("59391"),d="unmounted",h="exited",f="entering",m="entered",y="exiting",g=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,s=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(i=h,n.appearStatus=f):i=m:i=t.unmountOnExit||t.mountOnEnter?d:h,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:h}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==m&&(t=f):(r===f||r===m)&&(t=y)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);r&&(0,p.forceReflow)(r)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:d})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[u().findDOMNode(this),n],s=i[0],a=i[1],o=this.getTimeouts(),c=n?o.appear:o.enter;if(!e&&!r||l.default.disabled){this.safeSetState({status:m},function(){t.props.onEntered(s)});return}this.props.onEnter(s,a),this.safeSetState({status:f},function(){t.props.onEntering(s,a),t.onTransitionEnd(c,function(){t.safeSetState({status:m},function(){t.props.onEntered(s,a)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:u().findDOMNode(this);if(!t||l.default.disabled){this.safeSetState({status:h},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:y},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:h},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(c.default.Provider,{value:null},"function"==typeof r?r(e,i):a().cloneElement(a().Children.only(r),i))},t}(a().Component);function D(){}g.contextType=c.default,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:D,onEntering:D,onEntered:D,onExit:D,onExiting:D,onExited:D},g.UNMOUNTED=d,g.EXITED=h,g.ENTERING=f,g.ENTERED=m,g.EXITING=y;var v=g},74004:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r("83660"),i=r("13714"),s=r("72095"),a=r("41543"),o=r("67294"),u=r.n(o),l=r("220"),c=r("97803"),p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind((0,s.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,a.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);!(e.key in r)&&(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.default)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.default)(e,["component","childFactory"]),s=this.state.contextValue,a=p(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?u().createElement(l.default.Provider,{value:s},a):u().createElement(l.default.Provider,{value:s},u().createElement(t,i,a))},t}(u().Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var h=d},220:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("67294"),i=r.n(n)().createContext(null)},6035:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={disabled:!1}},99240:function(e,t,r){"use strict";r.r(t),r.d(t,{CSSTransition:function(){return n.default},TransitionGroup:function(){return i.default}});var n=r("29697"),i=r("74004")},97803:function(e,t,r){"use strict";r.r(t),r.d(t,{getChildMapping:function(){return i},getInitialChildMapping:function(){return a},getNextChildMapping:function(){return o}});var n=r("67294");function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){var i;r[e.key]=(i=e,t&&(0,n.isValidElement)(i)?t(i):i)}),r}function s(e,t,r){return null!=r[t]?r[t]:e.props[t]}function a(e,t){return i(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:s(r,"appear",e),enter:s(r,"enter",e),exit:s(r,"exit",e)})})}function o(e,t,r){var a=i(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),s=[];for(var a in e)a in t?s.length&&(i[a]=s,s=[]):s.push(a);var o={};for(var u in t){if(i[u])for(n=0;n<i[u].length;n++){var l=i[u][n];o[i[u][n]]=r(l)}o[u]=r(u)}for(n=0;n<s.length;n++)o[s[n]]=r(s[n]);return o}(t,a);return Object.keys(o).forEach(function(i){var u=o[i];if((0,n.isValidElement)(u)){var l=i in t,c=i in a,p=t[i],d=(0,n.isValidElement)(p)&&!p.props.in;c&&(!l||d)?o[i]=(0,n.cloneElement)(u,{onExited:r.bind(null,u),in:!0,exit:s(u,"exit",e),enter:s(u,"enter",e)}):c||!l||d?c&&l&&(0,n.isValidElement)(p)&&(o[i]=(0,n.cloneElement)(u,{onExited:r.bind(null,u),in:p.props.in,exit:s(u,"exit",e),enter:s(u,"enter",e)})):o[i]=(0,n.cloneElement)(u,{in:!1})}}),o}},59391:function(e,t,r){"use strict";r.r(t),r.d(t,{forceReflow:function(){return n}});var n=function(e){return e.scrollTop}},75251:function(e,t,r){"use strict";var n=r("67294"),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,s={},l=null,c=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!u.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:c,props:s,_owner:o.current}}t.Fragment=s,t.jsx=l,t.jsxs=l},72408:function(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||f}function D(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=g.prototype;var x=v.prototype=new D;x.constructor=v,m(x,g.prototype),x.isPureReactComponent=!0;var b=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var i,s={},a=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(s[i]=t[i]);var u=arguments.length-2;if(1===u)s.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===s[i]&&(s[i]=u[i]);return{$$typeof:r,type:e,key:a,ref:o,props:s,_owner:C.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var T=/\/+/g;function P(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function F(e,t,i){if(null==e)return e;var s=[],a=0;return!function e(t,i,s,a,o){var u,l,c,p=typeof t;("undefined"===p||"boolean"===p)&&(t=null);var d=!1;if(null===t)d=!0;else switch(p){case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case r:case n:d=!0}}if(d){;return o=o(d=t),t=""===a?"."+P(d,0):a,b(o)?(s="",null!=t&&(s=t.replace(T,"$&/")+"/"),e(o,i,s,"",function(e){return e})):null!=o&&(w(o)&&(u=o,l=s+(!o.key||d&&d.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+t,o={$$typeof:r,type:u.type,key:l,ref:u.ref,props:u.props,_owner:u._owner}),i.push(o)),1}if(d=0,a=""===a?".":a+":",b(t))for(var f=0;f<t.length;f++){var m=a+P(p=t[f],f);d+=e(p,i,s,m,o)}else{;if("function"==typeof(m=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=h&&c[h]||c["@@iterator"])?c:null))for(t=m.call(t),f=0;!(p=t.next()).done;)m=a+P(p=p.value,f++),d+=e(p,i,s,m,o);else if("object"===p)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,s,"","",function(e){return t.call(i,e,a++)}),s}function k(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},O={transition:null};t.Children={map:F,forEach:function(e,t,r){F(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=s,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:C},t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),s=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=C.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)E.call(t,l)&&!S.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:r,type:e.type,key:s,ref:a,props:i,_owner:o}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=w,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,r){return N.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,r){return N.current.useReducer(e,t,r)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return N.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return N.current.useTransition()},t.version="18.0.0-fc46dba67-20220329"},67294:function(e,t,r){"use strict";e.exports=r("72408")},85893:function(e,t,r){"use strict";e.exports=r("75251")},60053:function(e,t){"use strict";function r(e,t){var r=e.length;for(e.push(t);0<r;){var n=r-1>>>1,i=e[n];if(0<s(i,t))e[n]=t,e[r]=i,r=n;else break}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;for(var n=0,i=e.length,a=i>>>1;n<a;){var o=2*(n+1)-1,u=e[o],l=o+1,c=e[l];if(0>s(u,r))l<i&&0>s(c,u)?(e[n]=c,e[l]=r,n=l):(e[n]=u,e[o]=r,n=o);else if(l<i&&0>s(c,r))e[n]=c,e[l]=r,n=l;else break}}return t}function s(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a,o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var c=[],p=[],d=1,h=null,f=3,m=!1,y=!1,g=!1,D="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=n(p);null!==t;){if(null===t.callback)i(p);else if(t.startTime<=e)i(p),t.sortIndex=t.expirationTime,r(c,t);else break;t=n(p)}}function E(e){if(g=!1,b(e),!y){if(null!==n(c))y=!0,I(C);else{var t=n(p);null!==t&&j(E,t.startTime-e)}}}function C(e,r){y=!1,g&&(g=!1,v(w),w=-1),m=!0;var s=f;try{for(b(r),h=n(c);null!==h&&(!(h.expirationTime>r)||e&&!F());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var o=a(h.expirationTime<=r);r=t.unstable_now(),"function"==typeof o?h.callback=o:h===n(c)&&i(c),b(r)}else i(c);h=n(c)}if(null!==h)var u=!0;else{var l=n(p);null!==l&&j(E,l.startTime-r),u=!1}return u}finally{h=null,f=s,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,A=null,w=-1,T=5,P=-1;function F(){return!(t.unstable_now()-P<T)}function k(){if(null!==A){var e=t.unstable_now();P=e;var r=!0;try{r=A(!0,e)}finally{r?a():(S=!1,A=null)}}else S=!1}if("function"==typeof x)a=function(){x(k)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,O=N.port2;N.port1.onmessage=k,a=function(){O.postMessage(null)}}else a=function(){D(k,0)};function I(e){A=e,S||(S=!0,a())}function j(e,r){w=D(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){y||m||(y=!0,I(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch(s="object"==typeof s&&null!==s?"number"==typeof(s=s.delay)&&0<s?a+s:a:a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=s+o,e={id:d++,callback:i,priorityLevel:e,startTime:s,expirationTime:o,sortIndex:-1},s>a?(e.sortIndex=s,r(p,e),null===n(c)&&e===n(p)&&(g?(v(w),w=-1):g=!0,j(E,s-a))):(e.sortIndex=o,r(c,e),y||m||(y=!0,I(C))),e},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},63840:function(e,t,r){"use strict";e.exports=r("60053")},98545:function(e,t,r){"use strict";var n,i,s,a;r.r(t),r.d(t,{ECompareResultType:function(){return i}}),(s=n||(n={})).Rspack="rspack",s.Webpack="webpack",(a=i||(i={})).Same="same",a.Missing="missing",a.OnlyDist="only-dist",a.OnlySource="only-source",a.Different="different"},32260:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffEditor:function(){return c}});var n=r("85893");r("67294");var i=r("77392"),s=r("29691"),a=r.n(s),o=r("98483"),u=r.n(o);function l(e){var t=e.split("\n").filter(e=>e.trim()).join("\n");return a().format(t,{parser:"babel-ts",plugins:[u()]})}var c=e=>{var t=e.source,r=e.dist,s=e.format;return(0,n.jsx)(i.DiffEditor,{height:"100vh",original:s?l(t):t,modified:s?l(r):r,language:"typescript",options:{contextmenu:!1,readOnly:!0}})}},35810:function(e,t,r){"use strict";r.r(t),r.d(t,{TreeView:function(){return o}});var n=r("85893"),i=r("67294"),s=r.n(i),a=r("87297"),o=s().memo(e=>{var t=e.treeData,r=e.current,i=e.onChange;return(0,n.jsx)(a.Tree,{autoExpandParent:!0,selectedKeys:[r],treeData:t,onSelect:e=>i(e[0])})})},41808:function(e,t,r){"use strict";r.r(t);var n=r("85893"),i=r("67294"),s=r.n(i),a=r("20745"),o=r("46177");r("70151");var u=document.getElementById("root");u&&(0,a.createRoot)(u).render((0,n.jsx)(s().StrictMode,{children:(0,n.jsx)(o.DiffReportPage,{})}))},46177:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffReportPage:function(){return h}});var n=r("45583"),i=r("85893"),s=r("67294"),a=r("87297"),o=r("98545"),u=r("35810"),l=r("32260"),c=r("85665"),p=a.Layout.Sider,d=a.Layout.Content,h=()=>{var e=(0,n._)((0,s.useState)({root:"",data:[]}),2),t=e[0],r=e[1],h=(0,n._)((0,s.useState)([]),2),f=h[0],m=h[1],y=(0,n._)((0,s.useState)(),2),g=y[0],D=y[1];(0,s.useEffect)(()=>{try{var e=window.$$diff_detail$$;if(!e)return;m([{key:"summary",title:"Summary"},...(0,c.generateTreeData)(e.root,e.data)]);var t={name:"summary",source:e.data.filter(e=>[o.ECompareResultType.OnlySource,o.ECompareResultType.Same,o.ECompareResultType.Different].includes(e.type)).map(e=>e.name).sort().join("\n"),dist:e.data.filter(e=>[o.ECompareResultType.OnlyDist,o.ECompareResultType.Same,o.ECompareResultType.Different].includes(e.type)).map(e=>e.name).sort().join("\n"),type:e.data.every(e=>[o.ECompareResultType.Different,o.ECompareResultType.Same].includes(e.type))?o.ECompareResultType.Same:o.ECompareResultType.Different};e.data.unshift(t),r(e),D(t)}catch(e){console.error(e)}},[]);var v=(0,s.useCallback)(e=>{var r=t.data.find(t=>t.name===e);r&&D(r)},[t]);return(0,i.jsxs)(a.Layout,{hasSider:!0,children:[(0,i.jsx)(p,{width:400,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,backgroundColor:"#fff"},children:t.data.length>0&&g&&(0,i.jsx)(u.TreeView,{onChange:v,treeData:f,current:g.name})}),(0,i.jsx)(a.Layout,{style:{marginLeft:400,height:"100vh"},children:(0,i.jsx)(d,{children:g&&(0,i.jsx)(l.DiffEditor,{format:"summary"!==g.name,source:g.source||"",dist:g.dist||""})})})]})}},85665:function(e,t,r){"use strict";r.r(t),r.d(t,{generateTreeData:function(){return s}});var n=r("98545"),i={[n.ECompareResultType.Same]:"#00B42A",[n.ECompareResultType.Missing]:"#86909C",[n.ECompareResultType.OnlyDist]:"#CB272D",[n.ECompareResultType.OnlySource]:"#CB272D",[n.ECompareResultType.Different]:"#F77234"},s=(e,t)=>{var r=[],n=new Map,s=new Map,a=!0,o=!1,u=void 0;try{for(var l,c=t[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var p=l.value,d=p.name.replace(e,"");d.startsWith("/")&&(d=d.slice(1));for(var h=d.split("/"),f=0;f<h.length;f++){var m=0===f?"":h.slice(0,f).join("/"),y=m&&s.get(m);if(f===h.length-1){var g={key:p.name,title:h[f],data:p,style:{color:i[p.type]}};y&&(n.has(g.key)?(y.children[n.get(g.key)].data.wasted=!0,y.children[n.get(g.key)]=g):(n.set(g.key,y.children.length),y.children.push(g)))}else{var D=h.slice(0,f+1).join("/");if(!s.has(D)){var v={key:D,title:h[f],children:[]};s.set(D,v),y?y.children.push(v):r.push(v)}}}}}catch(e){o=!0,u=e}finally{try{!a&&null!=c.return&&c.return()}finally{if(o)throw u}}return r}},70151:function(e){},72095:function(e,t,r){"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.r(t),r.d(t,{default:function(){return n}})},3214:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("43757");function i(e,t,r){return(t=(0,n.default)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},13714:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.r(t),r.d(t,{default:function(){return n}})},41543:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("11503");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}},83660:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}r.r(t),r.d(t,{default:function(){return n}})},11503:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,{default:function(){return n}})},4557:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("95300");function i(e,t){if("object"!==(0,n.default)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==(0,n.default)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},43757:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("95300"),i=r("4557");function s(e){var t=(0,i.default)(e,"string");return"symbol"===(0,n.default)(t)?t:String(t)}},95300:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.r(t),r.d(t,{default:function(){return n}})},93222:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{_array_like_to_array:function(){return n}})},61892:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.r(t),r.d(t,{_array_with_holes:function(){return n}})},84480:function(e,t,r){"use strict";function n(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s=[],a=!0,o=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(s.push(r.value),!t||s.length!==t);a=!0);}catch(e){o=!0,n=e}finally{try{!a&&null!=i.return&&i.return()}finally{if(o)throw n}}return s}}r.r(t),r.d(t,{_iterable_to_array_limit:function(){return n}})},62818:function(e,t,r){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.r(t),r.d(t,{_non_iterable_rest:function(){return n}})},45583:function(e,t,r){"use strict";r.r(t),r.d(t,{_:function(){return o}});var n=r("61892"),i=r("84480"),s=r("62818"),a=r("85677");function o(e,t){return(0,n._array_with_holes)(e)||(0,i._iterable_to_array_limit)(e,t)||(0,a._unsupported_iterable_to_array)(e,t)||(0,s._non_iterable_rest)()}},85677:function(e,t,r){"use strict";r.r(t),r.d(t,{_unsupported_iterable_to_array:function(){return i}});var n=r("93222");function i(e,t){if(e){if("string"==typeof e)return(0,n._array_like_to_array)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._array_like_to_array)(e,t)}}},77392:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffEditor:function(){return f}});var n=r("1202"),i=r("67294"),s={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},a={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},o=function({children:e}){return i.createElement("div",{style:a.container},e)},u=(0,i.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:a,className:u,wrapperProps:l}){return i.createElement("section",{style:{...s.wrapper,width:e,height:t},...l},!r&&i.createElement(o,null,n),i.createElement("div",{ref:a,style:{...s.fullWidth,...!r&&s.hide},className:u}))}),l=function(e){(0,i.useEffect)(e,[])},c=function(e,t,r=!0){let n=(0,i.useRef)(!0);(0,i.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function p(){}function d(e,t,r,n){return function(e,t){return e.editor.getModel(h(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?h(e,n):void 0)}(e,t,r,n)}function h(e,t){return e.Uri.parse(t)}var f=(0,i.memo)(function({original:e,modified:t,language:r,originalLanguage:s,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:h,keepCurrentOriginalModel:f=!1,keepCurrentModifiedModel:m=!1,theme:y="light",loading:g="Loading...",options:D={},height:v="100%",width:x="100%",className:b,wrapperProps:E={},beforeMount:C=p,onMount:S=p}){let[A,w]=(0,i.useState)(!1),[T,P]=(0,i.useState)(!0),F=(0,i.useRef)(null),k=(0,i.useRef)(null),N=(0,i.useRef)(null),O=(0,i.useRef)(S),I=(0,i.useRef)(C),j=(0,i.useRef)(!1);l(()=>{let e=n.default.init();return e.then(e=>(k.current=e)&&P(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>F.current?function(){let e=F.current?.getModel();f||e?.original?.dispose(),m||e?.modified?.dispose(),F.current?.dispose()}():e.cancel()}),c(()=>{if(F.current&&k.current){let t=F.current.getOriginalEditor(),n=d(k.current,e||"",s||r||"text",o||"");n!==t.getModel()&&t.setModel(n)}},[o],A),c(()=>{if(F.current&&k.current){let e=F.current.getModifiedEditor(),n=d(k.current,t||"",a||r||"text",h||"");n!==e.getModel()&&e.setModel(n)}},[h],A),c(()=>{let e=F.current.getModifiedEditor();e.getOption(k.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],A),c(()=>{F.current?.getModel()?.original.setValue(e||"")},[e],A),c(()=>{let{original:e,modified:t}=F.current.getModel();k.current.editor.setModelLanguage(e,s||r||"text"),k.current.editor.setModelLanguage(t,a||r||"text")},[r,s,a],A),c(()=>{k.current?.editor.setTheme(y)},[y],A),c(()=>{F.current?.updateOptions(D)},[D],A);let B=(0,i.useCallback)(()=>{if(!k.current)return;I.current(k.current);let n=d(k.current,e||"",s||r||"text",o||""),i=d(k.current,t||"",a||r||"text",h||"");F.current?.setModel({original:n,modified:i})},[r,t,a,e,s,o,h]),L=(0,i.useCallback)(()=>{!j.current&&N.current&&(F.current=k.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...D}),B(),k.current?.editor.setTheme(y),w(!0),j.current=!0)},[D,y,B]);return(0,i.useEffect)(()=>{A&&O.current(F.current,k.current)},[A]),(0,i.useEffect)(()=>{T||A||L()},[T,A,L]),i.createElement(u,{width:x,height:v,isEditorReady:A,loading:g,_ref:N,className:b,wrapperProps:E})}),m=function(e){let t=(0,i.useRef)();return(0,i.useEffect)(()=>{t.current=e},[e]),t.current},y=new Map;(0,i.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:s,language:a,path:o,theme:h="light",line:f,loading:g="Loading...",options:D={},overrideServices:v={},saveViewState:x=!0,keepCurrentModel:b=!1,width:E="100%",height:C="100%",className:S,wrapperProps:A={},beforeMount:w=p,onMount:T=p,onChange:P,onValidate:F=p}){let[k,N]=(0,i.useState)(!1),[O,I]=(0,i.useState)(!0),j=(0,i.useRef)(null),B=(0,i.useRef)(null),L=(0,i.useRef)(null),_=(0,i.useRef)(T),M=(0,i.useRef)(w),R=(0,i.useRef)(),$=(0,i.useRef)(s),U=m(o),V=(0,i.useRef)(!1),z=(0,i.useRef)(!1);l(()=>{let e=n.default.init();return e.then(e=>(j.current=e)&&I(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>B.current?function(){R.current?.dispose(),b?x&&y.set(o,B.current.saveViewState()):B.current.getModel()?.dispose(),B.current.dispose()}():e.cancel()}),c(()=>{let n=d(j.current,e||s||"",t||a||"",o||r||"");n!==B.current?.getModel()&&(x&&y.set(U,B.current?.saveViewState()),B.current?.setModel(n),x&&B.current?.restoreViewState(y.get(o)))},[o],k),c(()=>{B.current?.updateOptions(D)},[D],k),c(()=>{B.current&&void 0!==s&&(B.current.getOption(j.current.editor.EditorOption.readOnly)?B.current.setValue(s):s===B.current.getValue()||(z.current=!0,B.current.executeEdits("",[{range:B.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),B.current.pushUndoStop(),z.current=!1))},[s],k),c(()=>{let e=B.current?.getModel();e&&a&&j.current?.editor.setModelLanguage(e,a)},[a],k),c(()=>{void 0!==f&&B.current?.revealLine(f)},[f],k),c(()=>{j.current?.editor.setTheme(h)},[h],k);let H=(0,i.useCallback)(()=>{if(!(!L.current||!j.current)&&!V.current){M.current(j.current);let n=o||r,i=d(j.current,s||e||"",t||a||"",n||"");B.current=j.current?.editor.create(L.current,{model:i,automaticLayout:!0,...D},v),x&&B.current.restoreViewState(y.get(n)),j.current.editor.setTheme(h),void 0!==f&&B.current.revealLine(f),N(!0),V.current=!0}},[e,t,r,s,a,o,D,v,x,h,f]);return(0,i.useEffect)(()=>{k&&_.current(B.current,j.current)},[k]),(0,i.useEffect)(()=>{O||k||H()},[O,k,H]),$.current=s,(0,i.useEffect)(()=>{k&&P&&(R.current?.dispose(),R.current=B.current?.onDidChangeModelContent(e=>{z.current||P(B.current.getValue(),e)}))},[k,P]),(0,i.useEffect)(()=>{if(k){let e=j.current.editor.onDidChangeMarkers(e=>{let t=B.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=j.current.editor.getModelMarkers({resource:t});F?.(e)}});return()=>{e?.dispose()}}return()=>{}},[k,F]),i.createElement(u,{width:E,height:C,isEditorReady:k,loading:g,_ref:L,className:S,wrapperProps:A})})}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r("41808")}();
|