UNPKG

lingo3d-vanilla

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

1 lines 311 kB
(self.webpackChunklingo3d_vanilla=self.webpackChunklingo3d_vanilla||[]).push([[316],{9316:(e,t,s)=>{e.exports=function(){"use strict";var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e(((e,t)=>{var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||function(){return this}()||Function("return this")()})),r=e(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),i=e(((e,t)=>{var s=r();t.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),a=e(((e,t)=>{var s=r();t.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),n=e(((e,t)=>{var s=a(),r=Function.prototype.call;t.exports=s?r.bind(r):function(){return r.apply(r,arguments)}})),o=e((e=>{var t={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,r=s&&!t.call({1:2},1);e.f=r?function(e){var t=s(this,e);return!!t&&t.enumerable}:t})),h=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 s=a(),r=Function.prototype,i=r.bind,n=r.call,o=s&&i.bind(n,n);t.exports=s?function(e){return e&&o(e)}:function(e){return e&&function(){return n.apply(e,arguments)}}})),p=e(((e,t)=>{var s=l(),r=s({}.toString),i=s("".slice);t.exports=function(e){return i(r(e),8,-1)}})),c=e(((e,s)=>{var i=t(),a=l(),n=r(),o=p(),h=i.Object,c=a("".split);s.exports=n((function(){return!h("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?c(e,""):h(e)}:h})),u=e(((e,s)=>{var r=t().TypeError;s.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}})),d=e(((e,t)=>{var s=c(),r=u();t.exports=function(e){return s(r(e))}})),m=e(((e,t)=>{t.exports=function(e){return"function"==typeof e}})),f=e(((e,t)=>{var s=m();t.exports=function(e){return"object"==typeof e?null!==e:s(e)}})),y=e(((e,s)=>{var r=t(),i=m(),a=function(e){return i(e)?e:void 0};s.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}})),x=e(((e,t)=>{var s=l();t.exports=s({}.isPrototypeOf)})),g=e(((e,t)=>{var s=y();t.exports=s("navigator","userAgent")||""})),P=e(((e,s)=>{var r,i,a=t(),n=g(),o=a.process,h=a.Deno,l=o&&o.versions||h&&h.version,p=l&&l.v8;p&&(i=(r=p.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&n&&(!(r=n.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=n.match(/Chrome\/(\d+)/))&&(i=+r[1]),s.exports=i})),b=e(((e,t)=>{var s=P(),i=r();t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))})),T=e(((e,t)=>{var s=b();t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),A=e(((e,s)=>{var r=t(),i=y(),a=m(),n=x(),o=T(),h=r.Object;s.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return a(t)&&n(t.prototype,h(e))}})),E=e(((e,s)=>{var r=t().String;s.exports=function(e){try{return r(e)}catch{return"Object"}}})),w=e(((e,s)=>{var r=t(),i=m(),a=E(),n=r.TypeError;s.exports=function(e){if(i(e))return e;throw n(a(e)+" is not a function")}})),S=e(((e,t)=>{var s=w();t.exports=function(e,t){var r=e[t];return null==r?void 0:s(r)}})),v=e(((e,s)=>{var r=t(),i=n(),a=m(),o=f(),h=r.TypeError;s.exports=function(e,t){var s,r;if("string"===t&&a(s=e.toString)&&!o(r=i(s,e))||a(s=e.valueOf)&&!o(r=i(s,e))||"string"!==t&&a(s=e.toString)&&!o(r=i(s,e)))return r;throw h("Can't convert object to primitive value")}})),C=e(((e,t)=>{t.exports=!1})),N=e(((e,s)=>{var r=t(),i=Object.defineProperty;s.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch{r[e]=t}return t}})),I=e(((e,s)=>{var r=t(),i=N(),a="__core-js_shared__",n=r[a]||i(a,{});s.exports=n})),k=e(((e,t)=>{var s=C(),r=I();(t.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:s?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),L=e(((e,s)=>{var r=t(),i=u(),a=r.Object;s.exports=function(e){return a(i(e))}})),M=e(((e,t)=>{var s=l(),r=L(),i=s({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),O=e(((e,t)=>{var s=l(),r=0,i=Math.random(),a=s(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}})),D=e(((e,s)=>{var r=t(),i=k(),a=M(),n=O(),o=b(),h=T(),l=i("wks"),p=r.Symbol,c=p&&p.for,u=h?p:p&&p.withoutSetter||n;s.exports=function(e){if(!a(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&a(p,e)?l[e]=p[e]:l[e]=h&&c?c(t):u(t)}return l[e]}})),F=e(((e,s)=>{var r=t(),i=n(),a=f(),o=A(),h=S(),l=v(),p=D(),c=r.TypeError,u=p("toPrimitive");s.exports=function(e,t){if(!a(e)||o(e))return e;var s,r=h(e,u);if(r){if(void 0===t&&(t="default"),s=i(r,e,t),!a(s)||o(s))return s;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}})),j=e(((e,t)=>{var s=F(),r=A();t.exports=function(e){var t=s(e,"string");return r(t)?t:t+""}})),B=e(((e,s)=>{var r=t(),i=f(),a=r.document,n=i(a)&&i(a.createElement);s.exports=function(e){return n?a.createElement(e):{}}})),R=e(((e,t)=>{var s=i(),a=r(),n=B();t.exports=!s&&!a((function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))})),U=e((e=>{var t=i(),s=n(),r=o(),a=h(),l=d(),p=j(),c=M(),u=R(),m=Object.getOwnPropertyDescriptor;e.f=t?m:function(e,t){if(e=l(e),t=p(t),u)try{return m(e,t)}catch{}if(c(e,t))return a(!s(r.f,e,t),e[t])}})),_=e(((e,t)=>{var s=i(),a=r();t.exports=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),z=e(((e,s)=>{var r=t(),i=f(),a=r.String,n=r.TypeError;s.exports=function(e){if(i(e))return e;throw n(a(e)+" is not an object")}})),H=e((e=>{var s=t(),r=i(),a=R(),n=_(),o=z(),h=j(),l=s.TypeError,p=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",m="writable";e.f=r?n?function(e,t,s){if(o(e),t=h(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&m in s&&!s[m]){var r=c(e,t);r&&r[m]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:u in s?s[u]:r[u],writable:!1})}return p(e,t,s)}:p:function(e,t,s){if(o(e),t=h(t),o(s),a)try{return p(e,t,s)}catch{}if("get"in s||"set"in s)throw l("Accessors not supported");return"value"in s&&(e[t]=s.value),e}})),V=e(((e,t)=>{var s=i(),r=H(),a=h();t.exports=s?function(e,t,s){return r.f(e,t,a(1,s))}:function(e,t,s){return e[t]=s,e}})),q=e(((e,t)=>{var s=l(),r=m(),i=I(),a=s(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),K=e(((e,s)=>{var r=t(),i=m(),a=q(),n=r.WeakMap;s.exports=i(n)&&/native code/.test(a(n))})),W=e(((e,t)=>{var s=k(),r=O(),i=s("keys");t.exports=function(e){return i[e]||(i[e]=r(e))}})),J=e(((e,t)=>{t.exports={}})),X=e(((e,s)=>{var r,i,a,n,o,h,p,c,u=K(),d=t(),m=l(),y=f(),x=V(),g=M(),P=I(),b=W(),T=J(),A="Object already initialized",E=d.TypeError,w=d.WeakMap,S=function(e){return a(e)?i(e):r(e,{})},v=function(e){return function(t){var s;if(!y(t)||(s=i(t)).type!==e)throw E("Incompatible receiver, "+e+" required");return s}};u||P.state?(n=P.state||(P.state=new w),o=m(n.get),h=m(n.has),p=m(n.set),r=function(e,t){if(h(n,e))throw new E(A);return t.facade=e,p(n,e,t),t},i=function(e){return o(n,e)||{}},a=function(e){return h(n,e)}):(T[c=b("state")]=!0,r=function(e,t){if(g(e,c))throw new E(A);return t.facade=e,x(e,c,t),t},i=function(e){return g(e,c)?e[c]:{}},a=function(e){return g(e,c)}),s.exports={set:r,get:i,has:a,enforce:S,getterFor:v}})),G=e(((e,t)=>{var s=i(),r=M(),a=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,o=r(a,"name"),h=o&&"something"===function(){}.name,l=o&&(!s||s&&n(a,"name").configurable);t.exports={EXISTS:o,PROPER:h,CONFIGURABLE:l}})),Y=e(((e,s)=>{var r=t(),i=m(),a=M(),n=V(),o=N(),h=q(),l=X(),p=G().CONFIGURABLE,c=l.get,u=l.enforce,d=String(String).split("String");(s.exports=function(e,t,s,h){var l,c=!!h&&!!h.unsafe,m=!!h&&!!h.enumerable,f=!!h&&!!h.noTargetGet,y=h&&void 0!==h.name?h.name:t;i(s)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(s,"name")||p&&s.name!==y)&&n(s,"name",y),(l=u(s)).source||(l.source=d.join("string"==typeof y?y:""))),e!==r?(c?!f&&e[t]&&(m=!0):delete e[t],m?e[t]=s:n(e,t,s)):m?e[t]=s:o(t,s)})(Function.prototype,"toString",(function(){return i(this)&&c(this).source||h(this)}))})),Q=e(((e,t)=>{var s=Math.ceil,r=Math.floor;t.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?r:s)(t)}})),$=e(((e,t)=>{var s=Q(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=s(e);return a<0?r(a+t,0):i(a,t)}})),Z=e(((e,t)=>{var s=Q(),r=Math.min;t.exports=function(e){return e>0?r(s(e),9007199254740991):0}})),ee=e(((e,t)=>{var s=Z();t.exports=function(e){return s(e.length)}})),te=e(((e,t)=>{var s=d(),r=$(),i=ee(),a=function(e){return function(t,a,n){var o,h=s(t),l=i(h),p=r(n,l);if(e&&a!=a){for(;l>p;)if((o=h[p++])!=o)return!0}else for(;l>p;p++)if((e||p in h)&&h[p]===a)return e||p||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),se=e(((e,t)=>{var s=l(),r=M(),i=d(),a=te().indexOf,n=J(),o=s([].push);t.exports=function(e,t){var s,h=i(e),l=0,p=[];for(s in h)!r(n,s)&&r(h,s)&&o(p,s);for(;t.length>l;)r(h,s=t[l++])&&(~a(p,s)||o(p,s));return p}})),re=e(((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),ie=e((e=>{var t=se(),s=re().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,s)}})),ae=e((e=>{e.f=Object.getOwnPropertySymbols})),ne=e(((e,t)=>{var s=y(),r=l(),i=ie(),a=ae(),n=z(),o=r([].concat);t.exports=s("Reflect","ownKeys")||function(e){var t=i.f(n(e)),s=a.f;return s?o(t,s(e)):t}})),oe=e(((e,t)=>{var s=M(),r=ne(),i=U(),a=H();t.exports=function(e,t,n){for(var o=r(t),h=a.f,l=i.f,p=0;p<o.length;p++){var c=o[p];!s(e,c)&&(!n||!s(n,c))&&h(e,c,l(t,c))}}})),he=e(((e,t)=>{var s=r(),i=m(),a=/#|\.prototype\./,n=function(e,t){var r=h[o(e)];return r==p||r!=l&&(i(t)?s(t):!!t)},o=n.normalize=function(e){return String(e).replace(a,".").toLowerCase()},h=n.data={},l=n.NATIVE="N",p=n.POLYFILL="P";t.exports=n})),le=e(((e,s)=>{var r=t(),i=U().f,a=V(),n=Y(),o=N(),h=oe(),l=he();s.exports=function(e,t){var s,p,c,u,d,m=e.target,f=e.global,y=e.stat;if(s=f?r:y?r[m]||o(m,{}):(r[m]||{}).prototype)for(p in t){if(u=t[p],c=e.noTargetGet?(d=i(s,p))&&d.value:s[p],!l(f?p:m+(y?".":"#")+p,e.forced)&&void 0!==c){if(typeof u==typeof c)continue;h(u,c)}(e.sham||c&&c.sham)&&a(u,"sham",!0),n(s,p,u,e)}}})),pe=e((()=>{le()({global:!0},{globalThis:t()})})),ce=e((()=>{pe()})),ue=e(((e,t)=>{var s=p();t.exports=Array.isArray||function(e){return"Array"==s(e)}})),de=e(((e,t)=>{var s=l(),r=w(),i=a(),n=s(s.bind);t.exports=function(e,t){return r(e),void 0===t?e:i?n(e,t):function(){return e.apply(t,arguments)}}})),me=e(((e,s)=>{var r=t(),i=ue(),a=ee(),n=de(),o=r.TypeError,h=function(e,t,s,r,l,p,c,u){for(var d,m,f=l,y=0,x=!!c&&n(c,u);y<r;){if(y in s){if(d=x?x(s[y],y,t):s[y],p>0&&i(d))m=a(d),f=h(e,t,d,m,f,p-1)-1;else{if(f>=9007199254740991)throw o("Exceed the acceptable array length");e[f]=d}f++}y++}return f};s.exports=h})),fe=e(((e,t)=>{var s={};s[D()("toStringTag")]="z",t.exports="[object z]"===String(s)})),ye=e(((e,s)=>{var r=t(),i=fe(),a=m(),n=p(),o=D()("toStringTag"),h=r.Object,l="Arguments"==n(function(){return arguments}()),c=function(e,t){try{return e[t]}catch{}};s.exports=i?n:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=c(t=h(e),o))?s:l?n(t):"Object"==(r=n(t))&&a(t.callee)?"Arguments":r}})),xe=e(((e,t)=>{var s=l(),i=r(),a=m(),n=ye(),o=y(),h=q(),p=function(){},c=[],u=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=s(d.exec),x=!d.exec(p),g=function(e){if(!a(e))return!1;try{return u(p,c,e),!0}catch{return!1}},P=function(e){if(!a(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return x||!!f(d,h(e))}catch{return!0}};P.sham=!0,t.exports=!u||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?P:g})),ge=e(((e,s)=>{var r=t(),i=ue(),a=xe(),n=f(),o=D()("species"),h=r.Array;s.exports=function(e){var t;return i(e)&&(t=e.constructor,(a(t)&&(t===h||i(t.prototype))||n(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?h:t}})),Pe=e(((e,t)=>{var s=ge();t.exports=function(e,t){return new(s(e))(0===t?0:t)}})),be=e((()=>{var e=le(),t=me(),s=w(),r=L(),i=ee(),a=Pe();e({target:"Array",proto:!0},{flatMap:function(e){var n,o=r(this),h=i(o);return s(e),(n=a(o,0)).length=t(n,o,o,h,0,1,e,arguments.length>1?arguments[1]:void 0),n}})})),Te=e(((e,t)=>{var s,r,i,a,n;function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}ce(),be();var h=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,u=(e,t)=>function(){return e&&(t=(0,e[p(e)[0]])(e=0)),t},d=(e,t)=>function(){return t||(0,e[p(e)[0]])((t={exports:{}}).exports,t),t.exports},m=(e,t)=>{for(var s in t)h(e,s,{get:t[s],enumerable:!0})},f=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of p(t))!c.call(e,i)&&i!==s&&h(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},y=e=>f(h({},"__esModule",{value:!0}),e),x=u({"<define:process>"(){}}),g=d({"src/utils/try-combinations.js"(e,t){function s(){let e;for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];for(let[a,n]of s.entries())try{return{result:n()}}catch(i){0===a&&(e=i)}return{error:e}}x(),t.exports=s}}),P=d({"src/language-js/utils/get-shebang.js"(e,t){function s(e){if(!e.startsWith("#!"))return"";let t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}x(),t.exports=s}}),b=d({"src/utils/text/skip-inline-comment.js"(e,t){function s(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let s=t+2;s<e.length;++s)if("*"===e.charAt(s)&&"/"===e.charAt(s+1))return s+2;return t}x(),t.exports=s}}),T=d({"src/utils/text/skip-newline.js"(e,t){function s(e,t,s){let r=s&&s.backwards;if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}x(),t.exports=s}}),A=d({"src/utils/text/skip.js"(e,t){function s(e){return(t,s,r)=>{let i=r&&r.backwards;if(!1===s)return!1;let{length:a}=t,n=s;for(;n>=0&&n<a;){let s=t.charAt(n);if(e instanceof RegExp){if(!e.test(s))return n}else if(!e.includes(s))return n;i?n--:n++}return(-1===n||n===a)&&n}}x();var r=s(/\s/),i=s(" \t"),a=s(",; \t"),n=s(/[^\n\r]/);t.exports={skipWhitespace:r,skipSpaces:i,skipToLineEnd:a,skipEverythingButNewLine:n}}}),E=d({"src/utils/text/skip-trailing-comment.js"(e,t){x();var{skipEverythingButNewLine:s}=A();function r(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?s(e,t):t)}t.exports=r}}),w=d({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){x();var s=b(),r=T(),i=E(),{skipSpaces:a}=A();function n(e,t){let n=null,o=t;for(;o!==n;)n=o,o=a(e,o),o=s(e,o),o=i(e,o),o=r(e,o);return o}t.exports=n}}),S={};function v(){if(typeof _>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),s=new Uint16Array(e);if(t[0]=1,t[1]=2,258===s[0])_="BE";else{if(513!==s[0])throw new Error("unable to figure out endianess");_="LE"}}return _}function C(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function N(){return[]}function I(){return 0}function k(){return Number.MAX_VALUE}function L(){return Number.MAX_VALUE}function M(){return[]}function O(){return"Browser"}function D(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function F(){}function j(){}function B(){return"javascript"}function R(){return"browser"}function U(){return"/tmp"}m(S,{EOL:()=>H,arch:()=>B,cpus:()=>M,default:()=>V,endianness:()=>v,freemem:()=>k,getNetworkInterfaces:()=>j,hostname:()=>C,loadavg:()=>N,networkInterfaces:()=>F,platform:()=>R,release:()=>D,tmpDir:()=>U,tmpdir:()=>z,totalmem:()=>L,type:()=>O,uptime:()=>I});var _,z,H,V,q=u({"node-modules-polyfills:os"(){x(),V={EOL:H="\n",tmpdir:z=U,tmpDir:U,networkInterfaces:F,getNetworkInterfaces:j,release:D,type:O,cpus:M,totalmem:L,freemem:k,uptime:I,loadavg:N,hostname:C,endianness:v}}}),K=d({"node-modules-polyfills-commonjs:os"(e,t){x();var s=(q(),y(S));if(s&&s.default){t.exports=s.default;for(let e in s)t.exports[e]=s[e]}else s&&(t.exports=s)}}),W=d({"node_modules/detect-newline/index.js"(e,t){x();var s=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let s=t.filter((e=>"\r\n"===e)).length;return s>t.length-s?"\r\n":"\n"};t.exports=s,t.exports.graceful=e=>"string"==typeof e&&s(e)||"\n"}}),J=d({"node_modules/jest-docblock/build/index.js"(e){function t(){let e=K();return t=function(){return e},e}function s(){let e=r(W());return s=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=d,e.parse=f,e.parseWithComments=y,e.print=g,e.strip=m;var i=/\*\/$/,a=/^\/\*\*/,n=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,h=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,c=/(\r?\n|^) *\* ?/g,u=[];function d(e){let t=e.match(n);return t?t[0].trimLeft():""}function m(e){let t=e.match(n);return t&&t[0]?e.substring(t[0].length):e}function f(e){return y(e).pragmas}function y(e){let r=(0,s().default)(e)||t().EOL;e=e.replace(a,"").replace(i,"").replace(c,"$1");let n="";for(;n!==e;)n=e,e=e.replace(l,"".concat(r,"$1 $2").concat(r));e=e.replace(h,"").trimRight();let d,m=Object.create(null),f=e.replace(p,"").replace(h,"").trimRight();for(;d=p.exec(e);){let e=d[2].replace(o,"");"string"==typeof m[d[1]]||Array.isArray(m[d[1]])?m[d[1]]=u.concat(m[d[1]],e):m[d[1]]=e}return{comments:f,pragmas:m}}function g(e){let{comments:r="",pragmas:i={}}=e,a=(0,s().default)(r)||t().EOL,n="/**",o=" *",h=" */",l=Object.keys(i),p=l.map((e=>P(e,i[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>o+" "+e+a)).join("");if(!r){if(0===l.length)return"";if(1===l.length&&!Array.isArray(i[l[0]])){let e=i[l[0]];return"".concat(n," ").concat(P(l[0],e)[0]).concat(h)}}let c=r.split(a).map((e=>"".concat(o," ").concat(e))).join(a)+a;return n+a+(r?c:"")+(r&&l.length?o+a:"")+p+h}function P(e,t){return u.concat(t).map((t=>"@".concat(e," ").concat(t).trim()))}}}),X=d({"src/common/end-of-line.js"(e,t){function s(e){let t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function r(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function i(e,t){let s;switch(t){case"\n":s=/\n/g;break;case"\r":s=/\r/g;break;case"\r\n":s=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."))}let r=e.match(s);return r?r.length:0}function a(e){return e.replace(/\r\n?/g,"\n")}x(),t.exports={guessEndOfLine:s,convertEndOfLineToChars:r,countEndOfLineChars:i,normalizeEndOfLine:a}}}),G=d({"src/language-js/pragma.js"(e,t){x();var{parseWithComments:s,strip:r,extract:i,print:a}=J(),{normalizeEndOfLine:n}=X(),o=P();function h(e){let t=o(e);t&&(e=e.slice(t.length+1));let r=i(e),{pragmas:a,comments:n}=s(r);return{shebang:t,text:e,pragmas:a,comments:n}}function l(e){let t=Object.keys(h(e).pragmas);return t.includes("prettier")||t.includes("format")}function p(e){let{shebang:t,text:s,pragmas:i,comments:o}=h(e),l=r(s),p=a({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(t?"".concat(t,"\n"):"")+n(p)+(l.startsWith("\n")?"\n":"\n\n")+l}t.exports={hasPragma:l,insertPragma:p}}}),Y=d({"src/utils/is-non-empty-array.js"(e,t){function s(e){return Array.isArray(e)&&e.length>0}x(),t.exports=s}}),Q=d({"src/language-js/loc.js"(e,t){x();var s=Y();function r(e,t){let{ignoreDecorators:i}=t||{};if(!i){let t=e.declaration&&e.declaration.decorators||e.decorators;if(s(t))return r(t[0])}return e.range?e.range[0]:e.start}function i(e){return e.range?e.range[1]:e.end}function a(e,t){let s=r(e);return Number.isInteger(s)&&s===r(t)}function n(e,t){let s=i(e);return Number.isInteger(s)&&s===i(t)}function o(e,t){return a(e,t)&&n(e,t)}t.exports={locStart:r,locEnd:i,hasSameLocStart:a,hasSameLoc:o}}}),$=d({"src/language-js/parse/utils/create-parser.js"(e,t){x();var{hasPragma:s}=G(),{locStart:r,locEnd:i}=Q();function a(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:s,locStart:r,locEnd:i},e)}t.exports=a}}),Z=d({"src/common/parser-create-error.js"(e,t){function s(e,t){let s=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return s.loc=t,s}x(),t.exports=s}}),ee=d({"src/language-js/parse/utils/create-babel-parse-error.js"(e,t){x();var s=Z();function r(e){let{message:t,loc:r}=e;return s(t.replace(/ \(.*\)/,""),{start:{line:r?r.line:0,column:r?r.column+1:0}})}t.exports=r}}),te=d({"src/language-js/utils/is-ts-keyword-type.js"(e,t){function s(e){let{type:t}=e;return t.startsWith("TS")&&t.endsWith("Keyword")}x(),t.exports=s}}),se=d({"src/language-js/utils/is-block-comment.js"(e,t){x();var s=new Set(["Block","CommentBlock","MultiLine"]),r=e=>s.has(null==e?void 0:e.type);t.exports=r}}),re=d({"src/language-js/utils/is-type-cast-comment.js"(e,t){x();var s=se();function r(e){return s(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}t.exports=r}}),ie=d({"src/utils/get-last.js"(e,t){x();var s=e=>e[e.length-1];t.exports=s}}),ae=d({"src/language-js/parse/postprocess/visit-node.js"(e,t){function s(e,t){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=s(e[r],t);return e}if(e&&"object"==typeof e&&"string"==typeof e.type){let r=Object.keys(e);for(let i=0;i<r.length;i++)e[r[i]]=s(e[r[i]],t);return t(e)||e}return e}x(),t.exports=s}}),ne=d({"src/language-js/parse/postprocess/throw-syntax-error.js"(e,t){x();var s=Z();function r(e,t){let{start:r,end:i}=e.loc;throw s(t,{start:{line:r.line,column:r.column+1},end:{line:i.line,column:i.column+1}})}t.exports=r}}),oe=d({"src/language-js/parse/postprocess/typescript.js"(e,t){x();var s=ae(),r=ne();function i(e,t,s){let i=e.decorators;if(!Array.isArray(i))return;let a=t.decorators;(!Array.isArray(a)||a.length!==i.length||i.some((e=>{let t=s.get(e);return!t||!a.includes(t)})))&&r(t,"Leading decorators must be attached to a class declaration")}function a(e,t){167!==e.kind||e.modifiers&&!e.modifiers.some((e=>126===e.kind))||e.initializer&&null===t.value&&r(t,"Abstract property cannot have an initializer")}function n(e,t){let{esTreeNodeToTSNodeMap:r,tsNodeToESTreeNodeMap:n}=t.tsParseResult;s(e,(e=>{let t=r.get(e);if(!t)return;let s=n.get(t);s===e&&(i(t,s,n),a(t,s))}))}t.exports={throwErrorForInvalidNodes:n}}}),he=d({"src/language-js/parse/postprocess/index.js"(e,t){x();var{locStart:s,locEnd:r}=Q(),i=te(),a=re(),n=ie(),o=ae(),{throwErrorForInvalidNodes:h}=oe(),l=ne();function p(e,t){if("typescript"===t.parser&&/@|abstract/.test(t.originalText)&&h(e,t),"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(a)&&t.add(s(e))})),e=o(e,(e=>{if("ParenthesizedExpression"===e.type){let{expression:r}=e;if("TypeCastExpression"===r.type)return r.range=e.range,r;let i=s(e);if(!t.has(i))return r.extra=Object.assign(Object.assign({},r.extra),{},{parenthesized:!0}),r}}))}return e=o(e,(e=>{switch(e.type){case"ChainExpression":return c(e.expression);case"LogicalExpression":if(u(e))return d(e);break;case"VariableDeclaration":{let t=n(e.declarations);t&&t.init&&p(e,t);break}case"TSParenthesizedType":return i(e.typeAnnotation)||"TSThisType"===e.typeAnnotation.type||(e.typeAnnotation.range=[s(e),r(e)]),e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){let t=s(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&&l(t.value,"Unexpected token.")}break;case"SequenceExpression":{let t=n(e.expressions);e.range=[s(e),Math.min(r(t),r(e))];break}case"TopicReference":t.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:i}=e;if("meriyah"===t.parser&&i&&"Identifier"===i.type){let a=t.originalText.slice(s(i),r(i));(a.startsWith('"')||a.startsWith("'"))&&(e.exported=Object.assign(Object.assign({},e.exported),{},{type:"Literal",value:e.exported.name,raw:a}))}break}}}));function p(e,i){";"!==t.originalText[r(i)]&&(e.range=[s(e),r(i)])}}function c(e){switch(e.type){case"CallExpression":e.type="OptionalCallExpression",e.callee=c(e.callee);break;case"MemberExpression":e.type="OptionalMemberExpression",e.object=c(e.object);break;case"TSNonNullExpression":e.expression=c(e.expression)}return e}function u(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function d(e){return u(e)?d({type:"LogicalExpression",operator:e.operator,left:d({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[s(e.left),r(e.right.left)]}),right:e.right.right,range:[s(e),r(e)]}):e}t.exports=p}}),le=d({"node_modules/@babel/parser/lib/index.js"(e){function t(e,t){if(null==e)return{};var s,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],!(t.indexOf(s)>=0)&&(i[s]=e[s]);return i}x(),Object.defineProperty(e,"__esModule",{value:!0});var h=class{constructor(e,t,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=s}},l=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 p(e,t){let{line:s,column:r,index:i}=e;return new h(s,r+t,i+t)}var c=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),u=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(s){e.reduce(((e,r,i)=>i===t?e[r]=s:e[r]),this)}}},d=(e,t,s)=>Object.keys(s).map((e=>[e,s[e]])).filter((e=>{let[,t]=e;return!!t})).map((e=>{let[t,s]=e;return[t,"function"==typeof s?{value:s,enumerable:!1}:"string"==typeof s.reflect?Object.assign({},s,u(s.reflect.split("."))):s]})).reduce(((e,t)=>{let[s,r]=t;return Object.defineProperty(e,s,Object.assign({configurable:!0},r))}),Object.assign(new e,t)),m=e=>({ImportMetaOutsideModule:e("import.meta may appear only with 'sourceType: \"module\"'",{code:c.SourceTypeModuleError}),ImportOutsideModule:e("'import' and 'export' may appear only with 'sourceType: \"module\"'",{code:c.SourceTypeModuleError})}),f={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},y=e=>{let{type:t,prefix:s}=e;return"UpdateExpression"===t?f.UpdateExpression[String(s)]:f[t]},g=e=>({AccessorIsGenerator:e((e=>{let{kind:t}=e;return"A ".concat(t,"ter cannot be a generator.")})),ArgumentsInClass:e("'arguments' is only allowed in functions and class methods."),AsyncFunctionInSingleStatementContext:e("Async functions can only be declared at the top level or inside a block."),AwaitBindingIdentifier:e("Can not use 'await' as identifier inside an async function."),AwaitBindingIdentifierInStaticBlock:e("Can not use 'await' as identifier inside a static block."),AwaitExpressionFormalParameter:e("'await' is not allowed in async function parameters."),AwaitNotInAsyncContext:e("'await' is only allowed within async functions and at the top levels of modules."),AwaitNotInAsyncFunction:e("'await' is only allowed within async functions."),BadGetterArity:e("A 'get' accesor must not have any formal parameters."),BadSetterArity:e("A 'set' accesor must have exactly one formal parameter."),BadSetterRestParameter:e("A 'set' accesor function argument must not be a rest parameter."),ConstructorClassField:e("Classes may not have a field named 'constructor'."),ConstructorClassPrivateField:e("Classes may not have a private field named '#constructor'."),ConstructorIsAccessor:e("Class constructor may not be an accessor."),ConstructorIsAsync:e("Constructor can't be an async function."),ConstructorIsGenerator:e("Constructor can't be a generator."),DeclarationMissingInitializer:e((e=>{let{kind:t}=e;return"Missing initializer in ".concat(t," declaration.")})),DecoratorBeforeExport:e("Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax."),DecoratorConstructor:e("Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?"),DecoratorExportClass:e("Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead."),DecoratorSemicolon:e("Decorators must not be followed by a semicolon."),DecoratorStaticBlock:e("Decorators can't be used with a static block."),DeletePrivateField:e("Deleting a private field is not allowed."),DestructureNamedImport:e("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),DuplicateConstructor:e("Duplicate constructor in the same class."),DuplicateDefaultExport:e("Only one default export allowed per module."),DuplicateExport:e((e=>{let{exportName:t}=e;return"`".concat(t,"` has already been exported. Exported identifiers must be unique.")})),DuplicateProto:e("Redefinition of __proto__ property."),DuplicateRegExpFlags:e("Duplicate regular expression flag."),ElementAfterRest:e("Rest element must be last element."),EscapedCharNotAnIdentifier:e("Invalid Unicode escape."),ExportBindingIsString:e((e=>{let{localName:t,exportName:s}=e;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '".concat(t,"' as '").concat(s,"' } from 'some-module'`?")})),ExportDefaultFromAsIdentifier:e("'from' is not allowed as an identifier after 'export default'."),ForInOfLoopInitializer:e((e=>{let{type:t}=e;return"'".concat("ForInStatement"===t?"for-in":"for-of","' loop variable declaration may not have an initializer.")})),ForOfAsync:e("The left-hand side of a for-of loop may not be 'async'."),ForOfLet:e("The left-hand side of a for-of loop may not start with 'let'."),GeneratorInSingleStatementContext:e("Generators can only be declared at the top level or inside a block."),IllegalBreakContinue:e((e=>{let{type:t}=e;return"Unsyntactic ".concat("BreakStatement"===t?"break":"continue",".")})),IllegalLanguageModeDirective:e("Illegal 'use strict' directive in function with non-simple parameter list."),IllegalReturn:e("'return' outside of function."),ImportBindingIsString:e((e=>{let{importName:t}=e;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'.concat(t,'" as foo }`?')})),ImportCallArgumentTrailingComma:e("Trailing comma is disallowed inside import(...) arguments."),ImportCallArity:e((e=>{let{maxArgumentCount:t}=e;return"`import()` requires exactly ".concat(1===t?"one argument":"one or two arguments",".")})),ImportCallNotNewExpression:e("Cannot use new with import(...)."),ImportCallSpreadArgument:e("`...` is not allowed in `import()`."),IncompatibleRegExpUVFlags:e("The 'u' and 'v' regular expression flags cannot be enabled at the same time."),InvalidBigIntLiteral:e("Invalid BigIntLiteral."),InvalidCodePoint:e("Code point out of bounds."),InvalidCoverInitializedName:e("Invalid shorthand property initializer."),InvalidDecimal:e("Invalid decimal."),InvalidDigit:e((e=>{let{radix:t}=e;return"Expected number in radix ".concat(t,".")})),InvalidEscapeSequence:e("Bad character escape sequence."),InvalidEscapeSequenceTemplate:e("Invalid escape sequence in template."),InvalidEscapedReservedWord:e((e=>{let{reservedWord:t}=e;return"Escape sequence in keyword ".concat(t,".")})),InvalidIdentifier:e((e=>{let{identifierName:t}=e;return"Invalid identifier ".concat(t,".")})),InvalidLhs:e((e=>{let{ancestor:t}=e;return"Invalid left-hand side in ".concat(y(t),".")})),InvalidLhsBinding:e((e=>{let{ancestor:t}=e;return"Binding invalid left-hand side in ".concat(y(t),".")})),InvalidNumber:e("Invalid number."),InvalidOrMissingExponent:e("Floating-point numbers require a valid exponent after the 'e'."),InvalidOrUnexpectedToken:e((e=>{let{unexpected:t}=e;return"Unexpected character '".concat(t,"'.")})),InvalidParenthesizedAssignment:e("Invalid parenthesized assignment pattern."),InvalidPrivateFieldResolution:e((e=>{let{identifierName:t}=e;return"Private name #".concat(t," is not defined.")})),InvalidPropertyBindingPattern:e("Binding member expression."),InvalidRecordProperty:e("Only properties and spread elements are allowed in record definitions."),InvalidRestAssignmentPattern:e("Invalid rest operator's argument."),LabelRedeclaration:e((e=>{let{labelName:t}=e;return"Label '".concat(t,"' is already declared.")})),LetInLexicalBinding:e("'let' is not allowed to be used as a name in 'let' or 'const' declarations."),LineTerminatorBeforeArrow:e("No line break is allowed before '=>'."),MalformedRegExpFlags:e("Invalid regular expression flag."),MissingClassName:e("A class name is required."),MissingEqInAssignment:e("Only '=' operator can be used for specifying default value."),MissingSemicolon:e("Missing semicolon."),MissingPlugin:e((e=>{let{missingPlugin:t}=e;return"This experimental syntax requires enabling the parser plugin: ".concat(t.map((e=>JSON.stringify(e))).join(", "),".")})),MissingOneOfPlugins:e((e=>{let{missingPlugin:t}=e;return"This experimental syntax requires enabling one of the following parser plugin(s): ".concat(t.map((e=>JSON.stringify(e))).join(", "),".")})),MissingUnicodeEscape:e("Expecting Unicode escape sequence \\uXXXX."),MixingCoalesceWithLogical:e("Nullish coalescing operator(??) requires parens when mixing with logical operators."),ModuleAttributeDifferentFromType:e("The only accepted module attribute is `type`."),ModuleAttributeInvalidValue:e("Only string literals are allowed as module attribute values."),ModuleAttributesWithDuplicateKeys:e((e=>{let{key:t}=e;return'Duplicate key "'.concat(t,'" is not allowed in module attributes.')})),ModuleExportNameHasLoneSurrogate:e((e=>{let{surrogateCharCode:t}=e;return"An export name cannot include a lone surrogate, found '\\u".concat(t.toString(16),"'.")})),ModuleExportUndefined:e((e=>{let{localName:t}=e;return"Export '".concat(t,"' is not defined.")})),MultipleDefaultsInSwitch:e("Multiple default clauses."),NewlineAfterThrow:e("Illegal newline after throw."),NoCatchOrFinally:e("Missing catch or finally clause."),NumberIdentifier:e("Identifier directly after number."),NumericSeparatorInEscapeSequence:e("Numeric separators are not allowed inside unicode escape sequences or hex escape sequences."),ObsoleteAwaitStar:e("'await*' has been removed from the async functions proposal. Use Promise.all() instead."),OptionalChainingNoNew:e("Constructors in/after an Optional Chain are not allowed."),OptionalChainingNoTemplate:e("Tagged Template Literals are not allowed in optionalChain."),OverrideOnConstructor:e("'override' modifier cannot appear on a constructor declaration."),ParamDupe:e("Argument name clash."),PatternHasAccessor:e("Object pattern can't contain getter or setter."),PatternHasMethod:e("Object pattern can't contain methods."),PrivateInExpectedIn:e((e=>{let{identifierName:t}=e;return"Private names are only allowed in property accesses (`obj.#".concat(t,"`) or in `in` expressions (`#").concat(t," in obj`).")})),PrivateNameRedeclaration:e((e=>{let{identifierName:t}=e;return"Duplicate private name #".concat(t,".")})),RecordExpressionBarIncorrectEndSyntaxType:e("Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionBarIncorrectStartSyntaxType:e("Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionHashIncorrectStartSyntaxType:e("Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),RecordNoProto:e("'__proto__' is not allowed in Record expressions."),RestTrailingComma:e("Unexpected trailing comma after rest element."),SloppyFunction:e("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:e("Classes may not have static property named prototype."),SuperNotAllowed:e("`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:e("Private fields can't be accessed on super."),TrailingDecorator:e("Decorators must be attached to a class element."),TupleExpressionBarIncorrectEndSyntaxType:e("Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionBarIncorrectStartSyntaxType:e("Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionHashIncorrectStartSyntaxType:e("Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),UnexpectedArgumentPlaceholder:e("Unexpected argument placeholder."),UnexpectedAwaitAfterPipelineBody:e('Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.'),UnexpectedDigitAfterHash:e("Unexpected digit after hash token."),UnexpectedImportExport:e("'import' and 'export' may only appear at the top level."),UnexpectedKeyword:e((e=>{let{keyword:t}=e;return"Unexpected keyword '".concat(t,"'.")})),UnexpectedLeadingDecorator:e("Leading decorators must be attached to a class declaration."),UnexpectedLexicalDeclaration:e("Lexical declaration cannot appear in a single-statement context."),UnexpectedNewTarget:e("`new.target` can only be used in functions or class properties."),UnexpectedNumericSeparator:e("A numeric separator is only allowed between two digits."),UnexpectedPrivateField:e("Unexpected private name."),UnexpectedReservedWord:e((e=>{let{reservedWord:t}=e;return"Unexpected reserved word '".concat(t,"'.")})),UnexpectedSuper:e("'super' is only allowed in object methods and classes."),UnexpectedToken:e((e=>{let{expected:t,unexpected:s}=e;return"Unexpected token".concat(s?" '".concat(s,"'."):"").concat(t?', expected "'.concat(t,'"'):"")})),UnexpectedTokenUnaryExponentiation:e("Illegal expression. Wrap left hand side or entire exponentiation in parentheses."),UnsupportedBind:e("Binding should be performed on object property."),UnsupportedDecoratorExport:e("A decorated export must export a class declaration."),UnsupportedDefaultExport:e("Only expressions, functions or classes are allowed as the `default` export."),UnsupportedImport:e("`import` can only be used in `import()` or `import.meta`."),UnsupportedMetaProperty:e((e=>{let{target:t,onlyValidPropertyName:s}=e;return"The only valid meta property for ".concat(t," is ").concat(t,".").concat(s,".")})),UnsupportedParameterDecorator:e("Decorators cannot be used to decorate parameters."),UnsupportedPropertyDecorator:e("Decorators cannot be used to decorate object literal properties."),UnsupportedSuper:e("'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])."),UnterminatedComment:e("Unterminated comment."),UnterminatedRegExp:e("Unterminated regular expression."),UnterminatedString:e("Unterminated string constant."),UnterminatedTemplate:e("Unterminated template."),VarRedeclaration:e((e=>{let{identifierName:t}=e;return"Identifier '".concat(t,"' has already been declared.")})),YieldBindingIdentifier:e("Can not use 'yield' as identifier inside a generator."),YieldInParameter:e("Yield expression is not allowed in formal parameters."),ZeroDigitNumericSeparator:e("Numeric separator can not be used after leading 0.")}),P=e=>({StrictDelete:e("Deleting local variable in strict mode."),StrictEvalArguments:e((e=>{let{referenceName:t}=e;return"Assigning to '".concat(t,"' in strict mode.")})),StrictEvalArgumentsBinding:e((e=>{let{bindingName:t}=e;return"Binding '".concat(t,"' in strict mode.")})),StrictFunction:e("In strict mode code, functions can only be declared at top level or inside a block."),StrictNumericEscape:e("The only valid numeric escape in strict mode is '\\0'."),StrictOctalLiteral:e("Legacy octal literals are not allowed in strict mode."),StrictWith:e("'with' in strict mode.")}),b=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),T=e=>({PipeBodyIsTighter:e("Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence."),PipeTopicRequiresHackPipes:e('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'),PipeTopicUnbound:e("Topic reference is unbound; it must be inside a pipe body."),PipeTopicUnconfiguredToken:e((e=>{let{token:t}=e;return"Invalid topic token ".concat(t,". In order to use ").concat(t,' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "').concat(t,'" }.')})),PipeTopicUnused:e("Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once."),PipeUnparenthesizedBody:e((e=>{let{type:t}=e;return"Hack-style pipe body cannot be an unparenthesized ".concat(y({type:t}),"; please wrap it in parentheses.")})),PipelineBodyNoArrow:e('Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.'),PipelineBodySequenceExpression:e("Pipeline body may not be a comma-separated sequence expression."),PipelineHeadSequenceExpression:e("Pipeline head should not be a comma-separated sequence expression."),PipelineTopicUnused:e("Pipeline is in topic style but does not use topic reference."),PrimaryTopicNotAllowed:e("Topic reference was used in a lexical context without topic binding."),PrimaryTopicRequiresSmartPipeline:e('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.')}),A=["toMessage"];function E(e){let{toMessage:s}=e,r=t(e,A);return function e(t){let{loc:i,details:a}=t;return d(SyntaxError,Object.assign({},r,{loc:i}),{clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=t.loc||{};return e({loc:new h("line"in s?s.line:this.loc.line,"column"in s?s.column:this.loc.column,"index"in s?s.index:this.loc.index),details:Object.assign({},this.details,t.details)})},details:{value:a,enumerable:!1},message:{get(){return"".concat(s(this.details)," (").concat(this.loc.line,":").concat(this.loc.column,")")},set(e){Object.defineProperty(this,"message",{value:e})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in a&&{reflect:"details.missingPlugin",enumerable:!0}})}}function w(e,t){return Object.assign({toMessage:"string"==typeof e?()=>e:e},t)}function S(e,t){if(Array.isArray(e))return t=>S(t,e[0]);let s=e(w),r={};for(let i of Object.keys(s))r[i]=E(Object.assign({code:c.SyntaxError,reasonCode:i},t?{syntaxPlugin:t}:{},s[i]));return r}var v=Object.assign({},S(m),S(g),S(P),S(s||(s=o(["pipelineOperator"])))(T)),{defineProperty:C}=Object,N=(e,t)=>C(e,t,{enumerable:!1,value:e[t]});function I(e){return N(e.loc.start,"index"),N(e.loc.end,"index"),e}var k=e=>class extends e{parse(){let e=I(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(I)),e}parseRegExpLiteral(e){let{pattern:t,flags:s}=e,r=null;try{r=new RegExp(t,s)}catch{}let i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:s},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let s=this.estreeParseLiteral(t);return s.bigint=String(s.value||e),s}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,s=this.startNodeAt(e.start,e.loc.start),r=this.startNodeAt(t.start,t.loc.start);return r.value=t.extra.expressionValue,r.raw=t.extra.raw,s.expression=this.finishNodeAt(r,"Literal",t.loc.end),s.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(s,"ExpressionStatement",e.loc.end)}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){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];super.parseBlockBody(e,...s);let i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,s,r,i,a){this.parseMethod(t,s,r,i,a,"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 s=super.parseLiteral(e,t);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(e,t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,s),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,s,r,i,a){let n=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();return o.kind=e.kind,o=super.parseMethod(o,t,s,r,i,a,n),o.type="FunctionExpression",delete o.kind,e.value=o,"ClassPrivateMethod"===a&&(e.computed=!1),a="MethodDefinition",this.finishNode(e,a)}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,s,r,i){let a=super.parseObjectMethod(e,t,s,r,i);return a&&(a.type="Property","method"===a.kind&&(a.kind="init"),a.shorthand=!1),a}parseObjectProperty(e,t,s,r,i){let a=super.parseObjectProperty(e,t,s,r,i);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];return"Property"===e?"value":super.isValidLVal(e,...s)}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:s,value:r}=e;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e){"get"===e.kind||"set"===e.kind?this.raise(v.PatternHasAccessor,{at:e.key}):e.method?this.raise(v.PatternHasMethod,{at:e.key}):super.toAssignableObjectExpressionProp(...arguments)}finishCallExpression(e,t){var s;(super.finishCallExpression(e,t),"Import"===e.callee.type)&&(e.type="ImportExpression",e.source=e.arguments[0],this.hasPlugin("importAssertions")&&(e.attributes=null!=(s=e.arguments[1])?s:null),delete e.arguments,delete e.callee);return e}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":1===e.specifiers.length&&"ExportNamespaceSpecifier"===e.specifiers[0].type&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers)}return e}parseSubscript(e,t,s,r,i){let a=super.parseSubscript(e,t,s,r,i);if(i.optionalChainMember){if(("OptionalMemberExpression"===a.type||"OptionalCallExpression"===a.type)&&(a.type=a.type.substring(8)),i.stop){let e=this.startNodeAtNode(a);return e.expression=a,this.finishNode(e,"ChainExpression")}}else("MemberExpression"===a.type||"CallExpression"===a.type)&&(a.optional=!1);return a}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return"ChainExpression"===e.type}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,s){return I(super.finishNodeAt(e,t,s))}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?a