@putout/bundle 4.7.4 → 4.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,4 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
10
10
 
11
11
  return ${wR(r)};
12
12
  })(${SR(this.node)})
13
- `;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return HR(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return XR(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?JR(e):!!this.isBlockStatement()&&$R(e))},isCompletionRecord:function(e){let t=this,n=!0;do{const{type:r,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===r))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},isStatementOrBlock:function(){return!this.parentPath.isLabeledStatement()&&!JR(this.container)&&UR.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?WR(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!VR(r.node.imported,{name:t}))))))},getSource:function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){return ZR(this,e,new Map)},resolve:function(e,t){return ej.call(this,e,t)||this},isConstantExpression:function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},isInStrictMode:function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0});return!!e},isDenylisted:function(){const e=this.opts.denylist??this.opts.blacklist;return e?.includes(this.node.type)},visit:function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip?.(this))return!1;const e=this.context;if(this.shouldSkip||Ij.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return Nj(this,e),this.debug("Recursing into..."),this.shouldStop=kj(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Nj(this,e),Ij.call(this,"exit"),this.shouldStop},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=2|xj},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return Lj.call(this),this},requeue:function(e=this){if(e.removed)return;e.shouldSkip=!1;const t=this.contexts;for(const n of t)n.maybeQueue(e)},requeueComputedKeyAndDecorators:function(){const{context:e,node:t}=this;!Ha(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){VM.call(this),Oj.call(this),qM.call(this)||(this.opts?.noScope||UM.call(this),this.shareCommentsWithSiblings(),JM.call(this)),$M.call(this)},insertBefore:function(e){VM.call(this);const t=dB.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||eB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return oB.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(HM(n?[e]:[]));return r.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},insertAfter:function(e){if(VM.call(this),this.isSequenceExpression())return cB(this.get("expressions")).insertAfter(e);const t=dB.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||eB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>tB(e)?GM(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){const e=this;if(e.node){const r=e.node;let{scope:i}=this;if(i.path.isPattern())return WM(r),e.replaceWith(zM(KM([],r),[])),e.get("callee.body").insertAfter(t),[e];if(lB(e))t.unshift(r);else if(ZM(r)&&iB(r.callee))t.unshift(r),t.push(sB());else if(function(e,t){if(!QM(e)||!nB(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(r,i))t.unshift(r),t.push(YM(r.left));else if(i.isPure(r,!0))t.push(r);else{n.isMethod({computed:!0,key:r})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(GM(XM("=",YM(e),r))),t.push(GM(YM(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return uB.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(HM(n?[e]:[]));return r.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},unshiftContainer:function(e,t){VM.call(this);const n=dB.call(this,t),r=this.node[e],i=Sj.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return oB.call(i,n)},pushContainer:function(e,t){VM.call(this);const n=dB.call(this,t),r=this.node[e];return Sj.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(e=!1){return lj(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return Sj.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},getAllPrevSiblings:function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},get:function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?pj.call(this,e,t):dj.call(this,n,t)},getAssignmentIdentifiers:function(){return tj(this.node)},getBindingIdentifiers:function(e){return nj(this.node,e)},getOuterBindingIdentifiers:function(e){return rj(this.node,e)},getBindingIdentifierPaths:function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const s=nj.keys[i.node.type];if(i.isIdentifier())if(e){(r[i.node.name]=r[i.node.name]||[]).push(i)}else r[i.node.name]=i;else{if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){const t=s[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},getOuterBindingIdentifierPaths:function(e=!1){return this.getBindingIdentifierPaths(e,!0)},shareCommentsWithSiblings:function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),a=Boolean(i.node);s&&(n&&r.addComments("trailing",mj(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",mj(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){hj(this.node,e,t,n)},addComments:function(e,t){fj(this.node,e,t)}};Object.assign(Sj.prototype,Tj);for(const e of qu){const t=`is${e}`,n=at[t];Sj.prototype[t]=function(e){return n(this.node,e)},Sj.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Sj.prototype,HO);for(const e of Object.keys(AO))"_"!==e[0]&&(qu.includes(e)||qu.push(e));var{VISITOR_KEYS:Ej}=at,Pj=class{constructor(e,t,n,r){Qe(this,"queue",null),Qe(this,"priorityQueue",null),this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=Ej[e.type];if(!n?.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,r){return Sj.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:r})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,r=0;for(;r<e.length;){const i=e[r];if(r++,Oj.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||Rj.call(i,this),null===i.key)continue;const{node:s}=i;if(!t.has(s)){if(s&&t.add(s),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)Bj.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}},{VISITOR_KEYS:vj}=at;function Aj(e,t){e.queue=t,e.priorityQueue=[];const n=new Set;let r=!1,i=0;for(;i<t.length;){const s=t[i];if(i++,Oj.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||Rj.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),Cj(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=Aj(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)Bj.call(t[e]);return e.queue=null,r}function Cj(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist??r.blacklist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||_j.call(t,r.enter)||t.node&&_j.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=wj(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!_j.call(t,r.exit))||(t.node&&_j.call(t,r[n.type]?.exit),t.shouldStop))))}function wj(e,t,n,r,i,s,a){const o=vj[e.type];if(!o?.length)return!1;const u=new Pj(n,t,r,i);if(a)return!s?.[i.parentKey]&&Aj(u,[i]);for(const t of o){if(s?.[t])continue;const n=e[t];if(n)if(Array.isArray(n)){if(!n.length)continue;const r=[];for(let s=0;s<n.length;s++){const a=Sj.get({parentPath:i,parent:e,container:n,key:s,listKey:t});r.push(a)}if(Aj(u,r))return!0}else if(Aj(u,[Sj.get({parentPath:i,parent:e,container:e,key:t,listKey:null})]))return!0}return!1}function kj(e,t,n,r,i,s,a){return wj(e,t,n,r,i,s,a)}function Ij(e){const t=this.opts;return this.debug(e),!(!this.node||!_j.call(this,t[e]))||!!this.node&&_j.call(this,t[this.node.type]?.[e])}function _j(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function Nj(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function Lj(){if(this.opts?.noScope)return;let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;){if(t.opts?.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope?.init()}function Oj(){this.removed||(Dj.call(this),Mj.call(this),Fj.call(this))}function Dj(){this.parentPath&&(this.parent=this.parentPath.node)}function Fj(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void Uj.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void Uj.call(this,e);this.key=null}}function Mj(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function Bj(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function Rj(e){this.contexts.push(e),this.setContext(e)}function jj(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,Uj.call(this,r)}function Uj(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function qj(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var{VISITOR_KEYS:Jj,removeProperties:$j,traverseFast:Vj}=at;function Kj(e,t={},n,r,i,s){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&s)throw new Error("visitSelf can only be used when providing a NodePath.");Jj[e.type]&&(nD(t),kj(e,t,n,r,i,null,s))}}Kj.visitors=hD,Kj.verify=rD,Kj.explode=nD,Kj.cheap=function(e,t){Vj(e,t)},Kj.node=function(e,t,n,r,i,s){kj(e,t,n,r,i,s)},Kj.clearNode=function(e,t){$j(e,t)},Kj.removeProperties=function(e,t){return Vj(e,Kj.clearNode,t),e},Kj.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||Vj(e,function(e){return n?.includes(e.type)?Vj.skip:e.type===t?Vj.stop:void 0}))},Kj.cache=vD,st.default;var Wj={},Xj={},Hj={},zj=e=>{const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}},Yj={TYPES:{TOKEN:"Token",NEWLINE:"Newline",LINEBREAK:"Linebreak",SPLITTER:"Splitter",INDENT:"Indent",DEBUG:"Debug",SPACE:"Space",ROUND_BRACE_OPEN:"RoundBraceOpen",ROUND_BRACE_CLOSE:"RoundBraceClose",QUOTE:"Quote",END_OF_FILE:"EndOfFile"}},Gj={},Qj={},Zj={};const{types:eU}=st,{isStringLiteral:tU,isIdentifier:nU,isIfStatement:rU,isStatement:iU,isForOfStatement:sU,isVariableDeclaration:aU,isMemberExpression:oU,isArrayExpression:uU,isObjectExpression:cU,isLabeledStatement:lU}=eU,pU=e=>e.parentPath?.isProgram(),dU=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},hU=e=>pU(e)&&!dU(e);function fU([e,t]){return tU(e)&&nU(t)}Zj.isNextObject=e=>e.getNextSibling().isObjectExpression(),Zj.isPrevObject=e=>e.getPrevSibling().isObjectExpression(),Zj.isFirst=e=>e.node===e.parentPath.node.body?.[0],Zj.isPrevBody=e=>e.getPrevSibling().isBlockStatement(),Zj.isNext=dU,Zj.isPrev=e=>e.getPrevSibling().node,Zj.isNextParent=e=>dU(e.parentPath),Zj.isParentProgram=pU,Zj.isParentBlock=e=>e.parentPath.isBlockStatement(),Zj.isLast=hU,Zj.isParentLast=e=>hU(e.parentPath),Zj.isIndented=(e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column},Zj.isCoupleLines=function(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t},Zj.exists=e=>e.node,Zj.isStringAndIdentifier=fU;Zj.isSimpleAndNotEmptyObject=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return cU(t)||(t=e.at(-2)),!!cU(t)&&t.node.properties.length})(e)},Zj.isIdentifierAndIdentifier=([e,t])=>nU(e)&&nU(t),Zj.isStringAndMember=([e,t])=>tU(e)&&oU(t),Zj.isIdentifierAndString=([e,t])=>nU(e)&&tU(t),Zj.isStringAndArray=([e,t])=>!!tU(e)&&(!!uU(t)&&!fU(t.node.elements));const mU=e=>rU(e)||iU(e),yU=e=>sU(e)||iU(e);Zj.isIf=e=>rU(e.find(mU)),Zj.isForOf=e=>{const t=e.find(yU);return!!sU(t)||!!aU(t)&&sU(t.parentPath)},Zj.isInsideIf=e=>e.parentPath?.isIfStatement(),Zj.isNewlineBetweenSiblings=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},Zj.isInsideLabel=({parentPath:e})=>lU(e),Zj.satisfy=e=>t=>{for(const n of e)if(n(t))return!0;return!1};const gU=e=>e.node||e;Zj.hasCoupleTrailingComments=e=>{const t=gU(e);return t?.trailingComments?.length>1},Zj.hasTrailingComment=e=>{const t=gU(e);return t.trailingComments?.length},Zj.hasLeadingComment=e=>e.node?.leadingComments?.length,Zj.noTrailingComment=e=>!e.node.trailingComments?.length,Zj.noLeadingComment=e=>!e.node.leadingComments?.length;var bU={},xU={},SU={},TU={};const EU="__putout_newline_after";function PU(e){e[EU]=!0}function vU(e){return e[EU]}TU.markBefore=function(e){e.__putout_newline_before=!0},TU.markAfter=PU,TU.maybeMarkAfter=(e,t)=>e&&PU(t),TU.isMarkedAfter=vU,TU.hasPrevNewline=e=>vU(e.getPrevSibling());var AU={maybeInsideFn:(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())}},CU={};const wU=(e,t)=>()=>e(`//${t}`),kU=(e,t)=>()=>e(`/*${t}*/\n`);CU.hasTrailingCommentsPrinter=e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)},CU.hasLeadingCommentsPrinter=e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)},CU.printLeadingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:kU(i,l)}):a?.(e,t,n,{index:r,printComment:wU(i,l),isLast:r===u})},CU.printTrailingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:kU(i,l)}):a?.(e,t,n,{index:r,printComment:wU(i,l),isLast:r===u})};const{types:IU}=st,{hasTrailingComment:_U,satisfy:NU,isPrev:LU}=Zj,{markBefore:OU}=TU,{maybeInsideFn:DU}=AU,{printLeadingComments:FU,hasLeadingCommentsPrinter:MU}=CU,{isArrowFunctionExpression:BU,isObjectProperty:RU,isVariableDeclarator:jU,isClassProperty:UU,isTSPropertySignature:qU,isSpreadElement:JU,isClassBody:$U,isBinaryExpression:VU,isClassMethod:KU,isDecorator:WU}=IU,XU=NU([RU,jU,UU,qU,JU]),HU=e=>{const{parentPath:t}=e;return!(!jU(t)||e!==t.get("init"))||!!BU(t)&&jU(t.parentPath)};function zU(e){const{loc:t,leadingComments:n}=e.node;if(!XU(e))return!1;const[r]=n,{line:i}=r.loc.start;return!function(e){const[t]=e.node.leadingComments,{line:n}=t.loc.start;return e.getPrevSibling().node?.loc.start.line===n}(e)&&i<=t.start.line-1}const YU=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!$U(t)||!UU(e))&&e===t.get("body")[0]};SU.parseLeadingComments=(e,t,n,{currentTraverse:r={}}={})=>{const{print:i,maybe:s,indent:a}=t;if(!n.comments)return;const{leadingComments:o}=e.node;if(!o?.length)return;if(MU(r))return FU(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&_U(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=XU(e),p=YU(e)||!u&&!e.isClassMethod()&&!c&&!l,d=o.length-1;for(const[t,{type:n,value:r}]of o.entries())if("CommentLine"!==n){if("CommentBlock"===n){s.indent(p);const t=e.isClassMethod(),n=e.isDirective(),a=e.isObjectProperty();a&&i.breakline(),i(`/*${r}*/`),qU(e)&&!LU(e)&&i.breakline(),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),OU(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),DU(c,{print:i,indent:a}),zU(e)?s.print.breakline(!YU(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),KU(e)?a():(VU(e)||WU(e))&&(a.inc(),a(),a.dec())):i.newline(),HU(e)&&(a.inc(),a(),a.dec())};var GU={},QU={},ZU={};const{hasTrailingComment:eq}=Zj,{assign:tq}=Object;function nq(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=iq(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function rq(e){const t=[];for(;e.isMemberExpression()&&(eq(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(iq(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function iq(e){const t={type:e.type};return e.isCallExpression()&&tq(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}ZU.chain=e=>{const t=[...nq(e),...rq(e)],n=t.slice(0,-1);return[t.at(-1),n]};const{types:sq}=st,{chain:aq}=ZU,{satisfy:oq}=Zj,{isUnaryExpression:uq,isIfStatement:cq,isCallExpression:lq,isIdentifier:pq}=sq,dq=e=>"CallExpression"===e.type,hq=oq([uq,cq]),fq=({type:e})=>"CommentLine"===e;QU.isLooksLikeChain=e=>{const[t,n]=aq(e);if((e=>!!pq(e.node.object)&&!!pq(e.node.property)&&lq(e.parentPath.parentPath))(e))return!1;if(hq(t))return!1;if(mq(n))return!1;if(n.find(fq))return!0;if(e.find(yq))return!1;const r=n.filter(dq),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)};const mq=([e])=>lq(e,{name:"get"}),yq=e=>{const t=e.find(cq);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{types:gq}=st,{isLast:bq,isCoupleLines:xq,isNext:Sq}=Zj,{isLooksLikeChain:Tq}=QU,{printTrailingComments:Eq,hasTrailingCommentsPrinter:Pq}=CU,{isDecorator:vq,isMemberExpression:Aq,isExpressionStatement:Cq,isCallExpression:wq}=gq,kq=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,Iq=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function _q(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const Nq=e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments,Lq=e=>{const{parentPath:t}=e;if(vq(e)){const{loc:t}=e.node.trailingComments[0];return!_q(e,t)}return!Aq(t)&&!bq(e)};function Oq(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if(Nq(e))return!1;if(e.isThrowStatement())return!1;const[i]=r,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!n)return!0;const o=n.start.line,u=n.end.line;return s===o+1&&s===u+1||s===o+2&&s===u+2}function Dq(e){const t=e.getPrevSibling();if(Cq(t))return!1;const{expression:n}=e.node;return!!wq(n)&&!wq(n.arguments[0])}GU.isTrailingIsLeading=Nq,GU.parseTrailingComments=(e,t,n,{currentTraverse:r}={})=>{const{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!n.comments)return;const{trailingComments:u}=e.node;if(!u?.length)return;if(Pq(r))return Eq(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=Tq(i);for(const{type:t,value:n,loc:r}of u){const i=_q(e,r),u=Oq(e);if("CommentLine"===t){const t=u&&l,r=!i&&!u;a.write.breakline(u),a.write.space(i),(r||t)&&(a.indent.inc(t),o(),a.indent.dec(t)),kq(e)&&(a.write.breakline(!Sq(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(Lq(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(Dq(e)),s(`/*${n}*/`),a.write.newline(!i||!Iq(e)&&xq(e.parentPath)))}};var Fq={};const{isNext:Mq}=Zj;Fq.parseComments=(e,{write:t,maybe:n},r)=>{if(!r.comments)return;const i=e.node.comments||e.node.innerComments;if(!i)return;const s=i.length-1,a=e.isProgram();for(const[r,{type:o,value:u}]of i.entries())if("CommentLine"!==o)"CommentBlock"===o&&(t("/*"),t(u),t("*/"));else{if(n.write.breakline(Mq(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}};const{parseLeadingComments:Bq}=SU,{parseTrailingComments:Rq}=GU,{parseComments:jq}=Fq;xU.parseLeadingComments=Bq,xU.parseTrailingComments=Rq,xU.parseComments=jq;const{parseComments:Uq}=xU,qq=()=>{},Jq=e=>e.get("params");function $q(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}bU.printParams=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=Jq(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=qq,printBeforeClose:f=qq}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if($q(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),Uq(e,t,n),h();const m=c.length-1;for(let e=0;e<=m;e++){const t=e===m;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if($q(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n)};var Vq={};const Kq=e=>e.node.extra?.parenthesized;Vq.isParens=Kq,Vq.maybeParens=e=>"function"==typeof e?Wq(e):Xq(e);const Wq=e=>({condition:Kq,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),Xq=({print:e,condition:t,checkParens:n=!0})=>({...Wq(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||Kq(e):s}}),{exists:Hq}=Zj,{printParams:zq}=bU,{maybeParens:Yq}=Vq;Qj.ArrowFunctionExpression=Yq((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{async:o}=e.node;i.print(o,"async "),zq(e,t,n);const u=e.get("returnType");Hq(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")});var Gq={};const{types:Qq}=st,{markAfter:Zq}=TU,{isNext:eJ,isNextParent:tJ}=Zj,{printParams:nJ}=bU,rJ=(iJ=function(e){return!!pJ(e.parentPath)&&e.node.body.body.length},(...e)=>!iJ(...e));var iJ;const{isAssignmentExpression:sJ,isTSModuleBlock:aJ,isBlockStatement:oJ,isExportNamedDeclaration:uJ,isExpressionStatement:cJ,isFunctionDeclaration:lJ,isExportDefaultDeclaration:pJ}=Qq;Gq.FunctionDeclaration={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>uJ(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),nJ(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[eJ,tJ,fJ],after(e,{indent:t,maybe:n}){(hJ(e)||dJ(e)||eJ(e))&&t(),n.write.newline(rJ(e)),Zq(e)}};const dJ=e=>{const t=e.getNextSibling();return lJ(t)},hJ=e=>{const t=e.getNextSibling();return!!cJ(t)&&sJ(t.node.expression)};function fJ(e){const{parentPath:t}=e;return!!aJ(t.parentPath)||!!oJ(t)&&!e.node.body.body.length}var mJ={},yJ={};const gJ=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())};yJ.maybeDecorators=e=>(t,n,r,i)=>{const{write:s,traverse:a,maybe:o}=n,{decorators:u}=t.node;if(u)for(const e of t.get("decorators"))o.write.breakline(gJ(t)),a(e),s.breakline();e(t,n,r,i)};var bJ={},xJ={maybePrintComputed:(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")}};const{maybePrintComputed:SJ}=xJ;bJ.printKey=(e,t)=>{const n=e.get("key");SJ(e,n,t)};var TJ={printKind:(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")}},EJ={};const{printParams:PJ}=bU,{hasLeadingComment:vJ}=Zj,AJ=({decorators:e})=>e?.length;EJ.printFunctionParams=(e,t,n)=>{const{params:r}=e.node,i=r.filter(AJ).length,s=(e=>{const t=e.get("params");let n=0,r=0;for(const e of t){const t=e.get("decorators");if(!t.length)continue;const[i]=t;++r,vJ(i)&&++n}return n===r})(e),a=kJ({isNewline:i,printer:t}),o=CJ({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=wJ({type:"dec",printer:t,isNewline:i,isAllHasComments:s});PJ(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})};const CJ=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},wJ=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},kJ=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},{isNext:IJ,hasTrailingComment:_J}=Zj,{maybeDecorators:NJ}=yJ,{printKey:LJ}=bJ,{printKind:OJ}=TJ,{printFunctionParams:DJ}=EJ,FJ=e=>!_J(e)&&IJ(e),MJ={print:NJ((e,t,n)=>{const{print:r}=t,{node:i}=e,{accessibility:s,returnType:a}=i;s&&(r(s),r(" ")),i.static&&(r("static"),r(" ")),i.override&&(r("override"),r(" ")),i.async&&(r("async"),r(" ")),OJ(e,t),LJ(e,t),DJ(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[FJ],after(e,{print:t}){t.linebreak()}};mJ.ClassPrivateMethod=MJ,mJ.ClassMethod=MJ;var BJ={};const{isNewlineBetweenSiblings:RJ}=Zj,{printParams:jJ}=bU,{printKey:UJ}=bJ,{printKind:qJ}=TJ;BJ.ObjectMethod={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;qJ(e,t),UJ(e,t),jJ(e,t,n),r.space(),r("__body")},afterIf:e=>RJ(e),after(e,{print:t}){t.linebreak()}};var JJ={};const{exists:$J}=Zj,{printParams:VJ}=bU,{maybeParens:KJ}=Vq;JJ.FunctionExpression=KJ((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{node:o}=e,{generator:u,async:c}=o;i.write(c,"async "),s("function"),i.write(u,"*");const l=e.get("id");$J(l)&&(s(" "),a(l)),VJ(e,t,n),r.space(),r("__body")});const{ArrowFunctionExpression:WJ}=Qj,{FunctionDeclaration:XJ}=Gq,{ClassMethod:HJ,ClassPrivateMethod:zJ}=mJ,{ObjectMethod:YJ}=BJ,{FunctionExpression:GJ}=JJ;Gj.FunctionDeclaration=XJ,Gj.FunctionExpression=GJ,Gj.ArrowFunctionExpression=WJ,Gj.ClassMethod=HJ,Gj.ClassPrivateMethod=zJ,Gj.ObjectMethod=YJ;var QJ={};const{isLast:ZJ,isNext:e$}=Zj,{maybeParens:t$}=Vq,n$=t$((e,t)=>{const{maybe:n,traverse:r}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");n.print(i,s),n.print(/^(delete|typeof|void|throw)$/.test(s)," "),r(a),n.print(!i,s)});function r$(e,{print:t}){t(`${e} `),t("__argument")}QJ.UnaryExpression=n$,QJ.UpdateExpression=n$,QJ.AwaitExpression=t$((e,{print:t})=>{r$("await",{print:t})}),QJ.YieldExpression=t$((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")}),QJ.ThrowStatement=(e,{print:t,indent:n,maybe:r})=>{n(),r$("throw",{print:t}),t(";"),r.print.newline(!ZJ(e)),r.print.breakline(e$(e))};var i$={};const{maybePrintComputed:s$}=xJ,{maybeParens:a$}=Vq,{isLooksLikeChain:o$}=QU;i$.MemberExpression=(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),o=s.isAssignmentExpression(),{computed:u}=e.node,c=o$(e);if(r.print(o,"("),i(s),r.print(o,")"),u)return s$(e,a,t);r.indent.inc(c),r.print.breakline(c),n("."),n("__property"),r.indent.dec(c)},i$.OptionalMemberExpression=a$((e,{print:t,maybe:n})=>{const{computed:r,optional:i}=e.node;if(t("__object"),n.print(i,"?."),n.print(!i&&!r,"."),r)return t("["),t("__property"),void t("]");t("__property")});var u$={},c$={maybeDeclare:e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)}};const{types:l$}=st,{isNext:p$}=Zj,{markAfter:d$}=TU,{maybeDeclare:h$}=c$,{parseComments:f$}=xU,{maybeDecorators:m$}=yJ,{isFunction:y$,isTSModuleBlock:g$}=l$,b$=e=>y$(e.parentPath.parentPath),x$=m$((e,t,n)=>{const{id:r,abstract:i,superClass:s}=e.node,{print:a,indent:o,maybe:u,traverse:c}=t;u.print(i,"abstract "),a("class"),u.print(r||s," "),a("__id"),a("__typeParameters");const{node:l}=e;l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements&&(a(" implements "),e.get("implements").forEach(a)),a.space(),a("{"),u.print.newline(e.node.body.body.length),o.inc();const p=e.get("body"),d=p.get("body");for(const e of d)o(),c(e);d.length||f$(p,t,n),o.dec(),u.indent(d.length),a("}")});u$.ClassExpression=x$,u$.ClassDeclaration={print:h$((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),x$(e,t,n)}),afterIf:e=>!!b$(e)||(!!p$(e)||(e=>g$(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!b$(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),d$(e))}};var S$={};const{exists:T$}=Zj,{maybeParens:E$}=Vq,{isArray:P$}=Array,v$=E$((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return P$(t)?t:[]})(e),a=function(e){for(const t of e)if(t.isIdentifier()&&t.node.name.length>10)return!0;return!1}(s)&&e.parentPath.isCallExpression(),o=e.get("callee"),u=e.get("typeArguments");i(o),T$(u)&&i(u),e.node.optional&&n("?."),n("(");const c=s.length-1;r.indent.inc(a);for(const[e,t]of s.entries()){const r=t.isObjectExpression();a&&!r&&c&&n.breakline(),n(t),a&&c?n(","):e<c&&(n(","),n.space())}a&&(t.dec(),r.print.breakline(c)),n(")")});S$.OptionalCallExpression=v$,S$.CallExpression=v$;var A$={};const{types:C$}=st,{exists:w$}=Zj,{isMarkedAfter:k$}=TU,{isExpressionStatement:I$,isMemberExpression:_$}=C$;function N$(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>_$(e))(t))return s(e);i.print(a.new,e)}A$.NewExpression={beforeIf(e){if(!(({parentPath:e})=>I$(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!k$(n)&&(!n.isExpressionStatement()&&(({parentPath:e})=>w$(e.getPrevSibling()))(e)))},before(e,{print:t}){t.breakline()},print(e,t,n){const{print:r,maybe:i}=t;r("new "),r("__callee"),r("__typeArguments");const s=e.get("arguments");!function(e,t,n){N$("(",e,t,n)}(e,t,n);const a=s.length-1;for(const[e,t]of s.entries())r(t),i.print(e<a,", ");!function(e,t,n){N$(")",e,t,n)}(e,t,n)}};var L$={},O$={};const{types:D$}=st,{isArrayExpression:F$}=D$,M$=["NullLiteral","NumericLiteral","BigIntLiteral"];O$.isInsideTuple=e=>{const{parentPath:t}=e;if(!F$(t))return!1;const[n,r]=t.node.elements;return r===e.node&&M$.includes(n.type)};var B$={};const{types:R$}=st,{isArrayExpression:j$,isCallExpression:U$,isIdentifier:q$}=R$;B$.isThirdObjectInsideArray=({parentPath:e})=>{if(!j$(e))return!1;const[,t]=e.node.elements;return U$(t)&&!!q$(t)};const{types:J$}=st,{isCoupleLines:$$,isForOf:V$,isIf:K$,noTrailingComment:W$,isNewlineBetweenSiblings:X$,noLeadingComment:H$,hasLeadingComment:z$,exists:Y$}=Zj,{parseComments:G$}=xU,{isInsideTuple:Q$}=O$,{isLooksLikeChain:Z$}=QU,{isThirdObjectInsideArray:eV}=B$,{isStringLiteral:tV,isArrayExpression:nV}=J$,rV=e=>e.get("argument").isLogicalExpression();L$.ObjectExpression=(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=Q$(e)||function({parentPath:e}){return!!nV(e)&&!!nV(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||eV(e);s.indent.inc(!o);const u=e.get("properties"),{length:c}=u,l=function(e){return!!(e=>e.parentPath.node.body===e.node)(e)||(e=>e.parentPath.isExpressionStatement())(e)}(e),p=!uV(e);s.print(l,"("),i("{"),G$(e,t,n),s.print.newline(p);const d=u.length-1,h=(({parentPath:e})=>{if(!e.isCallExpression())return!1;const t=e.get("callee");return!!t.isMemberExpression()&&Z$(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=rV(t);H$(t)&&s.indent(c>1||n||p),i(t),W$(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&H$(t)),i(t),t.isObjectMethod()||W$(t)&&!iV(t)&&(s.print.newline(p),s.print.linebreak(X$(t)))}o?(Q$(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return tV(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)};const iV=e=>{const t=e.getNextSibling();return!!Y$(t)&&z$(t)},sV=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!$$(e)&&e!==t.get("arguments").at(-1))},aV=!0,oV=!1;function uV(e){const{length:t}=e.get("properties");return t?sV(e)||V$(e)||K$(e)?aV:$$(e)?oV:!(e=>e.get("properties.0.value").node)(e):aV}L$.isOneLine=uV;var cV={},lV={};const{types:pV}=st,{isStringLiteral:dV,isTemplateLiteral:hV,isBinaryExpression:fV}=pV,mV=e=>!!dV(e)||hV(e);lV.isConcatenation=e=>{const{parentPath:t}=e,{operator:n}=e.node;if("+"!==n)return!1;const r=e.node.loc?.start.line,i=e.node.loc?.end.line;if(r===i)return!1;const s=e.get("left"),a=e.get("right");return!!(mV(s)&&mV(a)&&fV(t))||fV(s)&&mV(a)},lV.concatenate=(e,{print:t,indent:n})=>{e.parentPath.isBinaryExpression()||(n.inc(),t.breakline()),t("__left"),t.space(),t("+"),t.breakline(),t("__right"),e.parentPath.isBinaryExpression()||n.dec()};const{types:yV}=st,{isConcatenation:gV}=lV,{isOneLine:bV}=L$,{printKey:xV}=bJ,{isTSImportType:SV}=yV;cV.ObjectProperty=(e,t,n)=>{const{trailingComma:r}=n,{shorthand:i}=e.node,{maybe:s,traverse:a,write:o}=t,u=e.get("value"),c=e.parentPath.get("properties"),l=e===c.at(-1),p=!bV(e.parentPath);xV(e,t),i||(o(":"),s.write.space(!gV(u)),a(u)),p&&!(({parentPath:e})=>SV(e.parentPath))(e)?s.write(!l||r,","):!l&&c.length&&o(", ")};var TV={},EV={wrongShorthand:({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name},PV={moreThenMaxPropertiesInOneLine:(e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;if(n.isObjectProperty())return!1;return t>=e.node.properties.length}},vV={};const{types:AV}=st,{isMemberExpression:CV,isSequenceExpression:wV}=AV;function kV(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;wV(n)||CV(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}vV.maybePrintTypeAnnotation=kV,vV.maybeTypeAnnotation=e=>(t,n,r)=>{e(t,n,r),kV(t,n)};var IV={};const{types:_V}=st,{isAssignmentPattern:NV,isIdentifier:LV}=_V;function OV(e,t){return LV(e)&&LV(t)?e.name.length+t.name.length:LV(e)?e.name.length:0}IV.moreThenMaxPropertiesLengthInOneLine=(e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(NV(r)){const{left:e,right:n}=r;if(OV(e,n)>=t)return!0}if(!LV(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1};var DV={};const{types:FV}=st,{isAssignmentPattern:MV,isArrayExpression:BV,isObjectExpression:RV}=FV;function jV(e,t){if(!MV(e.node.value))return!1;const{maxPropertiesLengthInOneLine:n}=t;return e.node.key.name.length>n}DV.calculateAssigns=(e,t)=>{const n=jV(e,t),{right:r}=e.node.value,i=BV(r)||!!RV(s=r)&&s.properties.length;var s;return{complexAssign:n&&i}},DV.isLongAssignPattern=jV;const{types:UV}=st,{wrongShorthand:qV}=EV,{isForOf:JV,isCoupleLines:$V,exists:VV}=Zj,{moreThenMaxPropertiesInOneLine:KV}=PV,{maybeTypeAnnotation:WV}=vV,{moreThenMaxPropertiesLengthInOneLine:XV}=IV,{printKey:HV}=bJ,{calculateAssigns:zV,isLongAssignPattern:YV}=DV,{isObjectExpression:GV,isIdentifier:QV,isAssignmentPattern:ZV,isVariableDeclarator:eK,isFunction:tK,isObjectPattern:nK,isForOfStatement:rK,isVariableDeclaration:iK}=UV;const sK=({path:e,valuePath:t,property:n})=>{if(!$V(t))return!1;if(VV(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!lK(r))&&!e.parentPath.isObjectProperty()};function aK({parentPath:e}){return rK(e.parentPath.parentPath)}function oK(e){const t=e.getPrevSibling();return ZV(t.node.value)}function uK(e){const t=e.getPrevSibling();if(!ZV(t.node.value))return!1;const{right:n}=t.node.value;return GV(n)}function cK(e){const t=e.getNextSibling();if(!t.node)return!1;if(!ZV(t.node.value))return!1;const{right:n}=t.node.value;return GV(n)}function lK(e){for(const t of e){const{value:e}=t.node;if(ZV(e))return!0}return!1}function pK(e){for(const t of e)if(nK(t.node.value))return!0;return!1}TV.ObjectPattern={print:WV((e,t,n)=>{const r=function(e){return!e.parentPath.isArrayPattern()}(e),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=n,{print:a,maybe:o,indent:u}=t;o.indent.inc(r),a("{");const c=e.get("properties"),l=c.length-1,p=function(e,t){const{parentPath:n}=e,r=e.get("properties"),i=r.length-1,{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=XV(e,{maxPropertiesLengthInOneLine:a}),u=KV(e,{maxPropertiesInOneLine:s}),c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return pK(r)?hK:u&&!o&&eK(e.parentPath)?dK:!c&&i&&!JV(e)&&function(e){for(const t of e){const{value:e}=t.node;if(QV(e)&&e.name.length>4)return!0}return!1}(r)||!c&&lK(r)?hK:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&pK(c),h=!(e=>!!tK(e.parentPath)||tK(e.parentPath.parentPath))(e);o.print.newline(p&&h);for(const[r,i]of c.entries()){if(i.isRestElement()){const e=p||d;o.indent(e),a(i),o.print.newline(e);continue}const s=r&&uK(i),u=cK(i),c=i.get("value"),f=i.get("key"),m=c.isAssignmentPattern(),{shorthand:y,computed:g}=i.node,b=sK({path:e,property:i,valuePath:c});if(o.indent((s||p)&&h),o.print.breakline(b&&!YV(i,n)),!m&&u&&a.breakline(),HV(i,t),!y||qV({computed:g,isAssign:m,keyPath:f,valuePath:c}))a(":"),a.space(),a(c);else if(m){a(c),o.print(b,","),o.print.newline(b);const{right:t}=c.node;if(r&&!oK(i)&&!aK(e)&&GV(t)){a(","),a.newline();continue}}if(!m&&u&&h){a(","),a.breakline();continue}const{complexAssign:x}=zV(i,n);x||!(p||d||s&&h)?!(r<l)||m&&b||(a(","),a.space()):(a(","),a.newline())}u.dec(),o.indent(p||function(e,t){const{parentPath:n}=e;if(iK(n.parentPath)){const{declarations:e}=n.parentPath.node;if(e.length>1)return!1}const r=e.get("properties"),i=r.length;for(const e of r){const{value:n}=e.node;if(ZV(n)&&GV(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};const dK=!1,hK=!0;var fK={};const{exists:mK}=Zj,{maybePrintTypeAnnotation:yK}=vV,{maybeDecorators:gK}=yJ,{printKey:bK}=bJ,{printKind:xK}=TJ,SK=gK((e,t,n,{accessor:r}={})=>{const{node:i}=e,{accessibility:s,declare:a,optional:o}=i,{print:u,maybe:c}=t;c.print(r,"accessor ");const l=e.get("value");c.print(a,"declare "),c.print(s,`${s} `),c.print(i.static,"static "),c.print(i.readonly,"readonly "),xK(e,t),bK(e,t),c.print(o,"?"),yK(e,t),mK(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()});fK.ClassProperty=SK,fK.ClassPrivateProperty=SK,fK.PrivateName=(e,{print:t})=>{t("#"),t("__id")},fK.ClassAccessorProperty=(e,t,n)=>{SK(e,t,n,{accessor:!0})};var TK={exports:{}},EK={};const{hasLeadingComment:PK}=Zj,{isParens:vK}=Vq;EK.condition=(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!PK(e))&&vK(e))))};var AK={};const{types:CK}=st,{hasLeadingComment:wK}=Zj,{isReturnStatement:kK}=CK;AK.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;kK(s)||(o.print.breakline(!i),r(),a.breakline())},AK.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;kK(i)||(r(),s.indent())},AK.maybeInsideReturnWithCommentStart=(e,{print:t,indent:n})=>{const{parentPath:r}=e;if(kK(r)&&wK(e)){n.inc();const{leadingComments:r}=e.node;t.breakline();for(const{type:e,value:n}of r)t("CommentLine"===e?`//${n}`:`/*${n}*/`),t.breakline()}},AK.maybeInsideReturnWithCommentEnd=(e,{print:t,indent:n})=>{const{parentPath:r}=e;kK(r)&&wK(e)&&(n.dec(),t.breakline())};var IK={};const{types:_K}=st,{isAssignmentExpression:NK,isExpressionStatement:LK}=_K;IK.printSeparator=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(LK)&&NK(t)}(e)?t.space():t.breakline()},function(e){const{condition:t}=EK,{printLeadingCommentLine:n,maybeInsideReturnWithCommentEnd:r,maybeInsideReturnWithCommentStart:i,printLeadingCommentBlock:s}=AK,{maybeParens:a}=Vq,{printSeparator:o}=IK;e.exports.AssignmentExpression=a({checkParens:!1,condition:t,print(e,t){const{print:n}=t,{operator:s}=e.node;i(e,t),n("__left"),n.space(),n(s),o(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),r(e,t)}}),e.exports.AssignmentExpression.printLeadingCommentLine=n,e.exports.AssignmentExpression.printLeadingCommentBlock=s}(TK);var OK=TK.exports;OK.default;var DK={},FK={},MK={},BK={};const{types:RK}=st,{isIdentifier:jK,isMemberExpression:UK}=RK;function qK(e,t){const n=JK(t);return e.scope.getAllBindings()[n]}BK.getBinding=qK,BK.getBindingPath=(e,t)=>qK(e,t)?.path;const JK=e=>"string"==typeof e?e:jK(e)?e.name:UK(e)?JK(e.object):"";var $K={};const{types:VK}=st,{isOptionalMemberExpression:KK,isMemberExpression:WK,isIdentifier:XK,isLiteral:HK}=VK;$K.isSimple=e=>!!HK(e)||(!!XK(e)||(!!WK(e)||KK(e)));var zK={};const{types:YK}=st,{isArrayExpression:GK,isLiteral:QK,isIdentifier:ZK,isMemberExpression:eW,isTemplateElement:tW,isRegExpLiteral:nW,isClassMethod:rW,isTemplateLiteral:iW,isJSXText:sW,isJSXAttribute:aW,isJSXIdentifier:oW,isTSTypeReference:uW,isTSTypeParameter:cW}=YK;function lW(e){if(e=e.node||e,ZK(e))return e.name;if(oW(e))return e.name;if(nW(e))return e.pattern;if(iW(e))return lW(e.quasis[0]);if(QK(e))return e.value;if(tW(e))return e.value.raw;if(eW(e))return`${lW(e.object)}.${lW(e.property)}`;if(GK(e))return pW(e);if(sW(e))return e.value;if(aW(e))return e.name.name;if(rW(e))return lW(e.key);if(uW(e))return lW(e.typeName);if(cW(e))return lW(e.name);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function pW(e,t=[]){for(const n of e.elements)GK(n)?pW(n,t):t.push(lW(n));return t.join(",")}zK.extract=lW;var dW={};const{getBindingPath:hW}=BK,{extract:fW}=zK,mW=!1,yW=!0;function gW(e){const{node:t}=e;if(!e.evaluate)throw Error("☝️ Looks like argument of 'compute' is not 'path'");const{confident:n,value:r}=e.evaluate();if(n)return[yW,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=gW(n);if(!i)return[mW];const[a,o]=gW(r);if(!a)return[mW];const u=`return a ${t} b`,c=xW[t]||xW.init(t,Function("a","op","b",u));return[yW,c(s,t,o)]}(e);if(bW(e))return[yW,fW(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?hW(e,fW(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?hW(e,fW(t.object)):null}(e);if(!i)return[mW];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=fW(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!bW(t))return[mW];if(fW(t)!==n)continue;const[r,i]=gW(e.get("value"));if(!r)break;return[yW,i]}return[mW]}(e,s):[mW]}function bW(e){const{parentPath:t}=e;return!(!e.isIdentifier()&&!e.isLiteral())&&(!!t.isObjectProperty({computed:!1})&&!function(e){const t=function(e){const{referencesSet:t}=e.scope;if(!t)return{};const n=t.entries();return Object.fromEntries(n)}(e),[n]=Object.keys(t),r=e.scope.bindings[n];if(!r)return!1;const{referencePaths:i}=r;for(const e of i)if(e.parentPath.parentPath?.isAssignmentExpression())return!0;return!1}(e))}dW.compute=gW;const xW={init:(e,t)=>xW[e]=t};var SW={};const{entries:TW}=Object;SW.remove=e=>{if(!e.node)return;const{scope:t}=e,n=PW(e),r=vW(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=EW(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of TW(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}};const EW=e=>{const{leadingComments:t}=e.node;if(t?.length)return t;const{parentPath:n}=e;return e.isVariableDeclarator()&&(({node:e})=>1===e.declarations.length)(n)?n.node.leadingComments:[]},PW=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),vW=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling();var AW={getExportDefault:e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null}},CW={},wW={renameProperty:(e,t,n)=>{e.traverse({ObjectProperty(e){const{node:r}=e,{key:i,value:s}=r;i.name===s.name&&i.name===t&&(i.name=n,s.name=n,r.shorthand=!0,e.stop())}})}};const{renameProperty:kW}=wW;CW.rename=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;kW(i,t,n),i.scope.rename(t,n)};var IW={setLiteralValue:(e,t)=>{const n=e.node||e,{raw:r,extra:i,value:s}=n;n.value=s.replace(s,t),'""'!==r?!r&&s?i&&(n.raw=i.raw.replace(s,t),n.extra.rawValue=s):n.raw="'"+String.raw`${t}`+"'":n.raw=r.replace(r,`"${t}"`)}},_W={};function NW(e){if(!e.isVariableDeclaration())return!1;const t=e.get("declarations.0.init");if(!t.isCallExpression())return!1;return t.get("callee").isIdentifier({name:"require"})}_W.getPathAfterRequires=e=>{let t;for(t of e)if(!NW(t))break;return t};var LW={},OW={};const{traverse:DW,types:FW}=st,{extract:MW}=zK,{isCallExpression:BW,isObjectExpression:RW}=FW,jW=e=>e.node||e;OW.traverseProperties=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return RW(e)?BW(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:jW(e)}:jW(e)}(e),s=UW({name:t,collector:r});return n?(s(e),r):(DW(i,{noScope:!0,ObjectExpression:s}),r)};const UW=({name:e,collector:t})=>n=>{for(const r of n.get("properties")){if(r.isSpreadElement())continue;if(r.isRestElement())continue;const n=r.get("key");if(n.isConditionalExpression())continue;const i=MW(n);e===i&&t.push(r)}},{isObjectExpression:qW,isObjectPattern:JW}=st.types,{extract:$W}=zK,{traverseProperties:VW}=OW;LW.traverseProperties=VW,LW.getProperties=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=r.get("key"),i=$W(e);if(t.includes(i)){n[`${i}Path`]=r;continue}}return n},LW.getProperty=(e,t)=>{if(!qW(e)&&!JW(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);const n=e.get("properties");for(const e of n){const n=e.get("key");if($W(n)===t)return e}return null};var KW={};const WW=e=>"string"==typeof e;KW.getLiteralRaw=e=>{const{raw:t,extra:n,value:r}=e.node||e;return WW(t)?t:n&&WW(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};var XW={},HW={},zW={};const{types:YW}=st,{isStatement:GW,isBlockStatement:QW,blockStatement:ZW,expressionStatement:eX}=YW;zW.maybeBody=(e,t)=>{const{parentPath:n}=e;return t&&!GW(t)||QW(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=ZW([eX(e.node)]),{currentPath:n.get("body.body.0")})};var tX={};const{types:nX}=st,{isExpression:rX,toStatement:iX,expressionStatement:sX}=nX;tX.toExpression=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:rX(e)?sX(e):iX(e)};const{maybeBody:aX}=zW,{toExpression:oX}=tX,{isSequenceExpression:uX}=st.types;HW.replaceWithMultiple=(e,t)=>{const{node:n}=e,{trailingComments:r,comments:i,leadingComments:s}=n;delete e.node.trailingComments;const a=e.parentPath.node.comments,o=t.filter(Boolean).map(oX);!function(e){for(const t of e)for(const n of e)t!==n&&t.leadingComments===n.leadingComments&&delete n.leadingComments}(o);const{currentPath:u}=aX(e),c=u.replaceWithMultiple(o);return c.length?(s||uX(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};var cX={};const{maybeBody:lX}=zW,{assign:pX}=Object;cX.replaceWith=(e,t)=>{t=(e=>{var t;return(e=(t=e).__putout_replaced_with?t.__putout_replaced_with:t).node?e.node:e})(t),e?.parentPath?.isExpressionStatement()&&!e.parentPath.isProgram()&&(!function(e,t){e.__putout_replaced_with=t}(e,t),e=e.parentPath);const{comments:n,loc:r}=e.node,{currentPath:i}=lX(e,t);return i.replaceWith(t),pX(i.node,{comments:n,loc:r}),i};const{replaceWithMultiple:dX}=HW,{replaceWith:hX}=cX,{toExpression:fX}=tX;XW.replaceWith=hX,XW.replaceWithMultiple=dX,XW.toExpression=fX;const{types:mX}=st,{getBinding:yX,getBindingPath:gX}=BK,{isSimple:bX}=$K,{extract:xX}=zK,{compute:SX}=dW,{remove:TX}=SW,{getExportDefault:EX}=AW,{rename:PX}=CW,{renameProperty:vX}=wW,{setLiteralValue:AX}=IW,{getPathAfterRequires:CX}=_W,{getProperty:wX,getProperties:kX,traverseProperties:IX}=LW,{getLiteralRaw:_X}=KW,{replaceWith:NX,replaceWithMultiple:LX,toExpression:OX}=XW,{matchesPattern:DX,isImportDeclaration:FX,isExportDeclaration:MX,isStatement:BX,expressionStatement:RX}=mX;MK.getBinding=yX,MK.getBindingPath=gX,MK.getLiteralRaw=_X,MK.extract=xX,MK.compute=SX,MK.replaceWith=NX,MK.getExportDefault=EX,MK.toExpression=OX,MK.isSimple=bX,MK.rename=PX,MK.renameProperty=vX,MK.setLiteralValue=AX,MK.getProperty=wX,MK.getProperties=kX,MK.traverseProperties=IX,MK.replaceWithMultiple=LX,MK.insertBefore=(e,t)=>{e.insertBefore(t)},MK.insertAfter=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,BX(e)&&!BX(t)?e.insertAfter(RX(t)):e.insertAfter(t),e.node.comments=n},MK.isModuleExports=e=>DX(e.node||e,"module.exports");MK.findBinding=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},MK.remove=TX,MK.getPathAfterRequires=CX,MK.getPathAfterImports=e=>{const t=e.length;let n=0;for(;n<t-1&&FX(e[n]);)++n;return e[n]},MK.isESM=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(FX(e))return!0;if(MX(e))return!0}return!1};const{isSimple:jX}=MK,{types:UX}=st,{isStringAndMember:qX,isStringAndIdentifier:JX,isIdentifierAndString:$X,isCoupleLines:VX,isStringAndArray:KX,isIdentifierAndIdentifier:WX,isSimpleAndNotEmptyObject:XX}=Zj,{isObjectExpression:HX,isArrayExpression:zX,isObjectProperty:YX,isCallExpression:GX,isAwaitExpression:QX,isBooleanLiteral:ZX,isNullLiteral:eH,isStringLiteral:tH,isSpreadElement:nH,isIdentifier:rH}=UX,{round:iH}=Math,sH=!1,aH=!0;FK.isMultiLine=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!rH(n)&&n.node.name.length<t}(t,r)?sH:t.length>n&&tH(i)||t.length>3&&!HX(i)||XX(t)?aH:function(e){const t=e.get("elements");if(1!==t.length)return!1;const[n]=t;return!!(n.isIdentifier()&&n.node.name.length<15)||!(n.isStringLiteral()&&n.node.value.length>10)&&(!(n.isIdentifier()||!jX(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return nH(t)})(t)||2===t.length&&WX(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||hH(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>ZX(e)&&jX(t))(t)||(([e,t])=>eH(e)&&jX(t))(t)||(([e,t])=>{if(jX(e))return GX(t)||QX(t)})(t)||cH(e,n)||function(e){const[t,n]=e;if(e.length>2)return!1;if(!t?.isStringLiteral()||!n?.isStringLiteral())return!1;const r=t.node.value.length,i=n.node.value.length;return iH(i/r)>2}(t)||lH(e)||KX(t)&&t.length<3||qX(t)||JX(t)||$X(t)||(([e,t])=>jX(e)&&HX(t))(t)||uH(t)&&e.parentPath.isArrayExpression()&&zX(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?sH:function(e){const t=e.get("elements");if(t.length<2)return!1;for(const t of e.get("elements"))if(t.isStringLiteral()&&t.node.value.length>4)return!0;return!1}(e)||VX(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!oH(e)&&pH(e)&&!dH(e)?aH:sH};const oH=({parentPath:e})=>e.isForOfStatement(),uH=([e,t])=>tH(e)&&tH(t),cH=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!tH(a)||!tH(o))&&s<t)},lH=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!tH(s)||!tH(a))&&!VX(e)))};const pH=({parentPath:e})=>!e.isCallExpression(),dH=e=>e.find(YX);function hH(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>ZX(e)&&HX(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!nH(t[1])&&fH(t)))}FK.isIncreaseIndent=hH;const fH=e=>{const t=e.at(0),n=e.at(-1);return tH(t)&&HX(n)};FK.isCurrentNewLine=e=>!!e.isSpreadElement()||!e.isObjectExpression();var mH={};const{types:yH}=st,{isIndented:gH}=Zj,{isStringLiteral:bH,isArrayExpression:xH}=yH,SH=e=>e.parentPath.isArrayExpression();function TH(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(xH).length,r=!xH(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}mH.isInsideArray=SH,mH.isArrayIndented=e=>{const t=e.get("elements");if(TH(e))return!1;const[n]=t;return!EH(t)||!SH(e)&&gH(n)},mH.isArrayInsideArray=TH;const EH=([e,t])=>!(!bH(e)||!bH(t))&&e.node.value.length>20;var PH={};const{isNextObject:vH,isPrevObject:AH}=Zj,CH=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"];PH.isObjectAfterSimple=e=>{const{type:t}=e;return!(!vH(e)||AH(e))&&CH.includes(t)},PH.isNextSimple=e=>{const{type:t}=e.getNextSibling();return CH.includes(t)};const{types:wH}=st,{isCoupleLines:kH,isStringAndIdentifier:IH,isIdentifierAndIdentifier:_H,isStringAndArray:NH,isSimpleAndNotEmptyObject:LH,isNextObject:OH}=Zj,{isIncreaseIndent:DH,isCurrentNewLine:FH,isMultiLine:MH}=FK,{isInsideArray:BH,isArrayInsideArray:RH,isArrayIndented:jH}=mH,{isObjectAfterSimple:UH,isNextSimple:qH}=PH,{isObjectExpression:JH,isSpreadElement:$H,isStringLiteral:VH,isIdentifier:KH,isFunction:WH,isCallExpression:XH,isObjectProperty:HH}=wH,zH=e=>(e=>VH(e.getNextSibling()))(e)||(e=>VH(e.getPrevSibling()))(e),YH=e=>{if(!e.isObjectExpression())return!1;const t=e.getPrevSibling();if(!t.isSpreadElement())return!1;const n=t.get("argument");if(n.isCallExpression()){const[e]=n.get("arguments");if(WH(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},GH=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},QH=({parentPath:e})=>1===e.node.elements.length;function ZH(e){if(!$H(e)&&!KH(e)&&!XH(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}DK.ArrayExpression={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!kH(t)&&(!(!IH(n)||!QH(e))||_H(n)))},before(e,{print:t}){t.breakline()},print(e,{print:t,maybe:n},r){const{maxElementsInOneLine:i,trailingComma:s,maxElementLengthInOneLine:a}=r,o=e.get("elements"),u=!DH(e);t("[");const c=jH(e);n.indent.inc(c&&u);const l=MH(e,{elements:o,maxElementsInOneLine:i,maxElementLengthInOneLine:a}),p=o.length-1;n.print.newline(l&&o.length);for(const[r,i]of o.entries()){const a=l&&FH(i);ZH(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),JH(i)&&HH(e.parentPath)||n.print.newline((a||YH(i))&&!OH(i)&&!JH(i)),n.print.space(a&&UH(i)),!a&&r<p&&(t(","),!GH(i)&&i.isObjectExpression()&&qH(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(BH(e)&&NH(d)){const t=2===d.length,r=!zH(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else RH(e)||JH(o.at(-1))||n.indent(o.length&&l);!LH(o)||$H(o.at(-1))||XH(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!kH(t)&&(!(!IH(n)||!QH(e))||_H(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};var ez={};const{maybeTypeAnnotation:tz}=vV;ez.ArrayPattern=tz((e,{indent:t,maybe:n,print:r},i)=>{const{maxElementsInOneLine:s}=i;r("[");const a=e.get("elements");t.inc();const o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,u=a.length-1;n.print(o&&a.length,"\n");for(const[e,t]of a.entries())n.indent(o),r(t),o?r(",\n"):e<u&&(r(","),r.space());t.dec(),n.indent(a.length&&o),r("]")});var nz={};nz.AssignmentPattern={print(e,{print:t,maybe:n}){n.print(function(e){const{parentPath:t}=e;return!(!t.isObjectProperty()||t.node.shorthand)||(!!(e=>e.parentPath.isFunction())(e)||(!!t.isTSParameterProperty()||t.isArrayPattern()))}(e),"__left"),t.space(),t("="),t.space(),t("__right")}};var rz={};const{maybeTypeAnnotation:iz}=vV;rz.RestElement=iz((e,{print:t})=>{t("..."),t("__argument")});var sz={};const{hasTrailingComment:az}=Zj;sz.SpreadElement=(e,t)=>{const{print:n}=t;n("..."),n("__argument"),az(e)&&n(",")};var oz={exports:{}},uz={condition:(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ArrowFunctionExpression"===i||("ConditionalExpression"===i&&e!==r.get("test")||("LogicalExpression"===i||s.sequence))}},cz={};const{hasLeadingComment:lz}=Zj,pz=()=>{};cz.printLeadingCommentLine=pz,cz.printLeadingCommentBlock=pz,cz.maybePrintComments=(e,{print:t})=>{if(lz(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}},function(e){const{hasLeadingComment:t}=Zj,{maybeParens:n}=Vq,{condition:r}=uz,{maybePrintComments:i,printLeadingCommentLine:s,printLeadingCommentBlock:a}=cz;e.exports.SequenceExpression=n({checkParens:!1,condition:r,print(e,n){const{write:r,traverse:s,indent:a,maybe:o}=n,u=e.get("expressions"),c=u.length-1,l=t(e);l&&(a.inc(),r.breakline(),i(e,n));for(const[e,t]of u.entries())s(t),e<c&&(r(","),o.write.space(!l),o.print.breakline(l));l&&(a.dec(),r.breakline())}}),e.exports.SequenceExpression.printLeadingCommentLine=s,e.exports.SequenceExpression.printLeadingCommentBlock=a}(oz);var dz=oz.exports;dz.default;var hz={TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")}},fz={},mz={maybeSpace:(e,{print:t})=>{const{right:n}=e.node;return"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()}};const{concatenate:yz,isConcatenation:gz}=lV,{maybeSpace:bz}=mz,{maybeParens:xz}=Vq;fz.BinaryExpression=xz((e,{print:t,indent:n,maybe:r})=>{const{operator:i}=e.node;return"in"===i||"instanceof"===i?(t("__left"),t(" "),t(i),t(" "),void t("__right")):gz(e)?yz(e,{print:t,indent:n,maybe:r}):(t("__left"),t.space(),t(e.node.operator),bz(e,{print:t}),void t("__right"))});var Sz={},Tz={};const{types:Ez}=st,{isLogicalExpression:Pz,isReturnStatement:vz,isVariableDeclarator:Az}=Ez;function Cz(e){let t=0;do{++t;const n=e.get("right");Pz(n)&&(t+=Cz(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}Tz.isRootOk=e=>vz(e)||Az(e),Tz.chain=e=>{const[t]=Cz(e),[n,r]=function(e){let t=0;do{++t,e=e.parentPath}while(e.isLogicalExpression());return[t,{type:e.type}]}(e);return[r,t+n,t,n]};const{maybeParens:wz}=Vq,{chain:kz,isRootOk:Iz}=Tz;Sz.LogicalExpression=wz({condition:e=>!!e.parentPath.isUnaryExpression()||e.parentPath.isAwaitExpression(),print(e,{print:t,maybe:n},r){t("__left");const i=function(e,t){const[n,r]=kz(e);if(!Iz(n))return!1;if(r<=t.maxLogicalsInOneLine)return!1;const{operator:i}=e.node;return"||"===i||"&&"===i}(e,r);n.indent.inc(i),i?t.breakline():t.space(),n.indent.dec(i),t(e.node.operator),t.space(),t("__right")}});var _z={};const{maybeParens:Nz}=Vq;_z.ConditionalExpression=Nz((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")});var Lz={StaticBlock:(e,{print:t,traverse:n})=>{t("static "),t("{"),t.breakline();for(const t of e.get("body"))n(t);t.indent(),t("}"),t.newline()}},Oz={};function Dz(e,t,n,{source:r="source"}={}){const{print:i,maybe:s}=t,{options:a}=e.node;i("import("),i(`__${r}`),s.print(a,","),s.print.space(a),i("__options"),i(")")}Oz.ImportExpression=Dz,Oz.createImportExpression=Dz;var Fz={};const{types:Mz}=st,{isJSXElement:Bz}=Mz;Fz.ParenthesizedExpression={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!Bz(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}};const Rz=Gj,jz=QJ,Uz=i$,{ClassExpression:qz,ClassDeclaration:Jz}=u$,{CallExpression:$z,OptionalCallExpression:Vz}=S$,{NewExpression:Kz}=A$,{ObjectExpression:Wz}=L$,{ObjectProperty:Xz}=cV,{ObjectPattern:Hz}=TV,{ClassProperty:zz,ClassAccessorProperty:Yz,ClassPrivateProperty:Gz,PrivateName:Qz}=fK,{AssignmentExpression:Zz}=OK,{ArrayExpression:eY}=DK,{ArrayPattern:tY}=ez,{AssignmentPattern:nY}=nz,{RestElement:rY}=rz,{SpreadElement:iY}=sz,{SequenceExpression:sY}=dz,{TaggedTemplateExpression:aY}=hz,{BinaryExpression:oY}=fz,{LogicalExpression:uY}=Sz,{ConditionalExpression:cY}=_z,{StaticBlock:lY}=Lz,{ImportExpression:pY}=Oz,{ParenthesizedExpression:dY}=Fz;var hY={...Rz,...jz,...Uz,ArrayPattern:tY,ArrayExpression:eY,AssignmentExpression:Zz,AssignmentPattern:nY,BinaryExpression:oY,CallExpression:$z,ClassExpression:qz,ClassProperty:zz,ClassAccessorProperty:Yz,ClassPrivateProperty:Gz,ClassDeclaration:Jz,ConditionalExpression:cY,NewExpression:Kz,LogicalExpression:uY,OptionalCallExpression:Vz,ObjectExpression:Wz,ObjectProperty:Xz,ObjectPattern:Hz,ParenthesizedExpression:dY,PrivateName:Qz,RestElement:rY,ImportExpression:pY,SpreadElement:iY,SequenceExpression:sY,StaticBlock:lY,TaggedTemplateExpression:aY,ThisExpression(e,{write:t}){t("this")}},fY={exports:{}},mY={};const{types:yY}=st,{isExpressionStatement:gY,isFunction:bY,isAssignmentExpression:xY}=yY;mY.isInsideAssignNextAssignFunction=e=>{const{expression:t}=e.node;if(!xY(t))return!1;const n=e.getNextSibling();if(bY(n)&&n.node.leadingComments)return!0;if(!gY(n))return!1;const{leadingComments:r}=n.node;return!!r&&(!!xY(n.node.expression)&&bY(n.node.expression.right))};var SY={};const{types:TY}=st,{hasTrailingComment:EY}=Zj,{isBlockStatement:PY,isProgram:vY,isIfStatement:AY}=TY;SY.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;EY(u)||(r||u.node||!AY(c)&&!PY(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},SY.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();EY(s)||(PY(e.parentPath)&&!vY(e.parentPath.parentPath)&&i(),r())},function(e){const{types:t}=st,{isNext:n,isLast:r,isParentBlock:i,isParentLast:s,isNewlineBetweenSiblings:a,satisfy:o,noTrailingComment:u,hasTrailingComment:c,isCoupleLines:l,isInsideLabel:p}=Zj,{isInsideAssignNextAssignFunction:d}=mY,{printLeadingCommentLine:h,printLeadingCommentBlock:f}=SY,{isCallExpression:m,isExpressionStatement:y,isAssignmentExpression:g}=t,b=({parentPath:e})=>e.isReturnStatement(),x=(e=>(...t)=>!e(...t))(b),S=o([function(e){return!r(e)&&!s(e)},i,n,function(e){return e.findParent(n)}]),T=o([a,function(e){return e.parentPath.get("body")===e},function(e){const t=e.get("expression");if(!t.isStringLiteral())return!1;const{value:n}=e.node.expression;return"use strict"===n},e=>e.getNextSibling().isIfStatement()]);e.exports.ExpressionStatement={beforeIf:e=>!b(e)&&!p(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:r,store:i,indent:s}){const a=b(e);if(t("__expression"),r.print(!a,";"),n(e)&&!a&&T(e)){t.newline();const r=n(e)&&u(e)||function(e){if(g(e.node.expression))return!1;const t=e.getNextSibling();if(!y(t))return!1;const{expression:n}=t.node;return m(n)}(e)||function(e){const{expression:t}=e.node;return!!m(t)&&(!!m(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);r&&s(),i(!0)}},afterIf:e=>!!S(e)||(!(!c(e)||!r(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:i,indent:s}){c(e)&&r(e)&&l(e)&&t.breakline(),c(e)&&!l(e)||function({parentPath:e}){if(!e.isIfStatement())return!1;const t=e.parentPath;if(!t.isIfStatement())return!1;const n=t.parentPath;return!!n.isIfStatement()&&r(n)}(e)||x(e)&&(d(e)&&s(),t.newline(),n.markAfter(i(),e))}},e.exports.ExpressionStatement.printLeadingCommentLine=h,e.exports.ExpressionStatement.printLeadingCommentBlock=f}(fY);var CY=fY.exports;CY.default;var wY={},kY={maybeSpaceAfterKeyword:(e,{write:t})=>{const{declarations:n}=e.node;if(!n.length)return;const{id:r}=n[0];if("ArrayPattern"===r.type||"ObjectPattern"===r.type)return t.space();t(" ")}};const{types:IY}=st,{isNext:_Y,isCoupleLines:NY,isNewlineBetweenSiblings:LY,exists:OY,noTrailingComment:DY}=Zj,{hasPrevNewline:FY}=TU,{maybeSpaceAfterKeyword:MY}=kY,{isConcatenation:BY}=lV,{parseLeadingComments:RY}=xU,{maybeDeclare:jY}=c$,{isExportDeclaration:UY}=IY,qY=e=>e.parentPath.isTSModuleBlock(),JY=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),$Y=e=>e.parentPath.isSwitchCase();function VY(e){return!_Y(e)&&e.parentPath.isBlockStatement()}function KY(e){return!zY(e.parentPath)&&e.parentPath.isExportDeclaration()}function WY(e){return!zY(e)&&NY(e)}function XY(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!OY(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!zY(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function HY(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!OY(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&NY(t))}wY.VariableDeclaration={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(FY(e))return!1;if(FY(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!UY(e.parentPath)&&NY(e))},before(e,{print:t}){t.breakline()},print:jY((e,{maybe:t,store:n,write:r,traverse:i,print:s,indent:a},o)=>{const{maxVariablesInOneLine:u}=o;t.indent((e=>/^(Program|BlockStatement|TSModuleBlock|SwitchCase)$/.test(e.parentPath.type))(e)),r(e.node.kind),MY(e,{write:r});const c=e.get("declarations"),l=c.length-1;t.indent.inc(l);for(const[e,n]of c.entries()){const p=n.get("id"),d=n.get("init"),h=e===l;if(i(p),OY(d)&&(r.space(),r("="),t.write.space(!BY(d)),i(d)),!h){const n=c[e+1];if(r(","),!n.node.leadingComments){t.write.breakline(l>u),t.write.space(l<=u);continue}RY(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(JY(e)||$Y(e)||qY(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;$Y(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),JY(e)&&_Y(e)&&(DY(e)||LY(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[YY,GY,VY,WY,QY,HY,XY,LY,KY,qY],after(e,{maybe:t,store:n}){const r=n();if(zY(e.parentPath)&&!e.parentPath.isBlockStatement()||!JY(e)&&!qY(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};const zY=e=>e.parentPath?.isProgram()&&!_Y(e);const YY=e=>e.getNextSibling().isIfStatement(),GY=e=>e.getNextSibling().isFunctionDeclaration(),QY=e=>{const t=e.getNextSibling();if(!t.isExpressionStatement())return!1;const{parentPath:n}=e;return!(n.isBlockStatement()&&n.node.body.length<3)&&t.get("expression").isAssignmentExpression()};var ZY={};const{types:eG}=st,{markAfter:tG}=TU,{exists:nG,isNext:rG,isInsideIf:iG}=Zj,{isBlockStatement:sG,isFunctionDeclaration:aG,isStatement:oG}=eG;ZY.IfStatement={print:(e,{indent:t,print:n,maybe:r,write:i,traverse:s})=>{const{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),n("if"),n.space(),n("("),n("__test"),n(")");const u=e.get("consequent"),c=e.get("alternate"),l=u.isBlockStatement(),p=u.isVariableDeclaration();if(l)n.space(),n(u),(iG(e.parentPath)||(({parentPath:e})=>"BlockStatement"===e.type&&"BlockStatement"===e.parentPath.type)(e))&&r.print.newline((e=>!e.node.body.length)(u));else{const t=!(e=>e.get("consequent").isEmptyStatement())(e);r.print.newline(t),r.indent.inc(t),r.indent(p),n(u),r.indent.dec(t)}if(c.isBlockStatement()?(i.space(),i("else"),i.space(),s(c)):c.isIfStatement()?(c.get("consequent").isBlockStatement()?i.space():t(),i("else "),s(c)):nG(c)&&(r.write.newline(p),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!rG(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||oG(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!sG(t)&&!!sG(e.node.consequent)&&!e.node.consequent.body.length&&aG(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[rG],after:(e,{print:t})=>{t.linebreak(),tG(e)}};var uG={};const{hasPrevNewline:cG,markAfter:lG,markBefore:pG,isMarkedAfter:dG}=TU,{isFirst:hG,isNext:fG,isLast:mG}=Zj;uG.ForOfStatement={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!hG(e)&&!cG(e))},before(e,{print:t}){t.linebreak(),pG(e)},print(e,{indent:t,print:n,maybe:r,traverse:i}){const{node:s}=e;t(),n("for"),r.print(s.await," await"),n.space(),n("("),n("__left"),n(" of "),n("__right"),n(")");const a=e.get("body");if(a.isBlockStatement()){n.space(),n("__body");const{length:t}=a.node.body;return void r.print.newline(!t&&!mG(e)&&!fG(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(dG(a),e)},afterIf:fG,after(e,{print:t}){t.linebreak(),lG(e)}};var yG={},gG={};const{exists:bG}=Zj;gG.insideIfWithNoBody=e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!bG(t)};var xG={getDirectives:e=>e.node.directives?e.get("directives"):[]},SG={};const{types:TG}=st,{isLooksLikeChain:EG}=QU,{isReturnStatement:PG,isExpressionStatement:vG,isMemberExpression:AG,isCallExpression:CG}=TG;function wG(e){return!!AG(e)&&vG(e.parentPath.parentPath)}function kG(e){if(!CG(e))return!1;const{parentPath:t}=e;return!!PG(t)||vG(t)}SG.isCallInsideChain=e=>{if(!CG(e.parentPath.parentPath))return!1;const t=e.find(wG);if(t)return EG(t);const n=e.find(kG);if(!n)return!1;const r=n.get("callee");return EG(r)};const{types:IG}=st,{isNext:_G,isParentProgram:NG,isLast:LG,exists:OG,satisfy:DG}=Zj,{markAfter:FG}=TU,{parseComments:MG}=xU,{insideIfWithNoBody:BG}=gG,{getDirectives:RG}=xG,{isCallInsideChain:jG}=SG,{isArrowFunctionExpression:UG,isObjectMethod:qG,isFunctionDeclaration:JG,isExportDeclaration:$G,isDoWhileStatement:VG,isBlockStatement:KG,isArrayExpression:WG}=IG,XG=e=>UG(e)||qG(e);yG.BlockStatement={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=RG(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!WG(t))return!1;const{length:n}=t.node.elements;return 3===n})(e);s.indent.inc(!l),a("{"),((e=>e.node.body[0])(e)||(e=>e.node.directives?.[0])(e))&&a.newline();for(const e of c)o(e);s.write.linebreak(c.length&&u.length);const p=jG(e);s.indent.inc(p);for(const e of u)o(e);MG(e,t,n),s.indent.dec(!l),s.indent.dec(l),s.indent(u.length),s.indent.inc(l),a("}"),s.indent.dec(p);const{parentPath:d}=e;qG(d)&&s.write(_G(d)||r,",")},afterIf:function(e){return ZG(e)?GG:eQ(e)?QG:HG(e)?GG:zG(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||YG(e)||LG(e)||function(e){return!!JG(e.parentPath)&&(!!$G(e.parentPath?.parentPath)&&!_G(e.parentPath?.parentPath))}(e)?QG:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&OG(n)}(e)},after(e,{write:t}){t.newline(),FG(e.parentPath)}};const HG=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(XG),zG=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!_G(t)},YG=({parentPath:e})=>/FunctionExpression/.test(e.type),GG=!0,QG=!1,ZG=({parentPath:e})=>KG(e),eQ=DG([({parentPath:e})=>VG(e),e=>!_G(e)&&(!_G(e.parentPath)&&NG(e.parentPath)),BG]);var tQ={},nQ={maybeSpaceAfterKeyword:(e,{print:t},n)=>{const{roundBraces:r}=n,{argument:i}=e.node;if(!i)return;const{type:s}=i;return"SequenceExpression"===s&&r.sequence||"StringLiteral"===s||"TemplateLiteral"===s||"ArrayExpression"===s||"ObjectExpression"===s||"UnaryExpression"===s&&"!"===i.operator||"ArrowFunctionExpression"===s&&r.arrow?t.space():void t(" ")}};const{types:rQ}=st,{isInsideLabel:iQ}=Zj,{isPrevBody:sQ,noTrailingComment:aQ,isLast:oQ}=Zj,{hasPrevNewline:uQ}=TU,{maybeSpaceAfterKeyword:cQ}=nQ,{isJSXElement:lQ}=rQ;tQ.ReturnStatement={beforeIf:e=>!uQ(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||sQ(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;if(r.indent(!iQ(e)),i("return"),cQ(e,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return lQ(t)&&n?.length}(e))return i("("),i.breakline(),i("__argument"),void i(");");i("__argument"),i(";")},afterIf:e=>!!(({parentPath:e})=>e.isIfStatement()&&e.node.alternate)(e)||!oQ(e)&&(!oQ(e.parentPath)&&aQ(e)),after(e,{print:t}){t.newline()}};var pQ={};const{isNext:dQ}=Zj;pQ.TryStatement={print(e,{print:t}){const n=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),n.node&&(t.space(),t("finally"),t.space(),t(n),t.newline())},afterSatisfy:()=>[dQ],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}},pQ.CatchClause=(e,{print:t,maybe:n})=>{const r=e.get("param"),i=e.get("body");t.space(),t("catch"),r.node?(t("("),t(r),t(")"),t.space()):t.space(),t(i),n.print.newline(function(e){return e.parentPath.parentPath.isBlockStatement()}(e))};var hQ={};const{isNext:fQ,isInsideIf:mQ}=Zj,yQ=e=>e.parentPath.isBlockStatement();hQ.DebuggerStatement={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[fQ,yQ,mQ],after(e,{print:t}){t.newline()}};var gQ={};const{exists:bQ}=Zj,{markAfter:xQ}=TU;gQ.ForStatement={print(e,{print:t,maybe:n,indent:r}){const{test:i,update:s,body:a}=e.node;if(r(),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(i),t("__test"),t(";"),n.print.space(s),t("__update"),t(")"),a.body)t.space(),t("__body");else{const r=!e.get("body").isEmptyStatement();n.print.newline(r),n.indent.inc(r),t("__body"),n.indent.dec(r)}},afterIf:e=>bQ(e.getNextSibling()),after(e,{print:t}){t.linebreak(),xQ(e)}};var SQ={exports:{}},TQ={parseImportSpecifiers:e=>{const t=[],n=[],r=[];for(const i of e)"ImportDefaultSpecifier"!==i.type?"ImportNamespaceSpecifier"!==i.type?"ImportSpecifier"!==i.type||r.push(i):n.push(i):t.push(i);return{defaults:t,namespaces:n,imports:r}}},EQ={ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},maybePrintAttributes:(e,t)=>{if(PQ(e))return vQ(e,"assert",t);vQ(e,"with",t)}};const PQ=e=>e.node.extra?.deprecatedAssertSyntax;function vQ(e,t,{write:n,traverse:r,indent:i}){const s=e.get("attributes");if(s.length){n(` ${t}`),n.space(),n("{"),n.breakline(),i.inc();for(const e of s)i(),r(e),n.newline();i.dec(),n("}")}}var AQ={};const{types:CQ}=st,{isExportDeclaration:wQ}=CQ;AQ.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()},AQ.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!wQ(s)),r()},function(e){const{parseImportSpecifiers:t}=TQ,{markAfter:n}=TU,{isLast:r,isNext:i}=Zj,{maybePrintAttributes:s,ImportAttribute:a}=EQ,{printTrailingCommentBlock:o,printTrailingCommentLine:u}=AQ;e.exports.ImportAttribute=a,e.exports.ImportDeclaration={print(e,n,r){const{print:a,maybe:o,write:u,traverse:c,indent:l}=n,{phase:p}=e.node,d="type"===e.node.importKind,h=e.get("specifiers");l(),u("import"),o.write(d," type"),o.write(p,` ${p}`);let f=!1;const m=h.length-1,{defaults:y,namespaces:g,imports:b}=t(h);o.write(h.length," ");for(const e of y)c(e.get("local")),o.write(m,","),o.write.space(m);for(const e of g)u("* as "),c(e.get("local"));const x=function(e,t){const{maxSpecifiersInOneLine:n,maxPropertiesLengthInOneLine:r}=t;for(const{node:t}of e){if(t.imported.name!==t.local.name)return 1;if(t.imported.name.length>=r)return 1}return n}(b,r),S=b.length-1;for(const[e,t]of b.entries()){const n=e===S,r=!n,{imported:i,local:s}=t.node;if(l.inc(),o.write(!f,"{"),o.write.breakline(S>=x),f=!0,c(t.get("imported")),i.name!==s.name&&(u(" as "),u(s.name)),S<x&&r&&(o.write(m,","),o.write.space(m)),S>=x){o.write(m,",");const t=e===m,n=e===m-1;o.write.newline(n&&y.length),o.write.newline(t)}l.dec(),o.write(n,"}")}o.write(h.length," from"),a.space(),a("__source"),s(e,n),a(";"),i(e)&&a.newline()},afterIf:e=>!r(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),n(e)}},e.exports.ImportDeclaration.printTrailingCommentBlock=o,e.exports.ImportDeclaration.printTrailingCommentLine=u}(SQ);var kQ=SQ.exports;kQ.default;var IQ={};const{types:_Q}=st,{isParentBlock:NQ}=Zj,{markAfter:LQ,isMarkedAfter:OQ,hasPrevNewline:DQ}=TU,{isNewlineBetweenSiblings:FQ,exists:MQ,isNext:BQ,isLast:RQ}=Zj,{isExportNamespaceSpecifier:jQ,isVariableDeclaration:UQ,isExportNamedDeclaration:qQ}=_Q,JQ={maxOneLineSpecifiers:2};IQ.ExportSpecifier=(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},IQ.ExportNamespaceSpecifier=(e,{print:t})=>{t("* as "),t("__exported")},IQ.ExportNamedDeclaration={beforeIf(e){const t=e.getPrevSibling();return!DQ(e)&&UQ(t)},before(e,{print:t}){t.linebreak()},print(e,{print:t,traverse:n,indent:r,maybe:i},s){const{trailingComma:a}=s,{exportKind:o}=e.node,u=e.get("specifiers"),{maxOneLineSpecifiers:c}=JQ,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),jQ(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!RQ(e));const p=u.length,d=!MQ(l)||p>c;if(u&&!e.node.declaration){if(t.space(),t("{"),u.length){r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of u.entries()){const o="type"===s.node.exportKind,u=r<e;i.indent(d),i.print(o,"type "),n(s),u&&!d?t(", "):d&&i.print(u||a,","),i.print.newline(d)}r.dec(),r()}t("}");const s=e.get("source");return MQ(s)&&(t(" from "),n(s)),t(";"),void i.print.newline(BQ(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!RQ(e)&&(!(e=>OQ(e.get("declaration")))(e)&&(!!FQ(e)||NQ(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();qQ(r)&&n(),t.newline(),LQ(e)}};var $Q={ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()}},VQ={};const{isNext:KQ}=Zj,{markAfter:WQ}=TU;VQ.WhileStatement={print(e,{print:t,indent:n}){n(),t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>KQ(e),after(e,{print:t}){t.linebreak(),WQ(e)}};var XQ={};const{isNext:HQ,exists:zQ,isLast:YQ}=Zj,{parseLeadingComments:GQ}=xU;XQ.SwitchStatement={print(e,t,n){const{print:r,maybe:i,indent:s,write:a,traverse:o}=t;s(),r("switch"),r("("),r("__discriminant"),r(") {"),r.newline();const u=e.get("cases"),c=u.length-1;for(const[e,l]of u.entries()){const u=l.get("test");s(),GQ(l,t,n),zQ(u)?(a("case "),o(u)):a("default"),r(":");const p=l.get("consequent"),d=l.get("consequent.0")?.isBlockStatement();i.indent.inc(!d),i.print.newline(!d&&p.length);for(const e of p)e.isBlockStatement()?(r.space(),r(e)):r(e);i.indent.dec(!d),i.write.linebreak(e<c)}r.indent(),r("}"),HQ(e)||YQ(e)||r.newline()},afterSatisfy:()=>[HQ],after(e,{print:t}){t.breakline(),t.newline()}};var QQ={ForInStatement:(e,{print:t,indent:n})=>{n(),t("for"),t.space(),t("("),t("__left"),t(" in "),t("__right"),t(")"),e.get("body").isBlockStatement()&&t.space(),t("__body")}},ZQ={};const{types:eZ}=st,{isNext:tZ}=Zj,{isVariableDeclaration:nZ,isFunction:rZ}=eZ;ZQ.ExportDefaultDeclaration={print(e,{print:t,traverse:n,maybe:r}){const i=e.get("declaration");t("export default "),n(i),r.print(function(e){return!e.isClassDeclaration()&&!e.isFunctionDeclaration()}(i),";")},afterSatisfy:()=>[tZ],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!nZ(t))return!1;const{declaration:n}=e.node;return rZ(n)}(e))}};var iZ={};const{isParentBlock:sZ,isNextParent:aZ,isInsideIf:oZ,isInsideLabel:uZ}=Zj,cZ=e=>e.parentPath.isSwitchCase();iZ.BreakStatement={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!uZ(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[sZ,aZ,cZ,oZ]};var lZ={};const{isLast:pZ}=Zj,dZ=e=>!pZ(e);lZ.DoWhileStatement={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[dZ],after(e,{print:t}){t.newline()}};var hZ={};const{parseComments:fZ}=xU,{getDirectives:mZ}=xG,{hasCoupleTrailingComments:yZ}=Zj;hZ.Program=(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),fZ(e,t,n);const o=mZ(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&yZ(r.at(-1))||a.endOfFile()};var gZ={};const{isInsideLabel:bZ}=Zj;gZ.ContinueStatement=(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!bZ(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()};var xZ={};const{isInsideLabel:SZ}=Zj;xZ.LabeledStatement=(e,{print:t,maybe:n})=>{n.indent(!SZ(e)),t("__label"),t(":"),t.space(),t("__body")};var TZ={};const{isLast:EZ}=Zj;TZ.EmptyStatement=(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!EZ(e)&&!EZ(r))};const{ExpressionStatement:PZ}=CY,{VariableDeclaration:vZ}=wY,{IfStatement:AZ}=ZY,{ForOfStatement:CZ}=uG,{BlockStatement:wZ}=yG,{ReturnStatement:kZ}=tQ,IZ=pQ,{DebuggerStatement:_Z}=hQ,{ForStatement:NZ}=gQ,LZ=kQ,OZ=IQ,{ExportAllDeclaration:DZ}=$Q,{WhileStatement:FZ}=VQ,{SwitchStatement:MZ}=XQ,{ForInStatement:BZ}=QQ,{ExportDefaultDeclaration:RZ}=ZQ,{BreakStatement:jZ}=iZ,{DoWhileStatement:UZ}=lZ,{Program:qZ}=hZ,{ContinueStatement:JZ}=gZ,{LabeledStatement:$Z}=xZ,{EmptyStatement:VZ}=TZ,{ExportNamespaceSpecifier:KZ,ExportSpecifier:WZ}=OZ;var XZ={...LZ,...OZ,BlockStatement:wZ,DoWhileStatement:UZ,ExpressionStatement:PZ,ExportSpecifier:WZ,ExportNamespaceSpecifier:KZ,ExportDefaultDeclaration:RZ,ExportAllDeclaration:DZ,VariableDeclaration:vZ,IfStatement:AZ,ForStatement:NZ,ForInStatement:BZ,ForOfStatement:CZ,ReturnStatement:kZ,DebuggerStatement:_Z,LabeledStatement:$Z,Program:qZ,EmptyStatement:VZ,InterpreterDirective(e,{print:t}){t(`#!${e.node.value}\n`),t.newline()},SwitchStatement:MZ,...IZ,BreakStatement:jZ,ContinueStatement:JZ,WhileStatement:FZ},HZ={TemplateLiteral:(e,{write:t,traverse:n})=>{t("`");let r=0;const i=e.get("expressions");for(const s of e.node.quasis){t(s.value.raw);const e=i[r++];e&&(t("${"),n(e),t("}"))}t("`")}},zZ={},YZ={maybeDecorators:e=>e.node.decorators?e.get("decorators"):[]};const{maybeDecorators:GZ}=YZ,{maybeParens:QZ}=Vq,{maybeTypeAnnotation:ZZ}=vV;zZ.Identifier=QZ(ZZ((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of GZ(e))i(t),s(" ");n(o),r.write(u,"?")}));var e0={exports:{}};!function(e){const{types:t}=st,{isMemberExpression:n}=t;e.exports.Decorator=(e,{print:t,maybe:r})=>{const{expression:i}=e.node,s=n(i);t("@"),r.print(s,"("),t("__expression"),r.print(s,")")},e.exports.Decorator.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()}}(e0);var t0=e0.exports;t0.default;var n0={StringLiteral:(e,{write:t},n)=>{const{value:r,raw:i=`'${r}'`}=e.node;if(e.parentPath.isJSXAttribute())return void t(`"${r}"`);const s=i.slice(1,-1);t.quote(),t(r0(s,n)),t.quote()}};const r0=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?i0(r,{slash:"\\",quote:"'"}):t?i0(r,{slash:"\\",quote:'"'}):e},i0=(e,{slash:t,quote:n})=>{const r=[];for(const[i,s]of e.entries()){const a=e[i-1];s!==n||a===t?r.push(s):r.push(`${t}${s}`)}return r.join("")};var s0={DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()}},a0={VoidPattern:(e,{write:t})=>{t("void")}};const{TemplateLiteral:o0}=HZ,{Identifier:u0}=zZ,{Decorator:c0}=t0,{StringLiteral:l0}=n0,{DirectiveLiteral:p0}=s0,{VoidPattern:d0}=a0;var h0={Identifier:u0,Decorator:c0,DirectiveLiteral:p0,TemplateLiteral:o0,VoidPattern:d0,BigIntLiteral(e,{write:t}){t(e.node.raw)},NumericLiteral(e,{write:t}){const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},Directive(e,{print:t,maybe:n}){n.print.breakline(e.node.leadingComments?.length),t("__value")},BooleanLiteral(e,{write:t}){t(e.node.value)},StringLiteral:l0,RegExpLiteral(e,{print:t}){const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},NullLiteral(e,{write:t}){t("null")},MetaProperty(e,{write:t}){t("import.meta")},Super(e,{write:t}){t("super")}},f0={};f0.TSTypeLiteral=(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const t=e.get("members");return(1!==t.length||!e.parentPath.isTSTypeParameterInstantiation())&&(t.length&&t[0].node.typeAnnotation)}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")};var m0={};const{isLast:y0,isNext:g0,isNextParent:b0}=Zj,{markAfter:x0}=TU,{maybeDeclare:S0}=c$;m0.TSTypeAliasDeclaration={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:S0((e,{print:t,maybe:n,store:r})=>{const i=e.get("typeAnnotation").isTSConditionalType();t("type "),t("__id"),t("__typeParameters"),t.space(),t("="),n.print.space(!i),t("__typeAnnotation"),t(";");const s=r(y0(e)||y0(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!g0(e)&&!b0(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),x0(e)}};var T0={};const{types:E0}=st,{isTSConditionalType:P0}=E0;T0.TSMappedType=(e,{print:t,indent:n,maybe:r})=>{const{readonly:i,optional:s,nameType:a,typeAnnotation:o}=e.node;t("{"),t.newline(),n.inc(),n(),i&&(r.print("-"===i,"-"),t("readonly ")),t("["),t("__key"),t(" "),t("in"),t(" "),t("__constraint"),a&&(t(" as"),r.space(!P0(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")};var v0={TSConditionalType:(e,{print:t,indent:n})=>{n.inc(),t.breakline(),t("__checkType"),t(" extends "),t("__extendsType"),n.inc(),t.breakline(),t("? "),t("__trueType"),t.breakline(),t(": "),t("__falseType"),n.dec(),n.dec()}},A0={};const{exists:C0}=Zj;A0.TSTypeParameter=(e,{write:t,traverse:n})=>{const r=e.get("constraint");if(e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),!C0(r))return;t(" extends "),n(r);const i=e.get("default");C0(i)&&(t.space(),t("="),t.space(),n(i))};var w0={};const{printParams:k0}=bU,{isNext:I0}=Zj,{maybeDeclare:_0}=c$,N0=e=>e.parentPath.isExportNamedDeclaration();w0.TSDeclareFunction={beforeIf:e=>!N0(e),before:(e,{indent:t})=>{t()},print:_0((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),k0(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(I0(e)||I0(e.parentPath)||N0(e))&&t.newline()}};var L0={};const{printParams:O0}=bU;L0.TSDeclareMethod=(e,t,n)=>{const{print:r}=t,{accessibility:i,abstract:s,returnType:a}=e.node;i&&(r(i),r(" ")),s&&(r("abstract"),r(" ")),r("__key"),O0(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()};var D0={};const{isNext:F0}=Zj,{maybeDeclare:M0}=c$;D0.TSModuleDeclaration={print:M0((e,{print:t})=>{const{kind:n}=e.node;e.get("id").isStringLiteral()?t("module "):"namespace"===n&&t("namespace "),t("__id"),t.space(),t("__body")}),afterSatisfy:()=>[F0],after(e,{print:t}){t.newline(),t.newline()}},D0.TSModuleBlock=(e,{print:t,traverse:n,indent:r})=>{t("{"),t.breakline(),r.inc();for(const t of e.get("body"))n(t);r.dec(),t("}")};var B0={};const{types:R0}=st,{isNext:j0,isNextParent:U0}=Zj,{maybeDeclare:q0}=c$,{markAfter:J0}=TU,{isTSTypeAliasDeclaration:$0,isExportNamedDeclaration:V0,isTSModuleBlock:K0}=R0;B0.TSInterfaceDeclaration={print:q0((e,{print:t,maybe:n})=>{const{node:r}=e;if(n.indent(!V0(e.parentPath)),t("interface "),t("__id"),r.extends){t(" extends ");const r=e.get("extends"),i=r.length-1;for(const[e,s]of r.entries())t(s),n.print(e<i,", ")}t("__typeParameters"),t("__body")}),afterSatisfy:()=>[j0,U0],after(e,{print:t}){t.linebreak();const n=V0(e.parentPath);n&&(e=>K0(e.parentPath.parentPath))(e)&&J0(e),n||$0(e)||t.newline()}};var W0={};const{types:X0}=st,{maybeParens:H0}=Vq,{isVariableDeclarator:z0,isObjectExpression:Y0}=X0;W0.TSAsExpression=H0((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!z0(e.parentPath)&&Y0(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});var G0={};const{parseComments:Q0}=xU;G0.TSInterfaceBody=(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(r.length),a.inc(),Q0(e,t,n);for(const e of r)a(),i(e);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))};var Z0={TSIntersectionType:(e,{traverse:t,write:n})=>{const r=e.get("types"),i=r.length-1;for(const[e,s]of r.entries()){const r=e===i;t(s),r||(n.space(),n("&"),n.space())}}},e1={};const{maybePrintTypeAnnotation:t1}=vV,{hasTrailingComment:n1,isNext:r1}=Zj,{printKey:i1}=bJ;e1.TSPropertySignature=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),i1(e,t),n.print(i,"?"),t1(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),r1(e)&&n1(e)&&r.newline()};var s1={},a1={hasReturnType:e=>e.node.returnType,printReturnType:(e,{traverse:t})=>{t(e.get("returnType"))}};const{printParams:o1}=bU,{printReturnType:u1}=a1,{maybeParens:c1}=Vq;s1.TSFunctionType=c1((e,t,n)=>{const{print:r}=t;o1(e,t,n),r.space(),r("=>"),r.space(),u1(e,t)});var l1={};const{isNext:p1,isNextParent:d1,isLast:h1}=Zj,{markAfter:f1}=TU;l1.TSEnumDeclaration={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:n,indent:r}){t("enum "),t("__id"),t(" "),t("{"),r.inc(),t.newline();for(const r of e.get("body.members"))n(r),t(","),t.newline();r.dec(),r(),t("}"),h1(e)||(t.newline(),f1(e))},afterSatisfy:()=>[p1,d1],after(e,{print:t}){t.linebreak()}};var m1={TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))}},y1={};y1.TSTupleType=(e,{write:t,traverse:n,indent:r,maybe:i})=>{const s=e.get("elementTypes");t("["),r.inc();const a=function(e){let t;for(const n of e){if(t&&n.type!==t)return!1;({type:t}=n)}return!0}(s);i.write.newline(a&&s.length);const o=s.length-1;for(const[e,t]of s.entries())i.indent(a),n(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);r.dec(),i.indent(a&&s.length),t("]")};var g1={TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")}},b1={};const{printParams:x1}=bU,{printReturnType:S1}=a1;b1.TSConstructorType=(e,t,n)=>{const{print:r}=t;r("new"),r(" "),x1(e,t,n),r.space(),r("=>"),r.space(),S1(e,t)};var T1={};const{printReturnType:E1}=a1,{printParams:P1}=bU;T1.TSCallSignatureDeclaration=(e,t,n)=>{const{print:r}=t;P1(e,t,n),r(":"),r.space(),E1(e,t),r(";"),r.newline()};var v1={};const{printParams:A1}=bU,{hasReturnType:C1,printReturnType:w1}=a1;v1.TSConstructSignatureDeclaration=(e,t,n)=>{const{write:r}=t;r("new"),A1(e,t,n),C1(e)&&(r(":"),r.space(),w1(e,t)),r(";"),r.newline()};var k1={};const{printParams:I1}=bU,{printKind:_1}=TJ,{hasReturnType:N1,printReturnType:L1}=a1,{printKey:O1}=bJ;k1.TSMethodSignature=(e,t,n)=>{const{write:r}=t;_1(e,t),O1(e,t),I1(e,t,n),N1(e)&&(r(":"),r.space(),L1(e,t)),r(";"),r.newline()};var D1={};const{maybeParens:F1}=Vq;D1.TSUnionType=F1({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:n})=>{const r=e.get("types"),{length:i}=r;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=n?function(e,{traverse:t,write:n}){const r=e.length-1;for(const[i,s]of e.entries())t(s),i<r&&(n.space(),n("|"),n.space())}(r,t):function(e,{traverse:t,write:n,indent:r}){r.inc();for(const r of e)n.breakline(),n("|"),n.space(),t(r);r.dec()}(r,t)}});var M1={};const{createImportExpression:B1}=Oz;M1.TSImportType=(e,t,n)=>{B1(e,t,n,{source:"argument"})};var R1={};const{isNext:j1}=Zj;R1.TSExportAssignment={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[j1],after:(e,{print:t})=>{t.newline()}};var U1={TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")}},q1={};const{maybeParens:J1}=Vq;q1.TSInferType=J1((e,{print:t})=>{t("infer "),t("__typeParameter")});var $1={exports:{}};!function(e){const{hasLeadingComment:t}=Zj;e.exports.TSParameterProperty=(e,{print:n,maybe:r,indent:i})=>{const{decorators:s,readonly:a,accessibility:o}=e.node,u=s?.length>1;if(r.print.breakline(u),s){for(const t of e.get("decorators"))r.indent(u),n(t);r.print.breakline(u),t(e)?n(" "):i()}o&&(n(o),n.space()),a&&(n("readonly"),n.space()),n("__parameter"),t(e)&&!e.node.decorators&&n.breakline()},e.exports.TSParameterProperty.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{indent:i,print:s}=t;return e.node.decorators?(r(),void s.breakline()):e.parentPath.isClassMethod()?(i.inc(),s.breakline(),r(),s.breakline(),void i.dec()):void 0}}($1);var V1=$1.exports;V1.default;var K1={};const{maybeParens:W1}=Vq;K1.TSTypeQuery=W1((e,{print:t})=>{t("typeof "),t("__exprName")});var X1={TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")}};const{isNext:H1}=Zj,{TSTypeLiteral:z1}=f0,{TSTypeAliasDeclaration:Y1}=m0,{TSMappedType:G1}=T0,{TSConditionalType:Q1}=v0,{TSTypeParameter:Z1}=A0,{TSDeclareFunction:e2}=w0,{TSDeclareMethod:t2}=L0,{TSModuleDeclaration:n2,TSModuleBlock:r2}=D0,{TSInterfaceDeclaration:i2}=B0,{TSAsExpression:s2}=W0,{TSInterfaceBody:a2}=G0,{TSIntersectionType:o2}=Z0,{TSPropertySignature:u2}=e1,{TSFunctionType:c2}=s1,{printParams:l2}=bU,{TSEnumDeclaration:p2}=l1,{TSEnumMember:d2}=m1,{TSTupleType:h2}=y1,{TSNamedTupleMember:f2}=g1,{TSConstructorType:m2}=b1,{TSCallSignatureDeclaration:y2}=T1,{TSConstructSignatureDeclaration:g2}=v1,{TSMethodSignature:b2}=k1,{TSUnionType:x2}=D1,{maybePrintTypeAnnotation:S2}=vV,{TSImportType:T2}=M1,{TSExportAssignment:E2}=R1,{TSTypeReference:P2}=U1,{TSInferType:v2}=q1,{TSParameterProperty:A2}=V1,{TSTypeQuery:C2}=K1,{TSParenthesizedType:w2}=X1;var k2={TSAsExpression:s2,TSExportAssignment:E2,TSTypeLiteral:z1,TSTypeAliasDeclaration:Y1,TSTypeParameter:Z1,TSMappedType:G1,TSConditionalType:Q1,TSDeclareFunction:e2,TSModuleDeclaration:n2,TSModuleBlock:r2,TSIntersectionType:o2,TSImportType:T2,TSUnionType:x2,TSTypeQuery:C2,TSBigIntKeyword(e,{write:t}){t("bigint")},TSNullKeyword(e,{write:t}){t("null")},TSSymbolKeyword(e,{write:t}){t("symbol")},TSNeverKeyword(e,{write:t}){t("never")},TSUnknownKeyword(e,{write:t}){t("unknown")},TSObjectKeyword(e,{write:t}){t("object")},TSLiteralType(e,{print:t}){t("__literal")},TSTupleType:h2,TSInferType:v2,TSRestType(e,{print:t}){t("..."),t("__typeAnnotation")},TSTypeParameterDeclaration(e,t,n){l2(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypeParameterInstantiation(e,t,n){l2(e,t,n,{braceOpen:"<",braceClose:">"})},TSArrayType(e,{print:t}){t("__elementType"),t("[]")},TSTypeReference:P2,TSTypeOperator(e,{write:t,print:n}){const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSInterfaceDeclaration:i2,TSInterfaceBody:a2,TSTypeAssertion(e,{print:t}){t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSUndefinedKeyword(e,{write:t}){t("undefined")},TSBooleanKeyword(e,{write:t}){t("boolean")},TSSatisfiesExpression(e,{print:t}){t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSNumberKeyword(e,{write:t}){t("number")},TSIndexedAccessType(e,{print:t}){t("__objectType"),t("["),t("__indexType"),t("]")},TSStringKeyword(e,{write:t}){t("string")},TSInstantiationExpression(e,{print:t}){t("__expression"),t("__typeArguments")},TSAnyKeyword(e,{write:t}){t("any")},TSVoidKeyword(e,{write:t}){t("void")},TSQualifiedName(e,{print:t}){t("__left"),t("."),t("__right")},TSTypeAnnotation(e,{print:t}){t("__typeAnnotation")},TSParameterProperty:A2,TSConstructSignatureDeclaration:g2,TSIndexSignature(e,t){const{print:n}=t;n("["),n("__parameters.0"),n("]"),S2(e,t),n(";"),n.newline()},TSClassImplements(e,{print:t}){t("__expression"),t("__typeArguments")},TSInterfaceHeritage(e,{print:t}){t("__expression"),t("__typeArguments")},TSParenthesizedType:w2,TSPropertySignature:u2,TSFunctionType:c2,TSTypePredicate(e,{print:t}){t("__parameterName"),t(" is "),t("__typeAnnotation")},TSNonNullExpression(e,{print:t}){t("__expression"),t("!")},TSEnumDeclaration:p2,TSEnumMember:d2,TSImportEqualsDeclaration(e,{print:t,maybe:n}){n.print(e.node.isExport,"export "),t("import "),t("__id"),t.space(),t("="),t.space(),t("__moduleReference"),t(";"),n.print.newline(H1(e))},TSExternalModuleReference(e,{print:t}){t("require("),t("__expression"),t(")")},TSDeclareMethod:t2,TSNamedTupleMember:f2,TSConstructorType:m2,TSMethodSignature:b2,TSCallSignatureDeclaration:y2,TSThisType(e,{print:t}){t("this")}},I2={};const{types:_2}=st,{isJSXElement:N2}=_2;I2.JSXElement={condition:function(e){return!!e.parentPath.isReturnStatement()||(!!e.parentPath.isParenthesizedExpression()||(!!e.node.extra?.parenthesized||(!!e.parentPath.isArrowFunctionExpression()||e.parentPath.isVariableDeclarator())))},before(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node,s=i?.length;r.write.space(!s&&(({parentPath:e})=>e.isArrowFunctionExpression())(e)),n.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:n,maybe:r}){const i=function(e){const t=e.node.openingElement.attributes.length;if(t>2)return!1;const n=e.parentPath.isArrowFunctionExpression(),r=e.parentPath.isJSXElement(),i=e.parentPath.parentPath.isCallExpression();return r||n&&i}(e);r.indent.inc(i),t("__openingElement"),e.get("children").map(n),t("__closingElement"),r.indent.dec(i)},after(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node;N2(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};var L2={};const{isCoupleLines:O2}=Zj;L2.JSXAttribute={condition:e=>O2(e.parentPath),before(e,{print:t,indent:n}){n.inc(),t.breakline()},print(e,{print:t,maybe:n}){const{value:r}=e.node;t("__name"),n.print(r,"="),t("__value")},after(e,{indent:t}){t.dec()}};var D2={};const{isCoupleLines:F2}=Zj;D2.JSXOpeningElement={print(e,{print:t,maybe:n}){n.indent((({parentPath:e})=>{const t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment()||t.isLogicalExpression())})(e)),t("<"),t("__name");const r=F2(e),i=!r,s=r&&e.parentPath.parentPath.isJSXElement();n.indent.inc(s);for(const r of e.get("attributes"))n.print.space(i),t(r);F2(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}};var M2={};M2.JSXFragment={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:n}){t("("),n.inc(),t.breakline()},print(e,{print:t,traverse:n}){t("__openingFragment"),e.get("children").map(n),t("__closingFragment")},after(e,{write:t,indent:n}){n.dec(),t.breakline(),t(")")}},M2.JSXOpeningFragment=(e,{write:t})=>{t("<>")},M2.JSXClosingFragment=(e,{write:t})=>{t("</>")};var B2={};const{isNext:R2}=Zj;B2.JSXText=(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=R2(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))};const{JSXElement:j2}=I2,{JSXAttribute:U2}=L2,{isCoupleLines:q2}=Zj,{JSXOpeningElement:J2}=D2,$2=M2,{JSXText:V2}=B2,{parseComments:K2}=xU;var W2={...$2,JSXElement:j2,JSXAttribute:U2,JSXOpeningElement:J2,JSXText:V2,JSXEmptyExpression(e,t,n){K2(e,t,n)},JSXExpressionContainer(e,{print:t}){t("{"),t("__expression"),t("}")},JSXIdentifier(e,{write:t}){t(e.node.name)},JSXMemberExpression(e,{print:t}){t("__object"),t("."),t("__property")},JSXSpreadAttribute(e,{print:t,maybe:n}){const r=q2(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXClosingElement(e,{print:t}){t("</"),t("__name"),t(">")}};var X2={...hY,...XZ,...h0,...k2,...W2};X2.default;var H2={};const z2=e=>()=>e,{keys:Y2}=Object;function G2(e,t,n){if(!n)return[`{{ ${e} }}`,t[e]];const r=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[r]||"";if(!r.includes("|"))return[e,i];const[s,a]=r.split("|"),o=n[a],u=t[s];return o?[e,o(u)]:[e,u]}const{satisfy:Q2}=Zj;const Z2=e=>{const t=e?.()||[];return Q2(t)},e3=(e,t,n)=>{!function(e,t){if(n=e,"string"!=typeof n)throw Error("template should be a string!");var n;if("object"!=typeof t)throw Error("values should be an object!")}(e,t);let r=e;const i=n?e.match(/{{(.*?)}}/g):Y2(t);for(const e of i){const[i,s]=G2(e,t,n),a=z2(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r},{types:t3}=st,n3=e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:Z2(n),beforeIf:Z2(r),...e}},{isProgram:r3,isFile:i3,isStatement:s3,expressionStatement:a3,program:o3,file:u3}=t3;H2.maybeThrow=(e,t,n)=>{if(e)throw Error(e3(n,{path:t,type:t.type}))};const c3=e=>s3(e)?e:a3(e);H2.maybeFile=e=>i3(e)?e:u3((e=>r3(e)?e:o3([c3(e)]))(e)),H2.maybeVisitor=(e,t,n,r)=>"function"==typeof e?e(t,n,r):function(e,t,n,r){const{print:i,split:s,condition:a,before:o=s,beforeIf:u=a,after:c=s,afterIf:l=a}=n3(e);u?.(t,n,r)&&o(t,n,r);i(t,n,r),l?.(t,n,r)&&c(t,n,r)}(e,t,n,r);var l3={},p3=t($),d3=function(e){return(e=e.replace(f3,function(e){return" "+(e.toLowerCase()||e)})).trim().split(h3).join("_")},h3=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,f3=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const m3=p3,y3=d3,{codeFrameColumns:g3}=st,{TYPES:b3}=Yj,{stringify:x3}=JSON,{LOG:S3,LOG_ALL:T3,LOG_TOKENS:E3,LOG_TERM:P3,LOG_DEBUG:v3}={};function A3(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}l3.createDebug=e=>t=>{v3&&e.push({type:b3.DEBUG,value:`/*__${y3(t)}*/`})},l3.createLog=({newline:e="\n",store:t=A3()}={})=>({type:n,value:r})=>{if(E3)console.log(g3(x3({type:n,value:r}),{},{highlightCode:!0}));else if(T3)console.log(g3(r,{},{highlightCode:!0}));else{if(S3){if(r===e)return void console.log(g3(t(),{},{highlightCode:!0}));t(r)}P3&&m3.stdout.write(r)}};var C3={},w3={};const k3=e=>"boolean"==typeof e,I3={arrow:!0,sequence:!0,assign:!1,new:!0},_3={arrow:!0,sequence:!0,assign:!0,new:!0},N3={arrow:!1,sequence:!1,assign:!1,new:!1};w3.parseRoundBraces=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...I3,...e}:k3(e)&&e?_3:k3(e)&&!e?N3:I3;var t},w3.ROUND_BRACES_DISABLED=N3,w3.ROUND_BRACES_ENABLED=_3,w3.ROUND_BRACES_DEFAULTS=I3;var L3={parseQuotes:({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1}};const{parseRoundBraces:O3}=w3,{parseQuotes:D3}=L3;C3.parseOverrides=(e={})=>{const{format:t,semantics:n,visitors:r}=e,i=F3(t);return{format:i,semantics:M3(i,n),visitors:r}};const F3=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),M3=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...D3(e),...t,roundBraces:O3(t)}),B3=zj,R3=st.traverse,{TYPES:j3}=Yj,U3=X2,{maybeFile:q3,maybeVisitor:J3,maybeThrow:$3}=H2,{createDebug:V3,createLog:K3}=l3,{maybeMarkAfter:W3}=TU,{parseLeadingComments:X3,parseTrailingComments:H3}=xU,{parseOverrides:z3}=C3,Y3=e=>e&&"object"==typeof e,{round:G3}=Math,{assign:Q3,freeze:Z3}=Object;function e4(e,t){let n="";for(++e;--e>0;)n+=t;return n}Hj.tokenize=(e,t)=>{const{visitors:n,format:r,semantics:i}=z3(t),s=[],a=(e=>{const t=K3();return n=>{t(n),e.push(n)}})(s),o=V3(s),u=e=>{a({type:j3.TOKEN,value:e})},c=()=>{a({type:j3.INDENT,value:e4(x,r.indent)})},l=()=>{a({type:j3.NEWLINE,value:r.newline})},p=e=>e&&l(),d=()=>{l(),c()},h=e=>e&&d(),f=()=>{c(),l()},m=e=>e&&f(),y=(e,t)=>e&&u(t),g=()=>{a({type:j3.SPACE,value:r.space})},b=e=>e&&g();let x=0;Q3(c,{inc:()=>++x,dec:()=>--x});const S=()=>{a({type:j3.QUOTE,value:r.quote})};Q3(u,{indent:c,newline:l,linebreak:f,breakline:d,space:g,splitter:()=>{a({type:j3.SPLITTER,value:r.splitter})},quote:S,endOfFile:()=>{a({type:j3.END_OF_FILE,value:r.endOfFile})}}),Q3(y,{newline:p,breakline:h,linebreak:m,space:b});const T={indent:e=>e&&c(),markAfter:W3,write:y,space:b};Q3(T.indent,{inc:e=>e&&c.inc(),dec:e=>e&&c.dec()});const E=Z3({indent:c,write:u,debug:o,traverse:v,maybe:T,quote:S,store:B3()}),P={...U3,...n};function v(e){const{type:t}=e,n=P[t];if(!e.node)return;const r=t4(e,{write:u,traverse:v});Q3(r,u,{space:g,round:G3});const s={...E,print:r},a=(e,t)=>e&&r(t);Q3(a,{newline:p,breakline:h,linebreak:m,space:b}),Q3(s.maybe,{print:a}),$3(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const c=x;X3(e,s,i,{currentTraverse:n}),J3(n,e,s,i),H3(e,s,i,{currentTraverse:n}),$3(x!==c,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),o(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,v):R3(q3(e),{Program(e){v(e),e.stop()}}),s};const t4=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=n4(e,r);return Y3(i)?t(i):n(i)},n4=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(Y3(t),t);var r4={},i4={cook:e=>{const t=[];for(const{value:n}of e)t.push(n);return t}};const{cook:s4}=i4;r4.printTokens=e=>s4(e).join("");var a4={},o4={},u4=new RegExp(/(^[ \t]*\n)/,"gm");const c4=function(e){return e.replace(u4,"")},l4=e=>e.slice(0,e.indexOf("(")),p4=e=>e.includes("(")?`${l4(e)}(`:`${e}(`,d4=e=>"\n"===e.at(-1)?e:`${e}\n`,h4="__putout_processor_json",f4="__putout_processor_yaml",m4="__putout_processor_filesystem",y4="__putout_processor_ignore",g4=`${h4}(__object)`,b4=`${f4}(__object)`,x4=`${m4}(__object)`,S4=`${y4}(__array)`,T4=[h4,f4,m4,y4];o4.__json=g4,o4.__yaml=b4,o4.__filesystem=x4,o4.__ignore=S4,o4.__json_name=h4,o4.__yaml_name=f4,o4.__filesystem_name=m4,o4.__ignore_name=y4,o4.toJS=(e,t=g4)=>`${p4(t)}${e});\n`,o4.fromJS=(e,t=g4)=>{e=d4(e);const n=l4(t);e=e.slice(e.indexOf(n));const r=p4(t),i=e.length-3,s=e.slice(r.length,i);return d4(c4(s))},o4.isJSON=e=>{for(const t of T4)if(!e.indexOf(t))return!0;return!1};const{types:E4}=st,{isJSON:P4}=o4,{isCallExpression:v4,isIdentifier:A4}=E4;a4.maybeJSON=(e,t)=>function(e){const{program:t}=e;if(!t)return!1;const{body:n}=e.program;if(!n.length)return!1;const{expression:r}=e.program.body[0];if(!v4(r))return!1;const{callee:i}=r;return!!A4(i)&&P4(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const{tokenize:C4}=Hj,{printTokens:w4}=r4,{maybeJSON:k4}=a4,{maybeVisitor:I4}=H2,_4=X2;Xj.print=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=k4(e,t),r=C4(e,n);return w4(r)},Xj.visitors=_4,Xj.maybeVisitor=I4;var N4={};function L4(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function O4(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}const{generate:D4}=st,F4=e=>{!function(e){if(t=e,"string"!=typeof t)throw Error("str should be a string!");var t}(e);const t=e.split("\n"),n=t.length-1;for(let e=0;e<n;e++){const n=t[e];e&&!L4(n)&&(t[e]=O4(t[e+1]))}return t.join("\n")},M4={alignSpaces:!0};N4.print=(e,t)=>{const{source:n,alignSpaces:r}={...M4,...t};let{code:i}=D4(e,{...n&&{experimental_preserveFormat:!0,retainLines:!0}},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?F4(i):i};const B4=Xj,R4=N4,{isArray:j4}=Array;var U4=(e,t={})=>{const[n="putout",r]=(i=t.printer,j4(i)?i:[i,{}]);var i;return"babel"===n?R4.print(e,{...t,...r}):B4.print(e,r)},q4={};const{types:J4}=st,{isFunctionExpression:$4,objectMethod:V4}=J4,{assign:K4}=Object;function W4(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{types:X4}=st,{classPrivateMethod:H4,classMethod:z4,privateName:Y4,identifier:G4}=X4,{assign:Q4}=Object;const Z4=({type:e})=>"PrivateIdentifier"===e;const{types:e5}=st,{identifier:t5}=e5;const{types:n5}=st,{directive:r5,directiveLiteral:i5}=n5;const{assign:s5}=Object;var a5={convertParenthesizedExpression:({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},o5={convertTSParenthesizedType:({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},u5={convertNodeComments:e=>{const{comments:t}=e;if(t){delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0;for(const n of t){const t=l5(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=c5(n),e[t].push(n)}}},convertProgramComments:e=>{for(const t of e)t.type=c5(t);return e}};const c5=({type:e})=>`Comment${e}`;function l5({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}const{convertProgramComments:p5}=u5;var d5={convertPropertyDefinition:e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=h5(e))}e.node.type="ClassProperty"},convertTSInterfaceHeritage:e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){const{object:e,property:n}=t;t.type="TSQualifiedName",t.left=e,t.right=n,delete t.object,delete t.property,t=e}},convertPrivateIdentifier:e=>{e.replaceWith(h5(e.node))},convertTSAbstractMethodDefinition:e=>{const{node:t}=e,{generator:n,async:r,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:n,async:r,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)}};const h5=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{traverse:f5,types:m5}=st,y5=e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&$4(i)&&(t.replaceWith(V4("method",n,i.params,i.body,e)),K4(t.node,{id:null,method:!0,generator:i.generator,loc:W4(n,i),async:i.async,type:"ObjectMethod"}))}},g5=e=>{const{node:t}=e,{key:n,kind:r,computed:i,loc:s}=t,{body:a,params:o,expression:u,generator:c}=t.value,l=function({kind:e,key:t,params:n,body:r,computed:i,nodeStatic:s}){if(Z4(t)){const s=function(e){return Y4(G4(e.name))}(t);return H4(e,s,n,r,i)}return z4(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),Q4(e.node,{loc:s,expression:u,generator:c})},b5=e=>{e.node.type="ClassPrivateProperty"},x5=({node:e})=>{e.name&&(e.id=t5(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)},S5=e=>{const{node:t}=e;if(!t.directives){t.directives=[];for(const n of e.get("body")){if("ExpressionStatement"!==n.type)continue;const e=n.node;if(!("directive"in e))continue;if(!e.directive)continue;const r=i5(e.directive),i=r5(r);t.directives.push(i),n.remove()}}},T5=e=>{const t=e.get("expression"),{expression:n}=e.node;if(t.isCallExpression()){const e=t.get("callee");n.type="OptionalCallExpression",e.isMemberExpression()&&(n.callee.type="OptionalMemberExpression")}else n.type="OptionalMemberExpression";e.replaceWith(n)},E5=e=>{const{attributes:t=[]}=e.node;e.node.attributes=t},P5=e=>{const{attributes:t=[]}=e.node;s5(e.node,{attributes:t})},{convertParenthesizedExpression:v5}=a5,{convertTSParenthesizedType:A5}=o5,{convertNodeComments:C5}=u5,w5=e=>{const{type:t,value:n}=e;"Literal"===t&&(null!==n?(e=>"string"==typeof e)(n)?e.type="StringLiteral":(e=>"number"==typeof e)(n)?e.type="NumericLiteral":(e=>"boolean"==typeof e)(n)?e.type="BooleanLiteral":e.regex&&function(e){e.type="RegExpLiteral";for(const t of Object.keys(e.regex))e[t]=e.regex[t];delete e.regex}(e):e.type="NullLiteral")},k5=e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:p5(t),tokens:n}},{convertTSInterfaceHeritage:I5,convertTSAbstractMethodDefinition:_5,convertPropertyDefinition:N5,convertPrivateIdentifier:L5}=d5,{isObjectExpression:O5,isExportDeclaration:D5}=m5,F5={convertParens:!0};function M5(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}q4.estreeToBabel=(e,t)=>{const n=k5(e),r={...F5,...t};return f5(n,{noScope:!0,ParenthesizedExpression:v5(r),TSParenthesizedType:A5(r),enter(e){const{node:t}=e,{type:n}=t;return n.endsWith("Literal")?(w5(t),M5(t)):"JSXText"===n?M5(t):"BlockStatement"===n||"Program"===n?S5(e):"Property"===n?function(e){e.type="ObjectProperty"}(t):"MethodDefinition"===n?g5(e):"FieldDefinition"===n?b5(e):"PrivateName"===n?x5(e):"ImportDeclaration"===n?E5(e):D5(e)?P5(e):"ChainExpression"===n?T5(e):"TSAbstractMethodDefinition"===n?_5(e):"TSInterfaceHeritage"===n?I5(e):"PropertyDefinition"===n?N5(e):"PrivateIdentifier"===n?L5(e):void 0},exit(e){const{node:t}=e;if(C5(t),O5(t))return y5(e.get("properties"))}}),n};var B5={},R5={exports:{}},j5=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}};var U5=j5;function q5(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function J5(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}R5.exports=U5(q5),R5.exports.strict=U5(J5),q5.proto=q5(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return q5(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return J5(this)},configurable:!0})});var $5=R5.exports;const V5=()=>{};var K5=t(Object.freeze({__proto__:null,default:V5}));var W5,X5,H5=Object.freeze({__proto__:null,default:function(e){return class extends(undefined){parseClassElement(e){const t=this._inClassMemberName;this._inClassMemberName=!0;const n=super.parseClassElement.apply(this,arguments);return this._inClassMemberName=t,n}parsePropertyName(e){const t=this.options.ecmaVersion>=8&&this._inClassMemberName&&this.type==this.privateNameToken&&!e.static;return this._inClassMemberName=!1,t?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}}}}),z5=t(H5);const Y5=$5(()=>{const{Parser:e}=K5,t=(X5||(X5=1,W5=function(e){return e.extend(K5,K5,z5)}),W5),n=K5.default;return e.extend(n(),t)});B5.parse=function(e){const t=Y5(),n={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},r=Array.from(t.tokenizer(e,n));return{...t.parse(e,n),tokens:r}};var G5={},Q5=["importMeta","importAttributes","deprecatedImportAssert","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],Z5={allowReturnOutsideFunction:!0,allowUndeclaredExports:!0,allowImportExportEverywhere:!0};const e8=$5,t8=Q5,n8=Z5,{assign:r8}=Object,i8=e=>!e.indexOf("// @flow"),s8=e8(()=>st);function a8({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}G5.parse=function(e,t){const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=i8(e),isRecovery:a,printer:o}=t,{parse:u}=s8(),c={sourceFileName:n,sourceType:"module",tokens:!0,...n8,errorRecovery:a,plugins:(l=[...t8,...a8({isTS:r,isFlow:s,isJSX:i})],l.filter(Boolean))};var l;"babel"===o&&r8(c,{createParenthesizedExpressions:!0});const p=u(e,c);return p.program.extra.__putout_printer=o,p};var o8={};const u8=$5(()=>K5);o8.parse=function(e){const{parse:t}=u8();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})};var c8={};const l8=$5(()=>K5);c8.parse=function(e){const{parse:t}=l8();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})};var p8={};const d8=$5(()=>K5);p8.parse=e=>{const{Tenko:t}=d8(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n};var h8={};const f8=$5(()=>K5);h8.parse=function(e){return f8().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})};var m8=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const y8=m8;const g8=B5,b8=G5,x8=o8,S8=c8,T8=p8,E8=h8,P8=(e,t,n,r)=>{const[i,...s]=r,[a,o]=y8(e,t,i);if(!a)return o;if(function(e,t){for(const n of t)if(e.message.includes(n))return!0;return!1}(a,n))throw a;for(const n of s){const[r,i]=y8(e,t,n);if(!r)return i}throw a},v8=["has already been declared"];function A8(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){return"babel"===t?b8.parse(e,{isTS:r,isJSX:i,isRecovery:s,printer:n}):"object"==typeof t?t.parse(e,{isJSX:i,isTS:r}):"espree"===t?x8.parse(e):"acorn"===t?g8.parse(e):"esprima"===t?S8.parse(e):"tenko"===t?T8.parse(e):"hermes"===t?E8.parse(e):function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(t).parse(e)}var C8={};const w8=m8;C8.tryThrowWithReason=(e,...t)=>{const[n,r]=w8(e,...t);if(n)throw n.reason="parse",n;return r};const{estreeToBabel:k8}=q4,I8=(e,t,{isTS:n,isJSX:r,printer:i})=>{const s={parser:t,printer:i,isTS:n,isJSX:r},a={...s,isJSX:!1},o={...s,isRecovery:!0};return P8(A8,e,v8,[s,a,o])},{tryThrowWithReason:_8}=C8,{assign:N8}=Object;var L8=(e,t)=>{!function(e){if(t=e,"string"!=typeof t)throw Error(`☝️ Looks like type of 'source' is not 'string', but '${typeof e}'`);var t}(e);const{parser:n,printer:r="putout",isTS:i,isJSX:s}=t||{},{parse:a}=O8({printer:r,parser:n,isTS:i,isJSX:s});return _8(a,e)};const O8=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&N8(s,{convertParens:!1});return k8(I8(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const{generate:D8}=st;var F8=(e,t,n)=>D8(e,{comments:!1,...t},n),M8={exports:{}};function B8(e,t){t||(t={});var n,r,i,s=t.vargs||function(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}(e),a=[],o=new Map,u=t.maxAge>0&&t.maxAge<1/0?function(e){return r=setTimeout(function(){n?o.delete(e):a.splice(e,1)},t.maxAge)}:0,c=t.equals?t.equals:0,l=t.maxArgs,p=t.serializer;return 1!==e.length||t.equals||s?i=c?function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&c(arguments[i],a[r][i]););if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&arguments[i]===a[r][i];);if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:(i=function(t){var n;return p&&(t=p(t)),o.get(t)||(!u||u(t),o.set(t,n=e.call(this,t)),n)},n=1),i.clear=function(){r&&clearTimeout(r),o.clear(),a=[]},i.keys=function(){return n?[...o.keys()]:a.slice()},i.values=function(){return n?[...o.values()]:a.map(e=>e.val)},i}var R8=t(Object.freeze({__proto__:null,default:B8,nanomemoize:B8}));!function(e){const{types:t,template:n}=st,{nanomemoize:r}=R8,i=Q5,s={...Z5,plugins:[...i,"typescript","jsx"]},{isExpressionStatement:a,isTSExternalModuleReference:o}=t,u=e=>a(e)||o(e)?e.expression:e;e.exports=r((e,t)=>{const r=n(e,{...s,...t});return(...e)=>{const t=r(...e);return u(t)}}),e.exports.ast=r((e,t)=>{const r=n.ast(e,{...s,...t});return u(r)}),e.exports.program=r((e,t)=>n.program(e,{...s,...t})),e.exports.program.ast=r((e,t)=>n.program.ast(e,{...s,...t})),e.exports.ast.fresh=(e,t)=>{const r=n.ast(e,{...s,...t});return u(r)},e.exports.extractExpression=u}(M8);var j8=M8.exports;j8.default;const U8=U4,q8=L8,J8=F8,$8=j8;Wj.print=U8,Wj.parse=q8,Wj.generate=J8,Wj.template=$8;var V8={mergeShebang:(e,t)=>e?`${e}\n${t}`:t,cutShebang:e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]}},K8={},W8={},X8={};function H8(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var z8=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Y8=function(e){return z8.exec(e).slice(1)};function G8(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=H8(a6(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function Q8(e){var t=Z8(e),n="/"===o6(e,-1);return(e=H8(a6(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Z8(e){return"/"===e.charAt(0)}function e6(){return Q8(a6(Array.prototype.slice.call(arguments,0),function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function t6(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=G8(e).substr(1),t=G8(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),s=Math.min(r.length,i.length),a=s,o=0;o<s;o++)if(r[o]!==i[o]){a=o;break}var u=[];for(o=a;o<r.length;o++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function n6(e){var t=Y8(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function r6(e,t){var n=Y8(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function i6(e){return Y8(e)[3]}var s6={extname:i6,basename:r6,dirname:n6,sep:"/",delimiter:":",relative:t6,join:e6,isAbsolute:Z8,normalize:Q8,resolve:G8};function a6(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o6="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)},u6=t(Object.freeze({__proto__:null,basename:r6,default:s6,delimiter:":",dirname:n6,extname:i6,isAbsolute:Z8,join:e6,normalize:Q8,relative:t6,resolve:G8,sep:"/"}));var c6={simpleImport:async e=>{const t=await import(e);return t.default||t}};const l6=p3,{join:p6}=u6,d6=$5,{nanomemoize:h6}=R8,f6=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}},{simpleImport:m6}=c6,{assign:y6}=Object;async function g6(e,t=m6){let n,r;for(const i of e){if([n,r]=await f6(t,i),!n)return r;if("ERR_UNSUPPORTED_DIR_IMPORT"===n.code){const e=require.resolve(i);if([n,r]=await f6(t,e),!n)return r}if("ERR_MODULE_NOT_FOUND"!==n.code)throw y6(n,{message:`${i}: ${n.message}`}),n}throw y6(n,{message:n.message.replace(/\simported.*/,"")}),n}X8.createAsyncLoader=e=>h6(async(t,n)=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await g6([require.resolve(e)],n)}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(x6),s=Array.from(new Set([...r,...i]));return await g6(s,n)});const b6=d6(()=>l6.env.PUTOUT_LOAD_DIR);function x6(e){const t=b6();if(!t)return[e];const n=p6(t,e);return[n,`${n}.js`]}var S6={},T6={};const E6=e=>"string"==typeof e,{isArray:P6}=Array,{entries:v6}=Object;T6.parsePluginNames=e=>{const t=[];for(const n of e)if(E6(n))t.push([n]);else{if(P6(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...v6(n))}return t};var A6={};const{isArray:C6}=Array,w6=e=>"boolean"==typeof e,k6=e=>"string"==typeof e,I6=e=>"object"==typeof e,{entries:_6}=Object,{stringify:N6}=JSON,L6=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),O6=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${N6(e)}`),D6=()=>Object.create(null),F6=(e,t)=>(function(e,t){if(w6(t))return!0;if(/^(on|off)$/.test(t))return!0;if(I6(t))return!0;throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})}(e,t),"on"===t||"off"!==t&&t);function M6(e,t){const[n]=t,r=F6(e,n);if(3===t.length){const[,n,i]=t;return{rule:e,state:r,plugin:null,msg:n,options:i}}const[,i=""]=t;return{rule:e,state:r,plugin:null,msg:"",options:i}}A6.parseRules=e=>{const t=[];!function(e){if(C6(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of _6(e)){if(k6(r)){t.push({rule:n,state:F6(n,r),plugin:null,msg:"",options:D6()});continue}if(w6(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:D6()});continue}if(!(C6(r)&&r.length)){if(I6(r))throw O6(r);throw L6(r)}t.push(M6(n,r))}return t};const B6=e=>e.split("/")[0];A6.enableNestedRules=e=>{const t={};for(const[n,r]of _6(e))n.includes("/")&&F6(n,r)&&(t[B6(n)]="on"),t[n]=r;return t};var R6={};R6.mergeRules=([e,t],n)=>{for(const r of n){if(r.rule!==e)continue;const{msg:n,options:i}=r;return{rule:e,plugin:t,msg:n,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}};var j6={};const U6=e=>e.includes("/")?e.split("/").shift():e,q6=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-","");j6.validateRules=({items:e,rules:t})=>{const n=Object.keys(t);for(const t of n){let n=!1,r=!1,i=!1;for(const[s,a={}]of e){const e=q6(s);if(n=e===t,r=e===U6(t),i=t.includes(e),n&&a.rules)throw Error(`Rule '${t}' cannot be applied to nested plugin '${s}'`);if(n||r||i)break}if(!n&&!r&&!i)throw Error(`No plugin found for a rule: '${t}'`)}};var J6={isEnabled:(e,t)=>{for(const{rule:n,state:r}of t)if(n===e)return r;for(const{rule:n,state:r}of t)if(n.includes("/")&&RegExp(`^${n}`).test(e))return r;for(const{rule:n,state:r}of t)if(RegExp(`^${n}/`).test(e))return r;return!0}},$6={getLoadedRules:e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t}};const{parseRules:V6}=A6,{mergeRules:K6}=R6,{validateRules:W6}=j6,{isEnabled:X6}=J6,{getLoadedRules:H6}=$6;var z6={parseRules:V6,mergeRules:K6,validateRules:W6,isEnabled:X6,getLoadedRules:H6},Y6={};Y6.check=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},Y6.checkRule=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)};const{parsePluginNames:G6}=T6,{validateRules:Q6}=z6,{check:Z6}=Y6;S6.validateRulesRelations=e=>{Z6(e);const{pluginNames:t=[],rules:n={}}=e,r=G6(t);Q6({rules:n,items:r})};var e9={},t9={};const{parsePluginNames:n9}=T6,{enableNestedRules:r9}=A6,{parseRules:i9,getLoadedRules:s9}=z6;t9.prepareRules=({rules:e,pluginNames:t})=>{const n=r9(e),r=i9(n),i=s9(r);return{items:n9(t),loadedRules:i,cookedRules:i9(e)}};const a9=["find","traverse","replace","include","exclude","rules","declare","scan"];var o9=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of a9)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},u9={};const{isEnabled:c9,mergeRules:l9}=z6,{isArray:p9}=Array,d9=e=>p9(e)?e:["on",e];function h9(e,t,n){if("on"===t)return!0;for(const{rule:t,state:r}of n)if(t.includes("/")&&RegExp(`^${t}`).test(e))return r;return!1}u9.filterEnabledPlugins=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!c9(r,t))continue;const[e,s]=d9(i);h9(r,e,t)&&n.push(l9([r,s],t))}return n};const{basename:f9}=u6,{isEnabled:m9}=z6,{prepareRules:y9}=t9,g9=o9,{filterEnabledPlugins:b9}=u9,{createAsyncLoader:x9}=X8,{check:S9,checkRule:T9}=Y6,E9=x9("plugin");e9.loadPluginsAsync=async e=>{S9(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=y9({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!m9(i,t))continue;T9(i);const[e]=P9(i),a=s||E9(e);r.push(A9(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];g9({plugin:n,rule:t});const{rules:r}=n;r?s.push(...v9(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return b9({plugins:a,cookedRules:s})};const P9=e=>[e,"putout"];function v9(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function A9(e){if(e.startsWith("import:")){return f9(e.replace("import:","")).replace("plugin-","")}return e}var C9,w9={},k9={},I9=t(Object.freeze({__proto__:null,default:{}}));function _9(){if(C9)return k9;C9=1;const e=p3,{createRequire:t}=I9,{join:n}=u6,r=m8,i=$5,{assign:s}=Object,a=e=>({name:t,namespace:n})=>{const[i,a]=function(e,t,n){if(n.startsWith("import:"))return l(n.replace("import:",""));let[r,i]=l(`@${e}/${t}-${n}`);r||([r,i]=l(`${e}-${t}-${n}`));r||([r,i]=l(n));return[r,i]}(n,e,t);if(!i)throw Error(`${o=e,`${o[0].toUpperCase()}${o.slice(1)}`} "${n}-${e}-${t}" could not be found!`);var o;const[u,c]=r(a,i);if("ERR_REQUIRE_ESM"===u?.code&&s(u,{message:`☝️ Looks like '${t}' is ESM, use 'await putoutAsync()' instead`,name:t}),u)throw u;return c};k9.loadPlugin=a("plugin"),k9.loadProcessor=a("processor");const{PUTOUT_YARN_PNP:o="putout"}={},u=i(()=>t(require.resolve(o))),c=i(()=>t(require.resolve("putout")));function l(e,{again:t=!1}={}){let i;const s=u(),a=c();return[,i]=r(a.resolve,e),i?[i,a]:([,i]=r(s.resolve,e),i||t?[i,s]:l(function(e){const t=p();return t?n(t,e):e}(e),{again:!0}))}const p=i(()=>e.env.PUTOUT_LOAD_DIR);return k9}const N9=o9,{prepareRules:L9}=t9,{isEnabled:O9}=z6,{filterEnabledPlugins:D9}=u9,{check:F9,checkRule:M9}=Y6,{isArray:B9}=Array;w9.loadPlugins=e=>{F9(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=L9({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!O9(r,t))continue;M9(r);const e=j9(r),[s,a]=R9(r),o=U9(i)||J9({name:s,namespace:a});N9({plugin:o,rule:r});const{rules:u}=o;u?n.push(...q9(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return D9({plugins:a,cookedRules:s})};const R9=e=>[e,"putout"],j9=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),U9=e=>B9(e)?e[1]:e;function q9(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function J9({name:e,namespace:t}){const{loadPlugin:n}=_9();return n({name:e,namespace:t})}var $9={};const V9=e=>"string"==typeof e,{isArray:K9}=Array,W9=e=>"on"===e,X9=e=>"off"===e;const{createAsyncLoader:H9}=X8,z9=e=>{const t=[];for(const n of e)if(V9(n))t.push([n]);else if(K9(n)){const[e,r]=n;if(X9(r))continue;if(W9(r)){t.push([e]);continue}t.push([e,r]);continue}return t},{check:Y9}=Y6;$9.loadProcessorsAsync=async(e,t)=>{Y9(e);const{processors:n=[]}=e,r=z9(n),i=H9("processor"),s=[];for(const[e,n]of r)n?s.push(n):s.push(i(e,t));return await Promise.all(s)};const{createAsyncLoader:G9}=X8,{validateRulesRelations:Q9}=S6,{loadPluginsAsync:Z9}=e9,{loadPlugins:e7}=w9,{loadProcessorsAsync:t7}=$9;W8.loadPlugins=e7,W8.loadPluginsAsync=Z9,W8.loadProcessorsAsync=t7,W8.createAsyncLoader=G9,W8.validateRulesRelations=Q9;var n7,r7,i7={},s7={exports:{}};function a7(){if(r7)return n7;r7=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,s=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return n7=function(o,u){u=u||{};var c=typeof o;if("string"===c&&o.length>0)return function(a){if((a=String(a)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!o)return;var u=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(o);if("number"===c&&isFinite(o))return u.long?function(i){var s=Math.abs(i);if(s>=r)return a(i,s,r,"day");if(s>=n)return a(i,s,n,"hour");if(s>=t)return a(i,s,t,"minute");if(s>=e)return a(i,s,e,"second");return i+" ms"}(o):function(i){var s=Math.abs(i);if(s>=r)return Math.round(i/r)+"d";if(s>=n)return Math.round(i/n)+"h";if(s>=t)return Math.round(i/t)+"m";if(s>=e)return Math.round(i/e)+"s";return i+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},n7}var o7=function(e){function t(e){let r,i,s,a=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];r=s.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=a7(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"env"in J&&(e=J.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o7(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(s7,s7.exports);var u7=s7.exports;u7.default;var c7={};const l7=u7;c7.createDebug=t=>{const n=l7(t);return new Proxy(n,{apply:(n,r,i)=>(e.__putout_debug?.(t,...i),n(...i)),get:(t,n)=>!!e.__putout_debug?.[n]||t[n]})};const p7=m8,{createDebug:d7}=c7,{stringify:h7}=JSON,f7=d7("putout:runner:fix");var m7=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(f7.enabled&&f7(`${i}:`,s,(e=>e.path||e)(n).toString()),function(e,t){if(n=t,"function"!=typeof n)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${h7(t)}'. More on writing 🐊Putout Plugins: https://git.io/JqcMn`);var n}("fix",t),((e,{path:t,pathOptions:n,position:r,options:i})=>{const[s]=p7(e,...(({path:e,pathOptions:t,options:n})=>t?[e,t,{options:n}]:[e,{options:n}])({path:t,pathOptions:n,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||r,s.reason="fix",s})(t,{path:n,pathOptions:r,position:s,options:a}))};var y7={};const g7=e=>e.path||e[0]||e;y7.getPath=g7,y7.getPosition=(e,t)=>{const n=g7(e);!function(e){if(!e.node)throw Error("☝️ Looks like 'push' called without a 'path' argument.")}(n);const{node:r}=n,{loc:i}=r;if(!i)return{line:0,column:0};const{line:s,column:a}=r.loc.start;return{line:t?s+1:s,column:a}};const{isArray:b7}=Array;var x7=e=>e?(e=>b7(e)?e:[e])(e):[],S7={};const{stringify:T7}=JSON;S7.validate=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${T7(t)}'. More on using Includer: https://git.io/JqcMn`)};var E7={};const{values:P7,entries:v7,assign:A7}=Object,C7=e=>Array.from(e),w7=e=>e.node,k7=e=>C7(e).filter(w7),I7=e=>e;function _7({set:e,get:t}){return(n={})=>{const r=(...r)=>{if(!r.length)return t(n);const[i,s]=r;if(1===r.length)return n[i];e(n,i,s)};return r.clear=()=>{n={}},r.entries=()=>v7(n),r}}function N7(e=I7){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(C7(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(C7(n))},n}}E7.listStore=N7(),E7.pathStore=N7(k7),E7.mapStore=_7({get:e=>P7(e),set(e,t,n){e[t]=n}}),E7.upStore=_7({get:e=>P7(e),set(e,t,n){e[t]=e[t]||{},A7(e[t],n)}}),E7.upListStore=_7({get:e=>P7(e).map(k7),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});const{traverse:L7}=st,{generate:O7}=Wj,D7=m7,{getPosition:F7}=y7,M7=x7,{validate:B7}=S7,{listStore:R7,mapStore:j7,upStore:U7,upListStore:q7,pathStore:J7}=E7,{merge:$7}=L7.visitors,{assign:V7}=Object,K7=(e,t,n)=>{const r=[];return t[e]&&(B7(e,t[e]),r.push(...M7(t[e]()))),n[e]&&r.push(...M7(n[e])),r};var W7=(e,{fix:t,shebang:n,template:r})=>{const i=[],s={};for(const{rule:a,plugin:o,msg:u,options:c}of e){const{push:e,pull:l,store:p,upstore:d,listStore:h,pathStore:f,uplist:m}=X7(o,{fix:t,rule:a,shebang:n,msg:u,options:c});s[a]=l;const y=o.traverse({push:e,store:p,listStore:h,pathStore:f,upstore:d,uplist:m,generate:O7,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);V7(c,{include:K7("include",o,c),exclude:K7("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:$7(i)}};function X7(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=j7(),o=R7(),u=U7(),c=R7(),l=q7(),p=J7();return{push:(a,o)=>{const u=F7(a,r),l=i||e.report(a,o);c({message:l,position:u}),D7(t,e.fix,{path:a,pathOptions:o,rule:n,position:u,options:s})},pull:()=>(a.clear(),o.clear(),u.clear(),l.clear(),p.clear(),c.clear()),store:a,listStore:o,upstore:u,uplist:l,pathStore:p}}const{traverse:H7,types:z7}=st,{generate:Y7}=Wj,{merge:G7}=H7.visitors;var Q7=function({rule:e,find:t,ast:n,options:r,template:i,traverse:s=H7}){const a=[],o=t(n,{traverse:Z7({rule:e,options:r,template:i,traverse:s}),generate:Y7,types:z7,push:e=>{a.push(e)},options:r});return[...a,...o||[]]};const Z7=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=G7(n({rule:e,visitor:s,options:t}));return r(i,a)};var eee={exports:{}},tee={},nee={};const ree=e=>void 0===e;const iee=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),see=e=>/__proto__|prototype/.test(e);var aee={};const oee=/\.body\.0\.expression$/,uee=/\.body\.0\.key$/,cee=/\.body\.0$/;aee.prepareBodyWay=e=>e.replace(oee,"").replace(uee,"").replace(cee,"");var lee={};const{template:pee}=Wj,{types:dee}=st,{isBlockStatement:hee,isTSModuleBlock:fee,isBooleanLiteral:mee,isIdentifier:yee,isLiteral:gee,isTemplateElement:bee,isFunction:xee,isImportDefaultSpecifier:See,isExportSpecifier:Tee,isRegExpLiteral:Eee,isJSXText:Pee,isJSXIdentifier:vee,isJSXAttribute:Aee,isTSTypeReference:Cee,isTSTypeParameterDeclaration:wee}=dee,kee="__object",Iee="__array",_ee="__args",Nee="__type_params",Lee="__imports",Oee="__exports",Dee="__body",Fee="__jsx_children",Mee="__jsx_attributes",Bee="__",Ree="__identifier",jee="__bool",Uee=/^__[a-z]$/,qee=/__args__[a-z]$/,Jee=/^__identifier__[a-z]$/,$ee=/^__bool__[a-z]$/,Vee=[kee,Iee,_ee,Nee,jee,Fee,Mee,Lee,Oee,Dee,Bee,Ree,Uee,qee,Jee,$ee];function Kee(e,t){return"string"==typeof t?e===t:t.test(e)}lee.isTemplate=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),lee.is=(e,t=Vee)=>{for(const n of t)if(Kee(e,n))return!0;return!1},lee.isNameStr=e=>Uee.test(e),lee.isImportsStr=e=>e===Lee,lee.isExportsStr=e=>e===Oee,lee.isArgsStr=e=>e===_ee||qee.test(e),lee.isTypeParamsStr=e=>e===Nee,lee.isJSXChildrenStr=e=>e===Fee,lee.isJSXAttributesStr=e=>e===Mee,lee.isObjectStr=e=>e===kee,lee.isArrayStr=e=>e===Iee,lee.isAnyStr=e=>e===Bee,lee.isBodyStr=e=>e===Dee;const Wee=e=>yee(e,{name:Dee}),Xee=(e,t)=>e.type===t.type,{isArray:Hee}=Array;lee.isId=(e,t)=>!!yee(t,{name:Ree})&&yee(e),lee.isBool=(e,t)=>!!yee(t,{name:jee})&&mee(e),lee.isEqualType=Xee,lee.isStr=e=>"string"==typeof e,lee.isAny=e=>!!yee(e,{name:Bee})||Pee(e,{value:Bee}),lee.isAnyLiteral=(e,t)=>!!gee(t,{value:Bee})&&Xee(e,t),lee.isArgs=e=>{const t=Hee(e)?e[0]:e;return yee(t,{name:_ee})};lee.isEqualTypeParams=(e,t)=>!!e&&(!!(e=>{if(!wee(e))return!1;const{params:t}=e,{name:n}=t[0];return yee(n,{name:Nee})})(t)&&Xee(e,t)),lee.isLinkedArgs=e=>{const t=Hee(e)?e[0]:e;return yee(t)&&qee.test(t.name)},lee.isJSXChildren=e=>{const t=Hee(e)?e[0]:e;return Pee(t,{value:Fee})},lee.isJSXAttributes=e=>{const t=Hee(e)?e[0]:e;return!!Aee(t)&&vee(t.name,{name:Mee})},lee.isLinkedId=(e,t)=>!(!yee(t)||!Jee.test(t.name))&&yee(e),lee.isLinkedBool=(e,t)=>!(!yee(t)||!$ee.test(t.name))&&mee(e),lee.isLinkedRegExp=(e,t)=>!(!Eee(t)||!Uee.test(t.pattern))&&Eee(e),lee.isPath=e=>Boolean(e.node),lee.isArray=Hee,lee.isObject=e=>!!e&&(!Hee(e)&&"object"==typeof e),lee.isArrays=(e,t)=>!(!Hee(e)||!Hee(t))&&e.length===t.length,lee.isImports=e=>{const t=Hee(e)?e[0]:e;return!!See(t)&&yee(t.local,{name:Lee})},lee.isExports=e=>{const t=Hee(e)?e[0]:e;return!!Tee(t)&&yee(t.local,{name:Oee})};const zee="ObjectPattern|ObjectExpression",Yee="ArrayPattern|ArrayExpression";lee.isEqualAnyArray=(e,t)=>{if(!yee(t,{name:Iee}))return!1;const{type:n}=e;return Yee.includes(n)},lee.isEqualAnyObject=(e,t)=>{if(!yee(t,{name:kee}))return!1;const{type:n}=e;return zee.includes(n)},lee.isEqualBody=(e,t)=>!!e&&(!!Wee(t)&&"BlockStatement"===e.type),lee.isEqualFunctionDeclarationBody=(e,t)=>{if(!e)return!1;if(!(Wee(n=t)||(hee(n)||fee(n))&&Wee(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},lee.isEqualNop=(e,t)=>{if(!yee(t,{name:"__nop"}))return!1;if(!xee(e))return!1;const{body:n}=e;return!!hee(n)&&!n.body.length},lee.isLinkedNode=e=>!(!yee(e)||!Uee.test(e.name))||(!(!gee(e)||!Uee.test(e.value))||(!(!Pee(e)||!Uee.test(e.value))||(!(!vee(e)||!Uee.test(e.name))||(!(!bee(e)||!Uee.test(e.value.raw))||Cee(e)&&Uee.test(e.typeName.name))))),lee.parseTemplate=(e,{program:t}={})=>{const n=(t?pee.program.ast:pee.ast)(e)||pee.ast.fresh(e);if(e===kee)return[n,zee];if(e===Iee)return[n,Yee];const{type:r}=n;return[n,r]},lee.isInsideTypeReference=e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference(),lee.isInsideTypeParameter=e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter();const Gee=(e,t,n)=>{if(n||(n=t,t="."),function(e,t){if(n=e,"string"!=typeof n)throw Error("selector should be string!");var n;if("object"!=typeof t)throw Error("obj should be object!")}(e,n),!e)return n;if(r=n,!Object.keys(r).length)return;var r;const i=e.split(t).filter(Boolean);for(const[e,r]of i.entries()){const s=i.slice(e).join(t);if(!ree(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n},Qee=(e,t,n,r)=>{r||(r=n||{},n=".");const i=r;!function(e){if(t=e,"string"!=typeof t)throw Error("selector should be string!");var t}(e);const s=e.split(n).filter(Boolean),a=s.length-1;for(const[e,n]of s.entries())if(!see(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=iee(t)?[]:{}}r=r[n]}return i},{traverse:Zee,types:ete}=st,{template:tte}=Wj,{replaceWith:nte,extract:rte}=MK,{prepareBodyWay:ite}=aee,{is:ste,isArgsStr:ate,isTypeParamsStr:ote,isJSXChildrenStr:ute,isJSXAttributesStr:cte,isImportsStr:lte,isExportsStr:pte,isInsideTypeReference:dte,isInsideTypeParameter:hte,isBodyStr:fte}=lee,{isIdentifier:mte,isStatement:yte,isJSXElement:gte,isJSXAttribute:bte,isStringLiteral:xte,isTemplateLiteral:Ste,templateElement:Tte}=ete,{extractExpression:Ete}=tte,{entries:Pte}=Object,{stringify:vte}=JSON;function Ate(e){if(mte(e)&&ste(e.name))return{[e.name]:[""]};const t={};return Zee(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(dte(e))return;if(hte(e))return;const{node:n}=e;if(bte(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=rte(n);ste(i)&&(e.find(({key:e,listKey:t})=>{"number"!=typeof e?r.unshift(e):r.unshift(`${t}.${e}`)}),t[i]=t[i]||[],t[i].push(r.join(".")))}}),t}function Cte({waysFrom:e,node:t}){const n={};for(const[r,i]of Pte(e))for(let e of i)lte(r)||pte(r)?e=e.replace(/\.0.local$/,""):(ate(r)||ute(r)||cte(r)||ote(r))&&(e=e.replace(/\.0$/,"")),gte(t)||(e=e.replace(/\.expression$/,"")),fte(r)&&(e=ite(e)),n[r]=n[r]||Ete(Gee(e,t));return n}nee.getTemplateValues=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${vte(t)}'`);e=(e=>e.node||e)(e);return Cte({node:e,waysFrom:Ate(tte.ast(t))})},nee.findVarsWays=Ate,nee.getValues=Cte;const wte=e=>e.replace("`","\\`");nee.setValues=function({waysTo:e,values:t,path:n}){const r=Ete(n.node);for(const[i,s]of Pte(e))for(let e of s){if(!e){nte(n,t[i]);continue}if((lte(i)||pte(i))&&(e=e.replace(/\.0.local$/,"")),(ate(i)||ute(i)||cte(i))&&(e=e.replace(/\.0$/,"")),yte(t[i])&&(e=e.replace(/\.expression$/,"")),xte(t[i])&&Ste(r)){const{value:n}=t[i],s=Tte({raw:wte(n)});Qee(e,s,r);continue}fte(i)&&(e=ite(e));const{extra:s}=Gee(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}Qee(e,t[i],r)}};var kte={},Ite={exports:{}};const _te=u7("putout:compare"),{isArray:Nte}=Array;function Lte(e){if(Nte(e)&&e[0]){const[{type:t,name:n,value:r}]=e;return`${t}: ["${n||r}"]`}if((e=>e&&"object"==typeof e)(e)){const{type:t,name:n,value:r}=e;return`${t}: "${n||r}"`}return`${typeof e}: "${e}"`}Ite.exports=(e,t)=>{if(!_te.enabled)return;const n=Lte(e),r=Lte(t);return _te(`${n} = ${r}`)},Ite.exports._parseValue=Lte;var Ote=Ite.exports,Dte={exports:{}};const{types:Fte}=st,{isIdentifier:Mte,isLiteral:Bte,isStringLiteral:Rte,isTemplateElement:jte,isTSTypeReference:Ute,isJSXText:qte,isJSXIdentifier:Jte}=Fte,$te=e=>{e=e[0]||e;const{name:t,value:n}=e;if(Mte(e)||Jte(e))return t;if(Bte(e))return n;if(jte(e))return e.value.cooked;if(Ute(e))return e.typeName.name;if(qte(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)};Dte.exports=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=$te(t);return!(Rte(t)&&!Rte(n))&&(r[i]?(Mte(r[i])&&Ute(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))},Dte.exports._parseName=$te;var Vte=Dte.exports,Kte={},Wte={};const{is:Xte}=lee;Wte.comparePrimitives=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||Xte(t)||t!==e);var n};const{types:Hte}=st,{isObject:zte,isArrays:Yte}=lee,{comparePrimitives:Gte}=Wte,{isIdentifier:Qte}=Hte;Kte.comparePlain=(e,t,{add:n})=>!e&&e===t||!!e&&(!!Gte(e,t)||(!(!Qte(e)||e.name!==t.name)||(zte(t)&&!Array.isArray(t)||!!Yte(e,t))&&n(e,t,{plain:!0})));const{types:Zte}=st,ene=Ote,tne=Vte,{isId:nne,isBool:rne,isObject:ine,isArrays:sne,isAny:ane,isAnyLiteral:one,isArgs:une,isEqualTypeParams:cne,isJSXChildren:lne,isJSXAttributes:pne,isLinkedArgs:dne,isLinkedId:hne,isLinkedBool:fne,isImports:mne,isExports:yne,isEqualAnyObject:gne,isEqualAnyArray:bne,isEqualBody:xne,isEqualFunctionDeclarationBody:Sne,isEqualNop:Tne,isLinkedNode:Ene,isLinkedRegExp:Pne}=lee,{comparePlain:vne}=Kte,{comparePrimitives:Ane}=Wte,{isClassBody:Cne,isBlock:wne,isJSXText:kne,isTemplateElement:Ine}=Zte,_ne=e=>(t,n)=>e(n),Nne=[Ane,function(e,t){if(!Ine(e)||!Ine(t))return!1;const n=e.value.raw===t.value.raw,r=e.value.cooked===t.value.cooked,i=e.tail===t.tail;return n&&r&&i},function(e,t){return!(!kne(e)||!kne(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},_ne(Cne),_ne(e=>wne(e)&&!e.body.length),_ne(ane),nne,rne,bne,gne,xne,Sne,Tne,cne,Pne,function(e,t,{add:n,templateStore:r}){const i=e&&(Ene(t)||dne(t)||hne(e,t)||fne(e,t));return!!i&&tne({add:n,value:t,nodeValue:e,templateStore:r})},one,_ne(mne),_ne(yne),_ne(une),_ne(lne),_ne(pne),function(e,t,{add:n}){const r=ine(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=sne(e,t);r&&n(e,t);return r}];kte.runComparators=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=Nne.length;if(ene(t,e),i)return vne(e,t,{add:n});for(;++s<a;){if((0,Nne[s])(e,t,{add:n,templateStore:r}))return!0}return!1};var Lne={};const{types:One}=st,{isEqualBody:Dne,isEqualAnyObject:Fne,isEqualAnyArray:Mne,isLinkedNode:Bne,isLinkedId:Rne,isLinkedRegExp:jne,isEqualNop:Une}=lee,{isIdentifier:qne,isStringLiteral:Jne}=One,$ne=[Fne,Mne,Une,function(e,t){return qne(e)&&Bne(t)},function(e,t){return Jne(e)&&Bne(t)},Rne,jne,Dne];Lne.runTopLevelComparators=(e,t)=>{let n=-1;const r=$ne.length;for(;++n<r;){if((0,$ne[n])(e,t))return!0}return!1};const{template:Vne}=Wj,{findVarsWays:Kne,getValues:Wne,setValues:Xne,getTemplateValues:Hne}=nee,{runComparators:zne}=kte,{runTopLevelComparators:Yne}=Lne,{isStr:Gne,isId:Qne,isPath:Zne,isEqualType:ere,isTemplate:tre,parseTemplate:nre}=lee,{extractExpression:rre}=Vne,{keys:ire}=Object,{isArray:sre}=Array,are=()=>{},ore=e=>sre(e)&&!e.length,ure=e=>sre(e)?e:[e];function cre(e){return Gne(e)?Vne.ast(e):e.node?e.node:e}function lre(e,t,n={},r=are){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=rre(cre(e)),a=rre(cre(t));if(r(s,a),Qne(s,a))return!0;if(s.type===t)return!0;if(Yne(s,a))return!0;if(i&&Zne(e)&&!ere(s,a)){const{type:t}=a,n=((e,t)=>{const n=e.findParent((e=>t=>t.type===e)(t));return n?n.node:null})(e,t);return dre(n,a)}return dre(s,a)}tee.compare=lre,tee.parseTemplate=nre,tee.isTemplate=tre,tee.findVarsWays=Kne,tee.getValues=Wne,tee.setValues=Xne,tee.getTemplateValues=Hne,tee.compareAny=(e,t,n)=>{t=ure(t);for(const r of t)if(lre(e,r,n))return!0;return!1},tee.compareAll=(e,t,n)=>{t=ure(t);for(const r of t)if(!lre(e,r,n))return!1;return!0};const pre=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function dre(e,t){let n=[e,t];const r=[n],i={},s=(e=>(t,n,r={})=>e.push([t,n,r]))(r);for(;n=r.pop();){const[e,t,{plain:r}={}]=n;if(!e||ore(e)&&!ore(t))return!1;for(const n of ire(t)){if(pre.includes(n))continue;const a=rre(e[n]),o=rre(t[n]);if(!zne(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const hre=m8,{compareAny:fre,compareAll:mre,parseTemplate:yre,isTemplate:gre}=tee,bre=x7,{createDebug:xre}=c7,Sre=xre("putout:runner:template"),{entries:Tre}=Object,Ere=e=>"function"==typeof e,Pre=(e,t)=>{Sre.enabled&&Sre(e,t.toString())},{stringify:vre}=JSON;eee.exports._log=Pre;const Are=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!Ere(n)||!r.length)return{[t]:n};const i=Cre({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};eee.exports=({rule:e,visitor:t,options:n})=>{const r=[],i=bre(n.exclude),s=bre(n.include);for(const[n,a]of Tre(t)){if(!n)continue;if(!gre(n)){r.push(Are({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=yre(n),u=Cre({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r},eee.exports._log=Pre;const Cre=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(Pre(e,i),n.length&&fre(i,n))return;if(t.length&&!mre(i,t))return;if(!Ere(r))throw Error(`☝️ Looks like provided visitor is not a function: ${vre(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=hre(r,i);if(s)throw s.rule=e,s};var wre,kre=eee.exports,Ire={};function _re(){}function Nre(){Nre.init.call(this)}function Lre(e){return void 0===e._maxListeners?Nre.defaultMaxListeners:e._maxListeners}function Ore(e,t,n,r){var i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=new _re,e._eventsCount=0),a){if("function"==typeof a?a=s[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=Lre(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=s[t]=n,++e._eventsCount;return e}function Dre(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function Fre(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Mre(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}_re.prototype=Object.create(null),Nre.EventEmitter=Nre,Nre.usingDomains=!1,Nre.prototype.domain=void 0,Nre.prototype._events=void 0,Nre.prototype._maxListeners=void 0,Nre.defaultMaxListeners=10,Nre.init=function(){this.domain=null,Nre.usingDomains&&(!wre.active||this instanceof wre.Domain||(this.domain=wre.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new _re,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Nre.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Nre.prototype.getMaxListeners=function(){return Lre(this)},Nre.prototype.emit=function(e){var t,n,r,i,s,a,o,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(o=this.domain,u){if(t=arguments[1],!o){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=Mre(e,r),s=0;s<r;++s)i[s].call(n)}(n,l,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,s=Mre(e,i),a=0;a<i;++a)s[a].call(n,r)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var s=e.length,a=Mre(e,s),o=0;o<s;++o)a[o].call(n,r,i)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,s){if(t)e.call(n,r,i,s);else for(var a=e.length,o=Mre(e,a),u=0;u<a;++u)o[u].call(n,r,i,s)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),s=1;s<r;s++)i[s-1]=arguments[s];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,s=Mre(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},Nre.prototype.addListener=function(e,t){return Ore(this,e,t,!1)},Nre.prototype.on=Nre.prototype.addListener,Nre.prototype.prependListener=function(e,t){return Ore(this,e,t,!0)},Nre.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Dre(this,e,t)),this},Nre.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Dre(this,e,t)),this},Nre.prototype.removeListener=function(e,t){var n,r,i,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new _re:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=n[s].listener,i=s;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new _re,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,a||t)}return this},Nre.prototype.off=function(e,t){return this.removeListener(e,t)},Nre.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new _re,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new _re:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),s=0;s<i.length;++s)"removeListener"!==(r=i[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new _re,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Nre.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},Nre.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Fre.call(e,t)},Nre.prototype.listenerCount=Fre,Nre.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Bre=t(Object.freeze({__proto__:null,EventEmitter:Nre,default:Nre}));const{EventEmitter:Rre}=Bre;Ire.createProgress=()=>{let e=0,t=0;const n=new Rre;return n.reset=()=>{t=0,e=0},n.file=({i:e,n:t,percent:r,rule:i})=>{n.emit("file",{i:e,n:t,rule:i,percent:r})},n.inc=()=>{++e},n.start=r=>{++t,n.emit("start",{pluginsIndex:t,pluginsCount:e,rule:r})},n.push=r=>{n.emit("push",{pluginsIndex:t,pluginsCount:e,rule:r})},n.end=r=>{n.emit("end",{rule:r,pluginsIndex:t,pluginsCount:e})},n};var jre={};const Ure=m8;jre.tryThrowWithReason=(e,...t)=>{const[n,r]=Ure(e,...t);if(n)throw n.reason??="traverse",n;return r};var qre={};const Jre=u7("putout:runner:include"),$re=x7,{validate:Vre}=S7,Kre=()=>[],Wre=()=>!0;qre.include=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=Kre,filter:u=Wre}=t;Vre("include",a),Vre("report",s);const c=Xre(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...$re(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}};const Xre=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{Jre(e),t(i,{options:r})&&n(i)})({rule:n,filter:t,push:r,options:i});for(const t of e)s[t]=a;return s};var Hre={},zre={exports:{}};const Yre=e=>(...t)=>(...n)=>e(...t,...n);const{entries:Gre}=Object,{isArray:Qre}=Array;function Zre(e,t){const{node:n}=e;let r,i;for([r,i]of Gre(t)){if(Qre(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const eie=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?Yre(e)(...t):Yre(e)),{types:tie}=st,nie=e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(Zre(t,t.parent));return n.join(".")},{isProgram:rie}=tie,iie="__putout_runner_replace";function sie(e,t,n){const r=`${e} -> ${t}`;return{watermark:r,highWatermark:`${nie(n)}: ${r}`}}function aie({path:e,program:t}){e.node&&(e.node[iie]=e.node[iie]||new Set),t.node[iie]=t.node[iie]||new Set}function oie({path:e,program:t,watermark:n,highWatermark:r}){aie({path:e,program:t}),e?.node[iie].add(n),t.node[iie].add(r)}function uie({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[iie].has(n)||e.findParent((e=>t=>t.node?.[iie]?.has(e))(n))&&!s)||t.node[iie].has(r)}zre.exports=(e,t,n)=>{const{watermark:r,highWatermark:i}=sie(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(rie),path:n};return{init:eie(aie,s),has:eie(uie,s),add:eie(oie,s)}},zre.exports.REPLACE_WATERMARK=iie,zre.exports.create=sie,zre.exports.init=aie,zre.exports.add=oie,zre.exports.has=uie;var cie=zre.exports;const{template:lie,print:pie}=Wj,{remove:die,replaceWith:hie}=MK,{types:fie}=st,{compare:mie,findVarsWays:yie,getValues:gie,setValues:bie}=tee,xie=x7,Sie=cie,{createDebug:Tie}=c7,Eie=Tie("putout:runner:replace"),Pie=(e,t)=>{Eie.enabled&&Eie(`${e} -> ${t}\n`)},{isExpression:vie,isStatement:Aie,isExpressionStatement:Cie}=fie,wie={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:kie,entries:Iie}=Object,{stringify:_ie}=JSON,Nie=()=>[],Lie=()=>({});Hre.replace=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||Lie)({options:r}),{report:s,exclude:a=Nie,replace:o,filter:u=Mie(i)}=t,c=o({options:r}),l=Fie(c,i),p=(d=c,()=>kie(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...xie(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},Hre.clearWatermark=e=>{delete e.program[Sie.REPLACE_WATERMARK]};const Oie=e=>"function"==typeof e,Die=(e,t,n)=>{const r=lie.ast(e),i=Sie(e,t,n);if(i.init(),i.has())return;const s=yie(r),a=((e,{node:t})=>e.type!==t.type&&Cie(t)?t.expression:t)(r,n),o=gie({waysFrom:s,node:a}),u=function(e,t,n){const r=Oie(e)?e(t,n):e;if(!r)return null;if(i=r,"object"==typeof i&&r.type)return r.__putout_replace_cooked=!0,r;var i;if(!(e=>"string"==typeof e)(r))throw Error(`☝️ Looks like you passed 'replace' value with a wrong type. Allowed: 'string', 'node' and 'path'. Received: '${typeof r}' with value '${r}'.`);return lie.ast.fresh(r)}(t,o,n);if(!u)return Pie(e,"''"),die(n);!function(e,t,n){if(!vie(e))return;if(!Aie(t)||Cie(t))return;if(Cie(n)||Cie(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${pie(e,wie)} -> ${pie(t,wie)}'. For code: '${n}'`)}(r,u,n);const c=yie(u),l=hie(n,u);u.__putout_replace_cooked||(Rie(c,s),bie({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),Pie(e,l)},Fie=(e,t)=>n=>{for(const[r,i]of Iie(e)){const e=lie.ast(r);if(mie(n,e,{findUp:!1})){const s=t[r];s&&!Bie(n,e,s)||Die(r,i,n)}}},Mie=e=>t=>{const n=Iie(e);for(const[e,r]of n){const n=lie.ast(e);if(mie(t.node,n,{findUp:!1}))return Bie(t,n,r)}return!0};function Bie(e,t,n){const r=yie(t),{node:i}=e,s=gie({waysFrom:r,node:i});return function(e){if(!Oie(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const Rie=(e,t)=>{for(const n of kie(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${_ie(kie(t))} -> ${_ie(kie(e))}`)};var jie={},Uie={},qie={};const Jie="__putout_declare_undefined_variables",$ie=e=>e.scope.getProgramParent().path,Vie=(e,t)=>t[e]=t[e]||{};qie.checkDeclarationForESLint=(e,t)=>{const n=$ie(t);return Vie(Jie,n),n[Jie][e]},qie.addDeclarationForESLint=(e,t)=>{const n=$ie(t);return Vie(Jie,n),n[Jie][e]=!0},qie.setModuleType=(e,t)=>{const n=$ie(t);return Vie(Jie,n),n[Jie].__putout_module_type=e,e},qie.getModuleType=e=>{const t=$ie(e);return Vie(Jie,t),t[Jie].__putout_module_type};const{template:Kie}=Wj,{isESM:Wie,insertAfter:Xie}=MK,{compare:Hie}=tee,{types:zie}=st,{addDeclarationForESLint:Yie,checkDeclarationForESLint:Gie,getModuleType:Qie,setModuleType:Zie}=qie,{isImportDeclaration:ese,isVariableDeclaration:tse}=zie,{keys:nse}=Object,rse=e=>e.node.source.value.includes("."),ise=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"];Uie.declare=e=>({report:sse,include:ase,fix:use(e),filter:ose(e)});const sse=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},ase=()=>["ReferencedIdentifier"],ose=e=>(t,{options:n})=>{if(ise.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=nse(s),{scope:o,node:u}=t,{name:c}=u;if(!a.includes(c))return!1;if(r.includes(c))return!1;if(o.hasBinding(c)||Gie(c,t))return!1;const l=function(e,t){if(t)return Zie(t,e);const n=Qie(e);return n||Zie((e=>Wie(e)?"esm":"commonjs")(e),e)}(t,i);return cse(l,s[c])},use=e=>(t,{options:n})=>{const r=Qie(t),i={...e,...n.declarations},{name:s}=t.node,a=cse(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=pse(t),r=(e=>e.filter(tse).pop())(t);return tse(e)&&n||(ese(e)||lse(e))&&n?n:tse(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(tse(e)&&ese(n)||lse(n))return Xie(n,e);if(tse(e))return lse(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&rse(n)?n.insertBefore(e):Xie(n,e):r.insertBefore(e)}(Kie.ast.fresh(a),o),Yie(s,t)},cse=(e,t)=>"string"==typeof t?t:t[e];const lse=e=>Hie(e,"const __a = require(__b)");const pse=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(rse(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{declare:dse}=Uie,{stringify:hse}=JSON;jie.declare=({rule:e,plugin:t,msg:n,options:r})=>(function(e){if(t=e,"function"!=typeof t)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${hse(e)}'.`);var t}(t.declare),{rule:e,plugin:dse(t.declare()),msg:n,options:r});var fse={},mse={},yse={};const gse=zj(),{assign:bse}=Object,xse=()=>{},Sse={renameFile:xse,removeFile:xse,createDirectory:xse,readFileContent:(Tse="",()=>Tse),writeFileContent:xse,copyFile:xse};var Tse;const Ese=bse({},Sse);function Pse(e){bse(Ese,e)}function vse(){bse(Ese,Sse)}yse.renameFile=(e,t)=>{Ese.renameFile(e,t)},yse.removeFile=e=>{Ese.removeFile(e)},yse.copyFile=(e,t)=>{Ese.copyFile(e,t)},yse.createDirectory=e=>{Ese.createDirectory(e)},yse.readFileContent=e=>Ese.readFileContent(e),yse.writeFileContent=(e,t)=>{Ese.writeFileContent(e,t)},yse.init=Pse,yse.pause=()=>{gse(Ese),vse()},yse.start=()=>{Pse(gse())},yse.deinit=vse;var Ase={};const{types:Cse}=st,{arrayExpression:wse,stringLiteral:kse,objectProperty:Ise}=Cse;function _se(e,t){const n=kse(e);return Ise(n,t)}Ase.createTypeProperty=e=>_se("type",kse(e)),Ase.createFilesProperty=e=>_se("files",wse(e)),Ase.createFilenameProperty=e=>_se("filename",kse(e)),Ase.createContentProperty=e=>_se("content",kse(e));const{join:Nse,basename:Lse,dirname:Ose}=u6,{types:Dse}=st,Fse=m8,{setLiteralValue:Mse,getProperty:Bse,traverseProperties:Rse}=MK,jse=yse,{createTypeProperty:Use,createFilesProperty:qse,createFilenameProperty:Jse,createContentProperty:$se}=Ase,{isProgram:Vse,objectExpression:Kse}=Dse,Wse=e=>"string"==typeof e,{isArray:Xse}=Array,Hse=e=>{const[t,n]=Fse(btoa,e);return t?btoa(escape(e)):n},zse=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function Yse(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return Vse(t)?null:t}function Gse({name:e,base:t,exclude:n}){for(const r of n)if(e===r||zse(r).test(t))return!0;return!1}function Qse(e,t,n=[]){!function(e){if(!Wse(e)&&!Xse(e))throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'findFile(filePath: Path|FilePath, name: string | string[]): FilePath'")}(t);const r=[],i=(e=>Xse(e)?e:[e])(t);for(const t of Rse(e,"filename")){const{value:e}=t.node.value,s=Lse(e);for(const a of i)if(e===a||zse(a).test(s)){const e=t.parentPath;if(Gse({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function Zse(e){return Bse(e,"filename").get("value")}function eae(e){const{value:t}=Zse(e).node;return t}function tae(e){return Bse(e,"type").node.value.value}function nae(e){const t=Bse(e,"content");return[Boolean(t),t?.node.value.value]}function rae(e){const t=eae(e);Yse(e)&&(e.remove(),jse.removeFile(t))}function iae(e,t){const n=tae(e);if("directory"!==n){const t=eae(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=Bse(e,"files"),i=Nse(eae(e),Lse(t)),[s]=Qse(r,i);s&&s.remove()}mse.getParentDirectory=Yse,mse.findFile=Qse,mse.getFileType=tae,mse.getFileContent=nae,mse.getFilename=eae,mse.renameFile=(e,t)=>{const n=eae(e),r=Zse(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);Mse(r,a),jse.renameFile(n,a)},mse.removeFile=rae,mse.removeEmptyDirectory=e=>{if("directory"!==tae(e))return;let t=e;for(;!aae(e).length;){if("/"===eae(e))break;if(t=Yse(e),!t)break;rae(e),e=t}},mse.moveFile=(e,t)=>{if(e===t)return;const n=eae(t),r=eae(e),i=sae(t),s=Bse(e,"filename"),a=r.split("/").pop(),o=Nse(n,a);iae(t,o),Mse(s.get("value"),o),i.node.value.elements.push(e.node),e.remove(),jse.renameFile(r,o)},mse.copyFile=(e,t)=>{const n=eae(t),r=eae(e),i=r.split("/").pop(),s=Nse(n,i),[a,o]=nae(e),u=Kse([Use("file"),Jse(s),a&&$se(o)].filter(Boolean));iae(t,s);sae(t).node.value.elements.push(u),jse.copyFile(r,s)},mse.createFile=(e,t,n)=>{iae(e,t);const r=sae(e),i=eae(e),s=Nse(i,t),a=[Use("file"),Jse(s),n&&$se(n)].filter(Boolean);r.node.value.elements.push(Kse(a));const o=r.get("value.elements").at(-1);return Wse(n)&&uae(o,n),o};const sae=e=>Bse(e,"files");function aae(e){return"directory"!==tae(e)?[]:sae(e).get("value.elements")}function oae(e,t){const n=sae(e),r=eae(e),i=Nse(r,t),s=Use("directory"),a=qse([]),o=Jse(i);return n.node.value.elements.push(Kse([s,o,a])),jse.createDirectory(i),n.get("value.elements").at(-1)}function uae(e,t){if("directory"===tae(e))return;const n=eae(e);jse.writeFileContent(n,t);const r=Bse(e,"content");if(r)return void Mse(r.node.value,Hse(t));const i=$se(Hse(t));e.node.properties.push(i)}function cae(e){let t=Yse(e);if(!t)return e;let n=t;for(;t=Yse(t);)n=t;return n}mse.readDirectory=aae,mse.createDirectory=oae,mse.readFileContent=e=>{if("directory"===tae(e))return"";const[t,n]=nae(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=Fse(atob,e);return t?e:unescape(n)})(n);const r=eae(e),i=jse.readFileContent(r),s=$se(Hse(i));return e.node.properties.push(s),i},mse.writeFileContent=uae,mse.createNestedDirectory=(e,t)=>{const n=cae(e);if(Ose(t)===eae(e))return oae(e,Lse(t));let r=t;const i=eae(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=Ose(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=Nse(i,t);s.shift();break}let o=Qse(n,s).at(-1)||n;const u=eae(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=oae(o,Lse(s[l]))}return o},mse.getRootDirectory=cae,mse.init=jse.init,mse.deinit=jse.deinit,mse.pause=jse.pause,mse.start=jse.start;var lae={};const{basename:pae,dirname:dae}=u6,{types:hae}=st,{createDirectory:fae,getFileType:mae,getFilename:yae,findFile:gae}=mse,{__filesystem_name:bae}=o4,{replaceWith:xae,getProperty:Sae}=MK,{objectExpression:Tae,arrayExpression:Eae,stringLiteral:Pae,isArrayExpression:vae,isStringLiteral:Aae,isTemplateLiteral:Cae,objectProperty:wae}=hae;lae.report=()=>"Convert Simple Filesystem to Filesystem";const kae=e=>e.endsWith("/"),Iae=e=>{const t=kae(e)?"directory":"file";return wae(Pae("type"),Pae(t))},_ae=e=>wae(Pae("filename"),Pae(e)),Nae=e=>kae(e)?wae(Pae("files"),Eae([])):null,Lae=e=>wae(Pae("content"),Pae(e));function Oae(e,t){if(Aae(e))return e.value;if(Cae(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}lae.fix=e=>{const t=Eae([]);for(const n of e.get("elements")){if(vae(n)){const[e,r]=n.node.elements,{value:i}=e,s=Oae(r,n);t.elements.push(Tae([Iae(i),_ae(i),Lae(s)]));continue}if(Aae(n)){const{value:e}=n.node;t.elements.push(Tae([Iae(e),_ae(Dae(e)),Nae(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=gae(t,"*");for(const e of r){const t=yae(e);Fae(t);const r=mae(e),i=dae(t),s=pae(t),[a]=gae(n,i);if(!a||"directory"!==mae(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){fae(a,s);continue}Sae(a,"files").node.value.elements.push(e.node)}xae(e,n)}(e,t)},lae.traverse=({push:e})=>({[`${bae}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const Dae=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function Fae(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var Mae={};const{types:Bae}=st,{replaceWith:Rae,getProperty:jae}=MK,{__filesystem_name:Uae}=o4,{findFile:qae,getFilename:Jae,getFileType:$ae}=mse,{stringLiteral:Vae,arrayExpression:Kae}=Bae,{isArray:Wae}=Array,Xae=e=>"/"===e?e:`${e}/`;Mae.report=()=>"Convert Filesystem to Simple Filesystem",Mae.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=Jae(e),r=$ae(e),i=jae(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(Xae(t))}const r=[];for(const e of n)Wae(e)?r.push(Kae([Vae(e[0]),Vae(e[1])])):r.push(Vae(e));Rae(e,Kae(r))},Mae.traverse=({push:e})=>({[`${Uae}(__object)`]:t=>{const n=t.get("arguments.0"),r=qae(n,"*");e(n,{files:r})}});const Hae=zj,{compare:zae}=tee,{__filesystem_name:Yae}=o4,{findFile:Gae,pause:Qae,start:Zae}=mse,eoe=u7("putout:runner:scanner"),toe=lae,noe=Mae;fse.scan=({rule:e,plugin:t,msg:n,options:r},{progress:i})=>{const{scan:s,report:a,fix:o}=t;i.inc();return{rule:e,msg:n,options:r,plugin:{report:a,fix:o,traverse:ioe({scan:s,rule:e,progress:i})}}};const roe=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},ioe=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${Yae}(__)`](s){eoe(t),n.start(t);const a=s.get("arguments.0"),o=Hae(!1),u=(({rule:e,progress:t})=>({i:n,n:r})=>{++n;const i=`${Math.round(n/r*100)}%`;t.file({i:n,n:r,percent:i,rule:e})})({rule:t,progress:n}),c=(e=>function*(...t){const n=Gae(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);aoe(toe,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:roe({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),aoe(noe,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),soe=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function aoe(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:soe({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${Yae}(__object)`],n=e[`${Yae}(__array)`];return t?[t,`${Yae}(__object)`]:[n,`${Yae}(__array)`]}(a);zae(t,u)&&(Qae(),o(t),Zae())}const{traverse:ooe}=st,uoe=$5,coe=u7("putout:runner:find"),loe=m7,poe=W7,doe=Q7,hoe=kre,{createProgress:foe}=Ire,{tryThrowWithReason:moe}=jre,{include:yoe}=qre,{replace:goe,clearWatermark:boe}=Hre,{declare:xoe}=jie,{scan:Soe}=fse,{getPath:Toe,getPosition:Eoe}=y7,Poe=e=>e?.removed;i7.runPlugins=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=foe(),traverse:a=ooe})=>{let o=[];const u=uoe(poe),{pluginsFind:c,pluginsTraverse:l}=function(e,{progress:t}){const n=[],r=[];for(const i of e){const{plugin:e}=i;e.find?n.push(i):e.traverse?r.push(i):e.replace?r.push(yoe(goe(i))):e.declare?r.push(yoe(xoe(i))):e.include?r.push(yoe(i)):e.scan&&r.push(Soe(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=voe({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:hoe,traverse:a}),s.reset(),!n||!o.length)return o;boe(e)}return o},i7.getPosition=Eoe;const voe=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...Coe({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...Aoe({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function Aoe({ast:e,fix:t,shebang:n,template:r,pluginsTraverse:i,merge:s,traverse:a}){const{entries:o,visitor:u}=s(i,{fix:t,shebang:n,template:r});moe(a,e,u);const c=[];for(const[e,t]of o){const n=t();for(const{message:t,position:r}of n)c.push({rule:e,message:t,position:r})}return c}function Coe({ast:e,fix:t,shebang:n,template:r,pluginsFind:i,traverse:s}){const a=[];for(const{rule:o,plugin:u,msg:c,options:l}of i){coe(`find: ${o}`);const{report:i,find:p}=u,d=moe(doe,{rule:o,find:p,ast:e,options:l,fix:t,shebang:n,template:r,traverse:s});if(d.length)for(const e of d){const r=c||i(e),{parentPath:s}=Toe(e),p=Eoe(e,n);a.push({rule:o,message:r,position:p}),Poe(s)||loe(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const woe=W8,koe=i7,{createProgress:Ioe}=Ire;K8.defaultOptions=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=3,loadPlugins:s=woe.loadPlugins,loadPluginsAsync:a=woe.loadPluginsAsync,runPlugins:o=koe.runPlugins,progress:u=Ioe()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}};var _oe={};const Noe=e=>e.replace(/\s\(\d:\d+\)/,""),Loe=m8,{validateRulesRelations:Ooe}=W8,{defaultOptions:Doe}=K8,{cutShebang:Foe}=V8,Moe=(e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:Noe(e.message),position:{line:n,column:r}}]},Boe=e=>e?Moe(e,"loader"):[];_oe.transform=(e,t,n)=>{n=Doe(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPlugins:u,runPlugins:c,progress:l}=n,[,p]=Foe(t),[d]=Loe(Ooe,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:u({pluginNames:r,cache:i,rules:s}),progress:l});return[...Boe(d),...h]},_oe.transformAsync=async(e,t,n)=>{n=Doe(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPluginsAsync:u,runPlugins:c,progress:l}=n,[,p]=Foe(t),[d]=Loe(Ooe,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:await u({pluginNames:r,cache:i,rules:s}),progress:l});return[...Boe(d),...h]};var Roe={};const{transform:joe,transformAsync:Uoe}=_oe;Roe.findPlaces=(e,t,n)=>joe(e,t,{...n,fix:!1}),Roe.findPlacesAsync=async(e,t,n)=>await Uoe(e,t,{...n,fix:!1});const{isArray:qoe}=Array,Joe=()=>{};var $oe=()=>{let e=0,t=0;return async(n,r)=>{const{name:i,rule:s,source:a,places:o,index:u=0,count:c=1,trace:l=Joe,formatterOptions:p={}}=r;if(!qoe(o))throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof o}'`);return o.length&&++e,t+=o.length,l("progress",{rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t}),await n({rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t})}},Voe={};const{types:Koe,traverse:Woe}=st,{compare:Xoe,parseTemplate:Hoe,isTemplate:zoe,getTemplateValues:Yoe}=tee,{isFile:Goe,isProgram:Qoe}=Koe,{merge:Zoe}=Woe.visitors,{entries:eue}=Object;Voe.traverse=rue;const tue=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!Goe(e)&&!Qoe(e);return n=>{Woe(e,{noScope:t,...n})}},nue=([e])=>e;function rue(e,t){const n=tue(e),r=[],i=eue(t);if(!i.map(nue).find(zoe))return n(t);for(const[e,t]of i){if(!zoe(e)){r.push({[e]:t});continue}const[n,i]=Hoe(e),s=iue({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(Zoe(r))}const iue=({fn:e,node:t,tmpl:n})=>r=>{Xoe(r,t)&&e(r,Yoe(r.node,n))};Voe.contains=(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return rue(e,i),n};var sue={};const{setLiteralValue:aue}=MK,{types:oue}=st,{isJSXElement:uue}=oue;function cue(e,t){let n=null;if(!e)return n;const r=e.node||e,{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}function lue(e,t){const n=cue(e,t);return n?n.value.value:""}function pue(e,t,n){const r=cue(e,t);r.value.value.includes(n)||aue(r.value,`${r.value.value} ${n}`)}function due(e,t,n){if(!e)return;const r=cue(e.node||e,t),{value:i}=r.value;i.includes(n)&&aue(r.value,i.replace(RegExp(`\\s?${n}`),""))}function hue(e){return lue(e,"className")}sue.hasTagName=(e,t)=>{const n=e.node||e;return!!uue(e)&&n.openingElement.name.name===t},sue.getAttributePath=(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},sue.getAttributeNode=cue,sue.getAttributeValue=lue,sue.addAttributeValue=pue,sue.removeAttributeValue=due,sue.setAttributeValue=(e,t,n)=>{const r=cue(e,t);r&&aue(r.value,n)},sue.addClassName=(e,t)=>{pue(e,"className",t)},sue.getClassName=hue,sue.removeClassName=(e,t)=>{due(e,"className",t)},sue.containsClassName=(e,t)=>hue(e).includes(t),sue.hasDataName=(e,t="")=>lue(e,"data-name")===t,sue.hasAttributeValue=(e,t,n="")=>lue(e,t)===n;var fue={_hasUFlag:!1,shouldRun:function(e){var t=e.flags.includes("s");return!!t&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var n="\\uFFFF",r="￿";this._hasUFlag&&(n="\\u{10FFFF}",r="􏿿"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:n,kind:"unicode",symbol:r}}]})}}},mue={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},yue={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}},gue={dotAll:fue,namedCapturingGroups:mue,xFlag:yue};function bue(e){return e?xue[e.type](e):""}var xue={RegExp:function(e){return"/"+bue(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(bue).join("")},Disjunction:function(e){return bue(e.left)+"|"+bue(e.right)},Group:function(e){var t=bue(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw new TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=bue(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=bue(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(bue).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return bue(e.from)+"-"+bue(e.to)},Repetition:function(e){return""+bue(e.expression)+bue(e.quantifier)},Quantifier:function(e){var t=void 0,n=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw new TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+n},Char:function(e){var t=e.value;switch(e.kind){case"simple":return e.escaped?"\\"+t:t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw new TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},Sue={generate:bue},Tue={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},Eue=Iue(Tue),Pue={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"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:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",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:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"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"},vue=Iue(Pue),Aue={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"},Cue=Iue(Aue),wue={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",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",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",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",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_Sogdian:"Sogo",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",Sogdian:"Sogd",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"},kue=Iue(wue);function Iue(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)t[r[i]]=n;else t[r]=n}return t}function _ue(e){return Aue.hasOwnProperty(e)||Cue.hasOwnProperty(e)}function Nue(e){return wue.hasOwnProperty(e)||kue.hasOwnProperty(e)}var Lue={isAlias:function(e){return Eue.hasOwnProperty(e)||vue.hasOwnProperty(e)},isValidName:function(e){return Tue.hasOwnProperty(e)||Eue.hasOwnProperty(e)||Pue.hasOwnProperty(e)||vue.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?_ue(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&Nue(t)},isGeneralCategoryValue:_ue,isScriptCategoryValue:Nue,isBinaryPropertyName:function(e){return Pue.hasOwnProperty(e)||vue.hasOwnProperty(e)},getCanonicalName:function(e){return Eue.hasOwnProperty(e)?Eue[e]:vue.hasOwnProperty(e)?vue[e]:null},getCanonicalValue:function(e){return Cue.hasOwnProperty(e)?Cue[e]:kue.hasOwnProperty(e)?kue[e]:vue.hasOwnProperty(e)?vue[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:Tue,NON_BINARY_ALIASES_TO_PROP_NAMES:Eue,BINARY_PROP_NAMES_TO_ALIASES:Pue,BINARY_ALIASES_TO_PROP_NAMES:vue,GENERAL_CATEGORY_VALUE_TO_ALIASES:Aue,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:Cue,SCRIPT_VALUE_TO_ALIASES:wue,SCRIPT_VALUE_ALIASES_TO_VALUE:kue},Oue=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function Due(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Fue=void 0,Mue={},Bue=void 0,Rue=void 0;function jue(e,t){return Mue.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var Uue=[[-1,1,function(e,t){Rue=jue(t,t),Bue=e}],[0,4,function(e,t,n,r,i,s,a,o){Rue=jue(i,o),Bue=lce({type:"RegExp",body:t,flags:rce(r)},pce(i,o||a))}],[1,1,function(e,t){Rue=jue(t,t),Bue=e}],[1,0,function(){Rue=null,Bue=""}],[2,1,function(e,t){Rue=jue(t,t),Bue=e}],[2,2,function(e,t,n,r){Rue=jue(n,r),Bue=e+t}],[3,1,function(e,t){Rue=jue(t,t),Bue=e}],[4,1,function(e,t){Rue=jue(t,t),Bue=e}],[4,3,function(e,t,n,r,i,s){Rue=jue(r,s);var a=null;i&&(a=pce(r||i,s||i)),Bue=lce({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){Rue=jue(t,t),Bue=0!==e.length?1===e.length?lce(e[0],Rue):lce({type:"Alternative",expressions:e},Rue):null}],[6,0,function(){Rue=null,Bue=[]}],[6,2,function(e,t,n,r){Rue=jue(n,r),Bue=e.concat(t)}],[7,1,function(e,t){Rue=jue(t,t),Bue=lce(Object.assign({type:"Assertion"},e),Rue)}],[7,2,function(e,t,n,r){Rue=jue(n,r),Bue=e,t&&(Bue=lce({type:"Repetition",expression:e,quantifier:t},Rue))}],[8,1,function(e,t){Rue=jue(t,t),Bue={kind:"^"}}],[8,1,function(e,t){Rue=jue(t,t),Bue={kind:"$"}}],[8,1,function(e,t){Rue=jue(t,t),Bue={kind:"\\b"}}],[8,1,function(e,t){Rue=jue(t,t),Bue={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){Rue=jue(t,t),Bue=e}],[9,1,function(e,t){Rue=jue(t,t),Bue=e}],[9,1,function(e,t){Rue=jue(t,t),Bue=e}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"simple",Rue)}],[10,1,function(e,t){Rue=jue(t,t),(Bue=tce(e.slice(1),"simple",Rue)).escaped=!0}],[10,1,function(e,t){Rue=jue(t,t),(Bue=tce(e,"unicode",Rue)).isSurrogatePair=!0}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"unicode",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=function(e,t){var n="P"===e[1],r=e.indexOf("="),i=e.slice(3,-1!==r?r:-1),s=void 0,a=-1===r&&ece.isGeneralCategoryValue(i),o=-1===r&&ece.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!ece.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!ece.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return lce({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:ece.getCanonicalName(i)||i,canonicalValue:ece.getCanonicalValue(s)||s},t)}(e,Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"control",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"hex",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"oct",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=zue)return lce({type:"Backreference",kind:"number",number:n,reference:n},t);return tce(e,"decimal",t)}(e,Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"meta",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"meta",Rue)}],[10,1,function(e,t){Rue=jue(t,t),Bue=function(e,t){var n=e.slice(3,-1),r=cce(n);if(Yue.hasOwnProperty(r))return lce({type:"Backreference",kind:"name",number:Yue[r],reference:r,referenceRaw:n},t);var i=null,s=null,a=null,o=null;t&&(i=t.startOffset,s=t.startLine,a=t.endLine,o=t.startColumn);var u=/^[\w$<>]/,c=void 0,l=[tce(e.slice(1,2),"simple",i?{startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=2,endColumn:o+=2}:null)];l[0].escaped=!0,e=e.slice(2);for(;e.length>0;){var p=null;(p=e.match(ice))||(p=e.match(sce))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(tce(p[0],"unicode",c)),e=e.slice(p[0].length)):(p=e.match(u))&&(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:++i,endColumn:++o}),l.push(tce(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){Rue=jue(t,t),Bue=e}],[11,0],[12,1,function(e,t){Rue=jue(t,t),Bue=e}],[12,2,function(e,t,n,r){Rue=jue(n,r),e.greedy=!1,Bue=e}],[13,1,function(e,t){Rue=jue(t,t),Bue=lce({type:"Quantifier",kind:e,greedy:!0},Rue)}],[13,1,function(e,t){Rue=jue(t,t),Bue=lce({type:"Quantifier",kind:e,greedy:!0},Rue)}],[13,1,function(e,t){Rue=jue(t,t),Bue=lce({type:"Quantifier",kind:e,greedy:!0},Rue)}],[13,1,function(e,t){Rue=jue(t,t);var n=Que(e);Bue=lce({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},Rue)}],[13,1,function(e,t){Rue=jue(t,t),Bue=lce({type:"Quantifier",kind:"Range",from:Que(e)[0],greedy:!0},Rue)}],[13,1,function(e,t){Rue=jue(t,t);var n=Que(e);Bue=lce({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},Rue)}],[14,1,function(e,t){Rue=jue(t,t),Bue=e}],[14,1,function(e,t){Rue=jue(t,t),Bue=e}],[15,3,function(e,t,n,r,i,s){Rue=jue(r,s);var a=String(e),o=cce(a);if(!Mue.options.allowGroupNameDuplicates&&Yue.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');Yue[o]=e.groupNumber,Bue=lce({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},Rue)}],[15,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue=lce({type:"Group",capturing:!0,number:e.groupNumber,expression:t},Rue)}],[16,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue=lce({type:"Group",capturing:!1,expression:t},Rue)}],[17,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue=lce({type:"CharacterClass",negative:!0,expressions:t},Rue)}],[17,3,function(e,t,n,r,i,s){Rue=jue(r,s),Bue=lce({type:"CharacterClass",expressions:t},Rue)}],[18,0,function(){Rue=null,Bue=[]}],[18,1,function(e,t){Rue=jue(t,t),Bue=e}],[19,1,function(e,t){Rue=jue(t,t),Bue=[e]}],[19,2,function(e,t,n,r){Rue=jue(n,r),Bue=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){Rue=jue(i,o),Zue(e,n),Bue=[lce({type:"ClassRange",from:e,to:n},pce(i,a))],r&&(Bue=Bue.concat(r))}],[20,1,function(e,t){Rue=jue(t,t),Bue=e}],[20,2,function(e,t,n,r){Rue=jue(n,r),Bue=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){Rue=jue(i,o),Zue(e,n),Bue=[lce({type:"ClassRange",from:e,to:n},pce(i,a))],r&&(Bue=Bue.concat(r))}],[21,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"simple",Rue)}],[21,1,function(e,t){Rue=jue(t,t),Bue=e}],[22,1,function(e,t){Rue=jue(t,t),Bue=e}],[22,1,function(e,t){Rue=jue(t,t),Bue=tce(e,"meta",Rue)}]],que={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},Jue=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],$ue=[],Vue=void 0,Kue=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return oce(Fue.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===Fue)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+Fue);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return oce(Fue=Fue.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],Wue={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},Xue={type:"$",value:""};Vue={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(Xue);for(var e=this._string.slice(this._cursor),t=Wue[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=Kue[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(Fue=s).length;var a=i[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var o,u=a.slice(1);if(a=a[0],u.length>0)(o=this._tokensQueue).unshift.apply(o,Due(u))}return this.onToken(this._toToken(a,Fue))}}if(this.isEOF())return this._cursor++,Xue;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,n){var r=this._string.split("\n")[t-1],i="";r&&(i="\n\n"+r+"\n"+" ".repeat(n)+"^\n");throw new SyntaxError(i+'Unexpected token: "'+e+'" at '+t+":"+n+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var n=void 0;null!==(n=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+n.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){return{type:e,value:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var n=e.match(t);return n?(this._captureLocation(n[0]),this._cursor+=n[0].length,n[0]):null},onToken:function(e){return e}},Mue.lexer=Vue,Mue.tokenizer=Vue,Mue.options={captureLocations:!0};var Hue={setOptions:function(e){return Mue.options=e,this},getOptions:function(){return Mue.options},parse:function(e,t){if(!Vue)throw new Error("Tokenizer instance wasn't specified.");Vue.initString(e);var n=Mue.options;t&&(Mue.options=Object.assign({},Mue.options,t)),Hue.onParseBegin(e,Vue,Mue.options),$ue.length=0,$ue.push(0);var r=Vue.getNextToken(),i=null;do{r||(Mue.options=n,hce());var s=$ue[$ue.length-1],a=que[r.type];Jue[s].hasOwnProperty(a)||(Mue.options=n,dce(r));var o=Jue[s][a];if("s"===o[0]){var u=null;Mue.options.captureLocations&&(u={startOffset:r.startOffset,endOffset:r.endOffset,startLine:r.startLine,endLine:r.endLine,startColumn:r.startColumn,endColumn:r.endColumn}),i=this.onShift(r),$ue.push({symbol:que[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=Vue.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=Uue[c],p="function"==typeof l[2],d=p?[]:null,h=p&&Mue.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){$ue.pop();var m=$ue.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){Fue=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,Due(g)),y.semanticValue=Bue,h&&(y.loc=Rue)}var b=$ue[$ue.length-1],x=l[0];$ue.push(y,Jue[b][x])}else if("acc"===o){$ue.pop();var S=$ue.pop();return(1!==$ue.length||0!==$ue[0]||Vue.hasMoreTokens())&&(Mue.options=n,dce(r)),S.hasOwnProperty("semanticValue")?(Mue.options=n,Hue.onParseEnd(S.semanticValue),S.semanticValue):(Hue.onParseEnd(),Mue.options=n,!0)}}while(Vue.hasMoreTokens()||$ue.length>1)},setTokenizer:function(e){return Vue=e,Hue},getTokenizer:function(){return Vue},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},zue=0,Yue={},Gue="";function Que(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw new SyntaxError("Numbers out of order in "+e+" quantifier");return t}function Zue(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw new SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}Hue.onParseBegin=function(e,t){Gue=e,zue=0,Yue={};var n=e.lastIndexOf("/"),r=e.slice(n);r.includes("x")&&r.includes("u")?t.pushState("xu"):(r.includes("x")&&t.pushState("x"),r.includes("u")&&t.pushState("u"))},Hue.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++zue),e};var ece=Lue;function tce(e,t,n){var r=void 0,i=void 0;switch(t){case"decimal":i=Number(e.slice(1)),r=String.fromCodePoint(i);break;case"oct":i=parseInt(e.slice(1),8),r=String.fromCodePoint(i);break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var s=e.split("\\u").slice(1),a=Oue(s,2),o=a[0],u=a[1];i=1024*((o=parseInt(o,16))-55296)+((u=parseInt(u,16))-56320)+65536,r=String.fromCodePoint(i)}else{var c=e.slice(2).replace("{","");if((i=parseInt(c,16))>1114111)throw new SyntaxError("Bad character escape sequence: "+e);r=String.fromCodePoint(i)}break;case"meta":switch(e){case"\\t":i=(r="\t").codePointAt(0);break;case"\\n":i=(r="\n").codePointAt(0);break;case"\\r":i=(r="\r").codePointAt(0);break;case"\\v":i=(r="\v").codePointAt(0);break;case"\\f":i=(r="\f").codePointAt(0);break;case"\\b":i=(r="\b").codePointAt(0);case"\\0":r="\0",i=0;case".":r=".",i=NaN;break;default:i=NaN}break;case"simple":i=(r=e).codePointAt(0)}return lce({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var nce="gimsuxy";function rce(e){var t=new Set,n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=s.value;if(t.has(o)||!nce.includes(o))throw new SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e.split("").sort().join("")}var ice=/^\\u[0-9a-fA-F]{4}/,sce=/^\\u\{[0-9a-fA-F]{1,}\}/,ace=/\\u\{[0-9a-fA-F]{1,}\}/;function oce(e,t){if(ace.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var uce=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function cce(e){return e.replace(new RegExp(uce,"g"),function(e,t,n,r,i,s,a){return t?String.fromCodePoint(parseInt(t,16),parseInt(n,16)):r?String.fromCodePoint(parseInt(r,16)):i?String.fromCodePoint(parseInt(i,16)):s?String.fromCodePoint(parseInt(s,16)):a?String.fromCodePoint(parseInt(a,16)):e})}function lce(e,t){return Mue.options.captureLocations&&(e.loc={source:Gue.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function pce(e,t){return Mue.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function dce(e){"$"===e.type&&hce(),Vue.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function hce(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var fce=Hue;fce.default;var mce=fce,yce=mce.parse.bind(mce);mce.parse=function(e,t){return yce(""+e,t)},mce.setOptions({captureLocations:!1});var gce=mce;gce.default;var bce=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var xce="expressions",Sce="expression",Tce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=n,this.parent=n?n.node:null,this.property=r,this.index=i}return bce(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw new Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=n?(r||(r=xce),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=Sce),this._enforceProp(r),this.node[r]=t,i=e.getForNode(t,this,r,null)),i}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=xce),this._enforceProp(t);var n=this.node[t].length;return this.setChild(e,n,t)}},{key:"insertChildAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xce;this._enforceProp(r),this.node[r].splice(n,0,t),n<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,r)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index)return this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,void(this.property=null);delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,n){for(var r=e.getForNode(t),i=0;i<t[n].length;i++){e.getForNode(t[n][i],r,n,i).index=i}}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return e.registry.delete(this.node),this.node=t,this.parent?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,xce,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,Sce):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,Ece)===JSON.stringify(e.node,Ece)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.useLoc;return JSON.stringify(this.node,n?null:Ece,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,n,r,-1==i?null:i));var s=e.registry.get(t);return null!==n&&(s.parentPath=n,s.parent=s.parentPath.node),null!==r&&(s.property=r),i>=0&&(s.index=i),s}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function Ece(e,t){if("loc"!==e)return t}Tce.initRegistry(),Tce.traversingIndexStack=[];var Pce=Tce;Pce.default;var vce=Pce;var Ace={traverse:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function r(e,t,n,r){var i=vce.getForNode(t);return vce.getForNode(e,i,n,r)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),vce.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pre,r=t.post,i=t.skipProperty;!function e(t,s,a,o){if(t&&"string"==typeof t.type){var u=void 0;if(n&&(u=n(t,s,a,o)),!1!==u)for(var c in s&&s[a]&&(t=isNaN(o)?s[a]:s[a][o]),t)if(t.hasOwnProperty(c)){if(i?i(c,t):"$"===c[0])continue;var l=t[c];if(Array.isArray(l)){var p=0;for(vce.traversingIndexStack.push(p);p<l.length;)e(l[p],t,c,p),p=vce.updateTraversingIndex(1);vce.traversingIndexStack.pop()}else e(l,t,c)}r&&r(t,s,a,o)}}(e,null)}(e,{pre:function(e,i,s,a){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if("function"==typeof h["*"])if(o){if(!o.isRemoved())if(!1===h["*"](o))return!1}else h["*"](e,i,s,a);var f=void 0;if("function"==typeof h[e.type]?f=h[e.type]:"object"==typeof h[e.type]&&"function"==typeof h[e.type].pre&&(f=h[e.type].pre),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}},post:function(e,i,s,a){if(e){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value,f=void 0;if("object"==typeof h[e.type]&&"function"==typeof h[e.type].post&&(f=h[e.type].post),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},skipProperty:function(e){return"loc"===e}})}},Cce=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var wce=Sue,kce=gce,Ice=Ace,_ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=n}return Cce(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=wce.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=wce.generate(this._ast)),this._string}}]),e}(),Nce={TransformResult:_ce,transform:function(e,t){var n=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(n=kce.parse(e,{captureLocations:!0})),Ice.traverse(n,t),new _ce(n)}},Lce=gue,Oce=Nce,Dce={transform:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length>0?t:Object.keys(Lce),r=void 0,i={};return n.forEach(function(t){if(!Lce.hasOwnProperty(t))throw new Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(Lce).join(", "));var n=Lce[t];r=Oce.transform(e,n),e=r.getAST(),"function"==typeof n.getExtra&&(i[t]=n.getExtra())}),r.setExtra(i),r}},Fce={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"===t.kind&&t.isSurrogatePair&&!isNaN(t.codePoint)&&(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}},Mce="A".codePointAt(0),Bce="Z".codePointAt(0),Rce="a".codePointAt(0),jce="z".codePointAt(0),Uce="0".codePointAt(0),qce="9".codePointAt(0),Jce={Char:function(e){var t=e.node,n=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==n.type||function(e){var t=e.from,n=e.to;return t.codePoint>=Uce&&t.codePoint<=qce&&n.codePoint>=Uce&&n.codePoint<=qce||t.codePoint>=Mce&&t.codePoint<=Bce&&n.codePoint>=Mce&&n.codePoint<=Bce||t.codePoint>=Rce&&t.codePoint<=jce&&n.codePoint>=Rce&&n.codePoint<=jce}(n))&&(r=t.codePoint)>=32&&r<=126){var r,i=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:i,symbol:i,codePoint:t.codePoint};(function(e,t){if("ClassRange"===t||"CharacterClass"===t)return/[\]\\^-]/.test(e);return/[*[()+?^$./\\|{}]/.test(e)})(i,n.type)&&(s.escaped=!0),e.replace(s)}}};var $ce="A".codePointAt(0),Vce="Z".codePointAt(0),Kce={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t=e.node,n=e.parent;if(!isNaN(t.codePoint)&&(this._hasUFlag||!(t.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&!function(e){var t=e.from,n=e.to;return t.codePoint>=$ce&&t.codePoint<=Vce&&n.codePoint>=$ce&&n.codePoint<=Vce}(n))return;this._AZClassRanges.add(n)}var r=t.symbol.toLowerCase();r!==t.symbol&&(t.value=function(e,t){var n=e.codePointAt(0);if("decimal"===t.kind)return"\\"+n;if("oct"===t.kind)return"\\0"+n.toString(8);if("hex"===t.kind)return"\\x"+n.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var r=function(e){var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return{lead:t.toString(16),trail:n.toString(16)}}(n),i=r.lead,s=r.trail;return"\\u"+"0".repeat(4-i.length)+i+"\\u"+"0".repeat(4-s.length)+s}if(t.value.includes("{"))return"\\u{"+n.toString(16)+"}";var a=n.toString(16);return"\\u"+"0".repeat(4-a.length)+a}return e}(r,t),t.symbol=r,t.codePoint=r.codePointAt(0))}}};var Wce={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw new TypeError('Expected "Disjunction" node, got "'+t.type+'"');var n=[];return t.left&&"Disjunction"===t.left.type?n.push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e(t.left)).concat([t.right])):n.push(t.left,t.right),n},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}},Xce=Wce.increaseQuantifierByOne,Hce={Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var n=e.getPreviousSibling();if(n)if("Repetition"===n.node.type){if(!n.getChild().hasEqualSource(e.getChild()))return;var r=Yce(n.node.quantifier),i=r.from,s=r.to,a=Yce(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!zce(n.node.quantifier)&&!zce(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(zce(n.node.quantifier)||zce(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;Xce(t.quantifier),n.remove()}}}};function zce(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function Yce(e){var t=void 0,n=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,n=1):(t=e.from,e.to&&(n=e.to)),{from:t,to:n}}var Gce={Quantifier:function(e){"Range"===e.node.kind&&(function(e){var t=e.node;if(0!==t.from||t.to)return;t.kind="*",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||t.to)return;t.kind="+",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||1!==t.to)return;e.parentPath.replace(e.parentPath.node.expression)}(e))}};function Qce(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Zce={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){!function(e){var t=e.node;t.expressions.forEach(function(t,n){(function(e){return"ClassRange"===e.type&&"0"===e.from.value&&"9"===e.to.value})(t)&&e.getChild(n).replace({type:"Char",value:"\\d",kind:"meta"})})}(e),function(e,t,n){var r=e.node,i=null,s=null,a=null,o=null,u=null,c=null;r.expressions.forEach(function(r,l){nle(r,"\\d")?i=e.getChild(l):!function(e){return"ClassRange"===e.type&&"a"===e.from.value&&"z"===e.to.value}(r)?!function(e){return"ClassRange"===e.type&&"A"===e.from.value&&"Z"===e.to.value}(r)?!function(e){return"Char"===e.type&&"_"===e.value&&"simple"===e.kind}(r)?t&&n&&rle(r,383)?u=e.getChild(l):t&&n&&rle(r,8490)&&(c=e.getChild(l)):o=e.getChild(l):a=e.getChild(l):s=e.getChild(l)}),i&&(s&&a||t&&(s||a))&&o&&(!n||!t||u&&c)&&(i.replace({type:"Char",value:"\\w",kind:"meta"}),s&&s.remove(),a&&a.remove(),o.remove(),u&&u.remove(),c&&c.remove())}(e,this._hasIFlag,this._hasUFlag),function(e){var t=e.node;if(t.expressions.length<ele.length||!ele.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return nle(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return ele.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var ele=[function(e){return tle(e," ")}].concat(Qce(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return nle(t,e)}})),Qce([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return rle(t,e)}})),[function(e){return"ClassRange"===e.type&&rle(e.from,8192)&&rle(e.to,8202)}]);function tle(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===n}function nle(e,t){return tle(e,t,"meta")}function rle(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var ile={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];if(null==r)return!0;if("Backreference"===r.type&&"number"===r.kind)return!1;if("Char"===r.type&&"decimal"===r.kind)return!1;return!0}(e)&&function(e){return"Char"===e.type&&"\\b"!==e.value}(t.expressions[0])){var n=t.expressions[0],r=n.value,i=n.kind,s=n.escaped;if(t.negative){if(!function(e){return/^\\[dwsDWS]$/.test(e)}(r))return;r=function(e){return/[dws]/.test(e)?e.toUpperCase():e.toLowerCase()}(r)}e.replace({type:"Char",value:r,kind:i,escaped:s||sle(r)})}}};function sle(e){return/[*[()+?$./{}|]/.test(e)}var ale={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t=e.node;t.escaped&&function(e,t){var n=e.node.value,r=e.index,i=e.parent;if("CharacterClass"!==i.type&&"ClassRange"!==i.type)return!function(e,t,n,r){if("{"===e)return function(e,t){if(null==e)return!1;var n=ole(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(ule(i,"}"))return!0;if(ule(i,","))return ule(i=(r=r+(n=ole(r+1,t))+1)<t.expressions.length&&t.expressions[r],"}")}return!1}(t,n);if("}"===e)return function(e,t){if(null==e)return!1;var n=ole(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&ule(i,"{"))return!0;if(ule(i,","))return i=(r=r-(n=ole(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&ule(i,"{");return!1}(t,n);if(r&&/[ #]/.test(e))return!0;return/[*[()+?^$./\\|]/.test(e)}(n,r,i,t);return!function(e,t,n){if("^"===e)return 0===t&&!n.negative;if("-"===e)return!0;return/[\]\\]/.test(e)}(n,r,i)}(e,this._hasXFlag)&&delete t.escaped}};function ole(e,t,n){for(var r=e,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];i&&"Char"===i.type&&"simple"===i.kind&&!i.escaped&&/\d/.test(i.value);)n?r--:r++,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];return Math.abs(e-r)}function ule(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var cle={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,n=[];t.forEach(function(e){dle(e)&&n.push(e.value)}),t.sort(lle);for(var r=0;r<t.length;r++){var i=t[r];if(fle(i,n,this._hasIUFlags)||xle(i,t[r-1])||Sle(i,t[r+1]))t.splice(r,1),r--;else{var s=Ele(i,r,t);t.splice(r-s+1,s),r-=s}}}};function lle(e,t){var n=ple(e),r=ple(t);if(n===r){if("ClassRange"===e.type&&"ClassRange"!==t.type)return-1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return ple(e.to)-ple(t.to);if(dle(e)&&dle(t)||hle(e)&&hle(t))return e.value<t.value?-1:1}return n-r}function ple(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function dle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function hle(e){return"Char"===e.type&&"control"===e.kind}function fle(e,t,n){for(var r=0;r<t.length;r++)if(mle(e,t[r],n))return!0;return!1}function mle(e,t,n){return"ClassRange"===e.type?mle(e.from,t,n)&&mle(e.to,t,n):!("\\S"!==t||!dle(e,"\\w")&&!dle(e,"\\d"))||(!("\\D"!==t||!dle(e,"\\W")&&!dle(e,"\\s"))||(!("\\w"!==t||!dle(e,"\\d"))||(!("\\W"!==t||!dle(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?yle(e):"\\S"===t?!yle(e):"\\d"===t?gle(e):"\\D"===t?!gle(e):"\\w"===t?ble(e,n):"\\W"===t&&!ble(e,n)))))}function yle(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function gle(e){return e.codePoint>=48&&e.codePoint<=57}function ble(e,t){return gle(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function xle(e,t){if(t&&"ClassRange"===t.type){if(Tle(e,t))return!0;if(Ple(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}function Sle(e,t){return!(!t||"ClassRange"!==t.type||!Ple(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function Tle(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?Tle(e.from,t)&&Tle(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function Ele(e,t,n){if(!Ple(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!Ple(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function Ple(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(ble(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var vle=Pce,Ale=Wce.disjunctionToList,Cle=Wce.listToDisjunction,wle={Disjunction:function(e){var t=e.node,n={},r=Ale(t).filter(function(e){var t=e?vle.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(Cle(r))}},kle={Disjunction:function(e){var t=e.node,n=e.parent;if(Ile[n.type]){var r=new Map;if(_le(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};Ile[n.type](e.getParent(),i)}}}},Ile={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var n=e.node;n.capturing?n.expression=t:e.replace(t)}};function _le(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return _le(r,t)&&_le(i,t)}if("Char"===n){if("meta"===e.kind&&"."===e.symbol)return!1;var s=e.value;return t.set(s,e),!0}return"CharacterClass"===n&&!e.negative&&e.expressions.every(function(e){return _le(e,t)})}function Nle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Lle={Group:function(e){var t=e.node,n=e.parent,r=e.getChild();if(!t.capturing&&r&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];if(null==r)return!0;if("Backreference"===r.type&&"number"===r.kind)return!1;if("Char"===r.type&&"decimal"===r.kind)return!1;return!0}(e)&&!("Disjunction"===r.node.type&&"RegExp"!==n.type||"Repetition"===n.type&&"Char"!==r.node.type&&"CharacterClass"!==r.node.type))if("Alternative"===r.node.type){var i=e.getParent();"Alternative"===i.node.type&&i.replace({type:"Alternative",expressions:[].concat(Nle(n.expressions.slice(0,e.index)),Nle(r.node.expressions),Nle(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function Ole(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Dle=Pce,Fle=Wce.increaseQuantifierByOne,Mle={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,Ble(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,Rle(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,jle(e,r,n)),n++}}};function Ble(e,t,n){for(var r=e.node,i=Math.ceil(n/2),s=0;s<i;){var a=n-2*s-1,o=void 0,u=void 0;if(0===s?(o=t,u=e.getChild(a)):(o=Dle.getForNode({type:"Alternative",expressions:[].concat(Ole(r.expressions.slice(n-s,n)),[t.node])}),u=Dle.getForNode({type:"Alternative",expressions:[].concat(Ole(r.expressions.slice(a,n-s)))})),o.hasEqualSource(u)){for(var c=0;c<2*s+1;c++)e.getChild(a).remove();return t.replace({type:"Repetition",expression:0===s&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),a}s++}return n}function Rle(e,t,n){for(var r=e.node,i=0;i<n;){var s=e.getChild(i);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var a=s.getChild(),o=void 0;if("Group"!==a.node.type||a.node.capturing||(a=a.getChild()),i+1===n?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=Dle.getForNode({type:"Alternative",expressions:[].concat(Ole(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return Fle(s.node.quantifier),i}}i++}return n}function jle(e,t,n){var r=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var i=t.getChild(),s=void 0;"Group"!==i.node.type||i.node.capturing||(i=i.getChild());var a=void 0;if("Alternative"===i.node.type?(a=i.node.expressions.length,s=Dle.getForNode({type:"Alternative",expressions:[].concat(Ole(r.expressions.slice(n-a,n)))})):(a=1,"Group"!==(s=e.getChild(n-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(i)){for(var o=n-a;o<n;o++)e.getChild(n-a).remove();return Fle(t.node.quantifier),n-a}}return n}var Ule=new Map([["charSurrogatePairToSingleUnicode",Fce],["charCodeToSimpleChar",Jce],["charCaseInsensitiveLowerCaseTransform",Kce],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,n={},r=0;r<t.expressions.length;r++){var i=e.getChild(r),s=i.jsonEncode();n.hasOwnProperty(s)&&(i.remove(),r--),n[s]=!0}}}],["quantifiersMerge",Hce],["quantifierRangeToSymbol",Gce],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",Zce],["charClassToSingleChar",ile],["charEscapeUnescape",ale],["charClassClassrangesMerge",cle],["disjunctionRemoveDuplicates",wle],["groupSingleCharsToCharClass",kle],["removeEmptyGroup",{Group:function(e){var t=e.node,n=e.parent,r=e.getChild();t.capturing||r||("Repetition"===n.type?e.getParent().replace(t):"RegExp"!==n.type&&e.remove())}}],["ungroup",Lle],["combineRepeatingPatterns",Mle]]);Ule.default;var qle=function e(t){if(null===t||"object"!=typeof t)return t;var n=void 0;for(var r in n=Array.isArray(t)?[]:{},t)n[r]=e(t[r]);return n},Jle=gce,$le=Nce,Vle=Ule,Kle={optimize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.whitelist,r=void 0===n?[]:n,i=t.blacklist,s=void 0===i?[]:i,a=(r.length>0?r:Array.from(Vle.keys())).filter(function(e){return!s.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=Jle.parse(e));var u=new $le.TransformResult(o),c=void 0;do{c=u.toString(),o=qle(u.getAST()),a.forEach(function(e){if(!Vle.has(e))throw new Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(Vle.keys()).join(", "));var t=Vle.get(e),n=$le.transform(o,t);n.toString()!==u.toString()&&(n.toString().length<=u.toString().length?u=n:o=qle(u.getAST()))})}while(u.toString()!==c);return u}},Wle={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},Xle=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Hle=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var zle=Wle.EPSILON,Yle=Wle.EPSILON_CLOSURE,Gle=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=n}return Hle(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var n=e[t];for(var r in n)r!==Yle&&this._alphabet.add(r)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,n=void 0;try{for(var r,i=this.getAcceptingStates()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var s=r.value;this._acceptingStateNumbers.add(s.number)}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,n=new Set;!function r(i){if(!t.has(i)){t.add(i),i.number=t.size,e._transitionTable[i.number]={},i.accepting&&e._acceptingStates.add(i);var s=i.getTransitions(),a=!0,o=!1,u=void 0;try{for(var c,l=s[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var p=c.value,d=Xle(p,2),h=d[0],f=d[1],m=[];n.add(h);var y=!0,g=!1,b=void 0;try{for(var x,S=f[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value;r(T),m.push(T.number)}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}e._transitionTable[i.number][h]=m}}catch(e){o=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(o)throw u}}}}(this.in),t.forEach(function(t){delete e._transitionTable[t.number][zle],e._transitionTable[t.number][Yle]=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),Qle=Gle;Qle.default;var Zle=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function epe(e){return Array.isArray(e)?e:Array.from(e)}function tpe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var npe=null;function rpe(e,t){if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.size!==i.size)return!1;if([].concat(tpe(r)).sort().join(",")!==[].concat(tpe(i)).sort().join(","))return!1}return!0}function ipe(e,t,n,r){var i=!0,s=!1,a=void 0;try{for(var o,u=r[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){if(!spe(e,t,n,o.value))return!1}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return!0}function spe(e,t,n,r){if(!npe[e]||!npe[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||npe[e].has(i)&&npe[t].has(s)}var ape={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();npe={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?npe[e]=i:(s.add(e),npe[e]=s)});var a=[[s,i].filter(function(e){return e.size>0})],o=void 0,u=void 0;o=a[a.length-1],u=a[a.length-2];for(var c=function(){var e={},n=!0,i=!1,s=void 0;try{for(var c,l=o[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var p=c.value,d={},h=epe(p),f=h[0],m=h.slice(1);d[f]=new Set([f]);var y=!0,g=!1,b=void 0;try{e:for(var x,S=m[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value,E=!0,P=!1,v=void 0;try{for(var A,C=Object.keys(d)[Symbol.iterator]();!(E=(A=C.next()).done);E=!0){var w=A.value;if(ipe(T,w,t,r)){d[w].add(T),d[T]=d[w];continue e}}}catch(e){P=!0,v=e}finally{try{!E&&C.return&&C.return()}finally{if(P)throw v}}d[T]=new Set([T])}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}Object.assign(e,d)}}catch(e){i=!0,s=e}finally{try{!n&&l.return&&l.return()}finally{if(i)throw s}}npe=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(tpe(k))),o=a[a.length-1],u=a[a.length-2]};!rpe(o,u);)c();var l=new Map,p=1;o.forEach(function(e){return l.set(e,p++)});var d={},h=new Set,f=function(e,t){var n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var u=a.value;i.has(u)&&h.add(t)}}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}},m=!0,y=!1,g=void 0;try{for(var b,x=l.entries()[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){var S=b.value,T=Zle(S,2),E=T[0],P=T[1];d[P]={};var v=!0,A=!1,C=void 0;try{for(var w,k=r[Symbol.iterator]();!(v=(w=k.next()).done);v=!0){var I=w.value;f(E,P);var _=void 0,N=!0,L=!1,O=void 0;try{for(var D,F=E[Symbol.iterator]();!(N=(D=F.next()).done);N=!0){var M=D.value;if(_=t[M][I])break}}catch(e){L=!0,O=e}finally{try{!N&&F.return&&F.return()}finally{if(L)throw O}}_&&(d[P][I]=l.get(npe[_]))}}catch(e){A=!0,C=e}finally{try{!v&&k.return&&k.return()}finally{if(A)throw C}}}}catch(e){y=!0,g=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw g}}return e.setTransitionTable(d),e.setAcceptingStateNumbers(h),e}},ope=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function upe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var cpe=ape,lpe=Wle.EPSILON_CLOSURE,ppe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return ope(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,cpe.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),n=Object.keys(t);this._acceptingStateNumbers=new Set;for(var r=[t[n[0]][lpe]],i=this.getAlphabet(),s=this._nfa.getAcceptingStateNumbers(),a={},o=function(t){var n=!0,r=!1,i=void 0;try{for(var a,o=s[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var u=a.value;if(-1!==t.indexOf(u)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}};r.length>0;){var u=r.shift(),c=u.join(",");a[c]={};var l=!0,p=!1,d=void 0;try{for(var h,f=i[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var m=h.value,y=[];o(u);var g=!0,b=!1,x=void 0;try{for(var S,T=u[Symbol.iterator]();!(g=(S=T.next()).done);g=!0){var E=t[S.value][m];if(E){var P=!0,v=!1,A=void 0;try{for(var C,w=E[Symbol.iterator]();!(P=(C=w.next()).done);P=!0){var k=C.value;t[k]&&y.push.apply(y,upe(t[k][lpe]))}}catch(e){v=!0,A=e}finally{try{!P&&w.return&&w.return()}finally{if(v)throw A}}}}}catch(e){b=!0,x=e}finally{try{!g&&T.return&&T.return()}finally{if(b)throw x}}var I=new Set(y),_=[].concat(upe(I));if(_.length>0){var N=_.join(",");a[c][m]=N,a.hasOwnProperty(N)||r.unshift(_)}}}catch(e){p=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(p)throw d}}}return this._transitionTable=this._remapStateNumbers(a)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var n={};for(var r in Object.keys(e).forEach(function(e,n){t[e]=n+1}),e){var i=e[r],s={};for(var a in i)s[a]=t[i[a]];n[t[r]]=s}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,u=!1,c=void 0;try{for(var l,p=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var d=l.value;this._acceptingStateNumbers.add(t[d])}}catch(e){u=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(u)throw c}}return n}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,n=0,r=this.getTransitionTable();e[n];)if(!(t=r[t][e[n++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),dpe=ppe;dpe.default;var hpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var fpe=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).accepting,n=void 0!==t&&t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=n}return hpe(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}(),mpe=fpe;mpe.default;var ype=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var gpe=mpe,bpe=Wle.EPSILON,xpe=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,gpe),ype(e,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,r=!1,i=void 0;try{for(var s,a=this.getTransitionsOnSymbol(bpe)[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){if(s.value.matches("",t))return!0}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return!1}var o=e[0],u=e.slice(1),c=this.getTransitionsOnSymbol(o),l=!0,p=!1,d=void 0;try{for(var h,f=c[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){if(h.value.matches(u))return!0}}catch(e){p=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(p)throw d}}var m=!0,y=!1,g=void 0;try{for(var b,x=this.getTransitionsOnSymbol(bpe)[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){if(b.value.matches(e,t))return!0}}catch(e){y=!0,g=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw g}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(bpe),n=e._epsilonClosure=new Set;n.add(e);var r=!0,i=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var u=a.value;if(!n.has(u))n.add(u),u.getEpsilonClosure().forEach(function(e){return n.add(e)})}}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}}(),this._epsilonClosure}}]),e}(),Spe=xpe;Spe.default;var Tpe=Qle,Epe=Spe,Ppe=Wle.EPSILON;function vpe(e){var t=new Epe,n=new Epe({accepting:!0});return new Tpe(t.addTransition(e,n),n)}function Ape(e,t){return e.out.accepting=!1,t.out.accepting=!0,e.out.addTransition(Ppe,t.in),new Tpe(e.in,t.out)}function Cpe(e,t){var n=new Epe,r=new Epe;return n.addTransition(Ppe,e.in),n.addTransition(Ppe,t.in),r.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition(Ppe,r),t.out.addTransition(Ppe,r),new Tpe(n,r)}var wpe={alt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=Ape(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},char:vpe,e:function(){return vpe(Ppe)},or:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=Cpe(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},rep:function(e){return e.in.addTransition(Ppe,e.out),e.out.addTransition(Ppe,e.in),e},repExplicit:function(e){var t=new Epe,n=new Epe({accepting:!0});return t.addTransition(Ppe,e.in),t.addTransition(Ppe,n),e.out.accepting=!1,e.out.addTransition(Ppe,n),n.addTransition(Ppe,e.in),new Tpe(t,n)},plusRep:function(e){return e.out.addTransition(Ppe,e.in),e},questionRep:function(e){return e.in.addTransition(Ppe,e.out),e}};var kpe=gce,Ipe=wpe.alt,_pe=wpe.char,Npe=wpe.or,Lpe=wpe.rep,Ope=wpe.plusRep,Dpe=wpe.questionRep;function Fpe(e){if(e&&!Mpe[e.type])throw new Error(e.type+" is not supported in NFA/DFA interpreter.");return e?Mpe[e.type](e):""}var Mpe={RegExp:function(e){if(""!==e.flags)throw new Error("NFA/DFA: Flags are not supported yet.");return Fpe(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(Fpe);return Ipe.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))},Disjunction:function(e){return Npe(Fpe(e.left),Fpe(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return Lpe(Fpe(e.expression));case"+":return Ope(Fpe(e.expression));case"?":return Dpe(Fpe(e.expression));default:throw new Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw new Error("NFA/DFA: Only simple chars are supported yet.");return _pe(e.value)},Group:function(e){return Fpe(e.expression)}},Bpe={build:function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=kpe.parse(e,{captureLocations:!0})),Fpe(t)}},Rpe=dpe,jpe=Bpe,Upe={NFA:Qle,DFA:Rpe,builders:wpe,toNFA:function(e){return jpe.build(e)},toDFA:function(e){return new Rpe(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},qpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Jpe=function(){function e(t,n){var r=n.flags,i=n.groups,s=n.source;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=i,this.flags=r,this.source=s||t.source,this.dotAll=r.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return qpe(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var n in t.groups={},this._groups){var r=this._groups[n];t.groups[n]=t[r]}return t}}]),e}(),$pe=Dce,Vpe=Sue,Kpe=Kle,Wpe=gce,Xpe=Nce,Hpe=Ace,zpe={RegExpTree:Jpe}.RegExpTree,Ype={parser:Wpe,fa:Upe,TransformResult:Xpe.TransformResult,parse:function(e,t){return Wpe.parse(""+e,t)},traverse:function(e,t,n){return Hpe.traverse(e,t,n)},transform:function(e,t){return Xpe.transform(e,t)},generate:function(e){return Vpe.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).blacklist;return Kpe.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(e,t){return $pe.transform(e,t)},exec:function(e,t){if("string"==typeof e){var n=this.compatTranspile(e),r=n.getExtra();e=r.namedCapturingGroups?new zpe(n.toRegExp(),{flags:n.getFlags(),source:n.getSource(),groups:r.namedCapturingGroups}):n.toRegExp()}return e.exec(t)}};const Gpe=Ype,Qpe=({type:e,kind:t})=>"Char"!==e||"simple"!==t;var Zpe=e=>{let t=!1;const n=Gpe.parse(e);return"Alternative"===n.body.type&&(Gpe.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(Qpe))}}),!t)},ede={};const tde=Ype;ede.transformRegExp=(e,{report:t,traverse:n,fix:r})=>{const i=tde.parse(e,{captureLocations:!0}),s=[];return tde.traverse(i,n({push:e=>{const{start:n}=(e.path||e).node.loc;s.push({position:n,message:t(e)}),r(e)}})),[tde.generate(i),s]};const nde=Zpe,{transformRegExp:rde}=ede;var ide={isSimpleRegExp:nde,transformRegExp:rde},sde={};const{compareAny:ade}=tee,{template:ode}=Wj,{types:ude}=st,{isBlockStatement:cde,isFunction:lde,isLabeledStatement:pde,isObjectPattern:dde,isCallExpression:hde,objectPattern:fde,objectProperty:mde}=ude,{entries:yde}=Object,gde=!0,bde=e=>e.isCallExpression()||e.isStatement(),xde=e=>hde(e.find(bde)),Sde=({name:e})=>`Argument '${e}' is missing`;sde.addArgs=e=>({report:Sde,fix:Tde,traverse:Ede(e)});const Tde=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=ode.ast.fresh(e);if(cde(s)){const e=function(e){if(!pde(e)){const{expression:t}=e;return mde(t,t,!1,gde)}const{label:t,body:n}=e;return mde(t,n.expression,!1,gde)}(s.body[0]);return n.properties.push(e),dde(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},Ede=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of yde(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!xde(e))continue;const r=e.find(lde);if(!r)continue;const{block:o}=r.scope;if(!ade(e.scope.path,s))continue;if(ade(e.scope.path,a))continue;const{params:u}=o,[c,l]=Pde(u);if(dde(l))return void t({name:n,index:c,declaration:i,path:e,params:u,pattern:l});if(u.length>=3)return;t({name:n,index:c,declaration:i,path:e,params:u,pattern:fde([])})}}}};function Pde(e){for(const[t,n]of e.entries())if(dde(n))return[t,n];return[-1,null]}var vde={};const Ade=["import","export"],Cde=["const","var","let"],wde=["if"],kde=["readonly","implements","declare","module","type"],Ide=["interface","static"],_de=[...wde,...Cde,...Ade,...Ide,"async","break","continue","for","else","from","return","throw","of","while","class","extends","default"],Nde=[..._de,"as","await","new","yield","typeof","function"];vde.isKeyword=e=>Nde.includes(e),vde.isDeclarationKeyword=e=>Cde.includes(e),vde.isModuleDeclarationKeyword=e=>Ade.includes(e),vde.isConditionKeyword=e=>wde.includes(e),vde.isStatementKeyword=e=>_de.includes(e),vde.isTSKeyword=e=>{const t=kde.includes(e),n=Ide.includes(e);return t||n};var Lde={};const{relative:Ode}=u6,Dde=K5,Fde=e=>!e.indexOf("!"),Mde=e=>e.replace(/^!/,"");var Bde=(e,t,n={})=>{const r=Ode(e,t),i=Dde(),s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(Mde(n));Fde(n)&&r>t&&(e[r]=n)}const t=new Set(e);return Array.from(t)}(n.ignore||[]);return i.add(s),e&&i.ignores(r)};const Rde=u6,{parse:jde,print:Ude}=Wj,{transform:qde}=_oe,{findPlaces:Jde}=Roe,$de=Bde,{toJS:Vde,fromJS:Kde}=o4,{readFileContent:Wde,findFile:Xde,writeFileContent:Hde,getFilename:zde,createFile:Yde,removeFile:Gde,getParentDirectory:Qde}=mse,{join:Zde}=Rde,ehe=e=>e&&"object"==typeof e,{entries:the}=Object,nhe=(e,{message:t})=>t;function rhe(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){qde(s,i,a);const o=function(e,t){if(/\.json$/.test(e)){const e=Ude(t);return Kde(e)}return Ude(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=Zde(zde(e),n),[s]=Xde(e,i);return s||Yde(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});Hde(u,o),e!==u&&Gde(e)}Lde.matchFiles=e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of the(e))if(!ehe(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:rhe,scan:ihe({defaultFilename:t,files:n,exclude:r}),report:nhe}};const ihe=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=zde(r);a.filename=a.filename??n;for(const[n,i]of the(e)){const[e]=ahe(n,a),s=Xde(r,e,t);for(const e of s){const t=Qde(e),r=zde(e),[s,c=s]=ahe(n,{filename:r});$de(u,r,a)||o.push({dirPath:t,matchInputFilename:s,rawOptions:i,inputFile:e,inputFilename:r,outputFilename:c})}}const c=o.length;for(const[e,t]of o.entries()){const{dirPath:n,matchInputFilename:r,inputFile:a,inputFilename:o,outputFilename:u,rawOptions:l}=t;s({i:e,n:c});const p=Wde(a)||"{}",[d,h]=she(o,p),f=ohe(o,l),m=Jde(h,d,f);if(!m.length)continue;const{message:y}=m[0];i(a,{dirPath:n,matchInputFilename:r,outputFilename:u,message:y,options:f,matchedAST:h,matchedJS:d})}};function she(e,t){if(/\.json$/.test(e)){const e=Vde(t);return[e,jde(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,jde(t,{isTS:!0})]}return[t,jde(t)]}function ahe(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=Rde.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function ohe(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}var uhe={};const{join:che}=u6,{getParentDirectory:lhe,getFilename:phe,readFileContent:dhe,findFile:hhe,renameFile:fhe}=mse,{parse:mhe}=JSON;uhe.renameFiles=({type:e,mask:t,rename:n})=>({report:yhe,fix:ghe,scan:bhe({type:e,mask:t,rename:n})});const yhe=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,ghe=(e,{to:t})=>{fhe(e,t)},bhe=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!xhe(e,a))continue;const t=phe(a);i(a,{from:t,to:n(t)})}};function xhe(e,t){const n=function(e){let t,n=lhe(e);do{const e=phe(n);[t]=hhe(n,che(e,"package.json"))}while(!t&&(n=lhe(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=dhe(n);if(!r)return!1;return(mhe(r).type||"commonjs")===e}var She={};const{types:The}=st,{traverseProperties:Ehe}=MK,{stringLiteral:Phe}=The,vhe=({value:e})=>e;She.ignore=(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/\(|\)/);return{report:Ahe(t),match:Che({type:e,property:n,collector:i,list:r}),replace:whe({type:e,property:n,collector:i,list:r})}};const Ahe=e=>()=>`Add dotfiles to '${e}'`,Che=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=khe(r,s);return{[e]:e=>{const r=Ihe(e,{property:t,collector:n});if(!r)return!1;const i=r.map(vhe);for(const e of a)if(!i.includes(e))return!0;return!1}}},whe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=khe(r,s);return{[e]:(e,r)=>{const i=Ihe(e,{property:t,collector:n}),s=i.map(vhe);for(const e of a)s.includes(e)||i.push(Phe(e));return r}}};function khe(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function Ihe(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=Ehe(r,t);return i?i.node.value.elements:null}var _he={};const{types:Nhe}=st,{parenthesizedExpression:Lhe,tsParenthesizedType:Ohe}=Nhe;function Dhe(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function Fhe(e,t=Dhe(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}_he.hasParens=Fhe,_he.addParens=e=>{const t=Dhe(e);if(Fhe(e,t))return e;if("babel"!==t){const{extra:t={}}=e.node;return t.parenthesized=!0,e.node.extra=t,e}const{node:n}=e;return e.type.startsWith("TS")?e.replaceWith(Ohe(n)):(e.replaceWith(Lhe(n)),e)},_he.removeParens=e=>{const t=Dhe(e);if(!Fhe(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e};const{codeFrameColumns:Mhe}=st;var Bhe=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return Mhe(e,{start:i},{highlightCode:n,message:r})};const{traverse:Rhe,types:jhe}=st,{parse:Uhe,print:qhe,generate:Jhe,template:$he}=Wj,{cutShebang:Vhe,mergeShebang:Khe}=V8,{defaultOptions:Whe}=K8,{transform:Xhe,transformAsync:Hhe}=_oe,{findPlaces:zhe,findPlacesAsync:Yhe}=Roe;n.exports=Qhe;var Ghe=n.exports.putout=Qhe;function Qhe(e,t){ffe(e),t=Whe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=Vhe(e),u=Uhe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=Xhe(u,e,t);if(!t.fix)return{code:e,places:c};const l=qhe(u,{printer:s,source:e});return{code:Khe(o,l),places:c}}var Zhe=n.exports.putoutAsync=async(e,t)=>{ffe(e),t=Whe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=Vhe(e),u=Uhe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await Hhe(u,e,t);if(!t.fix)return{code:e,places:c};const l=qhe(u,{printer:s});return{code:Khe(o,l),places:c}},efe=n.exports.transform=Xhe,tfe=n.exports.transformAsync=Hhe,nfe=n.exports.findPlaces=zhe,rfe=n.exports.findPlacesAsync=Yhe,ife=n.exports.parse=Uhe,sfe=n.exports.print=qhe,afe=n.exports.traverse=Rhe,ofe=n.exports.types=jhe,ufe=n.exports.template=$he,cfe=n.exports.generate=Jhe,lfe=n.exports.initReport=$oe,pfe=n.exports.operator={...MK,...tee,...Voe,...o4,...sue,...Uie,...ide,...sde,...mse,...vde,...Lde,...uhe,...She,..._he},dfe=n.exports.ignores=Bde,hfe=n.exports.codeframe=Bhe;function ffe(e){if(!(e=>"string"==typeof e)(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}var mfe=n.exports;export{hfe as codeframe,mfe as default,nfe as findPlaces,rfe as findPlacesAsync,cfe as generate,dfe as ignores,lfe as initReport,pfe as operator,ife as parse,sfe as print,Ghe as putout,Zhe as putoutAsync,ufe as template,efe as transform,tfe as transformAsync,afe as traverse,ofe as types};
13
+ `;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return HR(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return XR(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?JR(e):!!this.isBlockStatement()&&$R(e))},isCompletionRecord:function(e){let t=this,n=!0;do{const{type:r,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===r))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},isStatementOrBlock:function(){return!this.parentPath.isLabeledStatement()&&!JR(this.container)&&UR.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?WR(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!VR(r.node.imported,{name:t}))))))},getSource:function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){return ZR(this,e,new Map)},resolve:function(e,t){return ej.call(this,e,t)||this},isConstantExpression:function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},isInStrictMode:function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0});return!!e},isDenylisted:function(){const e=this.opts.denylist??this.opts.blacklist;return e?.includes(this.node.type)},visit:function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip?.(this))return!1;const e=this.context;if(this.shouldSkip||Ij.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return Nj(this,e),this.debug("Recursing into..."),this.shouldStop=kj(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Nj(this,e),Ij.call(this,"exit"),this.shouldStop},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=2|xj},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return Lj.call(this),this},requeue:function(e=this){if(e.removed)return;e.shouldSkip=!1;const t=this.contexts;for(const n of t)n.maybeQueue(e)},requeueComputedKeyAndDecorators:function(){const{context:e,node:t}=this;!Ha(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){VM.call(this),Oj.call(this),qM.call(this)||(this.opts?.noScope||UM.call(this),this.shareCommentsWithSiblings(),JM.call(this)),$M.call(this)},insertBefore:function(e){VM.call(this);const t=dB.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||eB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return oB.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(HM(n?[e]:[]));return r.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},insertAfter:function(e){if(VM.call(this),this.isSequenceExpression())return cB(this.get("expressions")).insertAfter(e);const t=dB.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||eB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>tB(e)?GM(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){const e=this;if(e.node){const r=e.node;let{scope:i}=this;if(i.path.isPattern())return WM(r),e.replaceWith(zM(KM([],r),[])),e.get("callee.body").insertAfter(t),[e];if(lB(e))t.unshift(r);else if(ZM(r)&&iB(r.callee))t.unshift(r),t.push(sB());else if(function(e,t){if(!QM(e)||!nB(e.left))return!1;const n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(r,i))t.unshift(r),t.push(YM(r.left));else if(i.isPure(r,!0))t.push(r);else{n.isMethod({computed:!0,key:r})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(GM(XM("=",YM(e),r))),t.push(GM(YM(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return uB.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(HM(n?[e]:[]));return r.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},unshiftContainer:function(e,t){VM.call(this);const n=dB.call(this,t),r=this.node[e],i=Sj.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return oB.call(i,n)},pushContainer:function(e,t){VM.call(this);const n=dB.call(this,t),r=this.node[e];return Sj.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(e=!1){return lj(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return Sj.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},getAllPrevSiblings:function(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},get:function(e,t=!0){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?pj.call(this,e,t):dj.call(this,n,t)},getAssignmentIdentifiers:function(){return tj(this.node)},getBindingIdentifiers:function(e){return nj(this.node,e)},getOuterBindingIdentifiers:function(e){return rj(this.node,e)},getBindingIdentifierPaths:function(e=!1,t=!1){const n=[this],r=Object.create(null);for(;n.length;){const i=n.shift();if(!i)continue;if(!i.node)continue;const s=nj.keys[i.node.type];if(i.isIdentifier())if(e){(r[i.node.name]=r[i.node.name]||[]).push(i)}else r[i.node.name]=i;else{if(i.isExportDeclaration()){const e=i.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){const t=s[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}}return r},getOuterBindingIdentifierPaths:function(e=!1){return this.getBindingIdentifierPaths(e,!0)},shareCommentsWithSiblings:function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=Boolean(r.node),a=Boolean(i.node);s&&(n&&r.addComments("trailing",mj(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",mj(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){hj(this.node,e,t,n)},addComments:function(e,t){fj(this.node,e,t)}};Object.assign(Sj.prototype,Tj);for(const e of qu){const t=`is${e}`,n=at[t];Sj.prototype[t]=function(e){return n(this.node,e)},Sj.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Sj.prototype,HO);for(const e of Object.keys(AO))"_"!==e[0]&&(qu.includes(e)||qu.push(e));var{VISITOR_KEYS:Ej}=at,Pj=class{constructor(e,t,n,r){Qe(this,"queue",null),Qe(this,"priorityQueue",null),this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=Ej[e.type];if(!n?.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,r){return Sj.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:r})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,r=0;for(;r<e.length;){const i=e[r];if(r++,Oj.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||Rj.call(i,this),null===i.key)continue;const{node:s}=i;if(!t.has(s)){if(s&&t.add(s),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)Bj.call(e[t]);return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}},{VISITOR_KEYS:vj}=at;function Aj(e,t){e.queue=t,e.priorityQueue=[];const n=new Set;let r=!1,i=0;for(;i<t.length;){const s=t[i];if(i++,Oj.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||Rj.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),Cj(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=Aj(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)Bj.call(t[e]);return e.queue=null,r}function Cj(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist??r.blacklist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||_j.call(t,r.enter)||t.node&&_j.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=wj(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!_j.call(t,r.exit))||(t.node&&_j.call(t,r[n.type]?.exit),t.shouldStop))))}function wj(e,t,n,r,i,s,a){const o=vj[e.type];if(!o?.length)return!1;const u=new Pj(n,t,r,i);if(a)return!s?.[i.parentKey]&&Aj(u,[i]);for(const t of o){if(s?.[t])continue;const n=e[t];if(n)if(Array.isArray(n)){if(!n.length)continue;const r=[];for(let s=0;s<n.length;s++){const a=Sj.get({parentPath:i,parent:e,container:n,key:s,listKey:t});r.push(a)}if(Aj(u,r))return!0}else if(Aj(u,[Sj.get({parentPath:i,parent:e,container:e,key:t,listKey:null})]))return!0}return!1}function kj(e,t,n,r,i,s,a){return wj(e,t,n,r,i,s,a)}function Ij(e){const t=this.opts;return this.debug(e),!(!this.node||!_j.call(this,t[e]))||!!this.node&&_j.call(this,t[this.node.type]?.[e])}function _j(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function Nj(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function Lj(){if(this.opts?.noScope)return;let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;){if(t.opts?.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope?.init()}function Oj(){this.removed||(Dj.call(this),Mj.call(this),Fj.call(this))}function Dj(){this.parentPath&&(this.parent=this.parentPath.node)}function Fj(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void Uj.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void Uj.call(this,e);this.key=null}}function Mj(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function Bj(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function Rj(e){this.contexts.push(e),this.setContext(e)}function jj(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,Uj.call(this,r)}function Uj(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function qj(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var{VISITOR_KEYS:Jj,removeProperties:$j,traverseFast:Vj}=at;function Kj(e,t={},n,r,i,s){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&s)throw new Error("visitSelf can only be used when providing a NodePath.");Jj[e.type]&&(nD(t),kj(e,t,n,r,i,null,s))}}Kj.visitors=hD,Kj.verify=rD,Kj.explode=nD,Kj.cheap=function(e,t){Vj(e,t)},Kj.node=function(e,t,n,r,i,s){kj(e,t,n,r,i,s)},Kj.clearNode=function(e,t){$j(e,t)},Kj.removeProperties=function(e,t){return Vj(e,Kj.clearNode,t),e},Kj.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||Vj(e,function(e){return n?.includes(e.type)?Vj.skip:e.type===t?Vj.stop:void 0}))},Kj.cache=vD,st.default;var Wj={},Xj={},Hj={},zj=e=>{const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}},Yj={TYPES:{TOKEN:"Token",NEWLINE:"Newline",LINEBREAK:"Linebreak",SPLITTER:"Splitter",INDENT:"Indent",DEBUG:"Debug",SPACE:"Space",ROUND_BRACE_OPEN:"RoundBraceOpen",ROUND_BRACE_CLOSE:"RoundBraceClose",QUOTE:"Quote",END_OF_FILE:"EndOfFile"}},Gj={},Qj={},Zj={};const{types:eU}=st,{isStringLiteral:tU,isIdentifier:nU,isIfStatement:rU,isStatement:iU,isForOfStatement:sU,isVariableDeclaration:aU,isMemberExpression:oU,isArrayExpression:uU,isObjectExpression:cU,isLabeledStatement:lU}=eU,pU=e=>e.parentPath?.isProgram(),dU=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},hU=e=>pU(e)&&!dU(e);function fU([e,t]){return tU(e)&&nU(t)}Zj.isNextObject=e=>e.getNextSibling().isObjectExpression(),Zj.isPrevObject=e=>e.getPrevSibling().isObjectExpression(),Zj.isFirst=e=>e.node===e.parentPath.node.body?.[0],Zj.isPrevBody=e=>e.getPrevSibling().isBlockStatement(),Zj.isNext=dU,Zj.isPrev=e=>e.getPrevSibling().node,Zj.isNextParent=e=>dU(e.parentPath),Zj.isParentProgram=pU,Zj.isParentBlock=e=>e.parentPath.isBlockStatement(),Zj.isLast=hU,Zj.isParentLast=e=>hU(e.parentPath),Zj.isIndented=(e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column},Zj.isCoupleLines=function(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t},Zj.exists=e=>e.node,Zj.isStringAndIdentifier=fU;Zj.isSimpleAndNotEmptyObject=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return cU(t)||(t=e.at(-2)),!!cU(t)&&t.node.properties.length})(e)},Zj.isIdentifierAndIdentifier=([e,t])=>nU(e)&&nU(t),Zj.isStringAndMember=([e,t])=>tU(e)&&oU(t),Zj.isIdentifierAndString=([e,t])=>nU(e)&&tU(t),Zj.isStringAndArray=([e,t])=>!!tU(e)&&(!!uU(t)&&!fU(t.node.elements));const mU=e=>rU(e)||iU(e),yU=e=>sU(e)||iU(e);Zj.isIf=e=>rU(e.find(mU)),Zj.isForOf=e=>{const t=e.find(yU);return!!sU(t)||!!aU(t)&&sU(t.parentPath)},Zj.isInsideIf=e=>e.parentPath?.isIfStatement(),Zj.isNewlineBetweenSiblings=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},Zj.isInsideLabel=({parentPath:e})=>lU(e),Zj.satisfy=e=>t=>{for(const n of e)if(n(t))return!0;return!1};const gU=e=>e.node||e;Zj.hasCoupleTrailingComments=e=>{const t=gU(e);return t?.trailingComments?.length>1},Zj.hasTrailingComment=e=>{const t=gU(e);return t.trailingComments?.length},Zj.hasLeadingComment=e=>e.node?.leadingComments?.length,Zj.noTrailingComment=e=>!e.node.trailingComments?.length,Zj.noLeadingComment=e=>!e.node.leadingComments?.length;var bU={},xU={},SU={},TU={};const EU="__putout_newline_after";function PU(e){e[EU]=!0}function vU(e){return e[EU]}TU.markBefore=function(e){e.__putout_newline_before=!0},TU.markAfter=PU,TU.maybeMarkAfter=(e,t)=>e&&PU(t),TU.isMarkedAfter=vU,TU.hasPrevNewline=e=>vU(e.getPrevSibling());var AU={maybeInsideFn:(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())}},CU={};const wU=(e,t)=>()=>e(`//${t}`),kU=(e,t)=>()=>e(`/*${t}*/\n`);CU.hasTrailingCommentsPrinter=e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)},CU.hasLeadingCommentsPrinter=e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)},CU.printLeadingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:kU(i,l)}):a?.(e,t,n,{index:r,printComment:wU(i,l),isLast:r===u})},CU.printTrailingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:kU(i,l)}):a?.(e,t,n,{index:r,printComment:wU(i,l),isLast:r===u})};const{types:IU}=st,{hasTrailingComment:_U,satisfy:NU,isPrev:LU}=Zj,{markBefore:OU}=TU,{maybeInsideFn:DU}=AU,{printLeadingComments:FU,hasLeadingCommentsPrinter:MU}=CU,{isArrowFunctionExpression:BU,isObjectProperty:RU,isVariableDeclarator:jU,isClassProperty:UU,isTSPropertySignature:qU,isSpreadElement:JU,isClassBody:$U,isBinaryExpression:VU,isClassMethod:KU,isDecorator:WU}=IU,XU=NU([RU,jU,UU,qU,JU]),HU=e=>{const{parentPath:t}=e;return!(!jU(t)||e!==t.get("init"))||!!BU(t)&&jU(t.parentPath)};function zU(e){const{loc:t,leadingComments:n}=e.node;if(!XU(e))return!1;const[r]=n,{line:i}=r.loc.start;return!function(e){const[t]=e.node.leadingComments,{line:n}=t.loc.start;return e.getPrevSibling().node?.loc.start.line===n}(e)&&i<=t.start.line-1}const YU=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!$U(t)||!UU(e))&&e===t.get("body")[0]};SU.parseLeadingComments=(e,t,n,{currentTraverse:r={}}={})=>{const{print:i,maybe:s,indent:a}=t;if(!n.comments)return;const{leadingComments:o}=e.node;if(!o?.length)return;if(MU(r))return FU(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&_U(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=XU(e),p=YU(e)||!u&&!e.isClassMethod()&&!c&&!l,d=o.length-1;for(const[t,{type:n,value:r}]of o.entries())if("CommentLine"!==n){if("CommentBlock"===n){s.indent(p);const t=e.isClassMethod(),n=e.isDirective(),a=e.isObjectProperty();a&&i.breakline(),i(`/*${r}*/`),qU(e)&&!LU(e)&&i.breakline(),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),OU(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),DU(c,{print:i,indent:a}),zU(e)?s.print.breakline(!YU(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),KU(e)?a():(VU(e)||WU(e))&&(a.inc(),a(),a.dec())):i.newline(),HU(e)&&(a.inc(),a(),a.dec())};var GU={},QU={},ZU={};const{hasTrailingComment:eq}=Zj,{assign:tq}=Object;function nq(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=iq(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function rq(e){const t=[];for(;e.isMemberExpression()&&(eq(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(iq(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function iq(e){const t={type:e.type};return e.isCallExpression()&&tq(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}ZU.chain=e=>{const t=[...nq(e),...rq(e)],n=t.slice(0,-1);return[t.at(-1),n]};const{types:sq}=st,{chain:aq}=ZU,{satisfy:oq}=Zj,{isUnaryExpression:uq,isIfStatement:cq,isCallExpression:lq,isIdentifier:pq}=sq,dq=e=>"CallExpression"===e.type,hq=oq([uq,cq]),fq=({type:e})=>"CommentLine"===e;QU.isLooksLikeChain=e=>{const[t,n]=aq(e);if((e=>!!pq(e.node.object)&&!!pq(e.node.property)&&lq(e.parentPath.parentPath))(e))return!1;if(hq(t))return!1;if(mq(n))return!1;if(n.find(fq))return!0;if(e.find(yq))return!1;const r=n.filter(dq),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)};const mq=([e])=>lq(e,{name:"get"}),yq=e=>{const t=e.find(cq);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{types:gq}=st,{isLast:bq,isCoupleLines:xq,isNext:Sq}=Zj,{isLooksLikeChain:Tq}=QU,{printTrailingComments:Eq,hasTrailingCommentsPrinter:Pq}=CU,{isDecorator:vq,isMemberExpression:Aq,isExpressionStatement:Cq,isCallExpression:wq}=gq,kq=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,Iq=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function _q(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const Nq=e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments,Lq=e=>{const{parentPath:t}=e;if(vq(e)){const{loc:t}=e.node.trailingComments[0];return!_q(e,t)}return!Aq(t)&&!bq(e)};function Oq(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if(Nq(e))return!1;if(e.isThrowStatement())return!1;const[i]=r,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!n)return!0;const o=n.start.line,u=n.end.line;return s===o+1&&s===u+1||s===o+2&&s===u+2}function Dq(e){const t=e.getPrevSibling();if(Cq(t))return!1;const{expression:n}=e.node;return!!wq(n)&&!wq(n.arguments[0])}GU.isTrailingIsLeading=Nq,GU.parseTrailingComments=(e,t,n,{currentTraverse:r}={})=>{const{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!n.comments)return;const{trailingComments:u}=e.node;if(!u?.length)return;if(Pq(r))return Eq(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=Tq(i);for(const{type:t,value:n,loc:r}of u){const i=_q(e,r),u=Oq(e);if("CommentLine"===t){const t=u&&l,r=!i&&!u;a.write.breakline(u),a.write.space(i),(r||t)&&(a.indent.inc(t),o(),a.indent.dec(t)),kq(e)&&(a.write.breakline(!Sq(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(Lq(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(Dq(e)),s(`/*${n}*/`),a.write.newline(!i||!Iq(e)&&xq(e.parentPath)))}};var Fq={};const{isNext:Mq}=Zj;Fq.parseComments=(e,{write:t,maybe:n},r)=>{if(!r.comments)return;const i=e.node.comments||e.node.innerComments;if(!i)return;const s=i.length-1,a=e.isProgram();for(const[r,{type:o,value:u}]of i.entries())if("CommentLine"!==o)"CommentBlock"===o&&(t("/*"),t(u),t("*/"));else{if(n.write.breakline(Mq(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}};const{parseLeadingComments:Bq}=SU,{parseTrailingComments:Rq}=GU,{parseComments:jq}=Fq;xU.parseLeadingComments=Bq,xU.parseTrailingComments=Rq,xU.parseComments=jq;const{parseComments:Uq}=xU,qq=()=>{},Jq=e=>e.get("params");function $q(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}bU.printParams=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=Jq(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=qq,printBeforeClose:f=qq}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if($q(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),Uq(e,t,n),h();const m=c.length-1;for(let e=0;e<=m;e++){const t=e===m;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if($q(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n)};var Vq={};const Kq=e=>e.node.extra?.parenthesized;Vq.isParens=Kq,Vq.maybeParens=e=>"function"==typeof e?Wq(e):Xq(e);const Wq=e=>({condition:Kq,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),Xq=({print:e,condition:t,checkParens:n=!0})=>({...Wq(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||Kq(e):s}}),{exists:Hq}=Zj,{printParams:zq}=bU,{maybeParens:Yq}=Vq;Qj.ArrowFunctionExpression=Yq((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{async:o}=e.node;i.print(o,"async "),zq(e,t,n);const u=e.get("returnType");Hq(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")});var Gq={};const{types:Qq}=st,{markAfter:Zq}=TU,{isNext:eJ,isNextParent:tJ}=Zj,{printParams:nJ}=bU,rJ=(iJ=function(e){return!!pJ(e.parentPath)&&e.node.body.body.length},(...e)=>!iJ(...e));var iJ;const{isAssignmentExpression:sJ,isTSModuleBlock:aJ,isBlockStatement:oJ,isExportNamedDeclaration:uJ,isExpressionStatement:cJ,isFunctionDeclaration:lJ,isExportDefaultDeclaration:pJ}=Qq;Gq.FunctionDeclaration={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>uJ(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),nJ(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[eJ,tJ,fJ],after(e,{indent:t,maybe:n}){(hJ(e)||dJ(e)||eJ(e))&&t(),n.write.newline(rJ(e)),Zq(e)}};const dJ=e=>{const t=e.getNextSibling();return lJ(t)},hJ=e=>{const t=e.getNextSibling();return!!cJ(t)&&sJ(t.node.expression)};function fJ(e){const{parentPath:t}=e;return!!aJ(t.parentPath)||!!oJ(t)&&!e.node.body.body.length}var mJ={},yJ={};const gJ=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())};yJ.maybeDecorators=e=>(t,n,r,i)=>{const{write:s,traverse:a,maybe:o}=n,{decorators:u}=t.node;if(u)for(const e of t.get("decorators"))o.write.breakline(gJ(t)),a(e),s.breakline();e(t,n,r,i)};var bJ={},xJ={maybePrintComputed:(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")}};const{maybePrintComputed:SJ}=xJ;bJ.printKey=(e,t)=>{const n=e.get("key");SJ(e,n,t)};var TJ={printKind:(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")}},EJ={};const{printParams:PJ}=bU,{hasLeadingComment:vJ}=Zj,AJ=({decorators:e})=>e?.length;EJ.printFunctionParams=(e,t,n)=>{const{params:r}=e.node,i=r.filter(AJ).length,s=(e=>{const t=e.get("params");let n=0,r=0;for(const e of t){const t=e.get("decorators");if(!t.length)continue;const[i]=t;++r,vJ(i)&&++n}return n===r})(e),a=kJ({isNewline:i,printer:t}),o=CJ({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=wJ({type:"dec",printer:t,isNewline:i,isAllHasComments:s});PJ(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})};const CJ=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},wJ=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},kJ=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},{isNext:IJ,hasTrailingComment:_J}=Zj,{maybeDecorators:NJ}=yJ,{printKey:LJ}=bJ,{printKind:OJ}=TJ,{printFunctionParams:DJ}=EJ,FJ=e=>!_J(e)&&IJ(e),MJ={print:NJ((e,t,n)=>{const{print:r}=t,{node:i}=e,{accessibility:s,returnType:a}=i;s&&(r(s),r(" ")),i.static&&(r("static"),r(" ")),i.override&&(r("override"),r(" ")),i.async&&(r("async"),r(" ")),OJ(e,t),LJ(e,t),DJ(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[FJ],after(e,{print:t}){t.linebreak()}};mJ.ClassPrivateMethod=MJ,mJ.ClassMethod=MJ;var BJ={};const{isNewlineBetweenSiblings:RJ}=Zj,{printParams:jJ}=bU,{printKey:UJ}=bJ,{printKind:qJ}=TJ;BJ.ObjectMethod={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;qJ(e,t),UJ(e,t),jJ(e,t,n),r.space(),r("__body")},afterIf:e=>RJ(e),after(e,{print:t}){t.linebreak()}};var JJ={};const{exists:$J}=Zj,{printParams:VJ}=bU,{maybeParens:KJ}=Vq;JJ.FunctionExpression=KJ((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{node:o}=e,{generator:u,async:c}=o;i.write(c,"async "),s("function"),i.write(u,"*");const l=e.get("id");$J(l)&&(s(" "),a(l)),VJ(e,t,n),r.space(),r("__body")});const{ArrowFunctionExpression:WJ}=Qj,{FunctionDeclaration:XJ}=Gq,{ClassMethod:HJ,ClassPrivateMethod:zJ}=mJ,{ObjectMethod:YJ}=BJ,{FunctionExpression:GJ}=JJ;Gj.FunctionDeclaration=XJ,Gj.FunctionExpression=GJ,Gj.ArrowFunctionExpression=WJ,Gj.ClassMethod=HJ,Gj.ClassPrivateMethod=zJ,Gj.ObjectMethod=YJ;var QJ={};const{isLast:ZJ,isNext:e$}=Zj,{maybeParens:t$}=Vq,n$=t$((e,t)=>{const{maybe:n,traverse:r}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");n.print(i,s),n.print(/^(delete|typeof|void|throw)$/.test(s)," "),r(a),n.print(!i,s)});function r$(e,{print:t}){t(`${e} `),t("__argument")}QJ.UnaryExpression=n$,QJ.UpdateExpression=n$,QJ.AwaitExpression=t$((e,{print:t})=>{r$("await",{print:t})}),QJ.YieldExpression=t$((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")}),QJ.ThrowStatement=(e,{print:t,indent:n,maybe:r})=>{n(),r$("throw",{print:t}),t(";"),r.print.newline(!ZJ(e)),r.print.breakline(e$(e))};var i$={};const{maybePrintComputed:s$}=xJ,{maybeParens:a$}=Vq,{isLooksLikeChain:o$}=QU;i$.MemberExpression=(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),o=s.isAssignmentExpression(),{computed:u}=e.node,c=o$(e);if(r.print(o,"("),i(s),r.print(o,")"),u)return s$(e,a,t);r.indent.inc(c),r.print.breakline(c),n("."),n("__property"),r.indent.dec(c)},i$.OptionalMemberExpression=a$((e,{print:t,maybe:n})=>{const{computed:r,optional:i}=e.node;if(t("__object"),n.print(i,"?."),n.print(!i&&!r,"."),r)return t("["),t("__property"),void t("]");t("__property")});var u$={},c$={maybeDeclare:e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)}};const{types:l$}=st,{isNext:p$}=Zj,{markAfter:d$}=TU,{maybeDeclare:h$}=c$,{parseComments:f$}=xU,{maybeDecorators:m$}=yJ,{isFunction:y$,isTSModuleBlock:g$}=l$,b$=e=>y$(e.parentPath.parentPath),x$=m$((e,t,n)=>{const{id:r,abstract:i,superClass:s}=e.node,{print:a,indent:o,maybe:u,traverse:c}=t;u.print(i,"abstract "),a("class"),u.print(r||s," "),a("__id"),a("__typeParameters");const{node:l}=e;l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements&&(a(" implements "),e.get("implements").forEach(a)),a.space(),a("{"),u.print.newline(e.node.body.body.length),o.inc();const p=e.get("body"),d=p.get("body");for(const e of d)o(),c(e);d.length||f$(p,t,n),o.dec(),u.indent(d.length),a("}")});u$.ClassExpression=x$,u$.ClassDeclaration={print:h$((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),x$(e,t,n)}),afterIf:e=>!!b$(e)||(!!p$(e)||(e=>g$(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!b$(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),d$(e))}};var S$={};const{exists:T$}=Zj,{maybeParens:E$}=Vq,{isArray:P$}=Array,v$=E$((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return P$(t)?t:[]})(e),a=function(e){for(const t of e)if(t.isIdentifier()&&t.node.name.length>10)return!0;return!1}(s)&&e.parentPath.isCallExpression(),o=e.get("callee"),u=e.get("typeArguments");i(o),T$(u)&&i(u),e.node.optional&&n("?."),n("(");const c=s.length-1;r.indent.inc(a);for(const[e,t]of s.entries()){const r=t.isObjectExpression();a&&!r&&c&&n.breakline(),n(t),a&&c?n(","):e<c&&(n(","),n.space())}a&&(t.dec(),r.print.breakline(c)),n(")")});S$.OptionalCallExpression=v$,S$.CallExpression=v$;var A$={};const{types:C$}=st,{exists:w$}=Zj,{isMarkedAfter:k$}=TU,{isExpressionStatement:I$,isMemberExpression:_$}=C$;function N$(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>_$(e))(t))return s(e);i.print(a.new,e)}A$.NewExpression={beforeIf(e){if(!(({parentPath:e})=>I$(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!k$(n)&&(!n.isExpressionStatement()&&(({parentPath:e})=>w$(e.getPrevSibling()))(e)))},before(e,{print:t}){t.breakline()},print(e,t,n){const{print:r,maybe:i}=t;r("new "),r("__callee"),r("__typeArguments");const s=e.get("arguments");!function(e,t,n){N$("(",e,t,n)}(e,t,n);const a=s.length-1;for(const[e,t]of s.entries())r(t),i.print(e<a,", ");!function(e,t,n){N$(")",e,t,n)}(e,t,n)}};var L$={},O$={};const{types:D$}=st,{isArrayExpression:F$}=D$,M$=["NullLiteral","NumericLiteral","BigIntLiteral"];O$.isInsideTuple=e=>{const{parentPath:t}=e;if(!F$(t))return!1;const[n,r]=t.node.elements;return r===e.node&&M$.includes(n.type)};var B$={};const{types:R$}=st,{isArrayExpression:j$,isCallExpression:U$,isIdentifier:q$}=R$;B$.isThirdObjectInsideArray=({parentPath:e})=>{if(!j$(e))return!1;const[,t]=e.node.elements;return U$(t)&&!!q$(t)};const{types:J$}=st,{isCoupleLines:$$,isForOf:V$,isIf:K$,noTrailingComment:W$,isNewlineBetweenSiblings:X$,noLeadingComment:H$,hasLeadingComment:z$,exists:Y$}=Zj,{parseComments:G$}=xU,{isInsideTuple:Q$}=O$,{isLooksLikeChain:Z$}=QU,{isThirdObjectInsideArray:eV}=B$,{isStringLiteral:tV,isArrayExpression:nV}=J$,rV=e=>e.get("argument").isLogicalExpression();L$.ObjectExpression=(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=Q$(e)||function({parentPath:e}){return!!nV(e)&&!!nV(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||eV(e);s.indent.inc(!o);const u=e.get("properties"),{length:c}=u,l=function(e){return!!(e=>e.parentPath.node.body===e.node)(e)||(e=>e.parentPath.isExpressionStatement())(e)}(e),p=!uV(e);s.print(l,"("),i("{"),G$(e,t,n),s.print.newline(p);const d=u.length-1,h=(({parentPath:e})=>{if(!e.isCallExpression())return!1;const t=e.get("callee");return!!t.isMemberExpression()&&Z$(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=rV(t);H$(t)&&s.indent(c>1||n||p),i(t),W$(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&H$(t)),i(t),t.isObjectMethod()||W$(t)&&!iV(t)&&(s.print.newline(p),s.print.linebreak(X$(t)))}o?(Q$(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return tV(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)};const iV=e=>{const t=e.getNextSibling();return!!Y$(t)&&z$(t)},sV=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!$$(e)&&e!==t.get("arguments").at(-1))},aV=!0,oV=!1;function uV(e){const{length:t}=e.get("properties");return t?sV(e)||V$(e)||K$(e)?aV:$$(e)?oV:!(e=>e.get("properties.0.value").node)(e):aV}L$.isOneLine=uV;var cV={},lV={};const{types:pV}=st,{isStringLiteral:dV,isTemplateLiteral:hV,isBinaryExpression:fV}=pV,mV=e=>!!dV(e)||hV(e);lV.isConcatenation=e=>{const{parentPath:t}=e,{operator:n}=e.node;if("+"!==n)return!1;const r=e.node.loc?.start.line,i=e.node.loc?.end.line;if(r===i)return!1;const s=e.get("left"),a=e.get("right");return!!(mV(s)&&mV(a)&&fV(t))||fV(s)&&mV(a)},lV.concatenate=(e,{print:t,indent:n})=>{e.parentPath.isBinaryExpression()||(n.inc(),t.breakline()),t("__left"),t.space(),t("+"),t.breakline(),t("__right"),e.parentPath.isBinaryExpression()||n.dec()};const{types:yV}=st,{isConcatenation:gV}=lV,{isOneLine:bV}=L$,{printKey:xV}=bJ,{isTSImportType:SV}=yV;cV.ObjectProperty=(e,t,n)=>{const{trailingComma:r}=n,{shorthand:i}=e.node,{maybe:s,traverse:a,write:o}=t,u=e.get("value"),c=e.parentPath.get("properties"),l=e===c.at(-1),p=!bV(e.parentPath);xV(e,t),i||(o(":"),s.write.space(!gV(u)),a(u)),p&&!(({parentPath:e})=>SV(e.parentPath))(e)?s.write(!l||r,","):!l&&c.length&&o(", ")};var TV={},EV={wrongShorthand:({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name},PV={moreThenMaxPropertiesInOneLine:(e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;if(n.isObjectProperty())return!1;return t>=e.node.properties.length}},vV={};const{types:AV}=st,{isMemberExpression:CV,isSequenceExpression:wV}=AV;function kV(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;wV(n)||CV(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}vV.maybePrintTypeAnnotation=kV,vV.maybeTypeAnnotation=e=>(t,n,r)=>{e(t,n,r),kV(t,n)};var IV={};const{types:_V}=st,{isAssignmentPattern:NV,isIdentifier:LV}=_V;function OV(e,t){return LV(e)&&LV(t)?e.name.length+t.name.length:LV(e)?e.name.length:0}IV.moreThenMaxPropertiesLengthInOneLine=(e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(NV(r)){const{left:e,right:n}=r;if(OV(e,n)>=t)return!0}if(!LV(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1};var DV={};const{types:FV}=st,{isAssignmentPattern:MV,isArrayExpression:BV,isObjectExpression:RV}=FV;function jV(e,t){if(!MV(e.node.value))return!1;const{maxPropertiesLengthInOneLine:n}=t;return e.node.key.name.length>n}DV.calculateAssigns=(e,t)=>{const n=jV(e,t),{right:r}=e.node.value,i=BV(r)||!!RV(s=r)&&s.properties.length;var s;return{complexAssign:n&&i}},DV.isLongAssignPattern=jV;const{types:UV}=st,{wrongShorthand:qV}=EV,{isForOf:JV,isCoupleLines:$V,exists:VV}=Zj,{moreThenMaxPropertiesInOneLine:KV}=PV,{maybeTypeAnnotation:WV}=vV,{moreThenMaxPropertiesLengthInOneLine:XV}=IV,{printKey:HV}=bJ,{calculateAssigns:zV,isLongAssignPattern:YV}=DV,{isObjectExpression:GV,isIdentifier:QV,isAssignmentPattern:ZV,isVariableDeclarator:eK,isFunction:tK,isObjectPattern:nK,isForOfStatement:rK,isVariableDeclaration:iK}=UV;const sK=({path:e,valuePath:t,property:n})=>{if(!$V(t))return!1;if(VV(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!lK(r))&&!e.parentPath.isObjectProperty()};function aK({parentPath:e}){return rK(e.parentPath.parentPath)}function oK(e){const t=e.getPrevSibling();return ZV(t.node.value)}function uK(e){const t=e.getPrevSibling();if(!ZV(t.node.value))return!1;const{right:n}=t.node.value;return GV(n)}function cK(e){const t=e.getNextSibling();if(!t.node)return!1;if(!ZV(t.node.value))return!1;const{right:n}=t.node.value;return GV(n)}function lK(e){for(const t of e){const{value:e}=t.node;if(ZV(e))return!0}return!1}function pK(e){for(const t of e)if(nK(t.node.value))return!0;return!1}TV.ObjectPattern={print:WV((e,t,n)=>{const r=function(e){return!e.parentPath.isArrayPattern()}(e),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=n,{print:a,maybe:o,indent:u}=t;o.indent.inc(r),a("{");const c=e.get("properties"),l=c.length-1,p=function(e,t){const{parentPath:n}=e,r=e.get("properties"),i=r.length-1,{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=XV(e,{maxPropertiesLengthInOneLine:a}),u=KV(e,{maxPropertiesInOneLine:s}),c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return pK(r)?hK:u&&!o&&eK(e.parentPath)?dK:!c&&i&&!JV(e)&&function(e){for(const t of e){const{value:e}=t.node;if(QV(e)&&e.name.length>4)return!0}return!1}(r)||!c&&lK(r)?hK:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&pK(c),h=!(e=>!!tK(e.parentPath)||tK(e.parentPath.parentPath))(e);o.print.newline(p&&h);for(const[r,i]of c.entries()){if(i.isRestElement()){const e=p||d;o.indent(e),a(i),o.print.newline(e);continue}const s=r&&uK(i),u=cK(i),c=i.get("value"),f=i.get("key"),m=c.isAssignmentPattern(),{shorthand:y,computed:g}=i.node,b=sK({path:e,property:i,valuePath:c});if(o.indent((s||p)&&h),o.print.breakline(b&&!YV(i,n)),!m&&u&&a.breakline(),HV(i,t),!y||qV({computed:g,isAssign:m,keyPath:f,valuePath:c}))a(":"),a.space(),a(c);else if(m){a(c),o.print(b,","),o.print.newline(b);const{right:t}=c.node;if(r&&!oK(i)&&!aK(e)&&GV(t)){a(","),a.newline();continue}}if(!m&&u&&h){a(","),a.breakline();continue}const{complexAssign:x}=zV(i,n);x||!(p||d||s&&h)?!(r<l)||m&&b||(a(","),a.space()):(a(","),a.newline())}u.dec(),o.indent(p||function(e,t){const{parentPath:n}=e;if(iK(n.parentPath)){const{declarations:e}=n.parentPath.node;if(e.length>1)return!1}const r=e.get("properties"),i=r.length;for(const e of r){const{value:n}=e.node;if(ZV(n)&&GV(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};const dK=!1,hK=!0;var fK={};const{exists:mK}=Zj,{maybePrintTypeAnnotation:yK}=vV,{maybeDecorators:gK}=yJ,{printKey:bK}=bJ,{printKind:xK}=TJ,SK=gK((e,t,n,{accessor:r}={})=>{const{node:i}=e,{accessibility:s,declare:a,optional:o}=i,{print:u,maybe:c}=t;c.print(r,"accessor ");const l=e.get("value");c.print(a,"declare "),c.print(s,`${s} `),c.print(i.static,"static "),c.print(i.readonly,"readonly "),xK(e,t),bK(e,t),c.print(o,"?"),yK(e,t),mK(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()});fK.ClassProperty=SK,fK.ClassPrivateProperty=SK,fK.PrivateName=(e,{print:t})=>{t("#"),t("__id")},fK.ClassAccessorProperty=(e,t,n)=>{SK(e,t,n,{accessor:!0})};var TK={exports:{}},EK={};const{hasLeadingComment:PK}=Zj,{isParens:vK}=Vq;EK.condition=(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!PK(e))&&vK(e))))};var AK={};const{types:CK}=st,{hasLeadingComment:wK}=Zj,{isReturnStatement:kK}=CK;AK.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;kK(s)||(o.print.breakline(!i),r(),a.breakline())},AK.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;kK(i)||(r(),s.indent())},AK.maybeInsideReturnWithCommentStart=(e,{print:t,indent:n})=>{const{parentPath:r}=e;if(kK(r)&&wK(e)){n.inc();const{leadingComments:r}=e.node;t.breakline();for(const{type:e,value:n}of r)t("CommentLine"===e?`//${n}`:`/*${n}*/`),t.breakline()}},AK.maybeInsideReturnWithCommentEnd=(e,{print:t,indent:n})=>{const{parentPath:r}=e;kK(r)&&wK(e)&&(n.dec(),t.breakline())};var IK={};const{types:_K}=st,{isAssignmentExpression:NK,isExpressionStatement:LK}=_K;IK.printSeparator=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(LK)&&NK(t)}(e)?t.space():t.breakline()},function(e){const{condition:t}=EK,{printLeadingCommentLine:n,maybeInsideReturnWithCommentEnd:r,maybeInsideReturnWithCommentStart:i,printLeadingCommentBlock:s}=AK,{maybeParens:a}=Vq,{printSeparator:o}=IK;e.exports.AssignmentExpression=a({checkParens:!1,condition:t,print(e,t){const{print:n}=t,{operator:s}=e.node;i(e,t),n("__left"),n.space(),n(s),o(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),r(e,t)}}),e.exports.AssignmentExpression.printLeadingCommentLine=n,e.exports.AssignmentExpression.printLeadingCommentBlock=s}(TK);var OK=TK.exports;OK.default;var DK={},FK={},MK={},BK={};const{types:RK}=st,{isIdentifier:jK,isMemberExpression:UK}=RK;function qK(e,t){const n=JK(t);return e.scope.getAllBindings()[n]}BK.getBinding=qK,BK.getBindingPath=(e,t)=>qK(e,t)?.path;const JK=e=>"string"==typeof e?e:jK(e)?e.name:UK(e)?JK(e.object):"";var $K={};const{types:VK}=st,{isOptionalMemberExpression:KK,isMemberExpression:WK,isIdentifier:XK,isLiteral:HK}=VK;$K.isSimple=e=>!!HK(e)||(!!XK(e)||(!!WK(e)||KK(e)));var zK={};const{types:YK}=st,{isArrayExpression:GK,isLiteral:QK,isIdentifier:ZK,isMemberExpression:eW,isTemplateElement:tW,isRegExpLiteral:nW,isClassMethod:rW,isTemplateLiteral:iW,isJSXText:sW,isJSXAttribute:aW,isJSXIdentifier:oW,isTSTypeReference:uW,isTSTypeParameter:cW}=YK;function lW(e){if(e=e.node||e,ZK(e))return e.name;if(oW(e))return e.name;if(nW(e))return e.pattern;if(iW(e))return lW(e.quasis[0]);if(QK(e))return e.value;if(tW(e))return e.value.raw;if(eW(e))return`${lW(e.object)}.${lW(e.property)}`;if(GK(e))return pW(e);if(sW(e))return e.value;if(aW(e))return e.name.name;if(rW(e))return lW(e.key);if(uW(e))return lW(e.typeName);if(cW(e))return lW(e.name);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function pW(e,t=[]){for(const n of e.elements)GK(n)?pW(n,t):t.push(lW(n));return t.join(",")}zK.extract=lW;var dW={};const{getBindingPath:hW}=BK,{extract:fW}=zK,mW=!1,yW=!0;function gW(e){const{node:t}=e;if(!e.evaluate)throw Error("☝️ Looks like argument of 'compute' is not 'path'");const{confident:n,value:r}=e.evaluate();if(n)return[yW,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=gW(n);if(!i)return[mW];const[a,o]=gW(r);if(!a)return[mW];const u=`return a ${t} b`,c=xW[t]||xW.init(t,Function("a","op","b",u));return[yW,c(s,t,o)]}(e);if(bW(e))return[yW,fW(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?hW(e,fW(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?hW(e,fW(t.object)):null}(e);if(!i)return[mW];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=fW(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!bW(t))return[mW];if(fW(t)!==n)continue;const[r,i]=gW(e.get("value"));if(!r)break;return[yW,i]}return[mW]}(e,s):[mW]}function bW(e){const{parentPath:t}=e;return!(!e.isIdentifier()&&!e.isLiteral())&&(!!t.isObjectProperty({computed:!1})&&!function(e){const t=function(e){const{referencesSet:t}=e.scope;if(!t)return{};const n=t.entries();return Object.fromEntries(n)}(e),[n]=Object.keys(t),r=e.scope.bindings[n];if(!r)return!1;const{referencePaths:i}=r;for(const e of i)if(e.parentPath.parentPath?.isAssignmentExpression())return!0;return!1}(e))}dW.compute=gW;const xW={init:(e,t)=>xW[e]=t};var SW={};const{entries:TW}=Object;SW.remove=e=>{if(!e.node)return;const{scope:t}=e,n=PW(e),r=vW(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=EW(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of TW(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}};const EW=e=>{const{leadingComments:t}=e.node;if(t?.length)return t;const{parentPath:n}=e;return e.isVariableDeclarator()&&(({node:e})=>1===e.declarations.length)(n)?n.node.leadingComments:[]},PW=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),vW=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling();var AW={getExportDefault:e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null}},CW={},wW={renameProperty:(e,t,n)=>{e.traverse({ObjectProperty(e){const{node:r}=e,{key:i,value:s}=r;i.name===s.name&&i.name===t&&(i.name=n,s.name=n,r.shorthand=!0,e.stop())}})}};const{renameProperty:kW}=wW;CW.rename=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;kW(i,t,n),i.scope.rename(t,n)};var IW={setLiteralValue:(e,t)=>{const n=e.node||e,{raw:r,extra:i,value:s}=n;n.value=s.replace(s,t),'""'!==r?!r&&s?i&&(n.raw=i.raw.replace(s,t),n.extra.rawValue=s):n.raw="'"+String.raw`${t}`+"'":n.raw=r.replace(r,`"${t}"`)}},_W={};function NW(e){if(!e.isVariableDeclaration())return!1;const t=e.get("declarations.0.init");if(!t.isCallExpression())return!1;return t.get("callee").isIdentifier({name:"require"})}_W.getPathAfterRequires=e=>{let t;for(t of e)if(!NW(t))break;return t};var LW={},OW={};const{traverse:DW,types:FW}=st,{extract:MW}=zK,{isCallExpression:BW,isObjectExpression:RW}=FW,jW=e=>e.node||e;OW.traverseProperties=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return RW(e)?BW(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:jW(e)}:jW(e)}(e),s=UW({name:t,collector:r});return n?(s(e),r):(DW(i,{noScope:!0,ObjectExpression:s}),r)};const UW=({name:e,collector:t})=>n=>{for(const r of n.get("properties")){if(r.isSpreadElement())continue;if(r.isRestElement())continue;const n=r.get("key");if(n.isConditionalExpression())continue;const i=MW(n);e===i&&t.push(r)}},{isObjectExpression:qW,isObjectPattern:JW}=st.types,{extract:$W}=zK,{traverseProperties:VW}=OW;LW.traverseProperties=VW,LW.getProperties=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=r.get("key"),i=$W(e);if(t.includes(i)){n[`${i}Path`]=r;continue}}return n},LW.getProperty=(e,t)=>{if(!qW(e)&&!JW(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);const n=e.get("properties");for(const e of n){const n=e.get("key");if($W(n)===t)return e}return null};var KW={};const WW=e=>"string"==typeof e;KW.getLiteralRaw=e=>{const{raw:t,extra:n,value:r}=e.node||e;return WW(t)?t:n&&WW(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};var XW={},HW={},zW={};const{types:YW}=st,{isStatement:GW,isBlockStatement:QW,blockStatement:ZW,expressionStatement:eX}=YW;zW.maybeBody=(e,t)=>{const{parentPath:n}=e;return t&&!GW(t)||QW(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=ZW([eX(e.node)]),{currentPath:n.get("body.body.0")})};var tX={};const{types:nX}=st,{isExpression:rX,toStatement:iX,expressionStatement:sX}=nX;tX.toExpression=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:rX(e)?sX(e):iX(e)};const{maybeBody:aX}=zW,{toExpression:oX}=tX,{isSequenceExpression:uX}=st.types;HW.replaceWithMultiple=(e,t)=>{const{node:n}=e,{trailingComments:r,comments:i,leadingComments:s}=n;delete e.node.trailingComments;const a=e.parentPath.node.comments,o=t.filter(Boolean).map(oX);!function(e){for(const t of e)for(const n of e)t!==n&&t.leadingComments===n.leadingComments&&delete n.leadingComments}(o);const{currentPath:u}=aX(e),c=u.replaceWithMultiple(o);return c.length?(s||uX(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};var cX={};const{maybeBody:lX}=zW,{assign:pX}=Object;cX.replaceWith=(e,t)=>{t=(e=>{var t;return(e=(t=e).__putout_replaced_with?t.__putout_replaced_with:t).node?e.node:e})(t),e?.parentPath?.isExpressionStatement()&&!e.parentPath.isProgram()&&(!function(e,t){e.__putout_replaced_with=t}(e,t),e=e.parentPath);const{comments:n,loc:r}=e.node,{currentPath:i}=lX(e,t);return i.replaceWith(t),pX(i.node,{comments:n,loc:r}),i};const{replaceWithMultiple:dX}=HW,{replaceWith:hX}=cX,{toExpression:fX}=tX;XW.replaceWith=hX,XW.replaceWithMultiple=dX,XW.toExpression=fX;const{types:mX}=st,{getBinding:yX,getBindingPath:gX}=BK,{isSimple:bX}=$K,{extract:xX}=zK,{compute:SX}=dW,{remove:TX}=SW,{getExportDefault:EX}=AW,{rename:PX}=CW,{renameProperty:vX}=wW,{setLiteralValue:AX}=IW,{getPathAfterRequires:CX}=_W,{getProperty:wX,getProperties:kX,traverseProperties:IX}=LW,{getLiteralRaw:_X}=KW,{replaceWith:NX,replaceWithMultiple:LX,toExpression:OX}=XW,{matchesPattern:DX,isImportDeclaration:FX,isExportDeclaration:MX,isStatement:BX,expressionStatement:RX}=mX;MK.getBinding=yX,MK.getBindingPath=gX,MK.getLiteralRaw=_X,MK.extract=xX,MK.compute=SX,MK.replaceWith=NX,MK.getExportDefault=EX,MK.toExpression=OX,MK.isSimple=bX,MK.rename=PX,MK.renameProperty=vX,MK.setLiteralValue=AX,MK.getProperty=wX,MK.getProperties=kX,MK.traverseProperties=IX,MK.replaceWithMultiple=LX,MK.insertBefore=(e,t)=>{e.insertBefore(t)},MK.insertAfter=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,BX(e)&&!BX(t)?e.insertAfter(RX(t)):e.insertAfter(t),e.node.comments=n},MK.isModuleExports=e=>DX(e.node||e,"module.exports");MK.findBinding=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},MK.remove=TX,MK.getPathAfterRequires=CX,MK.getPathAfterImports=e=>{const t=e.length;let n=0;for(;n<t-1&&FX(e[n]);)++n;return e[n]},MK.isESM=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(FX(e))return!0;if(MX(e))return!0}return!1};const{isSimple:jX}=MK,{types:UX}=st,{isStringAndMember:qX,isStringAndIdentifier:JX,isIdentifierAndString:$X,isCoupleLines:VX,isStringAndArray:KX,isIdentifierAndIdentifier:WX,isSimpleAndNotEmptyObject:XX}=Zj,{isObjectExpression:HX,isArrayExpression:zX,isObjectProperty:YX,isCallExpression:GX,isAwaitExpression:QX,isBooleanLiteral:ZX,isNullLiteral:eH,isStringLiteral:tH,isSpreadElement:nH,isIdentifier:rH}=UX,{round:iH}=Math,sH=!1,aH=!0;FK.isMultiLine=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!rH(n)&&n.node.name.length<t}(t,r)?sH:t.length>n&&tH(i)||t.length>3&&!HX(i)||XX(t)?aH:function(e){const t=e.get("elements");if(1!==t.length)return!1;const[n]=t;return!!(n.isIdentifier()&&n.node.name.length<15)||!(n.isStringLiteral()&&n.node.value.length>10)&&(!(n.isIdentifier()||!jX(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return nH(t)})(t)||2===t.length&&WX(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||hH(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>ZX(e)&&jX(t))(t)||(([e,t])=>eH(e)&&jX(t))(t)||(([e,t])=>{if(jX(e))return GX(t)||QX(t)})(t)||cH(e,n)||function(e){const[t,n]=e;if(e.length>2)return!1;if(!t?.isStringLiteral()||!n?.isStringLiteral())return!1;const r=t.node.value.length,i=n.node.value.length;return iH(i/r)>2}(t)||lH(e)||KX(t)&&t.length<3||qX(t)||JX(t)||$X(t)||(([e,t])=>jX(e)&&HX(t))(t)||uH(t)&&e.parentPath.isArrayExpression()&&zX(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?sH:function(e){const t=e.get("elements");if(t.length<2)return!1;for(const t of e.get("elements"))if(t.isStringLiteral()&&t.node.value.length>4)return!0;return!1}(e)||VX(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!oH(e)&&pH(e)&&!dH(e)?aH:sH};const oH=({parentPath:e})=>e.isForOfStatement(),uH=([e,t])=>tH(e)&&tH(t),cH=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!tH(a)||!tH(o))&&s<t)},lH=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!tH(s)||!tH(a))&&!VX(e)))};const pH=({parentPath:e})=>!e.isCallExpression(),dH=e=>e.find(YX);function hH(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>ZX(e)&&HX(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!nH(t[1])&&fH(t)))}FK.isIncreaseIndent=hH;const fH=e=>{const t=e.at(0),n=e.at(-1);return tH(t)&&HX(n)};FK.isCurrentNewLine=e=>!!e.isSpreadElement()||!e.isObjectExpression();var mH={};const{types:yH}=st,{isIndented:gH}=Zj,{isStringLiteral:bH,isArrayExpression:xH}=yH,SH=e=>e.parentPath.isArrayExpression();function TH(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(xH).length,r=!xH(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}mH.isInsideArray=SH,mH.isArrayIndented=e=>{const t=e.get("elements");if(TH(e))return!1;const[n]=t;return!EH(t)||!SH(e)&&gH(n)},mH.isArrayInsideArray=TH;const EH=([e,t])=>!(!bH(e)||!bH(t))&&e.node.value.length>20;var PH={};const{isNextObject:vH,isPrevObject:AH}=Zj,CH=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"];PH.isObjectAfterSimple=e=>{const{type:t}=e;return!(!vH(e)||AH(e))&&CH.includes(t)},PH.isNextSimple=e=>{const{type:t}=e.getNextSibling();return CH.includes(t)};const{types:wH}=st,{isCoupleLines:kH,isStringAndIdentifier:IH,isIdentifierAndIdentifier:_H,isStringAndArray:NH,isSimpleAndNotEmptyObject:LH,isNextObject:OH}=Zj,{isIncreaseIndent:DH,isCurrentNewLine:FH,isMultiLine:MH}=FK,{isInsideArray:BH,isArrayInsideArray:RH,isArrayIndented:jH}=mH,{isObjectAfterSimple:UH,isNextSimple:qH}=PH,{isObjectExpression:JH,isSpreadElement:$H,isStringLiteral:VH,isIdentifier:KH,isFunction:WH,isCallExpression:XH,isObjectProperty:HH}=wH,zH=e=>(e=>VH(e.getNextSibling()))(e)||(e=>VH(e.getPrevSibling()))(e),YH=e=>{if(!e.isObjectExpression())return!1;const t=e.getPrevSibling();if(!t.isSpreadElement())return!1;const n=t.get("argument");if(n.isCallExpression()){const[e]=n.get("arguments");if(WH(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},GH=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},QH=({parentPath:e})=>1===e.node.elements.length;function ZH(e){if(!$H(e)&&!KH(e)&&!XH(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}DK.ArrayExpression={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!kH(t)&&(!(!IH(n)||!QH(e))||_H(n)))},before(e,{print:t}){t.breakline()},print(e,{print:t,maybe:n},r){const{maxElementsInOneLine:i,trailingComma:s,maxElementLengthInOneLine:a}=r,o=e.get("elements"),u=!DH(e);t("[");const c=jH(e);n.indent.inc(c&&u);const l=MH(e,{elements:o,maxElementsInOneLine:i,maxElementLengthInOneLine:a}),p=o.length-1;n.print.newline(l&&o.length);for(const[r,i]of o.entries()){const a=l&&FH(i);ZH(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),JH(i)&&HH(e.parentPath)||n.print.newline((a||YH(i))&&!OH(i)&&!JH(i)),n.print.space(a&&UH(i)),!a&&r<p&&(t(","),!GH(i)&&i.isObjectExpression()&&qH(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(BH(e)&&NH(d)){const t=2===d.length,r=!zH(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else RH(e)||JH(o.at(-1))||n.indent(o.length&&l);!LH(o)||$H(o.at(-1))||XH(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!kH(t)&&(!(!IH(n)||!QH(e))||_H(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};var ez={};const{maybeTypeAnnotation:tz}=vV;ez.ArrayPattern=tz((e,{indent:t,maybe:n,print:r},i)=>{const{maxElementsInOneLine:s}=i;r("[");const a=e.get("elements");t.inc();const o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,u=a.length-1;n.print(o&&a.length,"\n");for(const[e,t]of a.entries())n.indent(o),r(t),o?r(",\n"):e<u&&(r(","),r.space());t.dec(),n.indent(a.length&&o),r("]")});var nz={};nz.AssignmentPattern={print(e,{print:t,maybe:n}){n.print(function(e){const{parentPath:t}=e;return!(!t.isObjectProperty()||t.node.shorthand)||(!!(e=>e.parentPath.isFunction())(e)||(!!t.isTSParameterProperty()||t.isArrayPattern()))}(e),"__left"),t.space(),t("="),t.space(),t("__right")}};var rz={};const{maybeTypeAnnotation:iz}=vV;rz.RestElement=iz((e,{print:t})=>{t("..."),t("__argument")});var sz={};const{hasTrailingComment:az}=Zj;sz.SpreadElement=(e,t)=>{const{print:n}=t;n("..."),n("__argument"),az(e)&&n(",")};var oz={exports:{}},uz={condition:(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ArrowFunctionExpression"===i||("ConditionalExpression"===i&&e!==r.get("test")||("LogicalExpression"===i||s.sequence))}},cz={};const{hasLeadingComment:lz}=Zj,pz=()=>{};cz.printLeadingCommentLine=pz,cz.printLeadingCommentBlock=pz,cz.maybePrintComments=(e,{print:t})=>{if(lz(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}},function(e){const{hasLeadingComment:t}=Zj,{maybeParens:n}=Vq,{condition:r}=uz,{maybePrintComments:i,printLeadingCommentLine:s,printLeadingCommentBlock:a}=cz;e.exports.SequenceExpression=n({checkParens:!1,condition:r,print(e,n){const{write:r,traverse:s,indent:a,maybe:o}=n,u=e.get("expressions"),c=u.length-1,l=t(e);l&&(a.inc(),r.breakline(),i(e,n));for(const[e,t]of u.entries())s(t),e<c&&(r(","),o.write.space(!l),o.print.breakline(l));l&&(a.dec(),r.breakline())}}),e.exports.SequenceExpression.printLeadingCommentLine=s,e.exports.SequenceExpression.printLeadingCommentBlock=a}(oz);var dz=oz.exports;dz.default;var hz={TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")}},fz={},mz={maybeSpace:(e,{print:t})=>{const{right:n}=e.node;return"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()}};const{concatenate:yz,isConcatenation:gz}=lV,{maybeSpace:bz}=mz,{maybeParens:xz}=Vq;fz.BinaryExpression=xz((e,{print:t,indent:n,maybe:r})=>{const{operator:i}=e.node;return"in"===i||"instanceof"===i?(t("__left"),t(" "),t(i),t(" "),void t("__right")):gz(e)?yz(e,{print:t,indent:n,maybe:r}):(t("__left"),t.space(),t(e.node.operator),bz(e,{print:t}),void t("__right"))});var Sz={},Tz={};const{types:Ez}=st,{isLogicalExpression:Pz,isReturnStatement:vz,isVariableDeclarator:Az}=Ez;function Cz(e){let t=0;do{++t;const n=e.get("right");Pz(n)&&(t+=Cz(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}Tz.isRootOk=e=>vz(e)||Az(e),Tz.chain=e=>{const[t]=Cz(e),[n,r]=function(e){let t=0;do{++t,e=e.parentPath}while(e.isLogicalExpression());return[t,{type:e.type}]}(e);return[r,t+n,t,n]};const{maybeParens:wz}=Vq,{chain:kz,isRootOk:Iz}=Tz;Sz.LogicalExpression=wz({condition:e=>!!e.parentPath.isUnaryExpression()||e.parentPath.isAwaitExpression(),print(e,{print:t,maybe:n},r){t("__left");const i=function(e,t){const[n,r]=kz(e);if(!Iz(n))return!1;if(r<=t.maxLogicalsInOneLine)return!1;const{operator:i}=e.node;return"||"===i||"&&"===i}(e,r);n.indent.inc(i),i?t.breakline():t.space(),n.indent.dec(i),t(e.node.operator),t.space(),t("__right")}});var _z={};const{maybeParens:Nz}=Vq;_z.ConditionalExpression=Nz((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")});var Lz={StaticBlock:(e,{print:t,traverse:n})=>{t("static "),t("{"),t.breakline();for(const t of e.get("body"))n(t);t.indent(),t("}"),t.newline()}},Oz={};function Dz(e,t,n,{source:r="source"}={}){const{print:i,maybe:s}=t,{options:a}=e.node;i("import("),i(`__${r}`),s.print(a,","),s.print.space(a),i("__options"),i(")")}Oz.ImportExpression=Dz,Oz.createImportExpression=Dz;var Fz={};const{types:Mz}=st,{isJSXElement:Bz}=Mz;Fz.ParenthesizedExpression={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!Bz(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}};const Rz=Gj,jz=QJ,Uz=i$,{ClassExpression:qz,ClassDeclaration:Jz}=u$,{CallExpression:$z,OptionalCallExpression:Vz}=S$,{NewExpression:Kz}=A$,{ObjectExpression:Wz}=L$,{ObjectProperty:Xz}=cV,{ObjectPattern:Hz}=TV,{ClassProperty:zz,ClassAccessorProperty:Yz,ClassPrivateProperty:Gz,PrivateName:Qz}=fK,{AssignmentExpression:Zz}=OK,{ArrayExpression:eY}=DK,{ArrayPattern:tY}=ez,{AssignmentPattern:nY}=nz,{RestElement:rY}=rz,{SpreadElement:iY}=sz,{SequenceExpression:sY}=dz,{TaggedTemplateExpression:aY}=hz,{BinaryExpression:oY}=fz,{LogicalExpression:uY}=Sz,{ConditionalExpression:cY}=_z,{StaticBlock:lY}=Lz,{ImportExpression:pY}=Oz,{ParenthesizedExpression:dY}=Fz;var hY={...Rz,...jz,...Uz,ArrayPattern:tY,ArrayExpression:eY,AssignmentExpression:Zz,AssignmentPattern:nY,BinaryExpression:oY,CallExpression:$z,ClassExpression:qz,ClassProperty:zz,ClassAccessorProperty:Yz,ClassPrivateProperty:Gz,ClassDeclaration:Jz,ConditionalExpression:cY,NewExpression:Kz,LogicalExpression:uY,OptionalCallExpression:Vz,ObjectExpression:Wz,ObjectProperty:Xz,ObjectPattern:Hz,ParenthesizedExpression:dY,PrivateName:Qz,RestElement:rY,ImportExpression:pY,SpreadElement:iY,SequenceExpression:sY,StaticBlock:lY,TaggedTemplateExpression:aY,ThisExpression(e,{write:t}){t("this")}},fY={exports:{}},mY={};const{types:yY}=st,{isExpressionStatement:gY,isFunction:bY,isAssignmentExpression:xY}=yY;mY.isInsideAssignNextAssignFunction=e=>{const{expression:t}=e.node;if(!xY(t))return!1;const n=e.getNextSibling();if(bY(n)&&n.node.leadingComments)return!0;if(!gY(n))return!1;const{leadingComments:r}=n.node;return!!r&&(!!xY(n.node.expression)&&bY(n.node.expression.right))};var SY={};const{types:TY}=st,{hasTrailingComment:EY}=Zj,{isBlockStatement:PY,isProgram:vY,isIfStatement:AY}=TY;SY.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;EY(u)||(r||u.node||!AY(c)&&!PY(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},SY.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();EY(s)||(PY(e.parentPath)&&!vY(e.parentPath.parentPath)&&i(),r())},function(e){const{types:t}=st,{isNext:n,isLast:r,isParentBlock:i,isParentLast:s,isNewlineBetweenSiblings:a,satisfy:o,noTrailingComment:u,hasTrailingComment:c,isCoupleLines:l,isInsideLabel:p}=Zj,{isInsideAssignNextAssignFunction:d}=mY,{printLeadingCommentLine:h,printLeadingCommentBlock:f}=SY,{isCallExpression:m,isExpressionStatement:y,isAssignmentExpression:g}=t,b=({parentPath:e})=>e.isReturnStatement(),x=(e=>(...t)=>!e(...t))(b),S=o([function(e){return!r(e)&&!s(e)},i,n,function(e){return e.findParent(n)}]),T=o([a,function(e){return e.parentPath.get("body")===e},function(e){const t=e.get("expression");if(!t.isStringLiteral())return!1;const{value:n}=e.node.expression;return"use strict"===n},e=>e.getNextSibling().isIfStatement()]);e.exports.ExpressionStatement={beforeIf:e=>!b(e)&&!p(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:r,store:i,indent:s}){const a=b(e);if(t("__expression"),r.print(!a,";"),n(e)&&!a&&T(e)){t.newline();const r=n(e)&&u(e)||function(e){if(g(e.node.expression))return!1;const t=e.getNextSibling();if(!y(t))return!1;const{expression:n}=t.node;return m(n)}(e)||function(e){const{expression:t}=e.node;return!!m(t)&&(!!m(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);r&&s(),i(!0)}},afterIf:e=>!!S(e)||(!(!c(e)||!r(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:i,indent:s}){c(e)&&r(e)&&l(e)&&t.breakline(),c(e)&&!l(e)||function({parentPath:e}){if(!e.isIfStatement())return!1;const t=e.parentPath;if(!t.isIfStatement())return!1;const n=t.parentPath;return!!n.isIfStatement()&&r(n)}(e)||x(e)&&(d(e)&&s(),t.newline(),n.markAfter(i(),e))}},e.exports.ExpressionStatement.printLeadingCommentLine=h,e.exports.ExpressionStatement.printLeadingCommentBlock=f}(fY);var CY=fY.exports;CY.default;var wY={},kY={maybeSpaceAfterKeyword:(e,{write:t})=>{const{declarations:n}=e.node;if(!n.length)return;const{id:r}=n[0];if("ArrayPattern"===r.type||"ObjectPattern"===r.type)return t.space();t(" ")}};const{types:IY}=st,{isNext:_Y,isCoupleLines:NY,isNewlineBetweenSiblings:LY,exists:OY,noTrailingComment:DY}=Zj,{hasPrevNewline:FY}=TU,{maybeSpaceAfterKeyword:MY}=kY,{isConcatenation:BY}=lV,{parseLeadingComments:RY}=xU,{maybeDeclare:jY}=c$,{isExportDeclaration:UY}=IY,qY=e=>e.parentPath.isTSModuleBlock(),JY=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),$Y=e=>e.parentPath.isSwitchCase();function VY(e){return!_Y(e)&&e.parentPath.isBlockStatement()}function KY(e){return!zY(e.parentPath)&&e.parentPath.isExportDeclaration()}function WY(e){return!zY(e)&&NY(e)}function XY(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!OY(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!zY(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function HY(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!OY(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&NY(t))}wY.VariableDeclaration={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(FY(e))return!1;if(FY(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!UY(e.parentPath)&&NY(e))},before(e,{print:t}){t.breakline()},print:jY((e,{maybe:t,store:n,write:r,traverse:i,print:s,indent:a},o)=>{const{maxVariablesInOneLine:u}=o;t.indent((e=>/^(Program|BlockStatement|TSModuleBlock|SwitchCase)$/.test(e.parentPath.type))(e)),r(e.node.kind),MY(e,{write:r});const c=e.get("declarations"),l=c.length-1;t.indent.inc(l);for(const[e,n]of c.entries()){const p=n.get("id"),d=n.get("init"),h=e===l;if(i(p),OY(d)&&(r.space(),r("="),t.write.space(!BY(d)),i(d)),!h){const n=c[e+1];if(r(","),!n.node.leadingComments){t.write.breakline(l>u),t.write.space(l<=u);continue}RY(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(JY(e)||$Y(e)||qY(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;$Y(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),JY(e)&&_Y(e)&&(DY(e)||LY(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[YY,GY,VY,WY,QY,HY,XY,LY,KY,qY],after(e,{maybe:t,store:n}){const r=n();if(zY(e.parentPath)&&!e.parentPath.isBlockStatement()||!JY(e)&&!qY(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};const zY=e=>e.parentPath?.isProgram()&&!_Y(e);const YY=e=>e.getNextSibling().isIfStatement(),GY=e=>e.getNextSibling().isFunctionDeclaration(),QY=e=>{const t=e.getNextSibling();if(!t.isExpressionStatement())return!1;const{parentPath:n}=e;return!(n.isBlockStatement()&&n.node.body.length<3)&&t.get("expression").isAssignmentExpression()};var ZY={};const{types:eG}=st,{markAfter:tG}=TU,{exists:nG,isNext:rG,isInsideIf:iG}=Zj,{isBlockStatement:sG,isFunctionDeclaration:aG,isStatement:oG}=eG;ZY.IfStatement={print:(e,{indent:t,print:n,maybe:r,write:i,traverse:s})=>{const{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),n("if"),n.space(),n("("),n("__test"),n(")");const u=e.get("consequent"),c=e.get("alternate"),l=u.isBlockStatement(),p=u.isVariableDeclaration();if(l)n.space(),n(u),(iG(e.parentPath)||(({parentPath:e})=>"BlockStatement"===e.type&&"BlockStatement"===e.parentPath.type)(e))&&r.print.newline((e=>!e.node.body.length)(u));else{const t=!(e=>e.get("consequent").isEmptyStatement())(e);r.print.newline(t),r.indent.inc(t),r.indent(p),n(u),r.indent.dec(t)}if(c.isBlockStatement()?(i.space(),i("else"),i.space(),s(c)):c.isIfStatement()?(c.get("consequent").isBlockStatement()?i.space():t(),i("else "),s(c)):nG(c)&&(r.write.newline(p),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!rG(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||oG(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!sG(t)&&!!sG(e.node.consequent)&&!e.node.consequent.body.length&&aG(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[rG],after:(e,{print:t})=>{t.linebreak(),tG(e)}};var uG={};const{hasPrevNewline:cG,markAfter:lG,markBefore:pG,isMarkedAfter:dG}=TU,{isFirst:hG,isNext:fG,isLast:mG}=Zj;uG.ForOfStatement={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!hG(e)&&!cG(e))},before(e,{print:t}){t.linebreak(),pG(e)},print(e,{indent:t,print:n,maybe:r,traverse:i}){const{node:s}=e;t(),n("for"),r.print(s.await," await"),n.space(),n("("),n("__left"),n(" of "),n("__right"),n(")");const a=e.get("body");if(a.isBlockStatement()){n.space(),n("__body");const{length:t}=a.node.body;return void r.print.newline(!t&&!mG(e)&&!fG(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(dG(a),e)},afterIf:fG,after(e,{print:t}){t.linebreak(),lG(e)}};var yG={},gG={};const{exists:bG}=Zj;gG.insideIfWithNoBody=e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!bG(t)};var xG={getDirectives:e=>e.node.directives?e.get("directives"):[]},SG={};const{types:TG}=st,{isLooksLikeChain:EG}=QU,{isReturnStatement:PG,isExpressionStatement:vG,isMemberExpression:AG,isCallExpression:CG}=TG;function wG(e){return!!AG(e)&&vG(e.parentPath.parentPath)}function kG(e){if(!CG(e))return!1;const{parentPath:t}=e;return!!PG(t)||vG(t)}SG.isCallInsideChain=e=>{if(!CG(e.parentPath.parentPath))return!1;const t=e.find(wG);if(t)return EG(t);const n=e.find(kG);if(!n)return!1;const r=n.get("callee");return EG(r)};const{types:IG}=st,{isNext:_G,isParentProgram:NG,isLast:LG,exists:OG,satisfy:DG}=Zj,{markAfter:FG}=TU,{parseComments:MG}=xU,{insideIfWithNoBody:BG}=gG,{getDirectives:RG}=xG,{isCallInsideChain:jG}=SG,{isArrowFunctionExpression:UG,isObjectMethod:qG,isFunctionDeclaration:JG,isExportDeclaration:$G,isDoWhileStatement:VG,isBlockStatement:KG,isArrayExpression:WG}=IG,XG=e=>UG(e)||qG(e);yG.BlockStatement={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=RG(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!WG(t))return!1;const{length:n}=t.node.elements;return 3===n})(e);s.indent.inc(!l),a("{"),((e=>e.node.body[0])(e)||(e=>e.node.directives?.[0])(e))&&a.newline();for(const e of c)o(e);s.write.linebreak(c.length&&u.length);const p=jG(e);s.indent.inc(p);for(const e of u)o(e);MG(e,t,n),s.indent.dec(!l),s.indent.dec(l),s.indent(u.length),s.indent.inc(l),a("}"),s.indent.dec(p);const{parentPath:d}=e;qG(d)&&s.write(_G(d)||r,",")},afterIf:function(e){return ZG(e)?GG:eQ(e)?QG:HG(e)?GG:zG(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||YG(e)||LG(e)||function(e){return!!JG(e.parentPath)&&(!!$G(e.parentPath?.parentPath)&&!_G(e.parentPath?.parentPath))}(e)?QG:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&OG(n)}(e)},after(e,{write:t}){t.newline(),FG(e.parentPath)}};const HG=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(XG),zG=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!_G(t)},YG=({parentPath:e})=>/FunctionExpression/.test(e.type),GG=!0,QG=!1,ZG=({parentPath:e})=>KG(e),eQ=DG([({parentPath:e})=>VG(e),e=>!_G(e)&&(!_G(e.parentPath)&&NG(e.parentPath)),BG]);var tQ={},nQ={maybeSpaceAfterKeyword:(e,{print:t},n)=>{const{roundBraces:r}=n,{argument:i}=e.node;if(!i)return;const{type:s}=i;return"SequenceExpression"===s&&r.sequence||"StringLiteral"===s||"TemplateLiteral"===s||"ArrayExpression"===s||"ObjectExpression"===s||"UnaryExpression"===s&&"!"===i.operator||"ArrowFunctionExpression"===s&&r.arrow?t.space():void t(" ")}};const{types:rQ}=st,{isInsideLabel:iQ}=Zj,{isPrevBody:sQ,noTrailingComment:aQ,isLast:oQ}=Zj,{hasPrevNewline:uQ}=TU,{maybeSpaceAfterKeyword:cQ}=nQ,{isJSXElement:lQ}=rQ;tQ.ReturnStatement={beforeIf:e=>!uQ(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||sQ(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;if(r.indent(!iQ(e)),i("return"),cQ(e,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return lQ(t)&&n?.length}(e))return i("("),i.breakline(),i("__argument"),void i(");");i("__argument"),i(";")},afterIf:e=>!!(({parentPath:e})=>e.isIfStatement()&&e.node.alternate)(e)||!oQ(e)&&(!oQ(e.parentPath)&&aQ(e)),after(e,{print:t}){t.newline()}};var pQ={};const{isNext:dQ}=Zj;pQ.TryStatement={print(e,{print:t}){const n=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),n.node&&(t.space(),t("finally"),t.space(),t(n),t.newline())},afterSatisfy:()=>[dQ],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}},pQ.CatchClause=(e,{print:t,maybe:n})=>{const r=e.get("param"),i=e.get("body");t.space(),t("catch"),r.node?(t("("),t(r),t(")"),t.space()):t.space(),t(i),n.print.newline(function(e){return e.parentPath.parentPath.isBlockStatement()}(e))};var hQ={};const{isNext:fQ,isInsideIf:mQ}=Zj,yQ=e=>e.parentPath.isBlockStatement();hQ.DebuggerStatement={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[fQ,yQ,mQ],after(e,{print:t}){t.newline()}};var gQ={};const{exists:bQ}=Zj,{markAfter:xQ}=TU;gQ.ForStatement={print(e,{print:t,maybe:n,indent:r}){const{test:i,update:s,body:a}=e.node;if(r(),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(i),t("__test"),t(";"),n.print.space(s),t("__update"),t(")"),a.body)t.space(),t("__body");else{const r=!e.get("body").isEmptyStatement();n.print.newline(r),n.indent.inc(r),t("__body"),n.indent.dec(r)}},afterIf:e=>bQ(e.getNextSibling()),after(e,{print:t}){t.linebreak(),xQ(e)}};var SQ={exports:{}},TQ={parseImportSpecifiers:e=>{const t=[],n=[],r=[];for(const i of e)"ImportDefaultSpecifier"!==i.type?"ImportNamespaceSpecifier"!==i.type?"ImportSpecifier"!==i.type||r.push(i):n.push(i):t.push(i);return{defaults:t,namespaces:n,imports:r}}},EQ={ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},maybePrintAttributes:(e,t)=>{if(PQ(e))return vQ(e,"assert",t);vQ(e,"with",t)}};const PQ=e=>e.node.extra?.deprecatedAssertSyntax;function vQ(e,t,{write:n,traverse:r,indent:i}){const s=e.get("attributes");if(s.length){n(` ${t}`),n.space(),n("{"),n.breakline(),i.inc();for(const e of s)i(),r(e),n.newline();i.dec(),n("}")}}var AQ={};const{types:CQ}=st,{isExportDeclaration:wQ}=CQ;AQ.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()},AQ.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!wQ(s)),r()},function(e){const{parseImportSpecifiers:t}=TQ,{markAfter:n}=TU,{isLast:r,isNext:i}=Zj,{maybePrintAttributes:s,ImportAttribute:a}=EQ,{printTrailingCommentBlock:o,printTrailingCommentLine:u}=AQ;e.exports.ImportAttribute=a,e.exports.ImportDeclaration={print(e,n,r){const{print:a,maybe:o,write:u,traverse:c,indent:l}=n,{phase:p}=e.node,d="type"===e.node.importKind,h=e.get("specifiers");l(),u("import"),o.write(d," type"),o.write(p,` ${p}`);let f=!1;const m=h.length-1,{defaults:y,namespaces:g,imports:b}=t(h);o.write(h.length," ");for(const e of y)c(e.get("local")),o.write(m,","),o.write.space(m);for(const e of g)u("* as "),c(e.get("local"));const x=function(e,t){const{maxSpecifiersInOneLine:n,maxPropertiesLengthInOneLine:r}=t;for(const{node:t}of e){if(t.imported.name!==t.local.name)return 1;if(t.imported.name.length>=r)return 1}return n}(b,r),S=b.length-1;for(const[e,t]of b.entries()){const n=e===S,r=!n,{imported:i,local:s}=t.node;if(l.inc(),o.write(!f,"{"),o.write.breakline(S>=x),f=!0,c(t.get("imported")),i.name!==s.name&&(u(" as "),u(s.name)),S<x&&r&&(o.write(m,","),o.write.space(m)),S>=x){o.write(m,",");const t=e===m,n=e===m-1;o.write.newline(n&&y.length),o.write.newline(t)}l.dec(),o.write(n,"}")}o.write(h.length," from"),a.space(),a("__source"),s(e,n),a(";"),i(e)&&a.newline()},afterIf:e=>!r(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),n(e)}},e.exports.ImportDeclaration.printTrailingCommentBlock=o,e.exports.ImportDeclaration.printTrailingCommentLine=u}(SQ);var kQ=SQ.exports;kQ.default;var IQ={};const{types:_Q}=st,{isParentBlock:NQ}=Zj,{markAfter:LQ,isMarkedAfter:OQ,hasPrevNewline:DQ}=TU,{isNewlineBetweenSiblings:FQ,exists:MQ,isNext:BQ,isLast:RQ}=Zj,{isExportNamespaceSpecifier:jQ,isVariableDeclaration:UQ,isExportNamedDeclaration:qQ}=_Q,JQ={maxOneLineSpecifiers:2};IQ.ExportSpecifier=(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},IQ.ExportNamespaceSpecifier=(e,{print:t})=>{t("* as "),t("__exported")},IQ.ExportNamedDeclaration={beforeIf(e){const t=e.getPrevSibling();return!DQ(e)&&UQ(t)},before(e,{print:t}){t.linebreak()},print(e,{print:t,traverse:n,indent:r,maybe:i},s){const{trailingComma:a}=s,{exportKind:o}=e.node,u=e.get("specifiers"),{maxOneLineSpecifiers:c}=JQ,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),jQ(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!RQ(e));const p=u.length,d=!MQ(l)||p>c;if(u&&!e.node.declaration){if(t.space(),t("{"),u.length){r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of u.entries()){const o="type"===s.node.exportKind,u=r<e;i.indent(d),i.print(o,"type "),n(s),u&&!d?t(", "):d&&i.print(u||a,","),i.print.newline(d)}r.dec(),r()}t("}");const s=e.get("source");return MQ(s)&&(t(" from "),n(s)),t(";"),void i.print.newline(BQ(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!RQ(e)&&(!(e=>OQ(e.get("declaration")))(e)&&(!!FQ(e)||NQ(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();qQ(r)&&n(),t.newline(),LQ(e)}};var $Q={ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()}},VQ={};const{isNext:KQ}=Zj,{markAfter:WQ}=TU;VQ.WhileStatement={print(e,{print:t,indent:n}){n(),t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>KQ(e),after(e,{print:t}){t.linebreak(),WQ(e)}};var XQ={};const{isNext:HQ,exists:zQ,isLast:YQ}=Zj,{parseLeadingComments:GQ}=xU;XQ.SwitchStatement={print(e,t,n){const{print:r,maybe:i,indent:s,write:a,traverse:o}=t;s(),r("switch"),r("("),r("__discriminant"),r(") {"),r.newline();const u=e.get("cases"),c=u.length-1;for(const[e,l]of u.entries()){const u=l.get("test");s(),GQ(l,t,n),zQ(u)?(a("case "),o(u)):a("default"),r(":");const p=l.get("consequent"),d=l.get("consequent.0")?.isBlockStatement();i.indent.inc(!d),i.print.newline(!d&&p.length);for(const e of p)e.isBlockStatement()?(r.space(),r(e)):r(e);i.indent.dec(!d),i.write.linebreak(e<c)}r.indent(),r("}"),HQ(e)||YQ(e)||r.newline()},afterSatisfy:()=>[HQ],after(e,{print:t}){t.breakline(),t.newline()}};var QQ={ForInStatement:(e,{print:t,indent:n})=>{n(),t("for"),t.space(),t("("),t("__left"),t(" in "),t("__right"),t(")"),e.get("body").isBlockStatement()&&t.space(),t("__body")}},ZQ={};const{types:eZ}=st,{isNext:tZ}=Zj,{isVariableDeclaration:nZ,isFunction:rZ}=eZ;ZQ.ExportDefaultDeclaration={print(e,{print:t,traverse:n,maybe:r}){const i=e.get("declaration");t("export default "),n(i),r.print(function(e){return!e.isClassDeclaration()&&!e.isFunctionDeclaration()}(i),";")},afterSatisfy:()=>[tZ],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!nZ(t))return!1;const{declaration:n}=e.node;return rZ(n)}(e))}};var iZ={};const{isParentBlock:sZ,isNextParent:aZ,isInsideIf:oZ,isInsideLabel:uZ}=Zj,cZ=e=>e.parentPath.isSwitchCase();iZ.BreakStatement={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!uZ(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[sZ,aZ,cZ,oZ]};var lZ={};const{isLast:pZ}=Zj,dZ=e=>!pZ(e);lZ.DoWhileStatement={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[dZ],after(e,{print:t}){t.newline()}};var hZ={};const{parseComments:fZ}=xU,{getDirectives:mZ}=xG,{hasCoupleTrailingComments:yZ}=Zj;hZ.Program=(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),fZ(e,t,n);const o=mZ(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&yZ(r.at(-1))||a.endOfFile()};var gZ={};const{isInsideLabel:bZ}=Zj;gZ.ContinueStatement=(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!bZ(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()};var xZ={};const{isInsideLabel:SZ}=Zj;xZ.LabeledStatement=(e,{print:t,maybe:n})=>{n.indent(!SZ(e)),t("__label"),t(":"),t.space(),t("__body")};var TZ={};const{isLast:EZ}=Zj;TZ.EmptyStatement=(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!EZ(e)&&!EZ(r))};const{ExpressionStatement:PZ}=CY,{VariableDeclaration:vZ}=wY,{IfStatement:AZ}=ZY,{ForOfStatement:CZ}=uG,{BlockStatement:wZ}=yG,{ReturnStatement:kZ}=tQ,IZ=pQ,{DebuggerStatement:_Z}=hQ,{ForStatement:NZ}=gQ,LZ=kQ,OZ=IQ,{ExportAllDeclaration:DZ}=$Q,{WhileStatement:FZ}=VQ,{SwitchStatement:MZ}=XQ,{ForInStatement:BZ}=QQ,{ExportDefaultDeclaration:RZ}=ZQ,{BreakStatement:jZ}=iZ,{DoWhileStatement:UZ}=lZ,{Program:qZ}=hZ,{ContinueStatement:JZ}=gZ,{LabeledStatement:$Z}=xZ,{EmptyStatement:VZ}=TZ,{ExportNamespaceSpecifier:KZ,ExportSpecifier:WZ}=OZ;var XZ={...LZ,...OZ,BlockStatement:wZ,DoWhileStatement:UZ,ExpressionStatement:PZ,ExportSpecifier:WZ,ExportNamespaceSpecifier:KZ,ExportDefaultDeclaration:RZ,ExportAllDeclaration:DZ,VariableDeclaration:vZ,IfStatement:AZ,ForStatement:NZ,ForInStatement:BZ,ForOfStatement:CZ,ReturnStatement:kZ,DebuggerStatement:_Z,LabeledStatement:$Z,Program:qZ,EmptyStatement:VZ,InterpreterDirective(e,{print:t}){t(`#!${e.node.value}\n`),t.newline()},SwitchStatement:MZ,...IZ,BreakStatement:jZ,ContinueStatement:JZ,WhileStatement:FZ},HZ={TemplateLiteral:(e,{write:t,traverse:n})=>{t("`");let r=0;const i=e.get("expressions");for(const s of e.node.quasis){t(s.value.raw);const e=i[r++];e&&(t("${"),n(e),t("}"))}t("`")}},zZ={},YZ={maybeDecorators:e=>e.node.decorators?e.get("decorators"):[]};const{maybeDecorators:GZ}=YZ,{maybeParens:QZ}=Vq,{maybeTypeAnnotation:ZZ}=vV;zZ.Identifier=QZ(ZZ((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of GZ(e))i(t),s(" ");n(o),r.write(u,"?")}));var e0={exports:{}};!function(e){const{types:t}=st,{isMemberExpression:n}=t;e.exports.Decorator=(e,{print:t,maybe:r})=>{const{expression:i}=e.node,s=n(i);t("@"),r.print(s,"("),t("__expression"),r.print(s,")")},e.exports.Decorator.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()}}(e0);var t0=e0.exports;t0.default;var n0={StringLiteral:(e,{write:t},n)=>{const{value:r,raw:i=`'${r}'`}=e.node;if(e.parentPath.isJSXAttribute())return void t(`"${r}"`);const s=i.slice(1,-1);t.quote(),t(r0(s,n)),t.quote()}};const r0=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?i0(r,{slash:"\\",quote:"'"}):t?i0(r,{slash:"\\",quote:'"'}):e},i0=(e,{slash:t,quote:n})=>{const r=[];for(const[i,s]of e.entries()){const a=e[i-1];s!==n||a===t?r.push(s):r.push(`${t}${s}`)}return r.join("")};var s0={DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()}},a0={VoidPattern:(e,{write:t})=>{t("void")}};const{TemplateLiteral:o0}=HZ,{Identifier:u0}=zZ,{Decorator:c0}=t0,{StringLiteral:l0}=n0,{DirectiveLiteral:p0}=s0,{VoidPattern:d0}=a0;var h0={Identifier:u0,Decorator:c0,DirectiveLiteral:p0,TemplateLiteral:o0,VoidPattern:d0,BigIntLiteral(e,{write:t}){t(e.node.raw)},NumericLiteral(e,{write:t}){const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},Directive(e,{print:t,maybe:n}){n.print.breakline(e.node.leadingComments?.length),t("__value")},BooleanLiteral(e,{write:t}){t(e.node.value)},StringLiteral:l0,RegExpLiteral(e,{print:t}){const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},NullLiteral(e,{write:t}){t("null")},MetaProperty(e,{write:t}){t("import.meta")},Super(e,{write:t}){t("super")}},f0={};f0.TSTypeLiteral=(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const t=e.get("members");return(1!==t.length||!e.parentPath.isTSTypeParameterInstantiation())&&(t.length&&t[0].node.typeAnnotation)}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")};var m0={};const{isLast:y0,isNext:g0,isNextParent:b0}=Zj,{markAfter:x0}=TU,{maybeDeclare:S0}=c$;m0.TSTypeAliasDeclaration={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:S0((e,{print:t,maybe:n,store:r})=>{const i=e.get("typeAnnotation").isTSConditionalType();t("type "),t("__id"),t("__typeParameters"),t.space(),t("="),n.print.space(!i),t("__typeAnnotation"),t(";");const s=r(y0(e)||y0(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!g0(e)&&!b0(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),x0(e)}};var T0={};const{types:E0}=st,{isTSConditionalType:P0}=E0;T0.TSMappedType=(e,{print:t,indent:n,maybe:r})=>{const{readonly:i,optional:s,nameType:a,typeAnnotation:o}=e.node;t("{"),t.newline(),n.inc(),n(),i&&(r.print("-"===i,"-"),t("readonly ")),t("["),t("__key"),t(" "),t("in"),t(" "),t("__constraint"),a&&(t(" as"),r.space(!P0(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")};var v0={TSConditionalType:(e,{print:t,indent:n})=>{n.inc(),t.breakline(),t("__checkType"),t(" extends "),t("__extendsType"),n.inc(),t.breakline(),t("? "),t("__trueType"),t.breakline(),t(": "),t("__falseType"),n.dec(),n.dec()}},A0={};const{exists:C0}=Zj;A0.TSTypeParameter=(e,{write:t,traverse:n})=>{const r=e.get("constraint");if(e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),!C0(r))return;t(" extends "),n(r);const i=e.get("default");C0(i)&&(t.space(),t("="),t.space(),n(i))};var w0={};const{printParams:k0}=bU,{isNext:I0}=Zj,{maybeDeclare:_0}=c$,N0=e=>e.parentPath.isExportNamedDeclaration();w0.TSDeclareFunction={beforeIf:e=>!N0(e),before:(e,{indent:t})=>{t()},print:_0((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),k0(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(I0(e)||I0(e.parentPath)||N0(e))&&t.newline()}};var L0={};const{printParams:O0}=bU;L0.TSDeclareMethod=(e,t,n)=>{const{print:r}=t,{accessibility:i,abstract:s,returnType:a}=e.node;i&&(r(i),r(" ")),s&&(r("abstract"),r(" ")),r("__key"),O0(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()};var D0={};const{isNext:F0}=Zj,{maybeDeclare:M0}=c$;D0.TSModuleDeclaration={print:M0((e,{print:t})=>{const{kind:n}=e.node;e.get("id").isStringLiteral()?t("module "):"namespace"===n&&t("namespace "),t("__id"),t.space(),t("__body")}),afterSatisfy:()=>[F0],after(e,{print:t}){t.newline(),t.newline()}},D0.TSModuleBlock=(e,{print:t,traverse:n,indent:r})=>{t("{"),t.breakline(),r.inc();for(const t of e.get("body"))n(t);r.dec(),t("}")};var B0={};const{types:R0}=st,{isNext:j0,isNextParent:U0}=Zj,{maybeDeclare:q0}=c$,{markAfter:J0}=TU,{isTSTypeAliasDeclaration:$0,isExportNamedDeclaration:V0,isTSModuleBlock:K0}=R0;B0.TSInterfaceDeclaration={print:q0((e,{print:t,maybe:n})=>{const{node:r}=e;if(n.indent(!V0(e.parentPath)),t("interface "),t("__id"),r.extends){t(" extends ");const r=e.get("extends"),i=r.length-1;for(const[e,s]of r.entries())t(s),n.print(e<i,", ")}t("__typeParameters"),t("__body")}),afterSatisfy:()=>[j0,U0],after(e,{print:t}){t.linebreak();const n=V0(e.parentPath);n&&(e=>K0(e.parentPath.parentPath))(e)&&J0(e),n||$0(e)||t.newline()}};var W0={};const{types:X0}=st,{maybeParens:H0}=Vq,{isVariableDeclarator:z0,isObjectExpression:Y0}=X0;W0.TSAsExpression=H0((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!z0(e.parentPath)&&Y0(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});var G0={};const{parseComments:Q0}=xU;G0.TSInterfaceBody=(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(r.length),a.inc(),Q0(e,t,n);for(const e of r)a(),i(e);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))};var Z0={TSIntersectionType:(e,{traverse:t,write:n})=>{const r=e.get("types"),i=r.length-1;for(const[e,s]of r.entries()){const r=e===i;t(s),r||(n.space(),n("&"),n.space())}}},e1={};const{maybePrintTypeAnnotation:t1}=vV,{hasTrailingComment:n1,isNext:r1}=Zj,{printKey:i1}=bJ;e1.TSPropertySignature=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),i1(e,t),n.print(i,"?"),t1(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),r1(e)&&n1(e)&&r.newline()};var s1={},a1={hasReturnType:e=>e.node.returnType,printReturnType:(e,{traverse:t})=>{t(e.get("returnType"))}};const{printParams:o1}=bU,{printReturnType:u1}=a1,{maybeParens:c1}=Vq;s1.TSFunctionType=c1((e,t,n)=>{const{print:r}=t;o1(e,t,n),r.space(),r("=>"),r.space(),u1(e,t)});var l1={};const{isNext:p1,isNextParent:d1,isLast:h1}=Zj,{markAfter:f1}=TU;l1.TSEnumDeclaration={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:n,indent:r}){t("enum "),t("__id"),t(" "),t("{"),r.inc(),t.newline();for(const r of e.get("body.members"))n(r),t(","),t.newline();r.dec(),r(),t("}"),h1(e)||(t.newline(),f1(e))},afterSatisfy:()=>[p1,d1],after(e,{print:t}){t.linebreak()}};var m1={TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))}},y1={};y1.TSTupleType=(e,{write:t,traverse:n,indent:r,maybe:i})=>{const s=e.get("elementTypes");t("["),r.inc();const a=function(e){let t;for(const n of e){if(t&&n.type!==t)return!1;({type:t}=n)}return!0}(s);i.write.newline(a&&s.length);const o=s.length-1;for(const[e,t]of s.entries())i.indent(a),n(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);r.dec(),i.indent(a&&s.length),t("]")};var g1={TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")}},b1={};const{printParams:x1}=bU,{printReturnType:S1}=a1;b1.TSConstructorType=(e,t,n)=>{const{print:r}=t;r("new"),r(" "),x1(e,t,n),r.space(),r("=>"),r.space(),S1(e,t)};var T1={};const{printReturnType:E1}=a1,{printParams:P1}=bU;T1.TSCallSignatureDeclaration=(e,t,n)=>{const{print:r}=t;P1(e,t,n),r(":"),r.space(),E1(e,t),r(";"),r.newline()};var v1={};const{printParams:A1}=bU,{hasReturnType:C1,printReturnType:w1}=a1;v1.TSConstructSignatureDeclaration=(e,t,n)=>{const{write:r}=t;r("new"),A1(e,t,n),C1(e)&&(r(":"),r.space(),w1(e,t)),r(";"),r.newline()};var k1={};const{printParams:I1}=bU,{printKind:_1}=TJ,{hasReturnType:N1,printReturnType:L1}=a1,{printKey:O1}=bJ;k1.TSMethodSignature=(e,t,n)=>{const{write:r}=t;_1(e,t),O1(e,t),I1(e,t,n),N1(e)&&(r(":"),r.space(),L1(e,t)),r(";"),r.newline()};var D1={};const{maybeParens:F1}=Vq;D1.TSUnionType=F1({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:n})=>{const r=e.get("types"),{length:i}=r;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=n?function(e,{traverse:t,write:n}){const r=e.length-1;for(const[i,s]of e.entries())t(s),i<r&&(n.space(),n("|"),n.space())}(r,t):function(e,{traverse:t,write:n,indent:r}){r.inc();for(const r of e)n.breakline(),n("|"),n.space(),t(r);r.dec()}(r,t)}});var M1={};const{createImportExpression:B1}=Oz;M1.TSImportType=(e,t,n)=>{B1(e,t,n,{source:"argument"})};var R1={};const{isNext:j1}=Zj;R1.TSExportAssignment={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[j1],after:(e,{print:t})=>{t.newline()}};var U1={TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")}},q1={};const{maybeParens:J1}=Vq;q1.TSInferType=J1((e,{print:t})=>{t("infer "),t("__typeParameter")});var $1={exports:{}};!function(e){const{hasLeadingComment:t}=Zj;e.exports.TSParameterProperty=(e,{print:n,maybe:r,indent:i})=>{const{decorators:s,readonly:a,accessibility:o}=e.node,u=s?.length>1;if(r.print.breakline(u),s){for(const t of e.get("decorators"))r.indent(u),n(t);r.print.breakline(u),t(e)?n(" "):i()}o&&(n(o),n.space()),a&&(n("readonly"),n.space()),n("__parameter"),t(e)&&!e.node.decorators&&n.breakline()},e.exports.TSParameterProperty.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{indent:i,print:s}=t;return e.node.decorators?(r(),void s.breakline()):e.parentPath.isClassMethod()?(i.inc(),s.breakline(),r(),s.breakline(),void i.dec()):void 0}}($1);var V1=$1.exports;V1.default;var K1={};const{maybeParens:W1}=Vq;K1.TSTypeQuery=W1((e,{print:t})=>{t("typeof "),t("__exprName")});var X1={TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")}};const{isNext:H1}=Zj,{TSTypeLiteral:z1}=f0,{TSTypeAliasDeclaration:Y1}=m0,{TSMappedType:G1}=T0,{TSConditionalType:Q1}=v0,{TSTypeParameter:Z1}=A0,{TSDeclareFunction:e2}=w0,{TSDeclareMethod:t2}=L0,{TSModuleDeclaration:n2,TSModuleBlock:r2}=D0,{TSInterfaceDeclaration:i2}=B0,{TSAsExpression:s2}=W0,{TSInterfaceBody:a2}=G0,{TSIntersectionType:o2}=Z0,{TSPropertySignature:u2}=e1,{TSFunctionType:c2}=s1,{printParams:l2}=bU,{TSEnumDeclaration:p2}=l1,{TSEnumMember:d2}=m1,{TSTupleType:h2}=y1,{TSNamedTupleMember:f2}=g1,{TSConstructorType:m2}=b1,{TSCallSignatureDeclaration:y2}=T1,{TSConstructSignatureDeclaration:g2}=v1,{TSMethodSignature:b2}=k1,{TSUnionType:x2}=D1,{maybePrintTypeAnnotation:S2}=vV,{TSImportType:T2}=M1,{TSExportAssignment:E2}=R1,{TSTypeReference:P2}=U1,{TSInferType:v2}=q1,{TSParameterProperty:A2}=V1,{TSTypeQuery:C2}=K1,{TSParenthesizedType:w2}=X1;var k2={TSAsExpression:s2,TSExportAssignment:E2,TSTypeLiteral:z1,TSTypeAliasDeclaration:Y1,TSTypeParameter:Z1,TSMappedType:G1,TSConditionalType:Q1,TSDeclareFunction:e2,TSModuleDeclaration:n2,TSModuleBlock:r2,TSIntersectionType:o2,TSImportType:T2,TSUnionType:x2,TSTypeQuery:C2,TSBigIntKeyword(e,{write:t}){t("bigint")},TSNullKeyword(e,{write:t}){t("null")},TSSymbolKeyword(e,{write:t}){t("symbol")},TSNeverKeyword(e,{write:t}){t("never")},TSUnknownKeyword(e,{write:t}){t("unknown")},TSObjectKeyword(e,{write:t}){t("object")},TSLiteralType(e,{print:t}){t("__literal")},TSTupleType:h2,TSInferType:v2,TSRestType(e,{print:t}){t("..."),t("__typeAnnotation")},TSTypeParameterDeclaration(e,t,n){l2(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypeParameterInstantiation(e,t,n){l2(e,t,n,{braceOpen:"<",braceClose:">"})},TSArrayType(e,{print:t}){t("__elementType"),t("[]")},TSTypeReference:P2,TSTypeOperator(e,{write:t,print:n}){const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSInterfaceDeclaration:i2,TSInterfaceBody:a2,TSTypeAssertion(e,{print:t}){t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSUndefinedKeyword(e,{write:t}){t("undefined")},TSBooleanKeyword(e,{write:t}){t("boolean")},TSSatisfiesExpression(e,{print:t}){t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSNumberKeyword(e,{write:t}){t("number")},TSIndexedAccessType(e,{print:t}){t("__objectType"),t("["),t("__indexType"),t("]")},TSStringKeyword(e,{write:t}){t("string")},TSInstantiationExpression(e,{print:t}){t("__expression"),t("__typeArguments")},TSAnyKeyword(e,{write:t}){t("any")},TSVoidKeyword(e,{write:t}){t("void")},TSQualifiedName(e,{print:t}){t("__left"),t("."),t("__right")},TSTypeAnnotation(e,{print:t}){t("__typeAnnotation")},TSParameterProperty:A2,TSConstructSignatureDeclaration:g2,TSIndexSignature(e,t){const{print:n}=t;n("["),n("__parameters.0"),n("]"),S2(e,t),n(";"),n.newline()},TSClassImplements(e,{print:t}){t("__expression"),t("__typeArguments")},TSInterfaceHeritage(e,{print:t}){t("__expression"),t("__typeArguments")},TSParenthesizedType:w2,TSPropertySignature:u2,TSFunctionType:c2,TSTypePredicate(e,{print:t}){t("__parameterName"),t(" is "),t("__typeAnnotation")},TSNonNullExpression(e,{print:t}){t("__expression"),t("!")},TSEnumDeclaration:p2,TSEnumMember:d2,TSImportEqualsDeclaration(e,{print:t,maybe:n}){n.print(e.node.isExport,"export "),t("import "),t("__id"),t.space(),t("="),t.space(),t("__moduleReference"),t(";"),n.print.newline(H1(e))},TSExternalModuleReference(e,{print:t}){t("require("),t("__expression"),t(")")},TSDeclareMethod:t2,TSNamedTupleMember:f2,TSConstructorType:m2,TSMethodSignature:b2,TSCallSignatureDeclaration:y2,TSThisType(e,{print:t}){t("this")}},I2={};const{types:_2}=st,{isJSXElement:N2}=_2;I2.JSXElement={condition:function(e){return!!e.parentPath.isReturnStatement()||(!!e.parentPath.isParenthesizedExpression()||(!!e.node.extra?.parenthesized||(!!e.parentPath.isArrowFunctionExpression()||e.parentPath.isVariableDeclarator())))},before(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node,s=i?.length;r.write.space(!s&&(({parentPath:e})=>e.isArrowFunctionExpression())(e)),n.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:n,maybe:r}){const i=function(e){const t=e.node.openingElement.attributes.length;if(t>2)return!1;const n=e.parentPath.isArrowFunctionExpression(),r=e.parentPath.isJSXElement(),i=e.parentPath.parentPath.isCallExpression();return r||n&&i}(e);r.indent.inc(i),t("__openingElement"),e.get("children").map(n),t("__closingElement"),r.indent.dec(i)},after(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node;N2(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};var L2={};const{isCoupleLines:O2}=Zj;L2.JSXAttribute={condition:e=>O2(e.parentPath),before(e,{print:t,indent:n}){n.inc(),t.breakline()},print(e,{print:t,maybe:n}){const{value:r}=e.node;t("__name"),n.print(r,"="),t("__value")},after(e,{indent:t}){t.dec()}};var D2={};const{isCoupleLines:F2}=Zj;D2.JSXOpeningElement={print(e,{print:t,maybe:n}){n.indent((({parentPath:e})=>{const t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment()||t.isLogicalExpression())})(e)),t("<"),t("__name");const r=F2(e),i=!r,s=r&&e.parentPath.parentPath.isJSXElement();n.indent.inc(s);for(const r of e.get("attributes"))n.print.space(i),t(r);F2(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}};var M2={};M2.JSXFragment={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:n}){t("("),n.inc(),t.breakline()},print(e,{print:t,traverse:n}){t("__openingFragment"),e.get("children").map(n),t("__closingFragment")},after(e,{write:t,indent:n}){n.dec(),t.breakline(),t(")")}},M2.JSXOpeningFragment=(e,{write:t})=>{t("<>")},M2.JSXClosingFragment=(e,{write:t})=>{t("</>")};var B2={};const{isNext:R2}=Zj;B2.JSXText=(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=R2(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))};const{JSXElement:j2}=I2,{JSXAttribute:U2}=L2,{isCoupleLines:q2}=Zj,{JSXOpeningElement:J2}=D2,$2=M2,{JSXText:V2}=B2,{parseComments:K2}=xU;var W2={...$2,JSXElement:j2,JSXAttribute:U2,JSXOpeningElement:J2,JSXText:V2,JSXEmptyExpression(e,t,n){K2(e,t,n)},JSXExpressionContainer(e,{print:t}){t("{"),t("__expression"),t("}")},JSXIdentifier(e,{write:t}){t(e.node.name)},JSXMemberExpression(e,{print:t}){t("__object"),t("."),t("__property")},JSXSpreadAttribute(e,{print:t,maybe:n}){const r=q2(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXClosingElement(e,{print:t}){t("</"),t("__name"),t(">")}};var X2={...hY,...XZ,...h0,...k2,...W2};X2.default;var H2={};const z2=e=>()=>e,{keys:Y2}=Object;function G2(e,t,n){if(!n)return[`{{ ${e} }}`,t[e]];const r=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[r]||"";if(!r.includes("|"))return[e,i];const[s,a]=r.split("|"),o=n[a],u=t[s];return o?[e,o(u)]:[e,u]}const{satisfy:Q2}=Zj;const Z2=e=>{const t=e?.()||[];return Q2(t)},e3=(e,t,n)=>{!function(e,t){if(n=e,"string"!=typeof n)throw Error("template should be a string!");var n;if("object"!=typeof t)throw Error("values should be an object!")}(e,t);let r=e;const i=n?e.match(/{{(.*?)}}/g):Y2(t);for(const e of i){const[i,s]=G2(e,t,n),a=z2(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r},{types:t3}=st,n3=e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:Z2(n),beforeIf:Z2(r),...e}},{isProgram:r3,isFile:i3,isStatement:s3,expressionStatement:a3,program:o3,file:u3}=t3;H2.maybeThrow=(e,t,n)=>{if(e)throw Error(e3(n,{path:t,type:t.type}))};const c3=e=>s3(e)?e:a3(e);H2.maybeFile=e=>i3(e)?e:u3((e=>r3(e)?e:o3([c3(e)]))(e)),H2.maybeVisitor=(e,t,n,r)=>"function"==typeof e?e(t,n,r):function(e,t,n,r){const{print:i,split:s,condition:a,before:o=s,beforeIf:u=a,after:c=s,afterIf:l=a}=n3(e);u?.(t,n,r)&&o(t,n,r);i(t,n,r),l?.(t,n,r)&&c(t,n,r)}(e,t,n,r);var l3={},p3=t($),d3=function(e){return(e=e.replace(f3,function(e){return" "+(e.toLowerCase()||e)})).trim().split(h3).join("_")},h3=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,f3=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const m3=p3,y3=d3,{codeFrameColumns:g3}=st,{TYPES:b3}=Yj,{stringify:x3}=JSON,{LOG:S3,LOG_ALL:T3,LOG_TOKENS:E3,LOG_TERM:P3,LOG_DEBUG:v3}={};function A3(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}l3.createDebug=e=>t=>{v3&&e.push({type:b3.DEBUG,value:`/*__${y3(t)}*/`})},l3.createLog=({newline:e="\n",store:t=A3()}={})=>({type:n,value:r})=>{if(E3)console.log(g3(x3({type:n,value:r}),{},{highlightCode:!0}));else if(T3)console.log(g3(r,{},{highlightCode:!0}));else{if(S3){if(r===e)return void console.log(g3(t(),{},{highlightCode:!0}));t(r)}P3&&m3.stdout.write(r)}};var C3={},w3={};const k3=e=>"boolean"==typeof e,I3={arrow:!0,sequence:!0,assign:!1,new:!0},_3={arrow:!0,sequence:!0,assign:!0,new:!0},N3={arrow:!1,sequence:!1,assign:!1,new:!1};w3.parseRoundBraces=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...I3,...e}:k3(e)&&e?_3:k3(e)&&!e?N3:I3;var t},w3.ROUND_BRACES_DISABLED=N3,w3.ROUND_BRACES_ENABLED=_3,w3.ROUND_BRACES_DEFAULTS=I3;var L3={parseQuotes:({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1}};const{parseRoundBraces:O3}=w3,{parseQuotes:D3}=L3;C3.parseOverrides=(e={})=>{const{format:t,semantics:n,visitors:r}=e,i=F3(t);return{format:i,semantics:M3(i,n),visitors:r}};const F3=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),M3=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...D3(e),...t,roundBraces:O3(t)}),B3=zj,R3=st.traverse,{TYPES:j3}=Yj,U3=X2,{maybeFile:q3,maybeVisitor:J3,maybeThrow:$3}=H2,{createDebug:V3,createLog:K3}=l3,{maybeMarkAfter:W3}=TU,{parseLeadingComments:X3,parseTrailingComments:H3}=xU,{parseOverrides:z3}=C3,Y3=e=>e&&"object"==typeof e,{round:G3}=Math,{assign:Q3,freeze:Z3}=Object;function e4(e,t){let n="";for(++e;--e>0;)n+=t;return n}Hj.tokenize=(e,t)=>{const{visitors:n,format:r,semantics:i}=z3(t),s=[],a=(e=>{const t=K3();return n=>{t(n),e.push(n)}})(s),o=V3(s),u=e=>{a({type:j3.TOKEN,value:e})},c=()=>{a({type:j3.INDENT,value:e4(x,r.indent)})},l=()=>{a({type:j3.NEWLINE,value:r.newline})},p=e=>e&&l(),d=()=>{l(),c()},h=e=>e&&d(),f=()=>{c(),l()},m=e=>e&&f(),y=(e,t)=>e&&u(t),g=()=>{a({type:j3.SPACE,value:r.space})},b=e=>e&&g();let x=0;Q3(c,{inc:()=>++x,dec:()=>--x});const S=()=>{a({type:j3.QUOTE,value:r.quote})};Q3(u,{indent:c,newline:l,linebreak:f,breakline:d,space:g,splitter:()=>{a({type:j3.SPLITTER,value:r.splitter})},quote:S,endOfFile:()=>{a({type:j3.END_OF_FILE,value:r.endOfFile})}}),Q3(y,{newline:p,breakline:h,linebreak:m,space:b});const T={indent:e=>e&&c(),markAfter:W3,write:y,space:b};Q3(T.indent,{inc:e=>e&&c.inc(),dec:e=>e&&c.dec()});const E=Z3({indent:c,write:u,debug:o,traverse:v,maybe:T,quote:S,store:B3()}),P={...U3,...n};function v(e){const{type:t}=e,n=P[t];if(!e.node)return;const r=t4(e,{write:u,traverse:v});Q3(r,u,{space:g,round:G3});const s={...E,print:r},a=(e,t)=>e&&r(t);Q3(a,{newline:p,breakline:h,linebreak:m,space:b}),Q3(s.maybe,{print:a}),$3(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const c=x;X3(e,s,i,{currentTraverse:n}),J3(n,e,s,i),H3(e,s,i,{currentTraverse:n}),$3(x!==c,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),o(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,v):R3(q3(e),{Program(e){v(e),e.stop()}}),s};const t4=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=n4(e,r);return Y3(i)?t(i):n(i)},n4=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(Y3(t),t);var r4={},i4={cook:e=>{const t=[];for(const{value:n}of e)t.push(n);return t}};const{cook:s4}=i4;r4.printTokens=e=>s4(e).join("");var a4={},o4={},u4=new RegExp(/(^[ \t]*\n)/,"gm");const c4=function(e){return e.replace(u4,"")},l4=e=>e.slice(0,e.indexOf("(")),p4=e=>e.includes("(")?`${l4(e)}(`:`${e}(`,d4=e=>"\n"===e.at(-1)?e:`${e}\n`,h4="__putout_processor_json",f4="__putout_processor_yaml",m4="__putout_processor_filesystem",y4="__putout_processor_ignore",g4=`${h4}(__object)`,b4=`${f4}(__object)`,x4=`${m4}(__object)`,S4=`${y4}(__array)`,T4=[h4,f4,m4,y4];o4.__json=g4,o4.__yaml=b4,o4.__filesystem=x4,o4.__ignore=S4,o4.__json_name=h4,o4.__yaml_name=f4,o4.__filesystem_name=m4,o4.__ignore_name=y4,o4.toJS=(e,t=g4)=>`${p4(t)}${e});\n`,o4.fromJS=(e,t=g4)=>{e=d4(e);const n=l4(t);e=e.slice(e.indexOf(n));const r=p4(t),i=e.length-3,s=e.slice(r.length,i);return d4(c4(s))},o4.isJSON=e=>{for(const t of T4)if(!e.indexOf(t))return!0;return!1};const{types:E4}=st,{isJSON:P4}=o4,{isCallExpression:v4,isIdentifier:A4}=E4;a4.maybeJSON=(e,t)=>function(e){const{program:t}=e;if(!t)return!1;const{body:n}=e.program;if(!n.length)return!1;const{expression:r}=e.program.body[0];if(!v4(r))return!1;const{callee:i}=r;return!!A4(i)&&P4(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const{tokenize:C4}=Hj,{printTokens:w4}=r4,{maybeJSON:k4}=a4,{maybeVisitor:I4}=H2,_4=X2;Xj.print=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=k4(e,t),r=C4(e,n);return w4(r)},Xj.visitors=_4,Xj.maybeVisitor=I4;var N4={};function L4(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function O4(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}const{generate:D4}=st,F4=e=>{!function(e){if(t=e,"string"!=typeof t)throw Error("str should be a string!");var t}(e);const t=e.split("\n"),n=t.length-1;for(let e=0;e<n;e++){const n=t[e];e&&!L4(n)&&(t[e]=O4(t[e+1]))}return t.join("\n")},M4={alignSpaces:!0};N4.print=(e,t)=>{const{source:n,alignSpaces:r}={...M4,...t};let{code:i}=D4(e,{...n&&{experimental_preserveFormat:!0,retainLines:!0}},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?F4(i):i};const B4=Xj,R4=N4,{isArray:j4}=Array;var U4=(e,t={})=>{const[n="putout",r]=(i=t.printer,j4(i)?i:[i,{}]);var i;return"babel"===n?R4.print(e,{...t,...r}):B4.print(e,r)},q4={};const{types:J4}=st,{isFunctionExpression:$4,objectMethod:V4}=J4,{assign:K4}=Object;function W4(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{types:X4}=st,{classPrivateMethod:H4,classMethod:z4,privateName:Y4,identifier:G4}=X4,{assign:Q4}=Object;const Z4=({type:e})=>"PrivateIdentifier"===e;const{types:e5}=st,{identifier:t5}=e5;const{types:n5}=st,{directive:r5,directiveLiteral:i5}=n5;const{assign:s5}=Object;var a5={convertParenthesizedExpression:({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},o5={convertTSParenthesizedType:({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},u5={convertNodeComments:e=>{const{comments:t}=e;if(t){delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0;for(const n of t){const t=l5(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=c5(n),e[t].push(n)}}},convertProgramComments:e=>{for(const t of e)t.type=c5(t);return e}};const c5=({type:e})=>`Comment${e}`;function l5({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}const{convertProgramComments:p5}=u5;var d5={convertPropertyDefinition:e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=h5(e))}e.node.type="ClassProperty"},convertTSInterfaceHeritage:e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){const{object:e,property:n}=t;t.type="TSQualifiedName",t.left=e,t.right=n,delete t.object,delete t.property,t=e}},convertPrivateIdentifier:e=>{e.replaceWith(h5(e.node))},convertTSAbstractMethodDefinition:e=>{const{node:t}=e,{generator:n,async:r,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:n,async:r,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)}};const h5=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{traverse:f5,types:m5}=st,y5=e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&$4(i)&&(t.replaceWith(V4("method",n,i.params,i.body,e)),K4(t.node,{id:null,method:!0,generator:i.generator,loc:W4(n,i),async:i.async,type:"ObjectMethod"}))}},g5=e=>{const{node:t}=e,{key:n,kind:r,computed:i,loc:s}=t,{body:a,params:o,expression:u,generator:c}=t.value,l=function({kind:e,key:t,params:n,body:r,computed:i,nodeStatic:s}){if(Z4(t)){const s=function(e){return Y4(G4(e.name))}(t);return H4(e,s,n,r,i)}return z4(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),Q4(e.node,{loc:s,expression:u,generator:c})},b5=e=>{e.node.type="ClassPrivateProperty"},x5=({node:e})=>{e.name&&(e.id=t5(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)},S5=e=>{const{node:t}=e;if(!t.directives){t.directives=[];for(const n of e.get("body")){if("ExpressionStatement"!==n.type)continue;const e=n.node;if(!("directive"in e))continue;if(!e.directive)continue;const r=i5(e.directive),i=r5(r);t.directives.push(i),n.remove()}}},T5=e=>{const t=e.get("expression"),{expression:n}=e.node;if(t.isCallExpression()){const e=t.get("callee");n.type="OptionalCallExpression",e.isMemberExpression()&&(n.callee.type="OptionalMemberExpression")}else n.type="OptionalMemberExpression";e.replaceWith(n)},E5=e=>{const{attributes:t=[]}=e.node;e.node.attributes=t},P5=e=>{const{attributes:t=[]}=e.node;s5(e.node,{attributes:t})},{convertParenthesizedExpression:v5}=a5,{convertTSParenthesizedType:A5}=o5,{convertNodeComments:C5}=u5,w5=e=>{const{type:t,value:n}=e;"Literal"===t&&(null!==n?(e=>"string"==typeof e)(n)?e.type="StringLiteral":(e=>"number"==typeof e)(n)?e.type="NumericLiteral":(e=>"boolean"==typeof e)(n)?e.type="BooleanLiteral":e.regex&&function(e){e.type="RegExpLiteral";for(const t of Object.keys(e.regex))e[t]=e.regex[t];delete e.regex}(e):e.type="NullLiteral")},k5=e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:p5(t),tokens:n}},{convertTSInterfaceHeritage:I5,convertTSAbstractMethodDefinition:_5,convertPropertyDefinition:N5,convertPrivateIdentifier:L5}=d5,{isObjectExpression:O5,isExportDeclaration:D5}=m5,F5={convertParens:!0};function M5(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}q4.estreeToBabel=(e,t)=>{const n=k5(e),r={...F5,...t};return f5(n,{noScope:!0,ParenthesizedExpression:v5(r),TSParenthesizedType:A5(r),enter(e){const{node:t}=e,{type:n}=t;return n.endsWith("Literal")?(w5(t),M5(t)):"JSXText"===n?M5(t):"BlockStatement"===n||"Program"===n?S5(e):"Property"===n?function(e){e.type="ObjectProperty"}(t):"MethodDefinition"===n?g5(e):"FieldDefinition"===n?b5(e):"PrivateName"===n?x5(e):"ImportDeclaration"===n?E5(e):D5(e)?P5(e):"ChainExpression"===n?T5(e):"TSAbstractMethodDefinition"===n?_5(e):"TSInterfaceHeritage"===n?I5(e):"PropertyDefinition"===n?N5(e):"PrivateIdentifier"===n?L5(e):void 0},exit(e){const{node:t}=e;if(C5(t),O5(t))return y5(e.get("properties"))}}),n};var B5={},R5={exports:{}},j5=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}};var U5=j5;function q5(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function J5(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}R5.exports=U5(q5),R5.exports.strict=U5(J5),q5.proto=q5(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return q5(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return J5(this)},configurable:!0})});var $5=R5.exports;const V5=()=>{};var K5=t(Object.freeze({__proto__:null,default:V5}));var W5,X5,H5=Object.freeze({__proto__:null,default:function(e){return class extends(undefined){parseClassElement(e){const t=this._inClassMemberName;this._inClassMemberName=!0;const n=super.parseClassElement.apply(this,arguments);return this._inClassMemberName=t,n}parsePropertyName(e){const t=this.options.ecmaVersion>=8&&this._inClassMemberName&&this.type==this.privateNameToken&&!e.static;return this._inClassMemberName=!1,t?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}}}}),z5=t(H5);const Y5=$5(()=>{const{Parser:e}=K5,t=(X5||(X5=1,W5=function(e){return e.extend(K5,K5,z5)}),W5),n=K5.default;return e.extend(n(),t)});B5.parse=function(e){const t=Y5(),n={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},r=Array.from(t.tokenizer(e,n));return{...t.parse(e,n),tokens:r}};var G5={},Q5=["importMeta","importAttributes","deprecatedImportAssert","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],Z5={allowReturnOutsideFunction:!0,allowUndeclaredExports:!0,allowImportExportEverywhere:!0};const e8=$5,t8=Q5,n8=Z5,{assign:r8}=Object,i8=e=>!e.indexOf("// @flow"),s8=e8(()=>st);function a8({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}G5.parse=function(e,t){const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=i8(e),isRecovery:a,printer:o}=t,{parse:u}=s8(),c={sourceFileName:n,sourceType:"module",tokens:!0,...n8,errorRecovery:a,plugins:(l=[...t8,...a8({isTS:r,isFlow:s,isJSX:i})],l.filter(Boolean))};var l;"babel"===o&&r8(c,{createParenthesizedExpressions:!0});const p=u(e,c);return p.program.extra.__putout_printer=o,p};var o8={};const u8=$5(()=>K5);o8.parse=function(e){const{parse:t}=u8();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})};var c8={};const l8=$5(()=>K5);c8.parse=function(e){const{parse:t}=l8();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})};var p8={};const d8=$5(()=>K5);p8.parse=e=>{const{Tenko:t}=d8(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n};var h8={};const f8=$5(()=>K5);h8.parse=function(e){return f8().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})};var m8=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const y8=m8;const g8=B5,b8=G5,x8=o8,S8=c8,T8=p8,E8=h8,P8=(e,t,n,r)=>{const[i,...s]=r,[a,o]=y8(e,t,i);if(!a)return o;if(function(e,t){for(const n of t)if(e.message.includes(n))return!0;return!1}(a,n))throw a;for(const n of s){const[r,i]=y8(e,t,n);if(!r)return i}throw a},v8=["has already been declared"];function A8(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){return"babel"===t?b8.parse(e,{isTS:r,isJSX:i,isRecovery:s,printer:n}):"object"==typeof t?t.parse(e,{isJSX:i,isTS:r}):"espree"===t?x8.parse(e):"acorn"===t?g8.parse(e):"esprima"===t?S8.parse(e):"tenko"===t?T8.parse(e):"hermes"===t?E8.parse(e):function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(t).parse(e)}var C8={};const w8=m8;C8.tryThrowWithReason=(e,...t)=>{const[n,r]=w8(e,...t);if(n)throw n.reason="parse",n;return r};const{estreeToBabel:k8}=q4,I8=(e,t,{isTS:n,isJSX:r,printer:i})=>{const s={parser:t,printer:i,isTS:n,isJSX:r},a={...s,isJSX:!1},o={...s,isRecovery:!0};return P8(A8,e,v8,[s,a,o])},{tryThrowWithReason:_8}=C8,{assign:N8}=Object;var L8=(e,t)=>{!function(e){if(t=e,"string"!=typeof t)throw Error(`☝️ Looks like type of 'source' is not 'string', but '${typeof e}'`);var t}(e);const{parser:n,printer:r="putout",isTS:i,isJSX:s}=t||{},{parse:a}=O8({printer:r,parser:n,isTS:i,isJSX:s});return _8(a,e)};const O8=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&N8(s,{convertParens:!1});return k8(I8(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const{generate:D8}=st;var F8=(e,t,n)=>D8(e,{comments:!1,...t},n),M8={exports:{}};function B8(e,t){t||(t={});var n,r,i,s=t.vargs||function(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}(e),a=[],o=new Map,u=t.maxAge>0&&t.maxAge<1/0?function(e){return r=setTimeout(function(){n?o.delete(e):a.splice(e,1)},t.maxAge)}:0,c=t.equals?t.equals:0,l=t.maxArgs,p=t.serializer;return 1!==e.length||t.equals||s?i=c?function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&c(arguments[i],a[r][i]););if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&arguments[i]===a[r][i];);if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:(i=function(t){var n;return p&&(t=p(t)),o.get(t)||(!u||u(t),o.set(t,n=e.call(this,t)),n)},n=1),i.clear=function(){r&&clearTimeout(r),o.clear(),a=[]},i.keys=function(){return n?[...o.keys()]:a.slice()},i.values=function(){return n?[...o.values()]:a.map(e=>e.val)},i}var R8=t(Object.freeze({__proto__:null,default:B8,nanomemoize:B8}));!function(e){const{types:t,template:n}=st,{nanomemoize:r}=R8,i=Q5,s={...Z5,plugins:[...i,"typescript","jsx"]},{isExpressionStatement:a,isTSExternalModuleReference:o}=t,u=e=>a(e)||o(e)?e.expression:e;e.exports=r((e,t)=>{const r=n(e,{...s,...t});return(...e)=>{const t=r(...e);return u(t)}}),e.exports.ast=r((e,t)=>{const r=n.ast(e,{...s,...t});return u(r)}),e.exports.program=r((e,t)=>n.program(e,{...s,...t})),e.exports.program.ast=r((e,t)=>n.program.ast(e,{...s,...t})),e.exports.ast.fresh=(e,t)=>{const r=n.ast(e,{...s,...t});return u(r)},e.exports.extractExpression=u}(M8);var j8=M8.exports;j8.default;const U8=U4,q8=L8,J8=F8,$8=j8;Wj.print=U8,Wj.parse=q8,Wj.generate=J8,Wj.template=$8;var V8={mergeShebang:(e,t)=>e?`${e}\n${t}`:t,cutShebang:e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]}},K8={},W8={},X8={};function H8(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var z8=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Y8=function(e){return z8.exec(e).slice(1)};function G8(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=H8(a6(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function Q8(e){var t=Z8(e),n="/"===o6(e,-1);return(e=H8(a6(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Z8(e){return"/"===e.charAt(0)}function e6(){return Q8(a6(Array.prototype.slice.call(arguments,0),function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function t6(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=G8(e).substr(1),t=G8(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),s=Math.min(r.length,i.length),a=s,o=0;o<s;o++)if(r[o]!==i[o]){a=o;break}var u=[];for(o=a;o<r.length;o++)u.push("..");return(u=u.concat(i.slice(a))).join("/")}function n6(e){var t=Y8(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function r6(e,t){var n=Y8(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function i6(e){return Y8(e)[3]}var s6={extname:i6,basename:r6,dirname:n6,sep:"/",delimiter:":",relative:t6,join:e6,isAbsolute:Z8,normalize:Q8,resolve:G8};function a6(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o6="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)},u6=t(Object.freeze({__proto__:null,basename:r6,default:s6,delimiter:":",dirname:n6,extname:i6,isAbsolute:Z8,join:e6,normalize:Q8,relative:t6,resolve:G8,sep:"/"}));var c6={simpleImport:async e=>{const t=await import(e);return t.default||t}};const l6=p3,{join:p6}=u6,d6=$5,{nanomemoize:h6}=R8,f6=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}},{simpleImport:m6}=c6,{assign:y6}=Object;async function g6(e,t=m6){let n,r;for(const i of e){if([n,r]=await f6(t,i),!n)return r;if("ERR_UNSUPPORTED_DIR_IMPORT"===n.code){const e=require.resolve(i);if([n,r]=await f6(t,e),!n)return r}if("ERR_MODULE_NOT_FOUND"!==n.code)throw y6(n,{message:`${i}: ${n.message}`}),n}throw y6(n,{message:n.message.replace(/\simported.*/,"")}),n}X8.createAsyncLoader=e=>h6(async(t,n)=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await g6([require.resolve(e)],n)}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(x6),s=Array.from(new Set([...r,...i]));return await g6(s,n)});const b6=d6(()=>l6.env.PUTOUT_LOAD_DIR);function x6(e){const t=b6();if(!t)return[e];const n=p6(t,e);return[n,`${n}.js`]}var S6={},T6={};const E6=e=>"string"==typeof e,{isArray:P6}=Array,{entries:v6}=Object;T6.parsePluginNames=e=>{const t=[];for(const n of e)if(E6(n))t.push([n]);else{if(P6(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...v6(n))}return t};var A6={};const{isArray:C6}=Array,w6=e=>"boolean"==typeof e,k6=e=>"string"==typeof e,I6=e=>"object"==typeof e,{entries:_6}=Object,{stringify:N6}=JSON,L6=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),O6=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${N6(e)}`),D6=()=>Object.create(null),F6=(e,t)=>(function(e,t){if(w6(t))return!0;if(/^(on|off)$/.test(t))return!0;if(I6(t))return!0;throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})}(e,t),"on"===t||"off"!==t&&t);function M6(e,t){const[n]=t,r=F6(e,n);if(3===t.length){const[,n,i]=t;return{rule:e,state:r,plugin:null,msg:n,options:i}}const[,i=""]=t;return{rule:e,state:r,plugin:null,msg:"",options:i}}A6.parseRules=e=>{const t=[];!function(e){if(C6(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of _6(e)){if(k6(r)){t.push({rule:n,state:F6(n,r),plugin:null,msg:"",options:D6()});continue}if(w6(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:D6()});continue}if(!(C6(r)&&r.length)){if(I6(r))throw O6(r);throw L6(r)}t.push(M6(n,r))}return t};const B6=e=>e.split("/")[0];A6.enableNestedRules=e=>{const t={};for(const[n,r]of _6(e))n.includes("/")&&F6(n,r)&&(t[B6(n)]="on"),t[n]=r;return t};var R6={};R6.mergeRules=([e,t],n)=>{for(const r of n){if(r.rule!==e)continue;const{msg:n,options:i}=r;return{rule:e,plugin:t,msg:n,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}};var j6={};const U6=e=>e.includes("/")?e.split("/").shift():e,q6=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-","");j6.validateRules=({items:e,rules:t})=>{const n=Object.keys(t);for(const t of n){let n=!1,r=!1,i=!1;for(const[s,a={}]of e){const e=q6(s);if(n=e===t,r=e===U6(t),i=t.includes(e),n&&a.rules)throw Error(`Rule '${t}' cannot be applied to nested plugin '${s}'`);if(n||r||i)break}if(!n&&!r&&!i)throw Error(`No plugin found for a rule: '${t}'`)}};var J6={isEnabled:(e,t)=>{for(const{rule:n,state:r}of t)if(n===e)return r;for(const{rule:n,state:r}of t)if(n.includes("/")&&RegExp(`^${n}`).test(e))return r;for(const{rule:n,state:r}of t)if(RegExp(`^${n}/`).test(e))return r;return!0}},$6={getLoadedRules:e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t}};const{parseRules:V6}=A6,{mergeRules:K6}=R6,{validateRules:W6}=j6,{isEnabled:X6}=J6,{getLoadedRules:H6}=$6;var z6={parseRules:V6,mergeRules:K6,validateRules:W6,isEnabled:X6,getLoadedRules:H6},Y6={};Y6.check=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},Y6.checkRule=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)};const{parsePluginNames:G6}=T6,{validateRules:Q6}=z6,{check:Z6}=Y6;S6.validateRulesRelations=e=>{Z6(e);const{pluginNames:t=[],rules:n={}}=e,r=G6(t);Q6({rules:n,items:r})};var e9={},t9={};const{parsePluginNames:n9}=T6,{enableNestedRules:r9}=A6,{parseRules:i9,getLoadedRules:s9}=z6;t9.prepareRules=({rules:e,pluginNames:t})=>{const n=r9(e),r=i9(n),i=s9(r);return{items:n9(t),loadedRules:i,cookedRules:i9(e)}};const a9=["find","traverse","replace","include","exclude","rules","declare","scan"];var o9=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of a9)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},u9={};const{isEnabled:c9,mergeRules:l9}=z6,{isArray:p9}=Array,d9=e=>p9(e)?e:["on",e];function h9(e,t,n){if("on"===t)return!0;for(const{rule:t,state:r}of n)if(t.includes("/")&&RegExp(`^${t}`).test(e))return r;return!1}u9.filterEnabledPlugins=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!c9(r,t))continue;const[e,s]=d9(i);h9(r,e,t)&&n.push(l9([r,s],t))}return n};const{basename:f9}=u6,{isEnabled:m9}=z6,{prepareRules:y9}=t9,g9=o9,{filterEnabledPlugins:b9}=u9,{createAsyncLoader:x9}=X8,{check:S9,checkRule:T9}=Y6,E9=x9("plugin");e9.loadPluginsAsync=async e=>{S9(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=y9({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!m9(i,t))continue;T9(i);const[e]=P9(i),a=s||E9(e);r.push(A9(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];g9({plugin:n,rule:t});const{rules:r}=n;r?s.push(...v9(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return b9({plugins:a,cookedRules:s})};const P9=e=>[e,"putout"];function v9(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function A9(e){if(e.startsWith("import:")){return f9(e.replace("import:","")).replace("plugin-","")}return e}var C9,w9={},k9={},I9=t(Object.freeze({__proto__:null,default:{}}));function _9(){if(C9)return k9;C9=1;const e=p3,{createRequire:t}=I9,{join:n}=u6,r=m8,i=$5,{assign:s}=Object,a=e=>({name:t,namespace:n})=>{const[i,a]=function(e,t,n){if(n.startsWith("import:"))return l(n.replace("import:",""));let[r,i]=l(`@${e}/${t}-${n}`);r||([r,i]=l(`${e}-${t}-${n}`));r||([r,i]=l(n));return[r,i]}(n,e,t);if(!i)throw Error(`${o=e,`${o[0].toUpperCase()}${o.slice(1)}`} "${n}-${e}-${t}" could not be found!`);var o;const[u,c]=r(a,i);if("ERR_REQUIRE_ESM"===u?.code&&s(u,{message:`☝️ Looks like '${t}' is ESM, use 'await putoutAsync()' instead`,name:t}),u)throw u;return c};k9.loadPlugin=a("plugin"),k9.loadProcessor=a("processor");const{PUTOUT_YARN_PNP:o="putout"}={},u=i(()=>t(require.resolve(o))),c=i(()=>t(require.resolve("putout")));function l(e,{again:t=!1}={}){let i;const s=u(),a=c();return[,i]=r(a.resolve,e),i?[i,a]:([,i]=r(s.resolve,e),i||t?[i,s]:l(function(e){const t=p();return t?n(t,e):e}(e),{again:!0}))}const p=i(()=>e.env.PUTOUT_LOAD_DIR);return k9}const N9=o9,{prepareRules:L9}=t9,{isEnabled:O9}=z6,{filterEnabledPlugins:D9}=u9,{check:F9,checkRule:M9}=Y6,{isArray:B9}=Array;w9.loadPlugins=e=>{F9(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=L9({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!O9(r,t))continue;M9(r);const e=j9(r),[s,a]=R9(r),o=U9(i)||J9({name:s,namespace:a});N9({plugin:o,rule:r});const{rules:u}=o;u?n.push(...q9(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return D9({plugins:a,cookedRules:s})};const R9=e=>[e,"putout"],j9=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),U9=e=>B9(e)?e[1]:e;function q9(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function J9({name:e,namespace:t}){const{loadPlugin:n}=_9();return n({name:e,namespace:t})}var $9={};const V9=e=>"string"==typeof e,{isArray:K9}=Array,W9=e=>"on"===e,X9=e=>"off"===e;const{createAsyncLoader:H9}=X8,z9=e=>{const t=[];for(const n of e)if(V9(n))t.push([n]);else if(K9(n)){const[e,r]=n;if(X9(r))continue;if(W9(r)){t.push([e]);continue}t.push([e,r]);continue}return t},{check:Y9}=Y6;$9.loadProcessorsAsync=async(e,t)=>{Y9(e);const{processors:n=[]}=e,r=z9(n),i=H9("processor"),s=[];for(const[e,n]of r)n?s.push(n):s.push(i(e,t));return await Promise.all(s)};const{createAsyncLoader:G9}=X8,{validateRulesRelations:Q9}=S6,{loadPluginsAsync:Z9}=e9,{loadPlugins:e7}=w9,{loadProcessorsAsync:t7}=$9;W8.loadPlugins=e7,W8.loadPluginsAsync=Z9,W8.loadProcessorsAsync=t7,W8.createAsyncLoader=G9,W8.validateRulesRelations=Q9;var n7,r7,i7={},s7={exports:{}};function a7(){if(r7)return n7;r7=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,s=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return n7=function(o,u){u=u||{};var c=typeof o;if("string"===c&&o.length>0)return function(a){if((a=String(a)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!o)return;var u=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(o);if("number"===c&&isFinite(o))return u.long?function(i){var s=Math.abs(i);if(s>=r)return a(i,s,r,"day");if(s>=n)return a(i,s,n,"hour");if(s>=t)return a(i,s,t,"minute");if(s>=e)return a(i,s,e,"second");return i+" ms"}(o):function(i){var s=Math.abs(i);if(s>=r)return Math.round(i/r)+"d";if(s>=n)return Math.round(i/n)+"h";if(s>=t)return Math.round(i/t)+"m";if(s>=e)return Math.round(i/e)+"s";return i+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},n7}var o7=function(e){function t(e){let r,i,s,a=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];r=s.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=a7(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"env"in J&&(e=J.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o7(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(s7,s7.exports);var u7=s7.exports;u7.default;var c7={};const l7=u7;c7.createDebug=t=>{const n=l7(t);return new Proxy(n,{apply:(n,r,i)=>(e.__putout_debug?.(t,...i),n(...i)),get:(t,n)=>!!e.__putout_debug?.[n]||t[n]})};const p7=m8,{createDebug:d7}=c7,{stringify:h7}=JSON,f7=d7("putout:runner:fix");var m7=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(f7.enabled&&f7(`${i}:`,s,(e=>e.path||e)(n).toString()),function(e,t){if(n=t,"function"!=typeof n)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${h7(t)}'. More on writing 🐊Putout Plugins: https://git.io/JqcMn`);var n}("fix",t),((e,{path:t,pathOptions:n,position:r,options:i})=>{const[s]=p7(e,...(({path:e,pathOptions:t,options:n})=>t?[e,t,{options:n}]:[e,{options:n}])({path:t,pathOptions:n,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||r,s.reason="fix",s})(t,{path:n,pathOptions:r,position:s,options:a}))};var y7={};const g7=e=>e.path||e[0]||e;y7.getPath=g7,y7.getPosition=(e,t)=>{const n=g7(e);!function(e){if(!e.node)throw Error("☝️ Looks like 'push' called without a 'path' argument.")}(n);const{node:r}=n,{loc:i}=r;if(!i)return{line:0,column:0};const{line:s,column:a}=r.loc.start;return{line:t?s+1:s,column:a}};const{isArray:b7}=Array;var x7=e=>e?(e=>b7(e)?e:[e])(e):[],S7={};const{stringify:T7}=JSON;S7.validate=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${T7(t)}'. More on using Includer: https://git.io/JqcMn`)};var E7={};const{values:P7,entries:v7,assign:A7}=Object,C7=e=>Array.from(e),w7=e=>e.node,k7=e=>C7(e).filter(w7),I7=e=>e;function _7({set:e,get:t}){return(n={})=>{const r=(...r)=>{if(!r.length)return t(n);const[i,s]=r;if(1===r.length)return n[i];e(n,i,s)};return r.clear=()=>{n={}},r.entries=()=>v7(n),r}}function N7(e=I7){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(C7(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(C7(n))},n}}E7.listStore=N7(),E7.pathStore=N7(k7),E7.mapStore=_7({get:e=>P7(e),set(e,t,n){e[t]=n}}),E7.upStore=_7({get:e=>P7(e),set(e,t,n){e[t]=e[t]||{},A7(e[t],n)}}),E7.upListStore=_7({get:e=>P7(e).map(k7),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});const{traverse:L7}=st,{generate:O7}=Wj,D7=m7,{getPosition:F7}=y7,M7=x7,{validate:B7}=S7,{listStore:R7,mapStore:j7,upStore:U7,upListStore:q7,pathStore:J7}=E7,{merge:$7}=L7.visitors,{assign:V7}=Object,K7=(e,t,n)=>{const r=[];return t[e]&&(B7(e,t[e]),r.push(...M7(t[e]()))),n[e]&&r.push(...M7(n[e])),r};var W7=(e,{fix:t,shebang:n,template:r})=>{const i=[],s={};for(const{rule:a,plugin:o,msg:u,options:c}of e){const{push:e,pull:l,store:p,upstore:d,listStore:h,pathStore:f,uplist:m}=X7(o,{fix:t,rule:a,shebang:n,msg:u,options:c});s[a]=l;const y=o.traverse({push:e,store:p,listStore:h,pathStore:f,upstore:d,uplist:m,generate:O7,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);V7(c,{include:K7("include",o,c),exclude:K7("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:$7(i)}};function X7(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=j7(),o=R7(),u=U7(),c=R7(),l=q7(),p=J7();return{push:(a,o)=>{const u=F7(a,r),l=i||e.report(a,o);c({message:l,position:u}),D7(t,e.fix,{path:a,pathOptions:o,rule:n,position:u,options:s})},pull:()=>(a.clear(),o.clear(),u.clear(),l.clear(),p.clear(),c.clear()),store:a,listStore:o,upstore:u,uplist:l,pathStore:p}}const{traverse:H7,types:z7}=st,{generate:Y7}=Wj,{merge:G7}=H7.visitors;var Q7=function({rule:e,find:t,ast:n,options:r,template:i,traverse:s=H7}){const a=[],o=t(n,{traverse:Z7({rule:e,options:r,template:i,traverse:s}),generate:Y7,types:z7,push:e=>{a.push(e)},options:r});return[...a,...o||[]]};const Z7=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=G7(n({rule:e,visitor:s,options:t}));return r(i,a)};var eee={exports:{}},tee={},nee={};const ree=e=>void 0===e;const iee=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),see=e=>/__proto__|prototype/.test(e);var aee={};const oee=/\.body\.0\.expression$/,uee=/\.body\.0\.key$/,cee=/\.body\.0$/;aee.prepareBodyWay=e=>e.replace(oee,"").replace(uee,"").replace(cee,"");var lee={};const{template:pee}=Wj,{types:dee}=st,{isBlockStatement:hee,isTSModuleBlock:fee,isBooleanLiteral:mee,isIdentifier:yee,isLiteral:gee,isTemplateElement:bee,isFunction:xee,isImportDefaultSpecifier:See,isExportSpecifier:Tee,isRegExpLiteral:Eee,isJSXText:Pee,isJSXIdentifier:vee,isJSXAttribute:Aee,isTSTypeReference:Cee,isTSTypeParameterDeclaration:wee}=dee,kee="__object",Iee="__array",_ee="__args",Nee="__type_params",Lee="__imports",Oee="__exports",Dee="__body",Fee="__jsx_children",Mee="__jsx_attributes",Bee="__",Ree="__identifier",jee="__bool",Uee=/^__[a-z]$/,qee=/__args__[a-z]$/,Jee=/^__identifier__[a-z]$/,$ee=/^__bool__[a-z]$/,Vee=[kee,Iee,_ee,Nee,jee,Fee,Mee,Lee,Oee,Dee,Bee,Ree,Uee,qee,Jee,$ee];function Kee(e,t){return"string"==typeof t?e===t:t.test(e)}lee.isTemplate=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),lee.is=(e,t=Vee)=>{for(const n of t)if(Kee(e,n))return!0;return!1},lee.isNameStr=e=>Uee.test(e),lee.isImportsStr=e=>e===Lee,lee.isExportsStr=e=>e===Oee,lee.isArgsStr=e=>e===_ee||qee.test(e),lee.isTypeParamsStr=e=>e===Nee,lee.isJSXChildrenStr=e=>e===Fee,lee.isJSXAttributesStr=e=>e===Mee,lee.isObjectStr=e=>e===kee,lee.isArrayStr=e=>e===Iee,lee.isAnyStr=e=>e===Bee,lee.isBodyStr=e=>e===Dee;const Wee=e=>yee(e,{name:Dee}),Xee=(e,t)=>e.type===t.type,{isArray:Hee}=Array;lee.isId=(e,t)=>!!yee(t,{name:Ree})&&yee(e),lee.isBool=(e,t)=>!!yee(t,{name:jee})&&mee(e),lee.isEqualType=Xee,lee.isStr=e=>"string"==typeof e,lee.isAny=e=>!!yee(e,{name:Bee})||Pee(e,{value:Bee}),lee.isAnyLiteral=(e,t)=>!!gee(t,{value:Bee})&&Xee(e,t),lee.isArgs=e=>{const t=Hee(e)?e[0]:e;return yee(t,{name:_ee})};lee.isEqualTypeParams=(e,t)=>!!e&&(!!(e=>{if(!wee(e))return!1;const{params:t}=e,{name:n}=t[0];return yee(n,{name:Nee})})(t)&&Xee(e,t)),lee.isLinkedArgs=e=>{const t=Hee(e)?e[0]:e;return yee(t)&&qee.test(t.name)},lee.isJSXChildren=e=>{const t=Hee(e)?e[0]:e;return Pee(t,{value:Fee})},lee.isJSXAttributes=e=>{const t=Hee(e)?e[0]:e;return!!Aee(t)&&vee(t.name,{name:Mee})},lee.isLinkedId=(e,t)=>!(!yee(t)||!Jee.test(t.name))&&yee(e),lee.isLinkedBool=(e,t)=>!(!yee(t)||!$ee.test(t.name))&&mee(e),lee.isLinkedRegExp=(e,t)=>!(!Eee(t)||!Uee.test(t.pattern))&&Eee(e),lee.isPath=e=>Boolean(e.node),lee.isArray=Hee,lee.isObject=e=>!!e&&(!Hee(e)&&"object"==typeof e),lee.isArrays=(e,t)=>!(!Hee(e)||!Hee(t))&&e.length===t.length,lee.isImports=e=>{const t=Hee(e)?e[0]:e;return!!See(t)&&yee(t.local,{name:Lee})},lee.isExports=e=>{const t=Hee(e)?e[0]:e;return!!Tee(t)&&yee(t.local,{name:Oee})};const zee="ObjectPattern|ObjectExpression",Yee="ArrayPattern|ArrayExpression";lee.isEqualAnyArray=(e,t)=>{if(!yee(t,{name:Iee}))return!1;const{type:n}=e;return Yee.includes(n)},lee.isEqualAnyObject=(e,t)=>{if(!yee(t,{name:kee}))return!1;const{type:n}=e;return zee.includes(n)},lee.isEqualBody=(e,t)=>!!e&&(!!Wee(t)&&"BlockStatement"===e.type),lee.isEqualFunctionDeclarationBody=(e,t)=>{if(!e)return!1;if(!(Wee(n=t)||(hee(n)||fee(n))&&Wee(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},lee.isEqualNop=(e,t)=>{if(!yee(t,{name:"__nop"}))return!1;if(!xee(e))return!1;const{body:n}=e;return!!hee(n)&&!n.body.length},lee.isLinkedNode=e=>!(!yee(e)||!Uee.test(e.name))||(!(!gee(e)||!Uee.test(e.value))||(!(!Pee(e)||!Uee.test(e.value))||(!(!vee(e)||!Uee.test(e.name))||(!(!bee(e)||!Uee.test(e.value.raw))||Cee(e)&&Uee.test(e.typeName.name))))),lee.parseTemplate=(e,{program:t}={})=>{const n=(t?pee.program.ast:pee.ast)(e)||pee.ast.fresh(e);if(e===kee)return[n,zee];if(e===Iee)return[n,Yee];const{type:r}=n;return[n,r]},lee.isInsideTypeReference=e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference(),lee.isInsideTypeParameter=e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter();const Gee=(e,t,n)=>{if(n||(n=t,t="."),function(e,t){if(n=e,"string"!=typeof n)throw Error("selector should be string!");var n;if("object"!=typeof t)throw Error("obj should be object!")}(e,n),!e)return n;if(r=n,!Object.keys(r).length)return;var r;const i=e.split(t).filter(Boolean);for(const[e,r]of i.entries()){const s=i.slice(e).join(t);if(!ree(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n},Qee=(e,t,n,r)=>{r||(r=n||{},n=".");const i=r;!function(e){if(t=e,"string"!=typeof t)throw Error("selector should be string!");var t}(e);const s=e.split(n).filter(Boolean),a=s.length-1;for(const[e,n]of s.entries())if(!see(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=iee(t)?[]:{}}r=r[n]}return i},{traverse:Zee,types:ete}=st,{template:tte}=Wj,{replaceWith:nte,extract:rte}=MK,{prepareBodyWay:ite}=aee,{is:ste,isArgsStr:ate,isTypeParamsStr:ote,isJSXChildrenStr:ute,isJSXAttributesStr:cte,isImportsStr:lte,isExportsStr:pte,isInsideTypeReference:dte,isInsideTypeParameter:hte,isBodyStr:fte}=lee,{isIdentifier:mte,isStatement:yte,isJSXElement:gte,isJSXAttribute:bte,isStringLiteral:xte,isTemplateLiteral:Ste,templateElement:Tte}=ete,{extractExpression:Ete}=tte,{entries:Pte}=Object,{stringify:vte}=JSON;function Ate(e){if(mte(e)&&ste(e.name))return{[e.name]:[""]};const t={};return Zee(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(dte(e))return;if(hte(e))return;const{node:n}=e;if(bte(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=rte(n);ste(i)&&(e.find(({key:e,listKey:t})=>{"number"!=typeof e?r.unshift(e):r.unshift(`${t}.${e}`)}),t[i]=t[i]||[],t[i].push(r.join(".")))}}),t}function Cte({waysFrom:e,node:t}){const n={};for(const[r,i]of Pte(e))for(let e of i)lte(r)||pte(r)?e=e.replace(/\.0.local$/,""):(ate(r)||ute(r)||cte(r)||ote(r))&&(e=e.replace(/\.0$/,"")),gte(t)||(e=e.replace(/\.expression$/,"")),fte(r)&&(e=ite(e)),n[r]=n[r]||Ete(Gee(e,t));return n}nee.getTemplateValues=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${vte(t)}'`);e=(e=>e.node||e)(e);return Cte({node:e,waysFrom:Ate(tte.ast(t))})},nee.findVarsWays=Ate,nee.getValues=Cte;const wte=e=>e.replace("`","\\`");nee.setValues=function({waysTo:e,values:t,path:n}){const r=Ete(n.node);for(const[i,s]of Pte(e))for(let e of s){if(!e){nte(n,t[i]);continue}if((lte(i)||pte(i))&&(e=e.replace(/\.0.local$/,"")),(ate(i)||ute(i)||cte(i))&&(e=e.replace(/\.0$/,"")),yte(t[i])&&(e=e.replace(/\.expression$/,"")),xte(t[i])&&Ste(r)){const{value:n}=t[i],s=Tte({raw:wte(n)});Qee(e,s,r);continue}fte(i)&&(e=ite(e));const{extra:s}=Gee(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}Qee(e,t[i],r)}};var kte={},Ite={exports:{}};const _te=u7("putout:compare"),{isArray:Nte}=Array;function Lte(e){if(Nte(e)&&e[0]){const[{type:t,name:n,value:r}]=e;return`${t}: ["${n||r}"]`}if((e=>e&&"object"==typeof e)(e)){const{type:t,name:n,value:r}=e;return`${t}: "${n||r}"`}return`${typeof e}: "${e}"`}Ite.exports=(e,t)=>{if(!_te.enabled)return;const n=Lte(e),r=Lte(t);return _te(`${n} = ${r}`)},Ite.exports._parseValue=Lte;var Ote=Ite.exports,Dte={exports:{}};const{types:Fte}=st,{isIdentifier:Mte,isLiteral:Bte,isStringLiteral:Rte,isTemplateElement:jte,isTSTypeReference:Ute,isJSXText:qte,isJSXIdentifier:Jte}=Fte,$te=e=>{e=e[0]||e;const{name:t,value:n}=e;if(Mte(e)||Jte(e))return t;if(Bte(e))return n;if(jte(e))return e.value.cooked;if(Ute(e))return e.typeName.name;if(qte(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)};Dte.exports=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=$te(t);return!(Rte(t)&&!Rte(n))&&(r[i]?(Mte(r[i])&&Ute(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))},Dte.exports._parseName=$te;var Vte=Dte.exports,Kte={},Wte={};const{is:Xte}=lee;Wte.comparePrimitives=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||Xte(t)||t!==e);var n};const{types:Hte}=st,{isObject:zte,isArrays:Yte}=lee,{comparePrimitives:Gte}=Wte,{isIdentifier:Qte}=Hte;Kte.comparePlain=(e,t,{add:n})=>!e&&e===t||!!e&&(!!Gte(e,t)||(!(!Qte(e)||e.name!==t.name)||(zte(t)&&!Array.isArray(t)||!!Yte(e,t))&&n(e,t,{plain:!0})));const{types:Zte}=st,ene=Ote,tne=Vte,{isId:nne,isBool:rne,isObject:ine,isArrays:sne,isAny:ane,isAnyLiteral:one,isArgs:une,isEqualTypeParams:cne,isJSXChildren:lne,isJSXAttributes:pne,isLinkedArgs:dne,isLinkedId:hne,isLinkedBool:fne,isImports:mne,isExports:yne,isEqualAnyObject:gne,isEqualAnyArray:bne,isEqualBody:xne,isEqualFunctionDeclarationBody:Sne,isEqualNop:Tne,isLinkedNode:Ene,isLinkedRegExp:Pne}=lee,{comparePlain:vne}=Kte,{comparePrimitives:Ane}=Wte,{isClassBody:Cne,isBlock:wne,isJSXText:kne,isTemplateElement:Ine}=Zte,_ne=e=>(t,n)=>e(n),Nne=[Ane,function(e,t){if(!Ine(e)||!Ine(t))return!1;const n=e.value.raw===t.value.raw,r=e.value.cooked===t.value.cooked,i=e.tail===t.tail;return n&&r&&i},function(e,t){return!(!kne(e)||!kne(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},_ne(Cne),_ne(e=>wne(e)&&!e.body.length),_ne(ane),nne,rne,bne,gne,xne,Sne,Tne,cne,Pne,function(e,t,{add:n,templateStore:r}){const i=e&&(Ene(t)||dne(t)||hne(e,t)||fne(e,t));return!!i&&tne({add:n,value:t,nodeValue:e,templateStore:r})},one,_ne(mne),_ne(yne),_ne(une),_ne(lne),_ne(pne),function(e,t,{add:n}){const r=ine(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=sne(e,t);r&&n(e,t);return r}];kte.runComparators=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=Nne.length;if(ene(t,e),i)return vne(e,t,{add:n});for(;++s<a;){if((0,Nne[s])(e,t,{add:n,templateStore:r}))return!0}return!1};var Lne={};const{types:One}=st,{isEqualBody:Dne,isEqualAnyObject:Fne,isEqualAnyArray:Mne,isLinkedNode:Bne,isLinkedId:Rne,isLinkedRegExp:jne,isEqualNop:Une}=lee,{isIdentifier:qne,isStringLiteral:Jne}=One,$ne=[Fne,Mne,Une,function(e,t){return qne(e)&&Bne(t)},function(e,t){return Jne(e)&&Bne(t)},Rne,jne,Dne];Lne.runTopLevelComparators=(e,t)=>{let n=-1;const r=$ne.length;for(;++n<r;){if((0,$ne[n])(e,t))return!0}return!1};const{template:Vne}=Wj,{findVarsWays:Kne,getValues:Wne,setValues:Xne,getTemplateValues:Hne}=nee,{runComparators:zne}=kte,{runTopLevelComparators:Yne}=Lne,{isStr:Gne,isId:Qne,isPath:Zne,isEqualType:ere,isTemplate:tre,parseTemplate:nre}=lee,{extractExpression:rre}=Vne,{keys:ire}=Object,{isArray:sre}=Array,are=()=>{},ore=e=>sre(e)&&!e.length,ure=e=>sre(e)?e:[e];function cre(e){return Gne(e)?Vne.ast(e):e.node?e.node:e}function lre(e,t,n={},r=are){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=rre(cre(e)),a=rre(cre(t));if(r(s,a),Qne(s,a))return!0;if(s.type===t)return!0;if(Yne(s,a))return!0;if(i&&Zne(e)&&!ere(s,a)){const{type:t}=a,n=((e,t)=>{const n=e.findParent((e=>t=>t.type===e)(t));return n?n.node:null})(e,t);return dre(n,a)}return dre(s,a)}tee.compare=lre,tee.parseTemplate=nre,tee.isTemplate=tre,tee.findVarsWays=Kne,tee.getValues=Wne,tee.setValues=Xne,tee.getTemplateValues=Hne,tee.compareAny=(e,t,n)=>{t=ure(t);for(const r of t)if(lre(e,r,n))return!0;return!1},tee.compareAll=(e,t,n)=>{t=ure(t);for(const r of t)if(!lre(e,r,n))return!1;return!0};const pre=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function dre(e,t){let n=[e,t];const r=[n],i={},s=(e=>(t,n,r={})=>e.push([t,n,r]))(r);for(;n=r.pop();){const[e,t,{plain:r}={}]=n;if(!e||ore(e)&&!ore(t))return!1;for(const n of ire(t)){if(pre.includes(n))continue;const a=rre(e[n]),o=rre(t[n]);if(!zne(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const hre=m8,{compareAny:fre,compareAll:mre,parseTemplate:yre,isTemplate:gre}=tee,bre=x7,{createDebug:xre}=c7,Sre=xre("putout:runner:template"),{entries:Tre}=Object,Ere=e=>"function"==typeof e,Pre=(e,t)=>{Sre.enabled&&Sre(e,t.toString())},{stringify:vre}=JSON;eee.exports._log=Pre;const Are=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!Ere(n)||!r.length)return{[t]:n};const i=Cre({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};eee.exports=({rule:e,visitor:t,options:n})=>{const r=[],i=bre(n.exclude),s=bre(n.include);for(const[n,a]of Tre(t)){if(!n)continue;if(!gre(n)){r.push(Are({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=yre(n),u=Cre({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r},eee.exports._log=Pre;const Cre=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(Pre(e,i),n.length&&fre(i,n))return;if(t.length&&!mre(i,t))return;if(!Ere(r))throw Error(`☝️ Looks like provided visitor is not a function: ${vre(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=hre(r,i);if(s)throw s.rule=e,s};var wre,kre=eee.exports,Ire={};function _re(){}function Nre(){Nre.init.call(this)}function Lre(e){return void 0===e._maxListeners?Nre.defaultMaxListeners:e._maxListeners}function Ore(e,t,n,r){var i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=new _re,e._eventsCount=0),a){if("function"==typeof a?a=s[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=Lre(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=s[t]=n,++e._eventsCount;return e}function Dre(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function Fre(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Mre(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}_re.prototype=Object.create(null),Nre.EventEmitter=Nre,Nre.usingDomains=!1,Nre.prototype.domain=void 0,Nre.prototype._events=void 0,Nre.prototype._maxListeners=void 0,Nre.defaultMaxListeners=10,Nre.init=function(){this.domain=null,Nre.usingDomains&&(!wre.active||this instanceof wre.Domain||(this.domain=wre.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new _re,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Nre.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Nre.prototype.getMaxListeners=function(){return Lre(this)},Nre.prototype.emit=function(e){var t,n,r,i,s,a,o,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(o=this.domain,u){if(t=arguments[1],!o){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(n=a[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=Mre(e,r),s=0;s<r;++s)i[s].call(n)}(n,l,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,s=Mre(e,i),a=0;a<i;++a)s[a].call(n,r)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var s=e.length,a=Mre(e,s),o=0;o<s;++o)a[o].call(n,r,i)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,s){if(t)e.call(n,r,i,s);else for(var a=e.length,o=Mre(e,a),u=0;u<a;++u)o[u].call(n,r,i,s)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),s=1;s<r;s++)i[s-1]=arguments[s];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,s=Mre(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},Nre.prototype.addListener=function(e,t){return Ore(this,e,t,!1)},Nre.prototype.on=Nre.prototype.addListener,Nre.prototype.prependListener=function(e,t){return Ore(this,e,t,!0)},Nre.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Dre(this,e,t)),this},Nre.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Dre(this,e,t)),this},Nre.prototype.removeListener=function(e,t){var n,r,i,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new _re:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=n[s].listener,i=s;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new _re,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,a||t)}return this},Nre.prototype.off=function(e,t){return this.removeListener(e,t)},Nre.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new _re,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new _re:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),s=0;s<i.length;++s)"removeListener"!==(r=i[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new _re,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Nre.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},Nre.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Fre.call(e,t)},Nre.prototype.listenerCount=Fre,Nre.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Bre=t(Object.freeze({__proto__:null,EventEmitter:Nre,default:Nre}));const{EventEmitter:Rre}=Bre;Ire.createProgress=()=>{let e=0,t=0;const n=new Rre;return n.reset=()=>{t=0,e=0},n.file=({i:e,n:t,percent:r,rule:i})=>{n.emit("file",{i:e,n:t,rule:i,percent:r})},n.inc=()=>{++e},n.start=r=>{++t,n.emit("start",{pluginsIndex:t,pluginsCount:e,rule:r})},n.push=r=>{n.emit("push",{pluginsIndex:t,pluginsCount:e,rule:r})},n.end=r=>{n.emit("end",{rule:r,pluginsIndex:t,pluginsCount:e})},n};var jre={};const Ure=m8;jre.tryThrowWithReason=(e,...t)=>{const[n,r]=Ure(e,...t);if(n)throw n.reason??="traverse",n;return r};var qre={};const Jre=u7("putout:runner:include"),$re=x7,{validate:Vre}=S7,Kre=()=>[],Wre=()=>!0;qre.include=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=Kre,filter:u=Wre}=t;Vre("include",a),Vre("report",s);const c=Xre(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...$re(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}};const Xre=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{Jre(e),t(i,{options:r})&&n(i)})({rule:n,filter:t,push:r,options:i});for(const t of e)s[t]=a;return s};var Hre={},zre={exports:{}};const Yre=e=>(...t)=>(...n)=>e(...t,...n);const{entries:Gre}=Object,{isArray:Qre}=Array;function Zre(e,t){const{node:n}=e;let r,i;for([r,i]of Gre(t)){if(Qre(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const eie=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?Yre(e)(...t):Yre(e)),{types:tie}=st,nie=e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(Zre(t,t.parent));return n.join(".")},{isProgram:rie}=tie,iie="__putout_runner_replace";function sie(e,t,n){const r=`${e} -> ${t}`;return{watermark:r,highWatermark:`${nie(n)}: ${r}`}}function aie({path:e,program:t}){e.node&&(e.node[iie]=e.node[iie]||new Set),t.node[iie]=t.node[iie]||new Set}function oie({path:e,program:t,watermark:n,highWatermark:r}){aie({path:e,program:t}),e?.node[iie].add(n),t.node[iie].add(r)}function uie({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[iie].has(n)||e.findParent((e=>t=>t.node?.[iie]?.has(e))(n))&&!s)||t.node[iie].has(r)}zre.exports=(e,t,n)=>{const{watermark:r,highWatermark:i}=sie(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(rie),path:n};return{init:eie(aie,s),has:eie(uie,s),add:eie(oie,s)}},zre.exports.REPLACE_WATERMARK=iie,zre.exports.create=sie,zre.exports.init=aie,zre.exports.add=oie,zre.exports.has=uie;var cie=zre.exports;const{template:lie,print:pie}=Wj,{remove:die,replaceWith:hie}=MK,{types:fie}=st,{compare:mie,findVarsWays:yie,getValues:gie,setValues:bie}=tee,xie=x7,Sie=cie,{createDebug:Tie}=c7,Eie=Tie("putout:runner:replace"),Pie=(e,t)=>{Eie.enabled&&Eie(`${e} -> ${t}\n`)},{isExpression:vie,isStatement:Aie,isExpressionStatement:Cie}=fie,wie={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:kie,entries:Iie}=Object,{stringify:_ie}=JSON,Nie=()=>[],Lie=()=>({});Hre.replace=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||Lie)({options:r}),{report:s,exclude:a=Nie,replace:o,filter:u=Mie(i)}=t,c=o({options:r}),l=Fie(c,i),p=(d=c,()=>kie(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...xie(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},Hre.clearWatermark=e=>{delete e.program[Sie.REPLACE_WATERMARK]};const Oie=e=>"function"==typeof e,Die=(e,t,n)=>{const r=lie.ast(e),i=Sie(e,t,n);if(i.init(),i.has())return;const s=yie(r),a=((e,{node:t})=>e.type!==t.type&&Cie(t)?t.expression:t)(r,n),o=gie({waysFrom:s,node:a}),u=function(e,t,n){const r=Oie(e)?e(t,n):e;if(!r)return null;if(i=r,"object"==typeof i&&r.type)return r.__putout_replace_cooked=!0,r;var i;if(!(e=>"string"==typeof e)(r))throw Error(`☝️ Looks like you passed 'replace' value with a wrong type. Allowed: 'string', 'node' and 'path'. Received: '${typeof r}' with value '${r}'.`);return lie.ast.fresh(r)}(t,o,n);if(!u)return Pie(e,"''"),die(n);!function(e,t,n){if(!vie(e))return;if(!Aie(t)||Cie(t))return;if(Cie(n)||Cie(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${pie(e,wie)} -> ${pie(t,wie)}'. For code: '${n}'`)}(r,u,n);const c=yie(u),l=hie(n,u);u.__putout_replace_cooked||(Rie(c,s),bie({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),Pie(e,l)},Fie=(e,t)=>n=>{for(const[r,i]of Iie(e)){const e=lie.ast(r);if(mie(n,e,{findUp:!1})){const s=t[r];s&&!Bie(n,e,s)||Die(r,i,n)}}},Mie=e=>t=>{const n=Iie(e);for(const[e,r]of n){const n=lie.ast(e);if(mie(t.node,n,{findUp:!1}))return Bie(t,n,r)}return!0};function Bie(e,t,n){const r=yie(t),{node:i}=e,s=gie({waysFrom:r,node:i});return function(e){if(!Oie(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const Rie=(e,t)=>{for(const n of kie(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${_ie(kie(t))} -> ${_ie(kie(e))}`)};var jie={},Uie={},qie={};const Jie="__putout_declare_undefined_variables",$ie=e=>e.scope.getProgramParent().path,Vie=(e,t)=>t[e]=t[e]||{};qie.checkDeclarationForESLint=(e,t)=>{const n=$ie(t);return Vie(Jie,n),n[Jie][e]},qie.addDeclarationForESLint=(e,t)=>{const n=$ie(t);Vie(Jie,n),n[Jie][e]=!0},qie.setModuleType=(e,t)=>{const n=$ie(t);return Vie(Jie,n),n[Jie].__putout_module_type=e,e},qie.getModuleType=e=>{const t=$ie(e);return Vie(Jie,t),t[Jie].__putout_module_type};const{template:Kie}=Wj,{isESM:Wie,insertAfter:Xie}=MK,{compare:Hie}=tee,{types:zie}=st,{addDeclarationForESLint:Yie,checkDeclarationForESLint:Gie,getModuleType:Qie,setModuleType:Zie}=qie,{isImportDeclaration:ese,isVariableDeclaration:tse}=zie,{keys:nse}=Object,rse=e=>e.node.source.value.includes("."),ise=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"];Uie.declare=e=>({report:sse,include:ase,fix:use(e),filter:ose(e)});const sse=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},ase=()=>["ReferencedIdentifier"],ose=e=>(t,{options:n})=>{if(ise.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=nse(s),{scope:o,node:u}=t,{name:c}=u;if(!a.includes(c))return!1;if(r.includes(c))return!1;if(o.hasBinding(c)||Gie(c,t))return!1;const l=function(e,t){if(t)return Zie(t,e);const n=Qie(e);return n||Zie((e=>Wie(e)?"esm":"commonjs")(e),e)}(t,i);return cse(l,s[c])},use=e=>(t,{options:n})=>{const r=Qie(t),i={...e,...n.declarations},{name:s}=t.node,a=cse(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=pse(t),r=(e=>e.filter(tse).pop())(t);return tse(e)&&n||(ese(e)||lse(e))&&n?n:tse(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(tse(e)&&ese(n)||lse(n))return Xie(n,e);if(tse(e))return lse(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&rse(n)?n.insertBefore(e):Xie(n,e):r.insertBefore(e)}(Kie.ast.fresh(a),o),Yie(s,t)},cse=(e,t)=>"string"==typeof t?t:t[e];const lse=e=>Hie(e,"const __a = require(__b)");const pse=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(rse(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{declare:dse}=Uie,{stringify:hse}=JSON;jie.declare=({rule:e,plugin:t,msg:n,options:r})=>(function(e){if(t=e,"function"!=typeof t)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${hse(e)}'.`);var t}(t.declare),{rule:e,plugin:dse(t.declare()),msg:n,options:r});var fse={},mse={},yse={};const gse=zj(),{assign:bse}=Object,xse=()=>{},Sse={renameFile:xse,removeFile:xse,createDirectory:xse,readFileContent:(Tse="",()=>Tse),writeFileContent:xse,copyFile:xse};var Tse;const Ese=bse({},Sse);function Pse(e){bse(Ese,e)}function vse(){bse(Ese,Sse)}yse.renameFile=(e,t)=>{Ese.renameFile(e,t)},yse.removeFile=e=>{Ese.removeFile(e)},yse.copyFile=(e,t)=>{Ese.copyFile(e,t)},yse.createDirectory=e=>{Ese.createDirectory(e)},yse.readFileContent=e=>Ese.readFileContent(e),yse.writeFileContent=(e,t)=>{Ese.writeFileContent(e,t)},yse.init=Pse,yse.pause=()=>{gse(Ese),vse()},yse.start=()=>{Pse(gse())},yse.deinit=vse;var Ase={};const{types:Cse}=st,{arrayExpression:wse,stringLiteral:kse,objectProperty:Ise}=Cse;function _se(e,t){const n=kse(e);return Ise(n,t)}Ase.createTypeProperty=e=>_se("type",kse(e)),Ase.createFilesProperty=e=>_se("files",wse(e)),Ase.createFilenameProperty=e=>_se("filename",kse(e)),Ase.createContentProperty=e=>_se("content",kse(e));const{join:Nse,basename:Lse,dirname:Ose}=u6,{types:Dse}=st,Fse=m8,{setLiteralValue:Mse,getProperty:Bse,traverseProperties:Rse}=MK,jse=yse,{createTypeProperty:Use,createFilesProperty:qse,createFilenameProperty:Jse,createContentProperty:$se}=Ase,{isProgram:Vse,objectExpression:Kse}=Dse,Wse=e=>"string"==typeof e,{isArray:Xse}=Array,Hse=e=>{const[t,n]=Fse(btoa,e);return t?btoa(escape(e)):n},zse=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function Yse(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return Vse(t)?null:t}function Gse({name:e,base:t,exclude:n}){for(const r of n)if(e===r||zse(r).test(t))return!0;return!1}function Qse(e,t,n=[]){!function(e){if(!Wse(e)&&!Xse(e))throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'findFile(filePath: Path|FilePath, name: string | string[]): FilePath'")}(t);const r=[],i=(e=>Xse(e)?e:[e])(t);for(const t of Rse(e,"filename")){const{value:e}=t.node.value,s=Lse(e);for(const a of i)if(e===a||zse(a).test(s)){const e=t.parentPath;if(Gse({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function Zse(e){return Bse(e,"filename").get("value")}function eae(e){const{value:t}=Zse(e).node;return t}function tae(e){return Bse(e,"type").node.value.value}function nae(e){const t=Bse(e,"content");return[Boolean(t),t?.node.value.value]}function rae(e){const t=eae(e);Yse(e)&&(e.remove(),jse.removeFile(t))}function iae(e,t){const n=tae(e);if("directory"!==n){const t=eae(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=Bse(e,"files"),i=Nse(eae(e),Lse(t)),[s]=Qse(r,i);s&&s.remove()}mse.getParentDirectory=Yse,mse.findFile=Qse,mse.getFileType=tae,mse.getFileContent=nae,mse.getFilename=eae,mse.renameFile=(e,t)=>{const n=eae(e),r=Zse(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);Mse(r,a),jse.renameFile(n,a)},mse.removeFile=rae,mse.removeEmptyDirectory=e=>{if("directory"!==tae(e))return;let t=e;for(;!aae(e).length;){if("/"===eae(e))break;if(t=Yse(e),!t)break;rae(e),e=t}},mse.moveFile=(e,t)=>{if(e===t)return;const n=eae(t),r=eae(e),i=sae(t),s=Bse(e,"filename"),a=r.split("/").pop(),o=Nse(n,a);iae(t,o),Mse(s.get("value"),o),i.node.value.elements.push(e.node),e.remove(),jse.renameFile(r,o)},mse.copyFile=(e,t)=>{const n=eae(t),r=eae(e),i=r.split("/").pop(),s=Nse(n,i),[a,o]=nae(e),u=Kse([Use("file"),Jse(s),a&&$se(o)].filter(Boolean));iae(t,s);sae(t).node.value.elements.push(u),jse.copyFile(r,s)},mse.createFile=(e,t,n)=>{iae(e,t);const r=sae(e),i=eae(e),s=Nse(i,t),a=[Use("file"),Jse(s),n&&$se(n)].filter(Boolean);r.node.value.elements.push(Kse(a));const o=r.get("value.elements").at(-1);return Wse(n)&&uae(o,n),o};const sae=e=>Bse(e,"files");function aae(e){return"directory"!==tae(e)?[]:sae(e).get("value.elements")}function oae(e,t){const n=sae(e),r=eae(e),i=Nse(r,t),s=Use("directory"),a=qse([]),o=Jse(i);return n.node.value.elements.push(Kse([s,o,a])),jse.createDirectory(i),n.get("value.elements").at(-1)}function uae(e,t){if("directory"===tae(e))return;const n=eae(e);jse.writeFileContent(n,t);const r=Bse(e,"content");if(r)return void Mse(r.node.value,Hse(t));const i=$se(Hse(t));e.node.properties.push(i)}function cae(e){let t=Yse(e);if(!t)return e;let n=t;for(;t=Yse(t);)n=t;return n}mse.readDirectory=aae,mse.createDirectory=oae,mse.readFileContent=e=>{if("directory"===tae(e))return"";const[t,n]=nae(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=Fse(atob,e);return t?e:unescape(n)})(n);const r=eae(e),i=jse.readFileContent(r),s=$se(Hse(i));return e.node.properties.push(s),i},mse.writeFileContent=uae,mse.createNestedDirectory=(e,t)=>{const n=cae(e);if(Ose(t)===eae(e))return oae(e,Lse(t));let r=t;const i=eae(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=Ose(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=Nse(i,t);s.shift();break}let o=Qse(n,s).at(-1)||n;const u=eae(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=oae(o,Lse(s[l]))}return o},mse.getRootDirectory=cae,mse.init=jse.init,mse.deinit=jse.deinit,mse.pause=jse.pause,mse.start=jse.start;var lae={};const{basename:pae,dirname:dae}=u6,{types:hae}=st,{createDirectory:fae,getFileType:mae,getFilename:yae,findFile:gae}=mse,{__filesystem_name:bae}=o4,{replaceWith:xae,getProperty:Sae}=MK,{objectExpression:Tae,arrayExpression:Eae,stringLiteral:Pae,isArrayExpression:vae,isStringLiteral:Aae,isTemplateLiteral:Cae,objectProperty:wae}=hae;lae.report=()=>"Convert Simple Filesystem to Filesystem";const kae=e=>e.endsWith("/"),Iae=e=>{const t=kae(e)?"directory":"file";return wae(Pae("type"),Pae(t))},_ae=e=>wae(Pae("filename"),Pae(e)),Nae=e=>kae(e)?wae(Pae("files"),Eae([])):null,Lae=e=>wae(Pae("content"),Pae(e));function Oae(e,t){if(Aae(e))return e.value;if(Cae(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}lae.fix=e=>{const t=Eae([]);for(const n of e.get("elements")){if(vae(n)){const[e,r]=n.node.elements,{value:i}=e,s=Oae(r,n);t.elements.push(Tae([Iae(i),_ae(i),Lae(s)]));continue}if(Aae(n)){const{value:e}=n.node;t.elements.push(Tae([Iae(e),_ae(Dae(e)),Nae(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=gae(t,"*");for(const e of r){const t=yae(e);Fae(t);const r=mae(e),i=dae(t),s=pae(t),[a]=gae(n,i);if(!a||"directory"!==mae(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){fae(a,s);continue}Sae(a,"files").node.value.elements.push(e.node)}xae(e,n)}(e,t)},lae.traverse=({push:e})=>({[`${bae}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const Dae=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function Fae(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var Mae={};const{types:Bae}=st,{replaceWith:Rae,getProperty:jae}=MK,{__filesystem_name:Uae}=o4,{findFile:qae,getFilename:Jae,getFileType:$ae}=mse,{stringLiteral:Vae,arrayExpression:Kae}=Bae,{isArray:Wae}=Array,Xae=e=>"/"===e?e:`${e}/`;Mae.report=()=>"Convert Filesystem to Simple Filesystem",Mae.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=Jae(e),r=$ae(e),i=jae(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(Xae(t))}const r=[];for(const e of n)Wae(e)?r.push(Kae([Vae(e[0]),Vae(e[1])])):r.push(Vae(e));Rae(e,Kae(r))},Mae.traverse=({push:e})=>({[`${Uae}(__object)`]:t=>{const n=t.get("arguments.0"),r=qae(n,"*");e(n,{files:r})}});const Hae=zj,{compare:zae}=tee,{__filesystem_name:Yae}=o4,{findFile:Gae,pause:Qae,start:Zae}=mse,eoe=u7("putout:runner:scanner"),toe=lae,noe=Mae;fse.scan=({rule:e,plugin:t,msg:n,options:r},{progress:i})=>{const{scan:s,report:a,fix:o}=t;i.inc();return{rule:e,msg:n,options:r,plugin:{report:a,fix:o,traverse:ioe({scan:s,rule:e,progress:i})}}};const roe=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},ioe=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${Yae}(__)`](s){eoe(t),n.start(t);const a=s.get("arguments.0"),o=Hae(!1),u=(({rule:e,progress:t})=>({i:n,n:r})=>{++n;const i=`${Math.round(n/r*100)}%`;t.file({i:n,n:r,percent:i,rule:e})})({rule:t,progress:n}),c=(e=>function*(...t){const n=Gae(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);aoe(toe,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:roe({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),aoe(noe,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),soe=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function aoe(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:soe({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${Yae}(__object)`],n=e[`${Yae}(__array)`];return t?[t,`${Yae}(__object)`]:[n,`${Yae}(__array)`]}(a);zae(t,u)&&(Qae(),o(t),Zae())}const{traverse:ooe}=st,uoe=$5,coe=u7("putout:runner:find"),loe=m7,poe=W7,doe=Q7,hoe=kre,{createProgress:foe}=Ire,{tryThrowWithReason:moe}=jre,{include:yoe}=qre,{replace:goe,clearWatermark:boe}=Hre,{declare:xoe}=jie,{scan:Soe}=fse,{getPath:Toe,getPosition:Eoe}=y7,Poe=e=>e?.removed;i7.runPlugins=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=foe(),traverse:a=ooe})=>{let o=[];const u=uoe(poe),{pluginsFind:c,pluginsTraverse:l}=function(e,{progress:t}){const n=[],r=[];for(const i of e){const{plugin:e}=i;e.find?n.push(i):e.traverse?r.push(i):e.replace?r.push(yoe(goe(i))):e.declare?r.push(yoe(xoe(i))):e.include?r.push(yoe(i)):e.scan&&r.push(Soe(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=voe({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:hoe,traverse:a}),s.reset(),!n||!o.length)return o;boe(e)}return o},i7.getPosition=Eoe;const voe=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...Coe({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...Aoe({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function Aoe({ast:e,fix:t,shebang:n,template:r,pluginsTraverse:i,merge:s,traverse:a}){const{entries:o,visitor:u}=s(i,{fix:t,shebang:n,template:r});moe(a,e,u);const c=[];for(const[e,t]of o){const n=t();for(const{message:t,position:r}of n)c.push({rule:e,message:t,position:r})}return c}function Coe({ast:e,fix:t,shebang:n,template:r,pluginsFind:i,traverse:s}){const a=[];for(const{rule:o,plugin:u,msg:c,options:l}of i){coe(`find: ${o}`);const{report:i,find:p}=u,d=moe(doe,{rule:o,find:p,ast:e,options:l,fix:t,shebang:n,template:r,traverse:s});if(d.length)for(const e of d){const r=c||i(e),{parentPath:s}=Toe(e),p=Eoe(e,n);a.push({rule:o,message:r,position:p}),Poe(s)||loe(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const woe=W8,koe=i7,{createProgress:Ioe}=Ire;K8.defaultOptions=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=3,loadPlugins:s=woe.loadPlugins,loadPluginsAsync:a=woe.loadPluginsAsync,runPlugins:o=koe.runPlugins,progress:u=Ioe()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}};var _oe={};const Noe=e=>e.replace(/\s\(\d:\d+\)/,""),Loe=m8,{validateRulesRelations:Ooe}=W8,{defaultOptions:Doe}=K8,{cutShebang:Foe}=V8,Moe=(e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:Noe(e.message),position:{line:n,column:r}}]},Boe=e=>e?Moe(e,"loader"):[];_oe.transform=(e,t,n)=>{n=Doe(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPlugins:u,runPlugins:c,progress:l}=n,[,p]=Foe(t),[d]=Loe(Ooe,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:u({pluginNames:r,cache:i,rules:s}),progress:l});return[...Boe(d),...h]},_oe.transformAsync=async(e,t,n)=>{n=Doe(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPluginsAsync:u,runPlugins:c,progress:l}=n,[,p]=Foe(t),[d]=Loe(Ooe,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:await u({pluginNames:r,cache:i,rules:s}),progress:l});return[...Boe(d),...h]};var Roe={};const{transform:joe,transformAsync:Uoe}=_oe;Roe.findPlaces=(e,t,n)=>joe(e,t,{...n,fix:!1}),Roe.findPlacesAsync=async(e,t,n)=>await Uoe(e,t,{...n,fix:!1});const{isArray:qoe}=Array,Joe=()=>{};var $oe=()=>{let e=0,t=0;return async(n,r)=>{const{name:i,rule:s,source:a,places:o,index:u=0,count:c=1,trace:l=Joe,formatterOptions:p={}}=r;if(!qoe(o))throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof o}'`);return o.length&&++e,t+=o.length,l("progress",{rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t}),await n({rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t})}},Voe={};const{types:Koe,traverse:Woe}=st,{compare:Xoe,parseTemplate:Hoe,isTemplate:zoe,getTemplateValues:Yoe}=tee,{isFile:Goe,isProgram:Qoe}=Koe,{merge:Zoe}=Woe.visitors,{entries:eue}=Object;Voe.traverse=rue;const tue=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!Goe(e)&&!Qoe(e);return n=>{Woe(e,{noScope:t,...n})}},nue=([e])=>e;function rue(e,t){const n=tue(e),r=[],i=eue(t);if(!i.map(nue).find(zoe))return n(t);for(const[e,t]of i){if(!zoe(e)){r.push({[e]:t});continue}const[n,i]=Hoe(e),s=iue({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(Zoe(r))}const iue=({fn:e,node:t,tmpl:n})=>r=>{Xoe(r,t)&&e(r,Yoe(r.node,n))};Voe.contains=(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return rue(e,i),n};var sue={};const{setLiteralValue:aue}=MK,{types:oue}=st,{isJSXElement:uue,jsxAttribute:cue,jsxIdentifier:lue,stringLiteral:pue}=oue,due=e=>e.node||e;function hue(e,t){let n=null;const r=due(e),{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}function fue(e,t){const n=hue(e,t);return n?n.value.value:""}function mue(e,t,n){const r=hue(e,t);if(!r)return yue(e,t,n);r.value.value.includes(n)||aue(r.value,`${r.value.value} ${n}`)}function yue(e,t,n){const r=due(e);let i=hue(r,t);i||(i=cue(lue(t),pue(n)),r.openingElement.attributes.push(i))}function gue(e,t,n){if(!e)return;const r=hue(e.node||e,t),{value:i}=r.value;if(!i.includes(n))return;const s=i.replace(RegExp(`\\s?${n}`),"").trim();aue(r.value,s)}function bue(e){return fue(e,"className")}sue.hasTagName=(e,t)=>{const n=due(e);return!!uue(e)&&n.openingElement.name.name===t},sue.getAttributePath=(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},sue.getAttributeNode=hue,sue.getAttributeValue=fue,sue.addAttributeValue=mue,sue.addAttribute=yue,sue.removeAttributeValue=gue,sue.setAttributeValue=(e,t,n)=>{const r=hue(e,t);if(!r)return yue(e,t,n);aue(r.value,n)},sue.addClassName=(e,t)=>{mue(e,"className",t)},sue.getClassName=bue,sue.removeClassName=(e,t)=>{gue(e,"className",t)},sue.containsClassName=(e,t)=>bue(e).includes(t),sue.hasDataName=(e,t="")=>fue(e,"data-name")===t,sue.hasAttributeValue=(e,t,n="")=>fue(e,t)===n;var xue={_hasUFlag:!1,shouldRun:function(e){var t=e.flags.includes("s");return!!t&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var n="\\uFFFF",r="￿";this._hasUFlag&&(n="\\u{10FFFF}",r="􏿿"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:n,kind:"unicode",symbol:r}}]})}}},Sue={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},Tue={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}},Eue={dotAll:xue,namedCapturingGroups:Sue,xFlag:Tue};function Pue(e){return e?vue[e.type](e):""}var vue={RegExp:function(e){return"/"+Pue(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(Pue).join("")},Disjunction:function(e){return Pue(e.left)+"|"+Pue(e.right)},Group:function(e){var t=Pue(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw new TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=Pue(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=Pue(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(Pue).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return Pue(e.from)+"-"+Pue(e.to)},Repetition:function(e){return""+Pue(e.expression)+Pue(e.quantifier)},Quantifier:function(e){var t=void 0,n=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw new TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+n},Char:function(e){var t=e.value;switch(e.kind){case"simple":return e.escaped?"\\"+t:t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw new TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},Aue={generate:Pue},Cue={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},wue=Due(Cue),kue={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"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:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",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:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"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"},Iue=Due(kue),_ue={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"},Nue=Due(_ue),Lue={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",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",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",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",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_Sogdian:"Sogo",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",Sogdian:"Sogd",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"},Oue=Due(Lue);function Due(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)t[r[i]]=n;else t[r]=n}return t}function Fue(e){return _ue.hasOwnProperty(e)||Nue.hasOwnProperty(e)}function Mue(e){return Lue.hasOwnProperty(e)||Oue.hasOwnProperty(e)}var Bue={isAlias:function(e){return wue.hasOwnProperty(e)||Iue.hasOwnProperty(e)},isValidName:function(e){return Cue.hasOwnProperty(e)||wue.hasOwnProperty(e)||kue.hasOwnProperty(e)||Iue.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?Fue(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&Mue(t)},isGeneralCategoryValue:Fue,isScriptCategoryValue:Mue,isBinaryPropertyName:function(e){return kue.hasOwnProperty(e)||Iue.hasOwnProperty(e)},getCanonicalName:function(e){return wue.hasOwnProperty(e)?wue[e]:Iue.hasOwnProperty(e)?Iue[e]:null},getCanonicalValue:function(e){return Nue.hasOwnProperty(e)?Nue[e]:Oue.hasOwnProperty(e)?Oue[e]:Iue.hasOwnProperty(e)?Iue[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:Cue,NON_BINARY_ALIASES_TO_PROP_NAMES:wue,BINARY_PROP_NAMES_TO_ALIASES:kue,BINARY_ALIASES_TO_PROP_NAMES:Iue,GENERAL_CATEGORY_VALUE_TO_ALIASES:_ue,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:Nue,SCRIPT_VALUE_TO_ALIASES:Lue,SCRIPT_VALUE_ALIASES_TO_VALUE:Oue},Rue=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function jue(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Uue=void 0,que={},Jue=void 0,$ue=void 0;function Vue(e,t){return que.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var Kue=[[-1,1,function(e,t){$ue=Vue(t,t),Jue=e}],[0,4,function(e,t,n,r,i,s,a,o){$ue=Vue(i,o),Jue=mce({type:"RegExp",body:t,flags:uce(r)},yce(i,o||a))}],[1,1,function(e,t){$ue=Vue(t,t),Jue=e}],[1,0,function(){$ue=null,Jue=""}],[2,1,function(e,t){$ue=Vue(t,t),Jue=e}],[2,2,function(e,t,n,r){$ue=Vue(n,r),Jue=e+t}],[3,1,function(e,t){$ue=Vue(t,t),Jue=e}],[4,1,function(e,t){$ue=Vue(t,t),Jue=e}],[4,3,function(e,t,n,r,i,s){$ue=Vue(r,s);var a=null;i&&(a=yce(r||i,s||i)),Jue=mce({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){$ue=Vue(t,t),Jue=0!==e.length?1===e.length?mce(e[0],$ue):mce({type:"Alternative",expressions:e},$ue):null}],[6,0,function(){$ue=null,Jue=[]}],[6,2,function(e,t,n,r){$ue=Vue(n,r),Jue=e.concat(t)}],[7,1,function(e,t){$ue=Vue(t,t),Jue=mce(Object.assign({type:"Assertion"},e),$ue)}],[7,2,function(e,t,n,r){$ue=Vue(n,r),Jue=e,t&&(Jue=mce({type:"Repetition",expression:e,quantifier:t},$ue))}],[8,1,function(e,t){$ue=Vue(t,t),Jue={kind:"^"}}],[8,1,function(e,t){$ue=Vue(t,t),Jue={kind:"$"}}],[8,1,function(e,t){$ue=Vue(t,t),Jue={kind:"\\b"}}],[8,1,function(e,t){$ue=Vue(t,t),Jue={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){$ue=Vue(t,t),Jue=e}],[9,1,function(e,t){$ue=Vue(t,t),Jue=e}],[9,1,function(e,t){$ue=Vue(t,t),Jue=e}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"simple",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),(Jue=ace(e.slice(1),"simple",$ue)).escaped=!0}],[10,1,function(e,t){$ue=Vue(t,t),(Jue=ace(e,"unicode",$ue)).isSurrogatePair=!0}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"unicode",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=function(e,t){var n="P"===e[1],r=e.indexOf("="),i=e.slice(3,-1!==r?r:-1),s=void 0,a=-1===r&&sce.isGeneralCategoryValue(i),o=-1===r&&sce.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!sce.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!sce.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return mce({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:sce.getCanonicalName(i)||i,canonicalValue:sce.getCanonicalValue(s)||s},t)}(e,$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"control",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"hex",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"oct",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=ece)return mce({type:"Backreference",kind:"number",number:n,reference:n},t);return ace(e,"decimal",t)}(e,$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"meta",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"meta",$ue)}],[10,1,function(e,t){$ue=Vue(t,t),Jue=function(e,t){var n=e.slice(3,-1),r=fce(n);if(tce.hasOwnProperty(r))return mce({type:"Backreference",kind:"name",number:tce[r],reference:r,referenceRaw:n},t);var i=null,s=null,a=null,o=null;t&&(i=t.startOffset,s=t.startLine,a=t.endLine,o=t.startColumn);var u=/^[\w$<>]/,c=void 0,l=[ace(e.slice(1,2),"simple",i?{startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=2,endColumn:o+=2}:null)];l[0].escaped=!0,e=e.slice(2);for(;e.length>0;){var p=null;(p=e.match(cce))||(p=e.match(lce))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(ace(p[0],"unicode",c)),e=e.slice(p[0].length)):(p=e.match(u))&&(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:++i,endColumn:++o}),l.push(ace(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){$ue=Vue(t,t),Jue=e}],[11,0],[12,1,function(e,t){$ue=Vue(t,t),Jue=e}],[12,2,function(e,t,n,r){$ue=Vue(n,r),e.greedy=!1,Jue=e}],[13,1,function(e,t){$ue=Vue(t,t),Jue=mce({type:"Quantifier",kind:e,greedy:!0},$ue)}],[13,1,function(e,t){$ue=Vue(t,t),Jue=mce({type:"Quantifier",kind:e,greedy:!0},$ue)}],[13,1,function(e,t){$ue=Vue(t,t),Jue=mce({type:"Quantifier",kind:e,greedy:!0},$ue)}],[13,1,function(e,t){$ue=Vue(t,t);var n=rce(e);Jue=mce({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},$ue)}],[13,1,function(e,t){$ue=Vue(t,t),Jue=mce({type:"Quantifier",kind:"Range",from:rce(e)[0],greedy:!0},$ue)}],[13,1,function(e,t){$ue=Vue(t,t);var n=rce(e);Jue=mce({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},$ue)}],[14,1,function(e,t){$ue=Vue(t,t),Jue=e}],[14,1,function(e,t){$ue=Vue(t,t),Jue=e}],[15,3,function(e,t,n,r,i,s){$ue=Vue(r,s);var a=String(e),o=fce(a);if(!que.options.allowGroupNameDuplicates&&tce.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');tce[o]=e.groupNumber,Jue=mce({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},$ue)}],[15,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue=mce({type:"Group",capturing:!0,number:e.groupNumber,expression:t},$ue)}],[16,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue=mce({type:"Group",capturing:!1,expression:t},$ue)}],[17,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue=mce({type:"CharacterClass",negative:!0,expressions:t},$ue)}],[17,3,function(e,t,n,r,i,s){$ue=Vue(r,s),Jue=mce({type:"CharacterClass",expressions:t},$ue)}],[18,0,function(){$ue=null,Jue=[]}],[18,1,function(e,t){$ue=Vue(t,t),Jue=e}],[19,1,function(e,t){$ue=Vue(t,t),Jue=[e]}],[19,2,function(e,t,n,r){$ue=Vue(n,r),Jue=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){$ue=Vue(i,o),ice(e,n),Jue=[mce({type:"ClassRange",from:e,to:n},yce(i,a))],r&&(Jue=Jue.concat(r))}],[20,1,function(e,t){$ue=Vue(t,t),Jue=e}],[20,2,function(e,t,n,r){$ue=Vue(n,r),Jue=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){$ue=Vue(i,o),ice(e,n),Jue=[mce({type:"ClassRange",from:e,to:n},yce(i,a))],r&&(Jue=Jue.concat(r))}],[21,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"simple",$ue)}],[21,1,function(e,t){$ue=Vue(t,t),Jue=e}],[22,1,function(e,t){$ue=Vue(t,t),Jue=e}],[22,1,function(e,t){$ue=Vue(t,t),Jue=ace(e,"meta",$ue)}]],Wue={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},Xue=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],Hue=[],zue=void 0,Yue=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return dce(Uue.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===Uue)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+Uue);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return dce(Uue=Uue.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],Gue={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},Que={type:"$",value:""};zue={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(Que);for(var e=this._string.slice(this._cursor),t=Gue[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=Yue[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(Uue=s).length;var a=i[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var o,u=a.slice(1);if(a=a[0],u.length>0)(o=this._tokensQueue).unshift.apply(o,jue(u))}return this.onToken(this._toToken(a,Uue))}}if(this.isEOF())return this._cursor++,Que;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,n){var r=this._string.split("\n")[t-1],i="";r&&(i="\n\n"+r+"\n"+" ".repeat(n)+"^\n");throw new SyntaxError(i+'Unexpected token: "'+e+'" at '+t+":"+n+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var n=void 0;null!==(n=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+n.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){return{type:e,value:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var n=e.match(t);return n?(this._captureLocation(n[0]),this._cursor+=n[0].length,n[0]):null},onToken:function(e){return e}},que.lexer=zue,que.tokenizer=zue,que.options={captureLocations:!0};var Zue={setOptions:function(e){return que.options=e,this},getOptions:function(){return que.options},parse:function(e,t){if(!zue)throw new Error("Tokenizer instance wasn't specified.");zue.initString(e);var n=que.options;t&&(que.options=Object.assign({},que.options,t)),Zue.onParseBegin(e,zue,que.options),Hue.length=0,Hue.push(0);var r=zue.getNextToken(),i=null;do{r||(que.options=n,bce());var s=Hue[Hue.length-1],a=Wue[r.type];Xue[s].hasOwnProperty(a)||(que.options=n,gce(r));var o=Xue[s][a];if("s"===o[0]){var u=null;que.options.captureLocations&&(u={startOffset:r.startOffset,endOffset:r.endOffset,startLine:r.startLine,endLine:r.endLine,startColumn:r.startColumn,endColumn:r.endColumn}),i=this.onShift(r),Hue.push({symbol:Wue[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=zue.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=Kue[c],p="function"==typeof l[2],d=p?[]:null,h=p&&que.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){Hue.pop();var m=Hue.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){Uue=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,jue(g)),y.semanticValue=Jue,h&&(y.loc=$ue)}var b=Hue[Hue.length-1],x=l[0];Hue.push(y,Xue[b][x])}else if("acc"===o){Hue.pop();var S=Hue.pop();return(1!==Hue.length||0!==Hue[0]||zue.hasMoreTokens())&&(que.options=n,gce(r)),S.hasOwnProperty("semanticValue")?(que.options=n,Zue.onParseEnd(S.semanticValue),S.semanticValue):(Zue.onParseEnd(),que.options=n,!0)}}while(zue.hasMoreTokens()||Hue.length>1)},setTokenizer:function(e){return zue=e,Zue},getTokenizer:function(){return zue},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},ece=0,tce={},nce="";function rce(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw new SyntaxError("Numbers out of order in "+e+" quantifier");return t}function ice(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw new SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}Zue.onParseBegin=function(e,t){nce=e,ece=0,tce={};var n=e.lastIndexOf("/"),r=e.slice(n);r.includes("x")&&r.includes("u")?t.pushState("xu"):(r.includes("x")&&t.pushState("x"),r.includes("u")&&t.pushState("u"))},Zue.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++ece),e};var sce=Bue;function ace(e,t,n){var r=void 0,i=void 0;switch(t){case"decimal":i=Number(e.slice(1)),r=String.fromCodePoint(i);break;case"oct":i=parseInt(e.slice(1),8),r=String.fromCodePoint(i);break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var s=e.split("\\u").slice(1),a=Rue(s,2),o=a[0],u=a[1];i=1024*((o=parseInt(o,16))-55296)+((u=parseInt(u,16))-56320)+65536,r=String.fromCodePoint(i)}else{var c=e.slice(2).replace("{","");if((i=parseInt(c,16))>1114111)throw new SyntaxError("Bad character escape sequence: "+e);r=String.fromCodePoint(i)}break;case"meta":switch(e){case"\\t":i=(r="\t").codePointAt(0);break;case"\\n":i=(r="\n").codePointAt(0);break;case"\\r":i=(r="\r").codePointAt(0);break;case"\\v":i=(r="\v").codePointAt(0);break;case"\\f":i=(r="\f").codePointAt(0);break;case"\\b":i=(r="\b").codePointAt(0);case"\\0":r="\0",i=0;case".":r=".",i=NaN;break;default:i=NaN}break;case"simple":i=(r=e).codePointAt(0)}return mce({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var oce="gimsuxy";function uce(e){var t=new Set,n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=s.value;if(t.has(o)||!oce.includes(o))throw new SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e.split("").sort().join("")}var cce=/^\\u[0-9a-fA-F]{4}/,lce=/^\\u\{[0-9a-fA-F]{1,}\}/,pce=/\\u\{[0-9a-fA-F]{1,}\}/;function dce(e,t){if(pce.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var hce=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function fce(e){return e.replace(new RegExp(hce,"g"),function(e,t,n,r,i,s,a){return t?String.fromCodePoint(parseInt(t,16),parseInt(n,16)):r?String.fromCodePoint(parseInt(r,16)):i?String.fromCodePoint(parseInt(i,16)):s?String.fromCodePoint(parseInt(s,16)):a?String.fromCodePoint(parseInt(a,16)):e})}function mce(e,t){return que.options.captureLocations&&(e.loc={source:nce.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function yce(e,t){return que.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function gce(e){"$"===e.type&&bce(),zue.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function bce(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var xce=Zue;xce.default;var Sce=xce,Tce=Sce.parse.bind(Sce);Sce.parse=function(e,t){return Tce(""+e,t)},Sce.setOptions({captureLocations:!1});var Ece=Sce;Ece.default;var Pce=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var vce="expressions",Ace="expression",Cce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=n,this.parent=n?n.node:null,this.property=r,this.index=i}return Pce(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw new Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=n?(r||(r=vce),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=Ace),this._enforceProp(r),this.node[r]=t,i=e.getForNode(t,this,r,null)),i}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=vce),this._enforceProp(t);var n=this.node[t].length;return this.setChild(e,n,t)}},{key:"insertChildAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vce;this._enforceProp(r),this.node[r].splice(n,0,t),n<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,r)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index)return this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,void(this.property=null);delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,n){for(var r=e.getForNode(t),i=0;i<t[n].length;i++){e.getForNode(t[n][i],r,n,i).index=i}}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return e.registry.delete(this.node),this.node=t,this.parent?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,vce,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,Ace):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,wce)===JSON.stringify(e.node,wce)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.useLoc;return JSON.stringify(this.node,n?null:wce,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,n,r,-1==i?null:i));var s=e.registry.get(t);return null!==n&&(s.parentPath=n,s.parent=s.parentPath.node),null!==r&&(s.property=r),i>=0&&(s.index=i),s}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function wce(e,t){if("loc"!==e)return t}Cce.initRegistry(),Cce.traversingIndexStack=[];var kce=Cce;kce.default;var Ice=kce;var _ce={traverse:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function r(e,t,n,r){var i=Ice.getForNode(t);return Ice.getForNode(e,i,n,r)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),Ice.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pre,r=t.post,i=t.skipProperty;!function e(t,s,a,o){if(t&&"string"==typeof t.type){var u=void 0;if(n&&(u=n(t,s,a,o)),!1!==u)for(var c in s&&s[a]&&(t=isNaN(o)?s[a]:s[a][o]),t)if(t.hasOwnProperty(c)){if(i?i(c,t):"$"===c[0])continue;var l=t[c];if(Array.isArray(l)){var p=0;for(Ice.traversingIndexStack.push(p);p<l.length;)e(l[p],t,c,p),p=Ice.updateTraversingIndex(1);Ice.traversingIndexStack.pop()}else e(l,t,c)}r&&r(t,s,a,o)}}(e,null)}(e,{pre:function(e,i,s,a){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if("function"==typeof h["*"])if(o){if(!o.isRemoved())if(!1===h["*"](o))return!1}else h["*"](e,i,s,a);var f=void 0;if("function"==typeof h[e.type]?f=h[e.type]:"object"==typeof h[e.type]&&"function"==typeof h[e.type].pre&&(f=h[e.type].pre),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}},post:function(e,i,s,a){if(e){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value,f=void 0;if("object"==typeof h[e.type]&&"function"==typeof h[e.type].post&&(f=h[e.type].post),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},skipProperty:function(e){return"loc"===e}})}},Nce=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Lce=Aue,Oce=Ece,Dce=_ce,Fce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=n}return Nce(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=Lce.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=Lce.generate(this._ast)),this._string}}]),e}(),Mce={TransformResult:Fce,transform:function(e,t){var n=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(n=Oce.parse(e,{captureLocations:!0})),Dce.traverse(n,t),new Fce(n)}},Bce=Eue,Rce=Mce,jce={transform:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length>0?t:Object.keys(Bce),r=void 0,i={};return n.forEach(function(t){if(!Bce.hasOwnProperty(t))throw new Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(Bce).join(", "));var n=Bce[t];r=Rce.transform(e,n),e=r.getAST(),"function"==typeof n.getExtra&&(i[t]=n.getExtra())}),r.setExtra(i),r}},Uce={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"===t.kind&&t.isSurrogatePair&&!isNaN(t.codePoint)&&(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}},qce="A".codePointAt(0),Jce="Z".codePointAt(0),$ce="a".codePointAt(0),Vce="z".codePointAt(0),Kce="0".codePointAt(0),Wce="9".codePointAt(0),Xce={Char:function(e){var t=e.node,n=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==n.type||function(e){var t=e.from,n=e.to;return t.codePoint>=Kce&&t.codePoint<=Wce&&n.codePoint>=Kce&&n.codePoint<=Wce||t.codePoint>=qce&&t.codePoint<=Jce&&n.codePoint>=qce&&n.codePoint<=Jce||t.codePoint>=$ce&&t.codePoint<=Vce&&n.codePoint>=$ce&&n.codePoint<=Vce}(n))&&(r=t.codePoint)>=32&&r<=126){var r,i=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:i,symbol:i,codePoint:t.codePoint};(function(e,t){if("ClassRange"===t||"CharacterClass"===t)return/[\]\\^-]/.test(e);return/[*[()+?^$./\\|{}]/.test(e)})(i,n.type)&&(s.escaped=!0),e.replace(s)}}};var Hce="A".codePointAt(0),zce="Z".codePointAt(0),Yce={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t=e.node,n=e.parent;if(!isNaN(t.codePoint)&&(this._hasUFlag||!(t.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&!function(e){var t=e.from,n=e.to;return t.codePoint>=Hce&&t.codePoint<=zce&&n.codePoint>=Hce&&n.codePoint<=zce}(n))return;this._AZClassRanges.add(n)}var r=t.symbol.toLowerCase();r!==t.symbol&&(t.value=function(e,t){var n=e.codePointAt(0);if("decimal"===t.kind)return"\\"+n;if("oct"===t.kind)return"\\0"+n.toString(8);if("hex"===t.kind)return"\\x"+n.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var r=function(e){var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return{lead:t.toString(16),trail:n.toString(16)}}(n),i=r.lead,s=r.trail;return"\\u"+"0".repeat(4-i.length)+i+"\\u"+"0".repeat(4-s.length)+s}if(t.value.includes("{"))return"\\u{"+n.toString(16)+"}";var a=n.toString(16);return"\\u"+"0".repeat(4-a.length)+a}return e}(r,t),t.symbol=r,t.codePoint=r.codePointAt(0))}}};var Gce={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw new TypeError('Expected "Disjunction" node, got "'+t.type+'"');var n=[];return t.left&&"Disjunction"===t.left.type?n.push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e(t.left)).concat([t.right])):n.push(t.left,t.right),n},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}},Qce=Gce.increaseQuantifierByOne,Zce={Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var n=e.getPreviousSibling();if(n)if("Repetition"===n.node.type){if(!n.getChild().hasEqualSource(e.getChild()))return;var r=tle(n.node.quantifier),i=r.from,s=r.to,a=tle(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!ele(n.node.quantifier)&&!ele(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(ele(n.node.quantifier)||ele(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;Qce(t.quantifier),n.remove()}}}};function ele(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function tle(e){var t=void 0,n=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,n=1):(t=e.from,e.to&&(n=e.to)),{from:t,to:n}}var nle={Quantifier:function(e){"Range"===e.node.kind&&(function(e){var t=e.node;if(0!==t.from||t.to)return;t.kind="*",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||t.to)return;t.kind="+",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||1!==t.to)return;e.parentPath.replace(e.parentPath.node.expression)}(e))}};function rle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var ile={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){!function(e){var t=e.node;t.expressions.forEach(function(t,n){(function(e){return"ClassRange"===e.type&&"0"===e.from.value&&"9"===e.to.value})(t)&&e.getChild(n).replace({type:"Char",value:"\\d",kind:"meta"})})}(e),function(e,t,n){var r=e.node,i=null,s=null,a=null,o=null,u=null,c=null;r.expressions.forEach(function(r,l){ole(r,"\\d")?i=e.getChild(l):!function(e){return"ClassRange"===e.type&&"a"===e.from.value&&"z"===e.to.value}(r)?!function(e){return"ClassRange"===e.type&&"A"===e.from.value&&"Z"===e.to.value}(r)?!function(e){return"Char"===e.type&&"_"===e.value&&"simple"===e.kind}(r)?t&&n&&ule(r,383)?u=e.getChild(l):t&&n&&ule(r,8490)&&(c=e.getChild(l)):o=e.getChild(l):a=e.getChild(l):s=e.getChild(l)}),i&&(s&&a||t&&(s||a))&&o&&(!n||!t||u&&c)&&(i.replace({type:"Char",value:"\\w",kind:"meta"}),s&&s.remove(),a&&a.remove(),o.remove(),u&&u.remove(),c&&c.remove())}(e,this._hasIFlag,this._hasUFlag),function(e){var t=e.node;if(t.expressions.length<sle.length||!sle.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return ole(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return sle.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var sle=[function(e){return ale(e," ")}].concat(rle(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return ole(t,e)}})),rle([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return ule(t,e)}})),[function(e){return"ClassRange"===e.type&&ule(e.from,8192)&&ule(e.to,8202)}]);function ale(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===n}function ole(e,t){return ale(e,t,"meta")}function ule(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var cle={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];if(null==r)return!0;if("Backreference"===r.type&&"number"===r.kind)return!1;if("Char"===r.type&&"decimal"===r.kind)return!1;return!0}(e)&&function(e){return"Char"===e.type&&"\\b"!==e.value}(t.expressions[0])){var n=t.expressions[0],r=n.value,i=n.kind,s=n.escaped;if(t.negative){if(!function(e){return/^\\[dwsDWS]$/.test(e)}(r))return;r=function(e){return/[dws]/.test(e)?e.toUpperCase():e.toLowerCase()}(r)}e.replace({type:"Char",value:r,kind:i,escaped:s||lle(r)})}}};function lle(e){return/[*[()+?$./{}|]/.test(e)}var ple={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t=e.node;t.escaped&&function(e,t){var n=e.node.value,r=e.index,i=e.parent;if("CharacterClass"!==i.type&&"ClassRange"!==i.type)return!function(e,t,n,r){if("{"===e)return function(e,t){if(null==e)return!1;var n=dle(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(hle(i,"}"))return!0;if(hle(i,","))return hle(i=(r=r+(n=dle(r+1,t))+1)<t.expressions.length&&t.expressions[r],"}")}return!1}(t,n);if("}"===e)return function(e,t){if(null==e)return!1;var n=dle(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&hle(i,"{"))return!0;if(hle(i,","))return i=(r=r-(n=dle(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&hle(i,"{");return!1}(t,n);if(r&&/[ #]/.test(e))return!0;return/[*[()+?^$./\\|]/.test(e)}(n,r,i,t);return!function(e,t,n){if("^"===e)return 0===t&&!n.negative;if("-"===e)return!0;return/[\]\\]/.test(e)}(n,r,i)}(e,this._hasXFlag)&&delete t.escaped}};function dle(e,t,n){for(var r=e,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];i&&"Char"===i.type&&"simple"===i.kind&&!i.escaped&&/\d/.test(i.value);)n?r--:r++,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];return Math.abs(e-r)}function hle(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var fle={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,n=[];t.forEach(function(e){gle(e)&&n.push(e.value)}),t.sort(mle);for(var r=0;r<t.length;r++){var i=t[r];if(xle(i,n,this._hasIUFlags)||vle(i,t[r-1])||Ale(i,t[r+1]))t.splice(r,1),r--;else{var s=wle(i,r,t);t.splice(r-s+1,s),r-=s}}}};function mle(e,t){var n=yle(e),r=yle(t);if(n===r){if("ClassRange"===e.type&&"ClassRange"!==t.type)return-1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return yle(e.to)-yle(t.to);if(gle(e)&&gle(t)||ble(e)&&ble(t))return e.value<t.value?-1:1}return n-r}function yle(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function gle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function ble(e){return"Char"===e.type&&"control"===e.kind}function xle(e,t,n){for(var r=0;r<t.length;r++)if(Sle(e,t[r],n))return!0;return!1}function Sle(e,t,n){return"ClassRange"===e.type?Sle(e.from,t,n)&&Sle(e.to,t,n):!("\\S"!==t||!gle(e,"\\w")&&!gle(e,"\\d"))||(!("\\D"!==t||!gle(e,"\\W")&&!gle(e,"\\s"))||(!("\\w"!==t||!gle(e,"\\d"))||(!("\\W"!==t||!gle(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?Tle(e):"\\S"===t?!Tle(e):"\\d"===t?Ele(e):"\\D"===t?!Ele(e):"\\w"===t?Ple(e,n):"\\W"===t&&!Ple(e,n)))))}function Tle(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function Ele(e){return e.codePoint>=48&&e.codePoint<=57}function Ple(e,t){return Ele(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function vle(e,t){if(t&&"ClassRange"===t.type){if(Cle(e,t))return!0;if(kle(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}function Ale(e,t){return!(!t||"ClassRange"!==t.type||!kle(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function Cle(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?Cle(e.from,t)&&Cle(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function wle(e,t,n){if(!kle(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!kle(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function kle(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(Ple(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var Ile=kce,_le=Gce.disjunctionToList,Nle=Gce.listToDisjunction,Lle={Disjunction:function(e){var t=e.node,n={},r=_le(t).filter(function(e){var t=e?Ile.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(Nle(r))}},Ole={Disjunction:function(e){var t=e.node,n=e.parent;if(Dle[n.type]){var r=new Map;if(Fle(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};Dle[n.type](e.getParent(),i)}}}},Dle={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var n=e.node;n.capturing?n.expression=t:e.replace(t)}};function Fle(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return Fle(r,t)&&Fle(i,t)}if("Char"===n){if("meta"===e.kind&&"."===e.symbol)return!1;var s=e.value;return t.set(s,e),!0}return"CharacterClass"===n&&!e.negative&&e.expressions.every(function(e){return Fle(e,t)})}function Mle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Ble={Group:function(e){var t=e.node,n=e.parent,r=e.getChild();if(!t.capturing&&r&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];if(null==r)return!0;if("Backreference"===r.type&&"number"===r.kind)return!1;if("Char"===r.type&&"decimal"===r.kind)return!1;return!0}(e)&&!("Disjunction"===r.node.type&&"RegExp"!==n.type||"Repetition"===n.type&&"Char"!==r.node.type&&"CharacterClass"!==r.node.type))if("Alternative"===r.node.type){var i=e.getParent();"Alternative"===i.node.type&&i.replace({type:"Alternative",expressions:[].concat(Mle(n.expressions.slice(0,e.index)),Mle(r.node.expressions),Mle(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function Rle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var jle=kce,Ule=Gce.increaseQuantifierByOne,qle={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,Jle(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,$le(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,Vle(e,r,n)),n++}}};function Jle(e,t,n){for(var r=e.node,i=Math.ceil(n/2),s=0;s<i;){var a=n-2*s-1,o=void 0,u=void 0;if(0===s?(o=t,u=e.getChild(a)):(o=jle.getForNode({type:"Alternative",expressions:[].concat(Rle(r.expressions.slice(n-s,n)),[t.node])}),u=jle.getForNode({type:"Alternative",expressions:[].concat(Rle(r.expressions.slice(a,n-s)))})),o.hasEqualSource(u)){for(var c=0;c<2*s+1;c++)e.getChild(a).remove();return t.replace({type:"Repetition",expression:0===s&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),a}s++}return n}function $le(e,t,n){for(var r=e.node,i=0;i<n;){var s=e.getChild(i);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var a=s.getChild(),o=void 0;if("Group"!==a.node.type||a.node.capturing||(a=a.getChild()),i+1===n?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=jle.getForNode({type:"Alternative",expressions:[].concat(Rle(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return Ule(s.node.quantifier),i}}i++}return n}function Vle(e,t,n){var r=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var i=t.getChild(),s=void 0;"Group"!==i.node.type||i.node.capturing||(i=i.getChild());var a=void 0;if("Alternative"===i.node.type?(a=i.node.expressions.length,s=jle.getForNode({type:"Alternative",expressions:[].concat(Rle(r.expressions.slice(n-a,n)))})):(a=1,"Group"!==(s=e.getChild(n-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(i)){for(var o=n-a;o<n;o++)e.getChild(n-a).remove();return Ule(t.node.quantifier),n-a}}return n}var Kle=new Map([["charSurrogatePairToSingleUnicode",Uce],["charCodeToSimpleChar",Xce],["charCaseInsensitiveLowerCaseTransform",Yce],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,n={},r=0;r<t.expressions.length;r++){var i=e.getChild(r),s=i.jsonEncode();n.hasOwnProperty(s)&&(i.remove(),r--),n[s]=!0}}}],["quantifiersMerge",Zce],["quantifierRangeToSymbol",nle],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",ile],["charClassToSingleChar",cle],["charEscapeUnescape",ple],["charClassClassrangesMerge",fle],["disjunctionRemoveDuplicates",Lle],["groupSingleCharsToCharClass",Ole],["removeEmptyGroup",{Group:function(e){var t=e.node,n=e.parent,r=e.getChild();t.capturing||r||("Repetition"===n.type?e.getParent().replace(t):"RegExp"!==n.type&&e.remove())}}],["ungroup",Ble],["combineRepeatingPatterns",qle]]);Kle.default;var Wle=function e(t){if(null===t||"object"!=typeof t)return t;var n=void 0;for(var r in n=Array.isArray(t)?[]:{},t)n[r]=e(t[r]);return n},Xle=Ece,Hle=Mce,zle=Kle,Yle={optimize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.whitelist,r=void 0===n?[]:n,i=t.blacklist,s=void 0===i?[]:i,a=(r.length>0?r:Array.from(zle.keys())).filter(function(e){return!s.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=Xle.parse(e));var u=new Hle.TransformResult(o),c=void 0;do{c=u.toString(),o=Wle(u.getAST()),a.forEach(function(e){if(!zle.has(e))throw new Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(zle.keys()).join(", "));var t=zle.get(e),n=Hle.transform(o,t);n.toString()!==u.toString()&&(n.toString().length<=u.toString().length?u=n:o=Wle(u.getAST()))})}while(u.toString()!==c);return u}},Gle={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},Qle=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Zle=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var epe=Gle.EPSILON,tpe=Gle.EPSILON_CLOSURE,npe=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=n}return Zle(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var n=e[t];for(var r in n)r!==tpe&&this._alphabet.add(r)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,n=void 0;try{for(var r,i=this.getAcceptingStates()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var s=r.value;this._acceptingStateNumbers.add(s.number)}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,n=new Set;!function r(i){if(!t.has(i)){t.add(i),i.number=t.size,e._transitionTable[i.number]={},i.accepting&&e._acceptingStates.add(i);var s=i.getTransitions(),a=!0,o=!1,u=void 0;try{for(var c,l=s[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var p=c.value,d=Qle(p,2),h=d[0],f=d[1],m=[];n.add(h);var y=!0,g=!1,b=void 0;try{for(var x,S=f[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value;r(T),m.push(T.number)}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}e._transitionTable[i.number][h]=m}}catch(e){o=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(o)throw u}}}}(this.in),t.forEach(function(t){delete e._transitionTable[t.number][epe],e._transitionTable[t.number][tpe]=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),rpe=npe;rpe.default;var ipe=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function spe(e){return Array.isArray(e)?e:Array.from(e)}function ape(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var ope=null;function upe(e,t){if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.size!==i.size)return!1;if([].concat(ape(r)).sort().join(",")!==[].concat(ape(i)).sort().join(","))return!1}return!0}function cpe(e,t,n,r){var i=!0,s=!1,a=void 0;try{for(var o,u=r[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){if(!lpe(e,t,n,o.value))return!1}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return!0}function lpe(e,t,n,r){if(!ope[e]||!ope[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||ope[e].has(i)&&ope[t].has(s)}var ppe={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();ope={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?ope[e]=i:(s.add(e),ope[e]=s)});var a=[[s,i].filter(function(e){return e.size>0})],o=void 0,u=void 0;o=a[a.length-1],u=a[a.length-2];for(var c=function(){var e={},n=!0,i=!1,s=void 0;try{for(var c,l=o[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var p=c.value,d={},h=spe(p),f=h[0],m=h.slice(1);d[f]=new Set([f]);var y=!0,g=!1,b=void 0;try{e:for(var x,S=m[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value,E=!0,P=!1,v=void 0;try{for(var A,C=Object.keys(d)[Symbol.iterator]();!(E=(A=C.next()).done);E=!0){var w=A.value;if(cpe(T,w,t,r)){d[w].add(T),d[T]=d[w];continue e}}}catch(e){P=!0,v=e}finally{try{!E&&C.return&&C.return()}finally{if(P)throw v}}d[T]=new Set([T])}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}Object.assign(e,d)}}catch(e){i=!0,s=e}finally{try{!n&&l.return&&l.return()}finally{if(i)throw s}}ope=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(ape(k))),o=a[a.length-1],u=a[a.length-2]};!upe(o,u);)c();var l=new Map,p=1;o.forEach(function(e){return l.set(e,p++)});var d={},h=new Set,f=function(e,t){var n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var u=a.value;i.has(u)&&h.add(t)}}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}},m=!0,y=!1,g=void 0;try{for(var b,x=l.entries()[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){var S=b.value,T=ipe(S,2),E=T[0],P=T[1];d[P]={};var v=!0,A=!1,C=void 0;try{for(var w,k=r[Symbol.iterator]();!(v=(w=k.next()).done);v=!0){var I=w.value;f(E,P);var _=void 0,N=!0,L=!1,O=void 0;try{for(var D,F=E[Symbol.iterator]();!(N=(D=F.next()).done);N=!0){var M=D.value;if(_=t[M][I])break}}catch(e){L=!0,O=e}finally{try{!N&&F.return&&F.return()}finally{if(L)throw O}}_&&(d[P][I]=l.get(ope[_]))}}catch(e){A=!0,C=e}finally{try{!v&&k.return&&k.return()}finally{if(A)throw C}}}}catch(e){y=!0,g=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw g}}return e.setTransitionTable(d),e.setAcceptingStateNumbers(h),e}},dpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function hpe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var fpe=ppe,mpe=Gle.EPSILON_CLOSURE,ype=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return dpe(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,fpe.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),n=Object.keys(t);this._acceptingStateNumbers=new Set;for(var r=[t[n[0]][mpe]],i=this.getAlphabet(),s=this._nfa.getAcceptingStateNumbers(),a={},o=function(t){var n=!0,r=!1,i=void 0;try{for(var a,o=s[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var u=a.value;if(-1!==t.indexOf(u)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}};r.length>0;){var u=r.shift(),c=u.join(",");a[c]={};var l=!0,p=!1,d=void 0;try{for(var h,f=i[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var m=h.value,y=[];o(u);var g=!0,b=!1,x=void 0;try{for(var S,T=u[Symbol.iterator]();!(g=(S=T.next()).done);g=!0){var E=t[S.value][m];if(E){var P=!0,v=!1,A=void 0;try{for(var C,w=E[Symbol.iterator]();!(P=(C=w.next()).done);P=!0){var k=C.value;t[k]&&y.push.apply(y,hpe(t[k][mpe]))}}catch(e){v=!0,A=e}finally{try{!P&&w.return&&w.return()}finally{if(v)throw A}}}}}catch(e){b=!0,x=e}finally{try{!g&&T.return&&T.return()}finally{if(b)throw x}}var I=new Set(y),_=[].concat(hpe(I));if(_.length>0){var N=_.join(",");a[c][m]=N,a.hasOwnProperty(N)||r.unshift(_)}}}catch(e){p=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(p)throw d}}}return this._transitionTable=this._remapStateNumbers(a)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var n={};for(var r in Object.keys(e).forEach(function(e,n){t[e]=n+1}),e){var i=e[r],s={};for(var a in i)s[a]=t[i[a]];n[t[r]]=s}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,u=!1,c=void 0;try{for(var l,p=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var d=l.value;this._acceptingStateNumbers.add(t[d])}}catch(e){u=!0,c=e}finally{try{!o&&p.return&&p.return()}finally{if(u)throw c}}return n}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,n=0,r=this.getTransitionTable();e[n];)if(!(t=r[t][e[n++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),gpe=ype;gpe.default;var bpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var xpe=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).accepting,n=void 0!==t&&t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=n}return bpe(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}(),Spe=xpe;Spe.default;var Tpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Epe=Spe,Ppe=Gle.EPSILON,vpe=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,Epe),Tpe(e,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,r=!1,i=void 0;try{for(var s,a=this.getTransitionsOnSymbol(Ppe)[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){if(s.value.matches("",t))return!0}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return!1}var o=e[0],u=e.slice(1),c=this.getTransitionsOnSymbol(o),l=!0,p=!1,d=void 0;try{for(var h,f=c[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){if(h.value.matches(u))return!0}}catch(e){p=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(p)throw d}}var m=!0,y=!1,g=void 0;try{for(var b,x=this.getTransitionsOnSymbol(Ppe)[Symbol.iterator]();!(m=(b=x.next()).done);m=!0){if(b.value.matches(e,t))return!0}}catch(e){y=!0,g=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw g}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(Ppe),n=e._epsilonClosure=new Set;n.add(e);var r=!0,i=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var u=a.value;if(!n.has(u))n.add(u),u.getEpsilonClosure().forEach(function(e){return n.add(e)})}}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}}(),this._epsilonClosure}}]),e}(),Ape=vpe;Ape.default;var Cpe=rpe,wpe=Ape,kpe=Gle.EPSILON;function Ipe(e){var t=new wpe,n=new wpe({accepting:!0});return new Cpe(t.addTransition(e,n),n)}function _pe(e,t){return e.out.accepting=!1,t.out.accepting=!0,e.out.addTransition(kpe,t.in),new Cpe(e.in,t.out)}function Npe(e,t){var n=new wpe,r=new wpe;return n.addTransition(kpe,e.in),n.addTransition(kpe,t.in),r.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition(kpe,r),t.out.addTransition(kpe,r),new Cpe(n,r)}var Lpe={alt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=_pe(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},char:Ipe,e:function(){return Ipe(kpe)},or:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=Npe(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},rep:function(e){return e.in.addTransition(kpe,e.out),e.out.addTransition(kpe,e.in),e},repExplicit:function(e){var t=new wpe,n=new wpe({accepting:!0});return t.addTransition(kpe,e.in),t.addTransition(kpe,n),e.out.accepting=!1,e.out.addTransition(kpe,n),n.addTransition(kpe,e.in),new Cpe(t,n)},plusRep:function(e){return e.out.addTransition(kpe,e.in),e},questionRep:function(e){return e.in.addTransition(kpe,e.out),e}};var Ope=Ece,Dpe=Lpe.alt,Fpe=Lpe.char,Mpe=Lpe.or,Bpe=Lpe.rep,Rpe=Lpe.plusRep,jpe=Lpe.questionRep;function Upe(e){if(e&&!qpe[e.type])throw new Error(e.type+" is not supported in NFA/DFA interpreter.");return e?qpe[e.type](e):""}var qpe={RegExp:function(e){if(""!==e.flags)throw new Error("NFA/DFA: Flags are not supported yet.");return Upe(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(Upe);return Dpe.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))},Disjunction:function(e){return Mpe(Upe(e.left),Upe(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return Bpe(Upe(e.expression));case"+":return Rpe(Upe(e.expression));case"?":return jpe(Upe(e.expression));default:throw new Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw new Error("NFA/DFA: Only simple chars are supported yet.");return Fpe(e.value)},Group:function(e){return Upe(e.expression)}},Jpe={build:function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=Ope.parse(e,{captureLocations:!0})),Upe(t)}},$pe=gpe,Vpe=Jpe,Kpe={NFA:rpe,DFA:$pe,builders:Lpe,toNFA:function(e){return Vpe.build(e)},toDFA:function(e){return new $pe(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},Wpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Xpe=function(){function e(t,n){var r=n.flags,i=n.groups,s=n.source;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=i,this.flags=r,this.source=s||t.source,this.dotAll=r.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return Wpe(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var n in t.groups={},this._groups){var r=this._groups[n];t.groups[n]=t[r]}return t}}]),e}(),Hpe=jce,zpe=Aue,Ype=Yle,Gpe=Ece,Qpe=Mce,Zpe=_ce,ede={RegExpTree:Xpe}.RegExpTree,tde={parser:Gpe,fa:Kpe,TransformResult:Qpe.TransformResult,parse:function(e,t){return Gpe.parse(""+e,t)},traverse:function(e,t,n){return Zpe.traverse(e,t,n)},transform:function(e,t){return Qpe.transform(e,t)},generate:function(e){return zpe.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).blacklist;return Ype.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(e,t){return Hpe.transform(e,t)},exec:function(e,t){if("string"==typeof e){var n=this.compatTranspile(e),r=n.getExtra();e=r.namedCapturingGroups?new ede(n.toRegExp(),{flags:n.getFlags(),source:n.getSource(),groups:r.namedCapturingGroups}):n.toRegExp()}return e.exec(t)}};const nde=tde,rde=({type:e,kind:t})=>"Char"!==e||"simple"!==t;var ide=e=>{let t=!1;const n=nde.parse(e);return"Alternative"===n.body.type&&(nde.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(rde))}}),!t)},sde={};const ade=tde;sde.transformRegExp=(e,{report:t,traverse:n,fix:r})=>{const i=ade.parse(e,{captureLocations:!0}),s=[];return ade.traverse(i,n({push:e=>{const{start:n}=(e.path||e).node.loc;s.push({position:n,message:t(e)}),r(e)}})),[ade.generate(i),s]};const ode=ide,{transformRegExp:ude}=sde;var cde={isSimpleRegExp:ode,transformRegExp:ude},lde={};const{compareAny:pde}=tee,{template:dde}=Wj,{types:hde}=st,{isBlockStatement:fde,isFunction:mde,isLabeledStatement:yde,isObjectPattern:gde,isCallExpression:bde,objectPattern:xde,objectProperty:Sde}=hde,{entries:Tde}=Object,Ede=!0,Pde=e=>e.isCallExpression()||e.isStatement(),vde=e=>bde(e.find(Pde)),Ade=({name:e})=>`Argument '${e}' is missing`;lde.addArgs=e=>({report:Ade,fix:Cde,traverse:wde(e)});const Cde=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=dde.ast.fresh(e);if(fde(s)){const e=function(e){if(!yde(e)){const{expression:t}=e;return Sde(t,t,!1,Ede)}const{label:t,body:n}=e;return Sde(t,n.expression,!1,Ede)}(s.body[0]);return n.properties.push(e),gde(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},wde=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of Tde(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!vde(e))continue;const r=e.find(mde);if(!r)continue;const{block:o}=r.scope;if(!pde(e.scope.path,s))continue;if(pde(e.scope.path,a))continue;const{params:u}=o,[c,l]=kde(u);if(gde(l))return void t({name:n,index:c,declaration:i,path:e,params:u,pattern:l});if(u.length>=3)return;t({name:n,index:c,declaration:i,path:e,params:u,pattern:xde([])})}}}};function kde(e){for(const[t,n]of e.entries())if(gde(n))return[t,n];return[-1,null]}var Ide={};const _de=["import","export"],Nde=["const","var","let"],Lde=["if"],Ode=["readonly","implements","declare","module","type"],Dde=["interface","static"],Fde=[...Lde,...Nde,..._de,...Dde,"async","break","continue","for","else","from","return","throw","of","while","class","extends","default"],Mde=[...Fde,"as","await","new","yield","typeof","function"];Ide.isKeyword=e=>Mde.includes(e),Ide.isDeclarationKeyword=e=>Nde.includes(e),Ide.isModuleDeclarationKeyword=e=>_de.includes(e),Ide.isConditionKeyword=e=>Lde.includes(e),Ide.isStatementKeyword=e=>Fde.includes(e),Ide.isTSKeyword=e=>{const t=Ode.includes(e),n=Dde.includes(e);return t||n};var Bde={};const{relative:Rde}=u6,jde=K5,Ude=e=>!e.indexOf("!"),qde=e=>e.replace(/^!/,"");var Jde=(e,t,n={})=>{const r=Rde(e,t),i=jde(),s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(qde(n));Ude(n)&&r>t&&(e[r]=n)}const t=new Set(e);return Array.from(t)}(n.ignore||[]);return i.add(s),e&&i.ignores(r)};const $de=u6,{parse:Vde,print:Kde}=Wj,{transform:Wde}=_oe,{findPlaces:Xde}=Roe,Hde=Jde,{toJS:zde,fromJS:Yde}=o4,{readFileContent:Gde,findFile:Qde,writeFileContent:Zde,getFilename:ehe,createFile:the,removeFile:nhe,getParentDirectory:rhe}=mse,{join:ihe}=$de,she=e=>e&&"object"==typeof e,{entries:ahe}=Object,ohe=(e,{message:t})=>t;function uhe(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){Wde(s,i,a);const o=function(e,t){if(/\.json$/.test(e)){const e=Kde(t);return Yde(e)}return Kde(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=ihe(ehe(e),n),[s]=Qde(e,i);return s||the(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});Zde(u,o),e!==u&&nhe(e)}Bde.matchFiles=e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of ahe(e))if(!she(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:uhe,scan:che({defaultFilename:t,files:n,exclude:r}),report:ohe}};const che=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=ehe(r);a.filename=a.filename??n;for(const[n,i]of ahe(e)){const[e]=phe(n,a),s=Qde(r,e,t);for(const e of s){const t=rhe(e),r=ehe(e),[s,c=s]=phe(n,{filename:r});Hde(u,r,a)||o.push({dirPath:t,matchInputFilename:s,rawOptions:i,inputFile:e,inputFilename:r,outputFilename:c})}}const c=o.length;for(const[e,t]of o.entries()){const{dirPath:n,matchInputFilename:r,inputFile:a,inputFilename:o,outputFilename:u,rawOptions:l}=t;s({i:e,n:c});const p=Gde(a)||"{}",[d,h]=lhe(o,p),f=dhe(o,l),m=Xde(h,d,f);if(!m.length)continue;const{message:y}=m[0];i(a,{dirPath:n,matchInputFilename:r,outputFilename:u,message:y,options:f,matchedAST:h,matchedJS:d})}};function lhe(e,t){if(/\.json$/.test(e)){const e=zde(t);return[e,Vde(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,Vde(t,{isTS:!0})]}return[t,Vde(t)]}function phe(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=$de.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function dhe(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}var hhe={};const{join:fhe}=u6,{getParentDirectory:mhe,getFilename:yhe,readFileContent:ghe,findFile:bhe,renameFile:xhe}=mse,{parse:She}=JSON;hhe.renameFiles=({type:e,mask:t,rename:n})=>({report:The,fix:Ehe,scan:Phe({type:e,mask:t,rename:n})});const The=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,Ehe=(e,{to:t})=>{xhe(e,t)},Phe=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!vhe(e,a))continue;const t=yhe(a);i(a,{from:t,to:n(t)})}};function vhe(e,t){const n=function(e){let t,n=mhe(e);do{const e=yhe(n);[t]=bhe(n,fhe(e,"package.json"))}while(!t&&(n=mhe(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=ghe(n);if(!r)return!1;return(She(r).type||"commonjs")===e}var Ahe={};const{types:Che}=st,{traverseProperties:whe}=MK,{stringLiteral:khe}=Che,Ihe=({value:e})=>e;Ahe.ignore=(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/\(|\)/);return{report:_he(t),match:Nhe({type:e,property:n,collector:i,list:r}),replace:Lhe({type:e,property:n,collector:i,list:r})}};const _he=e=>()=>`Add dotfiles to '${e}'`,Nhe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=Ohe(r,s);return{[e]:e=>{const r=Dhe(e,{property:t,collector:n});if(!r)return!1;const i=r.map(Ihe);for(const e of a)if(!i.includes(e))return!0;return!1}}},Lhe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=Ohe(r,s);return{[e]:(e,r)=>{const i=Dhe(e,{property:t,collector:n}),s=i.map(Ihe);for(const e of a)s.includes(e)||i.push(khe(e));return r}}};function Ohe(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function Dhe(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=whe(r,t);return i?i.node.value.elements:null}var Fhe={};const{types:Mhe}=st,{parenthesizedExpression:Bhe,tsParenthesizedType:Rhe}=Mhe;function jhe(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function Uhe(e,t=jhe(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}Fhe.hasParens=Uhe,Fhe.addParens=e=>{const t=jhe(e);if(Uhe(e,t))return e;if("babel"!==t){const{extra:t={}}=e.node;return t.parenthesized=!0,e.node.extra=t,e}const{node:n}=e;return e.type.startsWith("TS")?e.replaceWith(Rhe(n)):(e.replaceWith(Bhe(n)),e)},Fhe.removeParens=e=>{const t=jhe(e);if(!Uhe(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e};const{codeFrameColumns:qhe}=st;var Jhe=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return qhe(e,{start:i},{highlightCode:n,message:r})};const{traverse:$he,types:Vhe}=st,{parse:Khe,print:Whe,generate:Xhe,template:Hhe}=Wj,{cutShebang:zhe,mergeShebang:Yhe}=V8,{defaultOptions:Ghe}=K8,{transform:Qhe,transformAsync:Zhe}=_oe,{findPlaces:efe,findPlacesAsync:tfe}=Roe;n.exports=rfe;var nfe=n.exports.putout=rfe;function rfe(e,t){xfe(e),t=Ghe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=zhe(e),u=Khe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=Qhe(u,e,t);if(!t.fix)return{code:e,places:c};const l=Whe(u,{printer:s,source:e});return{code:Yhe(o,l),places:c}}var ife=n.exports.putoutAsync=async(e,t)=>{xfe(e),t=Ghe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=zhe(e),u=Khe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await Zhe(u,e,t);if(!t.fix)return{code:e,places:c};const l=Whe(u,{printer:s});return{code:Yhe(o,l),places:c}},sfe=n.exports.transform=Qhe,afe=n.exports.transformAsync=Zhe,ofe=n.exports.findPlaces=efe,ufe=n.exports.findPlacesAsync=tfe,cfe=n.exports.parse=Khe,lfe=n.exports.print=Whe,pfe=n.exports.traverse=$he,dfe=n.exports.types=Vhe,hfe=n.exports.template=Hhe,ffe=n.exports.generate=Xhe,mfe=n.exports.initReport=$oe,yfe=n.exports.operator={...MK,...tee,...Voe,...o4,...sue,...Uie,...cde,...lde,...mse,...Ide,...Bde,...hhe,...Ahe,...Fhe},gfe=n.exports.ignores=Jde,bfe=n.exports.codeframe=Jhe;function xfe(e){if(!(e=>"string"==typeof e)(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}var Sfe=n.exports;export{bfe as codeframe,Sfe as default,ofe as findPlaces,ufe as findPlacesAsync,ffe as generate,gfe as ignores,mfe as initReport,yfe as operator,cfe as parse,lfe as print,nfe as putout,ife as putoutAsync,hfe as template,sfe as transform,afe as transformAsync,pfe as traverse,dfe as types};