@putout/bundle 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,4 @@ function e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;v
10
10
 
11
11
  return ${dj(r)};
12
12
  })(${sj(this.node)})
13
- `;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return Dj(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Lj(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()?wj(e):!!this.isBlockStatement()&&kj(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()&&!wj(this.container)&&Aj.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?Nj(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("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()||!Ij(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 jj(this,e,new Map)},resolve:function(e,t){return Rj.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!1});return!!e},isDenylisted:function(){return!!this.opts.denylist?.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||dR.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return fR(this,e),this.debug("Recursing into..."),this.shouldStop=pR(this.node,this.opts,this.scope,this.state,this,this.skipKeys),fR(this,e),dR.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|rR},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return yR.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;!Sa(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){IF.call(this),gR.call(this),CF.call(this)||(this.opts?.noScope||AF.call(this),this.shareCommentsWithSiblings(),wF.call(this)),kF.call(this)},insertBefore:function(e){IF.call(this);const t=GF.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||RF(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 XF.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(DF(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(IF.call(this),this.isSequenceExpression())return HF(this.get("expressions")).insertAfter(e);const t=GF.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||RF(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>UF(e)?FF(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 NF(r),e.replaceWith(OF(_F([],r),[])),e.get("callee.body").insertAfter(t),[e];if(zF(e))t.unshift(r);else if(jF(r)&&JF(r.callee))t.unshift(r),t.push(VF());else if(function(e,t){if(!BF(e)||!$F(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(MF(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(FF(LF("=",MF(e),r))),t.push(FF(MF(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return WF.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(DF(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){IF.call(this);const n=GF.call(this,t),r=this.node[e],i=iR.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return XF.call(i,n)},pushContainer:function(e,t){IF.call(this);const n=GF.call(this,t),r=this.node[e];return iR.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 zj(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return iR.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?Yj.call(this,e,t):Gj.call(this,n,t)},getAssignmentIdentifiers:function(){return Uj(this.node)},getBindingIdentifiers:function(e){return $j(this.node,e)},getOuterBindingIdentifiers:function(e){return qj(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=$j.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",eR(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",eR(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){Qj(this.node,e,t,n)},addComments:function(e,t){Zj(this.node,e,t)}};Object.assign(iR.prototype,sR);for(const e of mu){const t=`is${e}`,n=Me[t];iR.prototype[t]=function(e){return n(this.node,e)},iR.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(iR.prototype,UD);for(const e of Object.keys(gD))e.startsWith("_")||mu.includes(e)||mu.push(e);var{VISITOR_KEYS:aR}=Me,oR=class{constructor(e,t,n,r){this.parentPath=r,this.scope=e,this.state=n,this.opts=t}queue=null;priorityQueue=null;shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=aR[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 iR.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++,gR.call(i),null===i.key)continue;0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||ER.call(i,this);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++)null!==e[t].key&&TR.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:uR}=Me;function cR(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++,gR.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||ER.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),lR(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=cR(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)TR.call(t[e]);return e.queue=null,r}function lR(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||hR.call(t,r.enter)||t.node&&hR.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=pR(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!hR.call(t,r.exit))||(t.node&&hR.call(t,r[n.type]?.exit),t.shouldStop))))}function pR(e,t,n,r,i,s,a){const o=uR[e.type];if(!o?.length)return!1;const u=new oR(n,t,r,i);if(a)return!s?.[i.parentKey]&&cR(u,[i]);const c=null==i?"Program"===e.type||"File"===e.type?new CR:void 0:i.hub;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=iR.get({parentPath:i,parent:e,container:n,key:s,listKey:t,hub:c});r.push(a)}if(cR(u,r))return!0}else if(cR(u,[iR.get({parentPath:i,parent:e,container:e,key:t,listKey:null,hub:c})]))return!0}return!1}function dR(e){const t=this.opts;return this.debug(e),!(!this.node||!hR.call(this,t[e]))||!!this.node&&hR.call(this,t[this.node.type]?.[e])}function hR(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 fR(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function mR(){let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;)e=t.scope,t=t.parentPath;this.scope=this.getScope(e),this.scope?.init()}function yR(){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 gR(){this.removed||(bR.call(this),SR.call(this),xR.call(this))}function bR(){this.parentPath&&(this.parent=this.parentPath.node)}function xR(){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 vR.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void vR.call(this,e);this.key=null}}function SR(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function TR(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function ER(e){this.contexts.push(e),this.setContext(e)}function PR(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,vR.call(this,r)}function vR(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function AR(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var CR=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}},{VISITOR_KEYS:wR,removeProperties:kR,traverseFast:IR}=Me;function _R(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.");wR[e.type]&&(HD(t),pR(e,t,n,r,i,void 0,s))}}_R.visitors=sO,_R.verify=zD,_R.explode=HD,_R.cheap=function(e,t){IR(e,t)},_R.node=function(e,t,n,r,i,s){pR(e,t,n,r,i,s)},_R.clearNode=function(e,t){kR(e,t)},_R.removeProperties=function(e,t){return IR(e,_R.clearNode,t),e},_R.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||IR(e,function(e){return n?.includes(e.type)?IR.skip:e.type===t?IR.stop:void 0}))},_R.cache=gO;var NR=Object.freeze({__proto__:null,codeFrameColumns:Yk,generate:lD,parse:dk,parseExpression:function(e,t){const n=fk(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},template:UI,tokTypes:hk,traverse:_R,types:Me});const LR="Token",DR="Newline",OR="Splitter",MR="Indent",FR="Debug",BR="Space",jR="Quote",RR="EndOfFile",{isStringLiteral:UR,isIdentifier:$R,isIfStatement:qR,isStatement:JR,isForOfStatement:VR,isVariableDeclaration:KR,isMemberExpression:XR,isArrayExpression:WR,isObjectExpression:HR,isLabeledStatement:zR}=Me,YR=e=>e.parentPath?.isProgram(),GR=e=>e.parentPath.isBlockStatement(),QR=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},ZR=e=>QR(e.parentPath),eU=e=>YR(e)&&!QR(e),tU=e=>e.getNextSibling().isObjectExpression();function nU(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t}const rU=e=>e.node;function iU([e,t]){return UR(e)&&$R(t)}const sU=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return HR(t)||(t=e.at(-2)),!!HR(t)&&t.node.properties.length})(e)},aU=([e,t])=>$R(e)&&$R(t),oU=([e,t])=>!!UR(e)&&(!!WR(t)&&!iU(t.node.elements)),uU=e=>qR(e)||JR(e),cU=e=>VR(e)||JR(e),lU=e=>{const t=e.find(cU);return!!VR(t)||!!KR(t)&&VR(t.parentPath)},pU=e=>e.parentPath?.isIfStatement(),dU=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},hU=({parentPath:e})=>zR(e),fU=e=>t=>{for(const n of e)if(n(t))return!0;return!1},mU=e=>e.node||e,yU=e=>{const t=mU(e);return t.trailingComments?.length},gU=e=>e.node?.leadingComments?.length,bU=e=>!e.node.trailingComments?.length,xU=e=>!e.node.leadingComments?.length,SU="__putout_newline_after",TU=(e,t)=>e&&PU(t);function EU(e){e.__putout_newline_before=!0}function PU(e){e[SU]=!0}function vU(e){return e[SU]}const AU=e=>vU(e.getPrevSibling()),CU=(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())},wU=(e,t)=>()=>e(`//${t}`),kU=(e,t)=>()=>e(`/*${t}*/\n`),{isArrowFunctionExpression:IU,isObjectProperty:_U,isVariableDeclarator:NU,isClassProperty:LU,isTSPropertySignature:DU,isSpreadElement:OU,isClassBody:MU,isBinaryExpression:FU,isClassMethod:BU,isDecorator:jU}=Me,RU=fU([_U,NU,LU,DU,OU]),UU=e=>{const{parentPath:t}=e;return!(!NU(t)||e!==t.get("init"))||!!IU(t)&&NU(t.parentPath)};function $U(e){const{loc:t,leadingComments:n}=e.node;if(!RU(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 qU=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!MU(t)||!LU(e))&&e===t.get("body")[0]},JU=(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((e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)})(r))return((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})})(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&yU(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=RU(e),p=qU(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}*/`),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),EU(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),CU(c,{print:i,indent:a}),$U(e)?s.print.breakline(!qU(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),BU(e)?a():(FU(e)||jU(e))&&(a.inc(),a(),a.dec())):i.newline(),UU(e)&&(a.inc(),a(),a.dec())},{assign:VU}=Object;function KU(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=WU(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function XU(e){const t=[];for(;e.isMemberExpression()&&(yU(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(WU(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function WU(e){const t={type:e.type};return e.isCallExpression()&&VU(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}const{isUnaryExpression:HU,isIfStatement:zU,isCallExpression:YU,isIdentifier:GU}=Me,QU=e=>"CallExpression"===e.type,ZU=fU([HU,zU]),e$=({type:e})=>"CommentLine"===e,t$=e=>!!GU(e.node.object)&&(!!GU(e.node.property)&&(!!function(e){const{parentPath:t}=e;return!!YU(t)&&e===t.get("arguments").at(-1)}(e)||YU(e.parentPath.parentPath)));const n$=e=>{const[t,n]=(e=>{const t=[...KU(e),...XU(e)],n=t.slice(0,-1);return[t.at(-1),n]})(e);if(t$(e))return!1;if(ZU(t))return!1;if(r$(n))return!1;if(n.find(e$))return!0;if(e.find(i$))return!1;const r=n.filter(QU),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)},r$=([e])=>YU(e,{name:"get"}),i$=e=>{const t=e.find(zU);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{isDecorator:s$,isMemberExpression:a$,isExpressionStatement:o$,isCallExpression:u$}=Me,c$=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,l$=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function p$(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const d$=e=>{const{parentPath:t}=e;if(s$(e)){const{loc:t}=e.node.trailingComments[0];return!p$(e,t)}return!a$(t)&&!eU(e)};function h$(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if((e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments)(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}const f$=(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((e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)})(r))return((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})})(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=n$(i);for(const{type:t,value:n,loc:r}of u){const i=p$(e,r),u=h$(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)),c$(e)&&(a.write.breakline(!QR(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(d$(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(m$(e)),s(`/*${n}*/`),a.write.newline(!i||!l$(e)&&nU(e.parentPath)))}};function m$(e){const t=e.getPrevSibling();if(o$(t))return!1;const{expression:n}=e.node;return!!u$(n)&&!u$(n.arguments[0])}const y$=(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(QR(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}},g$=()=>{},b$=e=>e.get("params"),x$=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=b$(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=g$,printBeforeClose:f=g$,printAfterClose:m=g$}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if(S$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),y$(e,t,n),h();const y=c.length-1;for(let e=0;e<=y;e++){const t=e===y;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if(S$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n),m()};function S$(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}const T$=e=>e.node.extra?.parenthesized,E$=e=>"function"==typeof e?P$(e):v$(e),P$=e=>({condition:T$,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),v$=({print:e,condition:t,checkParens:n=!0})=>({...P$(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||T$(e):s}}),A$=E$((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{async:o}=e.node;i.print(o,"async "),x$(e,t,n);const u=e.get("returnType");rU(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")}),C$=(w$=function(e){return!!O$(e.parentPath)&&e.node.body.body.length},(...e)=>!w$(...e));var w$;const{isAssignmentExpression:k$,isTSModuleBlock:I$,isBlockStatement:_$,isExportNamedDeclaration:N$,isExpressionStatement:L$,isFunctionDeclaration:D$,isExportDefaultDeclaration:O$}=Me,M$={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>N$(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),x$(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[QR,ZR,j$],after(e,{indent:t,maybe:n}){(B$(e)||F$(e)||QR(e))&&t(),n.write.newline(C$(e)),PU(e)}},F$=e=>{const t=e.getNextSibling();return D$(t)},B$=e=>{const t=e.getNextSibling();return!!L$(t)&&k$(t.node.expression)};function j$(e){const{parentPath:t}=e;return!!I$(t.parentPath)||!!_$(t)&&!e.node.body.body.length}const R$=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())},U$=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(R$(t)),a(e),s.breakline();e(t,n,r,i)},$$=(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")},q$=(e,t)=>{const n=e.get("key");$$(e,n,t)},J$=(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")},V$=({decorators:e})=>e?.length,K$=(e,t,n)=>{const{params:r}=e.node,i=r.filter(V$).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,gU(i)&&++n}return n===r})(e),a=H$({isNewline:i,printer:t}),o=X$({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=W$({type:"dec",printer:t,isNewline:i,isAllHasComments:s});x$(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})},X$=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},W$=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},H$=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},z$=e=>!yU(e)&&QR(e),Y$={print:U$((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(" ")),J$(e,t),q$(e,t),K$(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[z$],after(e,{print:t}){t.linebreak()}},G$=Y$,Q$={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;J$(e,t),q$(e,t),x$(e,t,n),r.space(),r("__body")},afterIf:e=>dU(e),after(e,{print:t}){t.linebreak()}},Z$=E$((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");rU(l)&&(s(" "),a(l)),x$(e,t,n),r.space(),r("__body")}),eq=E$((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)}),tq=eq,nq=eq,rq=E$((e,{print:t})=>{sq("await",{print:t})}),iq=E$((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")});function sq(e,{print:t}){t(`${e} `),t("__argument")}const{isObjectExpression:aq,isArrowFunctionExpression:oq}=Me,uq=E$({checkParens:!1,condition:e=>lq(e),print:(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),{computed:o}=e.node,u=n$(e);if(i(s),o)return $$(e,a,t);r.indent.inc(u),r.print.breakline(u),n("."),n("__property"),r.indent.dec(u)}}),cq=E$((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")}),lq=({node:e,parentPath:t})=>!!aq(e.object)&&oq(t),pq=e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)},{isFunction:dq,isTSModuleBlock:hq}=Me,fq=e=>dq(e.parentPath.parentPath),mq=U$((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;if(l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements){const{typeParameters:t}=l;(!t||t.params.length<2)&&a(" "),a("implements ");const n=e.get("implements"),r=n.length-1;for(const[e,t]of n.entries())a(t),u.print(e<r,", ")}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||y$(p,t,n),o.dec(),u.indent(d.length),a("}")}),yq=mq,gq={print:pq((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),mq(e,t,n)}),afterIf:e=>!!fq(e)||(!!QR(e)||(e=>hq(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!fq(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),PU(e))}},{isArray:bq}=Array,xq=E$((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return bq(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),rU(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(")")}),Sq=xq;const{isExpressionStatement:Tq,isMemberExpression:Eq}=Me,Pq=({parentPath:e})=>rU(e.getPrevSibling()),vq={beforeIf(e){if(!(({parentPath:e})=>Tq(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!vU(n)&&(!n.isExpressionStatement()&&Pq(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){Aq("(",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){Aq(")",e,t,n)}(e,t,n)}};function Aq(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>Eq(e))(t))return s(e);i.print(a.new,e)}const{isArrayExpression:Cq}=Me,wq=["NullLiteral","NumericLiteral","BigIntLiteral"],kq=e=>{const{parentPath:t}=e;if(!Cq(t))return!1;const[n,r]=t.node.elements;return r===e.node&&wq.includes(n.type)},{isArrayExpression:Iq,isCallExpression:_q,isIdentifier:Nq}=Me,{isStringLiteral:Lq,isArrayExpression:Dq}=Me,Oq=e=>e.get("argument").isLogicalExpression();const Mq=e=>{const t=e.getNextSibling();return!!rU(t)&&gU(t)},Fq=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!nU(e)&&e!==t.get("arguments").at(-1))},Bq=!0,jq=!1;function Rq(e){const{length:t}=e.get("properties");return t?Fq(e)||lU(e)||(e=>qR(e.find(uU)))(e)?Bq:nU(e)?jq:!(e=>e.get("properties.0.value").node)(e):Bq}const{isStringLiteral:Uq,isTemplateLiteral:$q,isBinaryExpression:qq}=Me,Jq=e=>!!Uq(e)||$q(e),Vq=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!!(Jq(s)&&Jq(a)&&qq(t))||qq(s)&&Jq(a)},Kq=({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name,{isMemberExpression:Xq,isSequenceExpression:Wq}=Me,Hq=e=>(t,n,r)=>{e(t,n,r),zq(t,n)};function zq(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;Wq(n)||Xq(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}const{isAssignmentPattern:Yq,isIdentifier:Gq}=Me;function Qq(e,t){return Gq(e)&&Gq(t)?e.name.length+t.name.length:Gq(e)?e.name.length:0}const{isAssignmentPattern:Zq,isArrayExpression:eJ,isObjectExpression:tJ,isIdentifier:nJ}=Me,rJ=(e,t)=>{const n=iJ(e,t),{right:r}=e.node.value,i=eJ(r)||!!tJ(s=r)&&s.properties.length;var s;return{complexAssign:n&&i}};function iJ(e,t){const{key:n,value:r}=e.node;if(!Zq(r))return!1;if(!nJ(n))return!0;const{maxPropertiesLengthInOneLine:i}=t;return n.name.length>i}const sJ=(e,{print:t})=>{const n=(e=>t=>e(`//${t}`))(t),r=(e=>t=>e(`/*${t}*/`))(t),{leadingComments:i}=e.node;if(i)for(const{type:e,value:s}of i)"CommentLine"===e?n(s):r(s),t.breakline()},{isObjectExpression:aJ,isIdentifier:oJ,isAssignmentPattern:uJ,isVariableDeclarator:cJ,isFunction:lJ,isObjectPattern:pJ,isForOfStatement:dJ,isVariableDeclaration:hJ}=Me;const fJ=({path:e,valuePath:t,property:n})=>{if(!nU(t))return!1;if(rU(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!SJ(r))&&!e.parentPath.isObjectProperty()};function mJ({parentPath:e}){return dJ(e.parentPath.parentPath)}function yJ(e){const t=e.getPrevSibling();return uJ(t.node.value)}function gJ(e){const t=e.getPrevSibling();if(!uJ(t.node.value))return!1;const{right:n}=t.node.value;return aJ(n)}function bJ(e){const t=e.getNextSibling();if(!t.node)return!1;if(!uJ(t.node.value))return!1;const{right:n}=t.node.value;return aJ(n)}const xJ={print:Hq((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;if(function(e){for(const t of e)if(t.node.leadingComments)return!0;return!1}(r))return!0;const{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=((e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(Yq(r)){const{left:e,right:n}=r;if(Qq(e,n)>=t)return!0}if(!Gq(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1})(e,{maxPropertiesLengthInOneLine:a}),u=((e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;return!n.isObjectProperty()&&t>=e.node.properties.length})(e,{maxPropertiesInOneLine:s});if(function(e){for(const t of e){const{computed:e}=t.node;if(e)return!0}return!1}(r))return PJ;const c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return TJ(r)?PJ:u&&!o&&cJ(e.parentPath)?EJ:!c&&i&&!lU(e)&&function(e){for(const t of e){const{value:e}=t.node;if(oJ(e)&&e.name.length>4)return!0}return!1}(r)||!c&&SJ(r)?PJ:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&TJ(c),h=!(e=>!!lJ(e.parentPath)||lJ(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&&gJ(i),u=bJ(i),c=i.get("value"),f=i.get("key"),m=c.isAssignmentPattern(),{shorthand:y,computed:g}=i.node,b=fJ({path:e,property:i,valuePath:c});if(o.indent((s||p)&&h),o.print.breakline(b&&!iJ(i,n)),!m&&u&&a.breakline(),sJ(i,{print:a}),q$(i,t),!y||Kq({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&&!yJ(i)&&!mJ(e)&&aJ(t)){a(","),a.newline();continue}}if(!m&&u&&h){a(","),a.breakline();continue}const{complexAssign:x}=rJ(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(hJ(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(uJ(n)&&aJ(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};function SJ(e){for(const t of e){const{value:e}=t.node;if(uJ(e))return!0}return!1}function TJ(e){for(const t of e)if(pJ(t.node.value))return!0;return!1}const EJ=!1,PJ=!0;const{isReturnStatement:vJ}=Me,{isAssignmentExpression:AJ,isExpressionStatement:CJ}=Me,wJ=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(CJ)&&AJ(t)}(e)?t.space():t.breakline()};const kJ=E$({checkParens:!1,condition:(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("MemberExpression"===r.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!gU(e))&&T$(e)))))},print(e,t){const{print:n}=t,{operator:r}=e.node;((e,{print:t,indent:n})=>{const{parentPath:r}=e;if(vJ(r)&&gU(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()}})(e,t),n("__left"),n.space(),n(r),wJ(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),((e,{print:t,indent:n})=>{const{parentPath:r}=e;vJ(r)&&gU(e)&&(n.dec(),t.breakline())})(e,t)}});kJ.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;vJ(s)||(o.print.breakline(!i),r(),a.breakline())},kJ.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;vJ(i)||(r(),s.indent())};const{isIdentifier:IJ,isMemberExpression:_J}=Me;function NJ(e,t){const n=DJ(t);return e.scope.getAllBindings()[n]}const LJ=(e,t)=>NJ(e,t)?.path,DJ=e=>"string"==typeof e?e:IJ(e)?e.name:_J(e)?DJ(e.object):"",{isOptionalMemberExpression:OJ,isMemberExpression:MJ,isIdentifier:FJ,isLiteral:BJ}=Me,jJ=e=>!!BJ(e)||(!!FJ(e)||(!!MJ(e)||OJ(e))),{isArrayExpression:RJ,isLiteral:UJ,isIdentifier:$J,isMemberExpression:qJ,isTemplateElement:JJ,isRegExpLiteral:VJ,isClassMethod:KJ,isTemplateLiteral:XJ,isJSXText:WJ,isJSXAttribute:HJ,isJSXIdentifier:zJ,isTSTypeReference:YJ,isTSTypeParameter:GJ,isTSAsExpression:QJ}=Me;function ZJ(e){if(e=e.node||e,$J(e))return e.name;if(zJ(e))return e.name;if(VJ(e))return e.pattern;if(XJ(e))return ZJ(e.quasis[0]);if(UJ(e))return e.value;if(JJ(e))return e.value.raw;if(qJ(e))return`${ZJ(e.object)}.${ZJ(e.property)}`;if(RJ(e))return eV(e);if(WJ(e))return e.value;if(HJ(e))return e.name.name;if(KJ(e))return ZJ(e.key);if(YJ(e))return ZJ(e.typeName);if(GJ(e))return ZJ(e.name);if(QJ(e))return ZJ(e.expression);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter","TSAsExpression"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function eV(e,t=[]){for(const n of e.elements)RJ(n)?eV(n,t):t.push(ZJ(n));return t.join(",")}const tV=!1,nV=!0;function rV(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[nV,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=rV(n);if(!i)return[tV];const[a,o]=rV(r);if(!a)return[tV];const u=`return a ${t} b`,c=sV[t]||sV.init(t,Function("a","op","b",u));return[nV,c(s,t,o)]}(e);if(iV(e))return[nV,ZJ(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?LJ(e,ZJ(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?LJ(e,ZJ(t.object)):null}(e);if(!i)return[tV];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=ZJ(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!iV(t))return[tV];if(ZJ(t)!==n)continue;const[r,i]=rV(e.get("value"));if(!r)break;return[nV,i]}return[tV]}(e,s):[tV]}function iV(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))}const sV={init:(e,t)=>sV[e]=t};const{entries:aV}=Object,oV=e=>{if(!e.node)return;const{scope:t}=e,n=cV(e),r=lV(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=uV(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of aV(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}},uV=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:[]},cV=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),lV=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling(),pV=e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null},dV=(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())}})},hV=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;dV(i,t,n),i.scope.rename(t,n)},fV=(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}"`)},mV=e=>{let t;for(t of e)if(!yV(t))break;return t};function yV(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"})}const{isCallExpression:gV,isObjectExpression:bV}=Me,xV=e=>e.node||e;const SV=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return bV(e)?gV(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:xV(e)}:xV(e)}(e),s=TV({name:t,collector:r});return n?(s(e),r):(_R(i,{noScope:!0,ObjectExpression:s}),r)},TV=({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=ZJ(n);e===i&&t.push(r)}},{isObjectExpression:EV,isObjectPattern:PV}=Me,vV=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=ZJ(r.get("key"));if(t.includes(e)){n[`${e}Path`]=r;continue}}return n},AV=(e,t)=>{if(!EV(e)&&!PV(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){if(ZJ(e.get("key"))===t)return e}return null},CV=e=>"string"==typeof e,wV=e=>{const{raw:t,extra:n,value:r}=e.node||e;return CV(t)?t:n&&CV(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};const{isStatement:kV,isBlockStatement:IV,blockStatement:_V,expressionStatement:NV}=Me,LV=(e,t)=>{const{parentPath:n}=e;return t&&!kV(t)||IV(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=_V([NV(e.node)]),{currentPath:n.get("body.body.0")})},{isExpression:DV,toStatement:OV,expressionStatement:MV}=Me,FV=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:DV(e)?MV(e):OV(e)},{isSequenceExpression:BV}=Me,jV=(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(FV);!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}=LV(e),c=u.replaceWithMultiple(o);return c.length?(s||BV(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};const{assign:RV}=Object,UV=(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}=LV(e,t);return i.replaceWith(t),RV(i.node,{comments:n,loc:r}),i};const{matchesPattern:$V,isImportDeclaration:qV,isExportDeclaration:JV,isStatement:VV,expressionStatement:KV}=Me,XV=(e,t)=>{e.insertBefore(t)},WV=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,VV(e)&&!VV(t)?e.insertAfter(KV(t)):e.insertAfter(t),e.node.comments=n},HV=e=>$V(e.node||e,"module.exports"),zV=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},YV=e=>{const t=e.length;let n=0;for(;n<t-1&&qV(e[n]);)++n;return e[n]},GV=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(qV(e))return!0;if(JV(e))return!0}return!1};var QV=Object.freeze({__proto__:null,compute:rV,extract:ZJ,findBinding:zV,getBinding:NJ,getBindingPath:LJ,getExportDefault:pV,getLiteralRaw:wV,getPathAfterImports:YV,getPathAfterRequires:mV,getProperties:vV,getProperty:AV,insertAfter:WV,insertBefore:XV,isESM:GV,isModuleExports:HV,isSimple:jJ,remove:oV,rename:hV,renameProperty:dV,replaceWith:UV,replaceWithMultiple:jV,setLiteralValue:fV,toExpression:FV,traverseProperties:SV});const{isObjectExpression:ZV,isArrayExpression:eK,isObjectProperty:tK,isCallExpression:nK,isAwaitExpression:rK,isBooleanLiteral:iK,isNullLiteral:sK,isStringLiteral:aK,isSpreadElement:oK,isIdentifier:uK}=Me,{round:cK}=Math,lK=!1,pK=!0;const dK=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!uK(n)&&n.node.name.length<t}(t,r)?lK:t.length>n&&aK(i)||t.length>3&&!ZV(i)||sU(t)?pK: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()||!jJ(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return oK(t)})(t)||2===t.length&&aU(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||xK(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>iK(e)&&jJ(t))(t)||(([e,t])=>sK(e)&&jJ(t))(t)||(([e,t])=>{if(jJ(e))return nK(t)||rK(t)})(t)||mK(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 cK(i/r)>2}(t)||yK(e)||oU(t)&&t.length<3||(([e,t])=>UR(e)&&XR(t))(t)||iU(t)||(([e,t])=>$R(e)&&UR(t))(t)||(([e,t])=>jJ(e)&&ZV(t))(t)||fK(t)&&e.parentPath.isArrayExpression()&&eK(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?lK: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)||nU(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!hK(e)&&gK(e)&&!bK(e)?pK:lK},hK=({parentPath:e})=>e.isForOfStatement(),fK=([e,t])=>aK(e)&&aK(t),mK=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!aK(a)||!aK(o))&&s<t)},yK=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!aK(s)||!aK(a))&&!nU(e)))};const gK=({parentPath:e})=>!e.isCallExpression(),bK=e=>e.find(tK);function xK(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>iK(e)&&ZV(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!oK(t[1])&&SK(t)))}const SK=e=>{const t=e.at(0),n=e.at(-1);return aK(t)&&ZV(n)},TK=e=>!!e.isSpreadElement()||!e.isObjectExpression(),{isStringLiteral:EK,isArrayExpression:PK}=Me,vK=e=>e.parentPath.isArrayExpression();function AK(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(PK).length,r=!PK(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}const CK=([e,t])=>!(!EK(e)||!EK(t))&&e.node.value.length>20,wK=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"],kK=e=>{const{type:t}=e;return!(!tU(e)||(e=>e.getPrevSibling().isObjectExpression())(e))&&wK.includes(t)},IK=e=>{const{type:t}=e.getNextSibling();return wK.includes(t)},{isObjectExpression:_K,isSpreadElement:NK,isStringLiteral:LK,isIdentifier:DK,isFunction:OK,isCallExpression:MK,isObjectProperty:FK}=Me,BK=e=>(e=>LK(e.getNextSibling()))(e)||(e=>LK(e.getPrevSibling()))(e),jK=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(OK(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},RK=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},UK=({parentPath:e})=>1===e.node.elements.length,$K={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!nU(t)&&(!(!iU(n)||!UK(e))||aU(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=!xK(e);t("[");const c=(e=>{const t=e.get("elements");if(AK(e))return!1;const[n]=t;return!CK(t)||!vK(e)&&((e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column})(n)})(e);n.indent.inc(c&&u);const l=dK(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&&TK(i);qK(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),_K(i)&&FK(e.parentPath)||n.print.newline((a||jK(i))&&!tU(i)&&!_K(i)),n.print.space(a&&kK(i)),!a&&r<p&&(t(","),!RK(i)&&i.isObjectExpression()&&IK(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(vK(e)&&oU(d)){const t=2===d.length,r=!BK(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else AK(e)||_K(o.at(-1))||n.indent(o.length&&l);!sU(o)||NK(o.at(-1))||MK(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!nU(t)&&(!(!iU(n)||!UK(e))||aU(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};function qK(e){if(!NK(e)&&!DK(e)&&!MK(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}const JK=Hq((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("]")}),VK={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")}};const KK=Hq((e,{print:t})=>{t("..."),t("__argument")}),XK=()=>{},WK=XK,HK=XK,zK=E$({checkParens:!1,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))},print(e,t){const{write:n,traverse:r,indent:i,maybe:s}=t,a=e.get("expressions"),o=a.length-1,u=gU(e);u&&(i.inc(),n.breakline(),((e,{print:t})=>{if(gU(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}})(e,t));for(const[e,t]of a.entries())r(t),e<o&&(n(","),s.write.space(!u),s.print.breakline(u));u&&(i.dec(),n.breakline())}});zK.printLeadingCommentLine=WK,zK.printLeadingCommentBlock=HK;const YK=E$((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")):Vq(e)?((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()})(e,{print:t,indent:n}):(t("__left"),t.space(),t(e.node.operator),((e,{print:t})=>{const{right:n}=e.node;"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()})(e,{print:t}),void t("__right"))}),{isLogicalExpression:GK,isReturnStatement:QK,isVariableDeclarator:ZK}=Me,eX=e=>{const[t]=tX(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]};function tX(e){let t=0;do{++t;const n=e.get("right");GK(n)&&(t+=tX(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}const nX=E$({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]=eX(e);if(!(e=>QK(e)||ZK(e))(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")}});const rX=E$((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")}),iX=sX;function sX(e,t){const{print:n,maybe:r}=t,{options:i}=e.node;n("import("),n("__source"),r.print(i,","),r.print.space(i),n("__options"),n(")")}const{isJSXElement:aX}=Me,oX={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!aX(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}},uX=U$((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 "),J$(e,t),q$(e,t),c.print(o,"?"),zq(e,t),rU(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()}),cX=uX,lX=uX,pX={print(e,{print:t,indent:n}){n(),t("with"),t.space(),t("("),t("__object"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>QR(e),after(e,{print:t}){t.linebreak(),PU(e)}},dX=e=>e.node.directives?e.get("directives"):[],hX=e=>!eU(e),fX={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[hX],after(e,{print:t}){t.newline()}},mX=e=>e.parentPath.isSwitchCase(),yX={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!hU(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[GR,ZR,mX,pU]},{isVariableDeclaration:gX,isFunction:bX}=Me;const xX={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:()=>[QR],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!gX(t))return!1;const{declaration:n}=e.node;return bX(n)}(e))}};const SX=(e,{print:t},n)=>{const{roundBraces:r}=n,{node:i}=e;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(" ")},TX={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(),JU(l,t,n),rU(u)?(a("case"),SX(u,t,n),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("}"),QR(e)||eU(e)||r.newline()},afterSatisfy:()=>[QR],after(e,{print:t}){t.breakline(),t.newline()}},EX={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=>QR(e),after(e,{print:t}){t.linebreak(),PU(e)}},{isExportNamespaceSpecifier:PX,isVariableDeclaration:vX,isExportNamedDeclaration:AX,isExportDefaultSpecifier:CX}=Me,wX={maxOneLineSpecifiers:2},kX={beforeIf(e){const t=e.getPrevSibling();return!AU(e)&&vX(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}=wX,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),PX(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!eU(e));const p=u.length,d=!rU(l)||p>c;if(u&&!e.node.declaration){t.space();const[s,...o]=u;if(u.length)if(CX(s)&&!o.length)n(s);else{CX(s)?(n(s),t(","),t.space()):o.unshift(s),t("{"),r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of o.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("}")}else t("{}");const c=e.get("source");return rU(c)&&(t(" from "),n(c)),t(";"),void i.print.newline(QR(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!eU(e)&&(!(e=>vU(e.get("declaration")))(e)&&(!!dU(e)||GR(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();AX(r)&&n(),t.newline(),PU(e)}};const{isExportDeclaration:IX}=Me,_X={print(e,t,n){const{print:r,maybe:i,write:s,traverse:a,indent:o}=t,{phase:u}=e.node,c="type"===e.node.importKind,l=e.get("specifiers");o(),s("import"),i.write(c," type"),i.write(u,` ${u}`);let p=!1;const d=l.length-1,{defaults:h,namespaces:f,imports:m}=(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}})(l);i.write(l.length," ");for(const e of h)a(e.get("local")),i.write(d,","),i.write.space(d);for(const e of f)s("* as "),a(e.get("local"));const y=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}(m,n),g=m.length-1;for(const[e,t]of m.entries()){const n=e===g,r=!n,{imported:u,local:c}=t.node;if(o.inc(),i.write(!p,"{"),i.write.breakline(g>=y),p=!0,a(t.get("imported")),u.name!==c.name&&(s(" as "),s(c.name)),g<y&&r&&(i.write(d,","),i.write.space(d)),g>=y){i.write(d,",");const t=e===d,n=e===d-1;i.write.newline(n&&h.length),i.write.newline(t)}o.dec(),i.write(n,"}")}i.write(l.length," from"),r.space(),r("__source"),((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("}")}})(e,"with",t),r(";"),QR(e)&&r.newline()},afterIf:e=>!eU(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),PU(e)}};_X.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!IX(s)),r()},_X.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()};const NX={print(e,{print:t,maybe:n}){const{test:r,update:i,body:s}=e.node;if(n.indent(!hU(e)),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(r),t("__test"),t(";"),n.print.space(i),t("__update"),t(")"),s.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=>rU(e.getNextSibling()),after(e,{print:t}){t.linebreak(),PU(e)}},LX=e=>e.parentPath.isBlockStatement(),DX={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[QR,LX,pU],after(e,{print:t}){t.newline()}},OX={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:()=>[QR],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}};const{isJSXElement:MX}=Me,FX={beforeIf:e=>!AU(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||(e=>e.getPrevSibling().isBlockStatement())(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;r.indent(!hU(e)),i("return");const s=e.get("argument");if(SX(s,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return MX(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)||!eU(e)&&(!eU(e.parentPath)&&bU(e)),after(e,{print:t}){t.newline()}};const{isReturnStatement:BX,isExpressionStatement:jX,isMemberExpression:RX,isCallExpression:UX}=Me;function $X(e){return!!RX(e)&&jX(e.parentPath.parentPath)}function qX(e){if(!UX(e))return!1;const{parentPath:t}=e;return!!BX(t)||jX(t)}const{isArrowFunctionExpression:JX,isObjectMethod:VX,isFunctionDeclaration:KX,isExportDeclaration:XX,isDoWhileStatement:WX,isBlockStatement:HX,isArrayExpression:zX}=Me,YX=e=>JX(e)||VX(e),GX={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=dX(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!zX(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=(e=>{if(!UX(e.parentPath.parentPath))return!1;const t=e.find($X);if(t)return n$(t);const n=e.find(qX);if(!n)return!1;const r=n.get("callee");return n$(r)})(e);s.indent.inc(p);for(const e of u)o(e);y$(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;VX(d)&&s.write(QR(d)||r,",")},afterIf:function(e){return rW(e)?tW:iW(e)?nW:QX(e)?tW:ZX(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||eW(e)||eU(e)||function(e){return!!KX(e.parentPath)&&(!!XX(e.parentPath?.parentPath)&&!QR(e.parentPath?.parentPath))}(e)?nW:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&rU(n)}(e)},after(e,{write:t}){t.newline(),PU(e.parentPath)}},QX=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(YX),ZX=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!QR(t)},eW=({parentPath:e})=>/FunctionExpression/.test(e.type),tW=!0,nW=!1,rW=({parentPath:e})=>HX(e),iW=fU([({parentPath:e})=>WX(e),e=>!QR(e)&&(!QR(e.parentPath)&&YR(e.parentPath)),e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!rU(t)}]);const sW={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!(e=>e.node===e.parentPath.node.body?.[0])(e)&&!AU(e))},before(e,{print:t}){t.linebreak(),EU(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&&!eU(e)&&!QR(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(vU(a),e)},afterIf:QR,after(e,{print:t}){t.linebreak(),PU(e)}},{isBlockStatement:aW,isFunctionDeclaration:oW,isStatement:uW,isExpressionStatement:cW,isReturnStatement:lW,isContinueStatement:pW}=Me,dW=e=>!aW(e)&&(!lW(e)&&(!pW(e)&&!cW(e))),hW={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),(pU(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():(r.write.newline(dW(u)),t()),i("else "),s(c)):rU(c)&&(r.write.newline(p||dW(u)),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!QR(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||uW(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!aW(t)&&!!aW(e.node.consequent)&&!e.node.consequent.body.length&&oW(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[QR],after:(e,{print:t})=>{t.linebreak(),PU(e)}},{isExportDeclaration:fW}=Me,mW=e=>e.parentPath.isTSModuleBlock(),yW=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),gW=e=>e.parentPath.isSwitchCase(),bW={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(AU(e))return!1;if(AU(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!fW(e.parentPath)&&nU(e))},before(e,{print:t}){t.breakline()},print:pq((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),((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(" ")})(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),rU(d)&&(r.space(),r("="),t.write.space(!Vq(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}JU(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(yW(e)||gW(e)||mW(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;gW(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),yW(e)&&QR(e)&&(bU(e)||dU(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[AW,CW,xW,TW,wW,PW,EW,dU,SW,mW],after(e,{maybe:t,store:n}){const r=n();if(vW(e.parentPath)&&!e.parentPath.isBlockStatement()||!yW(e)&&!mW(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};function xW(e){return!QR(e)&&e.parentPath.isBlockStatement()}function SW(e){return!vW(e.parentPath)&&e.parentPath.isExportDeclaration()}function TW(e){return!vW(e)&&nU(e)}function EW(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!rU(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!vW(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function PW(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!rU(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&nU(t))}const vW=e=>e.parentPath?.isProgram()&&!QR(e);const AW=e=>e.getNextSibling().isIfStatement(),CW=e=>e.getNextSibling().isFunctionDeclaration(),wW=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()},{isExpressionStatement:kW,isFunction:IW,isAssignmentExpression:_W}=Me,{isBlockStatement:NW,isProgram:LW,isIfStatement:DW}=Me,{isCallExpression:OW,isExpressionStatement:MW,isAssignmentExpression:FW}=Me,BW=({parentPath:e})=>e.isReturnStatement(),jW=(e=>(...t)=>!e(...t))(BW),RW=fU([function(e){return!eU(e)&&!(e=>eU(e.parentPath))(e)},GR,QR,function(e){return e.findParent(QR)}]),UW=fU([dU,function(e){return e.parentPath.get("body")===e},e=>e.getNextSibling().isIfStatement()]),$W={beforeIf:e=>!BW(e)&&!hU(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:n,store:r,indent:i}){const s=BW(e);if(t("__expression"),n.print(!s,";"),QR(e)&&!s&&UW(e)){t.newline();const n=QR(e)&&bU(e)||function(e){if(FW(e.node.expression))return!1;const t=e.getNextSibling();if(!MW(t))return!1;const{expression:n}=t.node;return OW(n)}(e)||function(e){const{expression:t}=e.node;return!!OW(t)&&(!!OW(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);n&&i(),r(!0)}},afterIf:e=>!!RW(e)||(!(!yU(e)||!eU(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:r,indent:i}){yU(e)&&eU(e)&&nU(e)&&t.breakline(),yU(e)&&!nU(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()&&eU(n)}(e)||jW(e)&&((e=>{const{expression:t}=e.node;if(!_W(t))return!1;const n=e.getNextSibling();if(IW(n)&&n.node.leadingComments)return!0;if(!kW(n))return!1;const{leadingComments:r}=n.node;return!!r&&!!_W(n.node.expression)&&IW(n.node.expression.right)})(e)&&i(),t.newline(),n.markAfter(r(),e))}};$W.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;yU(u)||(r||u.node||!DW(c)&&!NW(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},$W.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();yU(s)||(NW(e.parentPath)&&!LW(e.parentPath.parentPath)&&i(),r())};const qW=(e,t,{write:n,traverse:r})=>{n("`");let i=0;for(const s of e){n(s.node.value.raw);const e=t[i++];e&&(n("${"),r(e),n("}"))}n("`")},JW=E$(Hq((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of(e=>e.node.decorators?e.get("decorators"):[])(e))i(t),s(" ");n(o),r.write(u,"?")})),{isMemberExpression:VW}=Me,KW=(e,{print:t,maybe:n})=>{const{expression:r}=e.node,i=VW(r);t("@"),n.print(i,"("),t("__expression"),n.print(i,")")};KW.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()};const XW=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?WW(r,{slash:"\\",quote:"'"}):t?WW(r,{slash:"\\",quote:'"'}):e},WW=(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("")};const HW={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:pq((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(eU(e)||eU(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!QR(e)&&!ZR(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),PU(e)}},{isTSConditionalType:zW}=Me,YW=e=>e.parentPath.isExportNamedDeclaration(),GW={beforeIf:e=>!YW(e),before:(e,{indent:t})=>{t()},print:pq((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),x$(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(QR(e)||QR(e.parentPath)||YW(e))&&t.newline()}},QW={print:pq((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:()=>[QR],after(e,{print:t}){t.newline(),t.newline()}},{isTSTypeAliasDeclaration:ZW,isExportNamedDeclaration:eH,isTSModuleBlock:tH}=Me,nH={print:pq((e,{print:t,maybe:n})=>{const{node:r}=e,{typeParameters:i}=r;if(n.indent(!eH(e.parentPath)),t("interface "),t("__id"),t("__typeParameters"),r.extends){(!i||i.length<2)&&t(" "),t("extends ");const r=e.get("extends"),s=r.length-1;for(const[e,i]of r.entries())t(i),n.print(e<s,", ")}t("__body")}),afterSatisfy:()=>[QR,ZR],after(e,{print:t}){t.linebreak();const n=eH(e.parentPath);n&&(e=>tH(e.parentPath.parentPath))(e)&&PU(e),n||ZW(e)||t.newline()}},{isVariableDeclarator:rH,isObjectExpression:iH}=Me,sH=E$((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!rH(e.parentPath)&&iH(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});const aH=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),q$(e,t),n.print(i,"?"),zq(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),QR(e)&&yU(e)&&r.newline()};aH.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;i.breakline(),r(),i.breakline()},aH.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{print:i,maybe:s}=t;s.print.breakline(!(e=>e.getPrevSibling().node)(e)),r(),i.indent()},aH.printTrailingCommentBlock=()=>{};const oH=e=>e.node.returnType,uH=(e,{traverse:t})=>{t(e.get("returnType"))},cH=E$((e,t,n)=>{const{print:r}=t;x$(e,t,n),r.space(),r("=>"),r.space(),uH(e,t)}),lH={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("}"),eU(e)||(t.newline(),PU(e))},afterSatisfy:()=>[QR,ZR],after(e,{print:t}){t.linebreak()}};const pH=E$({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)}});const dH={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[QR],after:(e,{print:t})=>{t.newline()}},hH=E$((e,{print:t})=>{t("infer "),t("__typeParameter")}),fH=(e,{print:t,maybe:n,indent:r})=>{const{decorators:i,readonly:s,accessibility:a}=e.node,o=i?.length>1;if(n.print.breakline(o),i){for(const r of e.get("decorators"))n.indent(o),t(r);n.print.breakline(o),gU(e)?t(" "):r()}a&&(t(a),t.space()),s&&(t("readonly"),t.space()),t("__parameter"),gU(e)&&!e.node.decorators&&t.breakline()};fH.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};const{isTSUnionType:mH}=Me,yH=()=>{};const gH=E$((e,{print:t})=>{t("typeof "),t("__exprName")}),{isJSXElement:bH,isJSXExpressionContainer:xH,isFunction:SH,isJSXSpreadAttribute:TH}=Me,EH={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){if(function(e){const{attributes:t}=e.node.openingElement;for(const e of t){const{value:t}=e;if(TH(e))return!0;if(!xH(t))continue;const{expression:n}=t;if(SH(n))return!0}return!1}(e))return!1;const t=e.parentPath.isArrowFunctionExpression(),n=e.parentPath.isJSXElement(),r=e.parentPath.parentPath.isCallExpression();return n||t&&r}(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;bH(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};const PH={condition:e=>nU(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()}},vH={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=nU(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);nU(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}},AH={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(")")}};var CH=Object.freeze({__proto__:null,ArrayExpression:$K,ArrayPattern:JK,ArrowFunctionExpression:A$,AssignmentExpression:kJ,AssignmentPattern:VK,AwaitExpression:rq,BigIntLiteral:(e,{write:t})=>{t(e.node.raw)},BinaryExpression:YK,BlockStatement:GX,BooleanLiteral:(e,{write:t})=>{t(e.node.value)},BreakStatement:yX,CallExpression:xq,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))},ClassAccessorProperty:(e,t,n)=>{uX(e,t,n,{accessor:!0})},ClassDeclaration:gq,ClassExpression:yq,ClassMethod:Y$,ClassPrivateMethod:G$,ClassPrivateProperty:lX,ClassProperty:cX,ConditionalExpression:rX,ContinueStatement:(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!hU(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()},DebuggerStatement:DX,Decorator:KW,Directive:(e,{print:t,maybe:n})=>{n.print.breakline(e.node.leadingComments?.length),t("__value")},DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()},DoWhileStatement:fX,EmptyStatement:(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!eU(e)&&!eU(r))},ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()},ExportDefaultDeclaration:xX,ExportDefaultSpecifier:(e,{print:t})=>{t("__exported")},ExportNamedDeclaration:kX,ExportNamespaceSpecifier:(e,{print:t})=>{t("* as "),t("__exported")},ExportSpecifier:(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},ExpressionStatement:$W,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")},ForOfStatement:sW,ForStatement:NX,FunctionDeclaration:M$,FunctionExpression:Z$,Identifier:JW,IfStatement:hW,ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},ImportDeclaration:_X,ImportExpression:iX,InterpreterDirective:(e,{print:t})=>{t(`#!${e.node.value}\n`),t.newline()},JSXAttribute:PH,JSXClosingElement:(e,{print:t})=>{t("</"),t("__name"),t(">")},JSXClosingFragment:(e,{write:t})=>{t("</>")},JSXElement:EH,JSXEmptyExpression:(e,t,n)=>{y$(e,t,n)},JSXExpressionContainer:(e,{print:t})=>{t("{"),t("__expression"),t("}")},JSXFragment:AH,JSXIdentifier:(e,{write:t})=>{t(e.node.name)},JSXMemberExpression:(e,{print:t})=>{t("__object"),t("."),t("__property")},JSXOpeningElement:vH,JSXOpeningFragment:(e,{write:t})=>{t("<>")},JSXSpreadAttribute:(e,{print:t,maybe:n})=>{const r=nU(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXText:(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=QR(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))},LabeledStatement:(e,{print:t,maybe:n})=>{n.indent(!hU(e)),t("__label"),t(":"),t.space(),t("__body")},LogicalExpression:nX,MemberExpression:uq,MetaProperty:(e,{write:t})=>{t("import.meta")},NewExpression:vq,NullLiteral:(e,{write:t})=>{t("null")},NumericLiteral:(e,{write:t})=>{const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},ObjectExpression:(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=kq(e)||function({parentPath:e}){return!!Dq(e)&&!!Dq(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||(({parentPath:e})=>{if(!Iq(e))return!1;const[,t]=e.node.elements;return _q(t)&&!!Nq(t)})(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=!Rq(e);s.print(l,"("),i("{"),y$(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()&&n$(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=Oq(t);xU(t)&&s.indent(c>1||n||p),i(t),bU(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&xU(t)),i(t),t.isObjectMethod()||bU(t)&&!Mq(t)&&(s.print.newline(p),s.print.linebreak(dU(t)))}o?(kq(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return Lq(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)},ObjectMethod:Q$,ObjectPattern:xJ,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=!Rq(e.parentPath);q$(e,t),i||(o(":"),s.write.space(!Vq(u)),a(u)),p?s.write(!l||r,","):!l&&c.length&&o(", ")},OptionalCallExpression:Sq,OptionalMemberExpression:cq,ParenthesizedExpression:oX,PrivateName:(e,{print:t})=>{t("#"),t("__id")},Program:(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),y$(e,t,n);const o=dX(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&(e=>{const t=mU(e);return t?.trailingComments?.length>1})(r.at(-1))||a.endOfFile()},RegExpLiteral:(e,{print:t})=>{const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},RestElement:KK,ReturnStatement:FX,SequenceExpression:zK,SpreadElement:(e,t)=>{const{print:n}=t;n("..."),n("__argument"),yU(e)&&n(",")},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()},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(XW(s,n)),t.quote()},Super:(e,{write:t})=>{t("super")},SwitchStatement:TX,TSAnyKeyword:(e,{write:t})=>{t("any")},TSArrayType:(e,{print:t})=>{t("__elementType"),t("[]")},TSAsExpression:sH,TSBigIntKeyword:(e,{write:t})=>{t("bigint")},TSBooleanKeyword:(e,{write:t})=>{t("boolean")},TSCallSignatureDeclaration:(e,t,n)=>{const{print:r}=t;x$(e,t,n),r(":"),r.space(),uH(e,t),r(";"),r.newline()},TSClassImplements:(e,{print:t})=>{t("__expression"),t("__typeArguments")},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()},TSConstructSignatureDeclaration:(e,t,n)=>{const{write:r}=t;r("new"),x$(e,t,n),oH(e)&&(r(":"),r.space(),uH(e,t)),r(";"),r.newline()},TSConstructorType:(e,t,n)=>{const{print:r}=t;r("new"),r(" "),x$(e,t,n),r.space(),r("=>"),r.space(),uH(e,t)},TSDeclareFunction:GW,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"),x$(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()},TSEnumDeclaration:lH,TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))},TSExportAssignment:dH,TSExternalModuleReference:(e,{print:t})=>{t("require("),t("__expression"),t(")")},TSFunctionType:cH,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(QR(e))},TSImportType:(e,t)=>{sX(e,t)},TSIndexSignature:(e,t)=>{const{print:n}=t;n("["),n("__parameters.0"),n("]"),zq(e,t),n(";"),n.newline()},TSIndexedAccessType:(e,{print:t})=>{t("__objectType"),t("["),t("__indexType"),t("]")},TSInferType:hH,TSInstantiationExpression:(e,{print:t})=>{t("__expression"),t("__typeArguments")},TSInterfaceBody:(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(function(e){const{body:t}=e.node;if(!t.length)return!1;const[n]=t,{leadingComments:r}=n;return!r}(e)),a.inc(),y$(e,t,n);for(const[e,t]of r.entries())!e&&t.node.leadingComments||a(),i(t);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))},TSInterfaceDeclaration:nH,TSInterfaceHeritage:(e,{print:t})=>{t("__expression"),t("__typeArguments")},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())}},TSLiteralType:(e,{print:t})=>{t("__literal")},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(!zW(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")},TSMethodSignature:(e,t,n)=>{const{write:r}=t;J$(e,t),q$(e,t),x$(e,t,n),oH(e)&&(r(":"),r.space(),uH(e,t)),r(";"),r.newline()},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("}")},TSModuleDeclaration:QW,TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")},TSNeverKeyword:(e,{write:t})=>{t("never")},TSNonNullExpression:(e,{print:t})=>{t("__expression"),t("!")},TSNullKeyword:(e,{write:t})=>{t("null")},TSNumberKeyword:(e,{write:t})=>{t("number")},TSObjectKeyword:(e,{write:t})=>{t("object")},TSOptionalType:(e,{print:t})=>{t("__typeAnnotation"),t("?")},TSParameterProperty:fH,TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")},TSPropertySignature:aH,TSQualifiedName:(e,{print:t})=>{t("__left"),t("."),t("__right")},TSRestType:(e,{print:t})=>{t("..."),t("__typeAnnotation")},TSSatisfiesExpression:(e,{print:t})=>{t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSStringKeyword:(e,{write:t})=>{t("string")},TSSymbolKeyword:(e,{write:t})=>{t("symbol")},TSTemplateLiteralType:(e,t)=>{const n=e.get("quasis"),r=e.get("types");qW(n,r,t)},TSThisType:(e,{print:t})=>{t("this")},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("]")},TSTypeAliasDeclaration:HW,TSTypeAnnotation:(e,{print:t})=>{t("__typeAnnotation")},TSTypeAssertion:(e,{print:t})=>{t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSTypeLiteral:(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const{parentPath:t}=e,{length:n}=e.get("members");return!!n&&(n>1||!t.isTSTypeParameterInstantiation())}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")},TSTypeOperator:(e,{write:t,print:n})=>{const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSTypeParameter:(e,{write:t,traverse:n})=>{const r=e.get("constraint");e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),rU(r)&&(t(" extends "),n(r));const i=e.get("default");rU(i)&&(t.space(),t("="),t.space(),n(i))},TSTypeParameterDeclaration:(e,t,n)=>{const{print:r,indent:i}=t,s=function({node:e}){const{params:t}=e;for(const{constraint:e}of t)if(mH(e))return!0;return!1}(e),a=H$({isNewline:s,printer:t});x$(e,t,n,{printSpace:a,braceOpen:"<",braceClose:">",printAfterOpen:s?()=>{i.inc(),r.breakline()}:yH,printBeforeClose:s?()=>{i.dec(),r.breakline()}:yH,printAfterClose:s?()=>{r.breakline()}:yH})},TSTypeParameterInstantiation:(e,t,n)=>{x$(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypePredicate:(e,{print:t})=>{t("__parameterName"),t(" is "),t("__typeAnnotation")},TSTypeQuery:gH,TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")},TSUndefinedKeyword:(e,{write:t})=>{t("undefined")},TSUnionType:pH,TSUnknownKeyword:(e,{write:t})=>{t("unknown")},TSVoidKeyword:(e,{write:t})=>{t("void")},TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")},TemplateLiteral:(e,t)=>{const n=e.get("expressions"),r=e.get("quasis");qW(r,n,t)},ThisExpression:(e,{write:t})=>{t("this")},ThrowStatement:(e,{print:t,indent:n,maybe:r})=>{n(),sq("throw",{print:t}),t(";"),r.print.newline(!eU(e)),r.print.breakline(QR(e))},TryStatement:OX,UnaryExpression:tq,UpdateExpression:nq,VariableDeclaration:bW,VoidPattern:(e,{write:t})=>{t("void")},WhileStatement:EX,WithStatement:pX,YieldExpression:iq});const wH=e=>()=>e,{keys:kH}=Object;function IH(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]}var _H=((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):kH(t);for(const e of i){const[i,s]=IH(e,t,n),a=wH(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r}).default;const NH=e=>{const t=e?.()||[];return fU(t)},{isProgram:LH,isFile:DH,isStatement:OH,expressionStatement:MH,program:FH,file:BH}=Me,jH=(e,t,n)=>{if(e)throw Error(_H(n,{path:t,type:t.type}))},RH=e=>OH(e)?e:MH(e),UH=e=>DH(e)?e:BH((e=>LH(e)?e:FH([RH(e)]))(e)),$H=(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}=(e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:NH(n),beforeIf:NH(r),...e}})(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 qH=function(e){return(e=e.replace(VH,function(e){return" "+(e.toLowerCase()||e)})).trim().split(JH).join("_")},JH=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,VH=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const{stringify:KH}=JSON,{LOG:XH,LOG_ALL:WH,LOG_TOKENS:HH,LOG_TERM:zH,LOG_DEBUG:YH}={};function GH(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}const QH=e=>"boolean"==typeof e,ZH={arrow:!0,sequence:!0,assign:!1,new:!0},ez={arrow:!0,sequence:!0,assign:!0,new:!0},tz={arrow:!1,sequence:!1,assign:!1,new:!1},nz=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...ZH,...e}:QH(e)&&e?ez:QH(e)&&!e?tz:ZH;var t},rz=({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1},iz=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),sz=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...rz(e),...t,roundBraces:nz(t)}),az=e=>e&&"object"==typeof e,{round:oz}=Math,{assign:uz,freeze:cz}=Object,lz=e=>{const t=(({newline:e="\n",store:t=GH()}={})=>({type:n,value:r})=>{if(HH)console.log(Yk(KH({type:n,value:r}),{},{highlightCode:!0}));else if(WH)console.log(Yk(r,{},{highlightCode:!0}));else{if(XH){if(r===e)return void console.log(Yk(t(),{},{highlightCode:!0}));t(r)}zH&&C.stdout.write(r)}})();return n=>{t(n),e.push(n)}},pz=(e,n)=>{const{visitors:r,format:i,semantics:s}=((e={})=>{const{format:t,semantics:n,visitors:r}=e,i=iz(t);return{format:i,semantics:sz(i,n),visitors:r}})(n),a=[],o=lz(a),u=(e=>t=>{YH&&e.push({type:FR,value:`/*__${qH(t)}*/`})})(a),c=e=>{o({type:LR,value:e})},l=()=>{o({type:MR,value:dz(S,i.indent)})},p=()=>{o({type:DR,value:i.newline})},d=e=>e&&p(),h=()=>{p(),l()},f=e=>e&&h(),m=()=>{l(),p()},y=e=>e&&m(),g=(e,t)=>e&&c(t),b=()=>{o({type:BR,value:i.space})},x=e=>e&&b();let S=0;uz(l,{inc:()=>++S,dec:()=>--S});const T=()=>{o({type:jR,value:i.quote})};uz(c,{indent:l,newline:p,linebreak:m,breakline:h,space:b,splitter:()=>{o({type:OR,value:i.splitter})},quote:T,endOfFile:()=>{o({type:RR,value:i.endOfFile})}}),uz(g,{newline:d,breakline:f,linebreak:y,space:x});const E={indent:e=>e&&l(),markAfter:TU,write:g,space:x};uz(E.indent,{inc:e=>e&&l.inc(),dec:e=>e&&l.dec()});const P=cz({indent:l,write:c,debug:u,traverse:A,maybe:E,quote:T,store:t()}),v={...CH,...r};function A(e){const{type:t}=e,n=v[t];if(!e.node)return;const r=hz(e,{write:c,traverse:A});uz(r,c,{space:b,round:oz});const i={...P,print:r},a=(e,t)=>e&&r(t);uz(a,{newline:d,breakline:f,linebreak:y,space:x}),uz(i.maybe,{print:a}),jH(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const o=S;JU(e,i,s,{currentTraverse:n}),$H(n,e,i,s),f$(e,i,s,{currentTraverse:n}),jH(S!==o,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),u(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,A):_R(UH(e),{Program(e){A(e),e.stop()}}),a};function dz(e,t){let n="";for(++e;--e>0;)n+=t;return n}const hz=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=fz(e,r);return az(i)?t(i):n(i)},fz=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(az(t),t);var mz=new RegExp(/(^[ \t]*\n)/,"gm"),yz=function(e){return e.replace(mz,"")}.default;const gz=["__putout_processor_json","__putout_processor_yaml","__putout_processor_filesystem","__putout_processor_ignore"];const{isCallExpression:bz,isIdentifier:xz}=Me,Sz=(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(!bz(r))return!1;const{callee:i}=r;return!!xz(i)&&(e=>{for(const t of gz)if(!e.indexOf(t))return!0;return!1})(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const Tz=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=Sz(e,t);return(e=>{const t=(e=>{const t=[];for(const{value:n}of e)t.push(n);return t})(e);return t.join("")})(pz(e,n))};function Ez(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function Pz(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}var vz=(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&&!Ez(n)&&(t[e]=Pz(t[e+1]))}return t.join("\n")}).default;const Az={alignSpaces:!0},{isArray:Cz}=Array,wz=(e,t={})=>{const[n="putout",r]=(i=t.printer,Cz(i)?i:[i,{}]);var i;return"babel"===n?((e,t)=>{const{source:n,alignSpaces:r}={...Az,...t};let{code:i}=lD(e,n&&{experimental_preserveFormat:!0,retainLines:!0},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?vz(i):i})(e,{...t,...r}):Tz(e,r)},{isFunctionExpression:kz,objectMethod:Iz}=Me,{assign:_z}=Object;function Nz(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{classPrivateMethod:Lz,classMethod:Dz,privateName:Oz,identifier:Mz}=Me,{assign:Fz}=Object;var Bz=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(jz(t)){const s=function(e){return Oz(Mz(e.name))}(t);return Lz(e,s,n,r,i)}return Dz(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),Fz(e.node,{loc:s,expression:u,generator:c})};const jz=({type:e})=>"PrivateIdentifier"===e;const{identifier:Rz}=Me;const{directive:Uz,directiveLiteral:$z}=Me;const{assign:qz}=Object;const Jz=({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)},Vz=({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)},Kz=e=>{for(const t of e)t.type=Xz(t);return e},Xz=({type:e})=>`Comment${e}`;function Wz({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}var Hz=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")};const zz=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{isObjectExpression:Yz,isExportDeclaration:Gz}=Me,Qz={convertParens:!0},Zz=(e,t)=>{const n=(e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:Kz(t),tokens:n}})(e),r={...Qz,...t};return _R(n,{noScope:!0,ParenthesizedExpression:Jz(r),TSParenthesizedType:Vz(r),enter(e){const{type:t,node:n}=e;return t.endsWith("Literal")?(Hz(n),eY(n)):"JSXText"===t?eY(n):"BlockStatement"===t||"Program"===t?(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=$z(e.directive),i=Uz(r);t.directives.push(i),n.remove()}}})(e):"Property"===t?function(e){e.type="ObjectProperty"}(n):"MethodDefinition"===t?Bz(e):"FieldDefinition"===t?(e=>{e.node.type="ClassPrivateProperty"})(e):"PrivateName"===t?(({node:e})=>{e.name&&(e.id=Rz(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)})(e):"ImportDeclaration"===t?(e=>{const{attributes:t=[]}=e.node;e.node.attributes=t})(e):Gz(e)?(e=>{const{attributes:t=[]}=e.node;qz(e.node,{attributes:t})})(e):"ChainExpression"===t?(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)})(e):"TSAbstractMethodDefinition"===t?(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)})(e):"TSInterfaceHeritage"===t?(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}})(e):"PropertyDefinition"===t?(e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=zz(e))}e.node.type="ClassProperty"})(e):"PrivateIdentifier"===t?(e=>{e.replaceWith(zz(e.node))})(e):void 0},exit(e){const{node:t}=e;if((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=Wz(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=Xz(n),e[t].push(n)}}})(t),Yz(t))return(e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&kz(i)&&(t.replaceWith(Iz("method",n,i.params,i.body,e)),_z(t.node,{id:null,method:!0,generator:i.generator,loc:Nz(n,i),async:i.async,type:"ObjectMethod"}))}})(e.get("properties"))}}),n};function eY(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}var tY={},nY={exports:{}},rY=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 iY=rY;function sY(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function aY(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}nY.exports=iY(sY),nY.exports.strict=iY(aY),sY.proto=sY(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return sY(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return aY(this)},configurable:!0})});var oY=nY.exports;const uY=()=>{};var cY=e(Object.freeze({__proto__:null,default:uY}));var lY,pY,dY=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)}}}}),hY=e(dY);const fY=oY(()=>{const{Parser:e}=cY,t=(pY||(pY=1,lY=function(e){return e.extend(cY,cY,hY)}),lY),n=cY.default;return e.extend(n(),t)});var mY=["importMeta","importAttributes","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]];var yY=Object.freeze({__proto__:null,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowUndeclaredExports:!0});const{assign:gY}=Object,bY=e=>!e.indexOf("// @flow");function xY({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}const SY=oY(()=>cY);const TY=oY(()=>cY);const EY=oY(()=>cY);const PY=oY(()=>cY);const vY=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const AY=["has already been declared"];var CY=(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((e,t,n,r)=>{const[i,...s]=r,[a,o]=vY(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]=vY(e,t,n);if(!r)return i}throw a})(wY,e,AY,[s,a,o])};function wY(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){if("babel"===t)return((e,t)=>{const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=bY(e),isRecovery:a,printer:o}=t,u={sourceFileName:n,sourceType:"module",...yY,errorRecovery:a,plugins:(c=[...mY,...xY({isTS:r,isFlow:s,isJSX:i})],c.filter(Boolean))};var c;"babel"===o&&gY(u,{createParenthesizedExpressions:!0,tokens:!0});const l=dk(e,u);return l.program.extra.__putout_printer=o,l})(e,{isTS:r,isJSX:i,isRecovery:s,printer:n});if("object"==typeof t)return t.parse(e,{isJSX:i,isTS:r});if("espree"===t)return(e=>{const{parse:t}=SY();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})})(e);if("acorn"===t)return(e=>{const t=fY(),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}})(e);if("esprima"===t)return(e=>{const{parse:t}=TY();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})})(e);if("tenko"===t)return(e=>{const{Tenko:t}=EY(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n})(e);if("hermes"===t)return(e=>PY().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0}))(e);return tY.createRequire(import.meta.url)(t).parse(e)}const{assign:kY}=Object,IY=(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}=_Y({printer:r,parser:n,isTS:i,isJSX:s});return((e,...t)=>{const[n,r]=vY(e,...t);if(n)throw n.reason="parse",n;return r})(a,e)},_Y=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&kY(s,{convertParens:!1});return Zz(CY(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const NY=(e,t,n)=>lD(e,{comments:!1,...t},n);function LY(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}const{nanomemoize:DY=LY}=LY,OY={...yY,plugins:[...mY,"typescript","jsx"]},{isExpressionStatement:MY,isTSExternalModuleReference:FY}=Me,BY=e=>MY(e)||FY(e)?e.expression:e,jY=DY((e,t)=>{const n=UI(e,{...OY,...t});return(...e)=>{const t=n(...e);return BY(t)}});jY.extractExpression=BY,jY.ast=DY((e,t)=>{const n=UI.ast(e,{...OY,...t});return BY(n)}),jY.program=DY((e,t)=>UI.program(e,{...OY,...t})),jY.program.ast=DY((e,t)=>UI.program.ast(e,{...OY,...t})),jY.ast.fresh=(e,t)=>{const n=UI.ast(e,{...OY,...t});return BY(n)};const RY=(e,t)=>e?`${e}\n${t}`:t,UY=e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]};function $Y(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 qY=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,JY=function(e){return qY.exec(e).slice(1)};function VY(){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=$Y(ZY(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function KY(e){var t=XY(e),n="/"===eG(e,-1);return(e=$Y(ZY(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function XY(e){return"/"===e.charAt(0)}function WY(){return KY(ZY(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 HY(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=VY(e).substr(1),t=VY(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 zY(e){var t=JY(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function YY(e,t){var n=JY(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function GY(e){return JY(e)[3]}var QY={extname:GY,basename:YY,dirname:zY,sep:"/",delimiter:":",relative:HY,join:WY,isAbsolute:XY,normalize:KY,resolve:VY};function ZY(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 eG="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)},tG=Object.freeze({__proto__:null,basename:YY,default:QY,delimiter:":",dirname:zY,extname:GY,isAbsolute:XY,join:WY,normalize:KY,relative:HY,resolve:VY,sep:"/"});const nG=async(e,...t)=>{!function(e){if(t=e,"function"!=typeof t)throw Error("fn should be a function!");var t}(e);try{return[null,await e(...t)]}catch(e){return[e]}};const rG=e=>()=>e,iG=()=>{},sG=(e,t={})=>{const{module:n=tY}=t,{createRequire:r=rG(iG)}=n;return r(e)},aG=async e=>{const t=await import(e);return t.default||t},oG=sG(import.meta.url),{assign:uG}=Object;async function cG(e,t){const{simpleImport:n,require:r}=t;let i,s;for(const t of e){if([i,s]=await nG(n,t),!i)return s;if("ERR_UNSUPPORTED_DIR_IMPORT"===i.code){const e=r.resolve(t);if([i,s]=await nG(n,e),!i)return s}if("ERR_MODULE_NOT_FOUND"!==i.code)throw uG(i,{message:`${t}: ${i.message}`}),i}throw uG(i,{message:i.message.replace(/\simported.*/,"")}),i}const lG=()=>C.env.PUTOUT_LOAD_DIR;function pG(e){const t=lG();if(!t)return[e];const n=WY(t,e);return[n,`${n}.js`]}const dG=e=>"string"==typeof e,{isArray:hG}=Array,{entries:fG}=Object,mG=e=>{const t=[];for(const n of e)if(dG(n))t.push([n]);else{if(hG(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...fG(n))}return t},{isArray:yG}=Array,gG=e=>"boolean"==typeof e,bG=e=>"string"==typeof e,xG=e=>"object"==typeof e,{entries:SG}=Object,{stringify:TG}=JSON,EG=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),PG=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${TG(e)}`),vG=()=>Object.create(null),AG=(e,t)=>(function(e,t){if(gG(t))return!0;if(/^(on|off)$/.test(t))return!0;if(xG(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),CG=e=>{const t=[];!function(e){if(yG(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of SG(e)){if(bG(r)){t.push({rule:n,state:AG(n,r),plugin:null,msg:"",options:vG()});continue}if(gG(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:vG()});continue}if(!(yG(r)&&r.length)){if(xG(r))throw PG(r);throw EG(r)}t.push(wG(n,r))}return t};function wG(e,t){const[n]=t,r=AG(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}}const kG=e=>e.split("/")[0];const IG=([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)}},_G=e=>e.includes("/")?e.split("/").shift():e,NG=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),LG=(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},DG=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},OG=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)},MG=e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e;(({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=NG(s);if(n=e===t,r=e===_G(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}'`)}})({rules:n,items:mG(t)})},FG=({rules:e,pluginNames:t})=>{const n=(e=>{const t={};for(const[n,r]of SG(e))n.includes("/")&&AG(n,r)&&(t[kG(n)]="on"),t[n]=r;return t})(e),r=(e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t})(CG(n));return{items:mG(t),loadedRules:r,cookedRules:CG(e)}},BG=["find","traverse","replace","include","exclude","rules","declare","scan"];var jG=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of BG)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)};const{isArray:RG}=Array,UG=e=>RG(e)?e:["on",e],$G=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!LG(r,t))continue;const[e,s]=UG(i);qG(r,e,t)&&n.push(IG([r,s],t))}return n};function qG(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}const JG=((e,t={})=>{const{simpleImport:n=aG}=t;return async t=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await cG([oG.resolve(e)],{simpleImport:n,require:oG})}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(pG),s=Array.from(new Set([...r,...i]));return await cG(s,{simpleImport:n,require:oG})}})("plugin"),VG=async e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=FG({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!LG(i,t))continue;OG(i);const[e]=KG(i),a=s||JG(e);r.push(WG(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];jG({plugin:n,rule:t});const{rules:r}=n;r?s.push(...XG(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return $G({plugins:a,cookedRules:s})},KG=e=>[e,"putout"];function XG(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function WG(e){if(e.startsWith("import:")){return YY(e.replace("import:","")).replace("plugin-","")}return e}const{isArray:HG}=Array,zG=e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=FG({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!LG(r,t))continue;OG(r);const e=GG(r),[s,a]=YG(r),o=QG(i)||eQ({name:s,namespace:a});jG({plugin:o,rule:r});const{rules:u}=o;u?n.push(...ZG(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return $G({plugins:a,cookedRules:s})},YG=e=>[e,"putout"],GG=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),QG=e=>HG(e)?e[1]:e;function ZG(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function eQ({name:e,namespace:t}){const n=sG(import.meta.url),{loadPlugin:r}=n("../load/load.js");return r({name:e,namespace:t})}function tQ(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}let nQ="";function rQ(e,t){let n,r,i,s;const a=(...e)=>{if(!a.enabled)return;const r=Date.now(),i=r-(n||r);var s;n=r,e[0]=(s=e[0])instanceof Error?s.stack||s.message:s,"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-z%])/gi,(n,r)=>{if("%%"===n)return"%";o++;const i=t.formatters[r];if("function"==typeof i){const t=e[o];n=i.call(a,t),e.splice(o,1),o--}return n}),t.formatArgs.call(a,i,e),a.log(...e)};return a.extend=function(e,t=":"){return rQ(this.namespace+t+e,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(a,t),a.namespace=e,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!=r?r:(i!==nQ&&(i=nQ,s=function(e){for(const t of sQ)if(tQ(e,t))return!1;for(const t of iQ)if(tQ(e,t))return!0;return!1}(e)),s),set:e=>{r=e}}),a}let iQ=[],sQ=[];const aQ=["#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"];const oQ=console.debug||console.log||(()=>{}),uQ=function(){try{return localStorage}catch(e){}}(),cQ={useColors:!0,formatArgs:function(e,t){const{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;const r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let i=0,s=0;t[0].replace(/%[a-z%]/gi,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,r)},formatters:{j(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: ${e.message}`}}},inspectOpts:{},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`},log:oQ};function lQ(e,t){var n;const r=null!==(n=t&&t.color)&&void 0!==n?n:function(e,t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e[Math.abs(n)%e.length]}(aQ,e);return rQ(e,Object.assign(cQ,{color:r},t))}!function(e){nQ=e,iQ=[],sQ=[];const t=nQ.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?sQ.push(e.slice(1)):iQ.push(e)}(function(){let e;try{e=uQ.getItem("debug")||uQ.getItem("DEBUG")}catch(e){}return!e&&void 0!==C&&"env"in C&&(e=C.env.DEBUG),e||""}());const pQ=e=>{const t=lQ(e,{useColors:!0});return new Proxy(t,{apply:(t,n,r)=>(globalThis.__putout_debug?.(e,...r),t(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]})},{stringify:dQ}=JSON,hQ=pQ("putout:runner:fix");var fQ=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(hQ.enabled&&hQ(`${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: '${dQ(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]=vY(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}))};const mQ=e=>e.path||e[0]||e,yQ=(e,t)=>{const n=mQ(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:gQ}=Array;var bQ=e=>e?(e=>gQ(e)?e:[e])(e):[];const{stringify:xQ}=JSON,SQ=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${xQ(t)}'. More on using Includer: https://git.io/JqcMn`)},{values:TQ,entries:EQ,assign:PQ}=Object,vQ=e=>Array.from(e),AQ=e=>e.node,CQ=e=>vQ(e).filter(AQ),wQ=e=>e,kQ=OQ(),IQ=OQ(CQ),_Q=DQ({get:e=>TQ(e),set(e,t,n){e[t]=n}}),NQ=DQ({get:e=>TQ(e),set(e,t,n){e[t]=e[t]||{},PQ(e[t],n)}}),LQ=DQ({get:e=>TQ(e).map(CQ),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});function DQ({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=()=>EQ(n),r}}function OQ(e=wQ){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(vQ(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(vQ(n))},n}}const{merge:MQ}=_R.visitors,{assign:FQ}=Object,BQ=(e,t,n)=>{const r=[];return t[e]&&(SQ(e,t[e]),r.push(...bQ(t[e]()))),n[e]&&r.push(...bQ(n[e])),r};var jQ=(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}=RQ(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:NY,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);FQ(c,{include:BQ("include",o,c),exclude:BQ("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:MQ(i)}};function RQ(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=_Q(),o=kQ(),u=NQ(),c=kQ(),l=LQ(),p=IQ();return{push:(a,o)=>{const u=yQ(a,r),l=i||e.report(a,o);c({message:l,position:u}),fQ(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{merge:UQ}=_R.visitors;function $Q({rule:e,find:t,ast:n,options:r,template:i,traverse:s=_R}){const a=[],o=t(n,{traverse:qQ({rule:e,options:r,template:i,traverse:s}),generate:NY,types:Me,push:e=>{a.push(e)},options:r});return[...a,...o||[]]}const qQ=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=UQ(n({rule:e,visitor:s,options:t}));return r(i,a)},JQ=e=>void 0===e;var VQ=((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(!JQ(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n}).default;const KQ=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),XQ=e=>/__proto__|prototype/.test(e);var WQ=((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(!XQ(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=KQ(t)?[]:{}}r=r[n]}return i}).default;const HQ=/\.body\.0\.expression$/,zQ=/\.body\.0\.key$/,YQ=/\.body\.0$/,GQ=e=>e.replace(HQ,"").replace(zQ,"").replace(YQ,""),{isBlockStatement:QQ,isTSModuleBlock:ZQ,isBooleanLiteral:eZ,isIdentifier:tZ,isLiteral:nZ,isTemplateElement:rZ,isFunction:iZ,isImportDefaultSpecifier:sZ,isExportSpecifier:aZ,isRegExpLiteral:oZ,isJSXText:uZ,isJSXIdentifier:cZ,isJSXAttribute:lZ,isTSTypeReference:pZ,isTSTypeParameterDeclaration:dZ}=Me,hZ=e=>"string"==typeof e,fZ="__object",mZ="__array",yZ="__args",gZ="__type_params",bZ="__imports",xZ="__exports",SZ="__body",TZ="__jsx_children",EZ="__jsx_attributes",PZ="__",vZ="__identifier",AZ="__bool",CZ=/^__[a-z]$/,wZ=/__args__[a-z]$/,kZ=/^__identifier__[a-z]$/,IZ=/^__bool__[a-z]$/,_Z=[fZ,mZ,yZ,gZ,AZ,TZ,EZ,bZ,xZ,SZ,PZ,vZ,CZ,wZ,kZ,IZ],NZ=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),LZ=(e,t=_Z)=>{for(const n of t)if(DZ(e,n))return!0;return!1};function DZ(e,t){return hZ(t)?e===t:t.test(e)}const OZ=e=>e===bZ,MZ=e=>e===xZ,FZ=e=>e===yZ||wZ.test(e),BZ=e=>e===gZ,jZ=e=>e===TZ,RZ=e=>e===EZ,UZ=e=>e===SZ,$Z=e=>tZ(e,{name:SZ}),qZ=(e,t)=>!!tZ(t,{name:vZ})&&tZ(e),JZ=(e,t)=>e.type===t.type,{isArray:VZ}=Array,KZ=(e,t)=>!(!tZ(t)||!kZ.test(t.name))&&tZ(e),XZ=(e,t)=>!(!oZ(t)||!CZ.test(t.pattern))&&oZ(e),WZ=e=>!!e&&(!VZ(e)&&"object"==typeof e),HZ=(e,t)=>!(!VZ(e)||!VZ(t))&&e.length===t.length,zZ="ObjectPattern|ObjectExpression",YZ="ArrayPattern|ArrayExpression",GZ=(e,t)=>{if(!tZ(t,{name:mZ}))return!1;const{type:n}=e;return YZ.includes(n)},QZ=(e,t)=>{if(!tZ(t,{name:fZ}))return!1;const{type:n}=e;return zZ.includes(n)},ZZ=(e,t)=>!!e&&(!!$Z(t)&&"BlockStatement"===e.type),e0=(e,t)=>{if(!tZ(t,{name:"__nop"}))return!1;if(!iZ(e))return!1;const{body:n}=e;return!!QQ(n)&&!n.body.length},t0=e=>!(!tZ(e)||!CZ.test(e.name))||(!(!nZ(e)||!CZ.test(e.value))||(!(!uZ(e)||!CZ.test(e.value))||(!(!cZ(e)||!CZ.test(e.name))||(!(!rZ(e)||!CZ.test(e.value.raw))||pZ(e)&&CZ.test(e.typeName.name))))),n0=(e,{program:t}={})=>{const n=(t?jY.program.ast:jY.ast)(e)||jY.ast.fresh(e);if(e===fZ)return[n,zZ];if(e===mZ)return[n,YZ];const{type:r}=n;return[n,r]},{isIdentifier:r0,isStatement:i0,isJSXElement:s0,isJSXAttribute:a0,isStringLiteral:o0,isTemplateLiteral:u0,templateElement:c0}=Me,{extractExpression:l0}=jY,{entries:p0}=Object,{stringify:d0}=JSON,h0=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${d0(t)}'`);e=(e=>e.node||e)(e);return m0({node:e,waysFrom:f0(jY.ast(t))})};function f0(e){if(r0(e)&&LZ(e.name))return{[e.name]:[""]};const t={};return _R(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if((e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference())(e))return;if((e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter())(e))return;const{node:n}=e;if(a0(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=ZJ(n);LZ(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 m0({waysFrom:e,node:t}){const n={};for(const[r,i]of p0(e))for(let e of i)OZ(r)||MZ(r)?e=e.replace(/\.0.local$/,""):(FZ(r)||jZ(r)||RZ(r)||BZ(r))&&(e=e.replace(/\.0$/,"")),s0(t)||(e=e.replace(/\.expression$/,"")),UZ(r)&&(e=GQ(e)),n[r]=n[r]||l0(VQ(e,t));return n}const y0=e=>e.replace("`","\\`");function g0({waysTo:e,values:t,path:n}){const r=l0(n.node);for(const[i,s]of p0(e))for(let e of s){if(!e){UV(n,t[i]);continue}if((OZ(i)||MZ(i))&&(e=e.replace(/\.0.local$/,"")),(FZ(i)||jZ(i)||RZ(i))&&(e=e.replace(/\.0$/,"")),i0(t[i])&&(e=e.replace(/\.expression$/,"")),o0(t[i])&&u0(r)){const{value:n}=t[i],s=c0({raw:y0(n)});WQ(e,s,r);continue}UZ(i)&&(e=GQ(e));const{extra:s}=VQ(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}WQ(e,t[i],r)}}const b0=(e=>{const t=lQ(e);return new Proxy(t,{apply:(t,n,r)=>(globalThis.__putout_debug?.(e,...r),t(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]})})("putout:compare"),{isArray:x0}=Array;function S0(e){if(x0(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}"`}const{isIdentifier:T0,isLiteral:E0,isStringLiteral:P0,isTemplateElement:v0,isTSTypeReference:A0,isJSXText:C0,isJSXIdentifier:w0}=Me;var k0=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=(e=>{e=e[0]||e;const{name:t,value:n}=e;if(T0(e)||w0(e))return t;if(E0(e))return n;if(v0(e))return e.value.cooked;if(A0(e))return e.typeName.name;if(C0(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)})(t);return!(P0(t)&&!P0(n))&&(r[i]?(T0(r[i])&&A0(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))};const I0=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||LZ(t)||t!==e);var n},{isIdentifier:_0}=Me,{isClassBody:N0,isBlock:L0,isJSXText:D0,isTemplateElement:O0}=Me,M0=e=>(t,n)=>e(n),F0=[I0,function(e,t){if(!O0(e)||!O0(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!(!D0(e)||!D0(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},M0(N0),M0(e=>L0(e)&&!e.body.length),M0(e=>!!tZ(e,{name:PZ})||uZ(e,{value:PZ})),qZ,(e,t)=>!!tZ(t,{name:AZ})&&eZ(e),GZ,QZ,ZZ,(e,t)=>{if(!e)return!1;if(!($Z(n=t)||(QQ(n)||ZQ(n))&&$Z(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},e0,(e,t)=>!!e&&(!!(e=>{if(!dZ(e))return!1;const{params:t}=e,{name:n}=t[0];return tZ(n,{name:gZ})})(t)&&JZ(e,t)),XZ,function(e,t,{add:n,templateStore:r}){const i=e&&(t0(t)||(e=>{const t=VZ(e)?e[0]:e;return tZ(t)&&wZ.test(t.name)})(t)||KZ(e,t)||((e,t)=>!(!tZ(t)||!IZ.test(t.name))&&eZ(e))(e,t));return!!i&&k0({add:n,value:t,nodeValue:e,templateStore:r})},(e,t)=>!!nZ(t,{value:PZ})&&JZ(e,t),M0(e=>{const t=VZ(e)?e[0]:e;return!!sZ(t)&&tZ(t.local,{name:bZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return!!aZ(t)&&tZ(t.local,{name:xZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return tZ(t,{name:yZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return uZ(t,{value:TZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return!!lZ(t)&&cZ(t.name,{name:EZ})}),function(e,t,{add:n}){const r=WZ(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=HZ(e,t);r&&n(e,t);return r}],B0=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=F0.length;if(((e,t)=>{if(!b0.enabled)return;const n=S0(e),r=S0(t);b0(`${n} = ${r}`)})(t,e),i)return((e,t,{add:n})=>!e&&e===t||!!e&&(!!I0(e,t)||!(!_0(e)||e.name!==t.name)||(WZ(t)&&!Array.isArray(t)||!!HZ(e,t))&&n(e,t,{plain:!0})))(e,t,{add:n});for(;++s<a;){if((0,F0[s])(e,t,{add:n,templateStore:r}))return!0}return!1};const{isIdentifier:j0,isStringLiteral:R0}=Me,U0=[QZ,GZ,e0,function(e,t){return j0(e)&&t0(t)},function(e,t){return R0(e)&&t0(t)},KZ,XZ,ZZ];const{extractExpression:$0}=jY,{keys:q0}=Object,{isArray:J0}=Array,V0=()=>{},K0=e=>J0(e)&&!e.length,X0=e=>J0(e)?e:[e];function W0(e){return hZ(e)?jY.ast(e):e.node?e.node:e}function H0(e,t,n={},r=V0){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=$0(W0(e)),a=$0(W0(t));if(r(s,a),qZ(s,a))return!0;if(s.type===t)return!0;if(((e,t)=>{let n=-1;const r=U0.length;for(;++n<r;)if((0,U0[n])(e,t))return!0;return!1})(s,a))return!0;if(i&&(e=>Boolean(e.node))(e)&&!JZ(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 Q0(n,a)}return Q0(s,a)}const z0=(e,t,n)=>{t=X0(t);for(const r of t)if(H0(e,r,n))return!0;return!1},Y0=(e,t,n)=>{t=X0(t);for(const r of t)if(!H0(e,r,n))return!1;return!0},G0=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function Q0(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||K0(e)&&!K0(t))return!1;for(const n of q0(t)){if(G0.includes(n))continue;const a=$0(e[n]),o=$0(t[n]);if(!B0(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const Z0=pQ("putout:runner:template"),{entries:e1}=Object,t1=e=>"function"==typeof e,{stringify:n1}=JSON,r1=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!t1(n)||!r.length)return{[t]:n};const i=s1({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};var i1=({rule:e,visitor:t,options:n})=>{const r=[],i=bQ(n.exclude),s=bQ(n.include);for(const[n,a]of e1(t)){if(!n)continue;if(!NZ(n)){r.push(r1({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=n0(n),u=s1({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r};const s1=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(((e,t)=>{Z0.enabled&&Z0(e,t.toString())})(e,i),n.length&&z0(i,n))return;if(t.length&&!Y0(i,t))return;if(!t1(r))throw Error(`☝️ Looks like provided visitor is not a function: ${n1(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=vY(r,i);if(s)throw s.rule=e,s};var a1;function o1(){}function u1(){u1.init.call(this)}function c1(e){return void 0===e._maxListeners?u1.defaultMaxListeners:e._maxListeners}function l1(e,t,n,r){var i,s,a,o;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 o1,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=c1(e))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,o=u,"function"==typeof console.warn?console.warn(o):console.log(o)}}else a=s[t]=n,++e._eventsCount;return e}function p1(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 d1(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 h1(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}o1.prototype=Object.create(null),u1.EventEmitter=u1,u1.usingDomains=!1,u1.prototype.domain=void 0,u1.prototype._events=void 0,u1.prototype._maxListeners=void 0,u1.defaultMaxListeners=10,u1.init=function(){this.domain=null,u1.usingDomains&&(!a1.active||this instanceof a1.Domain||(this.domain=a1.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new o1,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u1.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},u1.prototype.getMaxListeners=function(){return c1(this)},u1.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=h1(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=h1(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=h1(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=h1(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=h1(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},u1.prototype.addListener=function(e,t){return l1(this,e,t,!1)},u1.prototype.on=u1.prototype.addListener,u1.prototype.prependListener=function(e,t){return l1(this,e,t,!0)},u1.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,p1(this,e,t)),this},u1.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,p1(this,e,t)),this},u1.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 o1:(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 o1,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},u1.prototype.off=function(e,t){return this.removeListener(e,t)},u1.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new o1,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new o1: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 o1,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},u1.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):[]},u1.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d1.call(e,t)},u1.prototype.listenerCount=d1,u1.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};const f1=()=>{let e=0,t=0;const n=new u1;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},m1=(e,...t)=>{const[n,r]=vY(e,...t);if(n)throw n.reason??="traverse",n;return r},y1=pQ("putout:runner:include"),g1=()=>[],b1=()=>!0,x1=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=g1,filter:u=b1}=t;SQ("include",a),SQ("report",s);const c=S1(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...bQ(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}},S1=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{y1(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},T1=e=>(...t)=>(...n)=>e(...t,...n);var E1=((e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?T1(e)(...t):T1(e))).default;const{entries:P1}=Object,{isArray:v1}=Array;function A1(e,t){const{node:n}=e;let r,i;for([r,i]of P1(t)){if(v1(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const{isProgram:C1}=Me,w1="__putout_runner_replace",k1=(e,t,n)=>{const{watermark:r,highWatermark:i}=function(e,t,n){const r=`${e} -> ${t}`,i=`${(e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(A1(t,t.parent));return n.join(".")})(n)}: ${r}`;return{watermark:r,highWatermark:i}}(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(C1),path:n};return{init:E1(_1,s),has:E1(L1,s),add:E1(N1,s)}},I1=w1;function _1({path:e,program:t}){e.node&&(e.node[w1]=e.node[w1]||new Set),t.node[w1]=t.node[w1]||new Set}function N1({path:e,program:t,watermark:n,highWatermark:r}){_1({path:e,program:t}),e?.node[w1].add(n),t.node[w1].add(r)}function L1({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[w1].has(n)||e.findParent((e=>t=>t.node?.[w1]?.has(e))(n))&&!s)||t.node[w1].has(r)}const D1=pQ("putout:runner:replace"),O1=(e,t)=>{D1.enabled&&D1(`${e} -> ${t}\n`)},{isExpression:M1,isStatement:F1,isExpressionStatement:B1}=Me,j1={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:R1,entries:U1}=Object,{stringify:$1}=JSON,q1=()=>[],J1=()=>({}),V1=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||J1)({options:r}),{report:s,exclude:a=q1,replace:o,filter:u=z1(i)}=t,c=o({options:r}),l=H1(c,i),p=(d=c,()=>R1(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...bQ(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},K1=e=>{delete e.program[I1]},X1=e=>"function"==typeof e,W1=(e,t,n)=>{const r=jY.ast(e),i=k1(e,t,n);if(i.init(),i.has())return;const s=f0(r),a=((e,{node:t})=>e.type!==t.type&&B1(t)?t.expression:t)(r,n),o=m0({waysFrom:s,node:a}),u=function(e,t,n){const r=X1(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 jY.ast.fresh(r)}(t,o,n);if(!u)return O1(e,"''"),oV(n);!function(e,t,n){if(!M1(e))return;if(!F1(t)||B1(t))return;if(B1(n)||B1(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${wz(e,j1)} -> ${wz(t,j1)}'. For code: '${n}'`)}(r,u,n);const c=f0(u),l=UV(n,u);u.__putout_replace_cooked||(G1(c,s),g0({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),O1(e,l)},H1=(e,t)=>n=>{for(const[r,i]of U1(e)){const e=jY.ast(r);if(H0(n,e,{findUp:!1})){const s=t[r];s&&!Y1(n,e,s)||W1(r,i,n)}}},z1=e=>t=>{const n=U1(e);for(const[e,r]of n){const n=jY.ast(e);if(H0(t.node,n,{findUp:!1}))return Y1(t,n,r)}return!0};function Y1(e,t,n){const r=f0(t),{node:i}=e,s=m0({waysFrom:r,node:i});return function(e){if(!X1(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const G1=(e,t)=>{for(const n of R1(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${$1(R1(t))} -> ${$1(R1(e))}`)};const Q1="__putout_declare",Z1=e=>e.scope.getProgramParent().path,e2=(e,t)=>t[e]=t[e]||{},t2=(e,t)=>{const n=Z1(t);return e2(Q1,n),n[Q1].__putout_module_type=e,e},n2=e=>{const t=Z1(e);return e2(Q1,t),t[Q1].__putout_module_type},{isImportDeclaration:r2,isVariableDeclaration:i2}=Me,{keys:s2}=Object,a2=e=>e.node.source.value.includes("."),o2=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"],u2=e=>({report:c2,include:l2,fix:d2(e),filter:p2(e)}),c2=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},l2=()=>["ReferencedIdentifier"],p2=e=>(t,{options:n})=>{if(o2.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=s2(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)||((e,t)=>{const n=Z1(t);return e2(Q1,n),n[Q1][e]})(c,t))return!1;const l=function(e,t){if(t)return t2(t,e);const n=n2(e);return n||t2((e=>GV(e)?"esm":"commonjs")(e),e)}(t,i);return h2(l,s[c])},d2=e=>(t,{options:n})=>{const r=n2(t),i={...e,...n.declarations},{name:s}=t.node,a=h2(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=m2(t),r=(e=>e.filter(i2).pop())(t);return i2(e)&&n||(r2(e)||f2(e))&&n?n:i2(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(i2(e)&&r2(n)||f2(n))return WV(n,e);if(i2(e))return f2(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&a2(n)?n.insertBefore(e):WV(n,e):r.insertBefore(e)}(jY.ast.fresh(a),o),((e,t)=>{const n=Z1(t);e2(Q1,n),n[Q1][e]=!0})(s,t)},h2=(e,t)=>"string"==typeof t?t:t[e];const f2=e=>H0(e,"const __a = require(__b)");const m2=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(a2(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{stringify:y2}=JSON,g2=({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 '${y2(e)}'.`);var t}(t.declare),{rule:e,plugin:u2(t.declare()),msg:n,options:r});function b2(e){const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}}const x2=e=>e.slice(0,e.indexOf("(")),S2=e=>e.includes("(")?`${x2(e)}(`:`${e}(`,T2=e=>"\n"===e.at(-1)?e:`${e}\n`,E2="__putout_processor_json",P2="__putout_processor_yaml",v2="__putout_processor_toml",A2="__putout_processor_filesystem",C2="__putout_processor_ignore",w2=`${E2}(__object)`,k2=`${P2}(__object)`,I2=`${v2}(__object)`,_2=`${A2}(__object)`,N2=`${C2}(__array)`,L2=[E2,P2,A2,C2],D2=(e,t=w2)=>`${S2(t)}${e});\n`,O2=(e,t=w2)=>{e=T2(e);const n=x2(t);e=e.slice(e.indexOf(n));const r=S2(t),i=e.length-3,s=e.slice(r.length,i);return T2(yz(s))},M2=e=>{for(const t of L2)if(!e.indexOf(t))return!0;return!1};var F2=Object.freeze({__proto__:null,__filesystem:_2,__filesystem_name:A2,__ignore:N2,__ignore_name:C2,__json:w2,__json_name:E2,__toml:I2,__toml_name:v2,__yaml:k2,__yaml_name:P2,fromJS:O2,isJSON:M2,toJS:D2});const B2=b2(),{assign:j2}=Object,R2=()=>{},U2={renameFile:R2,removeFile:R2,createDirectory:R2,readFileContent:($2="",()=>$2),writeFileContent:R2,copyFile:R2};var $2;const q2=j2({},U2),J2=(e,t)=>{q2.renameFile(e,t)},V2=e=>{q2.removeFile(e)},K2=(e,t)=>{q2.copyFile(e,t)},X2=e=>{q2.createDirectory(e)},W2=e=>q2.readFileContent(e),H2=(e,t)=>{q2.writeFileContent(e,t)};function z2(e){j2(q2,e)}function Y2(){j2(q2,U2)}var G2=Object.freeze({__proto__:null,copyFile:K2,createDirectory:X2,deinit:Y2,init:z2,pause:()=>{B2(q2),Y2()},readFileContent:W2,removeFile:V2,renameFile:J2,start:()=>{z2(B2())},writeFileContent:H2});const{arrayExpression:Q2,stringLiteral:Z2,objectProperty:e3}=Me,t3=e=>i3("type",Z2(e)),n3=e=>i3("filename",Z2(e)),r3=e=>i3("content",Z2(e));function i3(e,t){const n=Z2(e);return e3(n,t)}const{isProgram:s3,objectExpression:a3}=Me,o3=e=>"string"==typeof e,{isArray:u3}=Array,c3=e=>{const[t,n]=vY(btoa,e);return t?btoa(escape(e)):n},l3=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function p3(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return s3(t)?null:t}function d3({name:e,base:t,exclude:n}){for(const r of n)if(e===r||l3(r).test(t))return!0;return!1}function h3(e,t,n=[]){!function(e){if(!o3(e)&&!u3(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=>u3(e)?e:[e])(t);for(const t of SV(e,"filename")){const{value:e}=t.node.value,s=YY(e);for(const a of i)if(e===a||l3(a).test(s)){const e=t.parentPath;if(d3({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function f3(e){return AV(e,"filename").get("value")}function m3(e){const{value:t}=f3(e).node;return t}function y3(e){return AV(e,"type").node.value.value}function g3(e){const t=AV(e,"content");return[Boolean(t),t?.node.value.value]}const b3=(e,t)=>{const n=m3(e),r=f3(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);fV(r,a),J2(n,a)};function x3(e){const t=m3(e);p3(e)&&(e.remove(),V2(t))}const S3=e=>{if("directory"!==y3(e))return;let t=e;for(;!C3(e).length;){if("/"===m3(e))break;if(t=p3(e),!t)break;x3(e),e=t}},T3=(e,t)=>{if(e===t)return;const n=m3(t),r=m3(e),i=A3(t),s=AV(e,"filename"),a=WY(n,r.split("/").pop());P3(t,a),fV(s.get("value"),a),i.node.value.elements.push(e.node),e.remove(),J2(r,a)},E3=(e,t)=>{const n=m3(t),r=m3(e),i=WY(n,r.split("/").pop()),[s,a]=g3(e),o=a3([t3("file"),n3(i),s&&r3(a)].filter(Boolean));P3(t,i);A3(t).node.value.elements.push(o),K2(r,i)};function P3(e,t){const n=y3(e);if("directory"!==n){const t=m3(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=AV(e,"files"),i=WY(m3(e),YY(t)),[s]=h3(r,i);s&&s.remove()}const v3=(e,t,n)=>{P3(e,t);const r=A3(e),i=WY(m3(e),t),s=[t3("file"),n3(i),n&&r3(n)].filter(Boolean);r.node.value.elements.push(a3(s));const a=r.get("value.elements").at(-1);return o3(n)&&I3(a,n),a},A3=e=>AV(e,"files");function C3(e){return"directory"!==y3(e)?[]:A3(e).get("value.elements")}function w3(e,t){const n=A3(e),r=WY(m3(e),t),i=t3("directory"),s=i3("files",Q2([]));const a=n3(r);return n.node.value.elements.push(a3([i,a,s])),X2(r),n.get("value.elements").at(-1)}const k3=e=>{if("directory"===y3(e))return"";const[t,n]=g3(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=vY(atob,e);return t?e:unescape(n)})(n);const r=m3(e),i=W2(r),s=r3(c3(i));return e.node.properties.push(s),i};function I3(e,t){if("directory"===y3(e))return;const n=m3(e);H2(n,t);const r=AV(e,"content");if(r)return void fV(r.node.value,c3(t));const i=r3(c3(t));e.node.properties.push(i)}const _3=(e,t)=>{const n=N3(e);if(zY(t)===m3(e))return w3(e,YY(t));let r=t;const i=m3(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=zY(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=WY(i,t);s.shift();break}let o=h3(n,s).at(-1)||n;const u=m3(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=w3(o,YY(s[l]))}return o};function N3(e){let t=p3(e);if(!t)return e;let n=t;for(;t=p3(t);)n=t;return n}const{init:L3,deinit:D3,pause:O3,start:M3}=G2;var F3=Object.freeze({__proto__:null,copyFile:E3,createDirectory:w3,createFile:v3,createNestedDirectory:_3,deinit:D3,findFile:h3,getFileContent:g3,getFileType:y3,getFilename:m3,getParentDirectory:p3,getRootDirectory:N3,init:L3,moveFile:T3,pause:O3,readDirectory:C3,readFileContent:k3,removeEmptyDirectory:S3,removeFile:x3,renameFile:b3,start:M3,writeFileContent:I3}),B3={},j3=e(tG),R3=e(NR),U3=e(F3),$3=e(F2),q3=e(QV);const{basename:J3,dirname:V3}=j3,{types:K3}=R3,{createDirectory:X3,getFileType:W3,getFilename:H3,findFile:z3}=U3,{__filesystem_name:Y3}=$3,{replaceWith:G3,getProperty:Q3}=q3,{objectExpression:Z3,arrayExpression:e4,stringLiteral:t4,isArrayExpression:n4,isStringLiteral:r4,isTemplateLiteral:i4,objectProperty:s4}=K3;B3.report=()=>"Convert Simple Filesystem to Filesystem";const a4=e=>e.endsWith("/"),o4=e=>{const t=a4(e)?"directory":"file";return s4(t4("type"),t4(t))},u4=e=>s4(t4("filename"),t4(e)),c4=e=>a4(e)?s4(t4("files"),e4([])):null,l4=e=>s4(t4("content"),t4(e));function p4(e,t){if(r4(e))return e.value;if(i4(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}B3.fix=e=>{const t=e4([]);for(const n of e.get("elements")){if(n4(n)){const[e,r]=n.node.elements,{value:i}=e,s=p4(r,n);t.elements.push(Z3([o4(i),u4(i),l4(s)]));continue}if(r4(n)){const{value:e}=n.node;t.elements.push(Z3([o4(e),u4(d4(e)),c4(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=z3(t,"*");for(const e of r){const t=H3(e);h4(t);const r=W3(e),i=V3(t),s=J3(t),[a]=z3(n,i);if(!a||"directory"!==W3(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){X3(a,s);continue}Q3(a,"files").node.value.elements.push(e.node)}G3(e,n)}(e,t)},B3.traverse=({push:e})=>({[`${Y3}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const d4=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function h4(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var f4={};const{types:m4}=R3,{replaceWith:y4,getProperty:g4}=q3,{__filesystem_name:b4}=$3,{findFile:x4,getFilename:S4,getFileType:T4}=U3,{stringLiteral:E4,arrayExpression:P4}=m4,{isArray:v4}=Array,A4=e=>"/"===e?e:`${e}/`;f4.report=()=>"Convert Filesystem to Simple Filesystem",f4.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=S4(e),r=T4(e),i=g4(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(A4(t))}const r=[];for(const e of n)v4(e)?r.push(P4([E4(e[0]),E4(e[1])])):r.push(E4(e));y4(e,P4(r))},f4.traverse=({push:e})=>({[`${b4}(__object)`]:t=>{const n=t.get("arguments.0"),r=x4(n,"*");e(n,{files:r})}});const C4=pQ("putout:runner:scanner"),w4=({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:I4({scan:s,rule:e,progress:i})}}},k4=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},I4=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${A2}(__)`](s){C4(t),n.start(t);const a=s.get("arguments.0"),o=b2(!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=h3(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);N4(B3,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:k4({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),N4(f4,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),_4=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function N4(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:_4({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${A2}(__object)`],n=e[`${A2}(__array)`];return t?[t,`${A2}(__object)`]:[n,`${A2}(__array)`]}(a);H0(t,u)&&(O3(),o(t),M3())}const L4=pQ("putout:runner:find"),D4=e=>e?.removed,O4=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=f1(),traverse:a=_R})=>{let o=[];const u=oY(jQ),{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(x1(V1(i))):e.declare?r.push(x1(g2(i))):e.include?r.push(x1(i)):e.scan&&r.push(w4(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=M4({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:i1,traverse:a}),s.reset(),!n||!o.length)return o;K1(e)}return o},M4=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...B4({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...F4({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function F4({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});m1(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 B4({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){L4(`find: ${o}`);const{report:i,find:p}=u,d=m1($Q,{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}=mQ(e),p=yQ(e,n);a.push({rule:o,message:r,position:p}),D4(s)||fQ(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const j4=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=4,loadPlugins:s=zG,loadPluginsAsync:a=VG,runPlugins:o=O4,progress:u=f1()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}},R4=e=>e.replace(/\s\(\d:\d+\)/,""),U4=e=>e?((e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:R4(e.message),position:{line:n,column:r}}]})(e,"loader"):[],$4=(e,t,n)=>{n=j4(n);const{plugins:r,rules:i,fix:s,fixCount:a,loadPlugins:o,runPlugins:u,progress:c}=n,[,l]=UY(t),[p]=vY(MG,{rules:i,pluginNames:r}),d=u({ast:e,shebang:l,fix:s,fixCount:a,plugins:o({pluginNames:r,rules:i}),progress:c});return[...U4(p),...d]},q4=async(e,t,n)=>{n=j4(n);const{plugins:r,rules:i,fix:s,fixCount:a,loadPluginsAsync:o,runPlugins:u,progress:c}=n,[,l]=UY(t),[p]=vY(MG,{rules:i,pluginNames:r}),d=u({ast:e,shebang:l,fix:s,fixCount:a,plugins:await o({pluginNames:r,rules:i}),progress:c});return[...U4(p),...d]},J4=(e,t)=>{X4(e),t=j4(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=UY(e),u=IY(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=$4(u,e,t);if(!t.fix)return{code:e,places:c};const l=wz(u,{printer:s,source:e});return{code:RY(o,l),places:c}},V4=async(e,t)=>{X4(e),t=j4(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=UY(e),u=IY(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await q4(u,e,t);if(!t.fix)return{code:e,places:c};const l=wz(u,{printer:s});return{code:RY(o,l),places:c}},K4=e=>"string"==typeof e;function X4(e){if(!K4(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}const{isFile:W4,isProgram:H4}=Me,{merge:z4}=_R.visitors,{entries:Y4}=Object,G4=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!W4(e)&&!H4(e);return n=>{_R(e,{noScope:t,...n})}},Q4=([e])=>e;function Z4(e,t){const n=G4(e),r=[],i=Y4(t);if(!i.map(Q4).find(NZ))return n(t);for(const[e,t]of i){if(!NZ(e)){r.push({[e]:t});continue}const[n,i]=n0(e),s=e5({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(z4(r))}const e5=({fn:e,node:t,tmpl:n})=>r=>{H0(r,t)&&e(r,h0(r.node,n))},{isJSXElement:t5,jsxAttribute:n5,jsxIdentifier:r5,stringLiteral:i5}=Me,s5=e=>e.node||e;function a5(e,t){let n=null;const r=s5(e),{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}function o5(e,t){const n=a5(e,t);return n?n.value.value:""}function u5(e,t,n){const r=a5(e,t);if(!r)return c5(e,t,n);r.value.value.includes(n)||fV(r.value,`${r.value.value} ${n}`)}function c5(e,t,n){const r=s5(e);let i=a5(r,t);i||(i=n5(r5(t),i5(n)),r.openingElement.attributes.push(i))}function l5(e,t,n){if(!e)return;const r=a5(e.node||e,t),{value:i}=r.value;if(!i.includes(n))return;const s=i.replace(RegExp(`\\s?${n}`),"").trim();fV(r.value,s)}function p5(e){return o5(e,"className")}function d5(e){return e?h5[e.type](e):""}var h5={RegExp:function(e){return"/"+d5(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(d5).join("")},Disjunction:function(e){return d5(e.left)+"|"+d5(e.right)},Group:function(e){var t=d5(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=d5(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=d5(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(d5).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return d5(e.from)+"-"+d5(e.to)},Repetition:function(e){return""+d5(e.expression)+d5(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+"}"}},f5={generate:d5},m5={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},y5=P5(m5),g5={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"},b5=P5(g5),x5={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"},S5=P5(x5),T5={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"},E5=P5(T5);function P5(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 v5(e){return x5.hasOwnProperty(e)||S5.hasOwnProperty(e)}function A5(e){return T5.hasOwnProperty(e)||E5.hasOwnProperty(e)}var C5={isAlias:function(e){return y5.hasOwnProperty(e)||b5.hasOwnProperty(e)},isValidName:function(e){return m5.hasOwnProperty(e)||y5.hasOwnProperty(e)||g5.hasOwnProperty(e)||b5.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?v5(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&A5(t)},isGeneralCategoryValue:v5,isScriptCategoryValue:A5,isBinaryPropertyName:function(e){return g5.hasOwnProperty(e)||b5.hasOwnProperty(e)},getCanonicalName:function(e){return y5.hasOwnProperty(e)?y5[e]:b5.hasOwnProperty(e)?b5[e]:null},getCanonicalValue:function(e){return S5.hasOwnProperty(e)?S5[e]:E5.hasOwnProperty(e)?E5[e]:b5.hasOwnProperty(e)?b5[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:m5,NON_BINARY_ALIASES_TO_PROP_NAMES:y5,BINARY_PROP_NAMES_TO_ALIASES:g5,BINARY_ALIASES_TO_PROP_NAMES:b5,GENERAL_CATEGORY_VALUE_TO_ALIASES:x5,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:S5,SCRIPT_VALUE_TO_ALIASES:T5,SCRIPT_VALUE_ALIASES_TO_VALUE:E5},w5=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 k5(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 I5=void 0,_5={},N5=void 0,L5=void 0;function D5(e,t){return _5.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 O5=[[-1,1,function(e,t){L5=D5(t,t),N5=e}],[0,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),N5=i8({type:"RegExp",body:t,flags:G5(r)},s8(i,o||a))}],[1,1,function(e,t){L5=D5(t,t),N5=e}],[1,0,function(){L5=null,N5=""}],[2,1,function(e,t){L5=D5(t,t),N5=e}],[2,2,function(e,t,n,r){L5=D5(n,r),N5=e+t}],[3,1,function(e,t){L5=D5(t,t),N5=e}],[4,1,function(e,t){L5=D5(t,t),N5=e}],[4,3,function(e,t,n,r,i,s){L5=D5(r,s);var a=null;i&&(a=s8(r||i,s||i)),N5=i8({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){L5=D5(t,t),N5=0!==e.length?1===e.length?i8(e[0],L5):i8({type:"Alternative",expressions:e},L5):null}],[6,0,function(){L5=null,N5=[]}],[6,2,function(e,t,n,r){L5=D5(n,r),N5=e.concat(t)}],[7,1,function(e,t){L5=D5(t,t),N5=i8(Object.assign({type:"Assertion"},e),L5)}],[7,2,function(e,t,n,r){L5=D5(n,r),N5=e,t&&(N5=i8({type:"Repetition",expression:e,quantifier:t},L5))}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"^"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"$"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"\\b"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"simple",L5)}],[10,1,function(e,t){L5=D5(t,t),(N5=z5(e.slice(1),"simple",L5)).escaped=!0}],[10,1,function(e,t){L5=D5(t,t),(N5=z5(e,"unicode",L5)).isSurrogatePair=!0}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"unicode",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=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&&H5.isGeneralCategoryValue(i),o=-1===r&&H5.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!H5.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!H5.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return i8({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:H5.getCanonicalName(i)||i,canonicalValue:H5.getCanonicalValue(s)||s},t)}(e,L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"control",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"hex",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"oct",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=J5)return i8({type:"Backreference",kind:"number",number:n,reference:n},t);return z5(e,"decimal",t)}(e,L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=function(e,t){var n=e.slice(3,-1),r=r8(n);if(V5.hasOwnProperty(r))return i8({type:"Backreference",kind:"name",number:V5[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=[z5(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(Q5))||(p=e.match(Z5))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(z5(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(z5(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){L5=D5(t,t),N5=e}],[11,0],[12,1,function(e,t){L5=D5(t,t),N5=e}],[12,2,function(e,t,n,r){L5=D5(n,r),e.greedy=!1,N5=e}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t);var n=X5(e);N5=i8({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:"Range",from:X5(e)[0],greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t);var n=X5(e);N5=i8({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},L5)}],[14,1,function(e,t){L5=D5(t,t),N5=e}],[14,1,function(e,t){L5=D5(t,t),N5=e}],[15,3,function(e,t,n,r,i,s){L5=D5(r,s);var a=String(e),o=r8(a);if(!_5.options.allowGroupNameDuplicates&&V5.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');V5[o]=e.groupNumber,N5=i8({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},L5)}],[15,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"Group",capturing:!0,number:e.groupNumber,expression:t},L5)}],[16,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"Group",capturing:!1,expression:t},L5)}],[17,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"CharacterClass",negative:!0,expressions:t},L5)}],[17,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"CharacterClass",expressions:t},L5)}],[18,0,function(){L5=null,N5=[]}],[18,1,function(e,t){L5=D5(t,t),N5=e}],[19,1,function(e,t){L5=D5(t,t),N5=[e]}],[19,2,function(e,t,n,r){L5=D5(n,r),N5=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),W5(e,n),N5=[i8({type:"ClassRange",from:e,to:n},s8(i,a))],r&&(N5=N5.concat(r))}],[20,1,function(e,t){L5=D5(t,t),N5=e}],[20,2,function(e,t,n,r){L5=D5(n,r),N5=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),W5(e,n),N5=[i8({type:"ClassRange",from:e,to:n},s8(i,a))],r&&(N5=N5.concat(r))}],[21,1,function(e,t){L5=D5(t,t),N5=z5(e,"simple",L5)}],[21,1,function(e,t){L5=D5(t,t),N5=e}],[22,1,function(e,t){L5=D5(t,t),N5=e}],[22,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}]],M5={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"},F5=[{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"}],B5=[],j5=void 0,R5=[[/^#[^\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 t8(I5.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&&"\\-"===I5)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+I5);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 t8(I5=I5.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"}]],U5={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]},$5={type:"$",value:""};j5={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($5);for(var e=this._string.slice(this._cursor),t=U5[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=R5[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(I5=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,k5(u))}return this.onToken(this._toToken(a,I5))}}if(this.isEOF())return this._cursor++,$5;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}},_5.lexer=j5,_5.tokenizer=j5,_5.options={captureLocations:!0};var q5={setOptions:function(e){return _5.options=e,this},getOptions:function(){return _5.options},parse:function(e,t){if(!j5)throw new Error("Tokenizer instance wasn't specified.");j5.initString(e);var n=_5.options;t&&(_5.options=Object.assign({},_5.options,t)),q5.onParseBegin(e,j5,_5.options),B5.length=0,B5.push(0);var r=j5.getNextToken(),i=null;do{r||(_5.options=n,o8());var s=B5[B5.length-1],a=M5[r.type];F5[s].hasOwnProperty(a)||(_5.options=n,a8(r));var o=F5[s][a];if("s"===o[0]){var u=null;_5.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),B5.push({symbol:M5[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=j5.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=O5[c],p="function"==typeof l[2],d=p?[]:null,h=p&&_5.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){B5.pop();var m=B5.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){I5=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,k5(g)),y.semanticValue=N5,h&&(y.loc=L5)}var b=B5[B5.length-1],x=l[0];B5.push(y,F5[b][x])}else if("acc"===o){B5.pop();var S=B5.pop();return(1!==B5.length||0!==B5[0]||j5.hasMoreTokens())&&(_5.options=n,a8(r)),S.hasOwnProperty("semanticValue")?(_5.options=n,q5.onParseEnd(S.semanticValue),S.semanticValue):(q5.onParseEnd(),_5.options=n,!0)}}while(j5.hasMoreTokens()||B5.length>1)},setTokenizer:function(e){return j5=e,q5},getTokenizer:function(){return j5},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},J5=0,V5={},K5="";function X5(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 W5(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")}q5.onParseBegin=function(e,t){K5=e,J5=0,V5={};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"))},q5.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++J5),e};var H5=C5;function z5(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=w5(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 i8({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var Y5="gimsuxy";function G5(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)||!Y5.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 Q5=/^\\u[0-9a-fA-F]{4}/,Z5=/^\\u\{[0-9a-fA-F]{1,}\}/,e8=/\\u\{[0-9a-fA-F]{1,}\}/;function t8(e,t){if(e8.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var n8=/\\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 r8(e){return e.replace(new RegExp(n8,"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 i8(e,t){return _5.options.captureLocations&&(e.loc={source:K5.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 s8(e,t){return _5.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function a8(e){"$"===e.type&&o8(),j5.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function o8(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var u8=q5;u8.default;var c8=u8,l8=c8.parse.bind(c8);c8.parse=function(e,t){return l8(""+e,t)},c8.setOptions({captureLocations:!1}),c8.default;var p8=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 d8="expressions",h8="expression",f8=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 p8(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=d8),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=h8),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=d8),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]:d8;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,d8,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,h8):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,m8)===JSON.stringify(e.node,m8)}},{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:m8,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 m8(e,t){if("loc"!==e)return t}f8.initRegistry(),f8.traversingIndexStack=[];var y8=f8;y8.default;var g8=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 b8=f5;!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}g8(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=b8.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=b8.generate(this._ast)),this._string}}])}();var x8={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)}},S8="A".codePointAt(0),T8="Z".codePointAt(0),E8="a".codePointAt(0),P8="z".codePointAt(0),v8="0".codePointAt(0),A8="9".codePointAt(0),C8={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>=v8&&t.codePoint<=A8&&n.codePoint>=v8&&n.codePoint<=A8||t.codePoint>=S8&&t.codePoint<=T8&&n.codePoint>=S8&&n.codePoint<=T8||t.codePoint>=E8&&t.codePoint<=P8&&n.codePoint>=E8&&n.codePoint<=P8}(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 w8="A".codePointAt(0),k8="Z".codePointAt(0),I8={_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>=w8&&t.codePoint<=k8&&n.codePoint>=w8&&n.codePoint<=k8}(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 _8={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))}},N8=_8.increaseQuantifierByOne,L8={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=O8(n.node.quantifier),i=r.from,s=r.to,a=O8(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!D8(n.node.quantifier)&&!D8(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(D8(n.node.quantifier)||D8(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;N8(t.quantifier),n.remove()}}}};function D8(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function O8(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 M8={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 F8(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 B8={_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){U8(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&&$8(r,383)?u=e.getChild(l):t&&n&&$8(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<j8.length||!j8.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return U8(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return j8.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var j8=[function(e){return R8(e," ")}].concat(F8(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return U8(t,e)}})),F8([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return $8(t,e)}})),[function(e){return"ClassRange"===e.type&&$8(e.from,8192)&&$8(e.to,8202)}]);function R8(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 U8(e,t){return R8(e,t,"meta")}function $8(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var q8={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||J8(r)})}}};function J8(e){return/[*[()+?$./{}|]/.test(e)}var V8={_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=K8(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(X8(i,"}"))return!0;if(X8(i,","))return X8(i=(r=r+(n=K8(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=K8(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&X8(i,"{"))return!0;if(X8(i,","))return i=(r=r-(n=K8(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&X8(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 K8(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 X8(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var W8={_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){Y8(e)&&n.push(e.value)}),t.sort(H8);for(var r=0;r<t.length;r++){var i=t[r];if(Q8(i,n,this._hasIUFlags)||r6(i,t[r-1])||i6(i,t[r+1]))t.splice(r,1),r--;else{var s=a6(i,r,t);t.splice(r-s+1,s),r-=s}}}};function H8(e,t){var n=z8(e),r=z8(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 z8(e.to)-z8(t.to);if(Y8(e)&&Y8(t)||G8(e)&&G8(t))return e.value<t.value?-1:1}return n-r}function z8(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 Y8(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 G8(e){return"Char"===e.type&&"control"===e.kind}function Q8(e,t,n){for(var r=0;r<t.length;r++)if(Z8(e,t[r],n))return!0;return!1}function Z8(e,t,n){return"ClassRange"===e.type?Z8(e.from,t,n)&&Z8(e.to,t,n):!("\\S"!==t||!Y8(e,"\\w")&&!Y8(e,"\\d"))||(!("\\D"!==t||!Y8(e,"\\W")&&!Y8(e,"\\s"))||(!("\\w"!==t||!Y8(e,"\\d"))||(!("\\W"!==t||!Y8(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?e6(e):"\\S"===t?!e6(e):"\\d"===t?t6(e):"\\D"===t?!t6(e):"\\w"===t?n6(e,n):"\\W"===t&&!n6(e,n)))))}function e6(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 t6(e){return e.codePoint>=48&&e.codePoint<=57}function n6(e,t){return t6(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function r6(e,t){if(t&&"ClassRange"===t.type){if(s6(e,t))return!0;if(o6(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 i6(e,t){return!(!t||"ClassRange"!==t.type||!o6(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function s6(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?s6(e.from,t)&&s6(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function a6(e,t,n){if(!o6(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!o6(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function o6(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(n6(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var u6=y8,c6=_8.disjunctionToList,l6=_8.listToDisjunction,p6={Disjunction:function(e){var t=e.node,n={},r=c6(t).filter(function(e){var t=e?u6.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(l6(r))}},d6={Disjunction:function(e){var t=e.node,n=e.parent;if(h6[n.type]){var r=new Map;if(f6(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};h6[n.type](e.getParent(),i)}}}},h6={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 f6(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return f6(r,t)&&f6(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 f6(e,t)})}function m6(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 y6={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(m6(n.expressions.slice(0,e.index)),m6(r.node.expressions),m6(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function g6(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 b6=y8,x6=_8.increaseQuantifierByOne,S6={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,T6(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,E6(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,P6(e,r,n)),n++}}};function T6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(r.expressions.slice(n-s,n)),[t.node])}),u=b6.getForNode({type:"Alternative",expressions:[].concat(g6(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 E6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return x6(s.node.quantifier),i}}i++}return n}function P6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(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 x6(t.node.quantifier),n-a}}return n}var v6=new Map([["charSurrogatePairToSingleUnicode",x8],["charCodeToSimpleChar",C8],["charCaseInsensitiveLowerCaseTransform",I8],["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",L8],["quantifierRangeToSymbol",M8],["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",B8],["charClassToSingleChar",q8],["charEscapeUnescape",V8],["charClassClassrangesMerge",W8],["disjunctionRemoveDuplicates",p6],["groupSingleCharsToCharClass",d6],["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",y6],["combineRepeatingPatterns",S6]]);v6.default;var A6={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},C6=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")},w6=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 k6=A6.EPSILON,I6=A6.EPSILON_CLOSURE,_6=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 w6(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!==I6&&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=C6(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][k6],e._transitionTable[t.number][I6]=[].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}();_6.default;var N6=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 L6(e){return Array.isArray(e)?e:Array.from(e)}function D6(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 O6=null;function M6(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(D6(r)).sort().join(",")!==[].concat(D6(i)).sort().join(","))return!1}return!0}function F6(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(!B6(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 B6(e,t,n,r){if(!O6[e]||!O6[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||O6[e].has(i)&&O6[t].has(s)}var j6={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();O6={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?O6[e]=i:(s.add(e),O6[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=L6(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(F6(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}}O6=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(D6(k))),o=a[a.length-1],u=a[a.length-2]};!M6(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=N6(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,D=void 0;try{for(var O,M=E[Symbol.iterator]();!(N=(O=M.next()).done);N=!0){var F=O.value;if(_=t[F][I])break}}catch(e){L=!0,D=e}finally{try{!N&&M.return&&M.return()}finally{if(L)throw D}}_&&(d[P][I]=l.get(O6[_]))}}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}},R6=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 U6(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 $6=j6,q6=A6.EPSILON_CLOSURE,J6=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 R6(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,$6.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]][q6]],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,U6(t[k][q6]))}}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(U6(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}();J6.default;var V6=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 K6=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 V6(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}(),X6=K6;X6.default;var W6=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 H6=X6,z6=A6.EPSILON,Y6=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,H6),W6(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(z6)[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(z6)[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(z6),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}();Y6.default;var G6=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(){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}G6(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}}])}();var Q6={}.default;const Z6=({type:e,kind:t})=>"Char"!==e||"simple"!==t;const{isBlockStatement:e9,isFunction:t9,isLabeledStatement:n9,isObjectPattern:r9,isCallExpression:i9,objectPattern:s9,objectProperty:a9}=Me,{entries:o9}=Object,u9=!0,c9=e=>e.isCallExpression()||e.isStatement(),l9=e=>i9(e.find(c9)),p9=({name:e})=>`Argument '${e}' is missing`,d9=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=jY.ast.fresh(e);if(e9(s)){const e=function(e){if(!n9(e)){const{expression:t}=e;return a9(t,t,!1,u9)}const{label:t,body:n}=e;return a9(t,n.expression,!1,u9)}(s.body[0]);return n.properties.push(e),r9(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},h9=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of o9(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!l9(e))continue;const r=e.find(t9);if(!r)continue;const{block:o}=r.scope;if(!z0(e.scope.path,s))continue;if(z0(e.scope.path,a))continue;const{params:u}=o,[c,l]=f9(u);if(r9(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:s9([])})}}}};function f9(e){for(const[t,n]of e.entries())if(r9(n))return[t,n];return[-1,null]}const m9=["import","export","assert","with"],y9=["const","var","let"],g9=["if"],b9=["readonly","implements","declare","module","type","namespace"],x9=["interface","static"],S9=[...g9,...y9,...m9,...x9,"async","break","continue","debugger","for","else","from","return","throw","of","while","class","extends","default"],T9=[...S9,"as","await","new","yield","typeof","function"],E9=(e,t,n)=>$4(e,t,{...n,fix:!1}),P9=async(e,t,n)=>await q4(e,t,{...n,fix:!1}),v9=e=>!e.indexOf("!"),A9=e=>e.replace(/^!/,""),C9=(e,t,n={})=>{const r=HY(e,t),i=void 0,s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(A9(n));v9(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{join:w9}=QY,k9=e=>e&&"object"==typeof e,{entries:I9}=Object,_9=(e,{message:t})=>t;function N9(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){$4(s,i,a);const o=function(e,t){if(e.endsWith(".json")){const e=wz(t);return O2(e)}return wz(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=w9(m3(e),n),[s]=h3(e,i);return s||v3(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});I3(u,o),e!==u&&x3(e)}const L9=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=m3(r);a.filename=a.filename??n;for(const[n,i]of I9(e)){const[e]=O9(n,a),s=h3(r,e,t);for(const e of s){const t=p3(e),r=m3(e),[s,c=s]=O9(n,{filename:r});C9(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=k3(a)||"{}",[d,h]=D9(o,p),f=M9(o,l),m=E9(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 D9(e,t){if(e.endsWith(".json")){const e=D2(t);return[e,IY(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,IY(t,{isTS:!0})]}return[t,IY(t)]}function O9(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=QY.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function M9(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}const{parse:F9}=JSON,B9=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,j9=(e,{to:t})=>{b3(e,t)},R9=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!U9(e,a))continue;const t=m3(a);i(a,{from:t,to:n(t)})}};function U9(e,t){const n=function(e){let t,n=p3(e);do{const e=m3(n);[t]=h3(n,WY(e,"package.json"))}while(!t&&(n=p3(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=k3(n);if(!r)return!1;return(F9(r).type||"commonjs")===e}const{stringLiteral:$9}=Me,q9=({value:e})=>e,J9=e=>()=>`Add dotfiles to '${e}'`,V9=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=X9(r,s);return{[e]:e=>{const r=W9(e,{property:t,collector:n});if(!r)return!1;const i=r.map(q9);for(const e of a)if(!i.includes(e))return!0;return!1}}},K9=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=X9(r,s);return{[e]:(e,r)=>{const i=W9(e,{property:t,collector:n}),s=i.map(q9);for(const e of a)s.includes(e)||i.push($9(e));return r}}};function X9(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function W9(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=SV(r,t);return i?i.node.value.elements:null}const{parenthesizedExpression:H9,tsParenthesizedType:z9}=Me;function Y9(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function G9(e,t=Y9(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}var Q9=Object.freeze({__proto__:null,__filesystem:_2,__filesystem_name:A2,__ignore:N2,__ignore_name:C2,__json:w2,__json_name:E2,__toml:I2,__toml_name:v2,__yaml:k2,__yaml_name:P2,addArgs:e=>({report:p9,fix:d9,traverse:h9(e)}),addAttribute:c5,addAttributeValue:u5,addClassName:(e,t)=>{u5(e,"className",t)},addParens:e=>{const t=Y9(e);if(G9(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(z9(n)):(e.replaceWith(H9(n)),e)},compare:H0,compareAll:Y0,compareAny:z0,compute:rV,contains:(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return Z4(e,i),n},containsClassName:(e,t)=>p5(e).includes(t),copyFile:E3,createDirectory:w3,createFile:v3,createNestedDirectory:_3,declare:u2,deinit:D3,extract:ZJ,findBinding:zV,findFile:h3,findVarsWays:f0,fromJS:O2,getAttributeNode:a5,getAttributePath:(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},getAttributeValue:o5,getBinding:NJ,getBindingPath:LJ,getClassName:p5,getExportDefault:pV,getFileContent:g3,getFileType:y3,getFilename:m3,getLiteralRaw:wV,getParentDirectory:p3,getPathAfterImports:YV,getPathAfterRequires:mV,getProperties:vV,getProperty:AV,getRootDirectory:N3,getTemplateValues:h0,getValues:m0,hasAttributeValue:(e,t,n="")=>o5(e,t)===n,hasDataName:(e,t="")=>o5(e,"data-name")===t,hasParens:G9,hasTagName:(e,t)=>{const n=s5(e);return!!t5(e)&&n.openingElement.name.name===t},ignore:(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/[()]/);return{report:J9(t),match:V9({type:e,property:n,collector:i,list:r}),replace:K9({type:e,property:n,collector:i,list:r})}},init:L3,insertAfter:WV,insertBefore:XV,isConditionKeyword:e=>g9.includes(e),isDeclarationKeyword:e=>y9.includes(e),isESM:GV,isJSON:M2,isKeyword:e=>T9.includes(e),isModuleDeclarationKeyword:e=>m9.includes(e),isModuleExports:HV,isSimple:jJ,isSimpleRegExp:e=>{let t=!1;const n=Q6.parse(e);return"Alternative"===n.body.type&&(Q6.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(Z6))}}),!t)},isStatementKeyword:e=>S9.includes(e),isTSKeyword:e=>{const t=b9.includes(e),n=x9.includes(e);return t||n},isTemplate:NZ,matchFiles:e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of I9(e))if(!k9(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:N9,scan:L9({defaultFilename:t,files:n,exclude:r}),report:_9}},moveFile:T3,parseTemplate:n0,pause:O3,readDirectory:C3,readFileContent:k3,remove:oV,removeAttributeValue:l5,removeClassName:(e,t)=>{l5(e,"className",t)},removeEmptyDirectory:S3,removeFile:x3,removeParens:e=>{const t=Y9(e);if(!G9(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e},rename:hV,renameFile:b3,renameFiles:({type:e,mask:t,rename:n})=>({report:B9,fix:j9,scan:R9({type:e,mask:t,rename:n})}),renameProperty:dV,replaceWith:UV,replaceWithMultiple:jV,setAttributeValue:(e,t,n)=>{const r=a5(e,t);if(!r)return c5(e,t,n);fV(r.value,n)},setLiteralValue:fV,setValues:g0,start:M3,toExpression:FV,toJS:D2,transformRegExp:(e,t)=>{!function(e){if(!e)throw Error("☝️ Looks like RegExpTransformer is missing")}(t);const{report:n,traverse:r,fix:i}=t,s=Q6.parse(e,{captureLocations:!0}),a=[];return Q6.traverse(s,r({push:e=>{const{start:t}=(e.path||e).node.loc;a.push({position:t,message:n(e)}),i(e)}})),[Q6.generate(s),a]},traverse:Z4,traverseProperties:SV,writeFileContent:I3});const Z9=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return Yk(e,{start:i},{highlightCode:n,message:r})};var e7=Object.freeze({__proto__:null,codeframe:Z9,findPlaces:E9,findPlacesAsync:P9,generate:NY,operator:Q9,parse:IY,print:wz,putoutAsync:V4,template:jY,transform:$4,transformAsync:q4,traverse:_R,types:Me});Object.assign(J4,e7);export{Z9 as codeframe,J4 as default,E9 as findPlaces,P9 as findPlacesAsync,NY as generate,Q9 as operator,IY as parse,wz as print,J4 as putout,V4 as putoutAsync,jY as template,$4 as transform,q4 as transformAsync,_R as traverse,Me as types};
13
+ `;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return Dj(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Lj(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()?wj(e):!!this.isBlockStatement()&&kj(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()&&!wj(this.container)&&Aj.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?Nj(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("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()||!Ij(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 jj(this,e,new Map)},resolve:function(e,t){return Rj.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!1});return!!e},isDenylisted:function(){return!!this.opts.denylist?.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||dR.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return fR(this,e),this.debug("Recursing into..."),this.shouldStop=pR(this.node,this.opts,this.scope,this.state,this,this.skipKeys),fR(this,e),dR.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|rR},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return yR.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;!Sa(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){IF.call(this),gR.call(this),CF.call(this)||(this.opts?.noScope||AF.call(this),this.shareCommentsWithSiblings(),wF.call(this)),kF.call(this)},insertBefore:function(e){IF.call(this);const t=GF.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||RF(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 XF.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(DF(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(IF.call(this),this.isSequenceExpression())return HF(this.get("expressions")).insertAfter(e);const t=GF.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||RF(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>UF(e)?FF(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 NF(r),e.replaceWith(OF(_F([],r),[])),e.get("callee.body").insertAfter(t),[e];if(zF(e))t.unshift(r);else if(jF(r)&&JF(r.callee))t.unshift(r),t.push(VF());else if(function(e,t){if(!BF(e)||!$F(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(MF(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(FF(LF("=",MF(e),r))),t.push(FF(MF(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return WF.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(DF(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){IF.call(this);const n=GF.call(this,t),r=this.node[e],i=iR.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return XF.call(i,n)},pushContainer:function(e,t){IF.call(this);const n=GF.call(this,t),r=this.node[e];return iR.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 zj(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return iR.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?Yj.call(this,e,t):Gj.call(this,n,t)},getAssignmentIdentifiers:function(){return Uj(this.node)},getBindingIdentifiers:function(e){return $j(this.node,e)},getOuterBindingIdentifiers:function(e){return qj(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=$j.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",eR(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",eR(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){Qj(this.node,e,t,n)},addComments:function(e,t){Zj(this.node,e,t)}};Object.assign(iR.prototype,sR);for(const e of mu){const t=`is${e}`,n=Me[t];iR.prototype[t]=function(e){return n(this.node,e)},iR.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(iR.prototype,UD);for(const e of Object.keys(gD))e.startsWith("_")||mu.includes(e)||mu.push(e);var{VISITOR_KEYS:aR}=Me,oR=class{constructor(e,t,n,r){this.parentPath=r,this.scope=e,this.state=n,this.opts=t}queue=null;priorityQueue=null;shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=aR[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 iR.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++,gR.call(i),null===i.key)continue;0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||ER.call(i,this);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++)null!==e[t].key&&TR.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:uR}=Me;function cR(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++,gR.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||ER.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),lR(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=cR(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)TR.call(t[e]);return e.queue=null,r}function lR(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||hR.call(t,r.enter)||t.node&&hR.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=pR(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!hR.call(t,r.exit))||(t.node&&hR.call(t,r[n.type]?.exit),t.shouldStop))))}function pR(e,t,n,r,i,s,a){const o=uR[e.type];if(!o?.length)return!1;const u=new oR(n,t,r,i);if(a)return!s?.[i.parentKey]&&cR(u,[i]);const c=null==i?"Program"===e.type||"File"===e.type?new CR:void 0:i.hub;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=iR.get({parentPath:i,parent:e,container:n,key:s,listKey:t,hub:c});r.push(a)}if(cR(u,r))return!0}else if(cR(u,[iR.get({parentPath:i,parent:e,container:e,key:t,listKey:null,hub:c})]))return!0}return!1}function dR(e){const t=this.opts;return this.debug(e),!(!this.node||!hR.call(this,t[e]))||!!this.node&&hR.call(this,t[this.node.type]?.[e])}function hR(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 fR(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function mR(){let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;)e=t.scope,t=t.parentPath;this.scope=this.getScope(e),this.scope?.init()}function yR(){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 gR(){this.removed||(bR.call(this),SR.call(this),xR.call(this))}function bR(){this.parentPath&&(this.parent=this.parentPath.node)}function xR(){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 vR.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void vR.call(this,e);this.key=null}}function SR(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function TR(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function ER(e){this.contexts.push(e),this.setContext(e)}function PR(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,vR.call(this,r)}function vR(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function AR(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var CR=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}},{VISITOR_KEYS:wR,removeProperties:kR,traverseFast:IR}=Me;function _R(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.");wR[e.type]&&(HD(t),pR(e,t,n,r,i,void 0,s))}}_R.visitors=sO,_R.verify=zD,_R.explode=HD,_R.cheap=function(e,t){IR(e,t)},_R.node=function(e,t,n,r,i,s){pR(e,t,n,r,i,s)},_R.clearNode=function(e,t){kR(e,t)},_R.removeProperties=function(e,t){return IR(e,_R.clearNode,t),e},_R.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||IR(e,function(e){return n?.includes(e.type)?IR.skip:e.type===t?IR.stop:void 0}))},_R.cache=gO;var NR=Object.freeze({__proto__:null,codeFrameColumns:Yk,generate:lD,parse:dk,parseExpression:function(e,t){const n=fk(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},template:UI,tokTypes:hk,traverse:_R,types:Me});const LR="Token",DR="Newline",OR="Splitter",MR="Indent",FR="Debug",BR="Space",jR="Quote",RR="EndOfFile",{isStringLiteral:UR,isIdentifier:$R,isIfStatement:qR,isStatement:JR,isForOfStatement:VR,isVariableDeclaration:KR,isMemberExpression:XR,isArrayExpression:WR,isObjectExpression:HR,isLabeledStatement:zR}=Me,YR=e=>e.parentPath?.isProgram(),GR=e=>e.parentPath.isBlockStatement(),QR=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},ZR=e=>QR(e.parentPath),eU=e=>YR(e)&&!QR(e),tU=e=>e.getNextSibling().isObjectExpression();function nU(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t}const rU=e=>e.node;function iU([e,t]){return UR(e)&&$R(t)}const sU=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return HR(t)||(t=e.at(-2)),!!HR(t)&&t.node.properties.length})(e)},aU=([e,t])=>$R(e)&&$R(t),oU=([e,t])=>!!UR(e)&&(!!WR(t)&&!iU(t.node.elements)),uU=e=>qR(e)||JR(e),cU=e=>VR(e)||JR(e),lU=e=>{const t=e.find(cU);return!!VR(t)||!!KR(t)&&VR(t.parentPath)},pU=e=>e.parentPath?.isIfStatement(),dU=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},hU=({parentPath:e})=>zR(e),fU=e=>t=>{for(const n of e)if(n(t))return!0;return!1},mU=e=>e.node||e,yU=e=>{const t=mU(e);return t.trailingComments?.length},gU=e=>e.node?.leadingComments?.length,bU=e=>!e.node.trailingComments?.length,xU=e=>!e.node.leadingComments?.length,SU="__putout_newline_after",TU=(e,t)=>e&&PU(t);function EU(e){e.__putout_newline_before=!0}function PU(e){e[SU]=!0}function vU(e){return e[SU]}const AU=e=>vU(e.getPrevSibling()),CU=(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())},wU=(e,t)=>()=>e(`//${t}`),kU=(e,t)=>()=>e(`/*${t}*/\n`),{isArrowFunctionExpression:IU,isObjectProperty:_U,isVariableDeclarator:NU,isClassProperty:LU,isTSPropertySignature:DU,isSpreadElement:OU,isClassBody:MU,isBinaryExpression:FU,isClassMethod:BU,isDecorator:jU}=Me,RU=fU([_U,NU,LU,DU,OU]),UU=e=>{const{parentPath:t}=e;return!(!NU(t)||e!==t.get("init"))||!!IU(t)&&NU(t.parentPath)};function $U(e){const{loc:t,leadingComments:n}=e.node;if(!RU(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 qU=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!MU(t)||!LU(e))&&e===t.get("body")[0]},JU=(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((e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)})(r))return((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})})(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&yU(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=RU(e),p=qU(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}*/`),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),EU(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),CU(c,{print:i,indent:a}),$U(e)?s.print.breakline(!qU(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),BU(e)?a():(FU(e)||jU(e))&&(a.inc(),a(),a.dec())):i.newline(),UU(e)&&(a.inc(),a(),a.dec())},{assign:VU}=Object;function KU(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=WU(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function XU(e){const t=[];for(;e.isMemberExpression()&&(yU(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(WU(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function WU(e){const t={type:e.type};return e.isCallExpression()&&VU(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}const{isUnaryExpression:HU,isIfStatement:zU,isCallExpression:YU,isIdentifier:GU}=Me,QU=e=>"CallExpression"===e.type,ZU=fU([HU,zU]),e$=({type:e})=>"CommentLine"===e,t$=e=>!!GU(e.node.object)&&(!!GU(e.node.property)&&(!!function(e){const{parentPath:t}=e;return!!YU(t)&&e===t.get("arguments").at(-1)}(e)||YU(e.parentPath.parentPath)));const n$=e=>{const[t,n]=(e=>{const t=[...KU(e),...XU(e)],n=t.slice(0,-1);return[t.at(-1),n]})(e);if(t$(e))return!1;if(ZU(t))return!1;if(r$(n))return!1;if(n.find(e$))return!0;if(e.find(i$))return!1;const r=n.filter(QU),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)},r$=([e])=>YU(e,{name:"get"}),i$=e=>{const t=e.find(zU);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{isDecorator:s$,isMemberExpression:a$,isExpressionStatement:o$,isCallExpression:u$}=Me,c$=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,l$=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function p$(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const d$=e=>{const{parentPath:t}=e;if(s$(e)){const{loc:t}=e.node.trailingComments[0];return!p$(e,t)}return!a$(t)&&!eU(e)};function h$(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if((e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments)(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}const f$=(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((e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)})(r))return((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})})(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=n$(i);for(const{type:t,value:n,loc:r}of u){const i=p$(e,r),u=h$(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)),c$(e)&&(a.write.breakline(!QR(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(d$(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(m$(e)),s(`/*${n}*/`),a.write.newline(!i||!l$(e)&&nU(e.parentPath)))}};function m$(e){const t=e.getPrevSibling();if(o$(t))return!1;const{expression:n}=e.node;return!!u$(n)&&!u$(n.arguments[0])}const y$=(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(QR(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}},g$=()=>{},b$=e=>e.get("params"),x$=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=b$(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=g$,printBeforeClose:f=g$,printAfterClose:m=g$}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if(S$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),y$(e,t,n),h();const y=c.length-1;for(let e=0;e<=y;e++){const t=e===y;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if(S$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n),m()};function S$(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}const T$=e=>e.node.extra?.parenthesized,E$=e=>"function"==typeof e?P$(e):v$(e),P$=e=>({condition:T$,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),v$=({print:e,condition:t,checkParens:n=!0})=>({...P$(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||T$(e):s}}),A$=E$((e,t,n)=>{const{print:r,maybe:i,write:s,traverse:a}=t,{async:o}=e.node;i.print(o,"async "),x$(e,t,n);const u=e.get("returnType");rU(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")}),C$=(w$=function(e){return!!O$(e.parentPath)&&e.node.body.body.length},(...e)=>!w$(...e));var w$;const{isAssignmentExpression:k$,isTSModuleBlock:I$,isBlockStatement:_$,isExportNamedDeclaration:N$,isExpressionStatement:L$,isFunctionDeclaration:D$,isExportDefaultDeclaration:O$}=Me,M$={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>N$(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),x$(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[QR,ZR,j$],after(e,{indent:t,maybe:n}){(B$(e)||F$(e)||QR(e))&&t(),n.write.newline(C$(e)),PU(e)}},F$=e=>{const t=e.getNextSibling();return D$(t)},B$=e=>{const t=e.getNextSibling();return!!L$(t)&&k$(t.node.expression)};function j$(e){const{parentPath:t}=e;return!!I$(t.parentPath)||!!_$(t)&&!e.node.body.body.length}const R$=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())},U$=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(R$(t)),a(e),s.breakline();e(t,n,r,i)},$$=(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")},q$=(e,t)=>{const n=e.get("key");$$(e,n,t)},J$=(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")},V$=({decorators:e})=>e?.length,K$=(e,t,n)=>{const{params:r}=e.node,i=r.filter(V$).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,gU(i)&&++n}return n===r})(e),a=H$({isNewline:i,printer:t}),o=X$({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=W$({type:"dec",printer:t,isNewline:i,isAllHasComments:s});x$(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})},X$=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},W$=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},H$=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},z$=e=>!yU(e)&&QR(e),Y$={print:U$((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(" ")),J$(e,t),q$(e,t),K$(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[z$],after(e,{print:t}){t.linebreak()}},G$=Y$,Q$={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;J$(e,t),q$(e,t),x$(e,t,n),r.space(),r("__body")},afterIf:e=>dU(e),after(e,{print:t}){t.linebreak()}},Z$=E$((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");rU(l)&&(s(" "),a(l)),x$(e,t,n),r.space(),r("__body")}),eq=E$((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)}),tq=eq,nq=eq,rq=E$((e,{print:t})=>{sq("await",{print:t})}),iq=E$((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")});function sq(e,{print:t}){t(`${e} `),t("__argument")}const{isObjectExpression:aq,isArrowFunctionExpression:oq}=Me,uq=E$({checkParens:!1,condition:e=>lq(e),print:(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),{computed:o}=e.node,u=n$(e);if(i(s),o)return $$(e,a,t);r.indent.inc(u),r.print.breakline(u),n("."),n("__property"),r.indent.dec(u)}}),cq=E$((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")}),lq=({node:e,parentPath:t})=>!!aq(e.object)&&oq(t),pq=e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)},{isFunction:dq,isTSModuleBlock:hq}=Me,fq=e=>dq(e.parentPath.parentPath),mq=U$((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;if(l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements){const{typeParameters:t}=l;(!t||t.params.length<2)&&a(" "),a("implements ");const n=e.get("implements"),r=n.length-1;for(const[e,t]of n.entries())a(t),u.print(e<r,", ")}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||y$(p,t,n),o.dec(),u.indent(d.length),a("}")}),yq=mq,gq={print:pq((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),mq(e,t,n)}),afterIf:e=>!!fq(e)||(!!QR(e)||(e=>hq(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!fq(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),PU(e))}},{isArray:bq}=Array,xq=E$((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return bq(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),rU(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(")")}),Sq=xq;const{isExpressionStatement:Tq,isMemberExpression:Eq}=Me,Pq=({parentPath:e})=>rU(e.getPrevSibling()),vq={beforeIf(e){if(!(({parentPath:e})=>Tq(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!vU(n)&&(!n.isExpressionStatement()&&Pq(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){Aq("(",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){Aq(")",e,t,n)}(e,t,n)}};function Aq(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>Eq(e))(t))return s(e);i.print(a.new,e)}const{isArrayExpression:Cq}=Me,wq=["NullLiteral","NumericLiteral","BigIntLiteral"],kq=e=>{const{parentPath:t}=e;if(!Cq(t))return!1;const[n,r]=t.node.elements;return r===e.node&&wq.includes(n.type)},{isArrayExpression:Iq,isCallExpression:_q,isIdentifier:Nq}=Me,{isStringLiteral:Lq,isArrayExpression:Dq}=Me,Oq=e=>e.get("argument").isLogicalExpression();const Mq=e=>{const t=e.getNextSibling();return!!rU(t)&&gU(t)},Fq=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!nU(e)&&e!==t.get("arguments").at(-1))},Bq=!0,jq=!1;function Rq(e){const{length:t}=e.get("properties");return t?Fq(e)||lU(e)||(e=>qR(e.find(uU)))(e)?Bq:nU(e)?jq:!(e=>e.get("properties.0.value").node)(e):Bq}const{isStringLiteral:Uq,isTemplateLiteral:$q,isBinaryExpression:qq}=Me,Jq=e=>!!Uq(e)||$q(e),Vq=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!!(Jq(s)&&Jq(a)&&qq(t))||qq(s)&&Jq(a)},Kq=({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name,{isMemberExpression:Xq,isSequenceExpression:Wq}=Me,Hq=e=>(t,n,r)=>{e(t,n,r),zq(t,n)};function zq(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;Wq(n)||Xq(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}const{isAssignmentPattern:Yq,isIdentifier:Gq}=Me;function Qq(e,t){return Gq(e)&&Gq(t)?e.name.length+t.name.length:Gq(e)?e.name.length:0}const{isAssignmentPattern:Zq,isArrayExpression:eJ,isObjectExpression:tJ,isIdentifier:nJ}=Me,rJ=(e,t)=>{const n=iJ(e,t),{right:r}=e.node.value,i=eJ(r)||!!tJ(s=r)&&s.properties.length;var s;return{complexAssign:n&&i}};function iJ(e,t){const{key:n,value:r}=e.node;if(!Zq(r))return!1;if(!nJ(n))return!0;const{maxPropertiesLengthInOneLine:i}=t;return n.name.length>i}const sJ=(e,{print:t})=>{const n=(e=>t=>e(`//${t}`))(t),r=(e=>t=>e(`/*${t}*/`))(t),{leadingComments:i}=e.node;if(i)for(const{type:e,value:s}of i)"CommentLine"===e?n(s):r(s),t.breakline()},{isObjectExpression:aJ,isIdentifier:oJ,isAssignmentPattern:uJ,isVariableDeclarator:cJ,isFunction:lJ,isObjectPattern:pJ,isForOfStatement:dJ,isVariableDeclaration:hJ}=Me;const fJ=({path:e,valuePath:t,property:n})=>{if(!nU(t))return!1;if(rU(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!SJ(r))&&!e.parentPath.isObjectProperty()};function mJ({parentPath:e}){return dJ(e.parentPath.parentPath)}function yJ(e){const t=e.getPrevSibling();return uJ(t.node.value)}function gJ(e){const t=e.getPrevSibling();if(!uJ(t.node.value))return!1;const{right:n}=t.node.value;return aJ(n)}function bJ(e){const t=e.getNextSibling();if(!t.node)return!1;if(!uJ(t.node.value))return!1;const{right:n}=t.node.value;return aJ(n)}const xJ={print:Hq((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;if(function(e){for(const t of e)if(t.node.leadingComments)return!0;return!1}(r))return!0;const{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=((e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(Yq(r)){const{left:e,right:n}=r;if(Qq(e,n)>=t)return!0}if(!Gq(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1})(e,{maxPropertiesLengthInOneLine:a}),u=((e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;return!n.isObjectProperty()&&t>=e.node.properties.length})(e,{maxPropertiesInOneLine:s});if(function(e){for(const t of e){const{computed:e}=t.node;if(e)return!0}return!1}(r))return PJ;const c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return TJ(r)?PJ:u&&!o&&cJ(e.parentPath)?EJ:!c&&i&&!lU(e)&&function(e){for(const t of e){const{value:e}=t.node;if(oJ(e)&&e.name.length>4)return!0}return!1}(r)||!c&&SJ(r)?PJ:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&TJ(c),h=!(e=>!!lJ(e.parentPath)||lJ(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&&gJ(i),u=bJ(i),c=i.get("value"),f=i.get("key"),m=c.isAssignmentPattern(),{shorthand:y,computed:g}=i.node,b=fJ({path:e,property:i,valuePath:c});if(o.indent((s||p)&&h),o.print.breakline(b&&!iJ(i,n)),!m&&u&&a.breakline(),sJ(i,{print:a}),q$(i,t),!y||Kq({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&&!yJ(i)&&!mJ(e)&&aJ(t)){a(","),a.newline();continue}}if(!m&&u&&h){a(","),a.breakline();continue}const{complexAssign:x}=rJ(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(hJ(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(uJ(n)&&aJ(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};function SJ(e){for(const t of e){const{value:e}=t.node;if(uJ(e))return!0}return!1}function TJ(e){for(const t of e)if(pJ(t.node.value))return!0;return!1}const EJ=!1,PJ=!0;const{isReturnStatement:vJ}=Me,{isAssignmentExpression:AJ,isExpressionStatement:CJ}=Me,wJ=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(CJ)&&AJ(t)}(e)?t.space():t.breakline()};const kJ=E$({checkParens:!1,condition:(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("MemberExpression"===r.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!gU(e))&&T$(e)))))},print(e,t){const{print:n}=t,{operator:r}=e.node;((e,{print:t,indent:n})=>{const{parentPath:r}=e;if(vJ(r)&&gU(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()}})(e,t),n("__left"),n.space(),n(r),wJ(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),((e,{print:t,indent:n})=>{const{parentPath:r}=e;vJ(r)&&gU(e)&&(n.dec(),t.breakline())})(e,t)}});kJ.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;vJ(s)||(o.print.breakline(!i),r(),a.breakline())},kJ.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;vJ(i)||(r(),s.indent())};const{isIdentifier:IJ,isMemberExpression:_J}=Me;function NJ(e,t){const n=DJ(t);return e.scope.getAllBindings()[n]}const LJ=(e,t)=>NJ(e,t)?.path,DJ=e=>"string"==typeof e?e:IJ(e)?e.name:_J(e)?DJ(e.object):"",{isOptionalMemberExpression:OJ,isMemberExpression:MJ,isIdentifier:FJ,isLiteral:BJ}=Me,jJ=e=>!!BJ(e)||(!!FJ(e)||(!!MJ(e)||OJ(e))),{isArrayExpression:RJ,isLiteral:UJ,isIdentifier:$J,isMemberExpression:qJ,isTemplateElement:JJ,isRegExpLiteral:VJ,isClassMethod:KJ,isTemplateLiteral:XJ,isJSXText:WJ,isJSXAttribute:HJ,isJSXIdentifier:zJ,isTSTypeReference:YJ,isTSTypeParameter:GJ,isTSAsExpression:QJ}=Me;function ZJ(e){if(e=e.node||e,$J(e))return e.name;if(zJ(e))return e.name;if(VJ(e))return e.pattern;if(XJ(e))return ZJ(e.quasis[0]);if(UJ(e))return e.value;if(JJ(e))return e.value.raw;if(qJ(e))return`${ZJ(e.object)}.${ZJ(e.property)}`;if(RJ(e))return eV(e);if(WJ(e))return e.value;if(HJ(e))return e.name.name;if(KJ(e))return ZJ(e.key);if(YJ(e))return ZJ(e.typeName);if(GJ(e))return ZJ(e.name);if(QJ(e))return ZJ(e.expression);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter","TSAsExpression"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function eV(e,t=[]){for(const n of e.elements)RJ(n)?eV(n,t):t.push(ZJ(n));return t.join(",")}const tV=!1,nV=!0;function rV(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[nV,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=rV(n);if(!i)return[tV];const[a,o]=rV(r);if(!a)return[tV];const u=`return a ${t} b`,c=sV[t]||sV.init(t,Function("a","op","b",u));return[nV,c(s,t,o)]}(e);if(iV(e))return[nV,ZJ(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?LJ(e,ZJ(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?LJ(e,ZJ(t.object)):null}(e);if(!i)return[tV];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=ZJ(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!iV(t))return[tV];if(ZJ(t)!==n)continue;const[r,i]=rV(e.get("value"));if(!r)break;return[nV,i]}return[tV]}(e,s):[tV]}function iV(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))}const sV={init:(e,t)=>sV[e]=t};const{entries:aV}=Object,oV=e=>{if(!e.node)return;const{scope:t}=e,n=cV(e),r=lV(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=uV(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of aV(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}},uV=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:[]},cV=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),lV=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling(),pV=e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null},dV=(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())}})},hV=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;dV(i,t,n),i.scope.rename(t,n)},fV=(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}"`)},mV=e=>{let t;for(t of e)if(!yV(t))break;return t};function yV(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"})}const{isCallExpression:gV,isObjectExpression:bV}=Me,xV=e=>e.node||e;const SV=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return bV(e)?gV(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:xV(e)}:xV(e)}(e),s=TV({name:t,collector:r});return n?(s(e),r):(_R(i,{noScope:!0,ObjectExpression:s}),r)},TV=({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=ZJ(n);e===i&&t.push(r)}},{isObjectExpression:EV,isObjectPattern:PV}=Me,vV=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=ZJ(r.get("key"));if(t.includes(e)){n[`${e}Path`]=r;continue}}return n},AV=(e,t)=>{if(!EV(e)&&!PV(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){if(ZJ(e.get("key"))===t)return e}return null},CV=e=>"string"==typeof e,wV=e=>{const{raw:t,extra:n,value:r}=e.node||e;return CV(t)?t:n&&CV(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};const{isStatement:kV,isBlockStatement:IV,blockStatement:_V,expressionStatement:NV}=Me,LV=(e,t)=>{const{parentPath:n}=e;return t&&!kV(t)||IV(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=_V([NV(e.node)]),{currentPath:n.get("body.body.0")})},{isExpression:DV,toStatement:OV,expressionStatement:MV}=Me,FV=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:DV(e)?MV(e):OV(e)},{isSequenceExpression:BV}=Me,jV=(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(FV);!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}=LV(e),c=u.replaceWithMultiple(o);return c.length?(s||BV(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};const{assign:RV}=Object,UV=(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}=LV(e,t);return i.replaceWith(t),RV(i.node,{comments:n,loc:r}),i};const{matchesPattern:$V,isImportDeclaration:qV,isExportDeclaration:JV,isStatement:VV,expressionStatement:KV}=Me,XV=(e,t)=>{e.insertBefore(t)},WV=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,VV(e)&&!VV(t)?e.insertAfter(KV(t)):e.insertAfter(t),e.node.comments=n},HV=e=>$V(e.node||e,"module.exports"),zV=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},YV=e=>{const t=e.length;let n=0;for(;n<t-1&&qV(e[n]);)++n;return e[n]},GV=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(qV(e))return!0;if(JV(e))return!0}return!1};var QV=Object.freeze({__proto__:null,compute:rV,extract:ZJ,findBinding:zV,getBinding:NJ,getBindingPath:LJ,getExportDefault:pV,getLiteralRaw:wV,getPathAfterImports:YV,getPathAfterRequires:mV,getProperties:vV,getProperty:AV,insertAfter:WV,insertBefore:XV,isESM:GV,isModuleExports:HV,isSimple:jJ,remove:oV,rename:hV,renameProperty:dV,replaceWith:UV,replaceWithMultiple:jV,setLiteralValue:fV,toExpression:FV,traverseProperties:SV});const{isObjectExpression:ZV,isArrayExpression:eK,isObjectProperty:tK,isCallExpression:nK,isAwaitExpression:rK,isBooleanLiteral:iK,isNullLiteral:sK,isStringLiteral:aK,isSpreadElement:oK,isIdentifier:uK}=Me,{round:cK}=Math,lK=!1,pK=!0;const dK=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!uK(n)&&n.node.name.length<t}(t,r)?lK:t.length>n&&aK(i)||t.length>3&&!ZV(i)||sU(t)?pK: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()||!jJ(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return oK(t)})(t)||2===t.length&&aU(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||xK(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>iK(e)&&jJ(t))(t)||(([e,t])=>sK(e)&&jJ(t))(t)||(([e,t])=>{if(jJ(e))return nK(t)||rK(t)})(t)||mK(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 cK(i/r)>2}(t)||yK(e)||oU(t)&&t.length<3||(([e,t])=>UR(e)&&XR(t))(t)||iU(t)||(([e,t])=>$R(e)&&UR(t))(t)||(([e,t])=>jJ(e)&&ZV(t))(t)||fK(t)&&e.parentPath.isArrayExpression()&&eK(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?lK: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)||nU(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!hK(e)&&gK(e)&&!bK(e)?pK:lK},hK=({parentPath:e})=>e.isForOfStatement(),fK=([e,t])=>aK(e)&&aK(t),mK=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!aK(a)||!aK(o))&&s<t)},yK=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!aK(s)||!aK(a))&&!nU(e)))};const gK=({parentPath:e})=>!e.isCallExpression(),bK=e=>e.find(tK);function xK(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>iK(e)&&ZV(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!oK(t[1])&&SK(t)))}const SK=e=>{const t=e.at(0),n=e.at(-1);return aK(t)&&ZV(n)},TK=e=>!!e.isSpreadElement()||!e.isObjectExpression(),{isStringLiteral:EK,isArrayExpression:PK}=Me,vK=e=>e.parentPath.isArrayExpression();function AK(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(PK).length,r=!PK(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}const CK=([e,t])=>!(!EK(e)||!EK(t))&&e.node.value.length>20,wK=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"],kK=e=>{const{type:t}=e;return!(!tU(e)||(e=>e.getPrevSibling().isObjectExpression())(e))&&wK.includes(t)},IK=e=>{const{type:t}=e.getNextSibling();return wK.includes(t)},{isObjectExpression:_K,isSpreadElement:NK,isStringLiteral:LK,isIdentifier:DK,isFunction:OK,isCallExpression:MK,isObjectProperty:FK}=Me,BK=e=>(e=>LK(e.getNextSibling()))(e)||(e=>LK(e.getPrevSibling()))(e),jK=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(OK(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},RK=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},UK=({parentPath:e})=>1===e.node.elements.length,$K={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!nU(t)&&(!(!iU(n)||!UK(e))||aU(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=!xK(e);t("[");const c=(e=>{const t=e.get("elements");if(AK(e))return!1;const[n]=t;return!CK(t)||!vK(e)&&((e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column})(n)})(e);n.indent.inc(c&&u);const l=dK(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&&TK(i);qK(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),_K(i)&&FK(e.parentPath)||n.print.newline((a||jK(i))&&!tU(i)&&!_K(i)),n.print.space(a&&kK(i)),!a&&r<p&&(t(","),!RK(i)&&i.isObjectExpression()&&IK(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(vK(e)&&oU(d)){const t=2===d.length,r=!BK(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else AK(e)||_K(o.at(-1))||n.indent(o.length&&l);!sU(o)||NK(o.at(-1))||MK(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!nU(t)&&(!(!iU(n)||!UK(e))||aU(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};function qK(e){if(!NK(e)&&!DK(e)&&!MK(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}const JK=Hq((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("]")}),VK={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")}};const KK=Hq((e,{print:t})=>{t("..."),t("__argument")}),XK=()=>{},WK=XK,HK=XK,zK=E$({checkParens:!1,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))},print(e,t){const{write:n,traverse:r,indent:i,maybe:s}=t,a=e.get("expressions"),o=a.length-1,u=gU(e);u&&(i.inc(),n.breakline(),((e,{print:t})=>{if(gU(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}})(e,t));for(const[e,t]of a.entries())r(t),e<o&&(n(","),s.write.space(!u),s.print.breakline(u));u&&(i.dec(),n.breakline())}});zK.printLeadingCommentLine=WK,zK.printLeadingCommentBlock=HK;const YK=E$((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")):Vq(e)?((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()})(e,{print:t,indent:n}):(t("__left"),t.space(),t(e.node.operator),((e,{print:t})=>{const{right:n}=e.node;"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()})(e,{print:t}),void t("__right"))}),{isLogicalExpression:GK,isReturnStatement:QK,isVariableDeclarator:ZK}=Me,eX=e=>{const[t]=tX(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]};function tX(e){let t=0;do{++t;const n=e.get("right");GK(n)&&(t+=tX(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}const nX=E$({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]=eX(e);if(!(e=>QK(e)||ZK(e))(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")}});const rX=E$((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")}),iX=sX;function sX(e,t){const{print:n,maybe:r}=t,{options:i}=e.node;n("import("),n("__source"),r.print(i,","),r.print.space(i),n("__options"),n(")")}const{isJSXElement:aX}=Me,oX={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!aX(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}},uX=U$((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 "),J$(e,t),q$(e,t),c.print(o,"?"),zq(e,t),rU(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()}),cX=uX,lX=uX,pX={print(e,{print:t,indent:n}){n(),t("with"),t.space(),t("("),t("__object"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>QR(e),after(e,{print:t}){t.linebreak(),PU(e)}},dX=e=>e.node.directives?e.get("directives"):[],hX=e=>!eU(e),fX={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[hX],after(e,{print:t}){t.newline()}},mX=e=>e.parentPath.isSwitchCase(),yX={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!hU(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[GR,ZR,mX,pU]},{isVariableDeclaration:gX,isFunction:bX}=Me;const xX={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:()=>[QR],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!gX(t))return!1;const{declaration:n}=e.node;return bX(n)}(e))}};const SX=(e,{print:t},n)=>{const{roundBraces:r}=n,{node:i}=e;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(" ")},TX={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(),JU(l,t,n),rU(u)?(a("case"),SX(u,t,n),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("}"),QR(e)||eU(e)||r.newline()},afterSatisfy:()=>[QR],after(e,{print:t}){t.breakline(),t.newline()}},EX={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=>QR(e),after(e,{print:t}){t.linebreak(),PU(e)}},{isExportNamespaceSpecifier:PX,isVariableDeclaration:vX,isExportNamedDeclaration:AX,isExportDefaultSpecifier:CX}=Me,wX={maxOneLineSpecifiers:2},kX={beforeIf(e){const t=e.getPrevSibling();return!AU(e)&&vX(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}=wX,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),PX(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!eU(e));const p=u.length,d=!rU(l)||p>c;if(u&&!e.node.declaration){t.space();const[s,...o]=u;if(u.length)if(CX(s)&&!o.length)n(s);else{CX(s)?(n(s),t(","),t.space()):o.unshift(s),t("{"),r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of o.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("}")}else t("{}");const c=e.get("source");return rU(c)&&(t(" from "),n(c)),t(";"),void i.print.newline(QR(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!eU(e)&&(!(e=>vU(e.get("declaration")))(e)&&(!!dU(e)||GR(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();AX(r)&&n(),t.newline(),PU(e)}};const{isExportDeclaration:IX}=Me,_X={print(e,t,n){const{print:r,maybe:i,write:s,traverse:a,indent:o}=t,{phase:u}=e.node,c="type"===e.node.importKind,l=e.get("specifiers");o(),s("import"),i.write(c," type"),i.write(u,` ${u}`);let p=!1;const d=l.length-1,{defaults:h,namespaces:f,imports:m}=(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}})(l);i.write(l.length," ");for(const e of h)a(e.get("local")),i.write(d,","),i.write.space(d);for(const e of f)s("* as "),a(e.get("local"));const y=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}(m,n),g=m.length-1;for(const[e,t]of m.entries()){const n=e===g,r=!n,{imported:u,local:c}=t.node;if(o.inc(),i.write(!p,"{"),i.write.breakline(g>=y),p=!0,a(t.get("imported")),u.name!==c.name&&(s(" as "),s(c.name)),g<y&&r&&(i.write(d,","),i.write.space(d)),g>=y){i.write(d,",");const t=e===d,n=e===d-1;i.write.newline(n&&h.length),i.write.newline(t)}o.dec(),i.write(n,"}")}i.write(l.length," from"),r.space(),r("__source"),((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("}")}})(e,"with",t),r(";"),QR(e)&&r.newline()},afterIf:e=>!eU(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),PU(e)}};_X.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!IX(s)),r()},_X.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()};const NX={print(e,{print:t,maybe:n}){const{test:r,update:i,body:s}=e.node;if(n.indent(!hU(e)),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(r),t("__test"),t(";"),n.print.space(i),t("__update"),t(")"),s.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=>rU(e.getNextSibling()),after(e,{print:t}){t.linebreak(),PU(e)}},LX=e=>e.parentPath.isBlockStatement(),DX={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[QR,LX,pU],after(e,{print:t}){t.newline()}},OX={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:()=>[QR],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}};const{isJSXElement:MX}=Me,FX={beforeIf:e=>!AU(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||(e=>e.getPrevSibling().isBlockStatement())(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;r.indent(!hU(e)),i("return");const s=e.get("argument");if(SX(s,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return MX(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)||!eU(e)&&(!eU(e.parentPath)&&bU(e)),after(e,{print:t}){t.newline()}};const{isReturnStatement:BX,isExpressionStatement:jX,isMemberExpression:RX,isCallExpression:UX}=Me;function $X(e){return!!RX(e)&&jX(e.parentPath.parentPath)}function qX(e){if(!UX(e))return!1;const{parentPath:t}=e;return!!BX(t)||jX(t)}const{isArrowFunctionExpression:JX,isObjectMethod:VX,isFunctionDeclaration:KX,isExportDeclaration:XX,isDoWhileStatement:WX,isBlockStatement:HX,isArrayExpression:zX}=Me,YX=e=>JX(e)||VX(e),GX={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=dX(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!zX(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=(e=>{if(!UX(e.parentPath.parentPath))return!1;const t=e.find($X);if(t)return n$(t);const n=e.find(qX);if(!n)return!1;const r=n.get("callee");return n$(r)})(e);s.indent.inc(p);for(const e of u)o(e);y$(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;VX(d)&&s.write(QR(d)||r,",")},afterIf:function(e){return rW(e)?tW:iW(e)?nW:QX(e)?tW:ZX(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||eW(e)||eU(e)||function(e){return!!KX(e.parentPath)&&(!!XX(e.parentPath?.parentPath)&&!QR(e.parentPath?.parentPath))}(e)?nW:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&rU(n)}(e)},after(e,{write:t}){t.newline(),PU(e.parentPath)}},QX=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(YX),ZX=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!QR(t)},eW=({parentPath:e})=>/FunctionExpression/.test(e.type),tW=!0,nW=!1,rW=({parentPath:e})=>HX(e),iW=fU([({parentPath:e})=>WX(e),e=>!QR(e)&&(!QR(e.parentPath)&&YR(e.parentPath)),e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!rU(t)}]);const sW={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!(e=>e.node===e.parentPath.node.body?.[0])(e)&&!AU(e))},before(e,{print:t}){t.linebreak(),EU(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&&!eU(e)&&!QR(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(vU(a),e)},afterIf:QR,after(e,{print:t}){t.linebreak(),PU(e)}},{isBlockStatement:aW,isFunctionDeclaration:oW,isStatement:uW,isExpressionStatement:cW,isReturnStatement:lW,isContinueStatement:pW}=Me,dW=e=>!aW(e)&&(!lW(e)&&(!pW(e)&&!cW(e))),hW={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),(pU(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():(r.write.newline(dW(u)),t()),i("else "),s(c)):rU(c)&&(r.write.newline(p||dW(u)),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!QR(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||uW(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!aW(t)&&!!aW(e.node.consequent)&&!e.node.consequent.body.length&&oW(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[QR],after:(e,{print:t})=>{t.linebreak(),PU(e)}},{isExportDeclaration:fW}=Me,mW=e=>e.parentPath.isTSModuleBlock(),yW=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),gW=e=>e.parentPath.isSwitchCase(),bW={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(AU(e))return!1;if(AU(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!fW(e.parentPath)&&nU(e))},before(e,{print:t}){t.breakline()},print:pq((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),((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(" ")})(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),rU(d)&&(r.space(),r("="),t.write.space(!Vq(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}JU(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(yW(e)||gW(e)||mW(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;gW(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),yW(e)&&QR(e)&&(bU(e)||dU(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[AW,CW,xW,TW,wW,PW,EW,dU,SW,mW],after(e,{maybe:t,store:n}){const r=n();if(vW(e.parentPath)&&!e.parentPath.isBlockStatement()||!yW(e)&&!mW(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};function xW(e){return!QR(e)&&e.parentPath.isBlockStatement()}function SW(e){return!vW(e.parentPath)&&e.parentPath.isExportDeclaration()}function TW(e){return!vW(e)&&nU(e)}function EW(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!rU(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!vW(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function PW(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!rU(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&nU(t))}const vW=e=>e.parentPath?.isProgram()&&!QR(e);const AW=e=>e.getNextSibling().isIfStatement(),CW=e=>e.getNextSibling().isFunctionDeclaration(),wW=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()},{isExpressionStatement:kW,isFunction:IW,isAssignmentExpression:_W}=Me,{isBlockStatement:NW,isProgram:LW,isIfStatement:DW}=Me,{isCallExpression:OW,isExpressionStatement:MW,isAssignmentExpression:FW}=Me,BW=({parentPath:e})=>e.isReturnStatement(),jW=(e=>(...t)=>!e(...t))(BW),RW=fU([function(e){return!eU(e)&&!(e=>eU(e.parentPath))(e)},GR,QR,function(e){return e.findParent(QR)}]),UW=fU([dU,function(e){return e.parentPath.get("body")===e},e=>e.getNextSibling().isIfStatement()]),$W={beforeIf:e=>!BW(e)&&!hU(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:n,store:r,indent:i}){const s=BW(e);if(t("__expression"),n.print(!s,";"),QR(e)&&!s&&UW(e)){t.newline();const n=QR(e)&&bU(e)||function(e){if(FW(e.node.expression))return!1;const t=e.getNextSibling();if(!MW(t))return!1;const{expression:n}=t.node;return OW(n)}(e)||function(e){const{expression:t}=e.node;return!!OW(t)&&(!!OW(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);n&&i(),r(!0)}},afterIf:e=>!!RW(e)||(!(!yU(e)||!eU(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:r,indent:i}){yU(e)&&eU(e)&&nU(e)&&t.breakline(),yU(e)&&!nU(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()&&eU(n)}(e)||jW(e)&&((e=>{const{expression:t}=e.node;if(!_W(t))return!1;const n=e.getNextSibling();if(IW(n)&&n.node.leadingComments)return!0;if(!kW(n))return!1;const{leadingComments:r}=n.node;return!!r&&!!_W(n.node.expression)&&IW(n.node.expression.right)})(e)&&i(),t.newline(),n.markAfter(r(),e))}};$W.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;yU(u)||(r||u.node||!DW(c)&&!NW(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},$W.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();yU(s)||(NW(e.parentPath)&&!LW(e.parentPath.parentPath)&&i(),r())};const qW=(e,t,{write:n,traverse:r})=>{n("`");let i=0;for(const s of e){n(s.node.value.raw);const e=t[i++];e&&(n("${"),r(e),n("}"))}n("`")},JW=E$(Hq((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of(e=>e.node.decorators?e.get("decorators"):[])(e))i(t),s(" ");n(o),r.write(u,"?")})),{isMemberExpression:VW}=Me,KW=(e,{print:t,maybe:n})=>{const{expression:r}=e.node,i=VW(r);t("@"),n.print(i,"("),t("__expression"),n.print(i,")")};KW.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()};const XW=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?WW(r,{slash:"\\",quote:"'"}):t?WW(r,{slash:"\\",quote:'"'}):e},WW=(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("")};const HW={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:pq((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(eU(e)||eU(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!QR(e)&&!ZR(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),PU(e)}},{isTSConditionalType:zW}=Me,YW=e=>e.parentPath.isExportNamedDeclaration(),GW={beforeIf:e=>!YW(e),before:(e,{indent:t})=>{t()},print:pq((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),x$(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(QR(e)||QR(e.parentPath)||YW(e))&&t.newline()}},QW={print:pq((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:()=>[QR],after(e,{print:t}){t.newline(),t.newline()}},{isTSTypeAliasDeclaration:ZW,isExportNamedDeclaration:eH,isTSModuleBlock:tH}=Me,nH={print:pq((e,{print:t,maybe:n})=>{const{node:r}=e,{typeParameters:i}=r;if(n.indent(!eH(e.parentPath)),t("interface "),t("__id"),t("__typeParameters"),r.extends){(!i||i.length<2)&&t(" "),t("extends ");const r=e.get("extends"),s=r.length-1;for(const[e,i]of r.entries())t(i),n.print(e<s,", ")}t("__body")}),afterSatisfy:()=>[QR,ZR],after(e,{print:t}){t.linebreak();const n=eH(e.parentPath);n&&(e=>tH(e.parentPath.parentPath))(e)&&PU(e),n||ZW(e)||t.newline()}},{isVariableDeclarator:rH,isObjectExpression:iH}=Me,sH=E$((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!rH(e.parentPath)&&iH(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});const aH=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),q$(e,t),n.print(i,"?"),zq(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),QR(e)&&yU(e)&&r.newline()};aH.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;i.breakline(),r(),i.breakline()},aH.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{print:i,maybe:s}=t;s.print.breakline(!(e=>e.getPrevSibling().node)(e)),r(),i.indent()},aH.printTrailingCommentBlock=()=>{};const oH=e=>e.node.returnType,uH=(e,{traverse:t})=>{t(e.get("returnType"))},cH=E$((e,t,n)=>{const{print:r}=t;x$(e,t,n),r.space(),r("=>"),r.space(),uH(e,t)}),lH={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("}"),eU(e)||(t.newline(),PU(e))},afterSatisfy:()=>[QR,ZR],after(e,{print:t}){t.linebreak()}};const pH=E$({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)}});const dH={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[QR],after:(e,{print:t})=>{t.newline()}},hH=E$((e,{print:t})=>{t("infer "),t("__typeParameter")}),fH=(e,{print:t,maybe:n,indent:r})=>{const{decorators:i,readonly:s,accessibility:a}=e.node,o=i?.length>1;if(n.print.breakline(o),i){for(const r of e.get("decorators"))n.indent(o),t(r);n.print.breakline(o),gU(e)?t(" "):r()}a&&(t(a),t.space()),s&&(t("readonly"),t.space()),t("__parameter"),gU(e)&&!e.node.decorators&&t.breakline()};fH.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};const{isTSUnionType:mH}=Me,yH=()=>{};const gH=E$((e,{print:t})=>{t("typeof "),t("__exprName")}),{isJSXElement:bH,isJSXExpressionContainer:xH,isFunction:SH,isJSXSpreadAttribute:TH}=Me,EH={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){if(function(e){const{attributes:t}=e.node.openingElement;for(const e of t){const{value:t}=e;if(TH(e))return!0;if(!xH(t))continue;const{expression:n}=t;if(SH(n))return!0}return!1}(e))return!1;const t=e.parentPath.isArrowFunctionExpression(),n=e.parentPath.isJSXElement(),r=e.parentPath.parentPath.isCallExpression();return n||t&&r}(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;bH(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};const PH={condition:e=>nU(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()}},vH={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=nU(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);nU(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}},AH={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(")")}};var CH=Object.freeze({__proto__:null,ArrayExpression:$K,ArrayPattern:JK,ArrowFunctionExpression:A$,AssignmentExpression:kJ,AssignmentPattern:VK,AwaitExpression:rq,BigIntLiteral:(e,{write:t})=>{t(e.node.raw)},BinaryExpression:YK,BlockStatement:GX,BooleanLiteral:(e,{write:t})=>{t(e.node.value)},BreakStatement:yX,CallExpression:xq,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))},ClassAccessorProperty:(e,t,n)=>{uX(e,t,n,{accessor:!0})},ClassDeclaration:gq,ClassExpression:yq,ClassMethod:Y$,ClassPrivateMethod:G$,ClassPrivateProperty:lX,ClassProperty:cX,ConditionalExpression:rX,ContinueStatement:(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!hU(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()},DebuggerStatement:DX,Decorator:KW,Directive:(e,{print:t,maybe:n})=>{n.print.breakline(e.node.leadingComments?.length),t("__value")},DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()},DoWhileStatement:fX,EmptyStatement:(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!eU(e)&&!eU(r))},ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()},ExportDefaultDeclaration:xX,ExportDefaultSpecifier:(e,{print:t})=>{t("__exported")},ExportNamedDeclaration:kX,ExportNamespaceSpecifier:(e,{print:t})=>{t("* as "),t("__exported")},ExportSpecifier:(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},ExpressionStatement:$W,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")},ForOfStatement:sW,ForStatement:NX,FunctionDeclaration:M$,FunctionExpression:Z$,Identifier:JW,IfStatement:hW,ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},ImportDeclaration:_X,ImportExpression:iX,InterpreterDirective:(e,{print:t})=>{t(`#!${e.node.value}\n`),t.newline()},JSXAttribute:PH,JSXClosingElement:(e,{print:t})=>{t("</"),t("__name"),t(">")},JSXClosingFragment:(e,{write:t})=>{t("</>")},JSXElement:EH,JSXEmptyExpression:(e,t,n)=>{y$(e,t,n)},JSXExpressionContainer:(e,{print:t})=>{t("{"),t("__expression"),t("}")},JSXFragment:AH,JSXIdentifier:(e,{write:t})=>{t(e.node.name)},JSXMemberExpression:(e,{print:t})=>{t("__object"),t("."),t("__property")},JSXOpeningElement:vH,JSXOpeningFragment:(e,{write:t})=>{t("<>")},JSXSpreadAttribute:(e,{print:t,maybe:n})=>{const r=nU(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXText:(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=QR(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))},LabeledStatement:(e,{print:t,maybe:n})=>{n.indent(!hU(e)),t("__label"),t(":"),t.space(),t("__body")},LogicalExpression:nX,MemberExpression:uq,MetaProperty:(e,{write:t})=>{t("import.meta")},NewExpression:vq,NullLiteral:(e,{write:t})=>{t("null")},NumericLiteral:(e,{write:t})=>{const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},ObjectExpression:(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=kq(e)||function({parentPath:e}){return!!Dq(e)&&!!Dq(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||(({parentPath:e})=>{if(!Iq(e))return!1;const[,t]=e.node.elements;return _q(t)&&!!Nq(t)})(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=!Rq(e);s.print(l,"("),i("{"),y$(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()&&n$(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=Oq(t);xU(t)&&s.indent(c>1||n||p),i(t),bU(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&xU(t)),i(t),t.isObjectMethod()||bU(t)&&!Mq(t)&&(s.print.newline(p),s.print.linebreak(dU(t)))}o?(kq(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return Lq(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)},ObjectMethod:Q$,ObjectPattern:xJ,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=!Rq(e.parentPath);q$(e,t),i||(o(":"),s.write.space(!Vq(u)),a(u)),p?s.write(!l||r,","):!l&&c.length&&o(", ")},OptionalCallExpression:Sq,OptionalMemberExpression:cq,ParenthesizedExpression:oX,PrivateName:(e,{print:t})=>{t("#"),t("__id")},Program:(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),y$(e,t,n);const o=dX(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&(e=>{const t=mU(e);return t?.trailingComments?.length>1})(r.at(-1))||a.endOfFile()},RegExpLiteral:(e,{print:t})=>{const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},RestElement:KK,ReturnStatement:FX,SequenceExpression:zK,SpreadElement:(e,t)=>{const{print:n}=t;n("..."),n("__argument"),yU(e)&&n(",")},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()},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(XW(s,n)),t.quote()},Super:(e,{write:t})=>{t("super")},SwitchStatement:TX,TSAnyKeyword:(e,{write:t})=>{t("any")},TSArrayType:(e,{print:t})=>{t("__elementType"),t("[]")},TSAsExpression:sH,TSBigIntKeyword:(e,{write:t})=>{t("bigint")},TSBooleanKeyword:(e,{write:t})=>{t("boolean")},TSCallSignatureDeclaration:(e,t,n)=>{const{print:r}=t;x$(e,t,n),r(":"),r.space(),uH(e,t),r(";"),r.newline()},TSClassImplements:(e,{print:t})=>{t("__expression"),t("__typeArguments")},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()},TSConstructSignatureDeclaration:(e,t,n)=>{const{write:r}=t;r("new"),x$(e,t,n),oH(e)&&(r(":"),r.space(),uH(e,t)),r(";"),r.newline()},TSConstructorType:(e,t,n)=>{const{print:r}=t;r("new"),r(" "),x$(e,t,n),r.space(),r("=>"),r.space(),uH(e,t)},TSDeclareFunction:GW,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"),x$(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()},TSEnumDeclaration:lH,TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))},TSExportAssignment:dH,TSExternalModuleReference:(e,{print:t})=>{t("require("),t("__expression"),t(")")},TSFunctionType:cH,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(QR(e))},TSImportType:(e,t)=>{sX(e,t)},TSIndexSignature:(e,t)=>{const{print:n}=t;n("["),n("__parameters.0"),n("]"),zq(e,t),n(";"),n.newline()},TSIndexedAccessType:(e,{print:t})=>{t("__objectType"),t("["),t("__indexType"),t("]")},TSInferType:hH,TSInstantiationExpression:(e,{print:t})=>{t("__expression"),t("__typeArguments")},TSInterfaceBody:(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(function(e){const{body:t}=e.node;if(!t.length)return!1;const[n]=t,{leadingComments:r}=n;return!r}(e)),a.inc(),y$(e,t,n);for(const[e,t]of r.entries())!e&&t.node.leadingComments||a(),i(t);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))},TSInterfaceDeclaration:nH,TSInterfaceHeritage:(e,{print:t})=>{t("__expression"),t("__typeArguments")},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())}},TSLiteralType:(e,{print:t})=>{t("__literal")},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(!zW(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")},TSMethodSignature:(e,t,n)=>{const{write:r}=t;J$(e,t),q$(e,t),x$(e,t,n),oH(e)&&(r(":"),r.space(),uH(e,t)),r(";"),r.newline()},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("}")},TSModuleDeclaration:QW,TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")},TSNeverKeyword:(e,{write:t})=>{t("never")},TSNonNullExpression:(e,{print:t})=>{t("__expression"),t("!")},TSNullKeyword:(e,{write:t})=>{t("null")},TSNumberKeyword:(e,{write:t})=>{t("number")},TSObjectKeyword:(e,{write:t})=>{t("object")},TSOptionalType:(e,{print:t})=>{t("__typeAnnotation"),t("?")},TSParameterProperty:fH,TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")},TSPropertySignature:aH,TSQualifiedName:(e,{print:t})=>{t("__left"),t("."),t("__right")},TSRestType:(e,{print:t})=>{t("..."),t("__typeAnnotation")},TSSatisfiesExpression:(e,{print:t})=>{t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSStringKeyword:(e,{write:t})=>{t("string")},TSSymbolKeyword:(e,{write:t})=>{t("symbol")},TSTemplateLiteralType:(e,t)=>{const n=e.get("quasis"),r=e.get("types");qW(n,r,t)},TSThisType:(e,{print:t})=>{t("this")},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("]")},TSTypeAliasDeclaration:HW,TSTypeAnnotation:(e,{print:t})=>{t("__typeAnnotation")},TSTypeAssertion:(e,{print:t})=>{t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSTypeLiteral:(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const{parentPath:t}=e,{length:n}=e.get("members");return!!n&&(n>1||!t.isTSTypeParameterInstantiation())}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")},TSTypeOperator:(e,{write:t,print:n})=>{const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSTypeParameter:(e,{write:t,traverse:n})=>{const r=e.get("constraint");e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),rU(r)&&(t(" extends "),n(r));const i=e.get("default");rU(i)&&(t.space(),t("="),t.space(),n(i))},TSTypeParameterDeclaration:(e,t,n)=>{const{print:r,indent:i}=t,s=function({node:e}){const{params:t}=e;for(const{constraint:e}of t)if(mH(e))return!0;return!1}(e),a=H$({isNewline:s,printer:t});x$(e,t,n,{printSpace:a,braceOpen:"<",braceClose:">",printAfterOpen:s?()=>{i.inc(),r.breakline()}:yH,printBeforeClose:s?()=>{i.dec(),r.breakline()}:yH,printAfterClose:s?()=>{r.breakline()}:yH})},TSTypeParameterInstantiation:(e,t,n)=>{x$(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypePredicate:(e,{print:t})=>{t("__parameterName"),t(" is "),t("__typeAnnotation")},TSTypeQuery:gH,TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")},TSUndefinedKeyword:(e,{write:t})=>{t("undefined")},TSUnionType:pH,TSUnknownKeyword:(e,{write:t})=>{t("unknown")},TSVoidKeyword:(e,{write:t})=>{t("void")},TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")},TemplateLiteral:(e,t)=>{const n=e.get("expressions"),r=e.get("quasis");qW(r,n,t)},ThisExpression:(e,{write:t})=>{t("this")},ThrowStatement:(e,{print:t,indent:n,maybe:r})=>{n(),sq("throw",{print:t}),t(";"),r.print.newline(!eU(e)),r.print.breakline(QR(e))},TryStatement:OX,UnaryExpression:tq,UpdateExpression:nq,VariableDeclaration:bW,VoidPattern:(e,{write:t})=>{t("void")},WhileStatement:EX,WithStatement:pX,YieldExpression:iq});const wH=e=>()=>e,{keys:kH}=Object;function IH(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]}var _H=((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):kH(t);for(const e of i){const[i,s]=IH(e,t,n),a=wH(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r}).default;const NH=e=>{const t=e?.()||[];return fU(t)},{isProgram:LH,isFile:DH,isStatement:OH,expressionStatement:MH,program:FH,file:BH}=Me,jH=(e,t,n)=>{if(e)throw Error(_H(n,{path:t,type:t.type}))},RH=e=>OH(e)?e:MH(e),UH=e=>DH(e)?e:BH((e=>LH(e)?e:FH([RH(e)]))(e)),$H=(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}=(e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:NH(n),beforeIf:NH(r),...e}})(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 qH=function(e){return(e=e.replace(VH,function(e){return" "+(e.toLowerCase()||e)})).trim().split(JH).join("_")},JH=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,VH=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const{stringify:KH}=JSON,{LOG:XH,LOG_ALL:WH,LOG_TOKENS:HH,LOG_TERM:zH,LOG_DEBUG:YH}={};function GH(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}const QH=e=>"boolean"==typeof e,ZH={arrow:!0,sequence:!0,assign:!1,new:!0},ez={arrow:!0,sequence:!0,assign:!0,new:!0},tz={arrow:!1,sequence:!1,assign:!1,new:!1},nz=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...ZH,...e}:QH(e)&&e?ez:QH(e)&&!e?tz:ZH;var t},rz=({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1},iz=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),sz=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...rz(e),...t,roundBraces:nz(t)}),az=e=>e&&"object"==typeof e,{round:oz}=Math,{assign:uz,freeze:cz}=Object,lz=e=>{const t=(({newline:e="\n",store:t=GH()}={})=>({type:n,value:r})=>{if(HH)console.log(Yk(KH({type:n,value:r}),{},{highlightCode:!0}));else if(WH)console.log(Yk(r,{},{highlightCode:!0}));else{if(XH){if(r===e)return void console.log(Yk(t(),{},{highlightCode:!0}));t(r)}zH&&C.stdout.write(r)}})();return n=>{t(n),e.push(n)}},pz=(e,n)=>{const{visitors:r,format:i,semantics:s}=((e={})=>{const{format:t,semantics:n,visitors:r}=e,i=iz(t);return{format:i,semantics:sz(i,n),visitors:r}})(n),a=[],o=lz(a),u=(e=>t=>{YH&&e.push({type:FR,value:`/*__${qH(t)}*/`})})(a),c=e=>{o({type:LR,value:e})},l=()=>{o({type:MR,value:dz(S,i.indent)})},p=()=>{o({type:DR,value:i.newline})},d=e=>e&&p(),h=()=>{p(),l()},f=e=>e&&h(),m=()=>{l(),p()},y=e=>e&&m(),g=(e,t)=>e&&c(t),b=()=>{o({type:BR,value:i.space})},x=e=>e&&b();let S=0;uz(l,{inc:()=>++S,dec:()=>--S});const T=()=>{o({type:jR,value:i.quote})};uz(c,{indent:l,newline:p,linebreak:m,breakline:h,space:b,splitter:()=>{o({type:OR,value:i.splitter})},quote:T,endOfFile:()=>{o({type:RR,value:i.endOfFile})}}),uz(g,{newline:d,breakline:f,linebreak:y,space:x});const E={indent:e=>e&&l(),markAfter:TU,write:g,space:x};uz(E.indent,{inc:e=>e&&l.inc(),dec:e=>e&&l.dec()});const P=cz({indent:l,write:c,debug:u,traverse:A,maybe:E,quote:T,store:t()}),v={...CH,...r};function A(e){const{type:t}=e,n=v[t];if(!e.node)return;const r=hz(e,{write:c,traverse:A});uz(r,c,{space:b,round:oz});const i={...P,print:r},a=(e,t)=>e&&r(t);uz(a,{newline:d,breakline:f,linebreak:y,space:x}),uz(i.maybe,{print:a}),jH(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const o=S;JU(e,i,s,{currentTraverse:n}),$H(n,e,i,s),f$(e,i,s,{currentTraverse:n}),jH(S!==o,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),u(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,A):_R(UH(e),{Program(e){A(e),e.stop()}}),a};function dz(e,t){let n="";for(++e;--e>0;)n+=t;return n}const hz=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=fz(e,r);return az(i)?t(i):n(i)},fz=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(az(t),t);var mz=new RegExp(/(^[ \t]*\n)/,"gm"),yz=function(e){return e.replace(mz,"")}.default;const gz=["__putout_processor_json","__putout_processor_yaml","__putout_processor_filesystem","__putout_processor_ignore"];const{isCallExpression:bz,isIdentifier:xz}=Me,Sz=(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(!bz(r))return!1;const{callee:i}=r;return!!xz(i)&&(e=>{for(const t of gz)if(!e.indexOf(t))return!0;return!1})(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const Tz=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=Sz(e,t);return(e=>{const t=(e=>{const t=[];for(const{value:n}of e)t.push(n);return t})(e);return t.join("")})(pz(e,n))};function Ez(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function Pz(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}var vz=(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&&!Ez(n)&&(t[e]=Pz(t[e+1]))}return t.join("\n")}).default;const Az={alignSpaces:!0},{isArray:Cz}=Array,wz=(e,t={})=>{const[n="putout",r]=(i=t.printer,Cz(i)?i:[i,{}]);var i;return"babel"===n?((e,t)=>{const{source:n,alignSpaces:r}={...Az,...t};let{code:i}=lD(e,n&&{experimental_preserveFormat:!0,retainLines:!0},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?vz(i):i})(e,{...t,...r}):Tz(e,r)},{isFunctionExpression:kz,objectMethod:Iz}=Me,{assign:_z}=Object;function Nz(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{classPrivateMethod:Lz,classMethod:Dz,privateName:Oz,identifier:Mz}=Me,{assign:Fz}=Object;var Bz=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(jz(t)){const s=function(e){return Oz(Mz(e.name))}(t);return Lz(e,s,n,r,i)}return Dz(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),Fz(e.node,{loc:s,expression:u,generator:c})};const jz=({type:e})=>"PrivateIdentifier"===e;const{identifier:Rz}=Me;const{directive:Uz,directiveLiteral:$z}=Me;const{assign:qz}=Object;const Jz=({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)},Vz=({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)},Kz=e=>{for(const t of e)t.type=Xz(t);return e},Xz=({type:e})=>`Comment${e}`;function Wz({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}var Hz=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")};const zz=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{isObjectExpression:Yz,isExportDeclaration:Gz}=Me,Qz={convertParens:!0},Zz=(e,t)=>{const n=(e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:Kz(t),tokens:n}})(e),r={...Qz,...t};return _R(n,{noScope:!0,ParenthesizedExpression:Jz(r),TSParenthesizedType:Vz(r),enter(e){const{type:t,node:n}=e;return t.endsWith("Literal")?(Hz(n),eY(n)):"JSXText"===t?eY(n):"BlockStatement"===t||"Program"===t?(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=$z(e.directive),i=Uz(r);t.directives.push(i),n.remove()}}})(e):"Property"===t?function(e){e.type="ObjectProperty"}(n):"MethodDefinition"===t?Bz(e):"FieldDefinition"===t?(e=>{e.node.type="ClassPrivateProperty"})(e):"PrivateName"===t?(({node:e})=>{e.name&&(e.id=Rz(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)})(e):"ImportDeclaration"===t?(e=>{const{attributes:t=[]}=e.node;e.node.attributes=t})(e):Gz(e)?(e=>{const{attributes:t=[]}=e.node;qz(e.node,{attributes:t})})(e):"ChainExpression"===t?(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)})(e):"TSAbstractMethodDefinition"===t?(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)})(e):"TSInterfaceHeritage"===t?(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}})(e):"PropertyDefinition"===t?(e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=zz(e))}e.node.type="ClassProperty"})(e):"PrivateIdentifier"===t?(e=>{e.replaceWith(zz(e.node))})(e):void 0},exit(e){const{node:t}=e;if((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=Wz(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=Xz(n),e[t].push(n)}}})(t),Yz(t))return(e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&kz(i)&&(t.replaceWith(Iz("method",n,i.params,i.body,e)),_z(t.node,{id:null,method:!0,generator:i.generator,loc:Nz(n,i),async:i.async,type:"ObjectMethod"}))}})(e.get("properties"))}}),n};function eY(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}var tY={},nY={exports:{}},rY=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 iY=rY;function sY(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function aY(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}nY.exports=iY(sY),nY.exports.strict=iY(aY),sY.proto=sY(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return sY(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return aY(this)},configurable:!0})});var oY=nY.exports;const uY=()=>{};var cY=e(Object.freeze({__proto__:null,default:uY}));var lY,pY,dY=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)}}}}),hY=e(dY);const fY=oY(()=>{const{Parser:e}=cY,t=(pY||(pY=1,lY=function(e){return e.extend(cY,cY,hY)}),lY),n=cY.default;return e.extend(n(),t)});var mY=["importMeta","importAttributes","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]];var yY=Object.freeze({__proto__:null,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowUndeclaredExports:!0});const{assign:gY}=Object,bY=e=>!e.indexOf("// @flow");function xY({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}const SY=oY(()=>cY);const TY=oY(()=>cY);const EY=oY(()=>cY);const PY=oY(()=>cY);const vY=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const AY=["has already been declared"];var CY=(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((e,t,n,r)=>{const[i,...s]=r,[a,o]=vY(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]=vY(e,t,n);if(!r)return i}throw a})(wY,e,AY,[s,a,o])};function wY(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){if("babel"===t)return((e,t)=>{const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=bY(e),isRecovery:a,printer:o}=t,u={sourceFileName:n,sourceType:"module",...yY,errorRecovery:a,plugins:(c=[...mY,...xY({isTS:r,isFlow:s,isJSX:i})],c.filter(Boolean))};var c;"babel"===o&&gY(u,{createParenthesizedExpressions:!0,tokens:!0});const l=dk(e,u);return l.program.extra.__putout_printer=o,l})(e,{isTS:r,isJSX:i,isRecovery:s,printer:n});if("object"==typeof t)return t.parse(e,{isJSX:i,isTS:r});if("espree"===t)return(e=>{const{parse:t}=SY();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})})(e);if("acorn"===t)return(e=>{const t=fY(),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}})(e);if("esprima"===t)return(e=>{const{parse:t}=TY();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})})(e);if("tenko"===t)return(e=>{const{Tenko:t}=EY(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n})(e);if("hermes"===t)return(e=>PY().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0}))(e);return tY.createRequire(import.meta.url)(t).parse(e)}const{assign:kY}=Object,IY=(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}=_Y({printer:r,parser:n,isTS:i,isJSX:s});return((e,...t)=>{const[n,r]=vY(e,...t);if(n)throw n.reason="parse",n;return r})(a,e)},_Y=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&kY(s,{convertParens:!1});return Zz(CY(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const NY=(e,t,n)=>lD(e,{comments:!1,...t},n);function LY(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}const{nanomemoize:DY=LY}=LY,OY={...yY,plugins:[...mY,"typescript","jsx"]},{isExpressionStatement:MY,isTSExternalModuleReference:FY}=Me,BY=e=>MY(e)||FY(e)?e.expression:e,jY=DY((e,t)=>{const n=UI(e,{...OY,...t});return(...e)=>{const t=n(...e);return BY(t)}});jY.extractExpression=BY,jY.ast=DY((e,t)=>{const n=UI.ast(e,{...OY,...t});return BY(n)}),jY.program=DY((e,t)=>UI.program(e,{...OY,...t})),jY.program.ast=DY((e,t)=>UI.program.ast(e,{...OY,...t})),jY.ast.fresh=(e,t)=>{const n=UI.ast(e,{...OY,...t});return BY(n)};const RY=(e,t)=>e?`${e}\n${t}`:t,UY=e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]};function $Y(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 qY=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,JY=function(e){return qY.exec(e).slice(1)};function VY(){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=$Y(ZY(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function KY(e){var t=XY(e),n="/"===eG(e,-1);return(e=$Y(ZY(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function XY(e){return"/"===e.charAt(0)}function WY(){return KY(ZY(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 HY(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=VY(e).substr(1),t=VY(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 zY(e){var t=JY(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function YY(e,t){var n=JY(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function GY(e){return JY(e)[3]}var QY={extname:GY,basename:YY,dirname:zY,sep:"/",delimiter:":",relative:HY,join:WY,isAbsolute:XY,normalize:KY,resolve:VY};function ZY(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 eG="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)},tG=Object.freeze({__proto__:null,basename:YY,default:QY,delimiter:":",dirname:zY,extname:GY,isAbsolute:XY,join:WY,normalize:KY,relative:HY,resolve:VY,sep:"/"});const nG=async(e,...t)=>{!function(e){if(t=e,"function"!=typeof t)throw Error("fn should be a function!");var t}(e);try{return[null,await e(...t)]}catch(e){return[e]}};const rG=e=>()=>e,iG=()=>{},sG=(e,t={})=>{const{module:n=tY}=t,{createRequire:r=rG(iG)}=n;return r(e)},aG=async e=>{const t=await import(e);return t.default||t},oG=sG(import.meta.url),{assign:uG}=Object;async function cG(e,t){const{simpleImport:n,require:r}=t;let i,s;for(const t of e){if([i,s]=await nG(n,t),!i)return s;if("ERR_UNSUPPORTED_DIR_IMPORT"===i.code){const e=r.resolve(t);if([i,s]=await nG(n,e),!i)return s}if("ERR_MODULE_NOT_FOUND"!==i.code)throw uG(i,{message:`${t}: ${i.message}`}),i}throw uG(i,{message:i.message.replace(/\simported.*/,"")}),i}const lG=()=>C.env.PUTOUT_LOAD_DIR;function pG(e){const t=lG();if(!t)return[e];const n=WY(t,e);return[n,`${n}.js`]}const dG=e=>"string"==typeof e,{isArray:hG}=Array,{entries:fG}=Object,mG=e=>{const t=[];for(const n of e)if(dG(n))t.push([n]);else{if(hG(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...fG(n))}return t},{isArray:yG}=Array,gG=e=>"boolean"==typeof e,bG=e=>"string"==typeof e,xG=e=>"object"==typeof e,{entries:SG}=Object,{stringify:TG}=JSON,EG=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),PG=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${TG(e)}`),vG=()=>Object.create(null),AG=(e,t)=>(function(e,t){if(gG(t))return!0;if(/^(on|off)$/.test(t))return!0;if(xG(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),CG=e=>{const t=[];!function(e){if(yG(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of SG(e)){if(bG(r)){t.push({rule:n,state:AG(n,r),plugin:null,msg:"",options:vG()});continue}if(gG(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:vG()});continue}if(!(yG(r)&&r.length)){if(xG(r))throw PG(r);throw EG(r)}t.push(wG(n,r))}return t};function wG(e,t){const[n]=t,r=AG(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}}const kG=e=>e.split("/")[0];const IG=([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)}},_G=e=>e.includes("/")?e.split("/").shift():e,NG=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),LG=(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},DG=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},OG=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)},MG=e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e;(({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=NG(s);if(n=e===t,r=e===_G(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}'`)}})({rules:n,items:mG(t)})},FG=({rules:e,pluginNames:t})=>{const n=(e=>{const t={};for(const[n,r]of SG(e))n.includes("/")&&AG(n,r)&&(t[kG(n)]="on"),t[n]=r;return t})(e),r=(e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t})(CG(n));return{items:mG(t),loadedRules:r,cookedRules:CG(e)}},BG=["find","traverse","replace","include","exclude","rules","declare","scan"];var jG=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of BG)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)};const{isArray:RG}=Array,UG=e=>RG(e)?e:["on",e],$G=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!LG(r,t))continue;const[e,s]=UG(i);qG(r,e,t)&&n.push(IG([r,s],t))}return n};function qG(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}const JG=((e,t={})=>{const{simpleImport:n=aG}=t;return async t=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await cG([oG.resolve(e)],{simpleImport:n,require:oG})}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(pG),s=Array.from(new Set([...r,...i]));return await cG(s,{simpleImport:n,require:oG})}})("plugin"),VG=async e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=FG({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!LG(i,t))continue;OG(i);const[e]=KG(i),a=s||JG(e);r.push(WG(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];jG({plugin:n,rule:t});const{rules:r}=n;r?s.push(...XG(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return $G({plugins:a,cookedRules:s})},KG=e=>[e,"putout"];function XG(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function WG(e){if(e.startsWith("import:")){return YY(e.replace("import:","")).replace("plugin-","")}return e}const{isArray:HG}=Array,zG=e=>{DG(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=FG({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!LG(r,t))continue;OG(r);const e=GG(r),[s,a]=YG(r),o=QG(i)||eQ({name:s,namespace:a});jG({plugin:o,rule:r});const{rules:u}=o;u?n.push(...ZG(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return $G({plugins:a,cookedRules:s})},YG=e=>[e,"putout"],GG=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),QG=e=>HG(e)?e[1]:e;function ZG(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function eQ({name:e,namespace:t}){const n=sG(import.meta.url),{loadPlugin:r}=n("../load/load.js");return r({name:e,namespace:t})}function tQ(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}let nQ="";function rQ(e,t){let n,r,i,s;const a=(...e)=>{if(!a.enabled)return;const r=Date.now(),i=r-(n||r);var s;n=r,e[0]=(s=e[0])instanceof Error?s.stack||s.message:s,"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-z%])/gi,(n,r)=>{if("%%"===n)return"%";o++;const i=t.formatters[r];if("function"==typeof i){const t=e[o];n=i.call(a,t),e.splice(o,1),o--}return n}),t.formatArgs.call(a,i,e),a.log(...e)};return a.extend=function(e,t=":"){return rQ(this.namespace+t+e,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(a,t),a.namespace=e,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!=r?r:(i!==nQ&&(i=nQ,s=function(e){for(const t of sQ)if(tQ(e,t))return!1;for(const t of iQ)if(tQ(e,t))return!0;return!1}(e)),s),set:e=>{r=e}}),a}let iQ=[],sQ=[];const aQ=["#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"];const oQ=console.debug||console.log||(()=>{}),uQ=function(){try{return localStorage}catch(e){}}(),cQ={useColors:!0,formatArgs:function(e,t){const{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;const r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let i=0,s=0;t[0].replace(/%[a-z%]/gi,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,r)},formatters:{j(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: ${e.message}`}}},inspectOpts:{},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`},log:oQ};function lQ(e,t){var n;const r=null!==(n=t&&t.color)&&void 0!==n?n:function(e,t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e[Math.abs(n)%e.length]}(aQ,e);return rQ(e,Object.assign(cQ,{color:r},t))}!function(e){nQ=e,iQ=[],sQ=[];const t=nQ.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?sQ.push(e.slice(1)):iQ.push(e)}(function(){let e;try{e=uQ.getItem("debug")||uQ.getItem("DEBUG")}catch(e){}return!e&&void 0!==C&&"env"in C&&(e=C.env.DEBUG),e||""}());const pQ=e=>{const t=lQ(e,{useColors:!0});return new Proxy(t,{apply:(t,n,r)=>(globalThis.__putout_debug?.(e,...r),t(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]})},{stringify:dQ}=JSON,hQ=pQ("putout:runner:fix");var fQ=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(hQ.enabled&&hQ(`${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: '${dQ(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]=vY(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}))};const mQ=e=>e.path||e[0]||e,yQ=(e,t)=>{const n=mQ(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:gQ}=Array;var bQ=e=>e?(e=>gQ(e)?e:[e])(e):[];const{stringify:xQ}=JSON,SQ=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${xQ(t)}'. More on using Includer: https://git.io/JqcMn`)},{values:TQ,entries:EQ,assign:PQ}=Object,vQ=e=>Array.from(e),AQ=e=>e.node,CQ=e=>vQ(e).filter(AQ),wQ=e=>e,kQ=OQ(),IQ=OQ(CQ),_Q=DQ({get:e=>TQ(e),set(e,t,n){e[t]=n}}),NQ=DQ({get:e=>TQ(e),set(e,t,n){e[t]=e[t]||{},PQ(e[t],n)}}),LQ=DQ({get:e=>TQ(e).map(CQ),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});function DQ({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=()=>EQ(n),r}}function OQ(e=wQ){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(vQ(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(vQ(n))},n}}const{merge:MQ}=_R.visitors,{assign:FQ}=Object,BQ=(e,t,n)=>{const r=[];return t[e]&&(SQ(e,t[e]),r.push(...bQ(t[e]()))),n[e]&&r.push(...bQ(n[e])),r};var jQ=(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}=RQ(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:NY,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);FQ(c,{include:BQ("include",o,c),exclude:BQ("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:MQ(i)}};function RQ(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=_Q(),o=kQ(),u=NQ(),c=kQ(),l=LQ(),p=IQ();return{push:(a,o)=>{const u=yQ(a,r),l=i||e.report(a,o);c({message:l,position:u}),fQ(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{merge:UQ}=_R.visitors;function $Q({rule:e,find:t,ast:n,options:r,template:i,traverse:s=_R}){const a=[],o=t(n,{traverse:qQ({rule:e,options:r,template:i,traverse:s}),generate:NY,types:Me,push:e=>{a.push(e)},options:r});return[...a,...o||[]]}const qQ=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=UQ(n({rule:e,visitor:s,options:t}));return r(i,a)},JQ=e=>void 0===e;function VQ(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(!JQ(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n}const KQ=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),XQ=e=>/__proto__|prototype/.test(e);function WQ(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(!XQ(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=KQ(t)?[]:{}}r=r[n]}return i}const HQ=/\.body\.0\.expression$/,zQ=/\.body\.0\.key$/,YQ=/\.body\.0$/,GQ=e=>e.replace(HQ,"").replace(zQ,"").replace(YQ,""),{isBlockStatement:QQ,isTSModuleBlock:ZQ,isBooleanLiteral:eZ,isIdentifier:tZ,isLiteral:nZ,isTemplateElement:rZ,isFunction:iZ,isImportDefaultSpecifier:sZ,isExportSpecifier:aZ,isRegExpLiteral:oZ,isJSXText:uZ,isJSXIdentifier:cZ,isJSXAttribute:lZ,isTSTypeReference:pZ,isTSTypeParameterDeclaration:dZ}=Me,hZ=e=>"string"==typeof e,fZ="__object",mZ="__array",yZ="__args",gZ="__type_params",bZ="__imports",xZ="__exports",SZ="__body",TZ="__jsx_children",EZ="__jsx_attributes",PZ="__",vZ="__identifier",AZ="__bool",CZ=/^__[a-z]$/,wZ=/__args__[a-z]$/,kZ=/^__identifier__[a-z]$/,IZ=/^__bool__[a-z]$/,_Z=[fZ,mZ,yZ,gZ,AZ,TZ,EZ,bZ,xZ,SZ,PZ,vZ,CZ,wZ,kZ,IZ],NZ=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),LZ=(e,t=_Z)=>{for(const n of t)if(DZ(e,n))return!0;return!1};function DZ(e,t){return hZ(t)?e===t:t.test(e)}const OZ=e=>e===bZ,MZ=e=>e===xZ,FZ=e=>e===yZ||wZ.test(e),BZ=e=>e===gZ,jZ=e=>e===TZ,RZ=e=>e===EZ,UZ=e=>e===SZ,$Z=e=>tZ(e,{name:SZ}),qZ=(e,t)=>!!tZ(t,{name:vZ})&&tZ(e),JZ=(e,t)=>e.type===t.type,{isArray:VZ}=Array,KZ=(e,t)=>!(!tZ(t)||!kZ.test(t.name))&&tZ(e),XZ=(e,t)=>!(!oZ(t)||!CZ.test(t.pattern))&&oZ(e),WZ=e=>!!e&&(!VZ(e)&&"object"==typeof e),HZ=(e,t)=>!(!VZ(e)||!VZ(t))&&e.length===t.length,zZ="ObjectPattern|ObjectExpression",YZ="ArrayPattern|ArrayExpression",GZ=(e,t)=>{if(!tZ(t,{name:mZ}))return!1;const{type:n}=e;return YZ.includes(n)},QZ=(e,t)=>{if(!tZ(t,{name:fZ}))return!1;const{type:n}=e;return zZ.includes(n)},ZZ=(e,t)=>!!e&&(!!$Z(t)&&"BlockStatement"===e.type),e0=(e,t)=>{if(!tZ(t,{name:"__nop"}))return!1;if(!iZ(e))return!1;const{body:n}=e;return!!QQ(n)&&!n.body.length},t0=e=>!(!tZ(e)||!CZ.test(e.name))||(!(!nZ(e)||!CZ.test(e.value))||(!(!uZ(e)||!CZ.test(e.value))||(!(!cZ(e)||!CZ.test(e.name))||(!(!rZ(e)||!CZ.test(e.value.raw))||pZ(e)&&CZ.test(e.typeName.name))))),n0=(e,{program:t}={})=>{const n=(t?jY.program.ast:jY.ast)(e)||jY.ast.fresh(e);if(e===fZ)return[n,zZ];if(e===mZ)return[n,YZ];const{type:r}=n;return[n,r]},{isIdentifier:r0,isStatement:i0,isJSXElement:s0,isJSXAttribute:a0,isStringLiteral:o0,isTemplateLiteral:u0,templateElement:c0}=Me,{extractExpression:l0}=jY,{entries:p0}=Object,{stringify:d0}=JSON,h0=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${d0(t)}'`);e=(e=>e.node||e)(e);return m0({node:e,waysFrom:f0(jY.ast(t))})};function f0(e){if(r0(e)&&LZ(e.name))return{[e.name]:[""]};const t={};return _R(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if((e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference())(e))return;if((e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter())(e))return;const{node:n}=e;if(a0(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=ZJ(n);LZ(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 m0({waysFrom:e,node:t}){const n={};for(const[r,i]of p0(e))for(let e of i)OZ(r)||MZ(r)?e=e.replace(/\.0.local$/,""):(FZ(r)||jZ(r)||RZ(r)||BZ(r))&&(e=e.replace(/\.0$/,"")),s0(t)||(e=e.replace(/\.expression$/,"")),UZ(r)&&(e=GQ(e)),n[r]=n[r]||l0(VQ(e,t));return n}const y0=e=>e.replace("`","\\`");function g0({waysTo:e,values:t,path:n}){const r=l0(n.node);for(const[i,s]of p0(e))for(let e of s){if(!e){UV(n,t[i]);continue}if((OZ(i)||MZ(i))&&(e=e.replace(/\.0.local$/,"")),(FZ(i)||jZ(i)||RZ(i))&&(e=e.replace(/\.0$/,"")),i0(t[i])&&(e=e.replace(/\.expression$/,"")),o0(t[i])&&u0(r)){const{value:n}=t[i];WQ(e,c0({raw:y0(n)}),r);continue}UZ(i)&&(e=GQ(e));const{extra:s}=VQ(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}WQ(e,t[i],r)}}const b0=(e=>{const t=lQ(e);return new Proxy(t,{apply:(t,n,r)=>(globalThis.__putout_debug?.(e,...r),t(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]})})("putout:compare"),{isArray:x0}=Array;function S0(e){if(x0(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}"`}const{isIdentifier:T0,isLiteral:E0,isStringLiteral:P0,isTemplateElement:v0,isTSTypeReference:A0,isJSXText:C0,isJSXIdentifier:w0}=Me;var k0=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=(e=>{e=e[0]||e;const{name:t,value:n}=e;if(T0(e)||w0(e))return t;if(E0(e))return n;if(v0(e))return e.value.cooked;if(A0(e))return e.typeName.name;if(C0(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)})(t);return!(P0(t)&&!P0(n))&&(r[i]?(T0(r[i])&&A0(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))};const I0=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||LZ(t)||t!==e);var n},{isIdentifier:_0}=Me,{isClassBody:N0,isBlock:L0,isJSXText:D0,isTemplateElement:O0}=Me,M0=e=>(t,n)=>e(n),F0=[I0,function(e,t){if(!O0(e)||!O0(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!(!D0(e)||!D0(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},M0(N0),M0(e=>L0(e)&&!e.body.length),M0(e=>!!tZ(e,{name:PZ})||uZ(e,{value:PZ})),qZ,(e,t)=>!!tZ(t,{name:AZ})&&eZ(e),GZ,QZ,ZZ,(e,t)=>{if(!e)return!1;if(!($Z(n=t)||(QQ(n)||ZQ(n))&&$Z(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},e0,(e,t)=>!!e&&(!!(e=>{if(!dZ(e))return!1;const{params:t}=e,{name:n}=t[0];return tZ(n,{name:gZ})})(t)&&JZ(e,t)),XZ,function(e,t,{add:n,templateStore:r}){const i=e&&(t0(t)||(e=>{const t=VZ(e)?e[0]:e;return tZ(t)&&wZ.test(t.name)})(t)||KZ(e,t)||((e,t)=>!(!tZ(t)||!IZ.test(t.name))&&eZ(e))(e,t));return!!i&&k0({add:n,value:t,nodeValue:e,templateStore:r})},(e,t)=>!!nZ(t,{value:PZ})&&JZ(e,t),M0(e=>{const t=VZ(e)?e[0]:e;return!!sZ(t)&&tZ(t.local,{name:bZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return!!aZ(t)&&tZ(t.local,{name:xZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return tZ(t,{name:yZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return uZ(t,{value:TZ})}),M0(e=>{const t=VZ(e)?e[0]:e;return!!lZ(t)&&cZ(t.name,{name:EZ})}),function(e,t,{add:n}){const r=WZ(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=HZ(e,t);r&&n(e,t);return r}],B0=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=F0.length;if(((e,t)=>{if(!b0.enabled)return;const n=S0(e),r=S0(t);b0(`${n} = ${r}`)})(t,e),i)return((e,t,{add:n})=>!e&&e===t||!!e&&(!!I0(e,t)||!(!_0(e)||e.name!==t.name)||(WZ(t)&&!Array.isArray(t)||!!HZ(e,t))&&n(e,t,{plain:!0})))(e,t,{add:n});for(;++s<a;){if((0,F0[s])(e,t,{add:n,templateStore:r}))return!0}return!1};const{isIdentifier:j0,isStringLiteral:R0}=Me,U0=[QZ,GZ,e0,function(e,t){return j0(e)&&t0(t)},function(e,t){return R0(e)&&t0(t)},KZ,XZ,ZZ];const{extractExpression:$0}=jY,{keys:q0}=Object,{isArray:J0}=Array,V0=()=>{},K0=e=>J0(e)&&!e.length,X0=e=>J0(e)?e:[e];function W0(e){return hZ(e)?jY.ast(e):e.node?e.node:e}function H0(e,t,n={},r=V0){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=$0(W0(e)),a=$0(W0(t));if(r(s,a),qZ(s,a))return!0;if(s.type===t)return!0;if(((e,t)=>{let n=-1;const r=U0.length;for(;++n<r;)if((0,U0[n])(e,t))return!0;return!1})(s,a))return!0;if(i&&(e=>Boolean(e.node))(e)&&!JZ(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 Q0(n,a)}return Q0(s,a)}const z0=(e,t,n)=>{t=X0(t);for(const r of t)if(H0(e,r,n))return!0;return!1},Y0=(e,t,n)=>{t=X0(t);for(const r of t)if(!H0(e,r,n))return!1;return!0},G0=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function Q0(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||K0(e)&&!K0(t))return!1;for(const n of q0(t)){if(G0.includes(n))continue;const a=$0(e[n]),o=$0(t[n]);if(!B0(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const Z0=pQ("putout:runner:template"),{entries:e1}=Object,t1=e=>"function"==typeof e,{stringify:n1}=JSON,r1=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!t1(n)||!r.length)return{[t]:n};const i=s1({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};var i1=({rule:e,visitor:t,options:n})=>{const r=[],i=bQ(n.exclude),s=bQ(n.include);for(const[n,a]of e1(t)){if(!n)continue;if(!NZ(n)){r.push(r1({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=n0(n),u=s1({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r};const s1=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(((e,t)=>{Z0.enabled&&Z0(e,t.toString())})(e,i),n.length&&z0(i,n))return;if(t.length&&!Y0(i,t))return;if(!t1(r))throw Error(`☝️ Looks like provided visitor is not a function: ${n1(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=vY(r,i);if(s)throw s.rule=e,s};var a1;function o1(){}function u1(){u1.init.call(this)}function c1(e){return void 0===e._maxListeners?u1.defaultMaxListeners:e._maxListeners}function l1(e,t,n,r){var i,s,a,o;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 o1,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=c1(e))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,o=u,"function"==typeof console.warn?console.warn(o):console.log(o)}}else a=s[t]=n,++e._eventsCount;return e}function p1(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 d1(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 h1(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}o1.prototype=Object.create(null),u1.EventEmitter=u1,u1.usingDomains=!1,u1.prototype.domain=void 0,u1.prototype._events=void 0,u1.prototype._maxListeners=void 0,u1.defaultMaxListeners=10,u1.init=function(){this.domain=null,u1.usingDomains&&(!a1.active||this instanceof a1.Domain||(this.domain=a1.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new o1,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u1.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},u1.prototype.getMaxListeners=function(){return c1(this)},u1.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=h1(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=h1(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=h1(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=h1(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=h1(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},u1.prototype.addListener=function(e,t){return l1(this,e,t,!1)},u1.prototype.on=u1.prototype.addListener,u1.prototype.prependListener=function(e,t){return l1(this,e,t,!0)},u1.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,p1(this,e,t)),this},u1.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,p1(this,e,t)),this},u1.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 o1:(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 o1,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},u1.prototype.off=function(e,t){return this.removeListener(e,t)},u1.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new o1,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new o1: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 o1,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},u1.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):[]},u1.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d1.call(e,t)},u1.prototype.listenerCount=d1,u1.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};const f1=()=>{let e=0,t=0;const n=new u1;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},m1=(e,...t)=>{const[n,r]=vY(e,...t);if(n)throw n.reason??="traverse",n;return r},y1=pQ("putout:runner:include"),g1=()=>[],b1=()=>!0,x1=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=g1,filter:u=b1}=t;SQ("include",a),SQ("report",s);const c=S1(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...bQ(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}},S1=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{y1(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},T1=e=>(...t)=>(...n)=>e(...t,...n);var E1=((e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?T1(e)(...t):T1(e))).default;const{entries:P1}=Object,{isArray:v1}=Array;function A1(e,t){const{node:n}=e;let r,i;for([r,i]of P1(t)){if(v1(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const{isProgram:C1}=Me,w1="__putout_runner_replace",k1=(e,t,n)=>{const{watermark:r,highWatermark:i}=function(e,t,n){const r=`${e} -> ${t}`,i=`${(e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(A1(t,t.parent));return n.join(".")})(n)}: ${r}`;return{watermark:r,highWatermark:i}}(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(C1),path:n};return{init:E1(_1,s),has:E1(L1,s),add:E1(N1,s)}},I1=w1;function _1({path:e,program:t}){e.node&&(e.node[w1]=e.node[w1]||new Set),t.node[w1]=t.node[w1]||new Set}function N1({path:e,program:t,watermark:n,highWatermark:r}){_1({path:e,program:t}),e?.node[w1].add(n),t.node[w1].add(r)}function L1({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[w1].has(n)||e.findParent((e=>t=>t.node?.[w1]?.has(e))(n))&&!s)||t.node[w1].has(r)}const D1=pQ("putout:runner:replace"),O1=(e,t)=>{D1.enabled&&D1(`${e} -> ${t}\n`)},{isExpression:M1,isStatement:F1,isExpressionStatement:B1}=Me,j1={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:R1,entries:U1}=Object,{stringify:$1}=JSON,q1=()=>[],J1=()=>({}),V1=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||J1)({options:r}),{report:s,exclude:a=q1,replace:o,filter:u=z1(i)}=t,c=o({options:r}),l=H1(c,i),p=(d=c,()=>R1(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...bQ(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},K1=e=>{delete e.program[I1]},X1=e=>"function"==typeof e,W1=(e,t,n)=>{const r=jY.ast(e),i=k1(e,t,n);if(i.init(),i.has())return;const s=f0(r),a=((e,{node:t})=>e.type!==t.type&&B1(t)?t.expression:t)(r,n),o=m0({waysFrom:s,node:a}),u=function(e,t,n){const r=X1(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 jY.ast.fresh(r)}(t,o,n);if(!u)return O1(e,"''"),oV(n);!function(e,t,n){if(!M1(e))return;if(!F1(t)||B1(t))return;if(B1(n)||B1(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${wz(e,j1)} -> ${wz(t,j1)}'. For code: '${n}'`)}(r,u,n);const c=f0(u),l=UV(n,u);u.__putout_replace_cooked||(G1(c,s),g0({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),O1(e,l)},H1=(e,t)=>n=>{for(const[r,i]of U1(e)){const e=jY.ast(r);if(H0(n,e,{findUp:!1})){const s=t[r];s&&!Y1(n,e,s)||W1(r,i,n)}}},z1=e=>t=>{const n=U1(e);for(const[e,r]of n){const n=jY.ast(e);if(H0(t.node,n,{findUp:!1}))return Y1(t,n,r)}return!0};function Y1(e,t,n){const r=f0(t),{node:i}=e,s=m0({waysFrom:r,node:i});return function(e){if(!X1(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const G1=(e,t)=>{for(const n of R1(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${$1(R1(t))} -> ${$1(R1(e))}`)};const Q1="__putout_declare",Z1=e=>e.scope.getProgramParent().path,e2=(e,t)=>t[e]=t[e]||{},t2=(e,t)=>{const n=Z1(t);return e2(Q1,n),n[Q1].__putout_module_type=e,e},n2=e=>{const t=Z1(e);return e2(Q1,t),t[Q1].__putout_module_type},{isImportDeclaration:r2,isVariableDeclaration:i2}=Me,{keys:s2}=Object,a2=e=>e.node.source.value.includes("."),o2=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"],u2=e=>({report:c2,include:l2,fix:d2(e),filter:p2(e)}),c2=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},l2=()=>["ReferencedIdentifier"],p2=e=>(t,{options:n})=>{if(o2.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=s2(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)||((e,t)=>{const n=Z1(t);return e2(Q1,n),n[Q1][e]})(c,t))return!1;const l=function(e,t){if(t)return t2(t,e);const n=n2(e);return n||t2((e=>GV(e)?"esm":"commonjs")(e),e)}(t,i);return h2(l,s[c])},d2=e=>(t,{options:n})=>{const r=n2(t),i={...e,...n.declarations},{name:s}=t.node,a=h2(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=m2(t),r=(e=>e.filter(i2).pop())(t);return i2(e)&&n||(r2(e)||f2(e))&&n?n:i2(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(i2(e)&&r2(n)||f2(n))return WV(n,e);if(i2(e))return f2(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&a2(n)?n.insertBefore(e):WV(n,e):r.insertBefore(e)}(jY.ast.fresh(a),o),((e,t)=>{const n=Z1(t);e2(Q1,n),n[Q1][e]=!0})(s,t)},h2=(e,t)=>"string"==typeof t?t:t[e];const f2=e=>H0(e,"const __a = require(__b)");const m2=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(a2(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{stringify:y2}=JSON,g2=({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 '${y2(e)}'.`);var t}(t.declare),{rule:e,plugin:u2(t.declare()),msg:n,options:r});function b2(e){const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}}const x2=e=>e.slice(0,e.indexOf("(")),S2=e=>e.includes("(")?`${x2(e)}(`:`${e}(`,T2=e=>"\n"===e.at(-1)?e:`${e}\n`,E2="__putout_processor_json",P2="__putout_processor_yaml",v2="__putout_processor_toml",A2="__putout_processor_filesystem",C2="__putout_processor_ignore",w2=`${E2}(__object)`,k2=`${P2}(__object)`,I2=`${v2}(__object)`,_2=`${A2}(__object)`,N2=`${C2}(__array)`,L2=[E2,P2,A2,C2],D2=(e,t=w2)=>`${S2(t)}${e});\n`,O2=(e,t=w2)=>{e=T2(e);const n=x2(t);e=e.slice(e.indexOf(n));const r=S2(t),i=e.length-3,s=e.slice(r.length,i);return T2(yz(s))},M2=e=>{for(const t of L2)if(!e.indexOf(t))return!0;return!1};var F2=Object.freeze({__proto__:null,__filesystem:_2,__filesystem_name:A2,__ignore:N2,__ignore_name:C2,__json:w2,__json_name:E2,__toml:I2,__toml_name:v2,__yaml:k2,__yaml_name:P2,fromJS:O2,isJSON:M2,toJS:D2});const B2=b2(),{assign:j2}=Object,R2=()=>{},U2={renameFile:R2,removeFile:R2,createDirectory:R2,readFileContent:($2="",()=>$2),writeFileContent:R2,copyFile:R2};var $2;const q2=j2({},U2),J2=(e,t)=>{q2.renameFile(e,t)},V2=e=>{q2.removeFile(e)},K2=(e,t)=>{q2.copyFile(e,t)},X2=e=>{q2.createDirectory(e)},W2=e=>q2.readFileContent(e),H2=(e,t)=>{q2.writeFileContent(e,t)};function z2(e){j2(q2,e)}function Y2(){j2(q2,U2)}var G2=Object.freeze({__proto__:null,copyFile:K2,createDirectory:X2,deinit:Y2,init:z2,pause:()=>{B2(q2),Y2()},readFileContent:W2,removeFile:V2,renameFile:J2,start:()=>{z2(B2())},writeFileContent:H2});const{arrayExpression:Q2,stringLiteral:Z2,objectProperty:e3}=Me,t3=e=>i3("type",Z2(e)),n3=e=>i3("filename",Z2(e)),r3=e=>i3("content",Z2(e));function i3(e,t){const n=Z2(e);return e3(n,t)}const{isProgram:s3,objectExpression:a3}=Me,o3=e=>"string"==typeof e,{isArray:u3}=Array,c3=e=>{const[t,n]=vY(btoa,e);return t?btoa(escape(e)):n},l3=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function p3(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return s3(t)?null:t}function d3({name:e,base:t,exclude:n}){for(const r of n)if(e===r||l3(r).test(t))return!0;return!1}function h3(e,t,n=[]){!function(e){if(!o3(e)&&!u3(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=>u3(e)?e:[e])(t);for(const t of SV(e,"filename")){const{value:e}=t.node.value,s=YY(e);for(const a of i)if(e===a||l3(a).test(s)){const e=t.parentPath;if(d3({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function f3(e){return AV(e,"filename").get("value")}function m3(e){const{value:t}=f3(e).node;return t}function y3(e){return AV(e,"type").node.value.value}function g3(e){const t=AV(e,"content");return[Boolean(t),t?.node.value.value]}const b3=(e,t)=>{const n=m3(e),r=f3(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);fV(r,a),J2(n,a)};function x3(e){const t=m3(e);p3(e)&&(e.remove(),V2(t))}const S3=e=>{if("directory"!==y3(e))return;let t=e;for(;!C3(e).length;){if("/"===m3(e))break;if(t=p3(e),!t)break;x3(e),e=t}},T3=(e,t)=>{if(e===t)return;const n=m3(t),r=m3(e),i=A3(t),s=AV(e,"filename"),a=WY(n,r.split("/").pop());P3(t,a),fV(s.get("value"),a),i.node.value.elements.push(e.node),e.remove(),J2(r,a)},E3=(e,t)=>{const n=m3(t),r=m3(e),i=WY(n,r.split("/").pop()),[s,a]=g3(e),o=a3([t3("file"),n3(i),s&&r3(a)].filter(Boolean));P3(t,i);A3(t).node.value.elements.push(o),K2(r,i)};function P3(e,t){const n=y3(e);if("directory"!==n){const t=m3(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=AV(e,"files"),i=WY(m3(e),YY(t)),[s]=h3(r,i);s&&s.remove()}const v3=(e,t,n)=>{P3(e,t);const r=A3(e),i=WY(m3(e),t),s=[t3("file"),n3(i),n&&r3(n)].filter(Boolean);r.node.value.elements.push(a3(s));const a=r.get("value.elements").at(-1);return o3(n)&&I3(a,n),a},A3=e=>AV(e,"files");function C3(e){return"directory"!==y3(e)?[]:A3(e).get("value.elements")}function w3(e,t){const n=A3(e),r=WY(m3(e),t),i=t3("directory"),s=i3("files",Q2([]));const a=n3(r);return n.node.value.elements.push(a3([i,a,s])),X2(r),n.get("value.elements").at(-1)}const k3=e=>{if("directory"===y3(e))return"";const[t,n]=g3(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=vY(atob,e);return t?e:unescape(n)})(n);const r=m3(e),i=W2(r),s=r3(c3(i));return e.node.properties.push(s),i};function I3(e,t){if("directory"===y3(e))return;const n=m3(e);H2(n,t);const r=AV(e,"content");if(r)return void fV(r.node.value,c3(t));const i=r3(c3(t));e.node.properties.push(i)}const _3=(e,t)=>{const n=N3(e);if(zY(t)===m3(e))return w3(e,YY(t));let r=t;const i=m3(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=zY(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=WY(i,t);s.shift();break}let o=h3(n,s).at(-1)||n;const u=m3(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=w3(o,YY(s[l]))}return o};function N3(e){let t=p3(e);if(!t)return e;let n=t;for(;t=p3(t);)n=t;return n}const{init:L3,deinit:D3,pause:O3,start:M3}=G2;var F3=Object.freeze({__proto__:null,copyFile:E3,createDirectory:w3,createFile:v3,createNestedDirectory:_3,deinit:D3,findFile:h3,getFileContent:g3,getFileType:y3,getFilename:m3,getParentDirectory:p3,getRootDirectory:N3,init:L3,moveFile:T3,pause:O3,readDirectory:C3,readFileContent:k3,removeEmptyDirectory:S3,removeFile:x3,renameFile:b3,start:M3,writeFileContent:I3}),B3={},j3=e(tG),R3=e(NR),U3=e(F3),$3=e(F2),q3=e(QV);const{basename:J3,dirname:V3}=j3,{types:K3}=R3,{createDirectory:X3,getFileType:W3,getFilename:H3,findFile:z3}=U3,{__filesystem_name:Y3}=$3,{replaceWith:G3,getProperty:Q3}=q3,{objectExpression:Z3,arrayExpression:e4,stringLiteral:t4,isArrayExpression:n4,isStringLiteral:r4,isTemplateLiteral:i4,objectProperty:s4}=K3;B3.report=()=>"Convert Simple Filesystem to Filesystem";const a4=e=>e.endsWith("/"),o4=e=>{const t=a4(e)?"directory":"file";return s4(t4("type"),t4(t))},u4=e=>s4(t4("filename"),t4(e)),c4=e=>a4(e)?s4(t4("files"),e4([])):null,l4=e=>s4(t4("content"),t4(e));function p4(e,t){if(r4(e))return e.value;if(i4(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}B3.fix=e=>{const t=e4([]);for(const n of e.get("elements")){if(n4(n)){const[e,r]=n.node.elements,{value:i}=e,s=p4(r,n);t.elements.push(Z3([o4(i),u4(i),l4(s)]));continue}if(r4(n)){const{value:e}=n.node;t.elements.push(Z3([o4(e),u4(d4(e)),c4(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=z3(t,"*");for(const e of r){const t=H3(e);h4(t);const r=W3(e),i=V3(t),s=J3(t),[a]=z3(n,i);if(!a||"directory"!==W3(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){X3(a,s);continue}Q3(a,"files").node.value.elements.push(e.node)}G3(e,n)}(e,t)},B3.traverse=({push:e})=>({[`${Y3}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const d4=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function h4(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var f4={};const{types:m4}=R3,{replaceWith:y4,getProperty:g4}=q3,{__filesystem_name:b4}=$3,{findFile:x4,getFilename:S4,getFileType:T4}=U3,{stringLiteral:E4,arrayExpression:P4}=m4,{isArray:v4}=Array,A4=e=>"/"===e?e:`${e}/`;f4.report=()=>"Convert Filesystem to Simple Filesystem",f4.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=S4(e),r=T4(e),i=g4(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(A4(t))}const r=[];for(const e of n)v4(e)?r.push(P4([E4(e[0]),E4(e[1])])):r.push(E4(e));y4(e,P4(r))},f4.traverse=({push:e})=>({[`${b4}(__object)`]:t=>{const n=t.get("arguments.0"),r=x4(n,"*");e(n,{files:r})}});const C4=pQ("putout:runner:scanner"),w4=({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:I4({scan:s,rule:e,progress:i})}}},k4=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},I4=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${A2}(__)`](s){C4(t),n.start(t);const a=s.get("arguments.0"),o=b2(!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=h3(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);N4(B3,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:k4({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),N4(f4,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),_4=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function N4(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:_4({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${A2}(__object)`],n=e[`${A2}(__array)`];return t?[t,`${A2}(__object)`]:[n,`${A2}(__array)`]}(a);H0(t,u)&&(O3(),o(t),M3())}const L4=pQ("putout:runner:find"),D4=e=>e?.removed,O4=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=f1(),traverse:a=_R})=>{let o=[];const u=oY(jQ),{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(x1(V1(i))):e.declare?r.push(x1(g2(i))):e.include?r.push(x1(i)):e.scan&&r.push(w4(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=M4({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:i1,traverse:a}),s.reset(),!n||!o.length)return o;K1(e)}return o},M4=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...B4({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...F4({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function F4({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});m1(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 B4({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){L4(`find: ${o}`);const{report:i,find:p}=u,d=m1($Q,{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}=mQ(e),p=yQ(e,n);a.push({rule:o,message:r,position:p}),D4(s)||fQ(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const j4=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=4,loadPlugins:s=zG,loadPluginsAsync:a=VG,runPlugins:o=O4,progress:u=f1()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}},R4=e=>e.replace(/\s\(\d:\d+\)/,""),U4=e=>e?((e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:R4(e.message),position:{line:n,column:r}}]})(e,"loader"):[],$4=(e,t,n)=>{n=j4(n);const{plugins:r,rules:i,fix:s,fixCount:a,loadPlugins:o,runPlugins:u,progress:c}=n,[,l]=UY(t),[p]=vY(MG,{rules:i,pluginNames:r}),d=u({ast:e,shebang:l,fix:s,fixCount:a,plugins:o({pluginNames:r,rules:i}),progress:c});return[...U4(p),...d]},q4=async(e,t,n)=>{n=j4(n);const{plugins:r,rules:i,fix:s,fixCount:a,loadPluginsAsync:o,runPlugins:u,progress:c}=n,[,l]=UY(t),[p]=vY(MG,{rules:i,pluginNames:r}),d=u({ast:e,shebang:l,fix:s,fixCount:a,plugins:await o({pluginNames:r,rules:i}),progress:c});return[...U4(p),...d]},J4=(e,t)=>{X4(e),t=j4(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=UY(e),u=IY(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=$4(u,e,t);if(!t.fix)return{code:e,places:c};const l=wz(u,{printer:s,source:e});return{code:RY(o,l),places:c}},V4=async(e,t)=>{X4(e),t=j4(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=UY(e),u=IY(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await q4(u,e,t);if(!t.fix)return{code:e,places:c};const l=wz(u,{printer:s});return{code:RY(o,l),places:c}},K4=e=>"string"==typeof e;function X4(e){if(!K4(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}const{isFile:W4,isProgram:H4}=Me,{merge:z4}=_R.visitors,{entries:Y4}=Object,G4=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!W4(e)&&!H4(e);return n=>{_R(e,{noScope:t,...n})}},Q4=([e])=>e;function Z4(e,t){const n=G4(e),r=[],i=Y4(t);if(!i.map(Q4).find(NZ))return n(t);for(const[e,t]of i){if(!NZ(e)){r.push({[e]:t});continue}const[n,i]=n0(e),s=e5({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(z4(r))}const e5=({fn:e,node:t,tmpl:n})=>r=>{H0(r,t)&&e(r,h0(r.node,n))},{isJSXElement:t5,jsxAttribute:n5,jsxIdentifier:r5,stringLiteral:i5}=Me,s5=e=>e.node||e;function a5(e,t){let n=null;const r=s5(e),{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}function o5(e,t){const n=a5(e,t);return n?n.value.value:""}function u5(e,t,n){const r=a5(e,t);if(!r)return c5(e,t,n);r.value.value.includes(n)||fV(r.value,`${r.value.value} ${n}`)}function c5(e,t,n){const r=s5(e);let i=a5(r,t);i||(i=n5(r5(t),i5(n)),r.openingElement.attributes.push(i))}function l5(e,t,n){if(!e)return;const r=a5(e.node||e,t),{value:i}=r.value;if(!i.includes(n))return;const s=i.replace(RegExp(`\\s?${n}`),"").trim();fV(r.value,s)}function p5(e){return o5(e,"className")}function d5(e){return e?h5[e.type](e):""}var h5={RegExp:function(e){return"/"+d5(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(d5).join("")},Disjunction:function(e){return d5(e.left)+"|"+d5(e.right)},Group:function(e){var t=d5(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=d5(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=d5(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(d5).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return d5(e.from)+"-"+d5(e.to)},Repetition:function(e){return""+d5(e.expression)+d5(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+"}"}},f5={generate:d5},m5={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},y5=P5(m5),g5={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"},b5=P5(g5),x5={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"},S5=P5(x5),T5={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"},E5=P5(T5);function P5(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 v5(e){return x5.hasOwnProperty(e)||S5.hasOwnProperty(e)}function A5(e){return T5.hasOwnProperty(e)||E5.hasOwnProperty(e)}var C5={isAlias:function(e){return y5.hasOwnProperty(e)||b5.hasOwnProperty(e)},isValidName:function(e){return m5.hasOwnProperty(e)||y5.hasOwnProperty(e)||g5.hasOwnProperty(e)||b5.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?v5(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&A5(t)},isGeneralCategoryValue:v5,isScriptCategoryValue:A5,isBinaryPropertyName:function(e){return g5.hasOwnProperty(e)||b5.hasOwnProperty(e)},getCanonicalName:function(e){return y5.hasOwnProperty(e)?y5[e]:b5.hasOwnProperty(e)?b5[e]:null},getCanonicalValue:function(e){return S5.hasOwnProperty(e)?S5[e]:E5.hasOwnProperty(e)?E5[e]:b5.hasOwnProperty(e)?b5[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:m5,NON_BINARY_ALIASES_TO_PROP_NAMES:y5,BINARY_PROP_NAMES_TO_ALIASES:g5,BINARY_ALIASES_TO_PROP_NAMES:b5,GENERAL_CATEGORY_VALUE_TO_ALIASES:x5,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:S5,SCRIPT_VALUE_TO_ALIASES:T5,SCRIPT_VALUE_ALIASES_TO_VALUE:E5},w5=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 k5(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 I5=void 0,_5={},N5=void 0,L5=void 0;function D5(e,t){return _5.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 O5=[[-1,1,function(e,t){L5=D5(t,t),N5=e}],[0,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),N5=i8({type:"RegExp",body:t,flags:G5(r)},s8(i,o||a))}],[1,1,function(e,t){L5=D5(t,t),N5=e}],[1,0,function(){L5=null,N5=""}],[2,1,function(e,t){L5=D5(t,t),N5=e}],[2,2,function(e,t,n,r){L5=D5(n,r),N5=e+t}],[3,1,function(e,t){L5=D5(t,t),N5=e}],[4,1,function(e,t){L5=D5(t,t),N5=e}],[4,3,function(e,t,n,r,i,s){L5=D5(r,s);var a=null;i&&(a=s8(r||i,s||i)),N5=i8({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){L5=D5(t,t),N5=0!==e.length?1===e.length?i8(e[0],L5):i8({type:"Alternative",expressions:e},L5):null}],[6,0,function(){L5=null,N5=[]}],[6,2,function(e,t,n,r){L5=D5(n,r),N5=e.concat(t)}],[7,1,function(e,t){L5=D5(t,t),N5=i8(Object.assign({type:"Assertion"},e),L5)}],[7,2,function(e,t,n,r){L5=D5(n,r),N5=e,t&&(N5=i8({type:"Repetition",expression:e,quantifier:t},L5))}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"^"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"$"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"\\b"}}],[8,1,function(e,t){L5=D5(t,t),N5={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){L5=D5(r,s),N5={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[9,1,function(e,t){L5=D5(t,t),N5=e}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"simple",L5)}],[10,1,function(e,t){L5=D5(t,t),(N5=z5(e.slice(1),"simple",L5)).escaped=!0}],[10,1,function(e,t){L5=D5(t,t),(N5=z5(e,"unicode",L5)).isSurrogatePair=!0}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"unicode",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=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&&H5.isGeneralCategoryValue(i),o=-1===r&&H5.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!H5.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!H5.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return i8({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:H5.getCanonicalName(i)||i,canonicalValue:H5.getCanonicalValue(s)||s},t)}(e,L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"control",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"hex",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"oct",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=J5)return i8({type:"Backreference",kind:"number",number:n,reference:n},t);return z5(e,"decimal",t)}(e,L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}],[10,1,function(e,t){L5=D5(t,t),N5=function(e,t){var n=e.slice(3,-1),r=r8(n);if(V5.hasOwnProperty(r))return i8({type:"Backreference",kind:"name",number:V5[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=[z5(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(Q5))||(p=e.match(Z5))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(z5(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(z5(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){L5=D5(t,t),N5=e}],[11,0],[12,1,function(e,t){L5=D5(t,t),N5=e}],[12,2,function(e,t,n,r){L5=D5(n,r),e.greedy=!1,N5=e}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:e,greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t);var n=X5(e);N5=i8({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t),N5=i8({type:"Quantifier",kind:"Range",from:X5(e)[0],greedy:!0},L5)}],[13,1,function(e,t){L5=D5(t,t);var n=X5(e);N5=i8({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},L5)}],[14,1,function(e,t){L5=D5(t,t),N5=e}],[14,1,function(e,t){L5=D5(t,t),N5=e}],[15,3,function(e,t,n,r,i,s){L5=D5(r,s);var a=String(e),o=r8(a);if(!_5.options.allowGroupNameDuplicates&&V5.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');V5[o]=e.groupNumber,N5=i8({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},L5)}],[15,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"Group",capturing:!0,number:e.groupNumber,expression:t},L5)}],[16,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"Group",capturing:!1,expression:t},L5)}],[17,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"CharacterClass",negative:!0,expressions:t},L5)}],[17,3,function(e,t,n,r,i,s){L5=D5(r,s),N5=i8({type:"CharacterClass",expressions:t},L5)}],[18,0,function(){L5=null,N5=[]}],[18,1,function(e,t){L5=D5(t,t),N5=e}],[19,1,function(e,t){L5=D5(t,t),N5=[e]}],[19,2,function(e,t,n,r){L5=D5(n,r),N5=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),W5(e,n),N5=[i8({type:"ClassRange",from:e,to:n},s8(i,a))],r&&(N5=N5.concat(r))}],[20,1,function(e,t){L5=D5(t,t),N5=e}],[20,2,function(e,t,n,r){L5=D5(n,r),N5=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){L5=D5(i,o),W5(e,n),N5=[i8({type:"ClassRange",from:e,to:n},s8(i,a))],r&&(N5=N5.concat(r))}],[21,1,function(e,t){L5=D5(t,t),N5=z5(e,"simple",L5)}],[21,1,function(e,t){L5=D5(t,t),N5=e}],[22,1,function(e,t){L5=D5(t,t),N5=e}],[22,1,function(e,t){L5=D5(t,t),N5=z5(e,"meta",L5)}]],M5={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"},F5=[{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"}],B5=[],j5=void 0,R5=[[/^#[^\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 t8(I5.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&&"\\-"===I5)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+I5);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 t8(I5=I5.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"}]],U5={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]},$5={type:"$",value:""};j5={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($5);for(var e=this._string.slice(this._cursor),t=U5[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=R5[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(I5=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,k5(u))}return this.onToken(this._toToken(a,I5))}}if(this.isEOF())return this._cursor++,$5;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}},_5.lexer=j5,_5.tokenizer=j5,_5.options={captureLocations:!0};var q5={setOptions:function(e){return _5.options=e,this},getOptions:function(){return _5.options},parse:function(e,t){if(!j5)throw new Error("Tokenizer instance wasn't specified.");j5.initString(e);var n=_5.options;t&&(_5.options=Object.assign({},_5.options,t)),q5.onParseBegin(e,j5,_5.options),B5.length=0,B5.push(0);var r=j5.getNextToken(),i=null;do{r||(_5.options=n,o8());var s=B5[B5.length-1],a=M5[r.type];F5[s].hasOwnProperty(a)||(_5.options=n,a8(r));var o=F5[s][a];if("s"===o[0]){var u=null;_5.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),B5.push({symbol:M5[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=j5.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=O5[c],p="function"==typeof l[2],d=p?[]:null,h=p&&_5.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){B5.pop();var m=B5.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){I5=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,k5(g)),y.semanticValue=N5,h&&(y.loc=L5)}var b=B5[B5.length-1],x=l[0];B5.push(y,F5[b][x])}else if("acc"===o){B5.pop();var S=B5.pop();return(1!==B5.length||0!==B5[0]||j5.hasMoreTokens())&&(_5.options=n,a8(r)),S.hasOwnProperty("semanticValue")?(_5.options=n,q5.onParseEnd(S.semanticValue),S.semanticValue):(q5.onParseEnd(),_5.options=n,!0)}}while(j5.hasMoreTokens()||B5.length>1)},setTokenizer:function(e){return j5=e,q5},getTokenizer:function(){return j5},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},J5=0,V5={},K5="";function X5(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 W5(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")}q5.onParseBegin=function(e,t){K5=e,J5=0,V5={};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"))},q5.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++J5),e};var H5=C5;function z5(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=w5(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 i8({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var Y5="gimsuxy";function G5(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)||!Y5.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 Q5=/^\\u[0-9a-fA-F]{4}/,Z5=/^\\u\{[0-9a-fA-F]{1,}\}/,e8=/\\u\{[0-9a-fA-F]{1,}\}/;function t8(e,t){if(e8.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var n8=/\\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 r8(e){return e.replace(new RegExp(n8,"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 i8(e,t){return _5.options.captureLocations&&(e.loc={source:K5.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 s8(e,t){return _5.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function a8(e){"$"===e.type&&o8(),j5.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function o8(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var u8=q5;u8.default;var c8=u8,l8=c8.parse.bind(c8);c8.parse=function(e,t){return l8(""+e,t)},c8.setOptions({captureLocations:!1}),c8.default;var p8=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 d8="expressions",h8="expression",f8=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 p8(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=d8),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=h8),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=d8),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]:d8;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,d8,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,h8):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,m8)===JSON.stringify(e.node,m8)}},{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:m8,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 m8(e,t){if("loc"!==e)return t}f8.initRegistry(),f8.traversingIndexStack=[];var y8=f8;y8.default;var g8=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 b8=f5;!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}g8(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=b8.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=b8.generate(this._ast)),this._string}}])}();var x8={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)}},S8="A".codePointAt(0),T8="Z".codePointAt(0),E8="a".codePointAt(0),P8="z".codePointAt(0),v8="0".codePointAt(0),A8="9".codePointAt(0),C8={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>=v8&&t.codePoint<=A8&&n.codePoint>=v8&&n.codePoint<=A8||t.codePoint>=S8&&t.codePoint<=T8&&n.codePoint>=S8&&n.codePoint<=T8||t.codePoint>=E8&&t.codePoint<=P8&&n.codePoint>=E8&&n.codePoint<=P8}(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 w8="A".codePointAt(0),k8="Z".codePointAt(0),I8={_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>=w8&&t.codePoint<=k8&&n.codePoint>=w8&&n.codePoint<=k8}(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 _8={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))}},N8=_8.increaseQuantifierByOne,L8={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=O8(n.node.quantifier),i=r.from,s=r.to,a=O8(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!D8(n.node.quantifier)&&!D8(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(D8(n.node.quantifier)||D8(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;N8(t.quantifier),n.remove()}}}};function D8(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function O8(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 M8={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 F8(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 B8={_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){U8(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&&$8(r,383)?u=e.getChild(l):t&&n&&$8(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<j8.length||!j8.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return U8(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return j8.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var j8=[function(e){return R8(e," ")}].concat(F8(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return U8(t,e)}})),F8([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return $8(t,e)}})),[function(e){return"ClassRange"===e.type&&$8(e.from,8192)&&$8(e.to,8202)}]);function R8(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 U8(e,t){return R8(e,t,"meta")}function $8(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var q8={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||J8(r)})}}};function J8(e){return/[*[()+?$./{}|]/.test(e)}var V8={_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=K8(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(X8(i,"}"))return!0;if(X8(i,","))return X8(i=(r=r+(n=K8(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=K8(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&X8(i,"{"))return!0;if(X8(i,","))return i=(r=r-(n=K8(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&X8(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 K8(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 X8(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var W8={_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){Y8(e)&&n.push(e.value)}),t.sort(H8);for(var r=0;r<t.length;r++){var i=t[r];if(Q8(i,n,this._hasIUFlags)||r6(i,t[r-1])||i6(i,t[r+1]))t.splice(r,1),r--;else{var s=a6(i,r,t);t.splice(r-s+1,s),r-=s}}}};function H8(e,t){var n=z8(e),r=z8(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 z8(e.to)-z8(t.to);if(Y8(e)&&Y8(t)||G8(e)&&G8(t))return e.value<t.value?-1:1}return n-r}function z8(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 Y8(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 G8(e){return"Char"===e.type&&"control"===e.kind}function Q8(e,t,n){for(var r=0;r<t.length;r++)if(Z8(e,t[r],n))return!0;return!1}function Z8(e,t,n){return"ClassRange"===e.type?Z8(e.from,t,n)&&Z8(e.to,t,n):!("\\S"!==t||!Y8(e,"\\w")&&!Y8(e,"\\d"))||(!("\\D"!==t||!Y8(e,"\\W")&&!Y8(e,"\\s"))||(!("\\w"!==t||!Y8(e,"\\d"))||(!("\\W"!==t||!Y8(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?e6(e):"\\S"===t?!e6(e):"\\d"===t?t6(e):"\\D"===t?!t6(e):"\\w"===t?n6(e,n):"\\W"===t&&!n6(e,n)))))}function e6(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 t6(e){return e.codePoint>=48&&e.codePoint<=57}function n6(e,t){return t6(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function r6(e,t){if(t&&"ClassRange"===t.type){if(s6(e,t))return!0;if(o6(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 i6(e,t){return!(!t||"ClassRange"!==t.type||!o6(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function s6(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?s6(e.from,t)&&s6(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function a6(e,t,n){if(!o6(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!o6(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function o6(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(n6(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var u6=y8,c6=_8.disjunctionToList,l6=_8.listToDisjunction,p6={Disjunction:function(e){var t=e.node,n={},r=c6(t).filter(function(e){var t=e?u6.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(l6(r))}},d6={Disjunction:function(e){var t=e.node,n=e.parent;if(h6[n.type]){var r=new Map;if(f6(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};h6[n.type](e.getParent(),i)}}}},h6={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 f6(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return f6(r,t)&&f6(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 f6(e,t)})}function m6(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 y6={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(m6(n.expressions.slice(0,e.index)),m6(r.node.expressions),m6(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function g6(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 b6=y8,x6=_8.increaseQuantifierByOne,S6={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,T6(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,E6(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,P6(e,r,n)),n++}}};function T6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(r.expressions.slice(n-s,n)),[t.node])}),u=b6.getForNode({type:"Alternative",expressions:[].concat(g6(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 E6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return x6(s.node.quantifier),i}}i++}return n}function P6(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=b6.getForNode({type:"Alternative",expressions:[].concat(g6(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 x6(t.node.quantifier),n-a}}return n}var v6=new Map([["charSurrogatePairToSingleUnicode",x8],["charCodeToSimpleChar",C8],["charCaseInsensitiveLowerCaseTransform",I8],["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",L8],["quantifierRangeToSymbol",M8],["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",B8],["charClassToSingleChar",q8],["charEscapeUnescape",V8],["charClassClassrangesMerge",W8],["disjunctionRemoveDuplicates",p6],["groupSingleCharsToCharClass",d6],["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",y6],["combineRepeatingPatterns",S6]]);v6.default;var A6={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},C6=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")},w6=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 k6=A6.EPSILON,I6=A6.EPSILON_CLOSURE,_6=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 w6(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!==I6&&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=C6(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][k6],e._transitionTable[t.number][I6]=[].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}();_6.default;var N6=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 L6(e){return Array.isArray(e)?e:Array.from(e)}function D6(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 O6=null;function M6(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(D6(r)).sort().join(",")!==[].concat(D6(i)).sort().join(","))return!1}return!0}function F6(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(!B6(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 B6(e,t,n,r){if(!O6[e]||!O6[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||O6[e].has(i)&&O6[t].has(s)}var j6={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();O6={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?O6[e]=i:(s.add(e),O6[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=L6(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(F6(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}}O6=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(D6(k))),o=a[a.length-1],u=a[a.length-2]};!M6(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=N6(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,D=void 0;try{for(var O,M=E[Symbol.iterator]();!(N=(O=M.next()).done);N=!0){var F=O.value;if(_=t[F][I])break}}catch(e){L=!0,D=e}finally{try{!N&&M.return&&M.return()}finally{if(L)throw D}}_&&(d[P][I]=l.get(O6[_]))}}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}},R6=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 U6(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 $6=j6,q6=A6.EPSILON_CLOSURE,J6=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 R6(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,$6.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]][q6]],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,U6(t[k][q6]))}}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(U6(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}();J6.default;var V6=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 K6=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 V6(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}(),X6=K6;X6.default;var W6=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 H6=X6,z6=A6.EPSILON,Y6=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,H6),W6(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(z6)[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(z6)[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(z6),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}();Y6.default;var G6=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(){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}G6(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}}])}();var Q6={}.default;const Z6=({type:e,kind:t})=>"Char"!==e||"simple"!==t;const{isBlockStatement:e9,isFunction:t9,isLabeledStatement:n9,isObjectPattern:r9,isCallExpression:i9,objectPattern:s9,objectProperty:a9}=Me,{entries:o9}=Object,u9=!0,c9=e=>e.isCallExpression()||e.isStatement(),l9=e=>i9(e.find(c9)),p9=({name:e})=>`Argument '${e}' is missing`,d9=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=jY.ast.fresh(e);if(e9(s)){const e=function(e){if(!n9(e)){const{expression:t}=e;return a9(t,t,!1,u9)}const{label:t,body:n}=e;return a9(t,n.expression,!1,u9)}(s.body[0]);return n.properties.push(e),r9(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},h9=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of o9(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!l9(e))continue;const r=e.find(t9);if(!r)continue;const{block:o}=r.scope;if(!z0(e.scope.path,s))continue;if(z0(e.scope.path,a))continue;const{params:u}=o,[c,l]=f9(u);if(r9(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:s9([])})}}}};function f9(e){for(const[t,n]of e.entries())if(r9(n))return[t,n];return[-1,null]}const m9=["import","export","assert","with"],y9=["const","var","let"],g9=["if"],b9=["readonly","implements","declare","module","type","namespace"],x9=["interface","static"],S9=[...g9,...y9,...m9,...x9,"async","break","continue","debugger","for","else","from","return","throw","of","while","class","extends","default"],T9=[...S9,"as","await","new","yield","typeof","function"],E9=(e,t,n)=>$4(e,t,{...n,fix:!1}),P9=async(e,t,n)=>await q4(e,t,{...n,fix:!1}),v9=e=>!e.indexOf("!"),A9=e=>e.replace(/^!/,""),C9=(e,t,n={})=>{const r=HY(e,t),i=void 0,s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(A9(n));v9(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{join:w9}=QY,k9=e=>e&&"object"==typeof e,{entries:I9}=Object,_9=(e,{message:t})=>t;function N9(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){$4(s,i,a);const o=function(e,t){if(e.endsWith(".json")){const e=wz(t);return O2(e)}return wz(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=w9(m3(e),n),[s]=h3(e,i);return s||v3(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});I3(u,o),e!==u&&x3(e)}const L9=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=m3(r);a.filename=a.filename??n;for(const[n,i]of I9(e)){const[e]=O9(n,a),s=h3(r,e,t);for(const e of s){const t=p3(e),r=m3(e),[s,c=s]=O9(n,{filename:r});C9(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=k3(a)||"{}",[d,h]=D9(o,p),f=M9(o,l),m=E9(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 D9(e,t){if(e.endsWith(".json")){const e=D2(t);return[e,IY(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,IY(t,{isTS:!0})]}return[t,IY(t)]}function O9(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=QY.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function M9(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}const{parse:F9}=JSON,B9=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,j9=(e,{to:t})=>{b3(e,t)},R9=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!U9(e,a))continue;const t=m3(a);i(a,{from:t,to:n(t)})}};function U9(e,t){const n=function(e){let t,n=p3(e);do{const e=m3(n);[t]=h3(n,WY(e,"package.json"))}while(!t&&(n=p3(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=k3(n);if(!r)return!1;return(F9(r).type||"commonjs")===e}const{stringLiteral:$9}=Me,q9=({value:e})=>e,J9=e=>()=>`Add dotfiles to '${e}'`,V9=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=X9(r,s);return{[e]:e=>{const r=W9(e,{property:t,collector:n});if(!r)return!1;const i=r.map(q9);for(const e of a)if(!i.includes(e))return!0;return!1}}},K9=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=X9(r,s);return{[e]:(e,r)=>{const i=W9(e,{property:t,collector:n}),s=i.map(q9);for(const e of a)s.includes(e)||i.push($9(e));return r}}};function X9(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function W9(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=SV(r,t);return i?i.node.value.elements:null}const{parenthesizedExpression:H9,tsParenthesizedType:z9}=Me;function Y9(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function G9(e,t=Y9(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}var Q9=Object.freeze({__proto__:null,__filesystem:_2,__filesystem_name:A2,__ignore:N2,__ignore_name:C2,__json:w2,__json_name:E2,__toml:I2,__toml_name:v2,__yaml:k2,__yaml_name:P2,addArgs:e=>({report:p9,fix:d9,traverse:h9(e)}),addAttribute:c5,addAttributeValue:u5,addClassName:(e,t)=>{u5(e,"className",t)},addParens:e=>{const t=Y9(e);if(G9(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(z9(n)):(e.replaceWith(H9(n)),e)},compare:H0,compareAll:Y0,compareAny:z0,compute:rV,contains:(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return Z4(e,i),n},containsClassName:(e,t)=>p5(e).includes(t),copyFile:E3,createDirectory:w3,createFile:v3,createNestedDirectory:_3,declare:u2,deinit:D3,extract:ZJ,findBinding:zV,findFile:h3,findVarsWays:f0,fromJS:O2,getAttributeNode:a5,getAttributePath:(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},getAttributeValue:o5,getBinding:NJ,getBindingPath:LJ,getClassName:p5,getExportDefault:pV,getFileContent:g3,getFileType:y3,getFilename:m3,getLiteralRaw:wV,getParentDirectory:p3,getPathAfterImports:YV,getPathAfterRequires:mV,getProperties:vV,getProperty:AV,getRootDirectory:N3,getTemplateValues:h0,getValues:m0,hasAttributeValue:(e,t,n="")=>o5(e,t)===n,hasDataName:(e,t="")=>o5(e,"data-name")===t,hasParens:G9,hasTagName:(e,t)=>{const n=s5(e);return!!t5(e)&&n.openingElement.name.name===t},ignore:(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/[()]/);return{report:J9(t),match:V9({type:e,property:n,collector:i,list:r}),replace:K9({type:e,property:n,collector:i,list:r})}},init:L3,insertAfter:WV,insertBefore:XV,isConditionKeyword:e=>g9.includes(e),isDeclarationKeyword:e=>y9.includes(e),isESM:GV,isJSON:M2,isKeyword:e=>T9.includes(e),isModuleDeclarationKeyword:e=>m9.includes(e),isModuleExports:HV,isSimple:jJ,isSimpleRegExp:e=>{let t=!1;const n=Q6.parse(e);return"Alternative"===n.body.type&&(Q6.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(Z6))}}),!t)},isStatementKeyword:e=>S9.includes(e),isTSKeyword:e=>{const t=b9.includes(e),n=x9.includes(e);return t||n},isTemplate:NZ,matchFiles:e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of I9(e))if(!k9(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:N9,scan:L9({defaultFilename:t,files:n,exclude:r}),report:_9}},moveFile:T3,parseTemplate:n0,pause:O3,readDirectory:C3,readFileContent:k3,remove:oV,removeAttributeValue:l5,removeClassName:(e,t)=>{l5(e,"className",t)},removeEmptyDirectory:S3,removeFile:x3,removeParens:e=>{const t=Y9(e);if(!G9(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e},rename:hV,renameFile:b3,renameFiles:({type:e,mask:t,rename:n})=>({report:B9,fix:j9,scan:R9({type:e,mask:t,rename:n})}),renameProperty:dV,replaceWith:UV,replaceWithMultiple:jV,setAttributeValue:(e,t,n)=>{const r=a5(e,t);if(!r)return c5(e,t,n);fV(r.value,n)},setLiteralValue:fV,setValues:g0,start:M3,toExpression:FV,toJS:D2,transformRegExp:(e,t)=>{!function(e){if(!e)throw Error("☝️ Looks like RegExpTransformer is missing")}(t);const{report:n,traverse:r,fix:i}=t,s=Q6.parse(e,{captureLocations:!0}),a=[];return Q6.traverse(s,r({push:e=>{const{start:t}=(e.path||e).node.loc;a.push({position:t,message:n(e)}),i(e)}})),[Q6.generate(s),a]},traverse:Z4,traverseProperties:SV,writeFileContent:I3});const Z9=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return Yk(e,{start:i},{highlightCode:n,message:r})};var e7=Object.freeze({__proto__:null,codeframe:Z9,findPlaces:E9,findPlacesAsync:P9,generate:NY,operator:Q9,parse:IY,print:wz,putoutAsync:V4,template:jY,transform:$4,transformAsync:q4,traverse:_R,types:Me});Object.assign(J4,e7);export{Z9 as codeframe,J4 as default,E9 as findPlaces,P9 as findPlacesAsync,NY as generate,Q9 as operator,IY as parse,wz as print,J4 as putout,V4 as putoutAsync,jY as template,$4 as transform,q4 as transformAsync,_R as traverse,Me as types};