@datalayer/primer-addons 0.0.1 → 0.0.2
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/README.md +3 -2
- package/package.json +7 -2
- package/.eslintrc.cjs +0 -16
- package/.gitignore +0 -42
- package/.storybook/main.ts +0 -17
- package/.storybook/preview.ts +0 -15
- package/Makefile +0 -68
- package/dist/assets/index-25ada336.css +0 -1
- package/dist/assets/index-4f3dd966.js +0 -66
- package/dist/index.html +0 -15
- package/dist/vite.svg +0 -1
- package/index.html +0 -13
- package/public/vite.svg +0 -1
- package/src/App.css +0 -43
- package/src/App.tsx +0 -22
- package/src/assets/react.svg +0 -1
- package/src/components/index.tsx +0 -2
- package/src/components/slider/Slider.tsx +0 -5
- package/src/components/toolbar/Toolbar.tsx +0 -67
- package/src/index.css +0 -69
- package/src/index.tsx +0 -1
- package/src/main.tsx +0 -11
- package/src/stories/Button.stories.ts +0 -44
- package/src/stories/Button.tsx +0 -47
- package/src/stories/Header.stories.ts +0 -26
- package/src/stories/Header.tsx +0 -54
- package/src/stories/Introduction.mdx +0 -213
- package/src/stories/Page.stories.ts +0 -29
- package/src/stories/Page.tsx +0 -73
- package/src/stories/Toolbar.stories.tsx +0 -85
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -69
- package/src/vite-env.d.ts +0 -1
- package/storybook-static/assets/Button-1703f682.js +0 -2
- package/storybook-static/assets/Button-1703f682.js.map +0 -1
- package/storybook-static/assets/Button-bc1a867b.css +0 -1
- package/storybook-static/assets/Button.stories-e50ec7d0.js +0 -21
- package/storybook-static/assets/Button.stories-e50ec7d0.js.map +0 -1
- package/storybook-static/assets/Color-3YIJY6X7-33534dea.js +0 -2
- package/storybook-static/assets/Color-3YIJY6X7-33534dea.js.map +0 -1
- package/storybook-static/assets/DocsRenderer-EYKKDMVH-d97d9f24.js +0 -2
- package/storybook-static/assets/DocsRenderer-EYKKDMVH-d97d9f24.js.map +0 -1
- package/storybook-static/assets/GlobalScrollAreaStyles-XIHNDKUY-22b5043a.js +0 -2
- package/storybook-static/assets/GlobalScrollAreaStyles-XIHNDKUY-22b5043a.js.map +0 -1
- package/storybook-static/assets/Header-c4aa7ebe.js +0 -2
- package/storybook-static/assets/Header-c4aa7ebe.js.map +0 -1
- package/storybook-static/assets/Header-e719f21b.css +0 -1
- package/storybook-static/assets/Header.stories-701d06f7.js +0 -8
- package/storybook-static/assets/Header.stories-701d06f7.js.map +0 -1
- package/storybook-static/assets/Introduction-a9014acb.js +0 -125
- package/storybook-static/assets/Introduction-a9014acb.js.map +0 -1
- package/storybook-static/assets/OverlayScrollbars-VAV6LJAB-a98f2f2f.js +0 -7
- package/storybook-static/assets/OverlayScrollbars-VAV6LJAB-a98f2f2f.js.map +0 -1
- package/storybook-static/assets/Page.stories-62652a55.css +0 -1
- package/storybook-static/assets/Page.stories-cee5e213.js +0 -83
- package/storybook-static/assets/Page.stories-cee5e213.js.map +0 -1
- package/storybook-static/assets/Toolbar.stories-29c3e06c.js +0 -46
- package/storybook-static/assets/Toolbar.stories-29c3e06c.js.map +0 -1
- package/storybook-static/assets/WithTooltip-FBT32F6Q-c03e9919.js +0 -2
- package/storybook-static/assets/WithTooltip-FBT32F6Q-c03e9919.js.map +0 -1
- package/storybook-static/assets/_commonjsHelpers-042e6b4d.js +0 -2
- package/storybook-static/assets/_commonjsHelpers-042e6b4d.js.map +0 -1
- package/storybook-static/assets/code-brackets-9ef6443e.svg +0 -1
- package/storybook-static/assets/colors-ac9401f3.svg +0 -1
- package/storybook-static/assets/comments-f15a6837.svg +0 -1
- package/storybook-static/assets/config-6b18ac56.js +0 -55
- package/storybook-static/assets/config-6b18ac56.js.map +0 -1
- package/storybook-static/assets/direction-94a9917f.svg +0 -1
- package/storybook-static/assets/doctrine-a302d8f8.js +0 -4
- package/storybook-static/assets/doctrine-a302d8f8.js.map +0 -1
- package/storybook-static/assets/flow-275142c6.svg +0 -1
- package/storybook-static/assets/formatter-S4K5WUZV-b5d041c7.js +0 -157
- package/storybook-static/assets/formatter-S4K5WUZV-b5d041c7.js.map +0 -1
- package/storybook-static/assets/iframe-c16a7b15.js +0 -2
- package/storybook-static/assets/iframe-c16a7b15.js.map +0 -1
- package/storybook-static/assets/index-186b3228.js +0 -2
- package/storybook-static/assets/index-186b3228.js.map +0 -1
- package/storybook-static/assets/index-1d576ef5.js +0 -2
- package/storybook-static/assets/index-1d576ef5.js.map +0 -1
- package/storybook-static/assets/index-356e4a49.js +0 -7
- package/storybook-static/assets/index-356e4a49.js.map +0 -1
- package/storybook-static/assets/index-3639c647.js +0 -2
- package/storybook-static/assets/index-3639c647.js.map +0 -1
- package/storybook-static/assets/index-5049e453.js +0 -354
- package/storybook-static/assets/index-5049e453.js.map +0 -1
- package/storybook-static/assets/index-8ce4a492.js +0 -25
- package/storybook-static/assets/index-8ce4a492.js.map +0 -1
- package/storybook-static/assets/index-8db94870.js +0 -10
- package/storybook-static/assets/index-8db94870.js.map +0 -1
- package/storybook-static/assets/index-d475d2ea.js +0 -2
- package/storybook-static/assets/index-d475d2ea.js.map +0 -1
- package/storybook-static/assets/jsx-runtime-94f6e698.js +0 -10
- package/storybook-static/assets/jsx-runtime-94f6e698.js.map +0 -1
- package/storybook-static/assets/plugin-57148314.svg +0 -1
- package/storybook-static/assets/preview-00db0eb8.js +0 -2
- package/storybook-static/assets/preview-00db0eb8.js.map +0 -1
- package/storybook-static/assets/preview-073d0cdc.js +0 -2
- package/storybook-static/assets/preview-073d0cdc.js.map +0 -1
- package/storybook-static/assets/preview-1e5c59db.js +0 -2
- package/storybook-static/assets/preview-1e5c59db.js.map +0 -1
- package/storybook-static/assets/preview-2cd4e1a1.js +0 -2
- package/storybook-static/assets/preview-2cd4e1a1.js.map +0 -1
- package/storybook-static/assets/preview-770cc08b.js +0 -21
- package/storybook-static/assets/preview-770cc08b.js.map +0 -1
- package/storybook-static/assets/preview-a60aa466.js +0 -2
- package/storybook-static/assets/preview-a60aa466.js.map +0 -1
- package/storybook-static/assets/preview-b1164a2e.js +0 -8
- package/storybook-static/assets/preview-b1164a2e.js.map +0 -1
- package/storybook-static/assets/preview-bc596eab.js +0 -2
- package/storybook-static/assets/preview-bc596eab.js.map +0 -1
- package/storybook-static/assets/preview-d8c963a4.js +0 -397
- package/storybook-static/assets/preview-d8c963a4.js.map +0 -1
- package/storybook-static/assets/react-18-ff2c0a32.js +0 -2
- package/storybook-static/assets/react-18-ff2c0a32.js.map +0 -1
- package/storybook-static/assets/repo-fb4ece47.svg +0 -1
- package/storybook-static/assets/stackalt-2ad81543.svg +0 -1
- package/storybook-static/assets/syntaxhighlighter-QTQ2UBB4-c38aca63.js +0 -2
- package/storybook-static/assets/syntaxhighlighter-QTQ2UBB4-c38aca63.js.map +0 -1
- package/storybook-static/favicon.svg +0 -7
- package/storybook-static/iframe.html +0 -459
- package/storybook-static/index.html +0 -130
- package/storybook-static/index.json +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -13
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -120
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -35
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -31
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.map +0 -7
- package/storybook-static/sb-addons/links-0/manager-bundle.js +0 -4
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.map +0 -7
- package/storybook-static/sb-common-assets/fonts.css +0 -31
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/GlobalScrollAreaStyles-XIHNDKUY-F4JIPIHL.js +0 -1
- package/storybook-static/sb-manager/OverlayScrollbars-VAV6LJAB-K3TMPSMY.js +0 -6
- package/storybook-static/sb-manager/WithTooltip-FBT32F6Q-7QJ37TCY.js +0 -1
- package/storybook-static/sb-manager/chunk-3FAXWWKG.js +0 -15
- package/storybook-static/sb-manager/chunk-54KM6K5Z.js +0 -7
- package/storybook-static/sb-manager/chunk-AS2AMEUR.js +0 -1
- package/storybook-static/sb-manager/chunk-F3MVQVF6.js +0 -207
- package/storybook-static/sb-manager/chunk-FENICTK6.js +0 -1
- package/storybook-static/sb-manager/chunk-PUVLCKJJ.js +0 -140
- package/storybook-static/sb-manager/chunk-QPL63VNK.js +0 -1
- package/storybook-static/sb-manager/chunk-U5V7EQT2.js +0 -405
- package/storybook-static/sb-manager/formatter-S4K5WUZV-4LPR5OBX.js +0 -156
- package/storybook-static/sb-manager/globals.js +0 -1
- package/storybook-static/sb-manager/index.js +0 -1
- package/storybook-static/sb-manager/runtime.js +0 -1
- package/storybook-static/sb-manager/syntaxhighlighter-QTQ2UBB4-F5YUFYAB.js +0 -1
- package/storybook-static/sb-preview/globals.js +0 -1
- package/storybook-static/sb-preview/runtime.js +0 -105
- package/storybook-static/stories.json +0 -1
- package/storybook-static/vite.svg +0 -1
- package/tsconfig.json +0 -29
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -7
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import{s as cs}from"./index-d475d2ea.js";import{R as Le,r as Pe}from"./index-8db94870.js";import{u as Zr,r as hs}from"./react-18-ff2c0a32.js";import{g as et,c as dt,a as fs}from"./_commonjsHelpers-042e6b4d.js";import{k as ps,_ as ds,a as ms,d as gs,u as ys,b as Ni,c as vs,i as Li,e as xs,f as ei}from"./doctrine-a302d8f8.js";import{d as bs}from"./index-356e4a49.js";import"./index-8ce4a492.js";function Ss(e){return function(t,r,i){for(var s=-1,a=Object(t),u=i(t),f=u.length;f--;){var p=u[e?f:++s];if(r(a[p],p,a)===!1)break}return t}}var _s=Ss,Es=_s,Cs=Es(),As=Cs,ws=As,ks=ps;function Ts(e,t){return e&&ws(e,t,ks)}var Ps=Ts,Is=ms,Ns=Ps,Ls=ds;function Os(e,t){var r={};return t=Ls(t),Ns(e,function(i,s,a){Is(r,s,t(i,s,a))}),r}var Rs=Os;const Fs=et(Rs);var Oi={exports:{}},Ms="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ds=Ms,Bs=Ds;function Ri(){}function Fi(){}Fi.resetWarningCache=Ri;var Vs=function(){function e(i,s,a,u,f,p){if(p!==Bs){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Fi,resetWarningCache:Ri};return r.PropTypes=r,r};Oi.exports=Vs();var js=Oi.exports;const ti=et(js);var{FRAMEWORK_OPTIONS:rr}=cs,ic=(e,t)=>{let{id:r,component:i}=t;if(!i)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Le.createElement(i,{...e})},qs=class extends Pe.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},ri=rr!=null&&rr.strictMode?Pe.StrictMode:Pe.Fragment;async function nc({storyContext:e,unboundStoryFn:t,showMain:r,showException:i,forceRemount:s},a){let u=Le.createElement(qs,{showMain:r,showException:i},Le.createElement(t,{...e})),f=ri?Le.createElement(ri,null,u):u;return s&&Zr(a),await hs(f,a),()=>Zr(a)}const{combineParameters:Us}=__STORYBOOK_MODULE_PREVIEW_API__;var Gs=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Pt(r.value)}),{name:"object",value:t};default:throw new Error(`Unknown: ${e}`)}},Pt=e=>{let{name:t,raw:r}=e,i={};switch(typeof r<"u"&&(i.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...i,name:t};case"Array":return{...i,name:"array",value:e.elements.map(Pt)};case"signature":return{...i,...Gs(e)};case"union":case"intersection":return{...i,name:t,value:e.elements.map(Pt)};default:return{...i,name:"other",value:t}}},Ws=e=>e.name==="literal",zs=e=>e.value.replace(/['|"]/g,""),$s=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=ht(r.value)}),{name:"object",value:t};default:throw new Error(`Unknown: ${e}`)}},ht=e=>{let{name:t,raw:r}=e,i={};switch(typeof r<"u"&&(i.raw=r),e.name){case"literal":return{...i,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...i,name:t};case"Array":return{...i,name:"array",value:e.elements.map(ht)};case"signature":return{...i,...$s(e)};case"union":return e.elements.every(Ws)?{...i,name:"enum",value:e.elements.map(zs)}:{...i,name:t,value:e.elements.map(ht)};case"intersection":return{...i,name:t,value:e.elements.map(ht)};default:return{...i,name:"other",value:t}}},Mi=/^['"]|['"]$/g,Js=e=>e.replace(Mi,""),Xs=e=>Mi.test(e),Hs=/^\(.*\) => /,ct=e=>{let{name:t,raw:r,computed:i,value:s}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let f=i?s:s.map(p=>{let y=Js(p.value);return Xs(p.value)||Number.isNaN(Number(y))?y:Number(y)});return{...a,name:t,value:f}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:s&&ct(s)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:ct(s)};case"shape":case"exact":let u=Fs(s,f=>ct(f));return{...a,name:"object",value:u};case"union":return{...a,name:"union",value:s.map(f=>ct(f))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let y=t.split("|").map(g=>JSON.parse(g));return{...a,name:"enum",value:y}}catch{}let f=s?`${t}(${s})`:t,p=Hs.test(t)?"function":"other";return{...a,name:p,value:f}}}},Er=e=>{let{type:t,tsType:r,flowType:i}=e;return t!=null?ct(t):r!=null?Pt(r):i!=null?ht(i):null},pr=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(pr||{}),Qs=["null","undefined"];function Cr(e){return Qs.some(t=>t===e)}var Ys=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function Ar(e){return!!e.__docgenInfo}function Ks(e){return e!=null&&Object.keys(e).length>0}function Di(e,t){return Ar(e)?e.__docgenInfo[t]:null}function Zs(e){return Ar(e)&&Ys(e.__docgenInfo.description)}function ea(e){return e!=null&&e.includes("@")}function ta(e,t){let r;try{r=gs.parse(e,{tags:t,sloppy:!0})}catch(i){throw console.error(i),new Error("Cannot parse JSDoc tags.")}return r}var ra={tags:["param","arg","argument","returns","ignore","deprecated"]},ia=(e,t=ra)=>{if(!ea(e))return{includesJsDoc:!1,ignore:!1};let r=ta(e,t.tags),i=na(r);return i.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description,extractedTags:i}};function na(e){let t={params:null,deprecated:null,returns:null,ignore:!1};for(let r=0;r<e.tags.length;r+=1){let i=e.tags[r];if(i.title==="ignore"){t.ignore=!0;break}else switch(i.title){case"param":case"arg":case"argument":{let s=sa(i);s!=null&&(t.params==null&&(t.params=[]),t.params.push(s));break}case"deprecated":{let s=aa(i);s!=null&&(t.deprecated=s);break}case"returns":{let s=oa(i);s!=null&&(t.returns=s);break}}}return t}function sa(e){let t=e.name;return t!=null&&t!=="null-null"?{name:e.name,type:e.type,description:e.description,getPrettyName:()=>t.includes("null")?t.replace("-null","").replace(".null",""):e.name,getTypeName:()=>e.type!=null?He(e.type):null}:null}function aa(e){return e.title!=null?e.description:null}function oa(e){return e.type!=null?{type:e.type,description:e.description,getTypeName:()=>He(e.type)}:null}function He(e){return e.type==="NameExpression"?e.name:e.type==="RecordType"?`({${e.fields.map(t=>{if(t.value!=null){let r=He(t.value);return`${t.key}: ${r}`}return t.key}).join(", ")}})`:e.type==="UnionType"?`(${e.elements.map(He).join("|")})`:e.type==="ArrayType"?"[]":e.type==="TypeApplication"&&e.expression!=null&&e.expression.name==="Array"?`${He(e.applications[0])}[]`:e.type==="NullableType"||e.type==="NonNullableType"||e.type==="OptionalType"?He(e.expression):e.type==="AllLiteral"?"any":null}function wr(e){return e.length>90}function tt(e){return e.length>50}function G(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function Bi({name:e,value:t,elements:r,raw:i}){return t??(r!=null?r.map(Bi).join(" | "):i??e)}function ua({name:e,raw:t,elements:r}){return r!=null?G(r.map(Bi).join(" | ")):t!=null?G(t.replace(/^\|\s*/,"")):G(e)}function la({type:e,raw:t}){return t!=null?G(t):G(e)}function ca({type:e,raw:t}){return t!=null?wr(t)?G(e,t):G(t):G(e)}function ha(e){let{type:t}=e;return t==="object"?ca(e):la(e)}function fa({name:e,raw:t}){return t!=null?wr(t)?G(e,t):G(t):G(e)}function pa(e){if(e==null)return null;switch(e.name){case"union":return ua(e);case"signature":return ha(e);default:return fa(e)}}function da(e,t){if(e!=null){let{value:r}=e;if(!Cr(r))return tt(r)?G(t.name,r):G(r)}return null}var ma=(e,t)=>{let{flowType:r,description:i,required:s,defaultValue:a}=t;return{name:e,type:pa(r),required:s,description:i,defaultValue:da(a,r)}};function ga({tsType:e,required:t}){return e==null?null:G(t?e.name:e.name.replace(" | undefined",""))}function ya({defaultValue:e}){if(e!=null){let{value:t}=e;if(!Cr(t))return G(t)}return null}var va=(e,t)=>{let{description:r,required:i}=t;return{name:e,type:ga(t),required:i,description:r,defaultValue:ya(t)}};function xa(e){return e!=null?G(e.name):null}function ba(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function Sa(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}function _a(e,t){if(e!=null){let{value:r}=e;if(!Cr(r))return ba(e)&&Sa(t)?G(JSON.stringify(r)):G(r)}return null}function Vi(e,t,r){let{description:i,required:s,defaultValue:a}=r;return{name:e,type:xa(t),required:s,description:i,defaultValue:_a(a,t)}}function Ft(e,t){var r;if(t.includesJsDoc){let{description:i,extractedTags:s}=t;i!=null&&(e.description=t.description);let a={...s,params:(r=s==null?void 0:s.params)==null?void 0:r.map(u=>({name:u.getPrettyName(),description:u.description}))};Object.values(a).filter(Boolean).length>0&&(e.jsDocTags=a)}return e}var Ea=(e,t,r)=>{let i=Vi(e,t.type,t);return i.sbType=Er(t),Ft(i,r)},Ca=(e,t,r)=>{let i=va(e,t);return i.sbType=Er(t),Ft(i,r)},Aa=(e,t,r)=>{let i=ma(e,t);return i.sbType=Er(t),Ft(i,r)},wa=(e,t,r)=>{let i=Vi(e,{name:"unknown"},t);return Ft(i,r)},ji=e=>{switch(e){case"JavaScript":return Ea;case"TypeScript":return Ca;case"Flow":return Aa;default:return wa}},qi=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",ka=e=>{let t=qi(e[0]),r=ji(t);return e.map(i=>{var a;let s=i;return(a=i.type)!=null&&a.elements&&(s={...i,type:{...i.type,value:i.type.elements}}),Ui(s.name,s,t,r)})},Ta=e=>{let t=Object.keys(e),r=qi(e[t[0]]),i=ji(r);return t.map(s=>{let a=e[s];return a!=null?Ui(s,a,r,i):null}).filter(Boolean)},Pa=(e,t)=>{let r=Di(e,t);return Ks(r)?Array.isArray(r)?ka(r):Ta(r):[]};function Ui(e,t,r,i){let s=ia(t.description);return s.includesJsDoc&&s.ignore?null:{propDef:i(e,t,s),jsDocTags:s.extractedTags,docgenInfo:t,typeSystem:r}}function Ia(e){return e!=null&&Zs(e)}var Na=e=>{let{component:t,argTypes:r,parameters:{docs:i={}}}=e,{extractArgTypes:s}=i,a=s&&t?s(t):{};return a?Us(a,r):r},La="storybook/docs",Oa=`${La}/snippet-rendered`,dr=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(dr||{});const Ra=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var Fa=Ra;const Ma=et(Fa);var Gi={},Wi={};(function(e){(function t(r){var i,s,a,u,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,D,R;for(k=m.length,D=0;k;)_=k>>>1,R=D+_,x(m[R])?k=_:(D=R+1,k-=_+1);return D}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",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"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={},f={},p={},s={Break:u,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,D,R,W;function q(B,Q){if(Array.isArray(Q))for(k=0,D=Q.length;k<D;++k)B.push(Q[k]);else B.push(Q)}if(!this.__current.path)return null;for(R=[],x=2,_=this.__leavelist.length;x<_;++x)W=this.__leavelist[x],q(R,W.path);return q(R,this.__current.path),R},S.prototype.type=function(){var m=this.current();return m.type||this.__current.wrap},S.prototype.parents=function(){var x,_,k;for(k=[],x=1,_=this.__leavelist.length;x<_;++x)k.push(this.__leavelist[x].node);return k},S.prototype.current=function(){return this.__current.node},S.prototype.__execute=function(x,_){var k,D;return D=void 0,k=this.__current,this.__current=_,this.__state=null,x&&(D=x.call(this,_.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=k,D},S.prototype.notify=function(x){this.__state=x},S.prototype.skip=function(){this.notify(f)},S.prototype.break=function(){this.notify(u)},S.prototype.remove=function(){this.notify(p)},S.prototype.__initialize=function(m,x){this.visitor=x,this.root=m,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,x.fallback==="iteration"?this.__fallback=Object.keys:typeof x.fallback=="function"&&(this.__fallback=x.fallback),this.__keys=a,x.keys&&(this.__keys=Object.assign(Object.create(this.__keys),x.keys))};function C(m){return m==null?!1:typeof m=="object"&&typeof m.type=="string"}function v(m,x){return(m===i.ObjectExpression||m===i.ObjectPattern)&&x==="properties"}function P(m,x){for(var _=m.length-1;_>=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,D,R,W,q,B,Q,ne,ue,ie,Y,be;for(this.__initialize(x,_),be={},k=this.__worklist,D=this.__leavelist,k.push(new E(x,null,null,null)),D.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===be){if(R=D.pop(),B=this.__execute(_.leave,R),this.__state===u||B===u)return;continue}if(R.node){if(B=this.__execute(_.enter,R),this.__state===u||B===u)return;if(k.push(be),D.push(R),this.__state===f||B===f)continue;if(W=R.node,q=W.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(W);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(Q=ie[ne],Y=W[Q],!!Y){if(Array.isArray(Y)){for(ue=Y.length;(ue-=1)>=0;)if(Y[ue]&&!P(D,Y[ue])){if(v(q,ie[ne]))R=new E(Y[ue],[Q,ue],"Property",null);else if(C(Y[ue]))R=new E(Y[ue],[Q,ue],null,null);else continue;k.push(R)}}else if(C(Y)){if(P(D,Y))continue;k.push(new E(Y,Q,null,null))}}}}},S.prototype.replace=function(x,_){var k,D,R,W,q,B,Q,ne,ue,ie,Y,be,we;function M(je){var nt,st,Z,ge;if(je.ref.remove()){for(st=je.ref.key,ge=je.ref.parent,nt=k.length;nt--;)if(Z=k[nt],Z.ref&&Z.ref.parent===ge){if(Z.ref.key<st)break;--Z.ref.key}}}for(this.__initialize(x,_),Y={},k=this.__worklist,D=this.__leavelist,be={root:x},B=new E(x,null,null,new b(be,"root")),k.push(B),D.push(B);k.length;){if(B=k.pop(),B===Y){if(B=D.pop(),q=this.__execute(_.leave,B),q!==void 0&&q!==u&&q!==f&&q!==p&&B.ref.replace(q),(this.__state===p||q===p)&&M(B),this.__state===u||q===u)return be.root;continue}if(q=this.__execute(_.enter,B),q!==void 0&&q!==u&&q!==f&&q!==p&&(B.ref.replace(q),B.node=q),(this.__state===p||q===p)&&(M(B),B.node=null),this.__state===u||q===u)return be.root;if(R=B.node,!!R&&(k.push(Y),D.push(B),!(this.__state===f||q===f))){if(W=R.type||B.wrap,ue=this.__keys[W],!ue)if(this.__fallback)ue=this.__fallback(R);else throw new Error("Unknown node type "+W+".");for(Q=ue.length;(Q-=1)>=0;)if(we=ue[Q],ie=R[we],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(W,ue[Q]))B=new E(ie[ne],[we,ne],"Property",new b(ie,ne));else if(C(ie[ne]))B=new E(ie[ne],[we,ne],null,new b(ie,ne));else continue;k.push(B)}}else C(ie)&&k.push(new E(ie,we,null,new b(R,we)))}}return be.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function V(m,x){var _;return _=g(x,function(D){return D.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function A(m,x,_){var k=[],D,R,W,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(W=0,R=x.length;W<R;W+=1)D=y(x[W]),D.extendedRange=[0,m.range[0]],k.push(D);m.leadingComments=k}return m}for(W=0,R=x.length;W<R;W+=1)k.push(V(y(x[W]),_));return q=0,O(m,{enter:function(B){for(var Q;q<k.length&&(Q=k[q],!(Q.extendedRange[1]>B.range[0]));)Q.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(Q),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>B.range[1])return s.Skip}}),q=0,O(m,{leave:function(B){for(var Q;q<k.length&&(Q=k[q],!(B.range[1]<Q.extendedRange[0]));)B.range[1]===Q.extendedRange[0]?(B.trailingComments||(B.trailingComments=[]),B.trailingComments.push(Q),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>B.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=A,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(Wi);var ot={},ir={},At={},wt={},ii;function Da(){if(ii)return wt;ii=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return wt.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},wt.decode=function(t){var r=65,i=90,s=97,a=122,u=48,f=57,p=43,y=47,g=26,b=52;return r<=t&&t<=i?t-r:s<=t&&t<=a?t-s+g:u<=t&&t<=f?t-u+b:t==p?62:t==y?63:-1},wt}var ni;function zi(){if(ni)return At;ni=1;var e=Da(),t=5,r=1<<t,i=r-1,s=r;function a(f){return f<0?(-f<<1)+1:(f<<1)+0}function u(f){var p=(f&1)===1,y=f>>1;return p?-y:y}return At.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},At.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<<S),S+=t}while(C);g.value=u(E),g.rest=y},At}var nr={},si;function yt(){return si||(si=1,function(e){function t(A,m,x){if(m in A)return A[m];if(arguments.length===3)return x;throw new Error('"'+m+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function s(A){var m=A.match(r);return m?{scheme:m[1],auth:m[2],host:m[3],port:m[4],path:m[5]}:null}e.urlParse=s;function a(A){var m="";return A.scheme&&(m+=A.scheme+":"),m+="//",A.auth&&(m+=A.auth+"@"),A.host&&(m+=A.host),A.port&&(m+=":"+A.port),A.path&&(m+=A.path),m}e.urlGenerate=a;function u(A){var m=A,x=s(A);if(x){if(!x.path)return A;m=x.path}for(var _=e.isAbsolute(m),k=m.split(/\/+/),D,R=0,W=k.length-1;W>=0;W--)D=k[W],D==="."?k.splice(W,1):D===".."?R++:R>0&&(D===""?(k.splice(W+1,R),R=0):(k.splice(W,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=u;function f(A,m){A===""&&(A="."),m===""&&(m=".");var x=s(m),_=s(A);if(_&&(A=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:u(A.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(A){return A.charAt(0)==="/"||r.test(A)};function p(A,m){A===""&&(A="."),A=A.replace(/\/$/,"");for(var x=0;m.indexOf(A+"/")!==0;){var _=A.lastIndexOf("/");if(_<0||(A=A.slice(0,_),A.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(A.length+1)}e.relative=p;var y=function(){var A=Object.create(null);return!("__proto__"in A)}();function g(A){return A}function b(A){return S(A)?"$"+A:A}e.toSetString=y?g:b;function E(A){return S(A)?A.slice(1):A}e.fromSetString=y?g:E;function S(A){if(!A)return!1;var m=A.length;if(m<9||A.charCodeAt(m-1)!==95||A.charCodeAt(m-2)!==95||A.charCodeAt(m-3)!==111||A.charCodeAt(m-4)!==116||A.charCodeAt(m-5)!==111||A.charCodeAt(m-6)!==114||A.charCodeAt(m-7)!==112||A.charCodeAt(m-8)!==95||A.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(A.charCodeAt(x)!==36)return!1;return!0}function C(A,m,x){var _=P(A.source,m.source);return _!==0||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0||x)||(_=A.generatedColumn-m.generatedColumn,_!==0)||(_=A.generatedLine-m.generatedLine,_!==0)?_:P(A.name,m.name)}e.compareByOriginalPositions=C;function v(A,m,x){var _=A.generatedLine-m.generatedLine;return _!==0||(_=A.generatedColumn-m.generatedColumn,_!==0||x)||(_=P(A.source,m.source),_!==0)||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0)?_:P(A.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function P(A,m){return A===m?0:A===null?1:m===null?-1:A>m?1:-1}function O(A,m){var x=A.generatedLine-m.generatedLine;return x!==0||(x=A.generatedColumn-m.generatedColumn,x!==0)||(x=P(A.source,m.source),x!==0)||(x=A.originalLine-m.originalLine,x!==0)||(x=A.originalColumn-m.originalColumn,x!==0)?x:P(A.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(A){return JSON.parse(A.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function V(A,m,x){if(m=m||"",A&&(A[A.length-1]!=="/"&&m[0]!=="/"&&(A+="/"),m=A+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return u(m)}e.computeSourceURL=V}(nr)),nr}var sr={},ai;function $i(){if(ai)return sr;ai=1;var e=yt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,u){for(var f=new i,p=0,y=a.length;p<y;p++)f.add(a[p],u);return f},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(a,u){var f=r?a:e.toSetString(a),p=r?this.has(a):t.call(this._set,f),y=this._array.length;(!p||u)&&this._array.push(a),p||(r?this._set.set(a,y):this._set[f]=y)},i.prototype.has=function(a){if(r)return this._set.has(a);var u=e.toSetString(a);return t.call(this._set,u)},i.prototype.indexOf=function(a){if(r){var u=this._set.get(a);if(u>=0)return u}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},i.prototype.toArray=function(){return this._array.slice()},sr.ArraySet=i,sr}var ar={},oi;function Ba(){if(oi)return ar;oi=1;var e=yt();function t(i,s){var a=i.generatedLine,u=s.generatedLine,f=i.generatedColumn,p=s.generatedColumn;return u>a||u==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ar.MappingList=r,ar}var ui;function Ji(){if(ui)return ir;ui=1;var e=zi(),t=yt(),r=$i().ArraySet,i=Ba().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(u){var f=u.sourceRoot,p=new s({file:u.file,sourceRoot:f});return u.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),u.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=u.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(u){var f=t.getArg(u,"generated"),p=t.getArg(u,"original",null),y=t.getArg(u,"source",null),g=t.getArg(u,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(u,f){var p=u;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(u,f,p){var y=f;if(f==null){if(u.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=u.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=u.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var P=S.name;P!=null&&!E.has(P)&&E.add(P)},this),this._sources=b,this._names=E,u.sources.forEach(function(S){var C=u.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(u,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(u&&"line"in u&&"column"in u&&u.line>0&&u.column>=0&&!f&&!p&&!y)){if(u&&"line"in u&&"column"in u&&f&&"line"in f&&"column"in f&&u.line>0&&u.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:u,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var u=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,P,O=this._mappings.toArray(),L=0,V=O.length;L<V;L++){if(C=O[L],S="",C.generatedLine!==f)for(u=0;C.generatedLine!==f;)S+=";",f++;else if(L>0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-u),u=C.generatedColumn,C.source!=null&&(P=this._sources.indexOf(C.source),S+=e.encode(P-b),b=P,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(u,f){return u.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(u.file=this._file),this._sourceRoot!=null&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},ir.SourceMapGenerator=s,ir}var ut={},or={},li;function Va(){return li||(li=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,u,f){var p=Math.floor((i-r)/2)+r,y=u(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,u,f):f==e.LEAST_UPPER_BOUND?i<a.length?i:-1:p:p-r>1?t(r,p,s,a,u,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,u){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,u||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(or)),or}var ur={},ci;function ja(){if(ci)return ur;ci=1;function e(i,s,a){var u=i[s];i[s]=i[a],i[a]=u}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,u){if(a<u){var f=t(a,u),p=a-1;e(i,f,u);for(var y=i[u],g=a;g<u;g++)s(i[g],y)<=0&&(p+=1,e(i,p,g));e(i,p+1,g);var b=p+1;r(i,s,a,b-1),r(i,s,b+1,u)}}return ur.quickSort=function(i,s){r(i,s,0,i.length-1)},ur}var hi;function qa(){if(hi)return ut;hi=1;var e=yt(),t=Va(),r=$i().ArraySet,i=zi(),s=ja().quickSort;function a(y,g){var b=y;return typeof y=="string"&&(b=e.parseSourceMapInput(y)),b.sections!=null?new p(b,g):new u(b,g)}a.fromSourceMap=function(y,g){return u.fromSourceMap(y,g)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(g,b){var E=g.charAt(b);return E===";"||E===","},a.prototype._parseMappings=function(g,b){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(g,b,E){var S=b||null,C=E||a.GENERATED_ORDER,v;switch(C){case a.GENERATED_ORDER:v=this._generatedMappings;break;case a.ORIGINAL_ORDER:v=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var P=this.sourceRoot;v.map(function(O){var L=O.source===null?null:this._sources.at(O.source);return L=e.computeSourceURL(P,L,this._sourceMapURL),{source:L,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(g,S)},a.prototype.allGeneratedPositionsFor=function(g){var b=e.getArg(g,"line"),E={source:e.getArg(g,"source"),originalLine:b,originalColumn:e.getArg(g,"column",0)};if(E.source=this._findSourceIndex(E.source),E.source<0)return[];var S=[],C=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(C>=0){var v=this._originalMappings[C];if(g.column===void 0)for(var P=v.originalLine;v&&v.originalLine===P;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},ut.SourceMapConsumer=a;function u(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),P=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(V){return v&&e.isAbsolute(v)&&e.isAbsolute(V)?e.relative(v,V):V}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(v,V,g)}),this.sourceRoot=v,this.sourcesContent=P,this._mappings=O,this._sourceMapURL=g,this.file=L}u.prototype=Object.create(a.prototype),u.prototype.consumer=a,u.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b<this._absoluteSources.length;++b)if(this._absoluteSources[b]==y)return b;return-1},u.fromSourceMap=function(g,b){var E=Object.create(u.prototype),S=E._names=r.fromArray(g._names.toArray(),!0),C=E._sources=r.fromArray(g._sources.toArray(),!0);E.sourceRoot=g._sourceRoot,E.sourcesContent=g._generateSourcesContent(E._sources.toArray(),E.sourceRoot),E.file=g._file,E._sourceMapURL=b,E._absoluteSources=E._sources.toArray().map(function(x){return e.computeSourceURL(E.sourceRoot,x,b)});for(var v=g._mappings.toArray().slice(),P=E.__generatedMappings=[],O=E.__originalMappings=[],L=0,V=v.length;L<V;L++){var A=v[L],m=new f;m.generatedLine=A.generatedLine,m.generatedColumn=A.generatedColumn,A.source&&(m.source=C.indexOf(A.source),m.originalLine=A.originalLine,m.originalColumn=A.originalColumn,A.name&&(m.name=S.indexOf(A.name)),O.push(m)),P.push(m)}return s(E.__originalMappings,e.compareByOriginalPositions),E},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}u.prototype._parseMappings=function(g,b){for(var E=1,S=0,C=0,v=0,P=0,O=0,L=g.length,V=0,A={},m={},x=[],_=[],k,D,R,W,q;V<L;)if(g.charAt(V)===";")E++,V++,S=0;else if(g.charAt(V)===",")V++;else{for(k=new f,k.generatedLine=E,W=V;W<L&&!this._charIsMappingSeparator(g,W);W++);if(D=g.slice(V,W),R=A[D],R)V+=D.length;else{for(R=[];V<W;)i.decode(g,V,m),q=m.value,V=m.rest,R.push(q);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");A[D]=R}k.generatedColumn=S+R[0],S=k.generatedColumn,R.length>1&&(k.source=P+R[1],P+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},u.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},u.prototype.computeColumnSpans=function(){for(var g=0;g<this._generatedMappings.length;++g){var b=this._generatedMappings[g];if(g+1<this._generatedMappings.length){var E=this._generatedMappings[g+1];if(b.generatedLine===E.generatedLine){b.lastGeneratedColumn=E.generatedColumn-1;continue}}b.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(g){var b={generatedLine:e.getArg(g,"line"),generatedColumn:e.getArg(g,"column")},E=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(E>=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},u.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ut.BasicSourceMapConsumer=u;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var P=e.getArg(v,"offset"),O=e.getArg(P,"line"),L=e.getArg(P,"column");if(O<C.line||O===C.line&&L<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=P,{generatedOffset:{generatedLine:O+1,generatedColumn:L+1},consumer:new a(e.getArg(v,"map"),g)}})}return p.prototype=Object.create(a.prototype),p.prototype.constructor=a,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var y=[],g=0;g<this._sections.length;g++)for(var b=0;b<this._sections[g].consumer.sources.length;b++)y.push(this._sections[g].consumer.sources[b]);return y}}),p.prototype.originalPositionFor=function(g){var b={generatedLine:e.getArg(g,"line"),generatedColumn:e.getArg(g,"column")},E=t.search(b,this._sections,function(C,v){var P=C.generatedLine-v.generatedOffset.generatedLine;return P||C.generatedColumn-v.generatedOffset.generatedColumn}),S=this._sections[E];return S?S.consumer.originalPositionFor({line:b.generatedLine-(S.generatedOffset.generatedLine-1),column:b.generatedColumn-(S.generatedOffset.generatedLine===b.generatedLine?S.generatedOffset.generatedColumn-1:0),bias:g.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(g){return g.consumer.hasContentsOfAllSources()})},p.prototype.sourceContentFor=function(g,b){for(var E=0;E<this._sections.length;E++){var S=this._sections[E],C=S.consumer.sourceContentFor(g,!0);if(C)return C}if(b)return null;throw new Error('"'+g+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(g){for(var b=0;b<this._sections.length;b++){var E=this._sections[b];if(E.consumer._findSourceIndex(e.getArg(g,"source"))!==-1){var S=E.consumer.generatedPositionFor(g);if(S){var C={line:S.line+(E.generatedOffset.generatedLine-1),column:S.column+(E.generatedOffset.generatedLine===S.line?E.generatedOffset.generatedColumn-1:0)};return C}}}return{line:null,column:null}},p.prototype._parseMappings=function(g,b){this.__generatedMappings=[],this.__originalMappings=[];for(var E=0;E<this._sections.length;E++)for(var S=this._sections[E],C=S.consumer._generatedMappings,v=0;v<C.length;v++){var P=C[v],O=S.consumer._sources.at(P.source);O=e.computeSourceURL(S.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var L=null;P.name&&(L=S.consumer._names.at(P.name),this._names.add(L),L=this._names.indexOf(L));var V={source:O,generatedLine:P.generatedLine+(S.generatedOffset.generatedLine-1),generatedColumn:P.generatedColumn+(S.generatedOffset.generatedLine===P.generatedLine?S.generatedOffset.generatedColumn-1:0),originalLine:P.originalLine,originalColumn:P.originalColumn,name:L};this.__generatedMappings.push(V),typeof V.originalLine=="number"&&this.__originalMappings.push(V)}s(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),s(this.__originalMappings,e.compareByOriginalPositions)},ut.IndexedSourceMapConsumer=p,ut}var lr={},fi;function Ua(){if(fi)return lr;fi=1;var e=Ji().SourceMapGenerator,t=yt(),r=/(\r?\n)/,i=10,s="$$$isSourceNode$$$";function a(u,f,p,y,g){this.children=[],this.sourceContents={},this.line=u??null,this.column=f??null,this.source=p??null,this.name=g??null,this[s]=!0,y!=null&&this.add(y)}return a.fromStringWithSourceMap=function(f,p,y){var g=new a,b=f.split(r),E=0,S=function(){var L=A(),V=A()||"";return L+V;function A(){return E<b.length?b[E++]:void 0}},C=1,v=0,P=null;return p.eachMapping(function(L){if(P!==null)if(C<L.generatedLine)O(P,S()),C++,v=0;else{var V=b[E]||"",A=V.substr(0,L.generatedColumn-v);b[E]=V.substr(L.generatedColumn-v),v=L.generatedColumn,O(P,A),P=L;return}for(;C<L.generatedLine;)g.add(S()),C++;if(v<L.generatedColumn){var V=b[E]||"";g.add(V.substr(0,L.generatedColumn)),b[E]=V.substr(L.generatedColumn),v=L.generatedColumn}P=L},this),E<b.length&&(P&&O(P,S()),g.add(b.splice(E).join(""))),p.sources.forEach(function(L){var V=p.sourceContentFor(L);V!=null&&(y!=null&&(L=t.join(y,L)),g.setSourceContent(L,V))}),g;function O(L,V){if(L===null||L.source===void 0)g.add(V);else{var A=y?t.join(y,L.source):L.source;g.add(new a(L.originalLine,L.originalColumn,A,V,L.name))}}},a.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(p){this.add(p)},this);else if(f[s]||typeof f=="string")f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.prepend=function(f){if(Array.isArray(f))for(var p=f.length-1;p>=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y<g;y++)p=this.children[y],p[s]?p.walk(f):p!==""&&f(p,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(f){var p,y,g=this.children.length;if(g>0){for(p=[],y=0;y<g-1;y++)p.push(this.children[y]),p.push(f);p.push(this.children[y]),this.children=p}return this},a.prototype.replaceRight=function(f,p){var y=this.children[this.children.length-1];return y[s]?y.replaceRight(f,p):typeof y=="string"?this.children[this.children.length-1]=y.replace(f,p):this.children.push("".replace(f,p)),this},a.prototype.setSourceContent=function(f,p){this.sourceContents[t.toSetString(f)]=p},a.prototype.walkSourceContents=function(f){for(var p=0,y=this.children.length;p<y;p++)this.children[p][s]&&this.children[p].walkSourceContents(f);for(var g=Object.keys(this.sourceContents),p=0,y=g.length;p<y;p++)f(t.fromSetString(g[p]),this.sourceContents[g[p]])},a.prototype.toString=function(){var f="";return this.walk(function(p){f+=p}),f},a.prototype.toStringWithSourceMap=function(f){var p={code:"",line:1,column:0},y=new e(f),g=!1,b=null,E=null,S=null,C=null;return this.walk(function(v,P){p.code+=v,P.source!==null&&P.line!==null&&P.column!==null?((b!==P.source||E!==P.line||S!==P.column||C!==P.name)&&y.addMapping({source:P.source,original:{line:P.line,column:P.column},generated:{line:p.line,column:p.column},name:P.name}),b=P.source,E=P.line,S=P.column,C=P.name,g=!0):g&&(y.addMapping({generated:{line:p.line,column:p.column}}),b=null,g=!1);for(var O=0,L=v.length;O<L;O++)v.charCodeAt(O)===i?(p.line++,p.column=0,O+1===L?(b=null,g=!1):g&&y.addMapping({source:P.source,original:{line:P.line,column:P.column},generated:{line:p.line,column:p.column},name:P.name})):p.column++}),this.walkSourceContents(function(v,P){y.setSourceContent(v,P)}),{code:p.code,map:y}},lr.SourceNode=a,lr}var pi;function Ga(){return pi||(pi=1,ot.SourceMapGenerator=Ji().SourceMapGenerator,ot.SourceMapConsumer=qa().SourceMapConsumer,ot.SourceNode=Ua().SourceNode),ot}const Wa="escodegen",za="ECMAScript code generator",$a="http://github.com/estools/escodegen",Ja="escodegen.js",Xa={esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},Ha=["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],Qa="2.0.0",Ya={node:">=6.0"},Ka=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],Za={type:"git",url:"http://github.com/estools/escodegen.git"},eo={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1",optionator:"^0.8.1"},to={"source-map":"~0.6.1"},ro={acorn:"^7.3.1",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1",semver:"^5.1.0"},io="BSD-2-Clause",no={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},so={name:Wa,description:za,homepage:$a,main:Ja,bin:Xa,files:Ha,version:Qa,engines:Ya,maintainers:Ka,repository:Za,dependencies:eo,optionalDependencies:to,devDependencies:ro,license:io,scripts:no};(function(e){(function(){var t,r,i,s,a,u,f,p,y,g,b,E,S,C,v,P,O,L,V,A,m,x,_,k,D,R;a=Wi,u=ys,t=a.Syntax;function W(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Exponentiation:13,Await:14,Unary:14,Postfix:15,OptionalChaining:16,Call:17,New:18,TaggedTemplate:19,Member:20,Primary:21},i={"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var B=1,Q=1<<1,ne=1<<2,ue=1<<3,ie=1<<4,Y=1<<5,be=Q|ne,we=B|Q,M=B|Q|ne,je=B,nt=ne,st=B|ne,Z=B,ge=B|Y,_t=0,Qn=B|ie,Yn=B|ue;function Wr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
2
|
-
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function qe(n,l){var o="";for(l|=0;l>0;l>>>=1,n+=n)l&1&&(o+=n);return o}function Kn(n){return/[\r\n]/g.test(n)}function he(n){var l=n.length;return l&&u.code.isLineTerminator(n.charCodeAt(l-1))}function zr(n,l){var o;for(o in l)l.hasOwnProperty(o)&&(n[o]=l[o]);return n}function Et(n,l){var o,c;function d(w){return typeof w=="object"&&w instanceof Object&&!(w instanceof RegExp)}for(o in l)l.hasOwnProperty(o)&&(c=l[o],d(c)?d(n[o])?Et(n[o],c):n[o]=Et({},c):n[o]=c);return n}function Zn(n){var l,o,c,d,w;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return y?"null":g?"1e400":"1e+400";if(l=""+n,!g||l.length<3)return l;for(o=l.indexOf("."),!y&&l.charCodeAt(0)===48&&o===1&&(o=0,l=l.slice(1)),c=l,l=l.replace("e+","e"),d=0,(w=c.indexOf("e"))>0&&(d=+c.slice(w+1),c=c.slice(0,w)),o>=0&&(d-=c.length-o-1,c=+(c.slice(0,o)+c.slice(o+1))+""),w=0;c.charCodeAt(c.length+w-1)===48;)--w;return w!==0&&(d-=w,c=c.slice(0,w)),d!==0&&(c+="e"+d),(c.length<l.length||b&&n>1e12&&Math.floor(n)===n&&(c="0x"+n.toString(16)).length<l.length)&&+c===n&&(l=c),l}function $r(n,l){return(n&-2)===8232?(l?"u":"\\u")+(n===8232?"2028":"2029"):n===10||n===13?(l?"":"\\")+(n===10?"n":"r"):String.fromCharCode(n)}function es(n){var l,o,c,d,w,T,I,F;if(o=n.toString(),n.source){if(l=o.match(/\/([^/]*)$/),!l)return o;for(c=l[1],o="",I=!1,F=!1,d=0,w=n.source.length;d<w;++d)T=n.source.charCodeAt(d),F?(o+=$r(T,F),F=!1):(I?T===93&&(I=!1):T===47?o+="\\":T===91&&(I=!0),o+=$r(T,F),F=T===92);return"/"+o+"/"+c}return o}function ts(n,l){var o;return n===8?"\\b":n===12?"\\f":n===9?"\\t":(o=n.toString(16).toUpperCase(),y||n>255?"\\u"+"0000".slice(o.length)+o:n===0&&!u.code.isDecimalDigit(l)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function rs(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function is(n){var l,o,c,d;for(d=E==="double"?'"':"'",l=0,o=n.length;l<o;++l)if(c=n.charCodeAt(l),c===39){d='"';break}else if(c===34){d="'";break}else c===92&&++l;return d+n+d}function ns(n){var l="",o,c,d,w=0,T=0,I,F;for(o=0,c=n.length;o<c;++o){if(d=n.charCodeAt(o),d===39)++w;else if(d===34)++T;else if(d===47&&y)l+="\\";else if(u.code.isLineTerminator(d)||d===92){l+=rs(d);continue}else if(!u.code.isIdentifierPartES5(d)&&(y&&d<32||!y&&!S&&(d<32||d>126))){l+=ts(d,n.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(I=!(E==="double"||E==="auto"&&T<w),F=I?"'":'"',!(I?w:T))return F+l+F;for(n=l,l=F,o=0,c=n.length;o<c;++o)d=n.charCodeAt(o),(d===39&&I||d===34&&!I)&&(l+="\\"),l+=String.fromCharCode(d);return l+F}function Jr(n){var l,o,c,d="";for(l=0,o=n.length;l<o;++l)c=n[l],d+=Array.isArray(c)?Jr(c):c;return d}function ee(n,l){if(!x)return Array.isArray(n)?Jr(n):n;if(l==null){if(n instanceof s)return n;l={}}return l.loc==null?new s(null,null,x,n,l.name||null):new s(l.loc.start.line,l.loc.start.column,x===!0?l.loc.source||null:x,n,l.name||null)}function fe(){return v||" "}function U(n,l){var o,c,d,w;return o=ee(n).toString(),o.length===0?[l]:(c=ee(l).toString(),c.length===0?[n]:(d=o.charCodeAt(o.length-1),w=c.charCodeAt(0),(d===43||d===45)&&d===w||u.code.isIdentifierPartES5(d)&&u.code.isIdentifierPartES5(w)||d===47&&w===105?[n,fe(),l]:u.code.isWhiteSpace(d)||u.code.isLineTerminator(d)||u.code.isWhiteSpace(w)||u.code.isLineTerminator(w)?[n,l]:[n,v,l]))}function pe(n){return[f,n]}function ae(n){var l;l=f,f+=p,n(f),f=l}function ss(n){var l;for(l=n.length-1;l>=0&&!u.code.isLineTerminator(n.charCodeAt(l));--l);return n.length-1-l}function as(n,l){var o,c,d,w,T,I,F,X;for(o=n.split(/\r\n|[\r\n]/),I=Number.MAX_VALUE,c=1,d=o.length;c<d;++c){for(w=o[c],T=0;T<w.length&&u.code.isWhiteSpace(w.charCodeAt(T));)++T;I>T&&(I=T)}for(typeof l<"u"?(F=f,o[1][I]==="*"&&(l+=" "),f=l):(I&1&&--I,F=f),c=1,d=o.length;c<d;++c)X=ee(pe(o[c].slice(I))),o[c]=x?X.join(""):X;return f=F,o.join(`
|
|
3
|
-
`)}function Ie(n,l){if(n.type==="Line"){if(he(n.value))return"//"+n.value;var o="//"+n.value;return k||(o+=`
|
|
4
|
-
`),o}return A.format.indent.adjustMultilineComment&&/[\n\r]/.test(n.value)?as("/*"+n.value+"*/",l):"/*"+n.value+"*/"}function Xr(n,l){var o,c,d,w,T,I,F,X,ce,Ue,Xe,Yr,Kr,ke;if(n.leadingComments&&n.leadingComments.length>0){if(w=l,k){for(d=n.leadingComments[0],l=[],X=d.extendedRange,ce=d.range,Xe=_.substring(X[0],ce[0]),ke=(Xe.match(/\n/g)||[]).length,ke>0?(l.push(qe(`
|
|
5
|
-
`,ke)),l.push(pe(Ie(d)))):(l.push(Xe),l.push(Ie(d))),Ue=ce,o=1,c=n.leadingComments.length;o<c;o++)d=n.leadingComments[o],ce=d.range,Yr=_.substring(Ue[1],ce[0]),ke=(Yr.match(/\n/g)||[]).length,l.push(qe(`
|
|
6
|
-
`,ke)),l.push(pe(Ie(d))),Ue=ce;Kr=_.substring(ce[1],X[1]),ke=(Kr.match(/\n/g)||[]).length,l.push(qe(`
|
|
7
|
-
`,ke))}else for(d=n.leadingComments[0],l=[],L&&n.type===t.Program&&n.body.length===0&&l.push(`
|
|
8
|
-
`),l.push(Ie(d)),he(ee(l).toString())||l.push(`
|
|
9
|
-
`),o=1,c=n.leadingComments.length;o<c;++o)d=n.leadingComments[o],F=[Ie(d)],he(ee(F).toString())||F.push(`
|
|
10
|
-
`),l.push(pe(F));l.push(pe(w))}if(n.trailingComments)if(k)d=n.trailingComments[0],X=d.extendedRange,ce=d.range,Xe=_.substring(X[0],ce[0]),ke=(Xe.match(/\n/g)||[]).length,ke>0?(l.push(qe(`
|
|
11
|
-
`,ke)),l.push(pe(Ie(d)))):(l.push(Xe),l.push(Ie(d)));else for(T=!he(ee(l).toString()),I=qe(" ",ss(ee([f,l,p]).toString())),o=0,c=n.trailingComments.length;o<c;++o)d=n.trailingComments[o],T?(o===0?l=[l,p]:l=[l,I],l.push(Ie(d,I))):l=[l,pe(Ie(d))],o!==c-1&&!he(ee(l).toString())&&(l=[l,`
|
|
12
|
-
`]);return l}function Je(n,l,o){var c,d=0;for(c=n;c<l;c++)_[c]===`
|
|
13
|
-
`&&d++;for(c=1;c<d;c++)o.push(C)}function le(n,l,o){return l<o?["(",n,")"]:n}function Hr(n){var l,o,c;for(c=n.split(/\r\n|\n/),l=1,o=c.length;l<o;l++)c[l]=C+f+c[l];return c}function os(n,l){var o,c,d;return o=n[A.verbatim],typeof o=="string"?c=le(Hr(o),r.Sequence,l):(c=Hr(o.content),d=o.precedence!=null?o.precedence:r.Sequence,c=le(c,d,l)),ee(c,n)}function oe(){}oe.prototype.maybeBlock=function(n,l){var o,c,d=this;return c=!A.comment||!n.leadingComments,n.type===t.BlockStatement&&c?[v,this.generateStatement(n,l)]:n.type===t.EmptyStatement&&c?";":(ae(function(){o=[C,pe(d.generateStatement(n,l))]}),o)},oe.prototype.maybeBlockSuffix=function(n,l){var o=he(ee(l).toString());return n.type===t.BlockStatement&&(!A.comment||!n.leadingComments)&&!o?[l,v]:o?[l,f]:[l,C,f]};function ye(n){return ee(n.name,n)}function at(n,l){return n.async?"async"+(l?fe():v):""}function Ct(n){var l=n.generator&&!A.moz.starlessGenerator;return l?"*"+v:""}function Qr(n){var l=n.value,o="";return l.async&&(o+=at(l,!n.computed)),l.generator&&(o+=Ct(l)?"*":""),o}oe.prototype.generatePattern=function(n,l,o){return n.type===t.Identifier?ye(n):this.generateExpression(n,l,o)},oe.prototype.generateFunctionParams=function(n){var l,o,c,d;if(d=!1,n.type===t.ArrowFunctionExpression&&!n.rest&&(!n.defaults||n.defaults.length===0)&&n.params.length===1&&n.params[0].type===t.Identifier)c=[at(n,!0),ye(n.params[0])];else{for(c=n.type===t.ArrowFunctionExpression?[at(n,!1)]:[],c.push("("),n.defaults&&(d=!0),l=0,o=n.params.length;l<o;++l)d&&n.defaults[l]?c.push(this.generateAssignment(n.params[l],n.defaults[l],"=",r.Assignment,M)):c.push(this.generatePattern(n.params[l],r.Assignment,M)),l+1<o&&c.push(","+v);n.rest&&(n.params.length&&c.push(","+v),c.push("..."),c.push(ye(n.rest))),c.push(")")}return c},oe.prototype.generateFunctionBody=function(n){var l,o;return l=this.generateFunctionParams(n),n.type===t.ArrowFunctionExpression&&(l.push(v),l.push("=>")),n.expression?(l.push(v),o=this.generateExpression(n.body,r.Assignment,M),o.toString().charAt(0)==="{"&&(o=["(",o,")"]),l.push(o)):l.push(this.maybeBlock(n.body,Yn)),l},oe.prototype.generateIterationForStatement=function(n,l,o){var c=["for"+(l.await?fe()+"await":"")+v+"("],d=this;return ae(function(){l.left.type===t.VariableDeclaration?ae(function(){c.push(l.left.kind+fe()),c.push(d.generateStatement(l.left.declarations[0],_t))}):c.push(d.generateExpression(l.left,r.Call,M)),c=U(c,n),c=[U(c,d.generateExpression(l.right,r.Assignment,M)),")"]}),c.push(this.maybeBlock(l.body,o)),c},oe.prototype.generatePropertyKey=function(n,l){var o=[];return l&&o.push("["),o.push(this.generateExpression(n,r.Assignment,M)),l&&o.push("]"),o},oe.prototype.generateAssignment=function(n,l,o,c,d){return r.Assignment<c&&(d|=B),le([this.generateExpression(n,r.Call,d),v+o+v,this.generateExpression(l,r.Assignment,d)],r.Assignment,c)},oe.prototype.semicolon=function(n){return!O&&n&Y?"":";"},oe.Statement={BlockStatement:function(n,l){var o,c,d=["{",C],w=this;return ae(function(){n.body.length===0&&k&&(o=n.range,o[1]-o[0]>2&&(c=_.substring(o[0]+1,o[1]-1),c[0]===`
|
|
14
|
-
`&&(d=["{"]),d.push(c)));var T,I,F,X;for(X=Z,l&ue&&(X|=ie),T=0,I=n.body.length;T<I;++T)k&&(T===0&&(n.body[0].leadingComments&&(o=n.body[0].leadingComments[0].extendedRange,c=_.substring(o[0],o[1]),c[0]===`
|
|
15
|
-
`&&(d=["{"])),n.body[0].leadingComments||Je(n.range[0],n.body[0].range[0],d)),T>0&&!n.body[T-1].trailingComments&&!n.body[T].leadingComments&&Je(n.body[T-1].range[1],n.body[T].range[0],d)),T===I-1&&(X|=Y),n.body[T].leadingComments&&k?F=w.generateStatement(n.body[T],X):F=pe(w.generateStatement(n.body[T],X)),d.push(F),he(ee(F).toString())||k&&T<I-1&&n.body[T+1].leadingComments||d.push(C),k&&T===I-1&&(n.body[T].trailingComments||Je(n.body[T].range[1],n.range[1],d))}),d.push(pe("}")),d},BreakStatement:function(n,l){return n.label?"break "+n.label.name+this.semicolon(l):"break"+this.semicolon(l)},ContinueStatement:function(n,l){return n.label?"continue "+n.label.name+this.semicolon(l):"continue"+this.semicolon(l)},ClassBody:function(n,l){var o=["{",C],c=this;return ae(function(d){var w,T;for(w=0,T=n.body.length;w<T;++w)o.push(d),o.push(c.generateExpression(n.body[w],r.Sequence,M)),w+1<T&&o.push(C)}),he(ee(o).toString())||o.push(C),o.push(f),o.push("}"),o},ClassDeclaration:function(n,l){var o,c;return o=["class"],n.id&&(o=U(o,this.generateExpression(n.id,r.Sequence,M))),n.superClass&&(c=U("extends",this.generateExpression(n.superClass,r.Unary,M)),o=U(o,c)),o.push(v),o.push(this.generateStatement(n.body,ge)),o},DirectiveStatement:function(n,l){return A.raw&&n.raw?n.raw+this.semicolon(l):is(n.directive)+this.semicolon(l)},DoWhileStatement:function(n,l){var o=U("do",this.maybeBlock(n.body,Z));return o=this.maybeBlockSuffix(n.body,o),U(o,["while"+v+"(",this.generateExpression(n.test,r.Sequence,M),")"+this.semicolon(l)])},CatchClause:function(n,l){var o,c=this;return ae(function(){var d;n.param?(o=["catch"+v+"(",c.generateExpression(n.param,r.Sequence,M),")"],n.guard&&(d=c.generateExpression(n.guard,r.Sequence,M),o.splice(2,0," if ",d))):o=["catch"]}),o.push(this.maybeBlock(n.body,Z)),o},DebuggerStatement:function(n,l){return"debugger"+this.semicolon(l)},EmptyStatement:function(n,l){return";"},ExportDefaultDeclaration:function(n,l){var o=["export"],c;return c=l&Y?ge:Z,o=U(o,"default"),q(n.declaration)?o=U(o,this.generateStatement(n.declaration,c)):o=U(o,this.generateExpression(n.declaration,r.Assignment,M)+this.semicolon(l)),o},ExportNamedDeclaration:function(n,l){var o=["export"],c,d=this;return c=l&Y?ge:Z,n.declaration?U(o,this.generateStatement(n.declaration,c)):(n.specifiers&&(n.specifiers.length===0?o=U(o,"{"+v+"}"):n.specifiers[0].type===t.ExportBatchSpecifier?o=U(o,this.generateExpression(n.specifiers[0],r.Sequence,M)):(o=U(o,"{"),ae(function(w){var T,I;for(o.push(C),T=0,I=n.specifiers.length;T<I;++T)o.push(w),o.push(d.generateExpression(n.specifiers[T],r.Sequence,M)),T+1<I&&o.push(","+C)}),he(ee(o).toString())||o.push(C),o.push(f+"}")),n.source?o=U(o,["from"+v,this.generateExpression(n.source,r.Sequence,M),this.semicolon(l)]):o.push(this.semicolon(l))),o)},ExportAllDeclaration:function(n,l){return["export"+v,"*"+v,"from"+v,this.generateExpression(n.source,r.Sequence,M),this.semicolon(l)]},ExpressionStatement:function(n,l){var o,c;function d(I){var F;return I.slice(0,5)!=="class"?!1:(F=I.charCodeAt(5),F===123||u.code.isWhiteSpace(F)||u.code.isLineTerminator(F))}function w(I){var F;return I.slice(0,8)!=="function"?!1:(F=I.charCodeAt(8),F===40||u.code.isWhiteSpace(F)||F===42||u.code.isLineTerminator(F))}function T(I){var F,X,ce;if(I.slice(0,5)!=="async"||!u.code.isWhiteSpace(I.charCodeAt(5)))return!1;for(X=6,ce=I.length;X<ce&&u.code.isWhiteSpace(I.charCodeAt(X));++X);return X===ce||I.slice(X,X+8)!=="function"?!1:(F=I.charCodeAt(X+8),F===40||u.code.isWhiteSpace(F)||F===42||u.code.isLineTerminator(F))}return o=[this.generateExpression(n.expression,r.Sequence,M)],c=ee(o).toString(),c.charCodeAt(0)===123||d(c)||w(c)||T(c)||V&&l&ie&&n.expression.type===t.Literal&&typeof n.expression.value=="string"?o=["(",o,")"+this.semicolon(l)]:o.push(this.semicolon(l)),o},ImportDeclaration:function(n,l){var o,c,d=this;return n.specifiers.length===0?["import",v,this.generateExpression(n.source,r.Sequence,M),this.semicolon(l)]:(o=["import"],c=0,n.specifiers[c].type===t.ImportDefaultSpecifier&&(o=U(o,[this.generateExpression(n.specifiers[c],r.Sequence,M)]),++c),n.specifiers[c]&&(c!==0&&o.push(","),n.specifiers[c].type===t.ImportNamespaceSpecifier?o=U(o,[v,this.generateExpression(n.specifiers[c],r.Sequence,M)]):(o.push(v+"{"),n.specifiers.length-c===1?(o.push(v),o.push(this.generateExpression(n.specifiers[c],r.Sequence,M)),o.push(v+"}"+v)):(ae(function(w){var T,I;for(o.push(C),T=c,I=n.specifiers.length;T<I;++T)o.push(w),o.push(d.generateExpression(n.specifiers[T],r.Sequence,M)),T+1<I&&o.push(","+C)}),he(ee(o).toString())||o.push(C),o.push(f+"}"+v)))),o=U(o,["from"+v,this.generateExpression(n.source,r.Sequence,M),this.semicolon(l)]),o)},VariableDeclarator:function(n,l){var o=l&B?M:be;return n.init?[this.generateExpression(n.id,r.Assignment,o),v,"=",v,this.generateExpression(n.init,r.Assignment,o)]:this.generatePattern(n.id,r.Assignment,o)},VariableDeclaration:function(n,l){var o,c,d,w,T,I=this;o=[n.kind],T=l&B?Z:_t;function F(){for(w=n.declarations[0],A.comment&&w.leadingComments?(o.push(`
|
|
16
|
-
`),o.push(pe(I.generateStatement(w,T)))):(o.push(fe()),o.push(I.generateStatement(w,T))),c=1,d=n.declarations.length;c<d;++c)w=n.declarations[c],A.comment&&w.leadingComments?(o.push(","+C),o.push(pe(I.generateStatement(w,T)))):(o.push(","+v),o.push(I.generateStatement(w,T)))}return n.declarations.length>1?ae(F):F(),o.push(this.semicolon(l)),o},ThrowStatement:function(n,l){return[U("throw",this.generateExpression(n.argument,r.Sequence,M)),this.semicolon(l)]},TryStatement:function(n,l){var o,c,d,w;if(o=["try",this.maybeBlock(n.block,Z)],o=this.maybeBlockSuffix(n.block,o),n.handlers)for(c=0,d=n.handlers.length;c<d;++c)o=U(o,this.generateStatement(n.handlers[c],Z)),(n.finalizer||c+1!==d)&&(o=this.maybeBlockSuffix(n.handlers[c].body,o));else{for(w=n.guardedHandlers||[],c=0,d=w.length;c<d;++c)o=U(o,this.generateStatement(w[c],Z)),(n.finalizer||c+1!==d)&&(o=this.maybeBlockSuffix(w[c].body,o));if(n.handler)if(Array.isArray(n.handler))for(c=0,d=n.handler.length;c<d;++c)o=U(o,this.generateStatement(n.handler[c],Z)),(n.finalizer||c+1!==d)&&(o=this.maybeBlockSuffix(n.handler[c].body,o));else o=U(o,this.generateStatement(n.handler,Z)),n.finalizer&&(o=this.maybeBlockSuffix(n.handler.body,o))}return n.finalizer&&(o=U(o,["finally",this.maybeBlock(n.finalizer,Z)])),o},SwitchStatement:function(n,l){var o,c,d,w,T,I=this;if(ae(function(){o=["switch"+v+"(",I.generateExpression(n.discriminant,r.Sequence,M),")"+v+"{"+C]}),n.cases)for(T=Z,d=0,w=n.cases.length;d<w;++d)d===w-1&&(T|=Y),c=pe(this.generateStatement(n.cases[d],T)),o.push(c),he(ee(c).toString())||o.push(C);return o.push(pe("}")),o},SwitchCase:function(n,l){var o,c,d,w,T,I=this;return ae(function(){for(n.test?o=[U("case",I.generateExpression(n.test,r.Sequence,M)),":"]:o=["default:"],d=0,w=n.consequent.length,w&&n.consequent[0].type===t.BlockStatement&&(c=I.maybeBlock(n.consequent[0],Z),o.push(c),d=1),d!==w&&!he(ee(o).toString())&&o.push(C),T=Z;d<w;++d)d===w-1&&l&Y&&(T|=Y),c=pe(I.generateStatement(n.consequent[d],T)),o.push(c),d+1!==w&&!he(ee(c).toString())&&o.push(C)}),o},IfStatement:function(n,l){var o,c,d,w=this;return ae(function(){o=["if"+v+"(",w.generateExpression(n.test,r.Sequence,M),")"]}),d=l&Y,c=Z,d&&(c|=Y),n.alternate?(o.push(this.maybeBlock(n.consequent,Z)),o=this.maybeBlockSuffix(n.consequent,o),n.alternate.type===t.IfStatement?o=U(o,["else ",this.generateStatement(n.alternate,c)]):o=U(o,U("else",this.maybeBlock(n.alternate,c)))):o.push(this.maybeBlock(n.consequent,c)),o},ForStatement:function(n,l){var o,c=this;return ae(function(){o=["for"+v+"("],n.init?n.init.type===t.VariableDeclaration?o.push(c.generateStatement(n.init,_t)):(o.push(c.generateExpression(n.init,r.Sequence,be)),o.push(";")):o.push(";"),n.test&&(o.push(v),o.push(c.generateExpression(n.test,r.Sequence,M))),o.push(";"),n.update&&(o.push(v),o.push(c.generateExpression(n.update,r.Sequence,M))),o.push(")")}),o.push(this.maybeBlock(n.body,l&Y?ge:Z)),o},ForInStatement:function(n,l){return this.generateIterationForStatement("in",n,l&Y?ge:Z)},ForOfStatement:function(n,l){return this.generateIterationForStatement("of",n,l&Y?ge:Z)},LabeledStatement:function(n,l){return[n.label.name+":",this.maybeBlock(n.body,l&Y?ge:Z)]},Program:function(n,l){var o,c,d,w,T;for(w=n.body.length,o=[L&&w>0?`
|
|
17
|
-
`:""],T=Qn,d=0;d<w;++d)!L&&d===w-1&&(T|=Y),k&&(d===0&&(n.body[0].leadingComments||Je(n.range[0],n.body[d].range[0],o)),d>0&&!n.body[d-1].trailingComments&&!n.body[d].leadingComments&&Je(n.body[d-1].range[1],n.body[d].range[0],o)),c=pe(this.generateStatement(n.body[d],T)),o.push(c),d+1<w&&!he(ee(c).toString())&&(k&&n.body[d+1].leadingComments||o.push(C)),k&&d===w-1&&(n.body[d].trailingComments||Je(n.body[d].range[1],n.range[1],o));return o},FunctionDeclaration:function(n,l){return[at(n,!0),"function",Ct(n)||fe(),n.id?ye(n.id):"",this.generateFunctionBody(n)]},ReturnStatement:function(n,l){return n.argument?[U("return",this.generateExpression(n.argument,r.Sequence,M)),this.semicolon(l)]:["return"+this.semicolon(l)]},WhileStatement:function(n,l){var o,c=this;return ae(function(){o=["while"+v+"(",c.generateExpression(n.test,r.Sequence,M),")"]}),o.push(this.maybeBlock(n.body,l&Y?ge:Z)),o},WithStatement:function(n,l){var o,c=this;return ae(function(){o=["with"+v+"(",c.generateExpression(n.object,r.Sequence,M),")"]}),o.push(this.maybeBlock(n.body,l&Y?ge:Z)),o}},zr(oe.prototype,oe.Statement),oe.Expression={SequenceExpression:function(n,l,o){var c,d,w;for(r.Sequence<l&&(o|=B),c=[],d=0,w=n.expressions.length;d<w;++d)c.push(this.generateExpression(n.expressions[d],r.Assignment,o)),d+1<w&&c.push(","+v);return le(c,r.Sequence,l)},AssignmentExpression:function(n,l,o){return this.generateAssignment(n.left,n.right,n.operator,l,o)},ArrowFunctionExpression:function(n,l,o){return le(this.generateFunctionBody(n),r.ArrowFunction,l)},ConditionalExpression:function(n,l,o){return r.Conditional<l&&(o|=B),le([this.generateExpression(n.test,r.LogicalOR,o),v+"?"+v,this.generateExpression(n.consequent,r.Assignment,o),v+":"+v,this.generateExpression(n.alternate,r.Assignment,o)],r.Conditional,l)},LogicalExpression:function(n,l,o){return this.BinaryExpression(n,l,o)},BinaryExpression:function(n,l,o){var c,d,w,T,I,F;return T=i[n.operator],d=n.operator==="**"?r.Postfix:T,w=n.operator==="**"?T:T+1,T<l&&(o|=B),I=this.generateExpression(n.left,d,o),F=I.toString(),F.charCodeAt(F.length-1)===47&&u.code.isIdentifierPartES5(n.operator.charCodeAt(0))?c=[I,fe(),n.operator]:c=U(I,n.operator),I=this.generateExpression(n.right,w,o),n.operator==="/"&&I.toString().charAt(0)==="/"||n.operator.slice(-1)==="<"&&I.toString().slice(0,3)==="!--"?(c.push(fe()),c.push(I)):c=U(c,I),n.operator==="in"&&!(o&B)?["(",c,")"]:le(c,T,l)},CallExpression:function(n,l,o){var c,d,w;for(c=[this.generateExpression(n.callee,r.Call,we)],n.optional&&c.push("?."),c.push("("),d=0,w=n.arguments.length;d<w;++d)c.push(this.generateExpression(n.arguments[d],r.Assignment,M)),d+1<w&&c.push(","+v);return c.push(")"),o&Q?le(c,r.Call,l):["(",c,")"]},ChainExpression:function(n,l,o){r.OptionalChaining<l&&(o|=Q);var c=this.generateExpression(n.expression,r.OptionalChaining,o);return le(c,r.OptionalChaining,l)},NewExpression:function(n,l,o){var c,d,w,T,I;if(d=n.arguments.length,I=o&ne&&!P&&d===0?st:je,c=U("new",this.generateExpression(n.callee,r.New,I)),!(o&ne)||P||d>0){for(c.push("("),w=0,T=d;w<T;++w)c.push(this.generateExpression(n.arguments[w],r.Assignment,M)),w+1<T&&c.push(","+v);c.push(")")}return le(c,r.New,l)},MemberExpression:function(n,l,o){var c,d;return c=[this.generateExpression(n.object,r.Call,o&Q?we:je)],n.computed?(n.optional&&c.push("?."),c.push("["),c.push(this.generateExpression(n.property,r.Sequence,o&Q?M:st)),c.push("]")):(!n.optional&&n.object.type===t.Literal&&typeof n.object.value=="number"&&(d=ee(c).toString(),d.indexOf(".")<0&&!/[eExX]/.test(d)&&u.code.isDecimalDigit(d.charCodeAt(d.length-1))&&!(d.length>=2&&d.charCodeAt(0)===48)&&c.push(" ")),c.push(n.optional?"?.":"."),c.push(ye(n.property))),le(c,r.Member,l)},MetaProperty:function(n,l,o){var c;return c=[],c.push(typeof n.meta=="string"?n.meta:ye(n.meta)),c.push("."),c.push(typeof n.property=="string"?n.property:ye(n.property)),le(c,r.Member,l)},UnaryExpression:function(n,l,o){var c,d,w,T,I;return d=this.generateExpression(n.argument,r.Unary,M),v===""?c=U(n.operator,d):(c=[n.operator],n.operator.length>2?c=U(c,d):(T=ee(c).toString(),I=T.charCodeAt(T.length-1),w=d.toString().charCodeAt(0),((I===43||I===45)&&I===w||u.code.isIdentifierPartES5(I)&&u.code.isIdentifierPartES5(w))&&c.push(fe()),c.push(d))),le(c,r.Unary,l)},YieldExpression:function(n,l,o){var c;return n.delegate?c="yield*":c="yield",n.argument&&(c=U(c,this.generateExpression(n.argument,r.Yield,M))),le(c,r.Yield,l)},AwaitExpression:function(n,l,o){var c=U(n.all?"await*":"await",this.generateExpression(n.argument,r.Await,M));return le(c,r.Await,l)},UpdateExpression:function(n,l,o){return n.prefix?le([n.operator,this.generateExpression(n.argument,r.Unary,M)],r.Unary,l):le([this.generateExpression(n.argument,r.Postfix,M),n.operator],r.Postfix,l)},FunctionExpression:function(n,l,o){var c=[at(n,!0),"function"];return n.id?(c.push(Ct(n)||fe()),c.push(ye(n.id))):c.push(Ct(n)||v),c.push(this.generateFunctionBody(n)),c},ArrayPattern:function(n,l,o){return this.ArrayExpression(n,l,o,!0)},ArrayExpression:function(n,l,o,c){var d,w,T=this;return n.elements.length?(w=c?!1:n.elements.length>1,d=["[",w?C:""],ae(function(I){var F,X;for(F=0,X=n.elements.length;F<X;++F)n.elements[F]?(d.push(w?I:""),d.push(T.generateExpression(n.elements[F],r.Assignment,M))):(w&&d.push(I),F+1===X&&d.push(",")),F+1<X&&d.push(","+(w?C:v))}),w&&!he(ee(d).toString())&&d.push(C),d.push(w?f:""),d.push("]"),d):"[]"},RestElement:function(n,l,o){return"..."+this.generatePattern(n.argument)},ClassExpression:function(n,l,o){var c,d;return c=["class"],n.id&&(c=U(c,this.generateExpression(n.id,r.Sequence,M))),n.superClass&&(d=U("extends",this.generateExpression(n.superClass,r.Unary,M)),c=U(c,d)),c.push(v),c.push(this.generateStatement(n.body,ge)),c},MethodDefinition:function(n,l,o){var c,d;return n.static?c=["static"+v]:c=[],n.kind==="get"||n.kind==="set"?d=[U(n.kind,this.generatePropertyKey(n.key,n.computed)),this.generateFunctionBody(n.value)]:d=[Qr(n),this.generatePropertyKey(n.key,n.computed),this.generateFunctionBody(n.value)],U(c,d)},Property:function(n,l,o){return n.kind==="get"||n.kind==="set"?[n.kind,fe(),this.generatePropertyKey(n.key,n.computed),this.generateFunctionBody(n.value)]:n.shorthand?n.value.type==="AssignmentPattern"?this.AssignmentPattern(n.value,r.Sequence,M):this.generatePropertyKey(n.key,n.computed):n.method?[Qr(n),this.generatePropertyKey(n.key,n.computed),this.generateFunctionBody(n.value)]:[this.generatePropertyKey(n.key,n.computed),":"+v,this.generateExpression(n.value,r.Assignment,M)]},ObjectExpression:function(n,l,o){var c,d,w,T=this;return n.properties.length?(c=n.properties.length>1,ae(function(){w=T.generateExpression(n.properties[0],r.Sequence,M)}),!c&&!Kn(ee(w).toString())?["{",v,w,v,"}"]:(ae(function(I){var F,X;if(d=["{",C,I,w],c)for(d.push(","+C),F=1,X=n.properties.length;F<X;++F)d.push(I),d.push(T.generateExpression(n.properties[F],r.Sequence,M)),F+1<X&&d.push(","+C)}),he(ee(d).toString())||d.push(C),d.push(f),d.push("}"),d)):"{}"},AssignmentPattern:function(n,l,o){return this.generateAssignment(n.left,n.right,"=",l,o)},ObjectPattern:function(n,l,o){var c,d,w,T,I,F=this;if(!n.properties.length)return"{}";if(T=!1,n.properties.length===1)I=n.properties[0],I.type===t.Property&&I.value.type!==t.Identifier&&(T=!0);else for(d=0,w=n.properties.length;d<w;++d)if(I=n.properties[d],I.type===t.Property&&!I.shorthand){T=!0;break}return c=["{",T?C:""],ae(function(X){var ce,Ue;for(ce=0,Ue=n.properties.length;ce<Ue;++ce)c.push(T?X:""),c.push(F.generateExpression(n.properties[ce],r.Sequence,M)),ce+1<Ue&&c.push(","+(T?C:v))}),T&&!he(ee(c).toString())&&c.push(C),c.push(T?f:""),c.push("}"),c},ThisExpression:function(n,l,o){return"this"},Super:function(n,l,o){return"super"},Identifier:function(n,l,o){return ye(n)},ImportDefaultSpecifier:function(n,l,o){return ye(n.id||n.local)},ImportNamespaceSpecifier:function(n,l,o){var c=["*"],d=n.id||n.local;return d&&c.push(v+"as"+fe()+ye(d)),c},ImportSpecifier:function(n,l,o){var c=n.imported,d=[c.name],w=n.local;return w&&w.name!==c.name&&d.push(fe()+"as"+fe()+ye(w)),d},ExportSpecifier:function(n,l,o){var c=n.local,d=[c.name],w=n.exported;return w&&w.name!==c.name&&d.push(fe()+"as"+fe()+ye(w)),d},Literal:function(n,l,o){var c;if(n.hasOwnProperty("raw")&&m&&A.raw)try{if(c=m(n.raw).body[0].expression,c.type===t.Literal&&c.value===n.value)return n.raw}catch{}return n.regex?"/"+n.regex.pattern+"/"+n.regex.flags:n.value===null?"null":typeof n.value=="string"?ns(n.value):typeof n.value=="number"?Zn(n.value):typeof n.value=="boolean"?n.value?"true":"false":es(n.value)},GeneratorExpression:function(n,l,o){return this.ComprehensionExpression(n,l,o)},ComprehensionExpression:function(n,l,o){var c,d,w,T,I=this;return c=n.type===t.GeneratorExpression?["("]:["["],A.moz.comprehensionExpressionStartsWithAssignment&&(T=this.generateExpression(n.body,r.Assignment,M),c.push(T)),n.blocks&&ae(function(){for(d=0,w=n.blocks.length;d<w;++d)T=I.generateExpression(n.blocks[d],r.Sequence,M),d>0||A.moz.comprehensionExpressionStartsWithAssignment?c=U(c,T):c.push(T)}),n.filter&&(c=U(c,"if"+v),T=this.generateExpression(n.filter,r.Sequence,M),c=U(c,["(",T,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(T=this.generateExpression(n.body,r.Assignment,M),c=U(c,T)),c.push(n.type===t.GeneratorExpression?")":"]"),c},ComprehensionBlock:function(n,l,o){var c;return n.left.type===t.VariableDeclaration?c=[n.left.kind,fe(),this.generateStatement(n.left.declarations[0],_t)]:c=this.generateExpression(n.left,r.Call,M),c=U(c,n.of?"of":"in"),c=U(c,this.generateExpression(n.right,r.Sequence,M)),["for"+v+"(",c,")"]},SpreadElement:function(n,l,o){return["...",this.generateExpression(n.argument,r.Assignment,M)]},TaggedTemplateExpression:function(n,l,o){var c=we;o&Q||(c=je);var d=[this.generateExpression(n.tag,r.Call,c),this.generateExpression(n.quasi,r.Primary,nt)];return le(d,r.TaggedTemplate,l)},TemplateElement:function(n,l,o){return n.value.raw},TemplateLiteral:function(n,l,o){var c,d,w;for(c=["`"],d=0,w=n.quasis.length;d<w;++d)c.push(this.generateExpression(n.quasis[d],r.Primary,M)),d+1<w&&(c.push("${"+v),c.push(this.generateExpression(n.expressions[d],r.Sequence,M)),c.push(v+"}"));return c.push("`"),c},ModuleSpecifier:function(n,l,o){return this.Literal(n,l,o)},ImportExpression:function(n,l,o){return le(["import(",this.generateExpression(n.source,r.Assignment,M),")"],r.Call,l)}},zr(oe.prototype,oe.Expression),oe.prototype.generateExpression=function(n,l,o){var c,d;return d=n.type||t.Property,A.verbatim&&n.hasOwnProperty(A.verbatim)?os(n,l):(c=this[d](n,l,o),A.comment&&(c=Xr(n,c)),ee(c,n))},oe.prototype.generateStatement=function(n,l){var o,c;return o=this[n.type](n,l),A.comment&&(o=Xr(n,o)),c=ee(o).toString(),n.type===t.Program&&!L&&C===""&&c.charAt(c.length-1)===`
|
|
18
|
-
`&&(o=x?ee(o).replaceRight(/\s+$/,""):c.replace(/\s+$/,"")),ee(o,n)};function us(n){var l;if(l=new oe,q(n))return l.generateStatement(n,Z);if(W(n))return l.generateExpression(n,r.Sequence,M);throw new Error("Unknown node type: "+n.type)}function ls(n,l){var o=Wr(),c,d;return l!=null?(typeof l.indent=="string"&&(o.format.indent.style=l.indent),typeof l.base=="number"&&(o.format.indent.base=l.base),l=Et(o,l),p=l.format.indent.style,typeof l.base=="string"?f=l.base:f=qe(p,l.format.indent.base)):(l=o,p=l.format.indent.style,f=qe(p,l.format.indent.base)),y=l.format.json,g=l.format.renumber,b=y?!1:l.format.hexadecimal,E=y?"double":l.format.quotes,S=l.format.escapeless,C=l.format.newline,v=l.format.space,l.format.compact&&(C=v=p=f=""),P=l.format.parentheses,O=l.format.semicolons,L=l.format.safeConcatenation,V=l.directive,m=y?null:l.parse,x=l.sourceMap,_=l.sourceCode,k=l.format.preserveBlankLines&&_!==null,A=l,x&&(e.browser?s=dt.sourceMap.SourceNode:s=Ga().SourceNode),c=us(n),x?(d=c.toStringWithSourceMap({file:l.file,sourceRoot:l.sourceMapRoot}),l.sourceContent&&d.map.setSourceContent(l.sourceMap,l.sourceContent),l.sourceMapWithCode?d:d.map.toString()):(d={code:c.toString(),map:null},l.sourceMapWithCode?d:d.code)}D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},R=Wr().format,e.version=so.version,e.generate=ls,e.attachComments=a.attachComments,e.Precedence=Et({},r),e.browser=!1,e.FORMAT_MINIFY=D,e.FORMAT_DEFAULTS=R})()})(Gi);var cr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},hr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ao={5:hr,"5module":hr+" export import",6:hr+" const class extends export import super"},oo=/^in(stanceof)?$/,kr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Xi="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",uo=new RegExp("["+kr+"]"),lo=new RegExp("["+kr+Xi+"]");kr=Xi=null;var Hi=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],co=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function mr(e,t){for(var r=65536,i=0;i<t.length;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}}function Re(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&uo.test(String.fromCharCode(e)):t===!1?!1:mr(e,Hi)}function We(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&lo.test(String.fromCharCode(e)):t===!1?!1:mr(e,Hi)||mr(e,co)}var K=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Se(e,t){return new K(e,{beforeExpr:!0,binop:t})}var _e={beforeExpr:!0},ve={startsExpr:!0},Mt={};function H(e,t){return t===void 0&&(t={}),t.keyword=e,Mt[e]=new K(e,t)}var h={num:new K("num",ve),regexp:new K("regexp",ve),string:new K("string",ve),name:new K("name",ve),eof:new K("eof"),bracketL:new K("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new K("]"),braceL:new K("{",{beforeExpr:!0,startsExpr:!0}),braceR:new K("}"),parenL:new K("(",{beforeExpr:!0,startsExpr:!0}),parenR:new K(")"),comma:new K(",",_e),semi:new K(";",_e),colon:new K(":",_e),dot:new K("."),question:new K("?",_e),questionDot:new K("?."),arrow:new K("=>",_e),template:new K("template"),invalidTemplate:new K("invalidTemplate"),ellipsis:new K("...",_e),backQuote:new K("`",ve),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K("=",{beforeExpr:!0,isAssign:!0}),assign:new K("_=",{beforeExpr:!0,isAssign:!0}),incDec:new K("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Se("||",1),logicalAND:Se("&&",2),bitwiseOR:Se("|",3),bitwiseXOR:Se("^",4),bitwiseAND:Se("&",5),equality:Se("==/!=/===/!==",6),relational:Se("</>/<=/>=",7),bitShift:Se("<</>>/>>>",8),plusMin:new K("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Se("%",10),star:Se("*",10),slash:Se("/",10),starstar:new K("**",{beforeExpr:!0}),coalesce:Se("??",1),_break:H("break"),_case:H("case",_e),_catch:H("catch"),_continue:H("continue"),_debugger:H("debugger"),_default:H("default",_e),_do:H("do",{isLoop:!0,beforeExpr:!0}),_else:H("else",_e),_finally:H("finally"),_for:H("for",{isLoop:!0}),_function:H("function",ve),_if:H("if"),_return:H("return",_e),_switch:H("switch"),_throw:H("throw",_e),_try:H("try"),_var:H("var"),_const:H("const"),_while:H("while",{isLoop:!0}),_with:H("with"),_new:H("new",{beforeExpr:!0,startsExpr:!0}),_this:H("this",ve),_super:H("super",ve),_class:H("class",ve),_extends:H("extends",_e),_export:H("export"),_import:H("import",ve),_null:H("null",ve),_true:H("true",ve),_false:H("false",ve),_in:H("in",{beforeExpr:!0,binop:7}),_instanceof:H("instanceof",{beforeExpr:!0,binop:7}),_typeof:H("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:H("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:H("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},xe=/\r\n?|\n|\u2028|\u2029/,Qe=new RegExp(xe.source,"g");function rt(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var Tr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qi=Object.prototype,ho=Qi.hasOwnProperty,fo=Qi.toString;function Dt(e,t){return ho.call(e,t)}var di=Array.isArray||function(e){return fo.call(e)==="[object Array]"};function Ge(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var Ye=function(t,r){this.line=t,this.column=r};Ye.prototype.offset=function(t){return new Ye(this.line,this.column+t)};var vt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Pr(e,t){for(var r=1,i=0;;){Qe.lastIndex=i;var s=Qe.exec(e);if(s&&s.index<t)++r,i=s.index+s[0].length;else return new Ye(r,t-i)}}var It={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function po(e){var t={};for(var r in It)t[r]=e&&Dt(e,r)?e[r]:It[r];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),di(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return di(t.onComment)&&(t.onComment=mo(t,t.onComment)),t}function mo(e,t){return function(r,i,s,a,u,f){var p={type:r?"Block":"Line",value:i,start:s,end:a};e.locations&&(p.loc=new vt(this,u,f)),e.ranges&&(p.range=[s,a]),t.push(p)}}var mt=1,xt=2,Ir=mt|xt,Yi=4,Ki=8,Zi=16,en=32,tn=64,rn=128;function Nr(e,t){return xt|(e?Yi:0)|(t?Ki:0)}var mi=0,Lr=1,Oe=2,nn=3,sn=4,an=5,re=function(t,r,i){this.options=t=po(t),this.sourceFile=t.sourceFile,this.keywords=Ge(ao[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";if(t.allowReserved!==!0){for(var a=t.ecmaVersion;!(s=cr[a]);a--);t.sourceType==="module"&&(s+=" await")}this.reservedWords=Ge(s);var u=(s?s+" ":"")+cr.strict;this.reservedWordsStrict=Ge(u),this.reservedWordsStrictBind=Ge(u+" "+cr.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
19
|
-
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(xe).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=h.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(mt),this.regexpState=null},ze={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};re.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ze.inFunction.get=function(){return(this.currentVarScope().flags&xt)>0};ze.inGenerator.get=function(){return(this.currentVarScope().flags&Ki)>0};ze.inAsync.get=function(){return(this.currentVarScope().flags&Yi)>0};ze.allowSuper.get=function(){return(this.currentThisScope().flags&tn)>0};ze.allowDirectSuper.get=function(){return(this.currentThisScope().flags&rn)>0};ze.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};re.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&xt)>0};re.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i};re.parse=function(t,r){return new this(r,t).parse()};re.parseExpressionAt=function(t,r,i){var s=new this(i,t,r);return s.nextToken(),s.parseExpression()};re.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(re.prototype,ze);var me=re.prototype,go=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;me.strictDirective=function(e){for(;;){Ce.lastIndex=e,e+=Ce.exec(this.input)[0].length;var t=go.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Ce.lastIndex=e+t[0].length;var r=Ce.exec(this.input),i=r.index+r[0].length,s=this.input.charAt(i);return s===";"||s==="}"||xe.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ce.lastIndex=e,e+=Ce.exec(this.input)[0].length,this.input[e]===";"&&e++}};me.eat=function(e){return this.type===e?(this.next(),!0):!1};me.isContextual=function(e){return this.type===h.name&&this.value===e&&!this.containsEsc};me.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};me.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};me.canInsertSemicolon=function(){return this.type===h.eof||this.type===h.braceR||xe.test(this.input.slice(this.lastTokEnd,this.start))};me.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};me.semicolon=function(){!this.eat(h.semi)&&!this.insertSemicolon()&&this.unexpected()};me.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};me.expect=function(e){this.eat(e)||this.unexpected()};me.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};function Bt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}me.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};me.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};me.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};me.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var z=re.prototype;z.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==h.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,s=Object.keys(this.undefinedExports);i<s.length;i+=1){var a=s[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Or={kind:"loop"},yo={kind:"switch"};z.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ce.lastIndex=this.pos;var t=Ce.exec(this.input),r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(i===91)return!0;if(e)return!1;if(i===123)return!0;if(Re(i,!0)){for(var s=r+1;We(this.input.charCodeAt(s),!0);)++s;var a=this.input.slice(r,s);if(!oo.test(a))return!0}return!1};z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ce.lastIndex=this.pos;var e=Ce.exec(this.input),t=this.pos+e[0].length;return!xe.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!We(this.input.charAt(t+8)))};z.parseStatement=function(e,t,r){var i=this.type,s=this.startNode(),a;switch(this.isLet(e)&&(i=h._var,a="let"),i){case h._break:case h._continue:return this.parseBreakContinueStatement(s,i.keyword);case h._debugger:return this.parseDebuggerStatement(s);case h._do:return this.parseDoStatement(s);case h._for:return this.parseForStatement(s);case h._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case h._class:return e&&this.unexpected(),this.parseClass(s,!0);case h._if:return this.parseIfStatement(s);case h._return:return this.parseReturnStatement(s);case h._switch:return this.parseSwitchStatement(s);case h._throw:return this.parseThrowStatement(s);case h._try:return this.parseTryStatement(s);case h._const:case h._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case h._while:return this.parseWhileStatement(s);case h._with:return this.parseWithStatement(s);case h.braceL:return this.parseBlock(!0,s);case h.semi:return this.parseEmptyStatement(s);case h._export:case h._import:if(this.options.ecmaVersion>10&&i===h._import){Ce.lastIndex=this.pos;var u=Ce.exec(this.input),f=this.pos+u[0].length,p=this.input.charCodeAt(f);if(p===40||p===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===h._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var y=this.value,g=this.parseExpression();return i===h.name&&g.type==="Identifier"&&this.eat(h.colon)?this.parseLabeledStatement(s,y,g,e):this.parseExpressionStatement(s,g)}};z.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(h.semi)||this.insertSemicolon()?e.label=null:this.type!==h.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var s=this.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind==="loop")||e.label&&r))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};z.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};z.parseDoStatement=function(e){return this.next(),this.labels.push(Or),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(h._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(h.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};z.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Or),this.enterScope(0),this.expect(h.parenL),this.type===h.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===h._var||this.type===h._const||r){var i=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var a=new Bt,u=this.parseExpression(!0,a);return this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(u,!1,a),this.checkLVal(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))};z.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ft|(r?0:gr),!1,t)};z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};z.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(h.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};z.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(h.braceL),this.labels.push(yo),this.enterScope(0);for(var t,r=!1;this.type!==h.braceR;)if(this.type===h._case||this.type===h._default){var i=this.type===h._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(h.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};z.parseThrowStatement=function(e){return this.next(),xe.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var vo=[];z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===h._catch){var t=this.startNode();if(this.next(),this.eat(h.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?en:0),this.checkLVal(t.param,r?sn:Oe),this.expect(h.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(h._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};z.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Or),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};z.parseLabeledStatement=function(e,t,r,i){for(var s=0,a=this.labels;s<a.length;s+=1){var u=a[s];u.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var f=this.type.isLoop?"loop":this.type===h._switch?"switch":null,p=this.labels.length-1;p>=0;p--){var y=this.labels[p];if(y.statementStart===e.start)y.statementStart=this.start,y.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};z.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};z.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(h.braceL),e&&this.enterScope(0);this.type!==h.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};z.parseFor=function(e,t){return e.init=t,this.expect(h.semi),e.test=this.type===h.semi?null:this.parseExpression(),this.expect(h.semi),e.update=this.type===h.parenR?null:this.parseExpression(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};z.parseForIn=function(e,t){var r=this.type===h._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):t.type==="AssignmentPattern"&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};z.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(h.eq)?i.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():i.id.type!=="Identifier"&&!(t&&(this.type===h._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(h.comma))break}return e};z.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?Lr:Oe,!1)};var ft=1,gr=2,on=4;z.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===h.star&&t&gr&&this.unexpected(),e.generator=this.eat(h.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ft&&(e.id=t&on&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&gr)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Lr:Oe:nn));var s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Nr(e.async,e.generator)),t&ft||(e.id=this.type===h.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(e,t&ft?"FunctionDeclaration":"FunctionExpression")};z.parseFunctionParams=function(e){this.expect(h.parenL),e.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),s=!1;for(i.body=[],this.expect(h.braceL);this.type!==h.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(i.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"&&(s&&this.raise(a.start,"Duplicate constructor in the same class"),s=!0))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};z.parseClassElement=function(e){var t=this;if(this.eat(h.semi))return null;var r=this.startNode(),i=function(p,y){y===void 0&&(y=!1);var g=t.start,b=t.startLoc;return t.eatContextual(p)?t.type!==h.parenL&&(!y||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(g,b),r.key.name=p,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=i("static");var s=this.eat(h.star),a=!1;s||(this.options.ecmaVersion>=8&&i("async",!0)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(h.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var u=r.key,f=!1;return!r.computed&&!r.static&&(u.type==="Identifier"&&u.name==="constructor"||u.type==="Literal"&&u.value==="constructor")?(r.kind!=="method"&&this.raise(u.start,"Constructor can't have get/set modifier"),s&&this.raise(u.start,"Constructor can't be a generator"),a&&this.raise(u.start,"Constructor can't be an async method"),r.kind="constructor",f=e):r.static&&u.type==="Identifier"&&u.name==="prototype"&&this.raise(u.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,s,a,f),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};z.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")};z.parseClassId=function(e,t){this.type===h.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,Oe,!1)):(t===!0&&this.unexpected(),e.id=null)};z.parseClassSuper=function(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts():null};z.parseExport=function(e,t){if(this.next(),this.eat(h.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(h._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===h._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,ft|on,!1,r)}else if(this.type===h._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,u=e.specifiers;a<u.length;a+=1){var f=u[a];this.checkUnreserved(f.local),this.checkLocalExport(f.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};z.checkExport=function(e,t,r){e&&(Dt(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};z.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t.name,t.start);else if(r==="ObjectPattern")for(var i=0,s=t.properties;i<s.length;i+=1){var a=s[i];this.checkPatternExport(e,a)}else if(r==="ArrayPattern")for(var u=0,f=t.elements;u<f.length;u+=1){var p=f[u];p&&this.checkPatternExport(e,p)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"?this.checkPatternExport(e,t.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)};z.checkVariableExport=function(e,t){if(e)for(var r=0,i=t;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s.id)}};z.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};z.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(r)r=!1;else if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break;var i=this.startNode();i.local=this.parseIdent(!0),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,this.checkExport(e,i.exported.name,i.exported.start),t.push(this.finishNode(i,"ExportSpecifier"))}return t};z.parseImport=function(e){return this.next(),this.type===h.string?(e.specifiers=vo,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===h.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};z.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===h.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,Oe),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(h.comma))return e}if(this.type===h.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,Oe),e.push(this.finishNode(i,"ImportNamespaceSpecifier")),e}for(this.expect(h.braceL);!this.eat(h.braceR);){if(t)t=!1;else if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break;var s=this.startNode();s.imported=this.parseIdent(!0),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLVal(s.local,Oe),e.push(this.finishNode(s,"ImportSpecifier"))}return e};z.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};z.isDirectiveCandidate=function(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Fe=re.prototype;Fe.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};Fe.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var s=e[i];s&&this.toAssignable(s,t)}if(r){var a=e[r-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Fe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Fe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==h.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Fe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case h.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(h.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case h.braceL:return this.parseObj(!0)}return this.parseIdent()};Fe.parseBindingList=function(e,t,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(h.comma),t&&this.type===h.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===h.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var u=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(u),i.push(u)}}return i};Fe.parseBindingListItem=function(e){return e};Fe.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(h.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};Fe.checkLVal=function(e,t,r){switch(t===void 0&&(t=mi),e.type){case"Identifier":t===Oe&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(Dt(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==mi&&t!==an&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];this.checkLVal(a,t,r)}break;case"Property":this.checkLVal(e.value,t,r);break;case"ArrayPattern":for(var u=0,f=e.elements;u<f.length;u+=1){var p=f[u];p&&this.checkLVal(p,t,r)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var $=re.prototype;$.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,s;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&a==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var u=t[s];if(u){var f;a==="init"?f=this.strict&&u.init||u.get||u.set:f=u.init||u[a],f&&this.raiseRecoverable(i.start,"Redefinition of property")}else u=t[s]={init:!1,get:!1,set:!1};u[a]=!0}};$.parseExpression=function(e,t){var r=this.start,i=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===h.comma){var a=this.startNodeAt(r,i);for(a.expressions=[s];this.eat(h.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s};$.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,s=-1,a=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new Bt,i=!0);var u=this.start,f=this.startLoc;(this.type===h.parenL||this.type===h.name)&&(this.potentialArrowAt=this.start);var p=this.parseMaybeConditional(e,t);if(r&&(p=r.call(this,p,u,f)),this.type.isAssign){var y=this.startNodeAt(u,f);return y.operator=this.value,y.left=this.type===h.eq?this.toAssignable(p,!1,t):p,i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=y.left.start&&(t.shorthandAssign=-1),this.checkLVal(p),this.next(),y.right=this.parseMaybeAssign(e),this.finishNode(y,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),p};$.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(h.question)){var a=this.startNodeAt(r,i);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(h.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s};$.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,s=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||s.start===r&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,r,i,-1,e)};$.parseExprOp=function(e,t,r,i,s){var a=this.type.binop;if(a!=null&&(!s||this.type!==h._in)&&a>i){var u=this.type===h.logicalOR||this.type===h.logicalAND,f=this.type===h.coalesce;f&&(a=h.logicalAND.binop);var p=this.value;this.next();var y=this.start,g=this.startLoc,b=this.parseExprOp(this.parseMaybeUnary(null,!1),y,g,a,s),E=this.buildBinary(t,r,e,b,p,u||f);return(u&&this.type===h.coalesce||f&&(this.type===h.logicalOR||this.type===h.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(E,t,r,i,s)}return e};$.buildBinary=function(e,t,r,i,s,a){var u=this.startNodeAt(e,t);return u.left=r,u.operator=s,u.right=i,this.finishNode(u,a?"LogicalExpression":"BinaryExpression")};$.parseMaybeUnary=function(e,t){var r=this.start,i=this.startLoc,s;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===h.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),u?this.checkLVal(a.argument):this.strict&&a.operator==="delete"&&a.argument.type==="Identifier"?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,s=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,i);f.operator=this.value,f.prefix=!1,f.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(f,"UpdateExpression")}}return!t&&this.eat(h.starstar)?this.buildBinary(r,i,s,this.parseMaybeUnary(null,!1),"**",!1):s};$.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,i=this.parseExprAtom(e);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var s=this.parseSubscripts(i,t,r);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1)),s};$.parseSubscripts=function(e,t,r,i){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var u=this.parseSubscript(e,t,r,i,s,a);if(u.optional&&(a=!0),u===e||u.type==="ArrowFunctionExpression"){if(a){var f=this.startNodeAt(t,r);f.expression=u,u=this.finishNode(f,"ChainExpression")}return u}e=u}};$.parseSubscript=function(e,t,r,i,s,a){var u=this.options.ecmaVersion>=11,f=u&&this.eat(h.questionDot);i&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(h.bracketL);if(p||f&&this.type!==h.parenL&&this.type!==h.backQuote||this.eat(h.dot)){var y=this.startNodeAt(t,r);y.object=e,y.property=p?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),y.computed=!!p,p&&this.expect(h.bracketR),u&&(y.optional=f),e=this.finishNode(y,"MemberExpression")}else if(!i&&this.eat(h.parenL)){var g=new Bt,b=this.yieldPos,E=this.awaitPos,S=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var C=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1,g);if(s&&!f&&!this.canInsertSemicolon()&&this.eat(h.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=b,this.awaitPos=E,this.awaitIdentPos=S,this.parseArrowExpression(this.startNodeAt(t,r),C,!0);this.checkExpressionErrors(g,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=E||this.awaitPos,this.awaitIdentPos=S||this.awaitIdentPos;var v=this.startNodeAt(t,r);v.callee=e,v.arguments=C,u&&(v.optional=f),e=this.finishNode(v,"CallExpression")}else if(this.type===h.backQuote){(f||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var P=this.startNodeAt(t,r);P.tag=e,P.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(P,"TaggedTemplateExpression")}return e};$.parseExprAtom=function(e){this.type===h.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case h._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type===h.parenL&&!this.allowDirectSuper&&this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==h.dot&&this.type!==h.bracketL&&this.type!==h.parenL&&this.unexpected(),this.finishNode(t,"Super");case h._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case h.name:var i=this.start,s=this.startLoc,a=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.parseFunction(this.startNodeAt(i,s),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[u],!1);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===h.name&&!a)return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(h.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[u],!0)}return u;case h.regexp:var f=this.value;return t=this.parseLiteral(f.value),t.regex={pattern:f.pattern,flags:f.flags},t;case h.num:case h.string:return this.parseLiteral(this.value);case h._null:case h._true:case h._false:return t=this.startNode(),t.value=this.type===h._null?null:this.type===h._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case h.parenL:var p=this.start,y=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),y;case h.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(h.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case h.braceL:return this.parseObj(!1,e);case h._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case h._class:return this.parseClass(this.startNode(),!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate();case h._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};$.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case h.parenL:return this.parseDynamicImport(e);case h.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};$.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(h.parenR)){var t=this.start;this.eat(h.comma)&&this.eat(h.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};$.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};$.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};$.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};$.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,u=this.startLoc,f=[],p=!0,y=!1,g=new Bt,b=this.yieldPos,E=this.awaitPos,S;for(this.yieldPos=0,this.awaitPos=0;this.type!==h.parenR;)if(p?p=!1:this.expect(h.comma),s&&this.afterTrailingComma(h.parenR,!0)){y=!0;break}else if(this.type===h.ellipsis){S=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var C=this.start,v=this.startLoc;if(this.expect(h.parenR),e&&!this.canInsertSemicolon()&&this.eat(h.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=b,this.awaitPos=E,this.parseParenArrowList(t,r,f);(!f.length||y)&&this.unexpected(this.lastTokStart),S&&this.unexpected(S),this.checkExpressionErrors(g,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=E||this.awaitPos,f.length>1?(i=this.startNodeAt(a,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",C,v)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var P=this.startNodeAt(t,r);return P.expression=i,this.finishNode(P,"ParenthesizedExpression")}else return i};$.parseParenItem=function(e){return e};$.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var xo=[];$.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(h.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,s=this.startLoc,a=this.type===h._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,s,!0),a&&e.callee.type==="ImportExpression"&&this.raise(i,"Cannot use new with import()"),this.eat(h.parenL)?e.arguments=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1):e.arguments=xo,this.finishNode(e,"NewExpression")};$.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===h.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
20
|
-
`),cooked:this.value},this.next(),r.tail=this.type===h.backQuote,this.finishNode(r,"TemplateElement")};$.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===h.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(h.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(h.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};$.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===h.name||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===h.star)&&!xe.test(this.input.slice(this.lastTokEnd,this.start))};$.parseObj=function(e,t){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(h.braceR);){if(i)i=!1;else if(this.expect(h.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(h.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};$.parseProperty=function(e,t){var r=this.startNode(),i,s,a,u;if(this.options.ecmaVersion>=9&&this.eat(h.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===h.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===h.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,u=this.startLoc),e||(i=this.eat(h.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(h.star),this.parsePropertyName(r,t)):s=!1,this.parsePropertyValue(r,e,i,s,a,u,t,f),this.finishNode(r,"Property")};$.parsePropertyValue=function(e,t,r,i,s,a,u,f){if((r||i)&&this.type===h.colon&&this.unexpected(),this.eat(h.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===h.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==h.comma&&this.type!==h.braceR&&this.type!==h.eq){(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var p=e.kind==="get"?0:1;if(e.value.params.length!==p){var y=e.value.start;e.kind==="get"?this.raiseRecoverable(y,"getter should have no params"):this.raiseRecoverable(y,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,e.key):this.type===h.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()};$.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(h.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(h.bracketR),e.key;e.computed=!1}return e.key=this.type===h.num||this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};$.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};$.parseMethod=function(e,t,r){var i=this.startNode(),s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Nr(t,i.generator)|tn|(r?rn:0)),this.expect(h.parenL),i.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(i,"FunctionExpression")};$.parseArrowExpression=function(e,t,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Nr(r,!1)|Zi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};$.parseFunctionBody=function(e,t,r){var i=t&&this.type!==h.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||u)&&(a=this.strictDirective(this.end),a&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,an),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};$.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var i=r[t];if(i.type!=="Identifier")return!1}return!0};$.checkParams=function(e,t){for(var r={},i=0,s=e.params;i<s.length;i+=1){var a=s[i];this.checkLVal(a,Lr,t?null:r)}};$.parseExprList=function(e,t,r,i){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(h.comma),t&&this.afterTrailingComma(e))break;var u=void 0;r&&this.type===h.comma?u=null:this.type===h.ellipsis?(u=this.parseSpread(i),i&&this.type===h.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):u=this.parseMaybeAssign(!1,i),s.push(u)}return s};$.checkUnreserved=function(e){var t=e.start,r=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};$.parseIdent=function(e,t){var r=this.startNode();return this.type===h.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r};$.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===h.semi||this.canInsertSemicolon()||this.type!==h.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(h.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};$.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var Nt=re.prototype;Nt.raise=function(e,t){var r=Pr(this.input,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=this.pos,i};Nt.raiseRecoverable=Nt.raise;Nt.curPosition=function(){if(this.options.locations)return new Ye(this.curLine,this.pos-this.lineStart)};var Ve=re.prototype,bo=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ve.enterScope=function(e){this.scopeStack.push(new bo(e))};Ve.exitScope=function(){this.scopeStack.pop()};Ve.treatFunctionsAsVarInScope=function(e){return e.flags&xt||!this.inModule&&e.flags&mt};Ve.declareName=function(e,t,r){var i=!1;if(t===Oe){var s=this.currentScope();i=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&mt&&delete this.undefinedExports[e]}else if(t===sn){var a=this.currentScope();a.lexical.push(e)}else if(t===nn){var u=this.currentScope();this.treatFunctionsAsVar?i=u.lexical.indexOf(e)>-1:i=u.lexical.indexOf(e)>-1||u.var.indexOf(e)>-1,u.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var p=this.scopeStack[f];if(p.lexical.indexOf(e)>-1&&!(p.flags&en&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags&mt&&delete this.undefinedExports[e],p.flags&Ir)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Ve.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Ve.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Ve.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ir)return t}};Ve.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ir&&!(t.flags&Zi))return t}};var Vt=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new vt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},jt=re.prototype;jt.startNode=function(){return new Vt(this,this.start,this.startLoc)};jt.startNodeAt=function(e,t){return new Vt(this,e,t)};function un(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}jt.finishNode=function(e,t){return un.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};jt.finishNodeAt=function(e,t,r,i){return un.call(this,e,t,r,i)};var Ee=function(t,r,i,s,a){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s,this.generator=!!a},se={b_stat:new Ee("{",!1),b_expr:new Ee("{",!0),b_tmpl:new Ee("${",!1),p_stat:new Ee("(",!1),p_expr:new Ee("(",!0),q_tmpl:new Ee("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ee("function",!1),f_expr:new Ee("function",!0),f_expr_gen:new Ee("function",!0,!1,null,!0),f_gen:new Ee("function",!1,!1,null,!0)},qt=re.prototype;qt.initialContext=function(){return[se.b_stat]};qt.braceIsBlock=function(e){var t=this.curContext();return t===se.f_expr||t===se.f_stat?!0:e===h.colon&&(t===se.b_stat||t===se.b_expr)?!t.isExpr:e===h._return||e===h.name&&this.exprAllowed?xe.test(this.input.slice(this.lastTokEnd,this.start)):e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow?!0:e===h.braceL?t===se.b_stat:e===h._var||e===h._const||e===h.name?!1:!this.exprAllowed};qt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};qt.updateContext=function(e){var t,r=this.type;r.keyword&&e===h.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};h.parenR.updateContext=h.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===se.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};h.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?se.b_stat:se.b_expr),this.exprAllowed=!0};h.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0};h.parenL.updateContext=function(e){var t=e===h._if||e===h._for||e===h._with||e===h._while;this.context.push(t?se.p_stat:se.p_expr),this.exprAllowed=!0};h.incDec.updateContext=function(){};h._function.updateContext=h._class.updateContext=function(e){e.beforeExpr&&e!==h.semi&&e!==h._else&&!(e===h._return&&xe.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===h.colon||e===h.braceL)&&this.curContext()===se.b_stat)?this.context.push(se.f_expr):this.context.push(se.f_stat),this.exprAllowed=!1};h.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1};h.star.updateContext=function(e){if(e===h._function){var t=this.context.length-1;this.context[t]===se.f_expr?this.context[t]=se.f_expr_gen:this.context[t]=se.f_gen}this.exprAllowed=!0};h.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==h.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ln="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",cn=ln+" Extended_Pictographic",So=cn,_o={9:ln,10:cn,11:So},gi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",hn="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",fn=hn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Eo=fn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Co={9:hn,10:fn,11:Eo},pn={};function Rr(e){var t=pn[e]={binary:Ge(_o[e]+" "+gi),nonBinary:{General_Category:Ge(gi),Script:Ge(Co[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Rr(9);Rr(10);Rr(11);var j=re.prototype,Me=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=pn[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Me.prototype.reset=function(t,r,i){var s=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9};Me.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Me.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return-1;var a=i.charCodeAt(t);if(!(r||this.switchU)||a<=55295||a>=57344||t+1>=s)return a;var u=i.charCodeAt(t+1);return u>=56320&&u<=57343?(a<<10)+u-56613888:a};Me.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return s;var a=i.charCodeAt(t),u;return!(r||this.switchU)||a<=55295||a>=57344||t+1>=s||(u=i.charCodeAt(t+1))<56320||u>57343?t+1:t+2};Me.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Me.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Me.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Me.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};function Lt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}j.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i<r.length;i++){var s=r.charAt(i);t.indexOf(s)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(s,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}};j.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};j.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];e.groupNames.indexOf(i)===-1&&e.raise("Invalid named capture referenced")}};j.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};j.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};j.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};j.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};j.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};j.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};j.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};j.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};j.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};j.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};j.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};j.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(e){var t=e.current();return dn(t)?(e.lastIntValue=t,e.advance(),!0):!1};function dn(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}j.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!dn(r);)e.advance();return e.pos!==t};j.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};j.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};j.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Lt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Lt(e.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Ao(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Ao(e){return Re(e,!0)||e===36||e===95}j.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),wo(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function wo(e){return We(e,!0)||e===36||e===95||e===8204||e===8205}j.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};j.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};j.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};j.regexp_eatZero=function(e){return e.current()===48&&!Ut(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};j.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};j.regexp_eatControlLetter=function(e){var t=e.current();return mn(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function mn(e){return e>=65&&e<=90||e>=97&&e<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(u>=56320&&u<=57343)return e.lastIntValue=(s-55296)*1024+(u-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ko(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function ko(e){return e>=0&&e<=1114111}j.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};j.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};j.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(To(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function To(e){return e===100||e===68||e===115||e===83||e===119||e===87}j.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1};j.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Dt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";gn(t=e.current());)e.lastStringValue+=Lt(t),e.advance();return e.lastStringValue!==""};function gn(e){return mn(e)||e===95}j.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Po(t=e.current());)e.lastStringValue+=Lt(t),e.advance();return e.lastStringValue!==""};function Po(e){return gn(e)||Ut(e)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};j.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};j.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||xn(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};j.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};j.regexp_eatClassControlLetter=function(e){var t=e.current();return Ut(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};j.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Ut(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Ut(e){return e>=48&&e<=57}j.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;yn(r=e.current());)e.lastIntValue=16*e.lastIntValue+vn(r),e.advance();return e.pos!==t};function yn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function vn(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}j.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};j.regexp_eatOctalDigit=function(e){var t=e.current();return xn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function xn(e){return e>=48&&e<=55}j.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var s=e.current();if(!yn(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+vn(s),e.advance()}return!0};var Gt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new vt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},J=re.prototype;J.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Gt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};J.getToken=function(){return this.next(),new Gt(this)};typeof Symbol<"u"&&(J[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===h.eof,value:t}}}});J.curContext=function(){return this.context[this.context.length-1]};J.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(h.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};J.readToken=function(e){return Re(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};J.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};J.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Qe.lastIndex=t;for(var i;(i=Qe.exec(this.input))&&i.index<this.pos;)++this.curLine,this.lineStart=i.index+i[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};J.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!rt(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};J.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Tr.test(String.fromCharCode(e)))++this.pos;else break e}}};J.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};J.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(h.ellipsis)):(++this.pos,this.finishToken(h.dot))};J.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(h.assign,2):this.finishOp(h.slash,1)};J.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?h.star:h.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=h.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(h.assign,r+1):this.finishOp(i,r)};J.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(h.assign,3)}return this.finishOp(e===124?h.logicalOR:h.logicalAND,2)}return t===61?this.finishOp(h.assign,2):this.finishOp(e===124?h.bitwiseOR:h.bitwiseAND,1)};J.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)};J.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||xe.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(h.incDec,2):t===61?this.finishOp(h.assign,2):this.finishOp(h.plusMin,1)};J.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(h.assign,r+1):this.finishOp(h.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(h.relational,r))};J.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(h.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(h.arrow)):this.finishOp(e===61?h.eq:h.prefix,1)};J.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(h.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(h.assign,3)}return this.finishOp(h.coalesce,2)}}return this.finishOp(h.question,1)};J.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.parenL);case 41:return++this.pos,this.finishToken(h.parenR);case 59:return++this.pos,this.finishToken(h.semi);case 44:return++this.pos,this.finishToken(h.comma);case 91:return++this.pos,this.finishToken(h.bracketL);case 93:return++this.pos,this.finishToken(h.bracketR);case 123:return++this.pos,this.finishToken(h.braceL);case 125:return++this.pos,this.finishToken(h.braceR);case 58:return++this.pos,this.finishToken(h.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(h.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(h.prefix,1)}this.raise(this.pos,"Unexpected character '"+Fr(e)+"'")};J.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};J.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(xe.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var a=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(a);var f=this.regexpState||(this.regexpState=new Me(this));f.reset(r,s,u),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var p=null;try{p=new RegExp(s,u)}catch{}return this.finishToken(h.regexp,{pattern:s,flags:u,value:p})};J.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,s=r&&this.input.charCodeAt(this.pos)===48,a=this.pos,u=0,f=0,p=0,y=t??1/0;p<y;++p,++this.pos){var g=this.input.charCodeAt(this.pos),b=void 0;if(i&&g===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),f===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),p===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),f=g;continue}if(g>=97?b=g-97+10:g>=65?b=g-65+10:g>=48&&g<=57?b=g-48:b=1/0,b>=e)break;f=g,u=u*e+b}return i&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:u};function Io(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function bn(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}J.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=bn(this.input.slice(t,this.pos)),++this.pos):Re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,r)};J.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var s=bn(this.input.slice(t,this.pos));return++this.pos,Re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=Io(this.input.slice(t,this.pos),r);return this.finishToken(h.num,a)};J.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};function Fr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}J.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(rt(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(h.string,t)};var Sn={};J.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Sn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};J.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Sn;this.raise(e,t)};J.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===h.template||this.type===h.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(h.dollarBraceL)):(++this.pos,this.finishToken(h.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(h.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(rt(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
21
|
-
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};J.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(h.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};J.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
22
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Fr(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);return s>255&&(i=i.slice(0,-1),s=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return rt(t)?"":String.fromCharCode(t)}};J.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};J.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(We(s,i))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(t?Re:We)(u,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Fr(u),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};J.readWord=function(){var e=this.readWord1(),t=h.name;return this.keywords.test(e)&&(t=Mt[e]),this.finishToken(t,e)};var _n="7.4.1";re.acorn={Parser:re,version:_n,defaultOptions:It,Position:Ye,SourceLocation:vt,getLineInfo:Pr,Node:Vt,TokenType:K,tokTypes:h,keywordTypes:Mt,TokContext:Ee,tokContexts:se,isIdentifierChar:We,isIdentifierStart:Re,Token:Gt,isNewLine:rt,lineBreak:xe,lineBreakG:Qe,nonASCIIwhitespace:Tr};function No(e,t){return re.parse(e,t)}function Lo(e,t,r){return re.parseExpressionAt(e,t,r)}function Oo(e,t){return re.tokenizer(e,t)}const Ro=Object.freeze(Object.defineProperty({__proto__:null,Node:Vt,Parser:re,Position:Ye,SourceLocation:vt,TokContext:Ee,Token:Gt,TokenType:K,defaultOptions:It,getLineInfo:Pr,isIdentifierChar:We,isIdentifierStart:Re,isNewLine:rt,keywordTypes:Mt,lineBreak:xe,lineBreakG:Qe,nonASCIIwhitespace:Tr,parse:No,parseExpressionAt:Lo,tokContexts:se,tokTypes:h,tokenizer:Oo,version:_n},Symbol.toStringTag,{value:"Module"}));var En={exports:{}},Fo={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const yi=fs(Ro);(function(e){const t=Fo,r=/^[\da-fA-F]+$/,i=/^\d+$/,s=new WeakMap;function a(p){p=p.Parser.acorn||p;let y=s.get(p);if(!y){const g=p.tokTypes,b=p.TokContext,E=p.TokenType,S=new b("<tag",!1),C=new b("</tag",!1),v=new b("<tag>...</tag>",!0,!0),P={tc_oTag:S,tc_cTag:C,tc_expr:v},O={jsxName:new E("jsxName"),jsxText:new E("jsxText",{beforeExpr:!0}),jsxTagStart:new E("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new E("jsxTagEnd")};O.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(S),this.exprAllowed=!1},O.jsxTagEnd.updateContext=function(L){let V=this.context.pop();V===S&&L===g.slash||V===C?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},y={tokContexts:P,tokTypes:O},s.set(p,y)}return y}function u(p){if(!p)return p;if(p.type==="JSXIdentifier")return p.name;if(p.type==="JSXNamespacedName")return p.namespace.name+":"+p.name.name;if(p.type==="JSXMemberExpression")return u(p.object)+"."+u(p.property)}e.exports=function(p){return p=p||{},function(y){return f({allowNamespaces:p.allowNamespaces!==!1,allowNamespacedObjects:!!p.allowNamespacedObjects},y)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(yi).tokTypes},configurable:!0,enumerable:!0});function f(p,y){const g=y.acorn||yi,b=a(g),E=g.tokTypes,S=b.tokTypes,C=g.tokContexts,v=b.tokContexts.tc_oTag,P=b.tokContexts.tc_cTag,O=b.tokContexts.tc_expr,L=g.isNewLine,V=g.isIdentifierStart,A=g.isIdentifierChar;return class extends y{static get acornJsx(){return b}jsx_readToken(){let m="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(_):(m+=this.input.slice(x,this.pos),this.finishToken(S.jsxText,m));case 38:m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:L(_)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(m){let x=this.input.charCodeAt(this.pos),_;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=m?`
|
|
23
|
-
`:`\r
|
|
24
|
-
`):_=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(m){let x="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===m)break;k===38?(x+=this.input.slice(_,this.pos),x+=this.jsx_readEntity(),_=this.pos):L(k)?(x+=this.input.slice(_,this.pos),x+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return x+=this.input.slice(_,this.pos++),this.finishToken(E.string,x)}jsx_readEntity(){let m="",x=0,_,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let D=++this.pos;for(;this.pos<this.input.length&&x++<10;){if(k=this.input[this.pos++],k===";"){m[0]==="#"?m[1]==="x"?(m=m.substr(2),r.test(m)&&(_=String.fromCharCode(parseInt(m,16)))):(m=m.substr(1),i.test(m)&&(_=String.fromCharCode(parseInt(m,10)))):_=t[m];break}m+=k}return _||(this.pos=D,"&")}jsx_readWord(){let m,x=this.pos;do m=this.input.charCodeAt(++this.pos);while(A(m)||m===45);return this.finishToken(S.jsxName,this.input.slice(x,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===S.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,x=this.startLoc,_=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(E.colon))return _;var k=this.startNodeAt(m,x);return k.namespace=_,k.name=this.jsx_parseIdentifier(),this.finishNode(k,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===S.jsxTagEnd)return"";let m=this.start,x=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type===E.dot&&_.type==="JSXNamespacedName"&&!p.allowNamespacedObjects&&this.unexpected();this.eat(E.dot);){let k=this.startNodeAt(m,x);k.object=_,k.property=this.jsx_parseIdentifier(),_=this.finishNode(k,"JSXMemberExpression")}return _}jsx_parseAttributeValue(){switch(this.type){case E.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case S.jsxTagStart:case E.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),m.expression=this.type===E.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(E.braceR),this.finishNode(m,"JSXExpressionContainer")}jsx_parseAttribute(){let m=this.startNode();return this.eat(E.braceL)?(this.expect(E.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(E.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(E.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,x){let _=this.startNodeAt(m,x);_.attributes=[];let k=this.jsx_parseElementName();for(k&&(_.name=k);this.type!==E.slash&&this.type!==S.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(E.slash),this.expect(S.jsxTagEnd),this.finishNode(_,k?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,x){let _=this.startNodeAt(m,x),k=this.jsx_parseElementName();return k&&(_.name=k),this.expect(S.jsxTagEnd),this.finishNode(_,k?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,x){let _=this.startNodeAt(m,x),k=[],D=this.jsx_parseOpeningElementAt(m,x),R=null;if(!D.selfClosing){e:for(;;)switch(this.type){case S.jsxTagStart:if(m=this.start,x=this.startLoc,this.next(),this.eat(E.slash)){R=this.jsx_parseClosingElementAt(m,x);break e}k.push(this.jsx_parseElementAt(m,x));break;case S.jsxText:k.push(this.parseExprAtom());break;case E.braceL:k.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}u(R.name)!==u(D.name)&&this.raise(R.start,"Expected corresponding JSX closing tag for <"+u(D.name)+">")}let W=D.name?"Element":"Fragment";return _["opening"+W]=D,_["closing"+W]=R,_.children=k,this.type===E.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+W)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(m,x)}parseExprAtom(m){return this.type===S.jsxText?this.jsx_parseText():this.type===S.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let x=this.curContext();if(x===O)return this.jsx_readToken();if(x===v||x===P){if(V(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(S.jsxTagEnd);if((m===34||m===39)&&x==v)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(S.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==E.braceL){var x=this.curContext();x==v?this.context.push(C.b_expr):x==O?this.context.push(C.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===E.slash&&m===S.jsxTagStart)this.context.length-=2,this.context.push(P),this.exprAllowed=!1;else return super.updateContext(m)}}}})(En);var Mo=En.exports;const Do=et(Mo);function Cn(e,t,r,i,s){r||(r=N),function a(u,f,p){var y=p||u.type,g=t[y];r[y](u,f,a),g&&g(u,f)}(e,i,s)}function Bo(e,t,r,i,s){var a=[];r||(r=N),function u(f,p,y){var g=y||f.type,b=t[g],E=f!==a[a.length-1];E&&a.push(f),r[g](f,p,u),b&&b(f,p||a,a),E&&a.pop()}(e,i,s)}function Mr(e,t,r){r(e,t)}function $e(e,t,r){}var N={};N.Program=N.BlockStatement=function(e,t,r){for(var i=0,s=e.body;i<s.length;i+=1){var a=s[i];r(a,t,"Statement")}};N.Statement=Mr;N.EmptyStatement=$e;N.ExpressionStatement=N.ParenthesizedExpression=N.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};N.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};N.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};N.BreakStatement=N.ContinueStatement=$e;N.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};N.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var i=0,s=e.cases;i<s.length;i+=1){var a=s[i];a.test&&r(a.test,t,"Expression");for(var u=0,f=a.consequent;u<f.length;u+=1){var p=f[u];r(p,t,"Statement")}}};N.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var i=0,s=e.consequent;i<s.length;i+=1){var a=s[i];r(a,t,"Statement")}};N.ReturnStatement=N.YieldExpression=N.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};N.ThrowStatement=N.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};N.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};N.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};N.WhileStatement=N.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};N.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};N.ForInStatement=N.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};N.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};N.DebuggerStatement=$e;N.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};N.VariableDeclaration=function(e,t,r){for(var i=0,s=e.declarations;i<s.length;i+=1){var a=s[i];r(a,t)}};N.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};N.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var i=0,s=e.params;i<s.length;i+=1){var a=s[i];r(a,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};N.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};N.VariablePattern=$e;N.MemberPattern=Mr;N.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};N.ArrayPattern=function(e,t,r){for(var i=0,s=e.elements;i<s.length;i+=1){var a=s[i];a&&r(a,t,"Pattern")}};N.ObjectPattern=function(e,t,r){for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];a.type==="Property"?(a.computed&&r(a.key,t,"Expression"),r(a.value,t,"Pattern")):a.type==="RestElement"&&r(a.argument,t,"Pattern")}};N.Expression=Mr;N.ThisExpression=N.Super=N.MetaProperty=$e;N.ArrayExpression=function(e,t,r){for(var i=0,s=e.elements;i<s.length;i+=1){var a=s[i];a&&r(a,t,"Expression")}};N.ObjectExpression=function(e,t,r){for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];r(a,t)}};N.FunctionExpression=N.ArrowFunctionExpression=N.FunctionDeclaration;N.SequenceExpression=function(e,t,r){for(var i=0,s=e.expressions;i<s.length;i+=1){var a=s[i];r(a,t,"Expression")}};N.TemplateLiteral=function(e,t,r){for(var i=0,s=e.quasis;i<s.length;i+=1){var a=s[i];r(a,t)}for(var u=0,f=e.expressions;u<f.length;u+=1){var p=f[u];r(p,t,"Expression")}};N.TemplateElement=$e;N.UnaryExpression=N.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};N.BinaryExpression=N.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};N.AssignmentExpression=N.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};N.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};N.NewExpression=N.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var i=0,s=e.arguments;i<s.length;i+=1){var a=s[i];r(a,t,"Expression")}};N.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};N.ExportNamedDeclaration=N.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")};N.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")};N.ImportDeclaration=function(e,t,r){for(var i=0,s=e.specifiers;i<s.length;i+=1){var a=s[i];r(a,t)}r(e.source,t,"Expression")};N.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};N.ImportSpecifier=N.ImportDefaultSpecifier=N.ImportNamespaceSpecifier=N.Identifier=N.Literal=$e;N.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};N.ClassDeclaration=N.ClassExpression=function(e,t,r){return r(e,t,"Class")};N.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};N.ClassBody=function(e,t,r){for(var i=0,s=e.body;i<s.length;i+=1){var a=s[i];r(a,t)}};N.MethodDefinition=N.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")};var Vo=Ni,jo=vs,qo=Li,Uo="[object Object]",Go=Function.prototype,Wo=Object.prototype,An=Go.toString,zo=Wo.hasOwnProperty,$o=An.call(Object);function Jo(e){if(!qo(e)||Vo(e)!=Uo)return!1;var t=jo(e);if(t===null)return!0;var r=zo.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==$o}var Xo=Jo;const Ho=et(Xo);var Qo=Ni,Yo=xs,Ko=Li,Zo="[object String]";function eu(e){return typeof e=="string"||!Yo(e)&&Ko(e)&&Qo(e)==Zo}var tu=eu;const ru=et(tu);/*!
|
|
25
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
28
|
-
* Released under the MIT License.
|
|
29
|
-
*/function vi(e){return Object.prototype.toString.call(e)==="[object Object]"}function iu(e){var t,r;return vi(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(vi(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var wn={},Ot=dt&&dt.__assign||function(){return Ot=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Ot.apply(this,arguments)},nu=dt&&dt.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<r;t++)for(var a=arguments[t],u=0,f=a.length;u<f;u++,s++)i[s]=a[u];return i};Object.defineProperty(wn,"__esModule",{value:!0});var lt=[];function su(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function au(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ou(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function Tt(e,t,r){r===void 0&&(r="");var i={indent:" ",singleQuotes:!0},s=Ot(Ot({},i),t),a;s.inlineCharacterLimit===void 0?a={newLine:`
|
|
30
|
-
`,newLineOrSpace:`
|
|
31
|
-
`,pad:r,indent:r+s.indent}:a={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var u=function(y){if(s.inlineCharacterLimit===void 0)return y;var g=y.replace(new RegExp(a.newLine,"g"),"").replace(new RegExp(a.newLineOrSpace,"g")," ").replace(new RegExp(a.pad+"|"+a.indent,"g"),"");return g.length<=s.inlineCharacterLimit?g:y.replace(new RegExp(a.newLine+"|"+a.newLineOrSpace,"g"),`
|
|
32
|
-
`).replace(new RegExp(a.pad,"g"),r).replace(new RegExp(a.indent,"g"),r+s.indent)};if(lt.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||au(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";lt.push(e);var f="["+a.newLine+e.map(function(y,g){var b=e.length-1===g?a.newLine:","+a.newLineOrSpace,E=Tt(y,s,r+s.indent);return s.transform&&(E=s.transform(e,g,E)),a.indent+E+b}).join("")+a.pad+"]";return lt.pop(),u(f)}if(su(e)){var p=nu(Object.keys(e),ou(e));if(s.filter&&(p=p.filter(function(g){return s.filter&&s.filter(e,g)})),p.length===0)return"{}";lt.push(e);var f="{"+a.newLine+p.map(function(g,b){var E=p.length-1===b?a.newLine:","+a.newLineOrSpace,S=typeof g=="symbol",C=!S&&/^[a-z$_][a-z$_0-9]*$/i.test(g.toString()),v=S||C?g:Tt(g,s),P=Tt(e[g],s,r+s.indent);return s.transform&&(P=s.transform(e,g,P)),a.indent+String(v)+": "+P+E}).join("")+a.pad+"}";return lt.pop(),u(f)}return e=String(e).replace(/[\r\n]/g,function(y){return y===`
|
|
33
|
-
`?"\\n":"\\r"}),s.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var uu=wn.prettyPrint=Tt,kn={exports:{}},te={};/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-is.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Dr=Symbol.for("react.element"),Br=Symbol.for("react.portal"),Wt=Symbol.for("react.fragment"),zt=Symbol.for("react.strict_mode"),$t=Symbol.for("react.profiler"),Jt=Symbol.for("react.provider"),Xt=Symbol.for("react.context"),lu=Symbol.for("react.server_context"),Ht=Symbol.for("react.forward_ref"),Qt=Symbol.for("react.suspense"),Yt=Symbol.for("react.suspense_list"),Kt=Symbol.for("react.memo"),Zt=Symbol.for("react.lazy"),cu=Symbol.for("react.offscreen"),Tn;Tn=Symbol.for("react.module.reference");function Ae(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dr:switch(e=e.type,e){case Wt:case $t:case zt:case Qt:case Yt:return e;default:switch(e=e&&e.$$typeof,e){case lu:case Xt:case Ht:case Zt:case Kt:case Jt:return e;default:return t}}case Br:return t}}}te.ContextConsumer=Xt;te.ContextProvider=Jt;te.Element=Dr;te.ForwardRef=Ht;te.Fragment=Wt;te.Lazy=Zt;te.Memo=Kt;te.Portal=Br;te.Profiler=$t;te.StrictMode=zt;te.Suspense=Qt;te.SuspenseList=Yt;te.isAsyncMode=function(){return!1};te.isConcurrentMode=function(){return!1};te.isContextConsumer=function(e){return Ae(e)===Xt};te.isContextProvider=function(e){return Ae(e)===Jt};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dr};te.isForwardRef=function(e){return Ae(e)===Ht};te.isFragment=function(e){return Ae(e)===Wt};te.isLazy=function(e){return Ae(e)===Zt};te.isMemo=function(e){return Ae(e)===Kt};te.isPortal=function(e){return Ae(e)===Br};te.isProfiler=function(e){return Ae(e)===$t};te.isStrictMode=function(e){return Ae(e)===zt};te.isSuspense=function(e){return Ae(e)===Qt};te.isSuspenseList=function(e){return Ae(e)===Yt};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wt||e===$t||e===zt||e===Qt||e===Yt||e===cu||typeof e=="object"&&e!==null&&(e.$$typeof===Zt||e.$$typeof===Kt||e.$$typeof===Jt||e.$$typeof===Xt||e.$$typeof===Ht||e.$$typeof===Tn||e.getModuleId!==void 0)};te.typeOf=Ae;kn.exports=te;var Te=kn.exports,Ne=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function gt(e){return gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(e)}function xi(e){return hu(e)||fu(e)||pu(e)||du()}function hu(e){if(Array.isArray(e))return yr(e)}function fu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pu(e,t){if(e){if(typeof e=="string")return yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yr(e,t)}}function yr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function du(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(e,t){return e===null||gt(e)!=="object"||e instanceof Date||e instanceof RegExp||Pe.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(r){return vr(r,t)}):Object.keys(e).sort().reduce(function(r,i){return i==="_owner"||(i==="current"||t.has(e[i])?r[i]="[Circular]":r[i]=vr(e[i],t)),r},{}))}function mu(e){return vr(e,new WeakSet)}var Pn=function(t){return{type:"string",value:t}},gu=function(t){return{type:"number",value:t}},yu=function(t,r,i,s){return{type:"ReactElement",displayName:t,props:r,defaultProps:i,childrens:s}},vu=function(t,r){return{type:"ReactFragment",key:t,childrens:r}},xu=!!Pe.Fragment,In=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},bu=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Te.Memo:return e(t.type);case t.$$typeof===Te.ForwardRef:return e(t.render);default:return In(t)}},Su=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:In(t.type);case Te.isForwardRef(t):case Te.isMemo(t):return bu(t.type);case Te.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Te.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Te.isLazy(t):return"Lazy";case Te.isProfiler(t):return"Profiler";case Te.isStrictMode(t):return"StrictMode";case Te.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},bi=function(t,r){return r!=="children"},_u=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},Si=function(t,r){var i={};return Object.keys(t).filter(function(s){return r(t[s],s)}).forEach(function(s){return i[s]=t[s]}),i},Vr=function e(t,r){var i=r.displayName,s=i===void 0?Su:i;if(typeof t=="string")return Pn(t);if(typeof t=="number")return gu(t);if(!Le.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(gt(t),"`"));var a=s(t),u=Si(t.props,bi);t.ref!==null&&(u.ref=t.ref);var f=t.key;typeof f=="string"&&f.search(/^\./)&&(u.key=f);var p=Si(t.type.defaultProps||{},bi),y=Le.Children.toArray(t.props.children).filter(_u).map(function(g){return e(g,r)});return xu&&t.type===Pe.Fragment?vu(f,y):yu(a,u,p,y)};function Eu(){}var Cu=function(t){return t.toString().split(`
|
|
43
|
-
`).map(function(r){return r.trim()}).join("")},_i=Cu,Nn=function(e,t){var r=t.functionValue,i=r===void 0?_i:r,s=t.showFunctions;return i(!s&&i===_i?Eu:e)},Au=function(e,t,r,i){var s=mu(e),a=uu(s,{transform:function(f,p,y){var g=f[p];return g&&Pe.isValidElement(g)?er(Vr(g,i),!0,r,i):typeof g=="function"?Nn(g,i):y}});return t?a.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):a.replace(/\t/g,Ne(1,i.tabStop)).replace(/\n([^$])/g,`
|
|
44
|
-
`.concat(Ne(r+1,i.tabStop),"$1"))},wu=function(t){return t.replace(/"/g,""")},ku=function(t,r,i,s){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(wu(t),'"');if(gt(t)==="symbol"){var a=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return a?"{Symbol('".concat(a,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(Nn(t,s),"}"):Pe.isValidElement(t)?"{".concat(er(Vr(t,s),!0,i,s),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):iu(t)||Array.isArray(t)?"{".concat(Au(t,r,i,s),"}"):"{".concat(String(t),"}")},Tu=function(e,t,r,i,s,a,u,f){if(!t&&!i)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var p=t?r:s,y=f.useBooleanShorthandSyntax,g=f.tabStop,b=ku(p,a,u,f),E=" ",S=`
|
|
45
|
-
`.concat(Ne(u+1,g)),C=b.includes(`
|
|
46
|
-
`);return y&&b==="{false}"&&!i?(E="",S=""):y&&b==="{true}"?(E+="".concat(e),S+="".concat(e)):(E+="".concat(e,"=").concat(b),S+="".concat(e,"=").concat(b)),{attributeFormattedInline:E,attributeFormattedMultiline:S,isMultilineAttribute:C}},Pu=function(e,t){var r=e.slice(0,e.length>0?e.length-1:0),i=e[e.length-1];return i&&(t.type==="string"||t.type==="number")&&(i.type==="string"||i.type==="number")?r.push(Pn(String(i.value)+String(t.value))):(i&&r.push(i),r.push(t)),r},Iu=function(t){return["key","ref"].includes(t)},Nu=function(e){return function(t){var r=t.includes("key"),i=t.includes("ref"),s=t.filter(function(u){return!Iu(u)}),a=xi(e?s.sort():s);return i&&a.unshift("ref"),r&&a.unshift("key"),a}};function Lu(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var Ou=function(t,r,i,s,a){var u=a.tabStop;return t.type==="string"?r.split(`
|
|
47
|
-
`).map(function(f,p){return p===0?f:"".concat(Ne(s,u)).concat(f)}).join(`
|
|
48
|
-
`):r},Ru=function(t,r,i){return function(s){return Ou(s,er(s,t,r,i),t,r,i)}},Fu=function(t,r){return function(i){var s=Object.keys(t).includes(i);return!s||s&&t[i]!==r[i]}},Ln=function(t,r,i,s,a){return a?Ne(i,s).length+r.length>a:t.length>1},Mu=function(t,r,i,s,a,u,f){return(Ln(t,r,a,u,f)||i)&&!s},On=function(e,t,r,i){var s=e.type,a=e.displayName,u=a===void 0?"":a,f=e.childrens,p=e.props,y=p===void 0?{}:p,g=e.defaultProps,b=g===void 0?{}:g;if(s!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(s));var E=i.filterProps,S=i.maxInlineAttributesLineLength,C=i.showDefaultProps,v=i.sortProps,P=i.tabStop,O="<".concat(u),L=O,V=O,A=!1,m=[],x=Lu(y,E);Object.keys(y).filter(x).filter(Fu(b,y)).forEach(function(D){return m.push(D)}),Object.keys(b).filter(x).filter(function(){return C}).filter(function(D){return!m.includes(D)}).forEach(function(D){return m.push(D)});var _=Nu(v)(m);if(_.forEach(function(D){var R=Tu(D,Object.keys(y).includes(D),y[D],Object.keys(b).includes(D),b[D],t,r,i),W=R.attributeFormattedInline,q=R.attributeFormattedMultiline,B=R.isMultilineAttribute;B&&(A=!0),L+=W,V+=q}),V+=`
|
|
49
|
-
`.concat(Ne(r,P)),Mu(_,L,A,t,r,P,S)?O=V:O=L,f&&f.length>0){var k=r+1;O+=">",t||(O+=`
|
|
50
|
-
`,O+=Ne(k,P)),O+=f.reduce(Pu,[]).map(Ru(t,k,i)).join(t?"":`
|
|
51
|
-
`.concat(Ne(k,P))),t||(O+=`
|
|
52
|
-
`,O+=Ne(k-1,P)),O+="</".concat(u,">")}else Ln(_,L,r,P,S)||(O+=" "),O+="/>";return O},Du="",Ei="React.Fragment",Bu=function(t,r,i){var s={};return r&&(s={key:r}),{type:"ReactElement",displayName:t,props:s,defaultProps:{},childrens:i}},Vu=function(t){var r=t.key;return!!r},ju=function(t){var r=t.childrens;return r.length===0},qu=function(e,t,r,i){var s=e.type,a=e.key,u=e.childrens;if(s!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(s));var f=i.useFragmentShortSyntax,p;return f?ju(e)||Vu(e)?p=Ei:p=Du:p=Ei,On(Bu(p,a,u),t,r,i)},Uu=["<",">","{","}"],Gu=function(t){return Uu.some(function(r){return t.includes(r)})},Wu=function(t){return Gu(t)?"{`".concat(t,"`}"):t},zu=function(t){var r=t;return r.endsWith(" ")&&(r=r.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),r.startsWith(" ")&&(r=r.replace(/^(\s+)(.*)$/,"{'$1'}$2")),r},er=function(e,t,r,i){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(zu(Wu(String(e.value)))):"";if(e.type==="ReactElement")return On(e,t,r,i);if(e.type==="ReactFragment")return qu(e,t,r,i);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},$u=function(e,t){return er(e,!1,0,t)},pt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.filterProps,s=i===void 0?[]:i,a=r.showDefaultProps,u=a===void 0?!0:a,f=r.showFunctions,p=f===void 0?!1:f,y=r.functionValue,g=r.tabStop,b=g===void 0?2:g,E=r.useBooleanShorthandSyntax,S=E===void 0?!0:E,C=r.useFragmentShortSyntax,v=C===void 0?!0:C,P=r.sortProps,O=P===void 0?!0:P,L=r.maxInlineAttributesLineLength,V=r.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var A={filterProps:s,showDefaultProps:u,showFunctions:p,functionValue:y,tabStop:b,useBooleanShorthandSyntax:S,useFragmentShortSyntax:v,sortProps:O,maxInlineAttributesLineLength:L,displayName:V};return $u(Vr(t,A),A)};const{defaultDecorateStory:Ju,addons:Xu,useEffect:Hu}=__STORYBOOK_MODULE_PREVIEW_API__,{logger:kt}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Qu(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];if(r){let a=e.map(u=>{let f=u.getPrettyName(),p=u.getTypeName();return p!=null?`${f}: ${p}`:f});s.push(`(${a.join(", ")})`)}else s.push("()");return i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function Yu(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];return r?s.push("( ... )"):s.push("()"),i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function Ku(e){return e.replace(/,/g,`,\r
|
|
53
|
-
`)}var xr="custom",bt="object",jr="array",Zu="class",Ke="func",it="element";function qr(e){return Ma.includes(e.toLowerCase())}var Rn={format:{indent:{style:" "},semicolons:!1}},el={...Rn,format:{newline:""}},tl={...Rn};function De(e,t=!1){return Gi.generate(e,t?el:tl)}function br(e,t=!1){return t?rl(e):De(e)}function rl(e){let t=De(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function Ci(e,t=!1){return t?nl(e):il(e)}function il(e){let t=De(e);return t.endsWith(" }]")&&(t=bs(t)),t}function nl(e){let t=De(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var Fn=e=>e.$$typeof===Symbol.for("react.memo"),sl=e=>e.$$typeof===Symbol.for("react.forward_ref"),Ur={...N,JSXElement:()=>{}},al=re.extend(Do());function St(e){return e!=null?e.name:null}function Ai(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function Mn(e){let t=[];return Bo(e,{ObjectExpression(r,i){t.push(Ai(i).length)},ArrayExpression(r,i){t.push(Ai(i).length)}},Ur),Math.max(...t)}function ol(e){return{inferredType:{type:"Identifier",identifier:St(e)},ast:e}}function ul(e){return{inferredType:{type:"Literal"},ast:e}}function ll(e){let t;Cn(e.body,{JSXElement(s){t=s}},Ur);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},i=St(e.id);return i!=null&&(r.identifier=i),{inferredType:r,ast:e}}function cl(e){let t;return Cn(e.body,{JSXElement(r){t=r}},Ur),{inferredType:{type:t!=null?"Element":"Class",identifier:St(e.id)},ast:e}}function hl(e){let t={type:"Element"},r=St(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function fl(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return St(t)==="shape"?Dn(e.arguments[0]):null}function Dn(e){return{inferredType:{type:"Object",depth:Mn(e)},ast:e}}function pl(e){return{inferredType:{type:"Array",depth:Mn(e)},ast:e}}function dl(e){switch(e.type){case"Identifier":return ol(e);case"Literal":return ul(e);case"FunctionExpression":case"ArrowFunctionExpression":return ll(e);case"ClassExpression":return cl(e);case"JSXElement":return hl(e);case"CallExpression":return fl(e);case"ObjectExpression":return Dn(e);case"ArrayExpression":return pl(e);default:return null}}function ml(e){let t=al.parse(`(${e})`),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let i=t.body[0];switch(i.type){case"ExpressionStatement":{let s=dl(i.expression);s!=null&&(r=s);break}}}return r}function Be(e){try{return{...ml(e)}}catch{}return{inferredType:{type:"Unknown"}}}var gl=150;function de({name:e,short:t,compact:r,full:i,inferredType:s}){return{name:e,short:t,compact:r,full:i??t,inferredType:s}}function Bn(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function wi(e){return e.split(/\r?\n/)}function Rt(e,t=!1){return Bn(br(e,t))}function ki(e,t=!1){return Bn(De(e,t))}function yl(e){switch(e){case"Object":return bt;case"Array":return jr;case"Class":return Zu;case"Function":return Ke;case"Element":return it;default:return xr}}function Vn(e,t){let{inferredType:r,ast:i}=Be(e),{type:s}=r,a,u,f;switch(s){case"Identifier":case"Literal":a=e,u=e;break;case"Object":{let{depth:p}=r;a=bt,u=p===1?Rt(i,!0):null,f=Rt(i);break}case"Element":{let{identifier:p}=r;a=p!=null&&!qr(p)?p:it,u=wi(e).length===1?e:null,f=e;break}case"Array":{let{depth:p}=r;a=jr,u=p<=2?ki(i,!0):null,f=ki(i);break}default:a=yl(s),u=wi(e).length===1?e:null,f=e;break}return de({name:t,short:a,compact:u,full:f,inferredType:s})}function vl({raw:e}){return e!=null?Vn(e,"custom"):de({name:"custom",short:xr,compact:xr})}function xl(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?de({name:"func",short:Yu(t.params,t.returns),compact:null,full:Qu(t.params,t.returns)}):de({name:"func",short:Ke,compact:Ke})}function bl(e,t){let r=Object.keys(e.value).map(u=>`${u}: ${Ze(e.value[u],t).full}`).join(", "),{inferredType:i,ast:s}=Be(`{ ${r} }`),{depth:a}=i;return de({name:"shape",short:bt,compact:a===1&&s?Rt(s,!0):null,full:s?Rt(s):null})}function fr(e){return`objectOf(${e})`}function Sl(e,t){let{short:r,compact:i,full:s}=Ze(e.value,t);return de({name:"objectOf",short:fr(r),compact:i!=null?fr(i):null,full:s&&fr(s)})}function _l(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((i,s)=>{let{short:a,compact:u,full:f}=Ze(s,t);return i.short.push(a),i.compact.push(u),i.full.push(f),i},{short:[],compact:[],full:[]});return de({name:"union",short:r.short.join(" | "),compact:r.compact.every(i=>i!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return de({name:"union",short:e.value,compact:null})}function El({value:e,computed:t}){return t?Vn(e,"enumvalue"):de({name:"enumvalue",short:e,compact:e})}function Cl(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,i)=>{let{short:s,compact:a,full:u}=El(i);return r.short.push(s),r.compact.push(a),r.full.push(u),r},{short:[],compact:[],full:[]});return de({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return de({name:"enum",short:e.value,compact:e.value})}function Sr(e){return`${e}[]`}function Ti(e){return`[${e}]`}function Pi(e,t,r){return de({name:"arrayOf",short:Sr(e),compact:t!=null?Ti(t):null,full:r&&Ti(r)})}function Al(e,t){let{name:r,short:i,compact:s,full:a,inferredType:u}=Ze(e.value,t);if(r==="custom"){if(u==="Object")return Pi(i,s,a)}else if(r==="shape")return Pi(i,s,a);return de({name:"arrayOf",short:Sr(i),compact:Sr(i)})}function Ze(e,t){try{switch(e.name){case"custom":return vl(e);case"func":return xl(t);case"shape":return bl(e,t);case"instanceOf":return de({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return Sl(e,t);case"union":return _l(e,t);case"enum":return Cl(e);case"arrayOf":return Al(e,t);default:return de({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return de({name:"unknown",short:"unknown",compact:"unknown"})}function wl(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:i,full:s}=Ze(t,e);return i!=null&&!wr(i)?G(i):s?G(r,s):G(r)}case"func":{let{short:r,full:i}=Ze(t,e),s=r,a;return i&&i.length<gl?s=i:i&&(a=Ku(i)),G(s,a)}default:return null}}catch(r){console.error(r)}return null}function jn({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let i=br(t,!0);if(!tt(i))return G(i)}return G(bt,br(t))}function qn({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let i=Ci(t,!0);if(!tt(i))return G(i)}return G(jr,Ci(t))}function Gr(e,t){return t?`${e}( ... )`:`${e}()`}function tr(e){return`<${e} />`}function Un(e){let{type:t,identifier:r}=e;switch(t){case"Function":return Gr(r,e.hasParams);case"Element":return tr(r);default:return r}}function kl({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return G(Un(e),De(t));let i=De(t,!0);return tt(i)?G(Ke,De(t)):G(i)}function Tl(e,t){let{inferredType:r}=t,{identifier:i}=r;if(i!=null&&!qr(i)){let s=Un(r);return G(s,e)}return tt(e)?G(it,e):G(e)}function Gn(e){try{let t=Be(e);switch(t.inferredType.type){case"Object":return jn(t);case"Function":return kl(t);case"Element":return Tl(e,t);case"Array":return qn(t);default:return null}}catch(t){console.error(t)}return null}function Wn(e){return e.$$typeof!=null}function zn(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var Pl=e=>G(JSON.stringify(e));function Il(e){let{type:t}=e,{displayName:r}=t,i=pt(e,{});if(r!=null){let s=tr(r);return G(s,i)}if(ru(t)&&qr(t)){let s=pt(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!tt(s))return G(s)}return G(it,i)}var Nl=e=>{if(Wn(e)&&e.type!=null)return Il(e);if(Ho(e)){let t=Be(JSON.stringify(e));return jn(t)}if(Array.isArray(e)){let t=Be(JSON.stringify(e));return qn(t)}return G(bt)},Ll=(e,t)=>{let r=!1,i;if(ei(e.render))r=!0;else if(e.prototype!=null&&ei(e.prototype.render))r=!0;else{let a;try{i=Be(e.toString());let{hasParams:u,params:f}=i.inferredType;u?f.length===1&&f[0].type==="ObjectPattern"&&(a=e({})):a=e(),a!=null&&Wn(a)&&(r=!0)}catch{}}let s=zn(e,t.name);if(s!=null){if(r)return G(tr(s));i!=null&&(i=Be(e.toString()));let{hasParams:a}=i.inferredType;return G(Gr(s,a))}return G(r?it:Ke)},Ol=e=>G(e.toString()),$n={string:Pl,object:Nl,function:Ll,default:Ol};function Rl(e={}){return{...$n,...e}}function Jn(e,t,r=$n){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(i){console.error(i)}return null}function Fl(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(i=>e.find(s=>s.name===i)).filter(Boolean):e}var Ml=(e,{name:t,type:r})=>{let i=r.summary==="element"||r.summary==="elementType",s=zn(e,t);if(s!=null){if(i)return G(tr(s));let{hasParams:a}=Be(e.toString()).inferredType;return G(Gr(s,a))}return G(i?it:Ke)},Dl=Rl({function:Ml});function Bl(e,t){let{propDef:r}=e,i=wl(e);i!=null&&(r.type=i);let{defaultValue:s}=e.docgenInfo;if(s!=null&&s.value!=null){let a=Gn(s.value);a!=null&&(r.defaultValue=a)}else if(t!=null){let a=Jn(t,r,Dl);a!=null&&(r.defaultValue=a)}return r}function Vl(e,t){let r=t.defaultProps!=null?t.defaultProps:{},i=e.map(s=>Bl(s,r[s.propDef.name]));return Fl(i,t)}function jl(e,t){let{propDef:r}=e,{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let s=Gn(i.value);s!=null&&(r.defaultValue=s)}else if(t!=null){let s=Jn(t,r);s!=null&&(r.defaultValue=s)}return r}function ql(e){return e.map(t=>jl(t))}var Ii=new Map;Object.keys(ti).forEach(e=>{let t=ti[e];Ii.set(t,e),Ii.set(t.isRequired,e)});function Ul(e,t){let r=e;!Ar(e)&&!e.propTypes&&Fn(e)&&(r=e.type);let i=Pa(r,t);if(i.length===0)return[];switch(i[0].typeSystem){case pr.JAVASCRIPT:return Vl(i,e);case pr.TYPESCRIPT:return ql(i);default:return i.map(s=>s.propDef)}}var Gl=e=>({rows:Ul(e,"props")}),Wl=e=>{if(e){let{rows:t}=Gl(e);if(t)return t.reduce((r,i)=>{let{name:s,description:a,type:u,sbType:f,defaultValue:p,jsDocTags:y,required:g}=i;return r[s]={name:s,description:a,type:{required:g,...f},table:{type:u,jsDocTags:y,defaultValue:p}},r},{})}return null};function _r(e){if(Pe.isValidElement(e)){let t=Object.keys(e.props).reduce((r,i)=>(r[i]=_r(e.props[i]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(_r):e}var zl=(e,t)=>{if(typeof e>"u")return kt.warn("Too many skip or undefined component"),null;let r=e,i=r.type;for(let a=0;a<t.skip;a+=1){if(typeof r>"u")return kt.warn("Cannot skip undefined element"),null;if(Le.Children.count(r)>1)return kt.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(kt.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=Le.createElement(i,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let s={...typeof t.displayName=="string"?{showFunctions:!0,displayName:()=>t.displayName}:{displayName:a=>a.type.displayName||(a.type===Symbol.for("react.profiler")?"Profiler":null)||Di(a.type,"displayName")||(a.type.name!=="_default"?a.type.name:null)||(typeof a.type=="function"?"No Display Name":null)||(sl(a.type)?a.type.render.name:null)||(Fn(a.type)?a.type.type.name:null)||a.type},filterProps:(a,u)=>a!==void 0,...t};return Le.Children.map(e,a=>{let u=typeof a=="number"?a.toString():a,f=(typeof pt=="function"?pt:pt.default)(_r(u),s);if(f.indexOf(""")>-1){let p=f.match(/\S+=\\"([^"]*)\\"/g);p&&p.forEach(y=>{f=f.replace(y,y.replace(/"/g,"'"))})}return f}).join(`
|
|
54
|
-
`).replace(/function\s+noRefCheck\(\)\s+\{\}/g,"() => {}")},$l={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},Jl=e=>{var i;let t=(i=e==null?void 0:e.parameters.docs)==null?void 0:i.source,r=e==null?void 0:e.parameters.__isArgsStory;return(t==null?void 0:t.type)===dr.DYNAMIC?!1:!r||(t==null?void 0:t.code)||(t==null?void 0:t.type)===dr.CODE},Xl=e=>{var t,r;return((t=e.type)==null?void 0:t.displayName)==="MDXCreateElement"&&!!((r=e.props)!=null&&r.mdxType)},Xn=e=>{if(!Xl(e))return e;let{mdxType:t,originalType:r,children:i,...s}=e.props,a=[];return i&&(a=(Array.isArray(i)?i:[i]).map(Xn)),Pe.createElement(r,s,...a)},Hn=(e,t)=>{var g,b;let r=Xu.getChannel(),i=Jl(t),s="";Hu(()=>{if(!i){let{id:E,args:S}=t;r.emit(Oa,{id:E,source:s,args:S})}});let a=e();if(i)return a;let u={...$l,...(t==null?void 0:t.parameters.jsx)||{}},f=(b=(g=t==null?void 0:t.parameters.docs)==null?void 0:g.source)!=null&&b.excludeDecorators?t.originalStoryFn(t.args,t):a,p=Xn(f),y=zl(p,u);return y&&(s=y),a},Hl={docs:{story:{inline:!0},extractArgTypes:Wl,extractComponentDescription:Ia}},sc=[Hn],ac=[Na],oc=(e,t)=>{let r=t.findIndex(s=>s.originalFn===Hn),i=r===-1?t:[...t.splice(r,1),...t];return Ju(e,i)},uc={renderer:"react",...Hl};export{oc as applyDecorators,ac as argTypesEnhancers,sc as decorators,uc as parameters,ic as render,nc as renderToCanvas};
|
|
55
|
-
//# sourceMappingURL=config-6b18ac56.js.map
|