@cencomalls/cencob2b-storybook 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/chromatic.yml +28 -0
- package/.github/workflows/publish.yml +22 -0
- package/.github/workflows/release.yml +29 -0
- package/.storybook/main.js +25 -0
- package/.storybook/preview.js +13 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-4.1.1.cjs +893 -0
- package/.yarnrc.yml +3 -0
- package/package.json +13 -59
- package/stories/Button.jsx +50 -0
- package/stories/Button.stories.js +48 -0
- package/stories/Configure.mdx +364 -0
- package/stories/Header.jsx +59 -0
- package/stories/Header.stories.js +28 -0
- package/stories/Page.jsx +69 -0
- package/stories/Page.stories.js +28 -0
- package/stories/assets/accessibility.png +0 -0
- package/stories/assets/accessibility.svg +5 -0
- package/stories/assets/addon-library.png +0 -0
- package/stories/assets/assets.png +0 -0
- package/stories/assets/avif-test-image.avif +0 -0
- package/stories/assets/context.png +0 -0
- package/stories/assets/discord.svg +15 -0
- package/stories/assets/docs.png +0 -0
- package/stories/assets/figma-plugin.png +0 -0
- package/stories/assets/github.svg +3 -0
- package/stories/assets/share.png +0 -0
- package/stories/assets/styling.png +0 -0
- package/stories/assets/testing.png +0 -0
- package/stories/assets/theming.png +0 -0
- package/stories/assets/tutorials.svg +12 -0
- package/stories/assets/youtube.svg +4 -0
- package/stories/button.css +30 -0
- package/stories/header.css +32 -0
- package/stories/page.css +69 -0
- package/storybook-static/assets/Button-B7GXpXHZ.js +203 -0
- package/storybook-static/assets/Button-BfyGbg8N.css +1 -0
- package/storybook-static/assets/Button.stories-Cz4ZTIw_.js +20 -0
- package/storybook-static/assets/Color-RQJUDNI5-r4zJMVcU.js +1 -0
- package/storybook-static/assets/Configure-CZVeek8t.js +173 -0
- package/storybook-static/assets/DocsRenderer-K4EAMTCU-Do6HWQxO.js +7 -0
- package/storybook-static/assets/Header-Be6lOWYO.js +1 -0
- package/storybook-static/assets/Header-BjLH3naM.css +1 -0
- package/storybook-static/assets/Header.stories-D9E6awjx.js +7 -0
- package/storybook-static/assets/Page-B9ntr4df.css +1 -0
- package/storybook-static/assets/Page.stories-DTRxRE07.js +17 -0
- package/storybook-static/assets/WithTooltip-Y7J54OF7-U9kDFlyj.js +1 -0
- package/storybook-static/assets/accessibility-W_h2acOZ.png +0 -0
- package/storybook-static/assets/addon-library-BWUCAmyN.png +0 -0
- package/storybook-static/assets/context-C0qIqeS4.png +0 -0
- package/storybook-static/assets/docs---vsFbMi.png +0 -0
- package/storybook-static/assets/entry-preview-docs-1v-OicRc.js +54 -0
- package/storybook-static/assets/entry-preview-kGuIN3g4.js +1 -0
- package/storybook-static/assets/figma-plugin-CH2hELiO.png +0 -0
- package/storybook-static/assets/formatter-B5HCVTEV-IqGtHqtT.js +58 -0
- package/storybook-static/assets/iframe-Da46mUfp.js +7 -0
- package/storybook-static/assets/index-BBkUAzwr.js +9 -0
- package/storybook-static/assets/index-BjkNUVMH.js +505 -0
- package/storybook-static/assets/index-Bw8VTzHM.js +1 -0
- package/storybook-static/assets/index-DboEQVPH.js +3 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/index-PqR-_bA4.js +24 -0
- package/storybook-static/assets/index-YMbfICiA.js +1 -0
- package/storybook-static/assets/index-z5U8iC57.js +1 -0
- package/storybook-static/assets/preview-B4GcaC1c.js +1 -0
- package/storybook-static/assets/preview-BAz7FMXc.js +396 -0
- package/storybook-static/assets/preview-BQoJvzIs.js +7 -0
- package/storybook-static/assets/preview-B_0crF9I.js +1 -0
- package/storybook-static/assets/preview-BjivwLRH.js +203 -0
- package/storybook-static/assets/preview-CIRcjyVj.js +1 -0
- package/storybook-static/assets/preview-Cv3rAi2i.js +7 -0
- package/storybook-static/assets/preview-CwqMn10d.js +20 -0
- package/storybook-static/assets/preview-Db4Idchh.js +1 -0
- package/storybook-static/assets/preview-DbT1mggi.js +1 -0
- package/storybook-static/assets/react-18-B-OKcmzb.js +1 -0
- package/storybook-static/assets/share-DGA-UcQf.png +0 -0
- package/storybook-static/assets/styling-Bk6zjRzU.png +0 -0
- package/storybook-static/assets/syntaxhighlighter-JOJW2KGS-Cy7bkou7.js +1 -0
- package/storybook-static/assets/testing-cbzR9l9r.png +0 -0
- package/storybook-static/assets/theming-D6WJLNoW.png +0 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +492 -0
- package/storybook-static/index.html +167 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +323 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js +79 -0
- package/storybook-static/sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt +28 -0
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-11/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +502 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- 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/WithTooltip-Y7J54OF7-KHQOWZXS.js +1 -0
- package/storybook-static/sb-manager/chunk-3F3RRPB3.js +347 -0
- package/storybook-static/sb-manager/chunk-62YMTM65.js +6 -0
- package/storybook-static/sb-manager/chunk-AQBE2B7B.js +183 -0
- package/storybook-static/sb-manager/chunk-Q3RBXCN3.js +231 -0
- package/storybook-static/sb-manager/chunk-XP3HGWTR.js +1 -0
- package/storybook-static/sb-manager/chunk-YME6VNXZ.js +9 -0
- package/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +58 -0
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals-runtime.js +1 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-WAFIMSO6.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +128 -0
- package/LICENSE +0 -21
- package/README.md +0 -90
- package/dist/cjs/index.js +0 -81
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/index.js +0 -81
- package/dist/esm/index.js.map +0 -1
@@ -0,0 +1,54 @@
|
|
1
|
+
import{u as Gn,b as bi,c as zn,d as Si,e as Wn,f as $n,g as Jn,S as Xn,h as te,j as Hn,k as Ur,l as Gr,m as Qn,n as Yn,T as zr,o as ft,p as Kn}from"./index-DboEQVPH.js";import{P as Wr}from"./index-YMbfICiA.js";import{g as Nt,c as lt,a as Zn,R as at,r as ze}from"./index-BBkUAzwr.js";import{d as es}from"./index-DrFu-skq.js";const ts=["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 rs=ts;const is=Nt(rs);var _i={},Ei={};(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,B,R;for(k=m.length,B=0;k;)_=k>>>1,R=B+_,x(m[R])?k=_:(B=R+1,k-=_+1);return B}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,B,R,G;function q(D,H){if(Array.isArray(H))for(k=0,B=H.length;k<B;++k)D.push(H[k]);else D.push(H)}if(!this.__current.path)return null;for(R=[],x=2,_=this.__leavelist.length;x<_;++x)G=this.__leavelist[x],q(R,G.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,B;return B=void 0,k=this.__current,this.__current=_,this.__state=null,x&&(B=x.call(this,_.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=k,B},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 I(m,x){for(var _=m.length-1;_>=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,B=this.__leavelist,k.push(new E(x,null,null,null)),B.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=B.pop(),D=this.__execute(_.leave,R),this.__state===u||D===u)return;continue}if(R.node){if(D=this.__execute(_.enter,R),this.__state===u||D===u)return;if(k.push(xe),B.push(R),this.__state===f||D===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!I(B,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(I(B,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe,Te;function Je(M){var Ve,vt,Fe,ee;if(M.ref.remove()){for(vt=M.ref.key,ee=M.ref.parent,Ve=k.length;Ve--;)if(Fe=k[Ve],Fe.ref&&Fe.ref.parent===ee){if(Fe.ref.key<vt)break;--Fe.ref.key}}}for(this.__initialize(x,_),Q={},k=this.__worklist,B=this.__leavelist,xe={root:x},D=new E(x,null,null,new b(xe,"root")),k.push(D),B.push(D);k.length;){if(D=k.pop(),D===Q){if(D=B.pop(),q=this.__execute(_.leave,D),q!==void 0&&q!==u&&q!==f&&q!==p&&D.ref.replace(q),(this.__state===p||q===p)&&Je(D),this.__state===u||q===u)return xe.root;continue}if(q=this.__execute(_.enter,D),q!==void 0&&q!==u&&q!==f&&q!==p&&(D.ref.replace(q),D.node=q),(this.__state===p||q===p)&&(Je(D),D.node=null),this.__state===u||q===u)return xe.root;if(R=D.node,!!R&&(k.push(Q),B.push(D),!(this.__state===f||q===f))){if(G=R.type||D.wrap,ue=this.__keys[G],!ue)if(this.__fallback)ue=this.__fallback(R);else throw new Error("Unknown node type "+G+".");for(H=ue.length;(H-=1)>=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))D=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))D=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(D)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.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(B){return B.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=[],B,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;G<R;G+=1)B=y(x[G]),B.extendedRange=[0,m.range[0]],k.push(B);m.leadingComments=k}return m}for(G=0,R=x.length;G<R;G+=1)k.push(V(y(x[G]),_));return q=0,O(m,{enter:function(D){for(var H;q<k.length&&(H=k[q],!(H.extendedRange[1]>D.range[0]));)H.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.range[1])return s.Skip}}),q=0,O(m,{leave:function(D){for(var H;q<k.length&&(H=k[q],!(D.range[1]<H.extendedRange[0]));)D.range[1]===H.extendedRange[0]?(D.trailingComments||(D.trailingComments=[]),D.trailingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.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)})(Ei);var it={},Kt={},_t={},Et={},$r;function ns(){if($r)return Et;$r=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Et.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Et.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},Et}var Jr;function Ci(){if(Jr)return _t;Jr=1;var e=ns(),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 _t.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},_t.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},_t}var Zt={},Xr;function pt(){return Xr||(Xr=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(/\/+/),B,R=0,G=k.length-1;G>=0;G--)B=k[G],B==="."?k.splice(G,1):B===".."?R++:R>0&&(B===""?(k.splice(G+1,R),R=0):(k.splice(G,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 _=I(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)?_:I(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)||(_=I(A.source,m.source),_!==0)||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0)?_:I(A.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function I(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=I(A.source,m.source),x!==0)||(x=A.originalLine-m.originalLine,x!==0)||(x=A.originalColumn-m.originalColumn,x!==0)?x:I(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}(Zt)),Zt}var er={},Hr;function Ai(){if(Hr)return er;Hr=1;var e=pt(),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()},er.ArraySet=i,er}var tr={},Qr;function ss(){if(Qr)return tr;Qr=1;var e=pt();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},tr.MappingList=r,tr}var Yr;function wi(){if(Yr)return Kt;Yr=1;var e=Ci(),t=pt(),r=Ai().ArraySet,i=ss().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 I=S.name;I!=null&&!E.has(I)&&E.add(I)},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,I,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&&(I=this._sources.indexOf(C.source),S+=e.encode(I-b),b=I,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())},Kt.SourceMapGenerator=s,Kt}var nt={},rr={},Kr;function as(){return Kr||(Kr=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}}(rr)),rr}var ir={},Zr;function os(){if(Zr)return ir;Zr=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 ir.quickSort=function(i,s){r(i,s,0,i.length-1)},ir}var ei;function us(){if(ei)return nt;ei=1;var e=pt(),t=as(),r=Ai().ArraySet,i=Ci(),s=os().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 I=this.sourceRoot;v.map(function(O){var L=O.source===null?null:this._sources.at(O.source);return L=e.computeSourceURL(I,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 I=v.originalLine;v&&v.originalLine===I;)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},nt.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),I=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=I,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(),I=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)),I.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,I=0,O=0,L=g.length,V=0,A={},m={},x=[],_=[],k,B,R,G,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,G=V;G<L&&!this._charIsMappingSeparator(g,G);G++);if(B=g.slice(V,G),R=A[B],R)V+=B.length;else{for(R=[];V<G;)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[B]=R}k.generatedColumn=S+R[0],S=k.generatedColumn,R.length>1&&(k.source=I+R[1],I+=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}},nt.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 I=e.getArg(v,"offset"),O=e.getArg(I,"line"),L=e.getArg(I,"column");if(O<C.line||O===C.line&&L<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=I,{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 I=C.generatedLine-v.generatedOffset.generatedLine;return I||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 I=C[v],O=S.consumer._sources.at(I.source);O=e.computeSourceURL(S.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var L=null;I.name&&(L=S.consumer._names.at(I.name),this._names.add(L),L=this._names.indexOf(L));var V={source:O,generatedLine:I.generatedLine+(S.generatedOffset.generatedLine-1),generatedColumn:I.generatedColumn+(S.generatedOffset.generatedLine===I.generatedLine?S.generatedOffset.generatedColumn-1:0),originalLine:I.originalLine,originalColumn:I.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)},nt.IndexedSourceMapConsumer=p,nt}var nr={},ti;function ls(){if(ti)return nr;ti=1;var e=wi().SourceMapGenerator,t=pt(),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,I=null;return p.eachMapping(function(L){if(I!==null)if(C<L.generatedLine)O(I,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(I,A),I=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}I=L},this),E<b.length&&(I&&O(I,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,I){p.code+=v,I.source!==null&&I.line!==null&&I.column!==null?((b!==I.source||E!==I.line||S!==I.column||C!==I.name)&&y.addMapping({source:I.source,original:{line:I.line,column:I.column},generated:{line:p.line,column:p.column},name:I.name}),b=I.source,E=I.line,S=I.column,C=I.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:I.source,original:{line:I.line,column:I.column},generated:{line:p.line,column:p.column},name:I.name})):p.column++}),this.walkSourceContents(function(v,I){y.setSourceContent(v,I)}),{code:p.code,map:y}},nr.SourceNode=a,nr}var ri;function cs(){return ri||(ri=1,it.SourceMapGenerator=wi().SourceMapGenerator,it.SourceMapConsumer=us().SourceMapConsumer,it.SourceNode=ls().SourceNode),it}const hs="escodegen",fs="ECMAScript code generator",ps="http://github.com/estools/escodegen",ds="escodegen.js",ms={esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},gs=["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],ys="2.1.0",vs={node:">=6.0"},xs=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],bs={type:"git",url:"http://github.com/estools/escodegen.git"},Ss={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},_s={"source-map":"~0.6.1"},Es={acorn:"^8.0.4",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:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Cs="BSD-2-Clause",As={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"},ws={name:hs,description:fs,homepage:ps,main:ds,bin:ms,files:gs,version:ys,engines:vs,maintainers:xs,repository:bs,dependencies:Ss,optionalDependencies:_s,devDependencies:Es,license:Cs,scripts:As};(function(e){(function(){var t,r,i,s,a,u,f,p,y,g,b,E,S,C,v,I,O,L,V,A,m,x,_,k,B,R;a=Ei,u=Gn,t=a.Syntax;function G(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,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":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 D=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=D|H,M=D|H|ne,Ve=D,vt=ne,Fe=D|ne,ee=D,Ae=D|Q,xt=0,In=D|ie,Pn=D|ue;function Or(){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 je(n,l){var o="";for(l|=0;l>0;l>>>=1,n+=n)l&1&&(o+=n);return o}function Nn(n){return/[\r\n]/g.test(n)}function he(n){var l=n.length;return l&&u.code.isLineTerminator(n.charCodeAt(l-1))}function Rr(n,l){var o;for(o in l)l.hasOwnProperty(o)&&(n[o]=l[o]);return n}function bt(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])?bt(n[o],c):n[o]=bt({},c):n[o]=c);return n}function Ln(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 Fr(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 On(n){var l,o,c,d,w,T,P,F;if(o=n.toString(),n.source){if(l=o.match(/\/([^/]*)$/),!l)return o;for(c=l[1],o="",P=!1,F=!1,d=0,w=n.source.length;d<w;++d)T=n.source.charCodeAt(d),F?(o+=Fr(T,F),F=!1):(P?T===93&&(P=!1):T===47?o+="\\":T===91&&(P=!0),o+=Fr(T,F),F=T===92);return"/"+o+"/"+c}return o}function Rn(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 Fn(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 Mn(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 Bn(n){var l="",o,c,d,w=0,T=0,P,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+=Fn(d);continue}else if(!u.code.isIdentifierPartES5(d)&&(y&&d<32||!y&&!S&&(d<32||d>126))){l+=Rn(d,n.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(P=!(E==="double"||E==="auto"&&T<w),F=P?"'":'"',!(P?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&&P||d===34&&!P)&&(l+="\\"),l+=String.fromCharCode(d);return l+F}function Mr(n){var l,o,c,d="";for(l=0,o=n.length;l<o;++l)c=n[l],d+=Array.isArray(c)?Mr(c):c;return d}function K(n,l){if(!x)return Array.isArray(n)?Mr(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=K(n).toString(),o.length===0?[l]:(c=K(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 Dn(n){var l;for(l=n.length-1;l>=0&&!u.code.isLineTerminator(n.charCodeAt(l));--l);return n.length-1-l}function Vn(n,l){var o,c,d,w,T,P,F,J;for(o=n.split(/\r\n|[\r\n]/),P=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;P>T&&(P=T)}for(typeof l<"u"?(F=f,o[1][P]==="*"&&(l+=" "),f=l):(P&1&&--P,F=f),c=1,d=o.length;c<d;++c)J=K(pe(o[c].slice(P))),o[c]=x?J.join(""):J;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)?Vn("/*"+n.value+"*/",l):"/*"+n.value+"*/"}function Br(n,l){var o,c,d,w,T,P,F,J,ce,qe,He,jr,qr,we;if(n.leadingComments&&n.leadingComments.length>0){if(w=l,k){for(d=n.leadingComments[0],l=[],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(l.push(je(`
|
5
|
+
`,we)),l.push(pe(Ie(d)))):(l.push(He),l.push(Ie(d))),qe=ce,o=1,c=n.leadingComments.length;o<c;o++)d=n.leadingComments[o],ce=d.range,jr=_.substring(qe[1],ce[0]),we=(jr.match(/\n/g)||[]).length,l.push(je(`
|
6
|
+
`,we)),l.push(pe(Ie(d))),qe=ce;qr=_.substring(ce[1],J[1]),we=(qr.match(/\n/g)||[]).length,l.push(je(`
|
7
|
+
`,we))}else for(d=n.leadingComments[0],l=[],L&&n.type===t.Program&&n.body.length===0&&l.push(`
|
8
|
+
`),l.push(Ie(d)),he(K(l).toString())||l.push(`
|
9
|
+
`),o=1,c=n.leadingComments.length;o<c;++o)d=n.leadingComments[o],F=[Ie(d)],he(K(F).toString())||F.push(`
|
10
|
+
`),l.push(pe(F));l.push(pe(w))}if(n.trailingComments)if(k)d=n.trailingComments[0],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(l.push(je(`
|
11
|
+
`,we)),l.push(pe(Ie(d)))):(l.push(He),l.push(Ie(d)));else for(T=!he(K(l).toString()),P=je(" ",Dn(K([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,P],l.push(Ie(d,P))):l=[l,pe(Ie(d))],o!==c-1&&!he(K(l).toString())&&(l=[l,`
|
12
|
+
`]);return l}function Xe(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 Dr(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 jn(n,l){var o,c,d;return o=n[A.verbatim],typeof o=="string"?c=le(Dr(o),r.Sequence,l):(c=Dr(o.content),d=o.precedence!=null?o.precedence:r.Sequence,c=le(c,d,l)),K(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(K(l).toString());return n.type===t.BlockStatement&&(!A.comment||!n.leadingComments)&&!o?[l,v]:o?[l,f]:[l,C,f]};function ge(n){return K(n.name,n)}function rt(n,l){return n.async?"async"+(l?fe():v):""}function St(n){var l=n.generator&&!A.moz.starlessGenerator;return l?"*"+v:""}function Vr(n){var l=n.value,o="";return l.async&&(o+=rt(l,!n.computed)),l.generator&&(o+=St(l)?"*":""),o}oe.prototype.generatePattern=function(n,l,o){return n.type===t.Identifier?ge(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=[rt(n,!0),ge(n.params[0])];else{for(c=n.type===t.ArrowFunctionExpression?[rt(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(ge(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,Pn)),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],xt))}):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|=D),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&Q?"":";"},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,P,F,J;for(J=ee,l&ue&&(J|=ie),T=0,P=n.body.length;T<P;++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||Xe(n.range[0],n.body[0].range[0],d)),T>0&&!n.body[T-1].trailingComments&&!n.body[T].leadingComments&&Xe(n.body[T-1].range[1],n.body[T].range[0],d)),T===P-1&&(J|=Q),n.body[T].leadingComments&&k?F=w.generateStatement(n.body[T],J):F=pe(w.generateStatement(n.body[T],J)),d.push(F),he(K(F).toString())||k&&T<P-1&&n.body[T+1].leadingComments||d.push(C),k&&T===P-1&&(n.body[T].trailingComments||Xe(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(K(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,Ae)),o},DirectiveStatement:function(n,l){return A.raw&&n.raw?n.raw+this.semicolon(l):Mn(n.directive)+this.semicolon(l)},DoWhileStatement:function(n,l){var o=U("do",this.maybeBlock(n.body,ee));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,ee)),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&Q?Ae:ee,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&Q?Ae:ee,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,P;for(o.push(C),T=0,P=n.specifiers.length;T<P;++T)o.push(w),o.push(d.generateExpression(n.specifiers[T],r.Sequence,M)),T+1<P&&o.push(","+C)}),he(K(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(P){var F;return P.slice(0,5)!=="class"?!1:(F=P.charCodeAt(5),F===123||u.code.isWhiteSpace(F)||u.code.isLineTerminator(F))}function w(P){var F;return P.slice(0,8)!=="function"?!1:(F=P.charCodeAt(8),F===40||u.code.isWhiteSpace(F)||F===42||u.code.isLineTerminator(F))}function T(P){var F,J,ce;if(P.slice(0,5)!=="async"||!u.code.isWhiteSpace(P.charCodeAt(5)))return!1;for(J=6,ce=P.length;J<ce&&u.code.isWhiteSpace(P.charCodeAt(J));++J);return J===ce||P.slice(J,J+8)!=="function"?!1:(F=P.charCodeAt(J+8),F===40||u.code.isWhiteSpace(F)||F===42||u.code.isLineTerminator(F))}return o=[this.generateExpression(n.expression,r.Sequence,M)],c=K(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,P;for(o.push(C),T=c,P=n.specifiers.length;T<P;++T)o.push(w),o.push(d.generateExpression(n.specifiers[T],r.Sequence,M)),T+1<P&&o.push(","+C)}),he(K(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&D?M:Te;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,P=this;o=[n.kind],T=l&D?ee:xt;function F(){for(w=n.declarations[0],A.comment&&w.leadingComments?(o.push(`
|
16
|
+
`),o.push(pe(P.generateStatement(w,T)))):(o.push(fe()),o.push(P.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(P.generateStatement(w,T)))):(o.push(","+v),o.push(P.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,ee)],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],ee)),(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],ee)),(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],ee)),(n.finalizer||c+1!==d)&&(o=this.maybeBlockSuffix(n.handler[c].body,o));else o=U(o,this.generateStatement(n.handler,ee)),n.finalizer&&(o=this.maybeBlockSuffix(n.handler.body,o))}return n.finalizer&&(o=U(o,["finally",this.maybeBlock(n.finalizer,ee)])),o},SwitchStatement:function(n,l){var o,c,d,w,T,P=this;if(ae(function(){o=["switch"+v+"(",P.generateExpression(n.discriminant,r.Sequence,M),")"+v+"{"+C]}),n.cases)for(T=ee,d=0,w=n.cases.length;d<w;++d)d===w-1&&(T|=Q),c=pe(this.generateStatement(n.cases[d],T)),o.push(c),he(K(c).toString())||o.push(C);return o.push(pe("}")),o},SwitchCase:function(n,l){var o,c,d,w,T,P=this;return ae(function(){for(n.test?o=[U("case",P.generateExpression(n.test,r.Sequence,M)),":"]:o=["default:"],d=0,w=n.consequent.length,w&&n.consequent[0].type===t.BlockStatement&&(c=P.maybeBlock(n.consequent[0],ee),o.push(c),d=1),d!==w&&!he(K(o).toString())&&o.push(C),T=ee;d<w;++d)d===w-1&&l&Q&&(T|=Q),c=pe(P.generateStatement(n.consequent[d],T)),o.push(c),d+1!==w&&!he(K(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&Q,c=ee,d&&(c|=Q),n.alternate?(o.push(this.maybeBlock(n.consequent,ee)),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,xt)):(o.push(c.generateExpression(n.init,r.Sequence,Te)),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&Q?Ae:ee)),o},ForInStatement:function(n,l){return this.generateIterationForStatement("in",n,l&Q?Ae:ee)},ForOfStatement:function(n,l){return this.generateIterationForStatement("of",n,l&Q?Ae:ee)},LabeledStatement:function(n,l){return[n.label.name+":",this.maybeBlock(n.body,l&Q?Ae:ee)]},Program:function(n,l){var o,c,d,w,T;for(w=n.body.length,o=[L&&w>0?`
|
17
|
+
`:""],T=In,d=0;d<w;++d)!L&&d===w-1&&(T|=Q),k&&(d===0&&(n.body[0].leadingComments||Xe(n.range[0],n.body[d].range[0],o)),d>0&&!n.body[d-1].trailingComments&&!n.body[d].leadingComments&&Xe(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(K(c).toString())&&(k&&n.body[d+1].leadingComments||o.push(C)),k&&d===w-1&&(n.body[d].trailingComments||Xe(n.body[d].range[1],n.range[1],o));return o},FunctionDeclaration:function(n,l){return[rt(n,!0),"function",St(n)||fe(),n.id?ge(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&Q?Ae:ee)),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&Q?Ae:ee)),o}},Rr(oe.prototype,oe.Statement),oe.Expression={SequenceExpression:function(n,l,o){var c,d,w;for(r.Sequence<l&&(o|=D),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|=D),le([this.generateExpression(n.test,r.Coalesce,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 n.operator==="??"&&(o|=xe),this.BinaryExpression(n,l,o)},BinaryExpression:function(n,l,o){var c,d,w,T,P,F;return T=i[n.operator],d=n.operator==="**"?r.Postfix:T,w=n.operator==="**"?T:T+1,T<l&&(o|=D),P=this.generateExpression(n.left,d,o),F=P.toString(),F.charCodeAt(F.length-1)===47&&u.code.isIdentifierPartES5(n.operator.charCodeAt(0))?c=[P,fe(),n.operator]:c=U(P,n.operator),P=this.generateExpression(n.right,w,o),n.operator==="/"&&P.toString().charAt(0)==="/"||n.operator.slice(-1)==="<"&&P.toString().slice(0,3)==="!--"?(c.push(fe()),c.push(P)):c=U(c,P),n.operator==="in"&&!(o&D)?["(",c,")"]:(n.operator==="||"||n.operator==="&&")&&o&xe?["(",c,")"]:le(c,T,l)},CallExpression:function(n,l,o){var c,d,w;for(c=[this.generateExpression(n.callee,r.Call,Je)],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&H?le(c,r.Call,l):["(",c,")"]},ChainExpression:function(n,l,o){r.OptionalChaining<l&&(o|=H);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,P;if(d=n.arguments.length,P=o&ne&&!I&&d===0?Fe:Ve,c=U("new",this.generateExpression(n.callee,r.New,P)),!(o&ne)||I||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&H?Je:Ve)],n.computed?(n.optional&&c.push("?."),c.push("["),c.push(this.generateExpression(n.property,r.Sequence,o&H?M:Fe)),c.push("]")):(!n.optional&&n.object.type===t.Literal&&typeof n.object.value=="number"&&(d=K(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(ge(n.property))),le(c,r.Member,l)},MetaProperty:function(n,l,o){var c;return c=[],c.push(typeof n.meta=="string"?n.meta:ge(n.meta)),c.push("."),c.push(typeof n.property=="string"?n.property:ge(n.property)),le(c,r.Member,l)},UnaryExpression:function(n,l,o){var c,d,w,T,P;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=K(c).toString(),P=T.charCodeAt(T.length-1),w=d.toString().charCodeAt(0),((P===43||P===45)&&P===w||u.code.isIdentifierPartES5(P)&&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=[rt(n,!0),"function"];return n.id?(c.push(St(n)||fe()),c.push(ge(n.id))):c.push(St(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(P){var F,J;for(F=0,J=n.elements.length;F<J;++F)n.elements[F]?(d.push(w?P:""),d.push(T.generateExpression(n.elements[F],r.Assignment,M))):(w&&d.push(P),F+1===J&&d.push(",")),F+1<J&&d.push(","+(w?C:v))}),w&&!he(K(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,Ae)),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=[Vr(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?[Vr(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&&!Nn(K(w).toString())?["{",v,w,v,"}"]:(ae(function(P){var F,J;if(d=["{",C,P,w],c)for(d.push(","+C),F=1,J=n.properties.length;F<J;++F)d.push(P),d.push(T.generateExpression(n.properties[F],r.Sequence,M)),F+1<J&&d.push(","+C)}),he(K(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,P,F=this;if(!n.properties.length)return"{}";if(T=!1,n.properties.length===1)P=n.properties[0],P.type===t.Property&&P.value.type!==t.Identifier&&(T=!0);else for(d=0,w=n.properties.length;d<w;++d)if(P=n.properties[d],P.type===t.Property&&!P.shorthand){T=!0;break}return c=["{",T?C:""],ae(function(J){var ce,qe;for(ce=0,qe=n.properties.length;ce<qe;++ce)c.push(T?J:""),c.push(F.generateExpression(n.properties[ce],r.Sequence,M)),ce+1<qe&&c.push(","+(T?C:v))}),T&&!he(K(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 ge(n)},ImportDefaultSpecifier:function(n,l,o){return ge(n.id||n.local)},ImportNamespaceSpecifier:function(n,l,o){var c=["*"],d=n.id||n.local;return d&&c.push(v+"as"+fe()+ge(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()+ge(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()+ge(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:typeof n.value=="bigint"?n.value.toString()+"n":n.bigint?n.bigint+"n":n.value===null?"null":typeof n.value=="string"?Bn(n.value):typeof n.value=="number"?Ln(n.value):typeof n.value=="boolean"?n.value?"true":"false":On(n.value)},GeneratorExpression:function(n,l,o){return this.ComprehensionExpression(n,l,o)},ComprehensionExpression:function(n,l,o){var c,d,w,T,P=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=P.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],xt)]: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=Je;o&H||(c=Ve);var d=[this.generateExpression(n.tag,r.Call,c),this.generateExpression(n.quasi,r.Primary,vt)];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)}},Rr(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)?jn(n,l):(c=this[d](n,l,o),A.comment&&(c=Br(n,c)),K(c,n))},oe.prototype.generateStatement=function(n,l){var o,c;return o=this[n.type](n,l),A.comment&&(o=Br(n,o)),c=K(o).toString(),n.type===t.Program&&!L&&C===""&&c.charAt(c.length-1)===`
|
18
|
+
`&&(o=x?K(o).replaceRight(/\s+$/,""):c.replace(/\s+$/,"")),K(o,n)};function qn(n){var l;if(l=new oe,q(n))return l.generateStatement(n,ee);if(G(n))return l.generateExpression(n,r.Sequence,M);throw new Error("Unknown node type: "+n.type)}function Un(n,l){var o=Or(),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=bt(o,l),p=l.format.indent.style,typeof l.base=="string"?f=l.base:f=je(p,l.format.indent.base)):(l=o,p=l.format.indent.style,f=je(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=""),I=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=lt.sourceMap.SourceNode:s=cs().SourceNode),c=qn(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)}B={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},R=Or().format,e.version=ws.version,e.generate=Un,e.attachComments=a.attachComments,e.Precedence=bt({},r),e.browser=!1,e.FORMAT_MINIFY=B,e.FORMAT_DEFAULTS=R})()})(_i);var sr={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"},ar="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",ks={5:ar,"5module":ar+" export import",6:ar+" const class extends export import super"},Ts=/^in(stanceof)?$/,gr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ki="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Is=new RegExp("["+gr+"]"),Ps=new RegExp("["+gr+ki+"]");gr=ki=null;var Ti=[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],Ns=[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 ur(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 Le(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Is.test(String.fromCharCode(e)):t===!1?!1:ur(e,Ti)}function Ge(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&&Ps.test(String.fromCharCode(e)):t===!1?!1:ur(e,Ti)||ur(e,Ns)}var Y=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 be(e,t){return new Y(e,{beforeExpr:!0,binop:t})}var Se={beforeExpr:!0},ye={startsExpr:!0},Lt={};function X(e,t){return t===void 0&&(t={}),t.keyword=e,Lt[e]=new Y(e,t)}var h={num:new Y("num",ye),regexp:new Y("regexp",ye),string:new Y("string",ye),name:new Y("name",ye),eof:new Y("eof"),bracketL:new Y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Y("]"),braceL:new Y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Y("}"),parenL:new Y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Y(")"),comma:new Y(",",Se),semi:new Y(";",Se),colon:new Y(":",Se),dot:new Y("."),question:new Y("?",Se),questionDot:new Y("?."),arrow:new Y("=>",Se),template:new Y("template"),invalidTemplate:new Y("invalidTemplate"),ellipsis:new Y("...",Se),backQuote:new Y("`",ye),dollarBraceL:new Y("${",{beforeExpr:!0,startsExpr:!0}),eq:new Y("=",{beforeExpr:!0,isAssign:!0}),assign:new Y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:be("||",1),logicalAND:be("&&",2),bitwiseOR:be("|",3),bitwiseXOR:be("^",4),bitwiseAND:be("&",5),equality:be("==/!=/===/!==",6),relational:be("</>/<=/>=",7),bitShift:be("<</>>/>>>",8),plusMin:new Y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:be("%",10),star:be("*",10),slash:be("/",10),starstar:new Y("**",{beforeExpr:!0}),coalesce:be("??",1),_break:X("break"),_case:X("case",Se),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",Se),_do:X("do",{isLoop:!0,beforeExpr:!0}),_else:X("else",Se),_finally:X("finally"),_for:X("for",{isLoop:!0}),_function:X("function",ye),_if:X("if"),_return:X("return",Se),_switch:X("switch"),_throw:X("throw",Se),_try:X("try"),_var:X("var"),_const:X("const"),_while:X("while",{isLoop:!0}),_with:X("with"),_new:X("new",{beforeExpr:!0,startsExpr:!0}),_this:X("this",ye),_super:X("super",ye),_class:X("class",ye),_extends:X("extends",Se),_export:X("export"),_import:X("import",ye),_null:X("null",ye),_true:X("true",ye),_false:X("false",ye),_in:X("in",{beforeExpr:!0,binop:7}),_instanceof:X("instanceof",{beforeExpr:!0,binop:7}),_typeof:X("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:X("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:X("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ve=/\r\n?|\n|\u2028|\u2029/,Qe=new RegExp(ve.source,"g");function et(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var yr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ii=Object.prototype,Ls=Ii.hasOwnProperty,Os=Ii.toString;function Ot(e,t){return Ls.call(e,t)}var ii=Array.isArray||function(e){return Os.call(e)==="[object Array]"};function Ue(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 dt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function vr(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 wt={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 Rs(e){var t={};for(var r in wt)t[r]=e&&Ot(e,r)?e[r]:wt[r];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),ii(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return ii(t.onComment)&&(t.onComment=Fs(t,t.onComment)),t}function Fs(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 dt(this,u,f)),e.ranges&&(p.range=[s,a]),t.push(p)}}var ct=1,mt=2,xr=ct|mt,Pi=4,Ni=8,Li=16,Oi=32,Ri=64,Fi=128;function br(e,t){return mt|(e?Pi:0)|(t?Ni:0)}var ni=0,Sr=1,Ne=2,Mi=3,Bi=4,Di=5,re=function(t,r,i){this.options=t=Rs(t),this.sourceFile=t.sourceFile,this.keywords=Ue(ks[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";if(t.allowReserved!==!0){for(var a=t.ecmaVersion;!(s=sr[a]);a--);t.sourceType==="module"&&(s+=" await")}this.reservedWords=Ue(s);var u=(s?s+" ":"")+sr.strict;this.reservedWordsStrict=Ue(u),this.reservedWordsStrictBind=Ue(u+" "+sr.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(ve).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(ct),this.regexpState=null},We={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)};We.inFunction.get=function(){return(this.currentVarScope().flags&mt)>0};We.inGenerator.get=function(){return(this.currentVarScope().flags&Ni)>0};We.inAsync.get=function(){return(this.currentVarScope().flags&Pi)>0};We.allowSuper.get=function(){return(this.currentThisScope().flags&Ri)>0};We.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Fi)>0};We.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};re.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&mt)>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,We);var me=re.prototype,Ms=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;me.strictDirective=function(e){for(;;){Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length;var t=Ms.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Ee.lastIndex=e+t[0].length;var r=Ee.exec(this.input),i=r.index+r[0].length,s=this.input.charAt(i);return s===";"||s==="}"||ve.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ee.lastIndex=e,e+=Ee.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||ve.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 Rt(){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 _r={kind:"loop"},Bs={kind:"switch"};z.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ee.lastIndex=this.pos;var t=Ee.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(Le(i,!0)){for(var s=r+1;Ge(this.input.charCodeAt(s),!0);)++s;var a=this.input.slice(r,s);if(!Ts.test(a))return!0}return!1};z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ee.lastIndex=this.pos;var e=Ee.exec(this.input),t=this.pos+e[0].length;return!ve.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!Ge(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){Ee.lastIndex=this.pos;var u=Ee.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(_r),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(_r),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 Rt,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,ot|(r?0:lr),!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(Bs),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(),ve.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 Ds=[];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?Oi:0),this.checkLVal(t.param,r?Bi:Ne),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(_r),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"?Sr:Ne,!1)};var ot=1,lr=2,Vi=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&lr&&this.unexpected(),e.generator=this.eat(h.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ot&&(e.id=t&Vi&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&lr)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Sr:Ne:Mi));var s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(br(e.async,e.generator)),t&ot||(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&ot?"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,Ne,!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,ot|Vi,!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&&(Ot(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=Ds,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,Ne),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,Ne),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,Ne),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 Oe=re.prototype;Oe.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};Oe.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};Oe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Oe.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")};Oe.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()};Oe.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};Oe.parseBindingListItem=function(e){return e};Oe.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")};Oe.checkLVal=function(e,t,r){switch(t===void 0&&(t=ni),e.type){case"Identifier":t===Ne&&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&&(Ot(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==ni&&t!==Di&&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 W=re.prototype;W.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}};W.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};W.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 Rt,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};W.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};W.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)};W.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};W.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")};W.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};W.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};W.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}};W.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 Rt,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 I=this.startNodeAt(t,r);I.tag=e,I.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(I,"TaggedTemplateExpression")}return e};W.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()}};W.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()}};W.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")};W.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")};W.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")};W.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};W.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 Rt,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 I=this.startNodeAt(t,r);return I.expression=i,this.finishNode(I,"ParenthesizedExpression")}else return i};W.parseParenItem=function(e){return e};W.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Vs=[];W.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=Vs,this.finishNode(e,"NewExpression")};W.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")};W.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")};W.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)&&!ve.test(this.input.slice(this.lastTokEnd,this.start))};W.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")};W.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")};W.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()};W.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")};W.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};W.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(br(t,i.generator)|Ri|(r?Fi: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")};W.parseArrowExpression=function(e,t,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(br(r,!1)|Li),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")};W.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,Di),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};W.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};W.checkParams=function(e,t){for(var r={},i=0,s=e.params;i<s.length;i+=1){var a=s[i];this.checkLVal(a,Sr,t?null:r)}};W.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};W.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"))}};W.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};W.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")};W.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 kt=re.prototype;kt.raise=function(e,t){var r=vr(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};kt.raiseRecoverable=kt.raise;kt.curPosition=function(){if(this.options.locations)return new Ye(this.curLine,this.pos-this.lineStart)};var De=re.prototype,js=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};De.enterScope=function(e){this.scopeStack.push(new js(e))};De.exitScope=function(){this.scopeStack.pop()};De.treatFunctionsAsVarInScope=function(e){return e.flags&mt||!this.inModule&&e.flags&ct};De.declareName=function(e,t,r){var i=!1;if(t===Ne){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&ct&&delete this.undefinedExports[e]}else if(t===Bi){var a=this.currentScope();a.lexical.push(e)}else if(t===Mi){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&Oi&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags&ct&&delete this.undefinedExports[e],p.flags&xr)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};De.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};De.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};De.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr)return t}};De.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr&&!(t.flags&Li))return t}};var Ft=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new dt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Mt=re.prototype;Mt.startNode=function(){return new Ft(this,this.start,this.startLoc)};Mt.startNodeAt=function(e,t){return new Ft(this,e,t)};function ji(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}Mt.finishNode=function(e,t){return ji.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Mt.finishNodeAt=function(e,t,r,i){return ji.call(this,e,t,r,i)};var _e=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 _e("{",!1),b_expr:new _e("{",!0),b_tmpl:new _e("${",!1),p_stat:new _e("(",!1),p_expr:new _e("(",!0),q_tmpl:new _e("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new _e("function",!1),f_expr:new _e("function",!0),f_expr_gen:new _e("function",!0,!1,null,!0),f_gen:new _e("function",!1,!1,null,!0)},Bt=re.prototype;Bt.initialContext=function(){return[se.b_stat]};Bt.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?ve.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};Bt.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};Bt.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&&ve.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 qi="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",Ui=qi+" Extended_Pictographic",qs=Ui,Us={9:qi,10:Ui,11:qs},si="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",Gi="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",zi=Gi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Gs=zi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",zs={9:Gi,10:zi,11:Gs},Wi={};function Er(e){var t=Wi[e]={binary:Ue(Us[e]+" "+si),nonBinary:{General_Category:Ue(si),Script:Ue(zs[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}Er(9);Er(10);Er(11);var j=re.prototype,Re=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Wi[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=[]};Re.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};Re.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Re.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};Re.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};Re.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Re.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Re.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Re.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};function Tt(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 $i(t)?(e.lastIntValue=t,e.advance(),!0):!1};function $i(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&&!$i(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+=Tt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Tt(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),Ws(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Ws(e){return Le(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),$s(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function $s(e){return Ge(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&&!Dt(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 Ji(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ji(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)&&Js(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function Js(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(Xs(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 Xs(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){Ot(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="";Xi(t=e.current());)e.lastStringValue+=Tt(t),e.advance();return e.lastStringValue!==""};function Xi(e){return Ji(e)||e===95}j.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Hs(t=e.current());)e.lastStringValue+=Tt(t),e.advance();return e.lastStringValue!==""};function Hs(e){return Xi(e)||Dt(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||Yi(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 Dt(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;Dt(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57}j.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Hi(r=e.current());)e.lastIntValue=16*e.lastIntValue+Qi(r),e.advance();return e.pos!==t};function Hi(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qi(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 Yi(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Yi(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(!Hi(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Qi(s),e.advance()}return!0};var Vt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new dt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},$=re.prototype;$.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 Vt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};$.getToken=function(){return this.next(),new Vt(this)};typeof Symbol<"u"&&($[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===h.eof,value:t}}}});$.curContext=function(){return this.context[this.context.length-1]};$.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())};$.readToken=function(e){return Le(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};$.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};$.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())};$.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&&!et(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())};$.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&&yr.test(String.fromCharCode(e)))++this.pos;else break e}}};$.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)};$.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))};$.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)};$.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)};$.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)};$.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)};$.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||ve.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)};$.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))};$.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)};$.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)};$.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 '"+Cr(e)+"'")};$.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};$.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(ve.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 Re(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})};$.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 Qs(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Ki(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}$.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=Ki(this.input.slice(t,this.pos)),++this.pos):Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,r)};$.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=Ki(this.input.slice(t,this.pos));return++this.pos,Le(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")),Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=Qs(this.input.slice(t,this.pos),r);return this.finishToken(h.num,a)};$.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 Cr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}$.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):(et(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 Zi={};$.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Zi)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};$.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Zi;this.raise(e,t)};$.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(et(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}};$.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")};$.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 Cr(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 et(t)?"":String.fromCharCode(t)}};$.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};$.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(Ge(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?Le:Ge)(u,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Cr(u),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};$.readWord=function(){var e=this.readWord1(),t=h.name;return this.keywords.test(e)&&(t=Lt[e]),this.finishToken(t,e)};var en="7.4.1";re.acorn={Parser:re,version:en,defaultOptions:wt,Position:Ye,SourceLocation:dt,getLineInfo:vr,Node:Ft,TokenType:Y,tokTypes:h,keywordTypes:Lt,TokContext:_e,tokContexts:se,isIdentifierChar:Ge,isIdentifierStart:Le,Token:Vt,isNewLine:et,lineBreak:ve,lineBreakG:Qe,nonASCIIwhitespace:yr};function Ys(e,t){return re.parse(e,t)}function Ks(e,t,r){return re.parseExpressionAt(e,t,r)}function Zs(e,t){return re.tokenizer(e,t)}const ea=Object.freeze(Object.defineProperty({__proto__:null,Node:Ft,Parser:re,Position:Ye,SourceLocation:dt,TokContext:_e,Token:Vt,TokenType:Y,defaultOptions:wt,getLineInfo:vr,isIdentifierChar:Ge,isIdentifierStart:Le,isNewLine:et,keywordTypes:Lt,lineBreak:ve,lineBreakG:Qe,nonASCIIwhitespace:yr,parse:Ys,parseExpressionAt:Ks,tokContexts:se,tokTypes:h,tokenizer:Zs,version:en},Symbol.toStringTag,{value:"Module"}));var tn={exports:{}},ta={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 ai=Zn(ea);(function(e){const t=ta,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),I={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:I,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(ai).tokTypes},configurable:!0,enumerable:!0});function f(p,y){const g=y.acorn||ai,b=a(g),E=g.tokTypes,S=b.tokTypes,C=g.tokContexts,v=b.tokContexts.tc_oTag,I=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 B=++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=B,"&")}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=[],B=this.jsx_parseOpeningElementAt(m,x),R=null;if(!B.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(B.name)&&this.raise(R.start,"Expected corresponding JSX closing tag for <"+u(B.name)+">")}let G=B.name?"Element":"Fragment";return _["opening"+G]=B,_["closing"+G]=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"+G)}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===I){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(I),this.exprAllowed=!1;else return super.updateContext(m)}}}})(tn);var ra=tn.exports;const ia=Nt(ra);function rn(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 na(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 Ar(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=Ar;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=Ar;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=Ar;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 sa=bi,aa=zn,oa=Si,ua="[object Object]",la=Function.prototype,ca=Object.prototype,nn=la.toString,ha=ca.hasOwnProperty,fa=nn.call(Object);function pa(e){if(!oa(e)||sa(e)!=ua)return!1;var t=aa(e);if(t===null)return!0;var r=ha.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nn.call(r)==fa}var da=pa;const ma=Nt(da);var ga=bi,ya=Wn,va=Si,xa="[object String]";function ba(e){return typeof e=="string"||!ya(e)&&va(e)&&ga(e)==xa}var Sa=ba;const _a=Nt(Sa);/*!
|
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 oi(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ea(e){var t,r;return oi(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(oi(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var sn={},It=lt&<.__assign||function(){return It=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},It.apply(this,arguments)},Ca=lt&<.__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(sn,"__esModule",{value:!0});var st=[];function Aa(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function wa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ka(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function At(e,t,r){r===void 0&&(r="");var i={indent:" ",singleQuotes:!0},s=It(It({},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(st.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||wa(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";st.push(e);var f="["+a.newLine+e.map(function(y,g){var b=e.length-1===g?a.newLine:","+a.newLineOrSpace,E=At(y,s,r+s.indent);return s.transform&&(E=s.transform(e,g,E)),a.indent+E+b}).join("")+a.pad+"]";return st.pop(),u(f)}if(Aa(e)){var p=Ca(Object.keys(e),ka(e));if(s.filter&&(p=p.filter(function(g){return s.filter&&s.filter(e,g)})),p.length===0)return"{}";st.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:At(g,s),I=At(e[g],s,r+s.indent);return s.transform&&(I=s.transform(e,g,I)),a.indent+String(v)+": "+I+E}).join("")+a.pad+"}";return st.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 Ta=sn.prettyPrint=At,an={exports:{}},Z={};/**
|
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 wr=Symbol.for("react.element"),kr=Symbol.for("react.portal"),jt=Symbol.for("react.fragment"),qt=Symbol.for("react.strict_mode"),Ut=Symbol.for("react.profiler"),Gt=Symbol.for("react.provider"),zt=Symbol.for("react.context"),Ia=Symbol.for("react.server_context"),Wt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),Jt=Symbol.for("react.suspense_list"),Xt=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Pa=Symbol.for("react.offscreen"),on;on=Symbol.for("react.module.reference");function Ce(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wr:switch(e=e.type,e){case jt:case Ut:case qt:case $t:case Jt:return e;default:switch(e=e&&e.$$typeof,e){case Ia:case zt:case Wt:case Ht:case Xt:case Gt:return e;default:return t}}case kr:return t}}}Z.ContextConsumer=zt;Z.ContextProvider=Gt;Z.Element=wr;Z.ForwardRef=Wt;Z.Fragment=jt;Z.Lazy=Ht;Z.Memo=Xt;Z.Portal=kr;Z.Profiler=Ut;Z.StrictMode=qt;Z.Suspense=$t;Z.SuspenseList=Jt;Z.isAsyncMode=function(){return!1};Z.isConcurrentMode=function(){return!1};Z.isContextConsumer=function(e){return Ce(e)===zt};Z.isContextProvider=function(e){return Ce(e)===Gt};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr};Z.isForwardRef=function(e){return Ce(e)===Wt};Z.isFragment=function(e){return Ce(e)===jt};Z.isLazy=function(e){return Ce(e)===Ht};Z.isMemo=function(e){return Ce(e)===Xt};Z.isPortal=function(e){return Ce(e)===kr};Z.isProfiler=function(e){return Ce(e)===Ut};Z.isStrictMode=function(e){return Ce(e)===qt};Z.isSuspense=function(e){return Ce(e)===$t};Z.isSuspenseList=function(e){return Ce(e)===Jt};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jt||e===Ut||e===qt||e===$t||e===Jt||e===Pa||typeof e=="object"&&e!==null&&(e.$$typeof===Ht||e.$$typeof===Xt||e.$$typeof===Gt||e.$$typeof===zt||e.$$typeof===Wt||e.$$typeof===on||e.getModuleId!==void 0)};Z.typeOf=Ce;an.exports=Z;var ke=an.exports,Pe=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}function ui(e){return Na(e)||La(e)||Oa(e)||Ra()}function Na(e){if(Array.isArray(e))return cr(e)}function La(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oa(e,t){if(e){if(typeof e=="string")return cr(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 cr(e,t)}}function cr(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 Ra(){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 hr(e,t){return e===null||ht(e)!=="object"||e instanceof Date||e instanceof RegExp||ze.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(r){return hr(r,t)}):Object.keys(e).sort().reduce(function(r,i){return i==="_owner"||(i==="current"||t.has(e[i])?r[i]="[Circular]":r[i]=hr(e[i],t)),r},{}))}function Fa(e){return hr(e,new WeakSet)}var un=function(t){return{type:"string",value:t}},Ma=function(t){return{type:"number",value:t}},Ba=function(t,r,i,s){return{type:"ReactElement",displayName:t,props:r,defaultProps:i,childrens:s}},Da=function(t,r){return{type:"ReactFragment",key:t,childrens:r}},Va=!!ze.Fragment,ln=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},ja=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===ke.Memo:return e(t.type);case t.$$typeof===ke.ForwardRef:return e(t.render);default:return ln(t)}},qa=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:ln(t.type);case ke.isForwardRef(t):case ke.isMemo(t):return ja(t.type);case ke.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case ke.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case ke.isLazy(t):return"Lazy";case ke.isProfiler(t):return"Profiler";case ke.isStrictMode(t):return"StrictMode";case ke.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},li=function(t,r){return r!=="children"},Ua=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},ci=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},Tr=function e(t,r){var i=r.displayName,s=i===void 0?qa:i;if(typeof t=="string")return un(t);if(typeof t=="number")return Ma(t);if(!at.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(ht(t),"`"));var a=s(t),u=ci(t.props,li);t.ref!==null&&(u.ref=t.ref);var f=t.key;typeof f=="string"&&f.search(/^\./)&&(u.key=f);var p=ci(t.type.defaultProps||{},li),y=at.Children.toArray(t.props.children).filter(Ua).map(function(g){return e(g,r)});return Va&&t.type===ze.Fragment?Da(f,y):Ba(a,u,p,y)};function Ga(){}var za=function(t){return t.toString().split(`
|
43
|
+
`).map(function(r){return r.trim()}).join("")},hi=za,cn=function(e,t){var r=t.functionValue,i=r===void 0?hi:r,s=t.showFunctions;return i(!s&&i===hi?Ga:e)},Wa=function(e,t,r,i){var s=Fa(e),a=Ta(s,{transform:function(f,p,y){var g=f[p];return g&&ze.isValidElement(g)?Qt(Tr(g,i),!0,r,i):typeof g=="function"?cn(g,i):y}});return t?a.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):a.replace(/\t/g,Pe(1,i.tabStop)).replace(/\n([^$])/g,`
|
44
|
+
`.concat(Pe(r+1,i.tabStop),"$1"))},$a=function(t){return t.replace(/"/g,""")},Ja=function(t,r,i,s){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat($a(t),'"');if(ht(t)==="symbol"){var a=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return a?"{Symbol('".concat(a,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(cn(t,s),"}"):ze.isValidElement(t)?"{".concat(Qt(Tr(t,s),!0,i,s),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Ea(t)||Array.isArray(t)?"{".concat(Wa(t,r,i,s),"}"):"{".concat(String(t),"}")},Xa=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=Ja(p,a,u,f),E=" ",S=`
|
45
|
+
`.concat(Pe(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}},Ha=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(un(String(i.value)+String(t.value))):(i&&r.push(i),r.push(t)),r},Qa=function(t){return["key","ref"].includes(t)},Ya=function(e){return function(t){var r=t.includes("key"),i=t.includes("ref"),s=t.filter(function(u){return!Qa(u)}),a=ui(e?s.sort():s);return i&&a.unshift("ref"),r&&a.unshift("key"),a}};function Ka(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var Za=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(Pe(s,u)).concat(f)}).join(`
|
48
|
+
`):r},eo=function(t,r,i){return function(s){return Za(s,Qt(s,t,r,i),t,r,i)}},to=function(t,r){return function(i){var s=Object.keys(t).includes(i);return!s||s&&t[i]!==r[i]}},hn=function(t,r,i,s,a){return a?Pe(i,s).length+r.length>a:t.length>1},ro=function(t,r,i,s,a,u,f){return(hn(t,r,a,u,f)||i)&&!s},fn=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,I=i.tabStop,O="<".concat(u),L=O,V=O,A=!1,m=[],x=Ka(y,E);Object.keys(y).filter(x).filter(to(b,y)).forEach(function(B){return m.push(B)}),Object.keys(b).filter(x).filter(function(){return C}).filter(function(B){return!m.includes(B)}).forEach(function(B){return m.push(B)});var _=Ya(v)(m);if(_.forEach(function(B){var R=Xa(B,Object.keys(y).includes(B),y[B],Object.keys(b).includes(B),b[B],t,r,i),G=R.attributeFormattedInline,q=R.attributeFormattedMultiline,D=R.isMultilineAttribute;D&&(A=!0),L+=G,V+=q}),V+=`
|
49
|
+
`.concat(Pe(r,I)),ro(_,L,A,t,r,I,S)?O=V:O=L,f&&f.length>0){var k=r+1;O+=">",t||(O+=`
|
50
|
+
`,O+=Pe(k,I)),O+=f.reduce(Ha,[]).map(eo(t,k,i)).join(t?"":`
|
51
|
+
`.concat(Pe(k,I))),t||(O+=`
|
52
|
+
`,O+=Pe(k-1,I)),O+="</".concat(u,">")}else hn(_,L,r,I,S)||(O+=" "),O+="/>";return O},io="",fi="React.Fragment",no=function(t,r,i){var s={};return r&&(s={key:r}),{type:"ReactElement",displayName:t,props:s,defaultProps:{},childrens:i}},so=function(t){var r=t.key;return!!r},ao=function(t){var r=t.childrens;return r.length===0},oo=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?ao(e)||so(e)?p=fi:p=io:p=fi,fn(no(p,a,u),t,r,i)},uo=["<",">","{","}"],lo=function(t){return uo.some(function(r){return t.includes(r)})},co=function(t){return lo(t)?"{`".concat(t,"`}"):t},ho=function(t){var r=t;return r.endsWith(" ")&&(r=r.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),r.startsWith(" ")&&(r=r.replace(/^(\s+)(.*)$/,"{'$1'}$2")),r},Qt=function(e,t,r,i){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(ho(co(String(e.value)))):"";if(e.type==="ReactElement")return fn(e,t,r,i);if(e.type==="ReactFragment")return oo(e,t,r,i);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},fo=function(e,t){return Qt(e,!1,0,t)},ut=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,I=r.sortProps,O=I===void 0?!0:I,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 fo(Tr(t,A),A)};const{defaultDecorateStory:po,addons:mo,useEffect:go}=__STORYBOOK_MODULE_PREVIEW_API__,{logger:Ct}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function yo(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 vo(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 xo(e){return e.replace(/,/g,`,\r
|
53
|
+
`)}var fr="custom",gt="object",Ir="array",bo="class",Ke="func",tt="element";function Pr(e){return is.includes(e.toLowerCase())}var pn={format:{indent:{style:" "},semicolons:!1}},So={...pn,format:{newline:""}},_o={...pn};function Me(e,t=!1){return _i.generate(e,t?So:_o)}function pr(e,t=!1){return t?Eo(e):Me(e)}function Eo(e){let t=Me(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function pi(e,t=!1){return t?Ao(e):Co(e)}function Co(e){let t=Me(e);return t.endsWith(" }]")&&(t=es(t)),t}function Ao(e){let t=Me(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var dn=e=>e.$$typeof===Symbol.for("react.memo"),wo=e=>e.$$typeof===Symbol.for("react.forward_ref"),Nr={...N,JSXElement:()=>{}},ko=re.extend(ia());function yt(e){return e!=null?e.name:null}function di(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function mn(e){let t=[];return na(e,{ObjectExpression(r,i){t.push(di(i).length)},ArrayExpression(r,i){t.push(di(i).length)}},Nr),Math.max(...t)}function To(e){return{inferredType:{type:"Identifier",identifier:yt(e)},ast:e}}function Io(e){return{inferredType:{type:"Literal"},ast:e}}function Po(e){let t;rn(e.body,{JSXElement(s){t=s}},Nr);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},i=yt(e.id);return i!=null&&(r.identifier=i),{inferredType:r,ast:e}}function No(e){let t;return rn(e.body,{JSXElement(r){t=r}},Nr),{inferredType:{type:t!=null?"Element":"Class",identifier:yt(e.id)},ast:e}}function Lo(e){let t={type:"Element"},r=yt(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function Oo(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return yt(t)==="shape"?gn(e.arguments[0]):null}function gn(e){return{inferredType:{type:"Object",depth:mn(e)},ast:e}}function Ro(e){return{inferredType:{type:"Array",depth:mn(e)},ast:e}}function Fo(e){switch(e.type){case"Identifier":return To(e);case"Literal":return Io(e);case"FunctionExpression":case"ArrowFunctionExpression":return Po(e);case"ClassExpression":return No(e);case"JSXElement":return Lo(e);case"CallExpression":return Oo(e);case"ObjectExpression":return gn(e);case"ArrayExpression":return Ro(e);default:return null}}function Mo(e){let t=ko.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let i=t.body[0];switch(i.type){case"ExpressionStatement":{let s=Fo(i.expression);s!=null&&(r=s);break}}}return r}function Be(e){try{return{...Mo(e)}}catch{}return{inferredType:{type:"Unknown"}}}var Bo=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 yn(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function mi(e){return e.split(/\r?\n/)}function Pt(e,t=!1){return yn(pr(e,t))}function gi(e,t=!1){return yn(Me(e,t))}function Do(e){switch(e){case"Object":return gt;case"Array":return Ir;case"Class":return bo;case"Function":return Ke;case"Element":return tt;default:return fr}}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=gt,u=p===1?Pt(i,!0):null,f=Pt(i);break}case"Element":{let{identifier:p}=r;a=p!=null&&!Pr(p)?p:tt,u=mi(e).length===1?e:null,f=e;break}case"Array":{let{depth:p}=r;a=Ir,u=p<=2?gi(i,!0):null,f=gi(i);break}default:a=Do(s),u=mi(e).length===1?e:null,f=e;break}return de({name:t,short:a,compact:u,full:f,inferredType:s})}function Vo({raw:e}){return e!=null?vn(e,"custom"):de({name:"custom",short:fr,compact:fr})}function jo(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?de({name:"func",short:vo(t.params,t.returns),compact:null,full:yo(t.params,t.returns)}):de({name:"func",short:Ke,compact:Ke})}function qo(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:gt,compact:a===1&&s?Pt(s,!0):null,full:s?Pt(s):null})}function or(e){return`objectOf(${e})`}function Uo(e,t){let{short:r,compact:i,full:s}=Ze(e.value,t);return de({name:"objectOf",short:or(r),compact:i!=null?or(i):null,full:s&&or(s)})}function Go(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 zo({value:e,computed:t}){return t?vn(e,"enumvalue"):de({name:"enumvalue",short:e,compact:e})}function Wo(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,i)=>{let{short:s,compact:a,full:u}=zo(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 dr(e){return`${e}[]`}function yi(e){return`[${e}]`}function vi(e,t,r){return de({name:"arrayOf",short:dr(e),compact:t!=null?yi(t):null,full:r&&yi(r)})}function $o(e,t){let{name:r,short:i,compact:s,full:a,inferredType:u}=Ze(e.value,t);if(r==="custom"){if(u==="Object")return vi(i,s,a)}else if(r==="shape")return vi(i,s,a);return de({name:"arrayOf",short:dr(i),compact:dr(i)})}function Ze(e,t){try{switch(e.name){case"custom":return Vo(e);case"func":return jo(t);case"shape":return qo(e,t);case"instanceOf":return de({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return Uo(e,t);case"union":return Go(e,t);case"enum":return Wo(e);case"arrayOf":return $o(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 Jo(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&&!Kn(i)?te(i):s?te(r,s):te(r)}case"func":{let{short:r,full:i}=Ze(t,e),s=r,a;return i&&i.length<Bo?s=i:i&&(a=xo(i)),te(s,a)}default:return null}}catch(r){console.error(r)}return null}function xn({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let i=pr(t,!0);if(!ft(i))return te(i)}return te(gt,pr(t))}function bn({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let i=pi(t,!0);if(!ft(i))return te(i)}return te(Ir,pi(t))}function Lr(e,t){return t?`${e}( ... )`:`${e}()`}function Yt(e){return`<${e} />`}function Sn(e){let{type:t,identifier:r}=e;switch(t){case"Function":return Lr(r,e.hasParams);case"Element":return Yt(r);default:return r}}function Xo({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return te(Sn(e),Me(t));let i=Me(t,!0);return ft(i)?te(Ke,Me(t)):te(i)}function Ho(e,t){let{inferredType:r}=t,{identifier:i}=r;if(i!=null&&!Pr(i)){let s=Sn(r);return te(s,e)}return ft(e)?te(tt,e):te(e)}function _n(e){try{let t=Be(e);switch(t.inferredType.type){case"Object":return xn(t);case"Function":return Xo(t);case"Element":return Ho(e,t);case"Array":return bn(t);default:return null}}catch(t){console.error(t)}return null}function En(e){return e.$$typeof!=null}function Cn(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var Qo=e=>te(JSON.stringify(e));function Yo(e){let{type:t}=e,{displayName:r}=t,i=ut(e,{});if(r!=null){let s=Yt(r);return te(s,i)}if(_a(t)&&Pr(t)){let s=ut(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!ft(s))return te(s)}return te(tt,i)}var Ko=e=>{if(En(e)&&e.type!=null)return Yo(e);if(ma(e)){let t=Be(JSON.stringify(e));return xn(t)}if(Array.isArray(e)){let t=Be(JSON.stringify(e));return bn(t)}return te(gt)},Zo=(e,t)=>{let r=!1,i;if(Gr(e.render))r=!0;else if(e.prototype!=null&&Gr(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&&En(a)&&(r=!0)}catch{}}let s=Cn(e,t.name);if(s!=null){if(r)return te(Yt(s));i!=null&&(i=Be(e.toString()));let{hasParams:a}=i.inferredType;return te(Lr(s,a))}return te(r?tt:Ke)},eu=e=>te(e.toString()),An={string:Qo,object:Ko,function:Zo,default:eu};function tu(e={}){return{...An,...e}}function wn(e,t,r=An){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 ru(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(i=>e.find(s=>s.name===i)).filter(Boolean):e}var iu=(e,{name:t,type:r})=>{let i=(r==null?void 0:r.summary)==="element"||(r==null?void 0:r.summary)==="elementType",s=Cn(e,t);if(s!=null){if(i)return te(Yt(s));let{hasParams:a}=Be(e.toString()).inferredType;return te(Lr(s,a))}return te(i?tt:Ke)},nu=tu({function:iu});function su(e,t){let{propDef:r}=e,i=Jo(e);i!=null&&(r.type=i);let{defaultValue:s}=e.docgenInfo;if(s!=null&&s.value!=null){let a=_n(s.value);a!=null&&(r.defaultValue=a)}else if(t!=null){let a=wn(t,r,nu);a!=null&&(r.defaultValue=a)}return r}function au(e,t){let r=t.defaultProps!=null?t.defaultProps:{},i=e.map(s=>su(s,r[s.propDef.name]));return ru(i,t)}function ou(e,t){let{propDef:r}=e,{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let s=_n(i.value);s!=null&&(r.defaultValue=s)}else if(t!=null){let s=wn(t,r);s!=null&&(r.defaultValue=s)}return r}function uu(e){return e.map(t=>ou(t))}var xi=new Map;Object.keys(Wr).forEach(e=>{let t=Wr[e];xi.set(t,e),xi.set(t.isRequired,e)});function lu(e,t){let r=e;!Qn(e)&&!e.propTypes&&dn(e)&&(r=e.type);let i=Yn(r,t);if(i.length===0)return[];switch(i[0].typeSystem){case zr.JAVASCRIPT:return au(i,e);case zr.TYPESCRIPT:return uu(i);default:return i.map(s=>s.propDef)}}var cu=e=>({rows:lu(e,"props")}),hu=e=>{if(e){let{rows:t}=cu(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},fu=e=>e.charAt(0).toUpperCase()+e.slice(1),pu=e=>e.toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(fu).join("")).join(".");function mr(e){if(ze.isValidElement(e)){let t=Object.keys(e.props).reduce((r,i)=>(r[i]=mr(e.props[i]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(mr):e}var du=(e,t)=>{if(typeof e>"u")return Ct.warn("Too many skip or undefined component"),null;let r=e,i=r.type;for(let u=0;u<(t==null?void 0:t.skip);u+=1){if(typeof r>"u")return Ct.warn("Cannot skip undefined element"),null;if(at.Children.count(r)>1)return Ct.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(Ct.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=at.createElement(i,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let s;typeof(t==null?void 0:t.displayName)=="string"?s={showFunctions:!0,displayName:()=>t.displayName}:s={displayName:u=>u.type.displayName||typeof u.type=="symbol"?pu(u.type):Hn(u.type,"displayName")||(u.type.name!=="_default"?u.type.name:null)||(typeof u.type=="function"?"No Display Name":null)||(wo(u.type)?u.type.render.name:null)||(dn(u.type)?u.type.type.name:null)||u.type};let a={...s,filterProps:(u,f)=>u!==void 0,...t};return at.Children.map(e,u=>{let f=typeof u=="number"?u.toString():u,p=(typeof ut=="function"?ut:ut.default)(mr(f),a);if(p.indexOf(""")>-1){let y=p.match(/\S+=\\"([^"]*)\\"/g);y&&y.forEach(g=>{p=p.replace(g,g.replace(/"/g,"'"))})}return p}).join(`
|
54
|
+
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},mu={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},gu=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)===Ur.DYNAMIC?!1:!r||(t==null?void 0:t.code)||(t==null?void 0:t.type)===Ur.CODE},yu=e=>{var t,r;return((t=e.type)==null?void 0:t.displayName)==="MDXCreateElement"&&!!((r=e.props)!=null&&r.mdxType)},kn=e=>{if(!yu(e))return e;let{mdxType:t,originalType:r,children:i,...s}=e.props,a=[];return i&&(a=(Array.isArray(i)?i:[i]).map(kn)),ze.createElement(r,s,...a)},Tn=(e,t)=>{var g,b;let r=mo.getChannel(),i=gu(t),s="";go(()=>{if(!i){let{id:E,unmappedArgs:S}=t;r.emit(Xn,{id:E,source:s,args:S})}});let a=e();if(i)return a;let u={...mu,...(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=kn(f),y=du(p,u);return y&&(s=y),a},_u=(e,t)=>{let r=t.findIndex(s=>s.originalFn===Tn),i=r===-1?t:[...t.splice(r,1),...t];return po(e,i)},Eu={docs:{story:{inline:!0},extractArgTypes:hu,extractComponentDescription:$n}},Cu=[Tn],Au=[Jn];export{_u as applyDecorators,Au as argTypesEnhancers,Cu as decorators,Eu as parameters};
|