@wix/cli 1.1.42 → 1.1.43
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/build/{LoginCommand-E2VZNV57.js → LoginCommand-CGBFNGX7.js} +2 -2
- package/build/{LogoutCommand-EIF7UQCW.js → LogoutCommand-SQMPWE2Z.js} +2 -2
- package/build/{chunk-WV6O4I6K.js → chunk-6UKTFHIT.js} +2 -2
- package/build/{chunk-66BJ73D4.js → chunk-75LUETYR.js} +2 -2
- package/build/{chunk-DZP3GQQE.js → chunk-ACTAIGWA.js} +2 -2
- package/build/{chunk-QZRJ54GP.js → chunk-DGQKIB5L.js} +2 -2
- package/build/{chunk-CRMNV6TC.js → chunk-DUM2ZCCI.js} +2 -2
- package/build/chunk-G55TTMWE.js +6 -0
- package/build/chunk-G55TTMWE.js.map +1 -0
- package/build/{chunk-UKFNVTCA.js → chunk-PVZF2B55.js} +2 -2
- package/build/{chunk-C4YJFHLC.js → chunk-QAAJK3GC.js} +2 -2
- package/build/{chunk-C4YJFHLC.js.map → chunk-QAAJK3GC.js.map} +1 -1
- package/build/{chunk-HSRXZLET.js → chunk-Y47HDJI3.js} +2 -2
- package/build/{dev-4644FK6U.js → dev-TUFLYMKF.js} +2 -2
- package/build/index.js +3 -3
- package/build/{install-QPOEAL4P.js → install-YEMFIUP5.js} +2 -2
- package/build/{preview-LSA35XV3.js → preview-VQZYPOVH.js} +2 -2
- package/build/{publish-YARINRCG.js → publish-CK7HEF4E.js} +2 -2
- package/build/{render-command-6SU3FDH4.js → render-command-EGV3OP37.js} +2 -2
- package/build/{src-D7FRKYAG.js → src-S6J3ZUBK.js} +2 -2
- package/build/{sync-types-3VZR22AM.js → sync-types-DRU4GIWT.js} +2 -2
- package/build/{uninstall-7RYNGJHY.js → uninstall-S4LM37YV.js} +2 -2
- package/build/xdg-open +338 -137
- package/package.json +2 -2
- package/build/chunk-DWUKJO5Z.js +0 -5
- package/build/chunk-DWUKJO5Z.js.map +0 -1
- /package/build/{LoginCommand-E2VZNV57.js.map → LoginCommand-CGBFNGX7.js.map} +0 -0
- /package/build/{LogoutCommand-EIF7UQCW.js.map → LogoutCommand-SQMPWE2Z.js.map} +0 -0
- /package/build/{chunk-WV6O4I6K.js.map → chunk-6UKTFHIT.js.map} +0 -0
- /package/build/{chunk-66BJ73D4.js.map → chunk-75LUETYR.js.map} +0 -0
- /package/build/{chunk-DZP3GQQE.js.map → chunk-ACTAIGWA.js.map} +0 -0
- /package/build/{chunk-QZRJ54GP.js.map → chunk-DGQKIB5L.js.map} +0 -0
- /package/build/{chunk-CRMNV6TC.js.map → chunk-DUM2ZCCI.js.map} +0 -0
- /package/build/{chunk-UKFNVTCA.js.map → chunk-PVZF2B55.js.map} +0 -0
- /package/build/{chunk-HSRXZLET.js.map → chunk-Y47HDJI3.js.map} +0 -0
- /package/build/{dev-4644FK6U.js.map → dev-TUFLYMKF.js.map} +0 -0
- /package/build/{install-QPOEAL4P.js.map → install-YEMFIUP5.js.map} +0 -0
- /package/build/{preview-LSA35XV3.js.map → preview-VQZYPOVH.js.map} +0 -0
- /package/build/{publish-YARINRCG.js.map → publish-CK7HEF4E.js.map} +0 -0
- /package/build/{render-command-6SU3FDH4.js.map → render-command-EGV3OP37.js.map} +0 -0
- /package/build/{src-D7FRKYAG.js.map → src-S6J3ZUBK.js.map} +0 -0
- /package/build/{sync-types-3VZR22AM.js.map → sync-types-DRU4GIWT.js.map} +0 -0
- /package/build/{uninstall-7RYNGJHY.js.map → uninstall-S4LM37YV.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import"./chunk-
|
|
4
|
-
//# sourceMappingURL=LoginCommand-
|
|
3
|
+
import"./chunk-QAAJK3GC.js";import{a as b}from"./chunk-6WLGSATJ.js";import{m as x,o as U}from"./chunk-G55TTMWE.js";import{i as C,k as P}from"./chunk-PAIXCGVA.js";import{a as I,e as a,g as y,n as L,t as g,u as S}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{a as F}from"./chunk-XB57BXPK.js";import{e as p,i as n}from"./chunk-UO4ZAUJK.js";n();n();var o=p(I(),1);var i=p(F(),1);n();var e=p(I(),1);var _=({userInfo:s,onSubmit:t})=>{let{t:m}=S();return e.default.createElement(e.default.Fragment,null,e.default.createElement(g,{i18nKey:"login_command.already_logged_in.warning",components:[e.default.createElement(a,{skin:"legacyBlue"})],values:{email:s.email}}),e.default.createElement(y,{label:m("login_command.already_logged_in.confirm"),initialValue:!0,onSubmit:t}))};var l=(0,i.variant)({PendingUserConfirmation:{},InProgress:{},Success:(0,i.fields)()}),T=({apiKeyToken:s,userInfo:t})=>{let m=L(),u=C(),d=P(),[v,f]=(0,o.useState)(t===null?l.InProgress():l.PendingUserConfirmation()),c=(0,o.useCallback)(({userInfo:r})=>{u.setUser({id:r.userId}),b(d,r.userId),f(l.Success({userInfo:r}))},[f,u,d]);return o.default.createElement(o.default.Fragment,null,t&&o.default.createElement(_,{userInfo:t,onSubmit:r=>r&&f(l.InProgress())}),(0,i.match)(v,{PendingUserConfirmation:()=>null,InProgress:()=>s?o.default.createElement(x,{token:s,onLogin:c,onError:m}):o.default.createElement(U,{onLogin:c,onError:m}),Success:({userInfo:r})=>o.default.createElement(g,{i18nKey:"login_command.success",components:[o.default.createElement(a,{skin:"legacyBlue"})],values:{email:r.email}})}))};export{T as LoginCommand};
|
|
4
|
+
//# sourceMappingURL=LoginCommand-CGBFNGX7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{k as a}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=LogoutCommand-
|
|
3
|
+
import{k as a}from"./chunk-G55TTMWE.js";import"./chunk-PAIXCGVA.js";import{a as _,b as i,e as l,g as e,m as s,p as f,t as n,u as g}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{a as x}from"./chunk-XB57BXPK.js";import{e as u,i as t}from"./chunk-UO4ZAUJK.js";t();t();var o=u(_(),1);var p=u(x(),1),C=({userInfo:c})=>{let{t:r}=g(),m=f(a);return c===null?o.default.createElement(n,{i18nKey:"logout_command.not_logged_in"}):o.default.createElement(o.default.Fragment,null,o.default.createElement(i,{marginBottom:1},o.default.createElement(n,{i18nKey:"logout_command.logout_warning"})),o.default.createElement(e,{label:r("logout_command.logout_confirm"),initialValue:!0,onSubmit:d=>{d&&m.execute()}}),(0,p.match)(m.status,{NotRequested:()=>null,Error:()=>null,Loading:()=>o.default.createElement(s,null),Success:()=>o.default.createElement(l,null,r("logout_command.logout_success"))}))};export{C as LogoutCommand};
|
|
4
|
+
//# sourceMappingURL=LogoutCommand-SQMPWE2Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as k}from"./chunk-6TDWVLRD.js";import{a as P,b as v,c as W}from"./chunk-
|
|
3
|
+
import{a as k}from"./chunk-6TDWVLRD.js";import{a as P,b as v,c as W}from"./chunk-G55TTMWE.js";import{k as $}from"./chunk-FGMHBV72.js";import{c as t}from"./chunk-ZBJRW65P.js";import{e as w}from"./chunk-64BT6U7B.js";import{b as R}from"./chunk-NWTFQJ5S.js";import{c as T,e as L}from"./chunk-XB57BXPK.js";import{i as y}from"./chunk-UO4ZAUJK.js";y();async function re({type:e,authState:o},p,_){let{minRetryTimeout:b}=R(),m={type:e,getAppToken:o?.getAccessToken,createHeaders:o?.getRequestHeaders};try{return await(_?W(()=>v(m).request(p),{..._,minTimeout:b}):v(m).request(p))}catch(l){throw P(l)&&l.response?.status===403?new T({code:L.PermissionDenied(),cause:l}):l}}y();function me({t:e}){let o=k(),p=()=>o.log(t.dim(e("general.aborting"))),_=()=>{let n=o.logWithLoader({text:e("dev_command.syncing_local_code_start"),discardStdin:!1});return{success:()=>{let i=e("dev_command.syncing_local_code_end");return n.succeed(i),i},fail:()=>n.stop()}},b=({revision:n})=>{let i=e("dev_command.revision_created",{revision:n,configFileName:w});return o.log(i),i},m=n=>{let i=C(n);o.logWithLoader(e("dev_command.failed_to_delete_types_dir",{cause:i})).fail(),u()},l=n=>{let i=o.logWithLoader({text:e("dev_command.syncing_types_to_revision_start",{revision:n})});return{success:()=>{i.succeed(e("dev_command.syncing_types_to_revision_end",{revision:n}))},fail:()=>{i.fail(e("dev_command.syncing_types_to_revision_fail_line1")),o.log(` ${e("dev_command.syncing_types_to_revision_fail_line2")}`),u(),o.log(` ${e("dev_command.syncing_types_to_revision_fail_line3")}`),u()}}},D=n=>{let i=o.logWithLoader({text:e("dev_command.syncing_pages_to_revision_start",{revision:n}),discardStdin:!1});return{success:()=>{i.succeed(e("dev_command.syncing_pages_to_revision_end",{revision:n}))},fail:()=>i.fail()}},u=()=>o.log(""),F=({dependencyName:n,dependencyVersion:i})=>o.log(t.green(e("dependencies.dependency_installed",{dependency:t.bold.green(`${n}${i?`@${i}`:""}`)}))),S=(n,i)=>{let r=o.logWithLoader({text:t.yellow(e("dependencies.installing_dependency",{dependency:t.bold.yellow(`${n}${i?`@${i}`:""}`)}))});return()=>{r.stop(),F({dependencyName:n,dependencyVersion:i})}},x=()=>o.log(t.green(e("dependencies.all_dependencies_installed"))),O=()=>{let n=o.logWithLoader({text:t.yellow(e("dependencies.installing_all_dependencies"))});return()=>{n.stop(),x()}},A=({dependencyName:n})=>o.log(t.green(e("dependencies.dependency_uninstalled",{dependency:t.bold.green(n)})));return{t:e,logAborting:p,logSyncingLocalCode:_,logRecoverableFailureToRemoveTypesDir:m,logUpdatedLocalCodeToRevision:b,logSyncingPagesToRevision:D,logSyncingTypesToRevision:l,logDependencyInstalling:S,logDependencyUninstalling:n=>{let i=o.logWithLoader({text:t.yellow(e("dependencies.uninstalling_dependency",{dependency:t.bold.yellow(n)}))});return()=>{i.stop(),A({dependencyName:n})}},logAllDependenciesInstalling:O,logOpeningBrowser:n=>{o.log(e("dev_command.opening_browser")),n&&o.log(e("dev_command.dev_server_url.approve_cert"))},logNoOpenedTab:n=>{let i=e("dev_command.no_open_editor",{key:t.bold.italic("e"),link:n});return o.log(i),i},logPublishRevision:({branchName:n,isLocalDeployment:i,currentRevision:r,latestRevision:g,preview:a})=>o.log(`
|
|
4
4
|
${a?`${e("publish_command.publish_details_preview")}
|
|
5
5
|
${t.underline(t.blue(a.deploymentShortUrl??a.deploymentUrl))}`:""}
|
|
6
6
|
|
|
@@ -29,4 +29,4 @@ ${a}
|
|
|
29
29
|
`,c.description){let d=JSON.parse(c.description);for(let h in d)s+=`
|
|
30
30
|
${f}${i} ${h} | `,s+=N(d[h].toString())}}),s+=`
|
|
31
31
|
${a}`,o.log(s)},logPreviewing:()=>{let n=o.logWithLoader({text:e("publish_command.creating_preview"),discardStdin:!1});return{success:()=>n.succeed(e("publish_command.creating_preview_success")),fail:()=>n.fail(e("publish_command.creating_preview_failed")),stop:()=>n.stop()}},logWmlChangesRecieved:n=>o.log(t.green(`WML changes recieved for ${n.join(",")}`)),logWmlLocalFilesChangedForPage:n=>o.log(t.green(`Detected changes to local WML for ${n}, updating editor...`)),logWmlWriteResult:({skip:n,write:i})=>o.log(t.green(`Performed WML save to disk: wrote ${i.length} files. ${n.length>0?`Skipped ${n.length} files because there were no changes.`:""}`))}}function C(e){return e instanceof Error?e.message:JSON.stringify(e)}export{re as a,me as b};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-6UKTFHIT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as p,d as D,e as N}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as p,d as D,e as N}from"./chunk-ACTAIGWA.js";import{a as m}from"./chunk-6UKTFHIT.js";import{a as P,d as y,e as _,f as d,j as h}from"./chunk-G55TTMWE.js";import{f as w}from"./chunk-64BT6U7B.js";import{a as k,b as v,c as R,d as x}from"./chunk-ZGQTJ77P.js";import{c as o,e as i}from"./chunk-XB57BXPK.js";import{i as s}from"./chunk-UO4ZAUJK.js";s();import j from"node:path";var U=async e=>R(j.join(e,"yarn.lock")),X=async e=>await U(e)?"yarn":"npm";s();s();var W={},I={};var Y={},$={};function q(e){var n={"api._api_base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"editor._base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"blocks._base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"create.editorx":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}]};return y(Object.assign(e,{domainToMappings:n}))}function F(e){var n=d(Y,{}),t=n.toJSON,a=n.fromJSON,r=d($,{}).fromJSON;function c(g){var u=g.host,l=t(e),f={entityFqdn:"wix.velo.npm.v1.npm_package_info",method:"POST",methodFqn:"wix.velo.npm.v1.UserCodeNpmPackages.ResolveNpmDependencies",url:q({protoPath:"/v1/npm/resolve-dependencies",data:l,host:u}),data:l,transformResponse:r};return f}return c.fromReq=a,c.__isAmbassador=!0,c}function O(e){var n=d(W,{}),t=n.toJSON,a=n.fromJSON,r=d(I,{}).fromJSON;function c(g){var u=g.host,l=t(e),f={entityFqdn:"wix.velo.npm.v1.npm_package_info",method:"GET",methodFqn:"wix.velo.npm.v1.UserCodeNpmPackages.GetResolveNpmDependenciesResult",url:q({protoPath:"/v1/npm/resolve-dependencies/{jobId}",data:l,host:u}),params:_(l),transformResponse:r};return f}return c.fromReq=a,c.__isAmbassador=!0,c}s();import{join as J}from"node:path";async function C(e){let n=J(e,"package.json"),t=await v(n);return Object.entries(t.dependencies??{}).map(([a,r])=>({name:a,version:r}))}async function ie(e,n){let t=J(e,"package.json"),a=await v(t);if(a.dependencies&&Object.keys(a.dependencies).length>0)throw new o({code:i.FailedMigrationToAnyNpm()});a.dependencies={},Object.keys(n.dependencies).forEach(r=>{a.devDependencies?.[r]&&delete a.devDependencies[r],a.dependencies[r]=n.dependencies[r]}),await k(t,a)}s();import{join as z}from"node:path";async function S(e,n){let t=z(e,w);try{await x(t,n)}catch(a){throw new o({code:i.FailedToWriteWixLock(),cause:a})}}var V=async(e,{authState:n})=>h(async()=>{try{let{data:t}=await m({type:"editor",authState:n},O({jobId:e})),a=N.parse(t);return h.resolveWith({wixLockFileUrl:a.result.npmDependenciesLockFile})}catch(t){if(P(t)&&t.response?.status===428)return!1;throw new o({code:i.FailedToGetResolveNpmDependenciesResult(),cause:t})}},{interval:3*1e3,timeout:2*60*1e3}),G=async(e,n)=>{let t=await m({type:"standalone"},{url:e});return S(n,t.data)},_e=async(e,{authState:n})=>{try{let t=await C(e),{data:a}=await m({type:"editor",authState:n},F({npmPackageInfos:t})),{jobId:r}=D.parse(a),{wixLockFileUrl:c}=await V(r,{authState:n});await G(c,e)}catch(t){throw new o({code:i.FailedToResolveNpmDependencies(),cause:t})}};s();s();var A=async(e,n,t)=>{let a=["add",`${e}${n?`@${n}`:""}`];return p("yarn",a,{cwd:t})},T=(e,n)=>p("yarn",["remove",e],{cwd:n}),b=e=>p("yarn",["install"],{cwd:e});s();var E=async(e,n,t)=>{let a=["install",`${e}${n?`@${n}`:""}`];return p("npm",a,{cwd:t})},L=(e,n)=>p("npm",["uninstall",e],{cwd:n}),M=e=>p("npm",["install"],{cwd:e});var Ee=async(e,n,t,a)=>{try{a==="yarn"?await A(e,n,t):await E(e,n,t)}catch(r){throw new o({code:i.FailedToInstallPackage({packageName:e,cause:r}),cause:r})}},Le=async(e,n,t)=>{try{t==="yarn"?await T(e,n):await L(e,n)}catch(a){throw new o({code:i.FailedToUninstallPackage({packageName:e,cause:a}),cause:a})}},Me=async(e,n)=>{try{n==="yarn"?await b(e):await M(e)}catch(t){throw new o({code:i.FailedToInstallPackages({cause:t}),cause:t})}};export{X as a,ie as b,_e as c,Ee as d,Le as e,Me as f};
|
|
4
|
+
//# sourceMappingURL=chunk-75LUETYR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{b as en}from"./chunk-
|
|
3
|
+
import{b as en}from"./chunk-Y47HDJI3.js";import{a as p}from"./chunk-NWTFQJ5S.js";import{a as x,c as y,e as Oe,i as s}from"./chunk-UO4ZAUJK.js";var Fe=y((qr,ke)=>{"use strict";s();var I=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$e=x("path"),tn=I?";":":",Le=en(),De=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_e=(e,t)=>{let n=t.colon||tn,r=e.match(/\//)||I&&e.match(/\\/)?[""]:[...I?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=I?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=I?o.split(n):[""];return I&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Me=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=_e(e,t),a=[],c=u=>new Promise((l,m)=>{if(u===r.length)return t.all&&a.length?l(a):m(De(e));let d=r[u],S=/^".*"$/.test(d)?d.slice(1,-1):d,h=$e.join(S,e),g=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(f(g,u,0))}),f=(u,l,m)=>new Promise((d,S)=>{if(m===o.length)return d(c(l+1));let h=o[m];Le(u+h,{pathExt:i},(g,b)=>{if(!g&&b)if(t.all)a.push(u+h);else return d(u+h);return d(f(u,l,m+1))})});return n?c(0).then(u=>n(null,u),n):c(0)},nn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=_e(e,t),i=[];for(let a=0;a<n.length;a++){let c=n[a],f=/^".*"$/.test(c)?c.slice(1,-1):c,u=$e.join(f,e),l=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let m=0;m<r.length;m++){let d=l+r[m];try{if(Le.sync(d,{pathExt:o}))if(t.all)i.push(d);else return d}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw De(e)};ke.exports=Me;Me.sync=nn});var ze=y((Vr,q)=>{"use strict";s();var Ke=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};q.exports=Ke;q.exports.default=Ke});var Ve=y((Yr,He)=>{"use strict";s();var We=x("path"),rn=Fe(),on=ze();function qe(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=rn.sync(e.command,{path:n[on({env:n})],pathExt:t?We.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return a&&(a=We.resolve(o?e.options.cwd:"",a)),a}function sn(e){return qe(e)||qe(e,!0)}He.exports=sn});var Xe=y((Qr,V)=>{"use strict";s();var H=/([()\][%!^"`<>&|;, *?])/g;function an(e){return e=e.replace(H,"^$1"),e}function cn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(H,"^$1"),t&&(e=e.replace(H,"^$1")),e}V.exports.command=an;V.exports.argument=cn});var Ze=y((eo,Ye)=>{"use strict";s();Ye.exports=/^#!(.*)/});var Je=y((no,Qe)=>{"use strict";s();var un=Ze();Qe.exports=(e="")=>{let t=e.match(un);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var tt=y((oo,et)=>{"use strict";s();var X=x("fs"),fn=Je();function ln(e){let n=Buffer.alloc(150),r;try{r=X.openSync(e,"r"),X.readSync(r,n,0,150,0),X.closeSync(r)}catch{}return fn(n.toString())}et.exports=ln});var it=y((so,ot)=>{"use strict";s();var dn=x("path"),nt=Ve(),rt=Xe(),pn=tt(),mn=process.platform==="win32",hn=/\.(?:com|exe)$/i,Sn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function yn(e){e.file=nt(e);let t=e.file&&pn(e.file);return t?(e.args.unshift(e.file),e.command=t,nt(e)):e.file}function gn(e){if(!mn)return e;let t=yn(e),n=!hn.test(t);if(e.options.forceShell||n){let r=Sn.test(t);e.command=dn.normalize(e.command),e.command=rt.command(e.command),e.args=e.args.map(i=>rt.argument(i,r));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function En(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:gn(r)}ot.exports=En});var ct=y((co,at)=>{"use strict";s();var Y=process.platform==="win32";function Z(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function bn(e,t){if(!Y)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=st(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function st(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawn"):null}function xn(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawnSync"):null}at.exports={hookChildProcess:bn,verifyENOENT:st,verifyENOENTSync:xn,notFoundError:Z}});var lt=y((fo,A)=>{"use strict";s();var ut=x("child_process"),Q=it(),J=ct();function ft(e,t,n){let r=Q(e,t,n),o=ut.spawn(r.command,r.args,r.options);return J.hookChildProcess(o,r),o}function wn(e,t,n){let r=Q(e,t,n),o=ut.spawnSync(r.command,r.args,r.options);return o.error=o.error||J.verifyENOENTSync(o.status,r),o}A.exports=ft;A.exports.spawn=ft;A.exports.sync=wn;A.exports._parse=Q;A.exports._enoent=J});var Dt=y((_i,Lt)=>{"use strict";s();var{PassThrough:Er}=x("stream");Lt.exports=function(){var e=[],t=new Er({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(a){return a!==i}),!e.length&&t.readable&&t.end()}}});s();var Pe;(function(e){e.UNKNOWN="UNKNOWN",e.EDITOR_REVISION="EDITOR_REVISION"})(Pe||(Pe={}));var Ne;(function(e){e.UNDEFINED="UNDEFINED",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.INVOKE_ERROR="INVOKE_ERROR",e.TIMEOUT="TIMEOUT",e.SKIPPED="SKIPPED"})(Ne||(Ne={}));var Ge;(function(e){e.UNDEFINED="UNDEFINED",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.RUNNING="RUNNING",e.ABORTED="ABORTED"})(Ge||(Ge={}));var w;(function(e){e.UNDEFINED="UNDEFINED",e.NONE="NONE",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(w||(w={}));var ve;(function(e){e.UNKNOWN="UNKNOWN",e.RELEASE_MANAGER="RELEASE_MANAGER",e.BLOCKS="BLOCKS",e.WIX_CLI="WIX_CLI",e.MOBILE_APP_BUILDER="MOBILE_APP_BUILDER",e.SEO="SEO",e.FEEDBACK="FEEDBACK"})(ve||(ve={}));var Ue;(function(e){e.NONE="NONE",e.SITE="SITE",e.RC="RC"})(Ue||(Ue={}));var Be;(function(e){e.ASC="ASC",e.DESC="DESC"})(Be||(Be={}));var je;(function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",e.MEMBER="MEMBER",e.WIX_USER="WIX_USER",e.APP="APP"})(je||(je={}));s();var Zt=Oe(lt(),1);import{Buffer as Lr}from"node:buffer";import Dr from"node:path";import Ie from"node:child_process";import W from"node:process";s();function ee(e){let t=typeof e=="string"?`
|
|
4
4
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}s();import U from"node:process";import C from"node:path";import In from"node:url";s();function v(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}function An(e={}){let{cwd:t=U.cwd(),path:n=U.env[v()],execPath:r=U.execPath}=e,o,i=t instanceof URL?In.fileURLToPath(t):t,a=C.resolve(i),c=[];for(;o!==a;)c.push(C.join(a,"node_modules/.bin")),o=a,a=C.resolve(a,"..");return c.push(C.resolve(i,r,"..")),[...c,n].join(C.delimiter)}function dt({env:e=U.env,...t}={}){e={...e};let n=v({env:e});return t.path=e[n],e[n]=An(t),e}s();s();var Cn=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Rn(o,i)&&r||Object.defineProperty(e,n,i)},Rn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Tn=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},On=(e,t)=>`/* Wrapped ${e}*/
|
|
5
5
|
${t}`,Pn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Nn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Gn=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=On.bind(null,r,t.toString());Object.defineProperty(o,"name",Nn),Object.defineProperty(e,"toString",{...Pn,value:o})};function te(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Cn(e,t,o,n);return Tn(e,t),Gn(e,t,r),e}var B=new WeakMap,pt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...a){if(B.set(i,++r),r===1)n=e.apply(this,a),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return te(i,e),B.set(i,r),i};pt.callCount=e=>{if(!B.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return B.get(e)};var mt=pt;s();import kn from"node:process";s();import{constants as jn}from"node:os";s();var ht=()=>{let e=yt-St+1;return Array.from({length:e},vn)},vn=(e,t)=>({name:`SIGRT${t+1}`,number:St+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),St=34,yt=64;s();import{constants as Un}from"node:os";s();var gt=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var ne=()=>{let e=ht();return[...gt,...e].map(Bn)},Bn=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{let{signals:{[e]:a}}=Un,c=a!==void 0;return{name:e,number:c?a:t,description:n,supported:c,action:r,forced:o,standard:i}};var $n=()=>{let e=ne();return Object.fromEntries(e.map(Ln))},Ln=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a}],Et=$n(),Dn=()=>{let e=ne(),t=65,n=Array.from({length:t},(r,o)=>_n(o,e));return Object.assign({},...n)},_n=(e,t)=>{let n=Mn(e,t);if(n===void 0)return{};let{name:r,description:o,supported:i,action:a,forced:c,standard:f}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:a,forced:c,standard:f}}},Mn=(e,t)=>{let n=t.find(({name:r})=>jn.signals[r]===e);return n!==void 0?n:t.find(r=>r.number===e)},_o=Dn();var Fn=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",R=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:a,escapedCommand:c,timedOut:f,isCanceled:u,killed:l,parsed:{options:{timeout:m,cwd:d=kn.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let S=o===void 0?void 0:Et[o].description,h=r&&r.code,b=`Command ${Fn({timedOut:f,timeout:m,errorCode:h,signal:o,signalDescription:S,exitCode:i,isCanceled:u})}: ${a}`,P=Object.prototype.toString.call(r)==="[object Error]",N=P?`${b}
|
|
6
6
|
${r.message}`:b,G=[N,t,e].filter(Boolean).join(`
|
|
7
7
|
`);return P?(r.originalMessage=r.message,r.message=G):r=new Error(G),r.shortMessage=N,r.command=a,r.escapedCommand=c,r.exitCode=i,r.signal=o,r.signalDescription=S,r.stdout=e,r.stderr=t,r.cwd=d,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!f,r.isCanceled=u,r.killed=l&&!f,r};s();var j=["stdin","stdout","stderr"],Kn=e=>j.some(t=>e[t]!==void 0),bt=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return j.map(r=>e[r]);if(Kn(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${j.map(r=>`\`${r}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,j.length);return Array.from({length:n},(r,o)=>t[o])};s();import qn from"node:os";s();s();var E=[];E.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&E.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&E.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var $=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",re=Symbol.for("signal-exit emitter"),oe=globalThis,zn=Object.defineProperty.bind(Object),ie=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(oe[re])return oe[re];zn(oe,re,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},L=class{},Wn=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),se=class extends L{onExit(){return()=>{}}load(){}unload(){}},ae=class extends L{#s=ce.platform==="win32"?"SIGINT":"SIGHUP";#t=new ie;#e;#o;#i;#r={};#n=!1;constructor(t){super(),this.#e=t,this.#r={};for(let n of E)this.#r[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#t,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let a=this.#t.emit("exit",null,n),c=n==="SIGHUP"?this.#s:n;a||t.kill(t.pid,c)}};this.#i=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!$(this.#e))return()=>{};this.#n===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#t.on(r,t),()=>{this.#t.removeListener(r,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#t.count+=1;for(let t of E)try{let n=this.#r[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#c(t,...n),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#n&&(this.#n=!1,E.forEach(t=>{let n=this.#r[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#i,this.#t.count-=1)}#a(t){return $(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#c(t,...n){let r=this.#o;if(t==="exit"&&$(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#t.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},ce=globalThis.process,{onExit:xt,load:Zo,unload:Qo}=Wn($(ce)?new ae(ce):new se);var Hn=1e3*5,wt=(e,t="SIGTERM",n={})=>{let r=e(t);return Vn(e,t,n,r),r},Vn=(e,t,n,r)=>{if(!Xn(t,n,r))return;let o=Zn(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},Xn=(e,{forceKillAfterTimeout:t},n)=>Yn(e)&&t!==!1&&n,Yn=e=>e===qn.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Zn=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Hn;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},It=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Qn=(e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},At=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===void 0)return r;let o,i=new Promise((c,f)=>{o=setTimeout(()=>{Qn(e,n,f)},t)}),a=r.finally(()=>{clearTimeout(o)});return Promise.race([i,a])},Ct=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Rt=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let o=xt(()=>{e.kill()});return r.finally(()=>{o()})};s();import{createWriteStream as Jn}from"node:fs";import{ChildProcess as er}from"node:child_process";s();function D(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function ue(e){return D(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var tr=e=>e instanceof er&&typeof e.then=="function",fe=(e,t,n)=>{if(typeof n=="string")return e[t].pipe(Jn(n)),e;if(ue(n))return e[t].pipe(n),e;if(!tr(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ue(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n},Tt=e=>{e.stdout!==null&&(e.pipeStdout=fe.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=fe.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=fe.bind(void 0,e,"all"))};s();import{createReadStream as br,readFileSync as xr}from"node:fs";import{setTimeout as wr}from"node:timers/promises";s();s();s();var T=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,finalize:c},{maxBuffer:f=Number.POSITIVE_INFINITY}={})=>{if(!rr(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let u=t();u.length=0;try{for await(let l of e){let m=or(l),d=n[m](l,u);Nt({convertedChunk:d,state:u,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:f})}return nr({state:u,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,maxBuffer:f}),c(u)}catch(l){throw l.bufferedData=c(u),l}},nr=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{let a=o(e);a!==void 0&&Nt({convertedChunk:a,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},Nt=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{let a=n(e),c=t.length+a;if(c<=i){Ot(e,t,o,c);return}let f=r(e,i-t.length);throw f!==void 0&&Ot(f,t,o,i),new _},Ot=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},rr=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",or=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let n=Pt.call(e);return n==="[object ArrayBuffer]"?"arrayBuffer":n==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Pt.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Pt}=Object.prototype,_=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};s();var le=e=>e,de=()=>{},pe=({contents:e})=>e,M=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},k=e=>e.length;s();async function me(e,t){return T(e,pr,t)}var ir=()=>({contents:new ArrayBuffer(0)}),sr=e=>ar.encode(e),ar=new TextEncoder,Gt=e=>new Uint8Array(e),vt=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),cr=(e,t)=>e.slice(0,t),ur=(e,{contents:t,length:n},r)=>{let o=jt()?lr(t,r):fr(t,r);return new Uint8Array(o).set(e,n),o},fr=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(Bt(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},lr=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:Bt(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},Bt=e=>Ut**Math.ceil(Math.log(e)/Math.log(Ut)),Ut=2,dr=({contents:e,length:t})=>jt()?e:e.slice(0,t),jt=()=>"resize"in ArrayBuffer.prototype,pr={init:ir,convertChunk:{string:sr,buffer:Gt,arrayBuffer:Gt,dataView:vt,typedArray:vt,others:M},getSize:k,truncateChunk:cr,addChunk:ur,getFinalChunk:de,finalize:dr};s();async function F(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return $t(await me(e,t))}catch(n){throw n.bufferedData!==void 0&&(n.bufferedData=$t(n.bufferedData)),n}}var $t=e=>globalThis.Buffer.from(e);s();async function he(e,t){return T(e,gr,t)}var mr=()=>({contents:"",textDecoder:new TextDecoder}),K=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),hr=(e,{contents:t})=>t+e,Sr=(e,t)=>e.slice(0,t),yr=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},gr={init:mr,convertChunk:{string:le,buffer:K,arrayBuffer:K,dataView:K,typedArray:K,others:M},getSize:k,truncateChunk:Sr,addChunk:hr,getFinalChunk:yr,finalize:pe};var _t=Oe(Dt(),1),Mt=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Ir=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),xr(t)),kt=e=>{let t=Ir(e);if(D(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},Ar=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),br(t)),Ft=(e,t)=>{let n=Ar(t);n!==void 0&&(D(n)?n.pipe(e.stdin):e.stdin.end(n))},Kt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,_t.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},Se=async(e,t)=>{if(!(!e||t===void 0)){await wr(0),e.destroy();try{return await t}catch(n){return n.bufferedData}}},ye=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t==="utf8"||t==="utf-8"?he(e,{maxBuffer:r}):t===null||t==="buffer"?F(e,{maxBuffer:r}):Cr(e,r,t)},Cr=async(e,t,n)=>(await F(e,{maxBuffer:t})).toString(n),zt=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},a)=>{let c=ye(e,{encoding:r,buffer:o,maxBuffer:i}),f=ye(t,{encoding:r,buffer:o,maxBuffer:i}),u=ye(n,{encoding:r,buffer:o,maxBuffer:i*2});try{return await Promise.all([a,c,f,u])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Se(e,c),Se(t,f),Se(n,u)])}};s();var Rr=(async()=>{})().constructor.prototype,Tr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Rr,e)]),ge=(e,t)=>{for(let[n,r]of Tr){let o=typeof t=="function"?(...i)=>Reflect.apply(r.value,t(),i):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Wt=e=>new Promise((t,n)=>{e.on("exit",(r,o)=>{t({exitCode:r,signal:o})}),e.on("error",r=>{n(r)}),e.stdin&&e.stdin.on("error",r=>{n(r)})});s();import{Buffer as Or}from"node:buffer";import{ChildProcess as Pr}from"node:child_process";var Vt=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Nr=/^[\w.-]+$/,Gr=e=>typeof e!="string"||Nr.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Ee=(e,t)=>Vt(e,t).join(" "),be=(e,t)=>Vt(e,t).map(n=>Gr(n)).join(" "),vr=/ +/g;var qt=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Pr)&&"stdout"in e){let n=typeof e.stdout;if(n==="string")return e.stdout;if(Or.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${n}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},Ht=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Ur=({templates:e,expressions:t,tokens:n,index:r,template:o})=>{let i=o??e.raw[r],a=i.split(vr).filter(Boolean),c=Ht(n,a,i.startsWith(" "));if(r===t.length)return c;let f=t[r],u=Array.isArray(f)?f.map(l=>qt(l)):[qt(f)];return Ht(c,u,i.endsWith(" "))},xe=(e,t)=>{let n=[];for(let[r,o]of e.entries())n=Ur({templates:e,expressions:t,tokens:n,index:r,template:o});return n};s();import{debuglog as Br}from"node:util";import jr from"node:process";var Xt=Br("execa").enabled,z=(e,t)=>String(e).padStart(t,"0"),$r=()=>{let e=new Date;return`${z(e.getHours(),2)}:${z(e.getMinutes(),2)}:${z(e.getSeconds(),2)}.${z(e.getMilliseconds(),3)}`},we=(e,{verbose:t})=>{t&&jr.stderr.write(`[${$r()}] ${e}
|
|
8
8
|
`)};var _r=1e3*1e3*100,Mr=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{let i=t?{...W.env,...e}:e;return n?dt({env:i,cwd:r,execPath:o}):i},Qt=(e,t,n={})=>{let r=Zt.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:_r,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||W.cwd(),execPath:W.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Xt,...n},n.env=Mr(n),n.stdio=bt(n),W.platform==="win32"&&Dr.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},O=(e,t,n)=>typeof t!="string"&&!Lr.isBuffer(t)?n===void 0?void 0:"":e.stripFinalNewline?ee(t):t;function kr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options),Ct(r.options);let a;try{a=Ie.spawn(r.file,r.args,r.options)}catch(S){let h=new Ie.ChildProcess,g=Promise.reject(R({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ge(h,g),h}let c=Wt(a),f=At(a,r.options,c),u=Rt(a,r.options,f),l={isCanceled:!1};a.kill=wt.bind(null,a.kill.bind(a)),a.cancel=It.bind(null,a,l);let d=mt(async()=>{let[{error:S,exitCode:h,signal:g,timedOut:b},P,N,G]=await zt(a,r.options,u),Ae=O(r.options,P),Ce=O(r.options,N),Re=O(r.options,G);if(S||h!==0||g!==null){let Te=R({error:S,exitCode:h,signal:g,stdout:Ae,stderr:Ce,all:Re,command:o,escapedCommand:i,parsed:r,timedOut:b,isCanceled:l.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:a.killed});if(!r.options.reject)return Te;throw Te}return{command:o,escapedCommand:i,exitCode:0,stdout:Ae,stderr:Ce,all:Re,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Ft(a,r.options),a.all=Kt(a,r.options),Tt(a),ge(a,d),a}function Fr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options);let a=kt(r.options),c;try{c=Ie.spawnSync(r.file,r.args,{...r.options,input:a})}catch(l){throw R({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}let f=O(r.options,c.stdout,c.error),u=O(r.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let l=R({stdout:f,stderr:u,error:c.error,signal:c.signal,exitCode:c.status,command:o,escapedCommand:i,parsed:r,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!r.options.reject)return l;throw l}return{command:o,escapedCommand:i,exitCode:0,stdout:f,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var Kr=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:"inherit"}:{},Yt=(e={})=>({preferLocal:!0,...Kr(e),...e});function Jt(e){function t(n,...r){if(!Array.isArray(n))return Jt({...e,...n});let[o,...i]=xe(n,r);return kr(o,i,Yt(e))}return t.sync=(n,...r)=>{if(!Array.isArray(n))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=xe(n,r);return Fr(o,i,Yt(e))},t}var bs=Jt();s();var Cs=p.object({deploymentInfo:p.object({deploymentId:p.string(),deploymentUrl:p.string().url(),deploymentShortUrl:p.string().nullish(),deployedRevision:p.string(),isPublishPipelineDeployment:p.boolean()})}),Rs=p.object({jobId:p.string().uuid()}),Ts=p.object({result:p.object({npmDependenciesLockFile:p.string().url()})}),Os=p.object({deployment:p.object({deploymentPipelinesStatus:p.enum([w.IN_PROGRESS,w.SUCCESS,w.ERROR])})});export{kr as a,w as b,Cs as c,Rs as d,Ts as e,Os as f};
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-ACTAIGWA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as $v,b as zv}from"./chunk-HSRXZLET.js";import{d as qv}from"./chunk-LCQ5YWX3.js";import{a as jv}from"./chunk-CCZ55TG3.js";import{a as QI}from"./chunk-2U7VPZZN.js";import{a as ZI}from"./chunk-U37RKZCU.js";import{c as Mv,d as Uv,e as Zd,f as ua}from"./chunk-DWUKJO5Z.js";import{d as YI}from"./chunk-PAIXCGVA.js";import{a as XI,b as Cn,c as VI}from"./chunk-CNRVJIPG.js";import{a as WI,b as KI,d as ha}from"./chunk-TVMTOQUC.js";import{a as Nv}from"./chunk-ZGQTJ77P.js";import{a as It}from"./chunk-NWTFQJ5S.js";import{b as Yd,c as Iv,e as Pv}from"./chunk-XB57BXPK.js";import{a as w,c as S,e as Ss,g as __dirname,i as y}from"./chunk-UO4ZAUJK.js";var Hv=S((la,ep)=>{"use strict";y();(function(e,t){typeof la=="object"&&typeof ep=="object"?ep.exports=t():typeof define=="function"&&define.amd?define([],t):typeof la=="object"?la.esprima=t():e.esprima=t()})(la,function(){return function(i){var e={};function t(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return i[r].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}return t.m=i,t.c=e,t.p="",t(0)}([function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(1),s=t(3),n=t(8),o=t(15);function a(d,h,u){var p=null,g=function(T,O){u&&u(T,O),p&&p.visit(T,O)},E=typeof u=="function"?g:null,v=!1;if(h){v=typeof h.comment=="boolean"&&h.comment;var D=typeof h.attachComment=="boolean"&&h.attachComment;(v||D)&&(p=new r.CommentHandler,p.attach=D,h.comment=!0,E=g)}var x=!1;h&&typeof h.sourceType=="string"&&(x=h.sourceType==="module");var b;h&&typeof h.jsx=="boolean"&&h.jsx?b=new s.JSXParser(d,h,E):b=new n.Parser(d,h,E);var _=x?b.parseModule():b.parseScript(),R=_;return v&&p&&(R.comments=p.comments),b.config.tokens&&(R.tokens=b.tokens),b.config.tolerant&&(R.errors=b.errorHandler.errors),R}e.parse=a;function c(d,h,u){var p=h||{};return p.sourceType="module",a(d,p,u)}e.parseModule=c;function l(d,h,u){var p=h||{};return p.sourceType="script",a(d,p,u)}e.parseScript=l;function f(d,h,u){var p=new o.Tokenizer(d,h),g;g=[];try{for(;;){var E=p.getNextToken();if(!E)break;u&&(E=u(E)),g.push(E)}}catch(v){p.errorHandler.tolerate(v)}return p.errorHandler.tolerant&&(g.errors=p.errors()),g}e.tokenize=f;var m=t(2);e.Syntax=m.Syntax,e.version="4.0.1"},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function n(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return n.prototype.insertInnerComments=function(o,a){if(o.type===r.Syntax.BlockStatement&&o.body.length===0){for(var c=[],l=this.leading.length-1;l>=0;--l){var f=this.leading[l];a.end.offset>=f.start&&(c.unshift(f.comment),this.leading.splice(l,1),this.trailing.splice(l,1))}c.length&&(o.innerComments=c)}},n.prototype.findTrailingComments=function(o){var a=[];if(this.trailing.length>0){for(var c=this.trailing.length-1;c>=0;--c){var l=this.trailing[c];l.start>=o.end.offset&&a.unshift(l.comment)}return this.trailing.length=0,a}var f=this.stack[this.stack.length-1];if(f&&f.node.trailingComments){var m=f.node.trailingComments[0];m&&m.range[0]>=o.end.offset&&(a=f.node.trailingComments,delete f.node.trailingComments)}return a},n.prototype.findLeadingComments=function(o){for(var a=[],c;this.stack.length>0;){var l=this.stack[this.stack.length-1];if(l&&l.start>=o.start.offset)c=l.node,this.stack.pop();else break}if(c){for(var f=c.leadingComments?c.leadingComments.length:0,m=f-1;m>=0;--m){var d=c.leadingComments[m];d.range[1]<=o.start.offset&&(a.unshift(d),c.leadingComments.splice(m,1))}return c.leadingComments&&c.leadingComments.length===0&&delete c.leadingComments,a}for(var m=this.leading.length-1;m>=0;--m){var l=this.leading[m];l.start<=o.start.offset&&(a.unshift(l.comment),this.leading.splice(m,1))}return a},n.prototype.visitNode=function(o,a){if(!(o.type===r.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,a);var c=this.findTrailingComments(a),l=this.findLeadingComments(a);l.length>0&&(o.leadingComments=l),c.length>0&&(o.trailingComments=c),this.stack.push({node:o,start:a.start.offset})}},n.prototype.visitComment=function(o,a){var c=o.type[0]==="L"?"Line":"Block",l={type:c,value:o.value};if(o.range&&(l.range=o.range),o.loc&&(l.loc=o.loc),this.comments.push(l),this.attach){var f={comment:{type:c,value:o.value,range:[a.start.offset,a.end.offset]},start:a.start.offset};o.loc&&(f.comment.loc=o.loc),o.type=c,this.leading.push(f),this.trailing.push(f)}},n.prototype.visit=function(o,a){o.type==="LineComment"?this.visitComment(o,a):o.type==="BlockComment"?this.visitComment(o,a):this.attach&&this.visitNode(o,a)},n}();e.CommentHandler=s},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,e,t){"use strict";var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])};return function(u,p){h(u,p);function g(){this.constructor=u}u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=t(4),n=t(5),o=t(6),a=t(7),c=t(8),l=t(13),f=t(14);l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";function m(h){var u;switch(h.type){case o.JSXSyntax.JSXIdentifier:var p=h;u=p.name;break;case o.JSXSyntax.JSXNamespacedName:var g=h;u=m(g.namespace)+":"+m(g.name);break;case o.JSXSyntax.JSXMemberExpression:var E=h;u=m(E.object)+"."+m(E.property);break;default:break}return u}var d=function(h){r(u,h);function u(p,g,E){return h.call(this,p,g,E)||this}return u.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():h.prototype.parsePrimaryExpression.call(this)},u.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},u.prototype.finishJSX=function(){this.nextToken()},u.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},u.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.scanXHTMLEntity=function(p){for(var g="&",E=!0,v=!1,D=!1,x=!1;!this.scanner.eof()&&E&&!v;){var b=this.scanner.source[this.scanner.index];if(b===p)break;if(v=b===";",g+=b,++this.scanner.index,!v)switch(g.length){case 2:D=b==="#";break;case 3:D&&(x=b==="x",E=x||s.Character.isDecimalDigit(b.charCodeAt(0)),D=D&&!x);break;default:E=E&&!(D&&!s.Character.isDecimalDigit(b.charCodeAt(0))),E=E&&!(x&&!s.Character.isHexDigit(b.charCodeAt(0)));break}}if(E&&v&&g.length>2){var _=g.substr(1,g.length-2);D&&_.length>1?g=String.fromCharCode(parseInt(_.substr(1),10)):x&&_.length>2?g=String.fromCharCode(parseInt("0"+_.substr(1),16)):!D&&!x&&f.XHTMLEntities[_]&&(g=f.XHTMLEntities[_])}return g},u.prototype.lexJSX=function(){var p=this.scanner.source.charCodeAt(this.scanner.index);if(p===60||p===62||p===47||p===58||p===61||p===123||p===125){var g=this.scanner.source[this.scanner.index++];return{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(p===34||p===39){for(var E=this.scanner.index,v=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var x=this.scanner.source[this.scanner.index++];if(x===v)break;x==="&"?D+=this.scanXHTMLEntity(v):D+=x}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===46){var b=this.scanner.source.charCodeAt(this.scanner.index+1),_=this.scanner.source.charCodeAt(this.scanner.index+2),g=b===46&&_===46?"...":".",E=this.scanner.index;return this.scanner.index+=g.length,{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(p)&&p!==92){var E=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var x=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(x)&&x!==92)++this.scanner.index;else if(x===45)++this.scanner.index;else break}var R=this.scanner.source.slice(E,this.scanner.index);return{type:100,value:R,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}return this.scanner.lex()},u.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var p=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(p)),p},u.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var p=this.scanner.index,g="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index];if(E==="{"||E==="<")break;++this.scanner.index,g+=E,s.Character.isLineTerminator(E.charCodeAt(0))&&(++this.scanner.lineNumber,E==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
3
|
+
import{a as $v,b as zv}from"./chunk-Y47HDJI3.js";import{d as qv}from"./chunk-LCQ5YWX3.js";import{a as jv}from"./chunk-CCZ55TG3.js";import{a as QI}from"./chunk-2U7VPZZN.js";import{a as ZI}from"./chunk-U37RKZCU.js";import{c as Mv,d as Uv,e as Zd,f as ua}from"./chunk-G55TTMWE.js";import{d as YI}from"./chunk-PAIXCGVA.js";import{a as XI,b as Cn,c as VI}from"./chunk-CNRVJIPG.js";import{a as WI,b as KI,d as ha}from"./chunk-TVMTOQUC.js";import{a as Nv}from"./chunk-ZGQTJ77P.js";import{a as It}from"./chunk-NWTFQJ5S.js";import{b as Yd,c as Iv,e as Pv}from"./chunk-XB57BXPK.js";import{a as w,c as S,e as Ss,g as __dirname,i as y}from"./chunk-UO4ZAUJK.js";var Hv=S((la,ep)=>{"use strict";y();(function(e,t){typeof la=="object"&&typeof ep=="object"?ep.exports=t():typeof define=="function"&&define.amd?define([],t):typeof la=="object"?la.esprima=t():e.esprima=t()})(la,function(){return function(i){var e={};function t(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return i[r].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}return t.m=i,t.c=e,t.p="",t(0)}([function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(1),s=t(3),n=t(8),o=t(15);function a(d,h,u){var p=null,g=function(T,O){u&&u(T,O),p&&p.visit(T,O)},E=typeof u=="function"?g:null,v=!1;if(h){v=typeof h.comment=="boolean"&&h.comment;var D=typeof h.attachComment=="boolean"&&h.attachComment;(v||D)&&(p=new r.CommentHandler,p.attach=D,h.comment=!0,E=g)}var x=!1;h&&typeof h.sourceType=="string"&&(x=h.sourceType==="module");var b;h&&typeof h.jsx=="boolean"&&h.jsx?b=new s.JSXParser(d,h,E):b=new n.Parser(d,h,E);var _=x?b.parseModule():b.parseScript(),R=_;return v&&p&&(R.comments=p.comments),b.config.tokens&&(R.tokens=b.tokens),b.config.tolerant&&(R.errors=b.errorHandler.errors),R}e.parse=a;function c(d,h,u){var p=h||{};return p.sourceType="module",a(d,p,u)}e.parseModule=c;function l(d,h,u){var p=h||{};return p.sourceType="script",a(d,p,u)}e.parseScript=l;function f(d,h,u){var p=new o.Tokenizer(d,h),g;g=[];try{for(;;){var E=p.getNextToken();if(!E)break;u&&(E=u(E)),g.push(E)}}catch(v){p.errorHandler.tolerate(v)}return p.errorHandler.tolerant&&(g.errors=p.errors()),g}e.tokenize=f;var m=t(2);e.Syntax=m.Syntax,e.version="4.0.1"},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function n(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return n.prototype.insertInnerComments=function(o,a){if(o.type===r.Syntax.BlockStatement&&o.body.length===0){for(var c=[],l=this.leading.length-1;l>=0;--l){var f=this.leading[l];a.end.offset>=f.start&&(c.unshift(f.comment),this.leading.splice(l,1),this.trailing.splice(l,1))}c.length&&(o.innerComments=c)}},n.prototype.findTrailingComments=function(o){var a=[];if(this.trailing.length>0){for(var c=this.trailing.length-1;c>=0;--c){var l=this.trailing[c];l.start>=o.end.offset&&a.unshift(l.comment)}return this.trailing.length=0,a}var f=this.stack[this.stack.length-1];if(f&&f.node.trailingComments){var m=f.node.trailingComments[0];m&&m.range[0]>=o.end.offset&&(a=f.node.trailingComments,delete f.node.trailingComments)}return a},n.prototype.findLeadingComments=function(o){for(var a=[],c;this.stack.length>0;){var l=this.stack[this.stack.length-1];if(l&&l.start>=o.start.offset)c=l.node,this.stack.pop();else break}if(c){for(var f=c.leadingComments?c.leadingComments.length:0,m=f-1;m>=0;--m){var d=c.leadingComments[m];d.range[1]<=o.start.offset&&(a.unshift(d),c.leadingComments.splice(m,1))}return c.leadingComments&&c.leadingComments.length===0&&delete c.leadingComments,a}for(var m=this.leading.length-1;m>=0;--m){var l=this.leading[m];l.start<=o.start.offset&&(a.unshift(l.comment),this.leading.splice(m,1))}return a},n.prototype.visitNode=function(o,a){if(!(o.type===r.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,a);var c=this.findTrailingComments(a),l=this.findLeadingComments(a);l.length>0&&(o.leadingComments=l),c.length>0&&(o.trailingComments=c),this.stack.push({node:o,start:a.start.offset})}},n.prototype.visitComment=function(o,a){var c=o.type[0]==="L"?"Line":"Block",l={type:c,value:o.value};if(o.range&&(l.range=o.range),o.loc&&(l.loc=o.loc),this.comments.push(l),this.attach){var f={comment:{type:c,value:o.value,range:[a.start.offset,a.end.offset]},start:a.start.offset};o.loc&&(f.comment.loc=o.loc),o.type=c,this.leading.push(f),this.trailing.push(f)}},n.prototype.visit=function(o,a){o.type==="LineComment"?this.visitComment(o,a):o.type==="BlockComment"?this.visitComment(o,a):this.attach&&this.visitNode(o,a)},n}();e.CommentHandler=s},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,e,t){"use strict";var r=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])};return function(u,p){h(u,p);function g(){this.constructor=u}u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=t(4),n=t(5),o=t(6),a=t(7),c=t(8),l=t(13),f=t(14);l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";function m(h){var u;switch(h.type){case o.JSXSyntax.JSXIdentifier:var p=h;u=p.name;break;case o.JSXSyntax.JSXNamespacedName:var g=h;u=m(g.namespace)+":"+m(g.name);break;case o.JSXSyntax.JSXMemberExpression:var E=h;u=m(E.object)+"."+m(E.property);break;default:break}return u}var d=function(h){r(u,h);function u(p,g,E){return h.call(this,p,g,E)||this}return u.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():h.prototype.parsePrimaryExpression.call(this)},u.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},u.prototype.finishJSX=function(){this.nextToken()},u.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},u.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},u.prototype.scanXHTMLEntity=function(p){for(var g="&",E=!0,v=!1,D=!1,x=!1;!this.scanner.eof()&&E&&!v;){var b=this.scanner.source[this.scanner.index];if(b===p)break;if(v=b===";",g+=b,++this.scanner.index,!v)switch(g.length){case 2:D=b==="#";break;case 3:D&&(x=b==="x",E=x||s.Character.isDecimalDigit(b.charCodeAt(0)),D=D&&!x);break;default:E=E&&!(D&&!s.Character.isDecimalDigit(b.charCodeAt(0))),E=E&&!(x&&!s.Character.isHexDigit(b.charCodeAt(0)));break}}if(E&&v&&g.length>2){var _=g.substr(1,g.length-2);D&&_.length>1?g=String.fromCharCode(parseInt(_.substr(1),10)):x&&_.length>2?g=String.fromCharCode(parseInt("0"+_.substr(1),16)):!D&&!x&&f.XHTMLEntities[_]&&(g=f.XHTMLEntities[_])}return g},u.prototype.lexJSX=function(){var p=this.scanner.source.charCodeAt(this.scanner.index);if(p===60||p===62||p===47||p===58||p===61||p===123||p===125){var g=this.scanner.source[this.scanner.index++];return{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(p===34||p===39){for(var E=this.scanner.index,v=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var x=this.scanner.source[this.scanner.index++];if(x===v)break;x==="&"?D+=this.scanXHTMLEntity(v):D+=x}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===46){var b=this.scanner.source.charCodeAt(this.scanner.index+1),_=this.scanner.source.charCodeAt(this.scanner.index+2),g=b===46&&_===46?"...":".",E=this.scanner.index;return this.scanner.index+=g.length,{type:7,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}if(p===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(p)&&p!==92){var E=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var x=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(x)&&x!==92)++this.scanner.index;else if(x===45)++this.scanner.index;else break}var R=this.scanner.source.slice(E,this.scanner.index);return{type:100,value:R,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:E,end:this.scanner.index}}return this.scanner.lex()},u.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var p=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(p)),p},u.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var p=this.scanner.index,g="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index];if(E==="{"||E==="<")break;++this.scanner.index,g+=E,s.Character.isLineTerminator(E.charCodeAt(0))&&(++this.scanner.lineNumber,E==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
4
4
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:g,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:p,end:this.scanner.index};return g.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},u.prototype.peekJSXToken=function(){var p=this.scanner.saveState();this.scanner.scanComments();var g=this.lexJSX();return this.scanner.restoreState(p),g},u.prototype.expectJSX=function(p){var g=this.nextJSXToken();(g.type!==7||g.value!==p)&&this.throwUnexpectedToken(g)},u.prototype.matchJSX=function(p){var g=this.peekJSXToken();return g.type===7&&g.value===p},u.prototype.parseJSXIdentifier=function(){var p=this.createJSXNode(),g=this.nextJSXToken();return g.type!==100&&this.throwUnexpectedToken(g),this.finalize(p,new n.JSXIdentifier(g.value))},u.prototype.parseJSXElementName=function(){var p=this.createJSXNode(),g=this.parseJSXIdentifier();if(this.matchJSX(":")){var E=g;this.expectJSX(":");var v=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXNamespacedName(E,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var D=g;this.expectJSX(".");var x=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXMemberExpression(D,x))}return g},u.prototype.parseJSXAttributeName=function(){var p=this.createJSXNode(),g,E=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=E;this.expectJSX(":");var D=this.parseJSXIdentifier();g=this.finalize(p,new n.JSXNamespacedName(v,D))}else g=E;return g},u.prototype.parseJSXStringLiteralAttribute=function(){var p=this.createJSXNode(),g=this.nextJSXToken();g.type!==8&&this.throwUnexpectedToken(g);var E=this.getTokenRaw(g);return this.finalize(p,new a.Literal(g.value,E))},u.prototype.parseJSXExpressionAttribute=function(){var p=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var g=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(p,new n.JSXExpressionContainer(g))},u.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},u.prototype.parseJSXNameValueAttribute=function(){var p=this.createJSXNode(),g=this.parseJSXAttributeName(),E=null;return this.matchJSX("=")&&(this.expectJSX("="),E=this.parseJSXAttributeValue()),this.finalize(p,new n.JSXAttribute(g,E))},u.prototype.parseJSXSpreadAttribute=function(){var p=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var g=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(p,new n.JSXSpreadAttribute(g))},u.prototype.parseJSXAttributes=function(){for(var p=[];!this.matchJSX("/")&&!this.matchJSX(">");){var g=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();p.push(g)}return p},u.prototype.parseJSXOpeningElement=function(){var p=this.createJSXNode();this.expectJSX("<");var g=this.parseJSXElementName(),E=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(p,new n.JSXOpeningElement(g,v,E))},u.prototype.parseJSXBoundaryElement=function(){var p=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var g=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(p,new n.JSXClosingElement(g))}var E=this.parseJSXElementName(),v=this.parseJSXAttributes(),D=this.matchJSX("/");return D&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(p,new n.JSXOpeningElement(E,D,v))},u.prototype.parseJSXEmptyExpression=function(){var p=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(p,new n.JSXEmptyExpression)},u.prototype.parseJSXExpressionContainer=function(){var p=this.createJSXNode();this.expectJSX("{");var g;return this.matchJSX("}")?(g=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),g=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(p,new n.JSXExpressionContainer(g))},u.prototype.parseJSXChildren=function(){for(var p=[];!this.scanner.eof();){var g=this.createJSXChildNode(),E=this.nextJSXText();if(E.start<E.end){var v=this.getTokenRaw(E),D=this.finalize(g,new n.JSXText(E.value,v));p.push(D)}if(this.scanner.source[this.scanner.index]==="{"){var x=this.parseJSXExpressionContainer();p.push(x)}else break}return p},u.prototype.parseComplexJSXElement=function(p){for(var g=[];!this.scanner.eof();){p.children=p.children.concat(this.parseJSXChildren());var E=this.createJSXChildNode(),v=this.parseJSXBoundaryElement();if(v.type===o.JSXSyntax.JSXOpeningElement){var D=v;if(D.selfClosing){var x=this.finalize(E,new n.JSXElement(D,[],null));p.children.push(x)}else g.push(p),p={node:E,opening:D,closing:null,children:[]}}if(v.type===o.JSXSyntax.JSXClosingElement){p.closing=v;var b=m(p.opening.name),_=m(p.closing.name);if(b!==_&&this.tolerateError("Expected corresponding JSX closing tag for %0",b),g.length>0){var x=this.finalize(p.node,new n.JSXElement(p.opening,p.children,p.closing));p=g[g.length-1],p.children.push(x),g.pop()}else break}}return p},u.prototype.parseJSXElement=function(){var p=this.createJSXNode(),g=this.parseJSXOpeningElement(),E=[],v=null;if(!g.selfClosing){var D=this.parseComplexJSXElement({node:p,opening:g,closing:v,children:E});E=D.children,v=D.closing}return this.finalize(p,new n.JSXElement(g,E,v))},u.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var p=this.parseJSXElement();return this.finishJSX(),p},u.prototype.isStartOfExpression=function(){return h.prototype.isStartOfExpression.call(this)||this.match("<")},u}(c.Parser);e.JSXParser=d},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,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\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(r){return r<65536?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10))+String.fromCharCode(56320+(r-65536&1023))},isWhiteSpace:function(r){return r===32||r===9||r===11||r===12||r===160||r>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(r)>=0},isLineTerminator:function(r){return r===10||r===13||r===8232||r===8233},isIdentifierStart:function(r){return r===36||r===95||r>=65&&r<=90||r>=97&&r<=122||r===92||r>=128&&t.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(r))},isIdentifierPart:function(r){return r===36||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||r===92||r>=128&&t.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(r))},isDecimalDigit:function(r){return r>=48&&r<=57},isHexDigit:function(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102},isOctalDigit:function(r){return r>=48&&r<=55}}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(6),s=function(){function p(g){this.type=r.JSXSyntax.JSXClosingElement,this.name=g}return p}();e.JSXClosingElement=s;var n=function(){function p(g,E,v){this.type=r.JSXSyntax.JSXElement,this.openingElement=g,this.children=E,this.closingElement=v}return p}();e.JSXElement=n;var o=function(){function p(){this.type=r.JSXSyntax.JSXEmptyExpression}return p}();e.JSXEmptyExpression=o;var a=function(){function p(g){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=g}return p}();e.JSXExpressionContainer=a;var c=function(){function p(g){this.type=r.JSXSyntax.JSXIdentifier,this.name=g}return p}();e.JSXIdentifier=c;var l=function(){function p(g,E){this.type=r.JSXSyntax.JSXMemberExpression,this.object=g,this.property=E}return p}();e.JSXMemberExpression=l;var f=function(){function p(g,E){this.type=r.JSXSyntax.JSXAttribute,this.name=g,this.value=E}return p}();e.JSXAttribute=f;var m=function(){function p(g,E){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=g,this.name=E}return p}();e.JSXNamespacedName=m;var d=function(){function p(g,E,v){this.type=r.JSXSyntax.JSXOpeningElement,this.name=g,this.selfClosing=E,this.attributes=v}return p}();e.JSXOpeningElement=d;var h=function(){function p(g){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=g}return p}();e.JSXSpreadAttribute=h;var u=function(){function p(g,E){this.type=r.JSXSyntax.JSXText,this.value=g,this.raw=E}return p}();e.JSXText=u},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(2),s=function(){function C(A){this.type=r.Syntax.ArrayExpression,this.elements=A}return C}();e.ArrayExpression=s;var n=function(){function C(A){this.type=r.Syntax.ArrayPattern,this.elements=A}return C}();e.ArrayPattern=n;var o=function(){function C(A,F,P){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=A,this.body=F,this.generator=!1,this.expression=P,this.async=!1}return C}();e.ArrowFunctionExpression=o;var a=function(){function C(A,F,P){this.type=r.Syntax.AssignmentExpression,this.operator=A,this.left=F,this.right=P}return C}();e.AssignmentExpression=a;var c=function(){function C(A,F){this.type=r.Syntax.AssignmentPattern,this.left=A,this.right=F}return C}();e.AssignmentPattern=c;var l=function(){function C(A,F,P){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=A,this.body=F,this.generator=!1,this.expression=P,this.async=!0}return C}();e.AsyncArrowFunctionExpression=l;var f=function(){function C(A,F,P){this.type=r.Syntax.FunctionDeclaration,this.id=A,this.params=F,this.body=P,this.generator=!1,this.expression=!1,this.async=!0}return C}();e.AsyncFunctionDeclaration=f;var m=function(){function C(A,F,P){this.type=r.Syntax.FunctionExpression,this.id=A,this.params=F,this.body=P,this.generator=!1,this.expression=!1,this.async=!0}return C}();e.AsyncFunctionExpression=m;var d=function(){function C(A){this.type=r.Syntax.AwaitExpression,this.argument=A}return C}();e.AwaitExpression=d;var h=function(){function C(A,F,P){var ct=A==="||"||A==="&&";this.type=ct?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=A,this.left=F,this.right=P}return C}();e.BinaryExpression=h;var u=function(){function C(A){this.type=r.Syntax.BlockStatement,this.body=A}return C}();e.BlockStatement=u;var p=function(){function C(A){this.type=r.Syntax.BreakStatement,this.label=A}return C}();e.BreakStatement=p;var g=function(){function C(A,F){this.type=r.Syntax.CallExpression,this.callee=A,this.arguments=F}return C}();e.CallExpression=g;var E=function(){function C(A,F){this.type=r.Syntax.CatchClause,this.param=A,this.body=F}return C}();e.CatchClause=E;var v=function(){function C(A){this.type=r.Syntax.ClassBody,this.body=A}return C}();e.ClassBody=v;var D=function(){function C(A,F,P){this.type=r.Syntax.ClassDeclaration,this.id=A,this.superClass=F,this.body=P}return C}();e.ClassDeclaration=D;var x=function(){function C(A,F,P){this.type=r.Syntax.ClassExpression,this.id=A,this.superClass=F,this.body=P}return C}();e.ClassExpression=x;var b=function(){function C(A,F){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=A,this.property=F}return C}();e.ComputedMemberExpression=b;var _=function(){function C(A,F,P){this.type=r.Syntax.ConditionalExpression,this.test=A,this.consequent=F,this.alternate=P}return C}();e.ConditionalExpression=_;var R=function(){function C(A){this.type=r.Syntax.ContinueStatement,this.label=A}return C}();e.ContinueStatement=R;var T=function(){function C(){this.type=r.Syntax.DebuggerStatement}return C}();e.DebuggerStatement=T;var O=function(){function C(A,F){this.type=r.Syntax.ExpressionStatement,this.expression=A,this.directive=F}return C}();e.Directive=O;var M=function(){function C(A,F){this.type=r.Syntax.DoWhileStatement,this.body=A,this.test=F}return C}();e.DoWhileStatement=M;var q=function(){function C(){this.type=r.Syntax.EmptyStatement}return C}();e.EmptyStatement=q;var Me=function(){function C(A){this.type=r.Syntax.ExportAllDeclaration,this.source=A}return C}();e.ExportAllDeclaration=Me;var Ge=function(){function C(A){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=A}return C}();e.ExportDefaultDeclaration=Ge;var Gd=function(){function C(A,F,P){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=A,this.specifiers=F,this.source=P}return C}();e.ExportNamedDeclaration=Gd;var Hd=function(){function C(A,F){this.type=r.Syntax.ExportSpecifier,this.exported=F,this.local=A}return C}();e.ExportSpecifier=Hd;var Jd=function(){function C(A){this.type=r.Syntax.ExpressionStatement,this.expression=A}return C}();e.ExpressionStatement=Jd;var Xd=function(){function C(A,F,P){this.type=r.Syntax.ForInStatement,this.left=A,this.right=F,this.body=P,this.each=!1}return C}();e.ForInStatement=Xd;var Vd=function(){function C(A,F,P){this.type=r.Syntax.ForOfStatement,this.left=A,this.right=F,this.body=P}return C}();e.ForOfStatement=Vd;var Wd=function(){function C(A,F,P,ct){this.type=r.Syntax.ForStatement,this.init=A,this.test=F,this.update=P,this.body=ct}return C}();e.ForStatement=Wd;var yh=function(){function C(A,F,P,ct){this.type=r.Syntax.FunctionDeclaration,this.id=A,this.params=F,this.body=P,this.generator=ct,this.expression=!1,this.async=!1}return C}();e.FunctionDeclaration=yh;var Eh=function(){function C(A,F,P,ct){this.type=r.Syntax.FunctionExpression,this.id=A,this.params=F,this.body=P,this.generator=ct,this.expression=!1,this.async=!1}return C}();e.FunctionExpression=Eh;var Sh=function(){function C(A){this.type=r.Syntax.Identifier,this.name=A}return C}();e.Identifier=Sh;var vh=function(){function C(A,F,P){this.type=r.Syntax.IfStatement,this.test=A,this.consequent=F,this.alternate=P}return C}();e.IfStatement=vh;var uI=function(){function C(A,F){this.type=r.Syntax.ImportDeclaration,this.specifiers=A,this.source=F}return C}();e.ImportDeclaration=uI;var lI=function(){function C(A){this.type=r.Syntax.ImportDefaultSpecifier,this.local=A}return C}();e.ImportDefaultSpecifier=lI;var fI=function(){function C(A){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=A}return C}();e.ImportNamespaceSpecifier=fI;var dI=function(){function C(A,F){this.type=r.Syntax.ImportSpecifier,this.local=A,this.imported=F}return C}();e.ImportSpecifier=dI;var pI=function(){function C(A,F){this.type=r.Syntax.LabeledStatement,this.label=A,this.body=F}return C}();e.LabeledStatement=pI;var mI=function(){function C(A,F){this.type=r.Syntax.Literal,this.value=A,this.raw=F}return C}();e.Literal=mI;var gI=function(){function C(A,F){this.type=r.Syntax.MetaProperty,this.meta=A,this.property=F}return C}();e.MetaProperty=gI;var yI=function(){function C(A,F,P,ct,Kd){this.type=r.Syntax.MethodDefinition,this.key=A,this.computed=F,this.value=P,this.kind=ct,this.static=Kd}return C}();e.MethodDefinition=yI;var EI=function(){function C(A){this.type=r.Syntax.Program,this.body=A,this.sourceType="module"}return C}();e.Module=EI;var SI=function(){function C(A,F){this.type=r.Syntax.NewExpression,this.callee=A,this.arguments=F}return C}();e.NewExpression=SI;var vI=function(){function C(A){this.type=r.Syntax.ObjectExpression,this.properties=A}return C}();e.ObjectExpression=vI;var wI=function(){function C(A){this.type=r.Syntax.ObjectPattern,this.properties=A}return C}();e.ObjectPattern=wI;var bI=function(){function C(A,F,P,ct,Kd,JI){this.type=r.Syntax.Property,this.key=F,this.computed=P,this.value=ct,this.kind=A,this.method=Kd,this.shorthand=JI}return C}();e.Property=bI;var xI=function(){function C(A,F,P,ct){this.type=r.Syntax.Literal,this.value=A,this.raw=F,this.regex={pattern:P,flags:ct}}return C}();e.RegexLiteral=xI;var DI=function(){function C(A){this.type=r.Syntax.RestElement,this.argument=A}return C}();e.RestElement=DI;var CI=function(){function C(A){this.type=r.Syntax.ReturnStatement,this.argument=A}return C}();e.ReturnStatement=CI;var AI=function(){function C(A){this.type=r.Syntax.Program,this.body=A,this.sourceType="script"}return C}();e.Script=AI;var _I=function(){function C(A){this.type=r.Syntax.SequenceExpression,this.expressions=A}return C}();e.SequenceExpression=_I;var TI=function(){function C(A){this.type=r.Syntax.SpreadElement,this.argument=A}return C}();e.SpreadElement=TI;var kI=function(){function C(A,F){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=A,this.property=F}return C}();e.StaticMemberExpression=kI;var FI=function(){function C(){this.type=r.Syntax.Super}return C}();e.Super=FI;var RI=function(){function C(A,F){this.type=r.Syntax.SwitchCase,this.test=A,this.consequent=F}return C}();e.SwitchCase=RI;var OI=function(){function C(A,F){this.type=r.Syntax.SwitchStatement,this.discriminant=A,this.cases=F}return C}();e.SwitchStatement=OI;var LI=function(){function C(A,F){this.type=r.Syntax.TaggedTemplateExpression,this.tag=A,this.quasi=F}return C}();e.TaggedTemplateExpression=LI;var BI=function(){function C(A,F){this.type=r.Syntax.TemplateElement,this.value=A,this.tail=F}return C}();e.TemplateElement=BI;var II=function(){function C(A,F){this.type=r.Syntax.TemplateLiteral,this.quasis=A,this.expressions=F}return C}();e.TemplateLiteral=II;var PI=function(){function C(){this.type=r.Syntax.ThisExpression}return C}();e.ThisExpression=PI;var NI=function(){function C(A){this.type=r.Syntax.ThrowStatement,this.argument=A}return C}();e.ThrowStatement=NI;var MI=function(){function C(A,F,P){this.type=r.Syntax.TryStatement,this.block=A,this.handler=F,this.finalizer=P}return C}();e.TryStatement=MI;var UI=function(){function C(A,F){this.type=r.Syntax.UnaryExpression,this.operator=A,this.argument=F,this.prefix=!0}return C}();e.UnaryExpression=UI;var qI=function(){function C(A,F,P){this.type=r.Syntax.UpdateExpression,this.operator=A,this.argument=F,this.prefix=P}return C}();e.UpdateExpression=qI;var jI=function(){function C(A,F){this.type=r.Syntax.VariableDeclaration,this.declarations=A,this.kind=F}return C}();e.VariableDeclaration=jI;var $I=function(){function C(A,F){this.type=r.Syntax.VariableDeclarator,this.id=A,this.init=F}return C}();e.VariableDeclarator=$I;var zI=function(){function C(A,F){this.type=r.Syntax.WhileStatement,this.test=A,this.body=F}return C}();e.WhileStatement=zI;var GI=function(){function C(A,F){this.type=r.Syntax.WithStatement,this.object=A,this.body=F}return C}();e.WithStatement=GI;var HI=function(){function C(A,F){this.type=r.Syntax.YieldExpression,this.argument=A,this.delegate=F}return C}();e.YieldExpression=HI},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),s=t(10),n=t(11),o=t(7),a=t(12),c=t(2),l=t(13),f="ArrowParameterPlaceHolder",m=function(){function d(h,u,p){u===void 0&&(u={}),this.config={range:typeof u.range=="boolean"&&u.range,loc:typeof u.loc=="boolean"&&u.loc,source:null,tokens:typeof u.tokens=="boolean"&&u.tokens,comment:typeof u.comment=="boolean"&&u.comment,tolerant:typeof u.tolerant=="boolean"&&u.tolerant},this.config.loc&&u.source&&u.source!==null&&(this.config.source=String(u.source)),this.delegate=p,this.errorHandler=new s.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(h,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return d.prototype.throwError=function(h){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];var g=Array.prototype.slice.call(arguments,1),E=h.replace(/%(\d)/g,function(b,_){return r.assert(_<g.length,"Message reference must be in range"),g[_]}),v=this.lastMarker.index,D=this.lastMarker.line,x=this.lastMarker.column+1;throw this.errorHandler.createError(v,D,x,E)},d.prototype.tolerateError=function(h){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];var g=Array.prototype.slice.call(arguments,1),E=h.replace(/%(\d)/g,function(b,_){return r.assert(_<g.length,"Message reference must be in range"),g[_]}),v=this.lastMarker.index,D=this.scanner.lineNumber,x=this.lastMarker.column+1;this.errorHandler.tolerateError(v,D,x,E)},d.prototype.unexpectedTokenError=function(h,u){var p=u||n.Messages.UnexpectedToken,g;if(h?(u||(p=h.type===2?n.Messages.UnexpectedEOS:h.type===3?n.Messages.UnexpectedIdentifier:h.type===6?n.Messages.UnexpectedNumber:h.type===8?n.Messages.UnexpectedString:h.type===10?n.Messages.UnexpectedTemplate:n.Messages.UnexpectedToken,h.type===4&&(this.scanner.isFutureReservedWord(h.value)?p=n.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(h.value)&&(p=n.Messages.StrictReservedWord))),g=h.value):g="ILLEGAL",p=p.replace("%0",g),h&&typeof h.lineNumber=="number"){var E=h.start,v=h.lineNumber,D=this.lastMarker.index-this.lastMarker.column,x=h.start-D+1;return this.errorHandler.createError(E,v,x,p)}else{var E=this.lastMarker.index,v=this.lastMarker.line,x=this.lastMarker.column+1;return this.errorHandler.createError(E,v,x,p)}},d.prototype.throwUnexpectedToken=function(h,u){throw this.unexpectedTokenError(h,u)},d.prototype.tolerateUnexpectedToken=function(h,u){this.errorHandler.tolerate(this.unexpectedTokenError(h,u))},d.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var h=this.scanner.scanComments();if(h.length>0&&this.delegate)for(var u=0;u<h.length;++u){var p=h[u],g=void 0;g={type:p.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(p.slice[0],p.slice[1])},this.config.range&&(g.range=p.range),this.config.loc&&(g.loc=p.loc);var E={start:{line:p.loc.start.line,column:p.loc.start.column,offset:p.range[0]},end:{line:p.loc.end.line,column:p.loc.end.column,offset:p.range[1]}};this.delegate(g,E)}}},d.prototype.getTokenRaw=function(h){return this.scanner.source.slice(h.start,h.end)},d.prototype.convertToken=function(h){var u={type:l.TokenName[h.type],value:this.getTokenRaw(h)};if(this.config.range&&(u.range=[h.start,h.end]),this.config.loc&&(u.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),h.type===9){var p=h.pattern,g=h.flags;u.regex={pattern:p,flags:g}}return u},d.prototype.nextToken=function(){var h=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var u=this.scanner.lex();return this.hasLineTerminator=h.lineNumber!==u.lineNumber,u&&this.context.strict&&u.type===3&&this.scanner.isStrictModeReservedWord(u.value)&&(u.type=4),this.lookahead=u,this.config.tokens&&u.type!==2&&this.tokens.push(this.convertToken(u)),h},d.prototype.nextRegexToken=function(){this.collectComments();var h=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(h))),this.lookahead=h,this.nextToken(),h},d.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},d.prototype.startNode=function(h,u){u===void 0&&(u=0);var p=h.start-h.lineStart,g=h.lineNumber;return p<0&&(p+=u,g--),{index:h.start,line:g,column:p}},d.prototype.finalize=function(h,u){if(this.config.range&&(u.range=[h.index,this.lastMarker.index]),this.config.loc&&(u.loc={start:{line:h.line,column:h.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(u.loc.source=this.config.source)),this.delegate){var p={start:{line:h.line,column:h.column,offset:h.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(u,p)}return u},d.prototype.expect=function(h){var u=this.nextToken();(u.type!==7||u.value!==h)&&this.throwUnexpectedToken(u)},d.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var h=this.lookahead;h.type===7&&h.value===","?this.nextToken():h.type===7&&h.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(h)):this.tolerateUnexpectedToken(h,n.Messages.UnexpectedToken)}else this.expect(",")},d.prototype.expectKeyword=function(h){var u=this.nextToken();(u.type!==4||u.value!==h)&&this.throwUnexpectedToken(u)},d.prototype.match=function(h){return this.lookahead.type===7&&this.lookahead.value===h},d.prototype.matchKeyword=function(h){return this.lookahead.type===4&&this.lookahead.value===h},d.prototype.matchContextualKeyword=function(h){return this.lookahead.type===3&&this.lookahead.value===h},d.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var h=this.lookahead.value;return h==="="||h==="*="||h==="**="||h==="/="||h==="%="||h==="+="||h==="-="||h==="<<="||h===">>="||h===">>>="||h==="&="||h==="^="||h==="|="},d.prototype.isolateCoverGrammar=function(h){var u=this.context.isBindingElement,p=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=h.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=u,this.context.isAssignmentTarget=p,this.context.firstCoverInitializedNameError=g,E},d.prototype.inheritCoverGrammar=function(h){var u=this.context.isBindingElement,p=this.context.isAssignmentTarget,g=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var E=h.call(this);return this.context.isBindingElement=this.context.isBindingElement&&u,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&p,this.context.firstCoverInitializedNameError=g||this.context.firstCoverInitializedNameError,E},d.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},d.prototype.parsePrimaryExpression=function(){var h=this.createNode(),u,p,g;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),u=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(h,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,n.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(p.value,g));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(p.value==="true",g));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,p=this.nextToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.Literal(null,g));break;case 10:u=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,u=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":u=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":u=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,p=this.nextRegexToken(),g=this.getTokenRaw(p),u=this.finalize(h,new o.RegexLiteral(p.regex,g,p.pattern,p.flags));break;default:u=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?u=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?u=this.finalize(h,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?u=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),u=this.finalize(h,new o.ThisExpression)):this.matchKeyword("class")?u=this.parseClassExpression():u=this.throwUnexpectedToken(this.nextToken()));break;default:u=this.throwUnexpectedToken(this.nextToken())}return u},d.prototype.parseSpreadElement=function(){var h=this.createNode();this.expect("...");var u=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(h,new o.SpreadElement(u))},d.prototype.parseArrayInitializer=function(){var h=this.createNode(),u=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),u.push(null);else if(this.match("...")){var p=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),u.push(p)}else u.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(h,new o.ArrayExpression(u))},d.prototype.parsePropertyMethod=function(h){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var u=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var g=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&h.firstRestricted&&this.tolerateUnexpectedToken(h.firstRestricted,h.message),this.context.strict&&h.stricted&&this.tolerateUnexpectedToken(h.stricted,h.message),this.context.strict=u,this.context.allowStrictDirective=p,g},d.prototype.parsePropertyMethodFunction=function(){var h=!1,u=this.createNode(),p=this.context.allowYield;this.context.allowYield=!0;var g=this.parseFormalParameters(),E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(u,new o.FunctionExpression(null,g.params,E,h))},d.prototype.parsePropertyMethodAsyncFunction=function(){var h=this.createNode(),u=this.context.allowYield,p=this.context.await;this.context.allowYield=!1,this.context.await=!0;var g=this.parseFormalParameters(),E=this.parsePropertyMethod(g);return this.context.allowYield=u,this.context.await=p,this.finalize(h,new o.AsyncFunctionExpression(null,g.params,E))},d.prototype.parseObjectPropertyKey=function(){var h=this.createNode(),u=this.nextToken(),p;switch(u.type){case 8:case 6:this.context.strict&&u.octal&&this.tolerateUnexpectedToken(u,n.Messages.StrictOctalLiteral);var g=this.getTokenRaw(u);p=this.finalize(h,new o.Literal(u.value,g));break;case 3:case 1:case 5:case 4:p=this.finalize(h,new o.Identifier(u.value));break;case 7:u.value==="["?(p=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):p=this.throwUnexpectedToken(u);break;default:p=this.throwUnexpectedToken(u)}return p},d.prototype.isPropertyKey=function(h,u){return h.type===c.Syntax.Identifier&&h.name===u||h.type===c.Syntax.Literal&&h.value===u},d.prototype.parseObjectProperty=function(h){var u=this.createNode(),p=this.lookahead,g,E=null,v=null,D=!1,x=!1,b=!1,_=!1;if(p.type===3){var R=p.value;this.nextToken(),D=this.match("["),_=!this.hasLineTerminator&&R==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),E=_?this.parseObjectPropertyKey():this.finalize(u,new o.Identifier(R))}else this.match("*")?this.nextToken():(D=this.match("["),E=this.parseObjectPropertyKey());var T=this.qualifiedPropertyName(this.lookahead);if(p.type===3&&!_&&p.value==="get"&&T)g="get",D=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod();else if(p.type===3&&!_&&p.value==="set"&&T)g="set",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseSetterMethod();else if(p.type===7&&p.value==="*"&&T)g="init",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),x=!0;else if(E||this.throwUnexpectedToken(this.lookahead),g="init",this.match(":")&&!_)!D&&this.isPropertyKey(E,"__proto__")&&(h.value&&this.tolerateError(n.Messages.DuplicateProtoProperty),h.value=!0),this.nextToken(),v=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))v=_?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),x=!0;else if(p.type===3){var R=this.finalize(u,new o.Identifier(p.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),b=!0;var O=this.isolateCoverGrammar(this.parseAssignmentExpression);v=this.finalize(u,new o.AssignmentPattern(R,O))}else b=!0,v=R}else this.throwUnexpectedToken(this.nextToken());return this.finalize(u,new o.Property(g,E,D,v,x,b))},d.prototype.parseObjectInitializer=function(){var h=this.createNode();this.expect("{");for(var u=[],p={value:!1};!this.match("}");)u.push(this.parseObjectProperty(p)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(h,new o.ObjectExpression(u))},d.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var h=this.createNode(),u=this.nextToken(),p=u.value,g=u.cooked;return this.finalize(h,new o.TemplateElement({raw:p,cooked:g},u.tail))},d.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var h=this.createNode(),u=this.nextToken(),p=u.value,g=u.cooked;return this.finalize(h,new o.TemplateElement({raw:p,cooked:g},u.tail))},d.prototype.parseTemplateLiteral=function(){var h=this.createNode(),u=[],p=[],g=this.parseTemplateHead();for(p.push(g);!g.tail;)u.push(this.parseExpression()),g=this.parseTemplateElement(),p.push(g);return this.finalize(h,new o.TemplateLiteral(p,u))},d.prototype.reinterpretExpressionAsPattern=function(h){switch(h.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:h.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(h.argument);break;case c.Syntax.ArrayExpression:h.type=c.Syntax.ArrayPattern;for(var u=0;u<h.elements.length;u++)h.elements[u]!==null&&this.reinterpretExpressionAsPattern(h.elements[u]);break;case c.Syntax.ObjectExpression:h.type=c.Syntax.ObjectPattern;for(var u=0;u<h.properties.length;u++)this.reinterpretExpressionAsPattern(h.properties[u].value);break;case c.Syntax.AssignmentExpression:h.type=c.Syntax.AssignmentPattern,delete h.operator,this.reinterpretExpressionAsPattern(h.left);break;default:break}},d.prototype.parseGroupExpression=function(){var h;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),h={type:f,params:[],async:!1};else{var u=this.lookahead,p=[];if(this.match("..."))h=this.parseRestElement(p),this.expect(")"),this.match("=>")||this.expect("=>"),h={type:f,params:[h],async:!1};else{var g=!1;if(this.context.isBindingElement=!0,h=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var E=[];for(this.context.isAssignmentTarget=!1,E.push(h);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var v=0;v<E.length;v++)this.reinterpretExpressionAsPattern(E[v]);g=!0,h={type:f,params:E,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),E.push(this.parseRestElement(p)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var v=0;v<E.length;v++)this.reinterpretExpressionAsPattern(E[v]);g=!0,h={type:f,params:E,async:!1}}else E.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(g)break}g||(h=this.finalize(this.startNode(u),new o.SequenceExpression(E)))}if(!g){if(this.expect(")"),this.match("=>")&&(h.type===c.Syntax.Identifier&&h.name==="yield"&&(g=!0,h={type:f,params:[h],async:!1}),!g)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),h.type===c.Syntax.SequenceExpression)for(var v=0;v<h.expressions.length;v++)this.reinterpretExpressionAsPattern(h.expressions[v]);else this.reinterpretExpressionAsPattern(h);var D=h.type===c.Syntax.SequenceExpression?h.expressions:[h];h={type:f,params:D,async:!1}}this.context.isBindingElement=!1}}}return h},d.prototype.parseArguments=function(){this.expect("(");var h=[];if(!this.match(")"))for(;;){var u=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(h.push(u),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),h},d.prototype.isIdentifierName=function(h){return h.type===3||h.type===4||h.type===1||h.type===5},d.prototype.parseIdentifierName=function(){var h=this.createNode(),u=this.nextToken();return this.isIdentifierName(u)||this.throwUnexpectedToken(u),this.finalize(h,new o.Identifier(u.value))},d.prototype.parseNewExpression=function(){var h=this.createNode(),u=this.parseIdentifierName();r.assert(u.name==="new","New expression must start with `new`");var p;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var g=this.parseIdentifierName();p=new o.MetaProperty(u,g)}else this.throwUnexpectedToken(this.lookahead);else{var E=this.isolateCoverGrammar(this.parseLeftHandSideExpression),v=this.match("(")?this.parseArguments():[];p=new o.NewExpression(E,v),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(h,p)},d.prototype.parseAsyncArgument=function(){var h=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,h},d.prototype.parseAsyncArguments=function(){this.expect("(");var h=[];if(!this.match(")"))for(;;){var u=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(h.push(u),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),h},d.prototype.parseLeftHandSideExpressionAllowCall=function(){var h=this.lookahead,u=this.matchContextualKeyword("async"),p=this.context.allowIn;this.context.allowIn=!0;var g;for(this.matchKeyword("super")&&this.context.inFunctionBody?(g=this.createNode(),this.nextToken(),g=this.finalize(g,new o.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):g=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var E=this.parseIdentifierName();g=this.finalize(this.startNode(h),new o.StaticMemberExpression(g,E))}else if(this.match("(")){var v=u&&h.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var D=v?this.parseAsyncArguments():this.parseArguments();if(g=this.finalize(this.startNode(h),new o.CallExpression(g,D)),v&&this.match("=>")){for(var x=0;x<D.length;++x)this.reinterpretExpressionAsPattern(D[x]);g={type:f,params:D,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var E=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),g=this.finalize(this.startNode(h),new o.ComputedMemberExpression(g,E))}else if(this.lookahead.type===10&&this.lookahead.head){var b=this.parseTemplateLiteral();g=this.finalize(this.startNode(h),new o.TaggedTemplateExpression(g,b))}else break;return this.context.allowIn=p,g},d.prototype.parseSuper=function(){var h=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(h,new o.Super)},d.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var h=this.startNode(this.lookahead),u=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var p=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),u=this.finalize(h,new o.ComputedMemberExpression(u,p))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var p=this.parseIdentifierName();u=this.finalize(h,new o.StaticMemberExpression(u,p))}else if(this.lookahead.type===10&&this.lookahead.head){var g=this.parseTemplateLiteral();u=this.finalize(h,new o.TaggedTemplateExpression(u,g))}else break;return u},d.prototype.parseUpdateExpression=function(){var h,u=this.lookahead;if(this.match("++")||this.match("--")){var p=this.startNode(u),g=this.nextToken();h=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&h.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(h.name)&&this.tolerateError(n.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment);var E=!0;h=this.finalize(p,new o.UpdateExpression(g.value,h,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(h=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&h.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(h.name)&&this.tolerateError(n.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var v=this.nextToken().value,E=!1;h=this.finalize(this.startNode(u),new o.UpdateExpression(v,h,E))}return h},d.prototype.parseAwaitExpression=function(){var h=this.createNode();this.nextToken();var u=this.parseUnaryExpression();return this.finalize(h,new o.AwaitExpression(u))},d.prototype.parseUnaryExpression=function(){var h;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var u=this.startNode(this.lookahead),p=this.nextToken();h=this.inheritCoverGrammar(this.parseUnaryExpression),h=this.finalize(u,new o.UnaryExpression(p.value,h)),this.context.strict&&h.operator==="delete"&&h.argument.type===c.Syntax.Identifier&&this.tolerateError(n.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?h=this.parseAwaitExpression():h=this.parseUpdateExpression();return h},d.prototype.parseExponentiationExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseUnaryExpression);if(u.type!==c.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var p=u,g=this.isolateCoverGrammar(this.parseExponentiationExpression);u=this.finalize(this.startNode(h),new o.BinaryExpression("**",p,g))}return u},d.prototype.binaryPrecedence=function(h){var u=h.value,p;return h.type===7?p=this.operatorPrecedence[u]||0:h.type===4?p=u==="instanceof"||this.context.allowIn&&u==="in"?7:0:p=0,p},d.prototype.parseBinaryExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseExponentiationExpression),p=this.lookahead,g=this.binaryPrecedence(p);if(g>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var E=[h,this.lookahead],v=u,D=this.isolateCoverGrammar(this.parseExponentiationExpression),x=[v,p.value,D],b=[g];g=this.binaryPrecedence(this.lookahead),!(g<=0);){for(;x.length>2&&g<=b[b.length-1];){D=x.pop();var _=x.pop();b.pop(),v=x.pop(),E.pop();var R=this.startNode(E[E.length-1]);x.push(this.finalize(R,new o.BinaryExpression(_,v,D)))}x.push(this.nextToken().value),b.push(g),E.push(this.lookahead),x.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var T=x.length-1;u=x[T];for(var O=E.pop();T>1;){var M=E.pop(),q=O&&O.lineStart,R=this.startNode(M,q),_=x[T-1];u=this.finalize(R,new o.BinaryExpression(_,x[T-2],u)),T-=2,O=M}}return u},d.prototype.parseConditionalExpression=function(){var h=this.lookahead,u=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var p=this.context.allowIn;this.context.allowIn=!0;var g=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=p,this.expect(":");var E=this.isolateCoverGrammar(this.parseAssignmentExpression);u=this.finalize(this.startNode(h),new o.ConditionalExpression(u,g,E)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return u},d.prototype.checkPatternParam=function(h,u){switch(u.type){case c.Syntax.Identifier:this.validateParam(h,u,u.name);break;case c.Syntax.RestElement:this.checkPatternParam(h,u.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(h,u.left);break;case c.Syntax.ArrayPattern:for(var p=0;p<u.elements.length;p++)u.elements[p]!==null&&this.checkPatternParam(h,u.elements[p]);break;case c.Syntax.ObjectPattern:for(var p=0;p<u.properties.length;p++)this.checkPatternParam(h,u.properties[p].value);break;default:break}h.simple=h.simple&&u instanceof o.Identifier},d.prototype.reinterpretAsCoverFormalsList=function(h){var u=[h],p,g=!1;switch(h.type){case c.Syntax.Identifier:break;case f:u=h.params,g=h.async;break;default:return null}p={simple:!0,paramSet:{}};for(var E=0;E<u.length;++E){var v=u[E];v.type===c.Syntax.AssignmentPattern?v.right.type===c.Syntax.YieldExpression&&(v.right.argument&&this.throwUnexpectedToken(this.lookahead),v.right.type=c.Syntax.Identifier,v.right.name="yield",delete v.right.argument,delete v.right.delegate):g&&v.type===c.Syntax.Identifier&&v.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(p,v),u[E]=v}if(this.context.strict||!this.context.allowYield)for(var E=0;E<u.length;++E){var v=u[E];v.type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(p.message===n.Messages.StrictParamDupe){var D=this.context.strict?p.stricted:p.firstRestricted;this.throwUnexpectedToken(D,p.message)}return{simple:p.simple,params:u,stricted:p.stricted,firstRestricted:p.firstRestricted,message:p.message}},d.prototype.parseAssignmentExpression=function(){var h;if(!this.context.allowYield&&this.matchKeyword("yield"))h=this.parseYieldExpression();else{var u=this.lookahead,p=u;if(h=this.parseConditionalExpression(),p.type===3&&p.lineNumber===this.lookahead.lineNumber&&p.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var g=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(g),h={type:f,params:[g],async:!0}}if(h.type===f||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var E=h.async,v=this.reinterpretAsCoverFormalsList(h);if(v){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var D=this.context.strict,x=this.context.allowStrictDirective;this.context.allowStrictDirective=v.simple;var b=this.context.allowYield,_=this.context.await;this.context.allowYield=!0,this.context.await=E;var R=this.startNode(u);this.expect("=>");var T=void 0;if(this.match("{")){var O=this.context.allowIn;this.context.allowIn=!0,T=this.parseFunctionSourceElements(),this.context.allowIn=O}else T=this.isolateCoverGrammar(this.parseAssignmentExpression);var M=T.type!==c.Syntax.BlockStatement;this.context.strict&&v.firstRestricted&&this.throwUnexpectedToken(v.firstRestricted,v.message),this.context.strict&&v.stricted&&this.tolerateUnexpectedToken(v.stricted,v.message),h=E?this.finalize(R,new o.AsyncArrowFunctionExpression(v.params,T,M)):this.finalize(R,new o.ArrowFunctionExpression(v.params,T,M)),this.context.strict=D,this.context.allowStrictDirective=x,this.context.allowYield=b,this.context.await=_}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(n.Messages.InvalidLHSInAssignment),this.context.strict&&h.type===c.Syntax.Identifier){var q=h;this.scanner.isRestrictedWord(q.name)&&this.tolerateUnexpectedToken(p,n.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(q.name)&&this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(h):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),p=this.nextToken();var Me=p.value,Ge=this.isolateCoverGrammar(this.parseAssignmentExpression);h=this.finalize(this.startNode(u),new o.AssignmentExpression(Me,h,Ge)),this.context.firstCoverInitializedNameError=null}}return h},d.prototype.parseExpression=function(){var h=this.lookahead,u=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var p=[];for(p.push(u);this.lookahead.type!==2&&this.match(",");)this.nextToken(),p.push(this.isolateCoverGrammar(this.parseAssignmentExpression));u=this.finalize(this.startNode(h),new o.SequenceExpression(p))}return u},d.prototype.parseStatementListItem=function(){var h;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalExportDeclaration),h=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,n.Messages.IllegalImportDeclaration),h=this.parseImportDeclaration();break;case"const":h=this.parseLexicalDeclaration({inFor:!1});break;case"function":h=this.parseFunctionDeclaration();break;case"class":h=this.parseClassDeclaration();break;case"let":h=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:h=this.parseStatement();break}else h=this.parseStatement();return h},d.prototype.parseBlock=function(){var h=this.createNode();this.expect("{");for(var u=[];!this.match("}");)u.push(this.parseStatementListItem());return this.expect("}"),this.finalize(h,new o.BlockStatement(u))},d.prototype.parseLexicalBinding=function(h,u){var p=this.createNode(),g=[],E=this.parsePattern(g,h);this.context.strict&&E.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(E.name)&&this.tolerateError(n.Messages.StrictVarName);var v=null;return h==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(n.Messages.DeclarationMissingInitializer,"const")):(!u.inFor&&E.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),v=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(p,new o.VariableDeclarator(E,v))},d.prototype.parseBindingList=function(h,u){for(var p=[this.parseLexicalBinding(h,u)];this.match(",");)this.nextToken(),p.push(this.parseLexicalBinding(h,u));return p},d.prototype.isLexicalDeclaration=function(){var h=this.scanner.saveState();this.scanner.scanComments();var u=this.scanner.lex();return this.scanner.restoreState(h),u.type===3||u.type===7&&u.value==="["||u.type===7&&u.value==="{"||u.type===4&&u.value==="let"||u.type===4&&u.value==="yield"},d.prototype.parseLexicalDeclaration=function(h){var u=this.createNode(),p=this.nextToken().value;r.assert(p==="let"||p==="const","Lexical declaration must be either let or const");var g=this.parseBindingList(p,h);return this.consumeSemicolon(),this.finalize(u,new o.VariableDeclaration(g,p))},d.prototype.parseBindingRestElement=function(h,u){var p=this.createNode();this.expect("...");var g=this.parsePattern(h,u);return this.finalize(p,new o.RestElement(g))},d.prototype.parseArrayPattern=function(h,u){var p=this.createNode();this.expect("[");for(var g=[];!this.match("]");)if(this.match(","))this.nextToken(),g.push(null);else{if(this.match("...")){g.push(this.parseBindingRestElement(h,u));break}else g.push(this.parsePatternWithDefault(h,u));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(p,new o.ArrayPattern(g))},d.prototype.parsePropertyPattern=function(h,u){var p=this.createNode(),g=!1,E=!1,v=!1,D,x;if(this.lookahead.type===3){var b=this.lookahead;D=this.parseVariableIdentifier();var _=this.finalize(p,new o.Identifier(b.value));if(this.match("=")){h.push(b),E=!0,this.nextToken();var R=this.parseAssignmentExpression();x=this.finalize(this.startNode(b),new o.AssignmentPattern(_,R))}else this.match(":")?(this.expect(":"),x=this.parsePatternWithDefault(h,u)):(h.push(b),E=!0,x=_)}else g=this.match("["),D=this.parseObjectPropertyKey(),this.expect(":"),x=this.parsePatternWithDefault(h,u);return this.finalize(p,new o.Property("init",D,g,x,v,E))},d.prototype.parseObjectPattern=function(h,u){var p=this.createNode(),g=[];for(this.expect("{");!this.match("}");)g.push(this.parsePropertyPattern(h,u)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(p,new o.ObjectPattern(g))},d.prototype.parsePattern=function(h,u){var p;return this.match("[")?p=this.parseArrayPattern(h,u):this.match("{")?p=this.parseObjectPattern(h,u):(this.matchKeyword("let")&&(u==="const"||u==="let")&&this.tolerateUnexpectedToken(this.lookahead,n.Messages.LetInLexicalBinding),h.push(this.lookahead),p=this.parseVariableIdentifier(u)),p},d.prototype.parsePatternWithDefault=function(h,u){var p=this.lookahead,g=this.parsePattern(h,u);if(this.match("=")){this.nextToken();var E=this.context.allowYield;this.context.allowYield=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=E,g=this.finalize(this.startNode(p),new o.AssignmentPattern(g,v))}return g},d.prototype.parseVariableIdentifier=function(h){var u=this.createNode(),p=this.nextToken();return p.type===4&&p.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(p):p.type!==3?this.context.strict&&p.type===4&&this.scanner.isStrictModeReservedWord(p.value)?this.tolerateUnexpectedToken(p,n.Messages.StrictReservedWord):(this.context.strict||p.value!=="let"||h!=="var")&&this.throwUnexpectedToken(p):(this.context.isModule||this.context.await)&&p.type===3&&p.value==="await"&&this.tolerateUnexpectedToken(p),this.finalize(u,new o.Identifier(p.value))},d.prototype.parseVariableDeclaration=function(h){var u=this.createNode(),p=[],g=this.parsePattern(p,"var");this.context.strict&&g.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(g.name)&&this.tolerateError(n.Messages.StrictVarName);var E=null;return this.match("=")?(this.nextToken(),E=this.isolateCoverGrammar(this.parseAssignmentExpression)):g.type!==c.Syntax.Identifier&&!h.inFor&&this.expect("="),this.finalize(u,new o.VariableDeclarator(g,E))},d.prototype.parseVariableDeclarationList=function(h){var u={inFor:h.inFor},p=[];for(p.push(this.parseVariableDeclaration(u));this.match(",");)this.nextToken(),p.push(this.parseVariableDeclaration(u));return p},d.prototype.parseVariableStatement=function(){var h=this.createNode();this.expectKeyword("var");var u=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(h,new o.VariableDeclaration(u,"var"))},d.prototype.parseEmptyStatement=function(){var h=this.createNode();return this.expect(";"),this.finalize(h,new o.EmptyStatement)},d.prototype.parseExpressionStatement=function(){var h=this.createNode(),u=this.parseExpression();return this.consumeSemicolon(),this.finalize(h,new o.ExpressionStatement(u))},d.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(n.Messages.StrictFunction),this.parseStatement()},d.prototype.parseIfStatement=function(){var h=this.createNode(),u,p=null;this.expectKeyword("if"),this.expect("(");var g=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),u=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),p=this.parseIfClause())),this.finalize(h,new o.IfStatement(g,u,p))},d.prototype.parseDoWhileStatement=function(){var h=this.createNode();this.expectKeyword("do");var u=this.context.inIteration;this.context.inIteration=!0;var p=this.parseStatement();this.context.inIteration=u,this.expectKeyword("while"),this.expect("(");var g=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(h,new o.DoWhileStatement(p,g))},d.prototype.parseWhileStatement=function(){var h=this.createNode(),u;this.expectKeyword("while"),this.expect("(");var p=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,u=this.parseStatement(),this.context.inIteration=g}return this.finalize(h,new o.WhileStatement(p,u))},d.prototype.parseForStatement=function(){var h=null,u=null,p=null,g=!0,E,v,D=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){h=this.createNode(),this.nextToken();var x=this.context.allowIn;this.context.allowIn=!1;var b=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=x,b.length===1&&this.matchKeyword("in")){var _=b[0];_.init&&(_.id.type===c.Syntax.ArrayPattern||_.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(n.Messages.ForInOfLoopInitializer,"for-in"),h=this.finalize(h,new o.VariableDeclaration(b,"var")),this.nextToken(),E=h,v=this.parseExpression(),h=null}else b.length===1&&b[0].init===null&&this.matchContextualKeyword("of")?(h=this.finalize(h,new o.VariableDeclaration(b,"var")),this.nextToken(),E=h,v=this.parseAssignmentExpression(),h=null,g=!1):(h=this.finalize(h,new o.VariableDeclaration(b,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){h=this.createNode();var R=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")h=this.finalize(h,new o.Identifier(R)),this.nextToken(),E=h,v=this.parseExpression(),h=null;else{var x=this.context.allowIn;this.context.allowIn=!1;var b=this.parseBindingList(R,{inFor:!0});this.context.allowIn=x,b.length===1&&b[0].init===null&&this.matchKeyword("in")?(h=this.finalize(h,new o.VariableDeclaration(b,R)),this.nextToken(),E=h,v=this.parseExpression(),h=null):b.length===1&&b[0].init===null&&this.matchContextualKeyword("of")?(h=this.finalize(h,new o.VariableDeclaration(b,R)),this.nextToken(),E=h,v=this.parseAssignmentExpression(),h=null,g=!1):(this.consumeSemicolon(),h=this.finalize(h,new o.VariableDeclaration(b,R)))}}else{var T=this.lookahead,x=this.context.allowIn;if(this.context.allowIn=!1,h=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=x,this.matchKeyword("in"))(!this.context.isAssignmentTarget||h.type===c.Syntax.AssignmentExpression)&&this.tolerateError(n.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(h),E=h,v=this.parseExpression(),h=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||h.type===c.Syntax.AssignmentExpression)&&this.tolerateError(n.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(h),E=h,v=this.parseAssignmentExpression(),h=null,g=!1;else{if(this.match(",")){for(var O=[h];this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));h=this.finalize(this.startNode(T),new o.SequenceExpression(O))}this.expect(";")}}typeof E>"u"&&(this.match(";")||(u=this.parseExpression()),this.expect(";"),this.match(")")||(p=this.parseExpression()));var M;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),M=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var q=this.context.inIteration;this.context.inIteration=!0,M=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=q}return typeof E>"u"?this.finalize(D,new o.ForStatement(h,u,p,M)):g?this.finalize(D,new o.ForInStatement(E,v,M)):this.finalize(D,new o.ForOfStatement(E,v,M))},d.prototype.parseContinueStatement=function(){var h=this.createNode();this.expectKeyword("continue");var u=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var p=this.parseVariableIdentifier();u=p;var g="$"+p.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(n.Messages.UnknownLabel,p.name)}return this.consumeSemicolon(),u===null&&!this.context.inIteration&&this.throwError(n.Messages.IllegalContinue),this.finalize(h,new o.ContinueStatement(u))},d.prototype.parseBreakStatement=function(){var h=this.createNode();this.expectKeyword("break");var u=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var p=this.parseVariableIdentifier(),g="$"+p.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)||this.throwError(n.Messages.UnknownLabel,p.name),u=p}return this.consumeSemicolon(),u===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(n.Messages.IllegalBreak),this.finalize(h,new o.BreakStatement(u))},d.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(n.Messages.IllegalReturn);var h=this.createNode();this.expectKeyword("return");var u=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,p=u?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(h,new o.ReturnStatement(p))},d.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(n.Messages.StrictModeWith);var h=this.createNode(),u;this.expectKeyword("with"),this.expect("(");var p=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),u=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),u=this.parseStatement()),this.finalize(h,new o.WithStatement(p,u))},d.prototype.parseSwitchCase=function(){var h=this.createNode(),u;this.matchKeyword("default")?(this.nextToken(),u=null):(this.expectKeyword("case"),u=this.parseExpression()),this.expect(":");for(var p=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)p.push(this.parseStatementListItem());return this.finalize(h,new o.SwitchCase(u,p))},d.prototype.parseSwitchStatement=function(){var h=this.createNode();this.expectKeyword("switch"),this.expect("(");var u=this.parseExpression();this.expect(")");var p=this.context.inSwitch;this.context.inSwitch=!0;var g=[],E=!1;for(this.expect("{");!this.match("}");){var v=this.parseSwitchCase();v.test===null&&(E&&this.throwError(n.Messages.MultipleDefaultsInSwitch),E=!0),g.push(v)}return this.expect("}"),this.context.inSwitch=p,this.finalize(h,new o.SwitchStatement(u,g))},d.prototype.parseLabelledStatement=function(){var h=this.createNode(),u=this.parseExpression(),p;if(u.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var g=u,E="$"+g.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,E)&&this.throwError(n.Messages.Redeclaration,"Label",g.name),this.context.labelSet[E]=!0;var v=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),v=this.parseClassDeclaration();else if(this.matchKeyword("function")){var D=this.lookahead,x=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(D,n.Messages.StrictFunction):x.generator&&this.tolerateUnexpectedToken(D,n.Messages.GeneratorInLegacyContext),v=x}else v=this.parseStatement();delete this.context.labelSet[E],p=new o.LabeledStatement(g,v)}else this.consumeSemicolon(),p=new o.ExpressionStatement(u);return this.finalize(h,p)},d.prototype.parseThrowStatement=function(){var h=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(n.Messages.NewlineAfterThrow);var u=this.parseExpression();return this.consumeSemicolon(),this.finalize(h,new o.ThrowStatement(u))},d.prototype.parseCatchClause=function(){var h=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var u=[],p=this.parsePattern(u),g={},E=0;E<u.length;E++){var v="$"+u[E].value;Object.prototype.hasOwnProperty.call(g,v)&&this.tolerateError(n.Messages.DuplicateBinding,u[E].value),g[v]=!0}this.context.strict&&p.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(p.name)&&this.tolerateError(n.Messages.StrictCatchVariable),this.expect(")");var D=this.parseBlock();return this.finalize(h,new o.CatchClause(p,D))},d.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},d.prototype.parseTryStatement=function(){var h=this.createNode();this.expectKeyword("try");var u=this.parseBlock(),p=this.matchKeyword("catch")?this.parseCatchClause():null,g=this.matchKeyword("finally")?this.parseFinallyClause():null;return!p&&!g&&this.throwError(n.Messages.NoCatchOrFinally),this.finalize(h,new o.TryStatement(u,p,g))},d.prototype.parseDebuggerStatement=function(){var h=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(h,new o.DebuggerStatement)},d.prototype.parseStatement=function(){var h;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:h=this.parseExpressionStatement();break;case 7:var u=this.lookahead.value;u==="{"?h=this.parseBlock():u==="("?h=this.parseExpressionStatement():u===";"?h=this.parseEmptyStatement():h=this.parseExpressionStatement();break;case 3:h=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":h=this.parseBreakStatement();break;case"continue":h=this.parseContinueStatement();break;case"debugger":h=this.parseDebuggerStatement();break;case"do":h=this.parseDoWhileStatement();break;case"for":h=this.parseForStatement();break;case"function":h=this.parseFunctionDeclaration();break;case"if":h=this.parseIfStatement();break;case"return":h=this.parseReturnStatement();break;case"switch":h=this.parseSwitchStatement();break;case"throw":h=this.parseThrowStatement();break;case"try":h=this.parseTryStatement();break;case"var":h=this.parseVariableStatement();break;case"while":h=this.parseWhileStatement();break;case"with":h=this.parseWithStatement();break;default:h=this.parseExpressionStatement();break}break;default:h=this.throwUnexpectedToken(this.lookahead)}return h},d.prototype.parseFunctionSourceElements=function(){var h=this.createNode();this.expect("{");var u=this.parseDirectivePrologues(),p=this.context.labelSet,g=this.context.inIteration,E=this.context.inSwitch,v=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)u.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=p,this.context.inIteration=g,this.context.inSwitch=E,this.context.inFunctionBody=v,this.finalize(h,new o.BlockStatement(u))},d.prototype.validateParam=function(h,u,p){var g="$"+p;this.context.strict?(this.scanner.isRestrictedWord(p)&&(h.stricted=u,h.message=n.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(h.paramSet,g)&&(h.stricted=u,h.message=n.Messages.StrictParamDupe)):h.firstRestricted||(this.scanner.isRestrictedWord(p)?(h.firstRestricted=u,h.message=n.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(p)?(h.firstRestricted=u,h.message=n.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(h.paramSet,g)&&(h.stricted=u,h.message=n.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(h.paramSet,g,{value:!0,enumerable:!0,writable:!0,configurable:!0}):h.paramSet[g]=!0},d.prototype.parseRestElement=function(h){var u=this.createNode();this.expect("...");var p=this.parsePattern(h);return this.match("=")&&this.throwError(n.Messages.DefaultRestParameter),this.match(")")||this.throwError(n.Messages.ParameterAfterRestParameter),this.finalize(u,new o.RestElement(p))},d.prototype.parseFormalParameter=function(h){for(var u=[],p=this.match("...")?this.parseRestElement(u):this.parsePatternWithDefault(u),g=0;g<u.length;g++)this.validateParam(h,u[g],u[g].value);h.simple=h.simple&&p instanceof o.Identifier,h.params.push(p)},d.prototype.parseFormalParameters=function(h){var u;if(u={simple:!0,params:[],firstRestricted:h},this.expect("("),!this.match(")"))for(u.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(u),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:u.simple,params:u.params,stricted:u.stricted,firstRestricted:u.firstRestricted,message:u.message}},d.prototype.matchAsyncFunction=function(){var h=this.matchContextualKeyword("async");if(h){var u=this.scanner.saveState();this.scanner.scanComments();var p=this.scanner.lex();this.scanner.restoreState(u),h=u.lineNumber===p.lineNumber&&p.type===4&&p.value==="function"}return h},d.prototype.parseFunctionDeclaration=function(h){var u=this.createNode(),p=this.matchContextualKeyword("async");p&&this.nextToken(),this.expectKeyword("function");var g=p?!1:this.match("*");g&&this.nextToken();var E,v=null,D=null;if(!h||!this.match("(")){var x=this.lookahead;v=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(x.value)&&this.tolerateUnexpectedToken(x,n.Messages.StrictFunctionName):this.scanner.isRestrictedWord(x.value)?(D=x,E=n.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(x.value)&&(D=x,E=n.Messages.StrictReservedWord)}var b=this.context.await,_=this.context.allowYield;this.context.await=p,this.context.allowYield=!g;var R=this.parseFormalParameters(D),T=R.params,O=R.stricted;D=R.firstRestricted,R.message&&(E=R.message);var M=this.context.strict,q=this.context.allowStrictDirective;this.context.allowStrictDirective=R.simple;var Me=this.parseFunctionSourceElements();return this.context.strict&&D&&this.throwUnexpectedToken(D,E),this.context.strict&&O&&this.tolerateUnexpectedToken(O,E),this.context.strict=M,this.context.allowStrictDirective=q,this.context.await=b,this.context.allowYield=_,p?this.finalize(u,new o.AsyncFunctionDeclaration(v,T,Me)):this.finalize(u,new o.FunctionDeclaration(v,T,Me,g))},d.prototype.parseFunctionExpression=function(){var h=this.createNode(),u=this.matchContextualKeyword("async");u&&this.nextToken(),this.expectKeyword("function");var p=u?!1:this.match("*");p&&this.nextToken();var g,E=null,v,D=this.context.await,x=this.context.allowYield;if(this.context.await=u,this.context.allowYield=!p,!this.match("(")){var b=this.lookahead;E=!this.context.strict&&!p&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(b.value)&&this.tolerateUnexpectedToken(b,n.Messages.StrictFunctionName):this.scanner.isRestrictedWord(b.value)?(v=b,g=n.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(b.value)&&(v=b,g=n.Messages.StrictReservedWord)}var _=this.parseFormalParameters(v),R=_.params,T=_.stricted;v=_.firstRestricted,_.message&&(g=_.message);var O=this.context.strict,M=this.context.allowStrictDirective;this.context.allowStrictDirective=_.simple;var q=this.parseFunctionSourceElements();return this.context.strict&&v&&this.throwUnexpectedToken(v,g),this.context.strict&&T&&this.tolerateUnexpectedToken(T,g),this.context.strict=O,this.context.allowStrictDirective=M,this.context.await=D,this.context.allowYield=x,u?this.finalize(h,new o.AsyncFunctionExpression(E,R,q)):this.finalize(h,new o.FunctionExpression(E,R,q,p))},d.prototype.parseDirective=function(){var h=this.lookahead,u=this.createNode(),p=this.parseExpression(),g=p.type===c.Syntax.Literal?this.getTokenRaw(h).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(u,g?new o.Directive(p,g):new o.ExpressionStatement(p))},d.prototype.parseDirectivePrologues=function(){for(var h=null,u=[];;){var p=this.lookahead;if(p.type!==8)break;var g=this.parseDirective();u.push(g);var E=g.directive;if(typeof E!="string")break;E==="use strict"?(this.context.strict=!0,h&&this.tolerateUnexpectedToken(h,n.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(p,n.Messages.IllegalLanguageModeDirective)):!h&&p.octal&&(h=p)}return u},d.prototype.qualifiedPropertyName=function(h){switch(h.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return h.value==="[";default:break}return!1},d.prototype.parseGetterMethod=function(){var h=this.createNode(),u=!1,p=this.context.allowYield;this.context.allowYield=!u;var g=this.parseFormalParameters();g.params.length>0&&this.tolerateError(n.Messages.BadGetterArity);var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.parseSetterMethod=function(){var h=this.createNode(),u=!1,p=this.context.allowYield;this.context.allowYield=!u;var g=this.parseFormalParameters();g.params.length!==1?this.tolerateError(n.Messages.BadSetterArity):g.params[0]instanceof o.RestElement&&this.tolerateError(n.Messages.BadSetterRestParameter);var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.parseGeneratorMethod=function(){var h=this.createNode(),u=!0,p=this.context.allowYield;this.context.allowYield=!0;var g=this.parseFormalParameters();this.context.allowYield=!1;var E=this.parsePropertyMethod(g);return this.context.allowYield=p,this.finalize(h,new o.FunctionExpression(null,g.params,E,u))},d.prototype.isStartOfExpression=function(){var h=!0,u=this.lookahead.value;switch(this.lookahead.type){case 7:h=u==="["||u==="("||u==="{"||u==="+"||u==="-"||u==="!"||u==="~"||u==="++"||u==="--"||u==="/"||u==="/=";break;case 4:h=u==="class"||u==="delete"||u==="function"||u==="let"||u==="new"||u==="super"||u==="this"||u==="typeof"||u==="void"||u==="yield";break;default:break}return h},d.prototype.parseYieldExpression=function(){var h=this.createNode();this.expectKeyword("yield");var u=null,p=!1;if(!this.hasLineTerminator){var g=this.context.allowYield;this.context.allowYield=!1,p=this.match("*"),p?(this.nextToken(),u=this.parseAssignmentExpression()):this.isStartOfExpression()&&(u=this.parseAssignmentExpression()),this.context.allowYield=g}return this.finalize(h,new o.YieldExpression(u,p))},d.prototype.parseClassElement=function(h){var u=this.lookahead,p=this.createNode(),g="",E=null,v=null,D=!1,x=!1,b=!1,_=!1;if(this.match("*"))this.nextToken();else{D=this.match("["),E=this.parseObjectPropertyKey();var R=E;if(R.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(u=this.lookahead,b=!0,D=this.match("["),this.match("*")?this.nextToken():E=this.parseObjectPropertyKey()),u.type===3&&!this.hasLineTerminator&&u.value==="async"){var T=this.lookahead.value;T!==":"&&T!=="("&&T!=="*"&&(_=!0,u=this.lookahead,E=this.parseObjectPropertyKey(),u.type===3&&u.value==="constructor"&&this.tolerateUnexpectedToken(u,n.Messages.ConstructorIsAsync))}}var O=this.qualifiedPropertyName(this.lookahead);return u.type===3?u.value==="get"&&O?(g="get",D=this.match("["),E=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod()):u.value==="set"&&O&&(g="set",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseSetterMethod()):u.type===7&&u.value==="*"&&O&&(g="init",D=this.match("["),E=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),x=!0),!g&&E&&this.match("(")&&(g="init",v=_?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),x=!0),g||this.throwUnexpectedToken(this.lookahead),g==="init"&&(g="method"),D||(b&&this.isPropertyKey(E,"prototype")&&this.throwUnexpectedToken(u,n.Messages.StaticPrototype),!b&&this.isPropertyKey(E,"constructor")&&((g!=="method"||!x||v&&v.generator)&&this.throwUnexpectedToken(u,n.Messages.ConstructorSpecialMethod),h.value?this.throwUnexpectedToken(u,n.Messages.DuplicateConstructor):h.value=!0,g="constructor")),this.finalize(p,new o.MethodDefinition(E,D,v,g,b))},d.prototype.parseClassElementList=function(){var h=[],u={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():h.push(this.parseClassElement(u));return this.expect("}"),h},d.prototype.parseClassBody=function(){var h=this.createNode(),u=this.parseClassElementList();return this.finalize(h,new o.ClassBody(u))},d.prototype.parseClassDeclaration=function(h){var u=this.createNode(),p=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var g=h&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),E=null;this.matchKeyword("extends")&&(this.nextToken(),E=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var v=this.parseClassBody();return this.context.strict=p,this.finalize(u,new o.ClassDeclaration(g,E,v))},d.prototype.parseClassExpression=function(){var h=this.createNode(),u=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var p=this.lookahead.type===3?this.parseVariableIdentifier():null,g=null;this.matchKeyword("extends")&&(this.nextToken(),g=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var E=this.parseClassBody();return this.context.strict=u,this.finalize(h,new o.ClassExpression(p,g,E))},d.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var h=this.createNode(),u=this.parseDirectivePrologues();this.lookahead.type!==2;)u.push(this.parseStatementListItem());return this.finalize(h,new o.Module(u))},d.prototype.parseScript=function(){for(var h=this.createNode(),u=this.parseDirectivePrologues();this.lookahead.type!==2;)u.push(this.parseStatementListItem());return this.finalize(h,new o.Script(u))},d.prototype.parseModuleSpecifier=function(){var h=this.createNode();this.lookahead.type!==8&&this.throwError(n.Messages.InvalidModuleSpecifier);var u=this.nextToken(),p=this.getTokenRaw(u);return this.finalize(h,new o.Literal(u.value,p))},d.prototype.parseImportSpecifier=function(){var h=this.createNode(),u,p;return this.lookahead.type===3?(u=this.parseVariableIdentifier(),p=u,this.matchContextualKeyword("as")&&(this.nextToken(),p=this.parseVariableIdentifier())):(u=this.parseIdentifierName(),p=u,this.matchContextualKeyword("as")?(this.nextToken(),p=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(h,new o.ImportSpecifier(p,u))},d.prototype.parseNamedImports=function(){this.expect("{");for(var h=[];!this.match("}");)h.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),h},d.prototype.parseImportDefaultSpecifier=function(){var h=this.createNode(),u=this.parseIdentifierName();return this.finalize(h,new o.ImportDefaultSpecifier(u))},d.prototype.parseImportNamespaceSpecifier=function(){var h=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(n.Messages.NoAsAfterImportNamespace),this.nextToken();var u=this.parseIdentifierName();return this.finalize(h,new o.ImportNamespaceSpecifier(u))},d.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalImportDeclaration);var h=this.createNode();this.expectKeyword("import");var u,p=[];if(this.lookahead.type===8)u=this.parseModuleSpecifier();else{if(this.match("{")?p=p.concat(this.parseNamedImports()):this.match("*")?p.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(p.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?p.push(this.parseImportNamespaceSpecifier()):this.match("{")?p=p.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}this.nextToken(),u=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(h,new o.ImportDeclaration(p,u))},d.prototype.parseExportSpecifier=function(){var h=this.createNode(),u=this.parseIdentifierName(),p=u;return this.matchContextualKeyword("as")&&(this.nextToken(),p=this.parseIdentifierName()),this.finalize(h,new o.ExportSpecifier(u,p))},d.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(n.Messages.IllegalExportDeclaration);var h=this.createNode();this.expectKeyword("export");var u;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var p=this.parseFunctionDeclaration(!0);u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.matchKeyword("class")){var p=this.parseClassDeclaration(!0);u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.matchContextualKeyword("async")){var p=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else{this.matchContextualKeyword("from")&&this.throwError(n.Messages.UnexpectedToken,this.lookahead.value);var p=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),u=this.finalize(h,new o.ExportDefaultDeclaration(p))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}this.nextToken();var E=this.parseModuleSpecifier();this.consumeSemicolon(),u=this.finalize(h,new o.ExportAllDeclaration(E))}else if(this.lookahead.type===4){var p=void 0;switch(this.lookahead.value){case"let":case"const":p=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":p=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}u=this.finalize(h,new o.ExportNamedDeclaration(p,[],null))}else if(this.matchAsyncFunction()){var p=this.parseFunctionDeclaration();u=this.finalize(h,new o.ExportNamedDeclaration(p,[],null))}else{var v=[],D=null,x=!1;for(this.expect("{");!this.match("}");)x=x||this.matchKeyword("default"),v.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),D=this.parseModuleSpecifier(),this.consumeSemicolon();else if(x){var g=this.lookahead.value?n.Messages.UnexpectedToken:n.Messages.MissingFromClause;this.throwError(g,this.lookahead.value)}else this.consumeSemicolon();u=this.finalize(h,new o.ExportNamedDeclaration(null,v,D))}return u},d}();e.Parser=m},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(r,s){if(!r)throw new Error("ASSERT: "+s)}e.assert=t},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function r(){this.errors=[],this.tolerant=!1}return r.prototype.recordError=function(s){this.errors.push(s)},r.prototype.tolerate=function(s){if(this.tolerant)this.recordError(s);else throw s},r.prototype.constructError=function(s,n){var o=new Error(s);try{throw o}catch(a){Object.create&&Object.defineProperty&&(o=Object.create(a),Object.defineProperty(o,"column",{value:n}))}return o},r.prototype.createError=function(s,n,o,a){var c="Line "+n+": "+a,l=this.constructError(c,o);return l.index=s,l.lineNumber=n,l.description=a,l},r.prototype.throwError=function(s,n,o,a){throw this.createError(s,n,o,a)},r.prototype.tolerateError=function(s,n,o,a){var c=this.createError(s,n,o,a);if(this.tolerant)this.recordError(c);else throw c},r}();e.ErrorHandler=t},function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t(9),s=t(4),n=t(11);function o(l){return"0123456789abcdef".indexOf(l.toLowerCase())}function a(l){return"01234567".indexOf(l)}var c=function(){function l(f,m){this.source=f,this.errorHandler=m,this.trackComment=!1,this.isModule=!1,this.length=f.length,this.index=0,this.lineNumber=f.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return l.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},l.prototype.restoreState=function(f){this.index=f.index,this.lineNumber=f.lineNumber,this.lineStart=f.lineStart},l.prototype.eof=function(){return this.index>=this.length},l.prototype.throwUnexpectedToken=function(f){return f===void 0&&(f=n.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,f)},l.prototype.tolerateUnexpectedToken=function(f){f===void 0&&(f=n.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,f)},l.prototype.skipSingleLineComment=function(f){var m=[],d,h;for(this.trackComment&&(m=[],d=this.index-f,h={start:{line:this.lineNumber,column:this.index-this.lineStart-f},end:{}});!this.eof();){var u=this.source.charCodeAt(this.index);if(++this.index,s.Character.isLineTerminator(u)){if(this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart-1};var p={multiLine:!1,slice:[d+f,this.index-1],range:[d,this.index-1],loc:h};m.push(p)}return u===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m}}if(this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart};var p={multiLine:!1,slice:[d+f,this.index],range:[d,this.index],loc:h};m.push(p)}return m},l.prototype.skipMultiLineComment=function(){var f=[],m,d;for(this.trackComment&&(f=[],m=this.index-2,d={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var h=this.source.charCodeAt(this.index);if(s.Character.isLineTerminator(h))h===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(h===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var u={multiLine:!0,slice:[m+2,this.index-2],range:[m,this.index],loc:d};f.push(u)}return f}++this.index}else++this.index}if(this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var u={multiLine:!0,slice:[m+2,this.index],range:[m,this.index],loc:d};f.push(u)}return this.tolerateUnexpectedToken(),f},l.prototype.scanComments=function(){var f;this.trackComment&&(f=[]);for(var m=this.index===0;!this.eof();){var d=this.source.charCodeAt(this.index);if(s.Character.isWhiteSpace(d))++this.index;else if(s.Character.isLineTerminator(d))++this.index,d===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,m=!0;else if(d===47)if(d=this.source.charCodeAt(this.index+1),d===47){this.index+=2;var h=this.skipSingleLineComment(2);this.trackComment&&(f=f.concat(h)),m=!0}else if(d===42){this.index+=2;var h=this.skipMultiLineComment();this.trackComment&&(f=f.concat(h))}else break;else if(m&&d===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var h=this.skipSingleLineComment(3);this.trackComment&&(f=f.concat(h))}else break;else if(d===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var h=this.skipSingleLineComment(4);this.trackComment&&(f=f.concat(h))}else break;else break}return f},l.prototype.isFutureReservedWord=function(f){switch(f){case"enum":case"export":case"import":case"super":return!0;default:return!1}},l.prototype.isStrictModeReservedWord=function(f){switch(f){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},l.prototype.isRestrictedWord=function(f){return f==="eval"||f==="arguments"},l.prototype.isKeyword=function(f){switch(f.length){case 2:return f==="if"||f==="in"||f==="do";case 3:return f==="var"||f==="for"||f==="new"||f==="try"||f==="let";case 4:return f==="this"||f==="else"||f==="case"||f==="void"||f==="with"||f==="enum";case 5:return f==="while"||f==="break"||f==="catch"||f==="throw"||f==="const"||f==="yield"||f==="class"||f==="super";case 6:return f==="return"||f==="typeof"||f==="delete"||f==="switch"||f==="export"||f==="import";case 7:return f==="default"||f==="finally"||f==="extends";case 8:return f==="function"||f==="continue"||f==="debugger";case 10:return f==="instanceof";default:return!1}},l.prototype.codePointAt=function(f){var m=this.source.charCodeAt(f);if(m>=55296&&m<=56319){var d=this.source.charCodeAt(f+1);if(d>=56320&&d<=57343){var h=m;m=(h-55296)*1024+d-56320+65536}}return m},l.prototype.scanHexEscape=function(f){for(var m=f==="u"?4:2,d=0,h=0;h<m;++h)if(!this.eof()&&s.Character.isHexDigit(this.source.charCodeAt(this.index)))d=d*16+o(this.source[this.index++]);else return null;return String.fromCharCode(d)},l.prototype.scanUnicodeCodePointEscape=function(){var f=this.source[this.index],m=0;for(f==="}"&&this.throwUnexpectedToken();!this.eof()&&(f=this.source[this.index++],!!s.Character.isHexDigit(f.charCodeAt(0)));)m=m*16+o(f);return(m>1114111||f!=="}")&&this.throwUnexpectedToken(),s.Character.fromCodePoint(m)},l.prototype.getIdentifier=function(){for(var f=this.index++;!this.eof();){var m=this.source.charCodeAt(this.index);if(m===92)return this.index=f,this.getComplexIdentifier();if(m>=55296&&m<57343)return this.index=f,this.getComplexIdentifier();if(s.Character.isIdentifierPart(m))++this.index;else break}return this.source.slice(f,this.index)},l.prototype.getComplexIdentifier=function(){var f=this.codePointAt(this.index),m=s.Character.fromCodePoint(f);this.index+=m.length;var d;for(f===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!s.Character.isIdentifierStart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m=d);!this.eof()&&(f=this.codePointAt(this.index),!!s.Character.isIdentifierPart(f));)d=s.Character.fromCodePoint(f),m+=d,this.index+=d.length,f===92&&(m=m.substr(0,m.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!s.Character.isIdentifierPart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),m+=d);return m},l.prototype.octalToDecimal=function(f){var m=f!=="0",d=a(f);return!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(m=!0,d=d*8+a(this.source[this.index++]),"0123".indexOf(f)>=0&&!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=d*8+a(this.source[this.index++]))),{code:d,octal:m}},l.prototype.scanIdentifier=function(){var f,m=this.index,d=this.source.charCodeAt(m)===92?this.getComplexIdentifier():this.getIdentifier();if(d.length===1?f=3:this.isKeyword(d)?f=4:d==="null"?f=5:d==="true"||d==="false"?f=1:f=3,f!==3&&m+d.length!==this.index){var h=this.index;this.index=m,this.tolerateUnexpectedToken(n.Messages.InvalidEscapedReservedWord),this.index=h}return{type:f,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},l.prototype.scanPunctuator=function(){var f=this.index,m=this.source[this.index];switch(m){case"(":case"{":m==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,m="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:m=this.source.substr(this.index,4),m===">>>="?this.index+=4:(m=m.substr(0,3),m==="==="||m==="!=="||m===">>>"||m==="<<="||m===">>="||m==="**="?this.index+=3:(m=m.substr(0,2),m==="&&"||m==="||"||m==="=="||m==="!="||m==="+="||m==="-="||m==="*="||m==="/="||m==="++"||m==="--"||m==="<<"||m===">>"||m==="&="||m==="|="||m==="^="||m==="%="||m==="<="||m===">="||m==="=>"||m==="**"?this.index+=2:(m=this.source[this.index],"<>=!+-*%&|^/".indexOf(m)>=0&&++this.index)))}return this.index===f&&this.throwUnexpectedToken(),{type:7,value:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanHexLiteral=function(f){for(var m="";!this.eof()&&s.Character.isHexDigit(this.source.charCodeAt(this.index));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),s.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+m,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanBinaryLiteral=function(f){for(var m="",d;!this.eof()&&(d=this.source[this.index],!(d!=="0"&&d!=="1"));)m+=this.source[this.index++];return m.length===0&&this.throwUnexpectedToken(),this.eof()||(d=this.source.charCodeAt(this.index),(s.Character.isIdentifierStart(d)||s.Character.isDecimalDigit(d))&&this.throwUnexpectedToken()),{type:6,value:parseInt(m,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanOctalLiteral=function(f,m){var d="",h=!1;for(s.Character.isOctalDigit(f.charCodeAt(0))?(h=!0,d="0"+this.source[this.index++]):++this.index;!this.eof()&&s.Character.isOctalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];return!h&&d.length===0&&this.throwUnexpectedToken(),(s.Character.isIdentifierStart(this.source.charCodeAt(this.index))||s.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(d,8),octal:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},l.prototype.isImplicitOctalLiteral=function(){for(var f=this.index+1;f<this.length;++f){var m=this.source[f];if(m==="8"||m==="9")return!1;if(!s.Character.isOctalDigit(m.charCodeAt(0)))return!0}return!0},l.prototype.scanNumericLiteral=function(){var f=this.index,m=this.source[f];r.assert(s.Character.isDecimalDigit(m.charCodeAt(0))||m===".","Numeric literal must start with a decimal digit or a decimal point");var d="";if(m!=="."){if(d=this.source[this.index++],m=this.source[this.index],d==="0"){if(m==="x"||m==="X")return++this.index,this.scanHexLiteral(f);if(m==="b"||m==="B")return++this.index,this.scanBinaryLiteral(f);if(m==="o"||m==="O")return this.scanOctalLiteral(m,f);if(m&&s.Character.isOctalDigit(m.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(m,f)}for(;s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="."){for(d+=this.source[this.index++];s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];m=this.source[this.index]}if(m==="e"||m==="E")if(d+=this.source[this.index++],m=this.source[this.index],(m==="+"||m==="-")&&(d+=this.source[this.index++]),s.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;s.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];else this.throwUnexpectedToken();return s.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(d),lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanStringLiteral=function(){var f=this.index,m=this.source[f];r.assert(m==="'"||m==='"',"String literal must starts with a quote"),++this.index;for(var d=!1,h="";!this.eof();){var u=this.source[this.index++];if(u===m){m="";break}else if(u==="\\")if(u=this.source[this.index++],!u||!s.Character.isLineTerminator(u.charCodeAt(0)))switch(u){case"u":if(this.source[this.index]==="{")++this.index,h+=this.scanUnicodeCodePointEscape();else{var p=this.scanHexEscape(u);p===null&&this.throwUnexpectedToken(),h+=p}break;case"x":var g=this.scanHexEscape(u);g===null&&this.throwUnexpectedToken(n.Messages.InvalidHexEscapeSequence),h+=g;break;case"n":h+=`
|
|
5
5
|
`;break;case"r":h+="\r";break;case"t":h+=" ";break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;case"8":case"9":h+=u,this.tolerateUnexpectedToken();break;default:if(u&&s.Character.isOctalDigit(u.charCodeAt(0))){var E=this.octalToDecimal(u);d=E.octal||d,h+=String.fromCharCode(E.code)}else h+=u;break}else++this.lineNumber,u==="\r"&&this.source[this.index]===`
|
|
6
6
|
`&&++this.index,this.lineStart=this.index;else{if(s.Character.isLineTerminator(u.charCodeAt(0)))break;h+=u}}return m!==""&&(this.index=f,this.throwUnexpectedToken()),{type:8,value:h,octal:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},l.prototype.scanTemplate=function(){var f="",m=!1,d=this.index,h=this.source[d]==="`",u=!1,p=2;for(++this.index;!this.eof();){var g=this.source[this.index++];if(g==="`"){p=1,u=!0,m=!0;break}else if(g==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,m=!0;break}f+=g}else if(g==="\\")if(g=this.source[this.index++],s.Character.isLineTerminator(g.charCodeAt(0)))++this.lineNumber,g==="\r"&&this.source[this.index]===`
|
|
@@ -171,4 +171,4 @@ make-fetch-happen/lib/fetch.js:
|
|
|
171
171
|
* governing permissions and limitations under the License.
|
|
172
172
|
*)
|
|
173
173
|
*/
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-DGQKIB5L.js.map
|