@putout/bundle 4.6.8 → 4.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/putout.js +9 -2
- package/bundle/putout.min.js +1 -1
- package/package.json +1 -1
package/bundle/putout.min.js
CHANGED
|
@@ -10,4 +10,4 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
10
10
|
|
|
11
11
|
return ${Aj(r)};
|
|
12
12
|
})(${bj(this.node)})
|
|
13
|
-
`;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return Wj(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Kj(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()?Uj(e):!!this.isBlockStatement()&&qj(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()&&!Uj(this.container)&&Rj.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?Vj(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!$j(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 Gj(this,e,new Map)},resolve:function(e,t){return Qj.call(this,e,t)||this},isConstantExpression:function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},isInStrictMode:function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0});return!!e},isDenylisted:function(){const e=this.opts.denylist??this.opts.blacklist;return e?.includes(this.node.type)},visit:function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip?.(this))return!1;const e=this.context;if(this.shouldSkip||wU.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return IU(this,e),this.debug("Recursing into..."),this.shouldStop=CU(this.node,this.opts,this.scope,this.state,this,this.skipKeys),IU(this,e),wU.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|gU},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return _U.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;!Xo(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){$B.call(this),NU.call(this),jB.call(this)||(this.opts?.noScope||RB.call(this),this.shareCommentsWithSiblings(),UB.call(this)),qB.call(this)},insertBefore:function(e){$B.call(this);const t=lR.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||QB(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 sR.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(WB(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($B.call(this),this.isSequenceExpression())return oR(this.get("expressions")).insertAfter(e);const t=lR.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||QB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>ZB(e)?HB(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 VB(r),e.replaceWith(XB(JB([],r),[])),e.get("callee.body").insertAfter(t),[e];if(uR(e))t.unshift(r);else if(GB(r)&&nR(r.callee))t.unshift(r),t.push(rR());else if(function(e,t){if(!YB(e)||!eR(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(zB(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(HB(KB("=",zB(e),r))),t.push(HB(zB(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return aR.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(WB(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){$B.call(this);const n=lR.call(this,t),r=this.node[e],i=bU.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return sR.call(i,n)},pushContainer:function(e,t){$B.call(this);const n=lR.call(this,t),r=this.node[e];return bU.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 uU(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return bU.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?cU.call(this,e,t):lU.call(this,n,t)},getAssignmentIdentifiers:function(){return Zj(this.node)},getBindingIdentifiers:function(e){return eU(this.node,e)},getOuterBindingIdentifiers:function(e){return tU(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=eU.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",hU(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",hU(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){pU(this.node,e,t,n)},addComments:function(e,t){dU(this.node,e,t)}};Object.assign(bU.prototype,xU);for(const e of jc){const t=`is${e}`,n=sn[t];bU.prototype[t]=function(e){return n(this.node,e)},bU.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(bU.prototype,WD);for(const e of Object.keys(vD))"_"!==e[0]&&(jc.includes(e)||jc.push(e));var{VISITOR_KEYS:SU}=sn,TU=class{constructor(e,t,n,r){Vt(this,"queue",null),Vt(this,"priorityQueue",null),this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=SU[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 bU.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++,NU.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||MU.call(i,this),null===i.key)continue;const{node:s}=i;if(!t.has(s)){if(s&&t.add(s),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)FU.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:EU}=sn;function vU(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++,NU.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||MU.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),PU(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=vU(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)FU.call(t[e]);return e.queue=null,r}function PU(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist??r.blacklist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||kU.call(t,r.enter)||t.node&&kU.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=AU(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!kU.call(t,r.exit))||(t.node&&kU.call(t,r[n.type]?.exit),t.shouldStop))))}function AU(e,t,n,r,i,s,a){const o=EU[e.type];if(!o?.length)return!1;const u=new TU(n,t,r,i);if(a)return!s?.[i.parentKey]&&vU(u,[i]);for(const t of o){if(s?.[t])continue;const n=e[t];if(n)if(Array.isArray(n)){if(!n.length)continue;const r=[];for(let s=0;s<n.length;s++){const a=bU.get({parentPath:i,parent:e,container:n,key:s,listKey:t});r.push(a)}if(vU(u,r))return!0}else if(vU(u,[bU.get({parentPath:i,parent:e,container:e,key:t,listKey:null})]))return!0}return!1}function CU(e,t,n,r,i,s,a){return AU(e,t,n,r,i,s,a)}function wU(e){const t=this.opts;return this.debug(e),!(!this.node||!kU.call(this,t[e]))||!!this.node&&kU.call(this,t[this.node.type]?.[e])}function kU(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 IU(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function _U(){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 NU(){this.removed||(OU.call(this),DU.call(this),LU.call(this))}function OU(){this.parentPath&&(this.parent=this.parentPath.node)}function LU(){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 RU.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void RU.call(this,e);this.key=null}}function DU(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function FU(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function MU(e){this.contexts.push(e),this.setContext(e)}function BU(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,RU.call(this,r)}function RU(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function jU(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var{VISITOR_KEYS:UU,removeProperties:qU,traverseFast:$U}=sn;function JU(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.");UU[e.type]&&(eF(t),CU(e,t,n,r,i,null,s))}}JU.visitors=pF,JU.verify=tF,JU.explode=eF,JU.cheap=function(e,t){$U(e,t)},JU.node=function(e,t,n,r,i,s){CU(e,t,n,r,i,s)},JU.clearNode=function(e,t){qU(e,t)},JU.removeProperties=function(e,t){return $U(e,JU.clearNode,t),e},JU.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||$U(e,function(e){return n?.includes(e.type)?$U.skip:e.type===t?$U.stop:void 0}))},JU.cache=EF,rn.default;var VU={},KU={},WU={},XU=e=>{const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}},zU={TYPES:{TOKEN:"Token",NEWLINE:"Newline",LINEBREAK:"Linebreak",SPLITTER:"Splitter",INDENT:"Indent",DEBUG:"Debug",SPACE:"Space",ROUND_BRACE_OPEN:"RoundBraceOpen",ROUND_BRACE_CLOSE:"RoundBraceClose",QUOTE:"Quote",END_OF_FILE:"EndOfFile"}},HU={},YU={},GU={};const{types:QU}=rn,{isStringLiteral:ZU,isIdentifier:eq,isIfStatement:tq,isStatement:nq,isForOfStatement:rq,isVariableDeclaration:iq,isMemberExpression:sq,isArrayExpression:aq,isObjectExpression:oq,isLabeledStatement:uq}=QU,cq=e=>e.parentPath?.isProgram(),lq=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},pq=e=>cq(e)&&!lq(e);function dq([e,t]){return ZU(e)&&eq(t)}GU.isNextObject=e=>e.getNextSibling().isObjectExpression(),GU.isPrevObject=e=>e.getPrevSibling().isObjectExpression(),GU.isFirst=e=>e.node===e.parentPath.node.body?.[0],GU.isPrevBody=e=>e.getPrevSibling().isBlockStatement(),GU.isNext=lq,GU.isPrev=e=>e.getPrevSibling().node,GU.isNextParent=e=>lq(e.parentPath),GU.isParentProgram=cq,GU.isParentBlock=e=>e.parentPath.isBlockStatement(),GU.isLast=pq,GU.isParentLast=e=>pq(e.parentPath),GU.isIndented=(e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column},GU.isCoupleLines=function(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t},GU.exists=e=>e.node,GU.isStringAndIdentifier=dq;GU.isSimpleAndNotEmptyObject=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return oq(t)||(t=e.at(-2)),!!oq(t)&&t.node.properties.length})(e)},GU.isIdentifierAndIdentifier=([e,t])=>eq(e)&&eq(t),GU.isStringAndMember=([e,t])=>ZU(e)&&sq(t),GU.isIdentifierAndString=([e,t])=>eq(e)&&ZU(t),GU.isStringAndArray=([e,t])=>!!ZU(e)&&(!!aq(t)&&!dq(t.node.elements));const hq=e=>tq(e)||nq(e),fq=e=>rq(e)||nq(e);GU.isIf=e=>tq(e.find(hq)),GU.isForOf=e=>{const t=e.find(fq);return!!rq(t)||!!iq(t)&&rq(t.parentPath)},GU.isInsideIf=e=>e.parentPath?.isIfStatement(),GU.isNewlineBetweenSiblings=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},GU.isInsideLabel=({parentPath:e})=>uq(e),GU.satisfy=e=>t=>{for(const n of e)if(n(t))return!0;return!1};const mq=e=>e.node||e;GU.hasCoupleTrailingComments=e=>{const t=mq(e);return t?.trailingComments?.length>1},GU.hasTrailingComment=e=>{const t=mq(e);return t.trailingComments?.length},GU.hasLeadingComment=e=>e.node?.leadingComments?.length,GU.noTrailingComment=e=>!e.node.trailingComments?.length,GU.noLeadingComment=e=>!e.node.leadingComments?.length;var yq={},gq={},bq={},xq={};const Sq="__putout_newline_after";function Tq(e){e[Sq]=!0}function Eq(e){return e[Sq]}xq.markBefore=function(e){e.__putout_newline_before=!0},xq.markAfter=Tq,xq.maybeMarkAfter=(e,t)=>e&&Tq(t),xq.isMarkedAfter=Eq,xq.hasPrevNewline=e=>Eq(e.getPrevSibling());var vq={maybeInsideFn:(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())}},Pq={};const Aq=(e,t)=>()=>e(`//${t}`),Cq=(e,t)=>()=>e(`/*${t}*/\n`);Pq.hasTrailingCommentsPrinter=e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)},Pq.hasLeadingCommentsPrinter=e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)},Pq.printLeadingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:Cq(i,l)}):a?.(e,t,n,{index:r,printComment:Aq(i,l),isLast:r===u})},Pq.printTrailingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:Cq(i,l)}):a?.(e,t,n,{index:r,printComment:Aq(i,l),isLast:r===u})};const{types:wq}=rn,{hasTrailingComment:kq,satisfy:Iq,isPrev:_q}=GU,{markBefore:Nq}=xq,{maybeInsideFn:Oq}=vq,{printLeadingComments:Lq,hasLeadingCommentsPrinter:Dq}=Pq,{isArrowFunctionExpression:Fq,isObjectProperty:Mq,isVariableDeclarator:Bq,isClassProperty:Rq,isTSPropertySignature:jq,isSpreadElement:Uq,isClassBody:qq,isBinaryExpression:$q,isClassMethod:Jq,isDecorator:Vq}=wq,Kq=Iq([Mq,Bq,Rq,jq,Uq]),Wq=e=>{const{parentPath:t}=e;return!(!Bq(t)||e!==t.get("init"))||!!Fq(t)&&Bq(t.parentPath)};function Xq(e){const{loc:t,leadingComments:n}=e.node;if(!Kq(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 zq=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!qq(t)||!Rq(e))&&e===t.get("body")[0]};bq.parseLeadingComments=(e,t,n,{currentTraverse:r={}}={})=>{const{print:i,maybe:s,indent:a}=t;if(!n.comments)return;const{leadingComments:o}=e.node;if(!o?.length)return;if(Dq(r))return Lq(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&kq(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=Kq(e),p=zq(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}*/`),jq(e)&&!_q(e)&&i.breakline(),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),Nq(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),Oq(c,{print:i,indent:a}),Xq(e)?s.print.breakline(!zq(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),Jq(e)?a():($q(e)||Vq(e))&&(a.inc(),a(),a.dec())):i.newline(),Wq(e)&&(a.inc(),a(),a.dec())};var Hq={},Yq={},Gq={};const{hasTrailingComment:Qq}=GU,{assign:Zq}=Object;function e$(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=n$(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function t$(e){const t=[];for(;e.isMemberExpression()&&(Qq(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(n$(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function n$(e){const t={type:e.type};return e.isCallExpression()&&Zq(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}Gq.chain=e=>{const t=[...e$(e),...t$(e)],n=t.slice(0,-1);return[t.at(-1),n]};const{types:r$}=rn,{chain:i$}=Gq,{satisfy:s$}=GU,{isUnaryExpression:a$,isIfStatement:o$,isCallExpression:u$,isIdentifier:c$}=r$,l$=e=>"CallExpression"===e.type,p$=s$([a$,o$]),d$=({type:e})=>"CommentLine"===e;Yq.isLooksLikeChain=e=>{const[t,n]=i$(e);if((e=>!!c$(e.node.object)&&!!c$(e.node.property)&&u$(e.parentPath.parentPath))(e))return!1;if(p$(t))return!1;if(h$(n))return!1;if(n.find(d$))return!0;if(e.find(f$))return!1;const r=n.filter(l$),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)};const h$=([e])=>u$(e,{name:"get"}),f$=e=>{const t=e.find(o$);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{types:m$}=rn,{isLast:y$,isCoupleLines:g$,isNext:b$}=GU,{isLooksLikeChain:x$}=Yq,{printTrailingComments:S$,hasTrailingCommentsPrinter:T$}=Pq,{isDecorator:E$,isMemberExpression:v$,isExpressionStatement:P$,isCallExpression:A$}=m$,C$=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,w$=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function k$(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const I$=e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments,_$=e=>{const{parentPath:t}=e;if(E$(e)){const{loc:t}=e.node.trailingComments[0];return!k$(e,t)}return!v$(t)&&!y$(e)};function N$(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if(I$(e))return!1;if(e.isThrowStatement())return!1;const[i]=r,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!n)return!0;const o=n.start.line,u=n.end.line;return s===o+1&&s===u+1||s===o+2&&s===u+2}function O$(e){const t=e.getPrevSibling();if(P$(t))return!1;const{expression:n}=e.node;return!!A$(n)&&!A$(n.arguments[0])}Hq.isTrailingIsLeading=I$,Hq.parseTrailingComments=(e,t,n,{currentTraverse:r}={})=>{const{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!n.comments)return;const{trailingComments:u}=e.node;if(!u?.length)return;if(T$(r))return S$(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=x$(i);for(const{type:t,value:n,loc:r}of u){const i=k$(e,r),u=N$(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(!b$(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(_$(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(O$(e)),s(`/*${n}*/`),a.write.newline(!i||!w$(e)&&g$(e.parentPath)))}};var L$={};const{isNext:D$}=GU;L$.parseComments=(e,{write:t,maybe:n},r)=>{if(!r.comments)return;const i=e.node.comments||e.node.innerComments;if(!i)return;const s=i.length-1,a=e.isProgram();for(const[r,{type:o,value:u}]of i.entries())if("CommentLine"!==o)"CommentBlock"===o&&(t("/*"),t(u),t("*/"));else{if(n.write.breakline(D$(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}};const{parseLeadingComments:F$}=bq,{parseTrailingComments:M$}=Hq,{parseComments:B$}=L$;gq.parseLeadingComments=F$,gq.parseTrailingComments=M$,gq.parseComments=B$;const{parseComments:R$}=gq,j$=()=>{},U$=e=>e.get("params");function q$(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}yq.printParams=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=U$(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=j$,printBeforeClose:f=j$}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if(q$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),R$(e,t,n),h();const m=c.length-1;for(let e=0;e<=m;e++){const t=e===m;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if(q$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n)};var $$={};const J$=e=>e.node.extra?.parenthesized;$$.isParens=J$,$$.maybeParens=e=>"function"==typeof e?V$(e):K$(e);const V$=e=>({condition:J$,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),K$=({print:e,condition:t,checkParens:n=!0})=>({...V$(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||J$(e):s}}),{exists:W$}=GU,{printParams:X$}=yq,{maybeParens:z$}=$$;YU.ArrowFunctionExpression=z$((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");W$(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")});var H$={};const{types:Y$}=rn,{markAfter:G$}=xq,{isNext:Q$,isNextParent:Z$}=GU,{printParams:eJ}=yq,tJ=(nJ=function(e){return!!cJ(e.parentPath)&&e.node.body.body.length},(...e)=>!nJ(...e));var nJ;const{isAssignmentExpression:rJ,isTSModuleBlock:iJ,isBlockStatement:sJ,isExportNamedDeclaration:aJ,isExpressionStatement:oJ,isFunctionDeclaration:uJ,isExportDefaultDeclaration:cJ}=Y$;H$.FunctionDeclaration={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>aJ(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),eJ(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[Q$,Z$,dJ],after(e,{indent:t,maybe:n}){(pJ(e)||lJ(e)||Q$(e))&&t(),n.write.newline(tJ(e)),G$(e)}};const lJ=e=>{const t=e.getNextSibling();return uJ(t)},pJ=e=>{const t=e.getNextSibling();return!!oJ(t)&&rJ(t.node.expression)};function dJ(e){const{parentPath:t}=e;return!!iJ(t.parentPath)||!!sJ(t)&&!e.node.body.body.length}var hJ={},fJ={};const mJ=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())};fJ.maybeDecorators=e=>(t,n,r,i)=>{const{write:s,traverse:a,maybe:o}=n,{decorators:u}=t.node;if(u)for(const e of t.get("decorators"))o.write.breakline(mJ(t)),a(e),s.breakline();e(t,n,r,i)};var yJ={},gJ={maybePrintComputed:(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")}};const{maybePrintComputed:bJ}=gJ;yJ.printKey=(e,t)=>{const n=e.get("key");bJ(e,n,t)};var xJ={printKind:(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")}},SJ={};const{printParams:TJ}=yq,{hasLeadingComment:EJ}=GU,vJ=({decorators:e})=>e?.length;SJ.printFunctionParams=(e,t,n)=>{const{params:r}=e.node,i=r.filter(vJ).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,EJ(i)&&++n}return n===r})(e),a=CJ({isNewline:i,printer:t}),o=PJ({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=AJ({type:"dec",printer:t,isNewline:i,isAllHasComments:s});TJ(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})};const PJ=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},AJ=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},CJ=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},{isNext:wJ,hasTrailingComment:kJ}=GU,{maybeDecorators:IJ}=fJ,{printKey:_J}=yJ,{printKind:NJ}=xJ,{printFunctionParams:OJ}=SJ,LJ=e=>!kJ(e)&&wJ(e),DJ={print:IJ((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(" ")),NJ(e,t),_J(e,t),OJ(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[LJ],after(e,{print:t}){t.linebreak()}};hJ.ClassPrivateMethod=DJ,hJ.ClassMethod=DJ;var FJ={};const{isNewlineBetweenSiblings:MJ}=GU,{printParams:BJ}=yq,{printKey:RJ}=yJ,{printKind:jJ}=xJ;FJ.ObjectMethod={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;jJ(e,t),RJ(e,t),BJ(e,t,n),r.space(),r("__body")},afterIf:e=>MJ(e),after(e,{print:t}){t.linebreak()}};var UJ={};const{exists:qJ}=GU,{printParams:$J}=yq,{maybeParens:JJ}=$$;UJ.FunctionExpression=JJ((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");qJ(l)&&(s(" "),a(l)),$J(e,t,n),r.space(),r("__body")});const{ArrowFunctionExpression:VJ}=YU,{FunctionDeclaration:KJ}=H$,{ClassMethod:WJ,ClassPrivateMethod:XJ}=hJ,{ObjectMethod:zJ}=FJ,{FunctionExpression:HJ}=UJ;HU.FunctionDeclaration=KJ,HU.FunctionExpression=HJ,HU.ArrowFunctionExpression=VJ,HU.ClassMethod=WJ,HU.ClassPrivateMethod=XJ,HU.ObjectMethod=zJ;var YJ={};const{isLast:GJ,isNext:QJ}=GU,{maybeParens:ZJ}=$$,eV=ZJ((e,t)=>{const{maybe:n,traverse:r}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");n.print(i,s),n.print(/^(delete|typeof|void|throw)$/.test(s)," "),r(a),n.print(!i,s)});function tV(e,{print:t}){t(`${e} `),t("__argument")}YJ.UnaryExpression=eV,YJ.UpdateExpression=eV,YJ.AwaitExpression=ZJ((e,{print:t})=>{tV("await",{print:t})}),YJ.YieldExpression=ZJ((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")}),YJ.ThrowStatement=(e,{print:t,indent:n,maybe:r})=>{n(),tV("throw",{print:t}),t(";"),r.print.newline(!GJ(e)),r.print.breakline(QJ(e))};var nV={};const{maybePrintComputed:rV}=gJ,{maybeParens:iV}=$$,{isLooksLikeChain:sV}=Yq;nV.MemberExpression=(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),o=s.isAssignmentExpression(),{computed:u}=e.node,c=sV(e);if(r.print(o,"("),i(s),r.print(o,")"),u)return rV(e,a,t);r.indent.inc(c),r.print.breakline(c),n("."),n("__property"),r.indent.dec(c)},nV.OptionalMemberExpression=iV((e,{print:t,maybe:n})=>{const{computed:r,optional:i}=e.node;if(t("__object"),n.print(i,"?."),n.print(!i&&!r,"."),r)return t("["),t("__property"),void t("]");t("__property")});var aV={},oV={maybeDeclare:e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)}};const{types:uV}=rn,{isNext:cV}=GU,{markAfter:lV}=xq,{maybeDeclare:pV}=oV,{parseComments:dV}=gq,{maybeDecorators:hV}=fJ,{isFunction:fV,isTSModuleBlock:mV}=uV,yV=e=>fV(e.parentPath.parentPath),gV=hV((e,t,n)=>{const{id:r,abstract:i,superClass:s}=e.node,{print:a,indent:o,maybe:u,traverse:c}=t;u.print(i,"abstract "),a("class"),u.print(r||s," "),a("__id"),a("__typeParameters");const{node:l}=e;l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements&&(a(" implements "),e.get("implements").forEach(a)),a.space(),a("{"),u.print.newline(e.node.body.body.length),o.inc();const p=e.get("body"),d=p.get("body");for(const e of d)o(),c(e);d.length||dV(p,t,n),o.dec(),u.indent(d.length),a("}")});aV.ClassExpression=gV,aV.ClassDeclaration={print:pV((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),gV(e,t,n)}),afterIf:e=>!!yV(e)||(!!cV(e)||(e=>mV(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!yV(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),lV(e))}};var bV={};const{exists:xV}=GU,{maybeParens:SV}=$$,{isArray:TV}=Array,EV=SV((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return TV(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),xV(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(")")});bV.OptionalCallExpression=EV,bV.CallExpression=EV;var vV={};const{types:PV}=rn,{exists:AV}=GU,{isMarkedAfter:CV}=xq,{isExpressionStatement:wV,isMemberExpression:kV}=PV;function IV(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>kV(e))(t))return s(e);i.print(a.new,e)}vV.NewExpression={beforeIf(e){if(!(({parentPath:e})=>wV(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!CV(n)&&(!n.isExpressionStatement()&&(({parentPath:e})=>AV(e.getPrevSibling()))(e)))},before(e,{print:t}){t.breakline()},print(e,t,n){const{print:r,maybe:i}=t;r("new "),r("__callee"),r("__typeArguments");const s=e.get("arguments");!function(e,t,n){IV("(",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){IV(")",e,t,n)}(e,t,n)}};var _V={},NV={};const{types:OV}=rn,{isArrayExpression:LV}=OV,DV=["NullLiteral","NumericLiteral","BigIntLiteral"];NV.isInsideTuple=e=>{const{parentPath:t}=e;if(!LV(t))return!1;const[n,r]=t.node.elements;return r===e.node&&DV.includes(n.type)};var FV={};const{types:MV}=rn,{isArrayExpression:BV,isCallExpression:RV,isIdentifier:jV}=MV;FV.isThirdObjectInsideArray=({parentPath:e})=>{if(!BV(e))return!1;const[,t]=e.node.elements;return RV(t)&&!!jV(t)};const{types:UV}=rn,{isCoupleLines:qV,isForOf:$V,isIf:JV,noTrailingComment:VV,isNewlineBetweenSiblings:KV,noLeadingComment:WV,hasLeadingComment:XV,exists:zV}=GU,{parseComments:HV}=gq,{isInsideTuple:YV}=NV,{isLooksLikeChain:GV}=Yq,{isThirdObjectInsideArray:QV}=FV,{isStringLiteral:ZV,isArrayExpression:eK}=UV,tK=e=>e.get("argument").isLogicalExpression();_V.ObjectExpression=(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=YV(e)||function({parentPath:e}){return!!eK(e)&&!!eK(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||QV(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=!aK(e);s.print(l,"("),i("{"),HV(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()&&GV(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=tK(t);WV(t)&&s.indent(c>1||n||p),i(t),VV(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&WV(t)),i(t),t.isObjectMethod()||VV(t)&&!nK(t)&&(s.print.newline(p),s.print.linebreak(KV(t)))}o?(YV(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return ZV(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)};const nK=e=>{const t=e.getNextSibling();return!!zV(t)&&XV(t)},rK=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!qV(e)&&e!==t.get("arguments").at(-1))},iK=!0,sK=!1;function aK(e){const{length:t}=e.get("properties");return t?rK(e)||$V(e)||JV(e)?iK:qV(e)?sK:!(e=>e.get("properties.0.value").node)(e):iK}_V.isOneLine=aK;var oK={},uK={};const{types:cK}=rn,{isStringLiteral:lK,isTemplateLiteral:pK,isBinaryExpression:dK}=cK,hK=e=>!!lK(e)||pK(e);uK.isConcatenation=e=>{const{parentPath:t}=e,{operator:n}=e.node;if("+"!==n)return!1;const r=e.node.loc?.start.line,i=e.node.loc?.end.line;if(r===i)return!1;const s=e.get("left"),a=e.get("right");return!!(hK(s)&&hK(a)&&dK(t))||dK(s)&&hK(a)},uK.concatenate=(e,{print:t,indent:n})=>{e.parentPath.isBinaryExpression()||(n.inc(),t.breakline()),t("__left"),t.space(),t("+"),t.breakline(),t("__right"),e.parentPath.isBinaryExpression()||n.dec()};const{types:fK}=rn,{isConcatenation:mK}=uK,{isOneLine:yK}=_V,{printKey:gK}=yJ,{isTSImportType:bK}=fK;oK.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=!yK(e.parentPath);gK(e,t),i||(o(":"),s.write.space(!mK(u)),a(u)),p&&!(({parentPath:e})=>bK(e.parentPath))(e)?s.write(!l||r,","):!l&&c.length&&o(", ")};var xK={},SK={wrongShorthand:({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name},TK={moreThenMaxPropertiesInOneLine:(e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;if(n.isObjectProperty())return!1;return t>=e.node.properties.length}},EK={};const{types:vK}=rn,{isMemberExpression:PK,isSequenceExpression:AK}=vK;function CK(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;AK(n)||PK(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}EK.maybePrintTypeAnnotation=CK,EK.maybeTypeAnnotation=e=>(t,n,r)=>{e(t,n,r),CK(t,n)};var wK={};const{types:kK}=rn,{isAssignmentPattern:IK,isIdentifier:_K}=kK;function NK(e,t){return _K(e)&&_K(t)?e.name.length+t.name.length:_K(e)?e.name.length:0}wK.moreThenMaxPropertiesLengthInOneLine=(e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(IK(r)){const{left:e,right:n}=r;if(NK(e,n)>=t)return!0}if(!_K(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1};const{types:OK}=rn,{wrongShorthand:LK}=SK,{isForOf:DK,isCoupleLines:FK,exists:MK}=GU,{moreThenMaxPropertiesInOneLine:BK}=TK,{maybeTypeAnnotation:RK}=EK,{moreThenMaxPropertiesLengthInOneLine:jK}=wK,{printKey:UK}=yJ,{isObjectExpression:qK,isIdentifier:$K,isAssignmentPattern:JK,isVariableDeclarator:VK,isFunction:KK,isObjectPattern:WK,isForOfStatement:XK,isVariableDeclaration:zK}=OK;const HK=({path:e,valuePath:t,property:n})=>{if(!FK(t))return!1;if(MK(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!eW(r))&&!e.parentPath.isObjectProperty()};function YK({parentPath:e}){return XK(e.parentPath.parentPath)}function GK(e){const t=e.getPrevSibling();return JK(t.node.value)}function QK(e){const t=e.getPrevSibling();if(!JK(t.node.value))return!1;const{right:n}=t.node.value;return qK(n)}function ZK(e){const t=e.getNextSibling();if(!t.node)return!1;if(!JK(t.node.value))return!1;const{right:n}=t.node.value;return qK(n)}function eW(e){for(const t of e){const{value:e}=t.node;if(JK(e))return!0}return!1}function tW(e){for(const t of e)if(WK(t.node.value))return!0;return!1}xK.ObjectPattern={print:RK((e,t,n)=>{const r=function(e){return!e.parentPath.isArrayPattern()}(e),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=n,{print:a,maybe:o,indent:u}=t;o.indent.inc(r),a("{");const c=e.get("properties"),l=c.length-1,p=function(e,t){const{parentPath:n}=e,r=e.get("properties"),i=r.length-1,{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=jK(e,{maxPropertiesLengthInOneLine:a}),u=BK(e,{maxPropertiesInOneLine:s}),c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return tW(r)?rW:u&&!o&&VK(e.parentPath)?nW:!c&&i&&!DK(e)&&function(e){for(const t of e){const{value:e}=t.node;if($K(e)&&e.name.length>4)return!0}return!1}(r)||!c&&eW(r)?rW:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&tW(c),h=!(e=>!!KK(e.parentPath)||KK(e.parentPath.parentPath))(e);o.print.newline(p&&h);for(const[n,r]of c.entries()){if(r.isRestElement()){const e=p||d;o.indent(e),a(r),o.print.newline(e);continue}const i=n&&QK(r),s=ZK(r),u=r.get("value"),c=r.get("key"),f=u.isAssignmentPattern(),{shorthand:m,computed:y}=r.node,g=HK({path:e,property:r,valuePath:u});if(o.indent((i||p)&&h),o.print.breakline(g),!f&&s&&a.breakline(),UK(r,t),!m||LK({computed:y,isAssign:f,keyPath:c,valuePath:u}))a(":"),a.space(),a(u);else if(f){a(u),o.print(g,","),o.print.newline(g);const{right:t}=u.node;if(n&&!GK(r)&&!YK(e)&&qK(t)){a(","),a.newline();continue}}!f&&s&&h?(a(","),a.breakline()):p||d||i&&h?(a(","),a.newline()):!(n<l)||f&&g||(a(","),a.space())}u.dec(),o.indent(p||function(e,t){const{parentPath:n}=e;if(zK(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(JK(n)&&qK(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};const nW=!1,rW=!0;var iW={};const{exists:sW}=GU,{maybePrintTypeAnnotation:aW}=EK,{maybeDecorators:oW}=fJ,{printKey:uW}=yJ,{printKind:cW}=xJ,lW=oW((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 "),cW(e,t),uW(e,t),c.print(o,"?"),aW(e,t),sW(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()});iW.ClassProperty=lW,iW.ClassPrivateProperty=lW,iW.PrivateName=(e,{print:t})=>{t("#"),t("__id")},iW.ClassAccessorProperty=(e,t,n)=>{lW(e,t,n,{accessor:!0})};var pW={exports:{}},dW={};const{hasLeadingComment:hW}=GU,{isParens:fW}=$$;dW.condition=(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!hW(e))&&fW(e))))};var mW={};const{types:yW}=rn,{hasLeadingComment:gW}=GU,{isReturnStatement:bW}=yW;mW.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;bW(s)||(o.print.breakline(!i),r(),a.breakline())},mW.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;bW(i)||(r(),s.indent())},mW.maybeInsideReturnWithCommentStart=(e,{print:t,indent:n})=>{const{parentPath:r}=e;if(bW(r)&&gW(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()}},mW.maybeInsideReturnWithCommentEnd=(e,{print:t,indent:n})=>{const{parentPath:r}=e;bW(r)&&gW(e)&&(n.dec(),t.breakline())};var xW={};const{types:SW}=rn,{isAssignmentExpression:TW,isExpressionStatement:EW}=SW;xW.printSeparator=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(EW)&&TW(t)}(e)?t.space():t.breakline()},function(e){const{condition:t}=dW,{printLeadingCommentLine:n,maybeInsideReturnWithCommentEnd:r,maybeInsideReturnWithCommentStart:i,printLeadingCommentBlock:s}=mW,{maybeParens:a}=$$,{printSeparator:o}=xW;e.exports.AssignmentExpression=a({checkParens:!1,condition:t,print(e,t){const{print:n}=t,{operator:s}=e.node;i(e,t),n("__left"),n.space(),n(s),o(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),r(e,t)}}),e.exports.AssignmentExpression.printLeadingCommentLine=n,e.exports.AssignmentExpression.printLeadingCommentBlock=s}(pW);var vW=pW.exports;vW.default;var PW={},AW={},CW={},wW={};const{types:kW}=rn,{isIdentifier:IW,isMemberExpression:_W}=kW;function NW(e,t){const n=OW(t);return e.scope.getAllBindings()[n]}wW.getBinding=NW,wW.getBindingPath=(e,t)=>NW(e,t)?.path;const OW=e=>"string"==typeof e?e:IW(e)?e.name:_W(e)?OW(e.object):"";var LW={};const{types:DW}=rn,{isOptionalMemberExpression:FW,isMemberExpression:MW,isIdentifier:BW,isLiteral:RW}=DW;LW.isSimple=e=>!!RW(e)||(!!BW(e)||(!!MW(e)||FW(e)));var jW={};const{types:UW}=rn,{isArrayExpression:qW,isLiteral:$W,isIdentifier:JW,isMemberExpression:VW,isTemplateElement:KW,isRegExpLiteral:WW,isClassMethod:XW,isTemplateLiteral:zW,isJSXText:HW,isJSXAttribute:YW,isJSXIdentifier:GW,isTSTypeReference:QW,isTSTypeParameter:ZW}=UW;function eX(e){if(e=e.node||e,JW(e))return e.name;if(GW(e))return e.name;if(WW(e))return e.pattern;if(zW(e))return eX(e.quasis[0]);if($W(e))return e.value;if(KW(e))return e.value.raw;if(VW(e))return`${eX(e.object)}.${eX(e.property)}`;if(qW(e))return tX(e);if(HW(e))return e.value;if(YW(e))return e.name.name;if(XW(e))return eX(e.key);if(QW(e))return eX(e.typeName);if(ZW(e))return eX(e.name);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function tX(e,t=[]){for(const n of e.elements)qW(n)?tX(n,t):t.push(eX(n));return t.join(",")}jW.extract=eX;var nX={};const{getBindingPath:rX}=wW,{extract:iX}=jW,sX=!1,aX=!0;function oX(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[aX,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=oX(n);if(!i)return[sX];const[a,o]=oX(r);if(!a)return[sX];const u=`return a ${t} b`,c=cX[t]||cX.init(t,Function("a","op","b",u));return[aX,c(s,t,o)]}(e);if(uX(e))return[aX,iX(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?rX(e,iX(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?rX(e,iX(t.object)):null}(e);if(!i)return[sX];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=iX(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!uX(t))return[sX];if(iX(t)!==n)continue;const[r,i]=oX(e.get("value"));if(!r)break;return[aX,i]}return[sX]}(e,s):[sX]}function uX(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))}nX.compute=oX;const cX={init:(e,t)=>cX[e]=t};var lX={};const{entries:pX}=Object;lX.remove=e=>{if(!e.node)return;const{scope:t}=e,n=hX(e),r=fX(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=dX(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of pX(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}};const dX=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:[]},hX=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),fX=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling();var mX={getExportDefault:e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null}},yX={},gX={renameProperty:(e,t,n)=>{e.traverse({ObjectProperty(e){const{node:r}=e,{key:i,value:s}=r;i.name===s.name&&i.name===t&&(i.name=n,s.name=n,r.shorthand=!0,e.stop())}})}};const{renameProperty:bX}=gX;yX.rename=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;bX(i,t,n),i.scope.rename(t,n)};var xX={setLiteralValue:(e,t)=>{const n=e.node||e,{raw:r,extra:i,value:s}=n;n.value=s.replace(s,t),'""'!==r?!r&&s?i&&(n.raw=i.raw.replace(s,t),n.extra.rawValue=s):n.raw="'"+String.raw`${t}`+"'":n.raw=r.replace(r,`"${t}"`)}},SX={};function TX(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"})}SX.getPathAfterRequires=e=>{let t;for(t of e)if(!TX(t))break;return t};var EX={},vX={};const{traverse:PX,types:AX}=rn,{extract:CX}=jW,{isCallExpression:wX,isObjectExpression:kX}=AX,IX=e=>e.node||e;vX.traverseProperties=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return kX(e)?wX(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:IX(e)}:IX(e)}(e),s=_X({name:t,collector:r});return n?(s(e),r):(PX(i,{noScope:!0,ObjectExpression:s}),r)};const _X=({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=CX(n);e===i&&t.push(r)}},{isObjectExpression:NX,isObjectPattern:OX}=rn.types,{extract:LX}=jW,{traverseProperties:DX}=vX;EX.traverseProperties=DX,EX.getProperties=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=r.get("key"),i=LX(e);if(t.includes(i)){n[`${i}Path`]=r;continue}}return n},EX.getProperty=(e,t)=>{if(!NX(e)&&!OX(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);const n=e.get("properties");for(const e of n){const n=e.get("key");if(LX(n)===t)return e}return null};var FX={};const MX=e=>"string"==typeof e;FX.getLiteralRaw=e=>{const{raw:t,extra:n,value:r}=e.node||e;return MX(t)?t:n&&MX(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};var BX={},RX={},jX={};const{types:UX}=rn,{isStatement:qX,isBlockStatement:$X,blockStatement:JX,expressionStatement:VX}=UX;jX.maybeBody=(e,t)=>{const{parentPath:n}=e;return t&&!qX(t)||$X(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=JX([VX(e.node)]),{currentPath:n.get("body.body.0")})};var KX={};const{types:WX}=rn,{isExpression:XX,toStatement:zX,expressionStatement:HX}=WX;KX.toExpression=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:XX(e)?HX(e):zX(e)};const{maybeBody:YX}=jX,{toExpression:GX}=KX,{isSequenceExpression:QX}=rn.types;RX.replaceWithMultiple=(e,t)=>{const{node:n}=e,{trailingComments:r,comments:i,leadingComments:s}=n;delete e.node.trailingComments;const a=e.parentPath.node.comments,o=t.filter(Boolean).map(GX);!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}=YX(e),c=u.replaceWithMultiple(o);return c.length?(s||QX(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};var ZX={};const{maybeBody:ez}=jX,{assign:tz}=Object;ZX.replaceWith=(e,t)=>{t=(e=>{var t;return(e=(t=e).__putout_replaced_with?t.__putout_replaced_with:t).node?e.node:e})(t),e?.parentPath?.isExpressionStatement()&&!e.parentPath.isProgram()&&(!function(e,t){e.__putout_replaced_with=t}(e,t),e=e.parentPath);const{comments:n,loc:r}=e.node,{currentPath:i}=ez(e,t);return i.replaceWith(t),tz(i.node,{comments:n,loc:r}),i};const{replaceWithMultiple:nz}=RX,{replaceWith:rz}=ZX,{toExpression:iz}=KX;BX.replaceWith=rz,BX.replaceWithMultiple=nz,BX.toExpression=iz;const{types:sz}=rn,{getBinding:az,getBindingPath:oz}=wW,{isSimple:uz}=LW,{extract:cz}=jW,{compute:lz}=nX,{remove:pz}=lX,{getExportDefault:dz}=mX,{rename:hz}=yX,{renameProperty:fz}=gX,{setLiteralValue:mz}=xX,{getPathAfterRequires:yz}=SX,{getProperty:gz,getProperties:bz,traverseProperties:xz}=EX,{getLiteralRaw:Sz}=FX,{replaceWith:Tz,replaceWithMultiple:Ez,toExpression:vz}=BX,{matchesPattern:Pz,isImportDeclaration:Az,isExportDeclaration:Cz,isStatement:wz,expressionStatement:kz}=sz;CW.getBinding=az,CW.getBindingPath=oz,CW.getLiteralRaw=Sz,CW.extract=cz,CW.compute=lz,CW.replaceWith=Tz,CW.getExportDefault=dz,CW.toExpression=vz,CW.isSimple=uz,CW.rename=hz,CW.renameProperty=fz,CW.setLiteralValue=mz,CW.getProperty=gz,CW.getProperties=bz,CW.traverseProperties=xz,CW.replaceWithMultiple=Ez,CW.insertBefore=(e,t)=>{e.insertBefore(t)},CW.insertAfter=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,wz(e)&&!wz(t)?e.insertAfter(kz(t)):e.insertAfter(t),e.node.comments=n},CW.isModuleExports=e=>Pz(e.node||e,"module.exports");CW.findBinding=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},CW.remove=pz,CW.getPathAfterRequires=yz,CW.getPathAfterImports=e=>{const t=e.length;let n=0;for(;n<t-1&&Az(e[n]);)++n;return e[n]},CW.isESM=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(Az(e))return!0;if(Cz(e))return!0}return!1};const{isSimple:Iz}=CW,{types:_z}=rn,{isStringAndMember:Nz,isStringAndIdentifier:Oz,isIdentifierAndString:Lz,isCoupleLines:Dz,isStringAndArray:Fz,isIdentifierAndIdentifier:Mz,isSimpleAndNotEmptyObject:Bz}=GU,{isObjectExpression:Rz,isArrayExpression:jz,isObjectProperty:Uz,isCallExpression:qz,isAwaitExpression:$z,isBooleanLiteral:Jz,isNullLiteral:Vz,isStringLiteral:Kz,isSpreadElement:Wz,isIdentifier:Xz}=_z,{round:zz}=Math,Hz=!1,Yz=!0;AW.isMultiLine=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!Xz(n)&&n.node.name.length<t}(t,r)?Hz:t.length>n&&Kz(i)||t.length>3&&!Rz(i)||Bz(t)?Yz: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()||!Iz(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return Wz(t)})(t)||2===t.length&&Mz(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||rH(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>Jz(e)&&Iz(t))(t)||(([e,t])=>Vz(e)&&Iz(t))(t)||(([e,t])=>{if(Iz(e))return qz(t)||$z(t)})(t)||Zz(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 zz(i/r)>2}(t)||eH(e)||Fz(t)&&t.length<3||Nz(t)||Oz(t)||Lz(t)||(([e,t])=>Iz(e)&&Rz(t))(t)||Qz(t)&&e.parentPath.isArrayExpression()&&jz(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?Hz: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)||Dz(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!Gz(e)&&tH(e)&&!nH(e)?Yz:Hz};const Gz=({parentPath:e})=>e.isForOfStatement(),Qz=([e,t])=>Kz(e)&&Kz(t),Zz=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!Kz(a)||!Kz(o))&&s<t)},eH=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!Kz(s)||!Kz(a))&&!Dz(e)))};const tH=({parentPath:e})=>!e.isCallExpression(),nH=e=>e.find(Uz);function rH(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>Jz(e)&&Rz(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!Wz(t[1])&&iH(t)))}AW.isIncreaseIndent=rH;const iH=e=>{const t=e.at(0),n=e.at(-1);return Kz(t)&&Rz(n)};AW.isCurrentNewLine=e=>!!e.isSpreadElement()||!e.isObjectExpression();var sH={};const{types:aH}=rn,{isIndented:oH}=GU,{isStringLiteral:uH,isArrayExpression:cH}=aH,lH=e=>e.parentPath.isArrayExpression();function pH(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(cH).length,r=!cH(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}sH.isInsideArray=lH,sH.isArrayIndented=e=>{const t=e.get("elements");if(pH(e))return!1;const[n]=t;return!dH(t)||!lH(e)&&oH(n)},sH.isArrayInsideArray=pH;const dH=([e,t])=>!(!uH(e)||!uH(t))&&e.node.value.length>20;var hH={};const{isNextObject:fH,isPrevObject:mH}=GU,yH=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"];hH.isObjectAfterSimple=e=>{const{type:t}=e;return!(!fH(e)||mH(e))&&yH.includes(t)},hH.isNextSimple=e=>{const{type:t}=e.getNextSibling();return yH.includes(t)};const{types:gH}=rn,{isCoupleLines:bH,isStringAndIdentifier:xH,isIdentifierAndIdentifier:SH,isStringAndArray:TH,isSimpleAndNotEmptyObject:EH,isNextObject:vH}=GU,{isIncreaseIndent:PH,isCurrentNewLine:AH,isMultiLine:CH}=AW,{isInsideArray:wH,isArrayInsideArray:kH,isArrayIndented:IH}=sH,{isObjectAfterSimple:_H,isNextSimple:NH}=hH,{isObjectExpression:OH,isSpreadElement:LH,isStringLiteral:DH,isIdentifier:FH,isFunction:MH,isCallExpression:BH,isObjectProperty:RH}=gH,jH=e=>(e=>DH(e.getNextSibling()))(e)||(e=>DH(e.getPrevSibling()))(e),UH=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(MH(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},qH=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},$H=({parentPath:e})=>1===e.node.elements.length;function JH(e){if(!LH(e)&&!FH(e)&&!BH(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}PW.ArrayExpression={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!bH(t)&&(!(!xH(n)||!$H(e))||SH(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=!PH(e);t("[");const c=IH(e);n.indent.inc(c&&u);const l=CH(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&&AH(i);JH(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),OH(i)&&RH(e.parentPath)||n.print.newline((a||UH(i))&&!vH(i)&&!OH(i)),n.print.space(a&&_H(i)),!a&&r<p&&(t(","),!qH(i)&&i.isObjectExpression()&&NH(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(wH(e)&&TH(d)){const t=2===d.length,r=!jH(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else kH(e)||OH(o.at(-1))||n.indent(o.length&&l);!EH(o)||LH(o.at(-1))||BH(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!bH(t)&&(!(!xH(n)||!$H(e))||SH(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};var VH={};const{maybeTypeAnnotation:KH}=EK;VH.ArrayPattern=KH((e,{indent:t,maybe:n,print:r},i)=>{const{maxElementsInOneLine:s}=i;r("[");const a=e.get("elements");t.inc();const o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,u=a.length-1;n.print(o&&a.length,"\n");for(const[e,t]of a.entries())n.indent(o),r(t),o?r(",\n"):e<u&&(r(","),r.space());t.dec(),n.indent(a.length&&o),r("]")});var WH={};WH.AssignmentPattern={print(e,{print:t,maybe:n}){n.print(function(e){const{parentPath:t}=e;return!(!t.isObjectProperty()||t.node.shorthand)||(!!(e=>e.parentPath.isFunction())(e)||(!!t.isTSParameterProperty()||t.isArrayPattern()))}(e),"__left"),t.space(),t("="),t.space(),t("__right")}};var XH={};const{maybeTypeAnnotation:zH}=EK;XH.RestElement=zH((e,{print:t})=>{t("..."),t("__argument")});var HH={};const{hasTrailingComment:YH}=GU;HH.SpreadElement=(e,t)=>{const{print:n}=t;n("..."),n("__argument"),YH(e)&&n(",")};var GH={exports:{}},QH={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))}},ZH={};const{hasLeadingComment:eY}=GU,tY=()=>{};ZH.printLeadingCommentLine=tY,ZH.printLeadingCommentBlock=tY,ZH.maybePrintComments=(e,{print:t})=>{if(eY(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}},function(e){const{hasLeadingComment:t}=GU,{maybeParens:n}=$$,{condition:r}=QH,{maybePrintComments:i,printLeadingCommentLine:s,printLeadingCommentBlock:a}=ZH;e.exports.SequenceExpression=n({checkParens:!1,condition:r,print(e,n){const{write:r,traverse:s,indent:a,maybe:o}=n,u=e.get("expressions"),c=u.length-1,l=t(e);l&&(a.inc(),r.breakline(),i(e,n));for(const[e,t]of u.entries())s(t),e<c&&(r(","),o.write.space(!l),o.print.breakline(l));l&&(a.dec(),r.breakline())}}),e.exports.SequenceExpression.printLeadingCommentLine=s,e.exports.SequenceExpression.printLeadingCommentBlock=a}(GH);var nY=GH.exports;nY.default;var rY={TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")}},iY={},sY={maybeSpace:(e,{print:t})=>{const{right:n}=e.node;return"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()}};const{concatenate:aY,isConcatenation:oY}=uK,{maybeSpace:uY}=sY,{maybeParens:cY}=$$;iY.BinaryExpression=cY((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")):oY(e)?aY(e,{print:t,indent:n,maybe:r}):(t("__left"),t.space(),t(e.node.operator),uY(e,{print:t}),void t("__right"))});var lY={},pY={};const{types:dY}=rn,{isLogicalExpression:hY,isReturnStatement:fY,isVariableDeclarator:mY}=dY;function yY(e){let t=0;do{++t;const n=e.get("right");hY(n)&&(t+=yY(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}pY.isRootOk=e=>fY(e)||mY(e),pY.chain=e=>{const[t]=yY(e),[n,r]=function(e){let t=0;do{++t,e=e.parentPath}while(e.isLogicalExpression());return[t,{type:e.type}]}(e);return[r,t+n,t,n]};const{maybeParens:gY}=$$,{chain:bY,isRootOk:xY}=pY;lY.LogicalExpression=gY({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]=bY(e);if(!xY(n))return!1;if(r<=t.maxLogicalsInOneLine)return!1;const{operator:i}=e.node;return"||"===i||"&&"===i}(e,r);n.indent.inc(i),i?t.breakline():t.space(),n.indent.dec(i),t(e.node.operator),t.space(),t("__right")}});var SY={};const{maybeParens:TY}=$$;SY.ConditionalExpression=TY((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")});var EY={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()}},vY={};function PY(e,t,n,{source:r="source"}={}){const{print:i,maybe:s}=t,{options:a}=e.node;i("import("),i(`__${r}`),s.print(a,","),s.print.space(a),i("__options"),i(")")}vY.ImportExpression=PY,vY.createImportExpression=PY;var AY={};const{types:CY}=rn,{isJSXElement:wY}=CY;AY.ParenthesizedExpression={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!wY(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}};const kY=HU,IY=YJ,_Y=nV,{ClassExpression:NY,ClassDeclaration:OY}=aV,{CallExpression:LY,OptionalCallExpression:DY}=bV,{NewExpression:FY}=vV,{ObjectExpression:MY}=_V,{ObjectProperty:BY}=oK,{ObjectPattern:RY}=xK,{ClassProperty:jY,ClassAccessorProperty:UY,ClassPrivateProperty:qY,PrivateName:$Y}=iW,{AssignmentExpression:JY}=vW,{ArrayExpression:VY}=PW,{ArrayPattern:KY}=VH,{AssignmentPattern:WY}=WH,{RestElement:XY}=XH,{SpreadElement:zY}=HH,{SequenceExpression:HY}=nY,{TaggedTemplateExpression:YY}=rY,{BinaryExpression:GY}=iY,{LogicalExpression:QY}=lY,{ConditionalExpression:ZY}=SY,{StaticBlock:eG}=EY,{ImportExpression:tG}=vY,{ParenthesizedExpression:nG}=AY;var rG={...kY,...IY,..._Y,ArrayPattern:KY,ArrayExpression:VY,AssignmentExpression:JY,AssignmentPattern:WY,BinaryExpression:GY,CallExpression:LY,ClassExpression:NY,ClassProperty:jY,ClassAccessorProperty:UY,ClassPrivateProperty:qY,ClassDeclaration:OY,ConditionalExpression:ZY,NewExpression:FY,LogicalExpression:QY,OptionalCallExpression:DY,ObjectExpression:MY,ObjectProperty:BY,ObjectPattern:RY,ParenthesizedExpression:nG,PrivateName:$Y,RestElement:XY,ImportExpression:tG,SpreadElement:zY,SequenceExpression:HY,StaticBlock:eG,TaggedTemplateExpression:YY,ThisExpression(e,{write:t}){t("this")}},iG={exports:{}},sG={};const{types:aG}=rn,{isExpressionStatement:oG,isFunction:uG,isAssignmentExpression:cG}=aG;sG.isInsideAssignNextAssignFunction=e=>{const{expression:t}=e.node;if(!cG(t))return!1;const n=e.getNextSibling();if(uG(n)&&n.node.leadingComments)return!0;if(!oG(n))return!1;const{leadingComments:r}=n.node;return!!r&&(!!cG(n.node.expression)&&uG(n.node.expression.right))};var lG={};const{types:pG}=rn,{hasTrailingComment:dG}=GU,{isBlockStatement:hG,isProgram:fG,isIfStatement:mG}=pG;lG.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;dG(u)||(r||u.node||!mG(c)&&!hG(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},lG.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();dG(s)||(hG(e.parentPath)&&!fG(e.parentPath.parentPath)&&i(),r())},function(e){const{types:t}=rn,{isNext:n,isLast:r,isParentBlock:i,isParentLast:s,isNewlineBetweenSiblings:a,satisfy:o,noTrailingComment:u,hasTrailingComment:c,isCoupleLines:l,isInsideLabel:p}=GU,{isInsideAssignNextAssignFunction:d}=sG,{printLeadingCommentLine:h,printLeadingCommentBlock:f}=lG,{isCallExpression:m,isExpressionStatement:y,isAssignmentExpression:g}=t,b=({parentPath:e})=>e.isReturnStatement(),x=(e=>(...t)=>!e(...t))(b),S=o([function(e){return!r(e)&&!s(e)},i,n,function(e){return e.findParent(n)}]),T=o([a,function(e){return e.parentPath.get("body")===e},function(e){const t=e.get("expression");if(!t.isStringLiteral())return!1;const{value:n}=e.node.expression;return"use strict"===n},e=>e.getNextSibling().isIfStatement()]);e.exports.ExpressionStatement={beforeIf:e=>!b(e)&&!p(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:r,store:i,indent:s}){const a=b(e);if(t("__expression"),r.print(!a,";"),n(e)&&!a&&T(e)){t.newline();const r=n(e)&&u(e)||function(e){if(g(e.node.expression))return!1;const t=e.getNextSibling();if(!y(t))return!1;const{expression:n}=t.node;return m(n)}(e)||function(e){const{expression:t}=e.node;return!!m(t)&&(!!m(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);r&&s(),i(!0)}},afterIf:e=>!!S(e)||(!(!c(e)||!r(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:i,indent:s}){c(e)&&r(e)&&l(e)&&t.breakline(),c(e)&&!l(e)||function({parentPath:e}){if(!e.isIfStatement())return!1;const t=e.parentPath;if(!t.isIfStatement())return!1;const n=t.parentPath;return!!n.isIfStatement()&&r(n)}(e)||x(e)&&(d(e)&&s(),t.newline(),n.markAfter(i(),e))}},e.exports.ExpressionStatement.printLeadingCommentLine=h,e.exports.ExpressionStatement.printLeadingCommentBlock=f}(iG);var yG=iG.exports;yG.default;var gG={},bG={maybeSpaceAfterKeyword:(e,{write:t})=>{const{declarations:n}=e.node;if(!n.length)return;const{id:r}=n[0];if("ArrayPattern"===r.type||"ObjectPattern"===r.type)return t.space();t(" ")}};const{types:xG}=rn,{isNext:SG,isCoupleLines:TG,isNewlineBetweenSiblings:EG,exists:vG,noTrailingComment:PG}=GU,{hasPrevNewline:AG}=xq,{maybeSpaceAfterKeyword:CG}=bG,{isConcatenation:wG}=uK,{parseLeadingComments:kG}=gq,{maybeDeclare:IG}=oV,{isExportDeclaration:_G}=xG,NG=e=>e.parentPath.isTSModuleBlock(),OG=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),LG=e=>e.parentPath.isSwitchCase();function DG(e){return!SG(e)&&e.parentPath.isBlockStatement()}function FG(e){return!jG(e.parentPath)&&e.parentPath.isExportDeclaration()}function MG(e){return!jG(e)&&TG(e)}function BG(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!vG(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!jG(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function RG(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!vG(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&TG(t))}gG.VariableDeclaration={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(AG(e))return!1;if(AG(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!_G(e.parentPath)&&TG(e))},before(e,{print:t}){t.breakline()},print:IG((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),CG(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),vG(d)&&(r.space(),r("="),t.write.space(!wG(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}kG(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(OG(e)||LG(e)||NG(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;LG(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),OG(e)&&SG(e)&&(PG(e)||EG(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[UG,qG,DG,MG,$G,RG,BG,EG,FG,NG],after(e,{maybe:t,store:n}){const r=n();if(jG(e.parentPath)&&!e.parentPath.isBlockStatement()||!OG(e)&&!NG(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};const jG=e=>e.parentPath?.isProgram()&&!SG(e);const UG=e=>e.getNextSibling().isIfStatement(),qG=e=>e.getNextSibling().isFunctionDeclaration(),$G=e=>{const t=e.getNextSibling();if(!t.isExpressionStatement())return!1;const{parentPath:n}=e;return!(n.isBlockStatement()&&n.node.body.length<3)&&t.get("expression").isAssignmentExpression()};var JG={};const{types:VG}=rn,{markAfter:KG}=xq,{exists:WG,isNext:XG,isInsideIf:zG}=GU,{isBlockStatement:HG,isFunctionDeclaration:YG,isStatement:GG}=VG;JG.IfStatement={print:(e,{indent:t,print:n,maybe:r,write:i,traverse:s})=>{const{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),n("if"),n.space(),n("("),n("__test"),n(")");const u=e.get("consequent"),c=e.get("alternate"),l=u.isBlockStatement(),p=u.isVariableDeclaration();if(l)n.space(),n(u),(zG(e.parentPath)||(({parentPath:e})=>"BlockStatement"===e.type&&"BlockStatement"===e.parentPath.type)(e))&&r.print.newline((e=>!e.node.body.length)(u));else{const t=!(e=>e.get("consequent").isEmptyStatement())(e);r.print.newline(t),r.indent.inc(t),r.indent(p),n(u),r.indent.dec(t)}if(c.isBlockStatement()?(i.space(),i("else"),i.space(),s(c)):c.isIfStatement()?(c.get("consequent").isBlockStatement()?i.space():t(),i("else "),s(c)):WG(c)&&(r.write.newline(p),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!XG(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||GG(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!HG(t)&&!!HG(e.node.consequent)&&!e.node.consequent.body.length&&YG(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[XG],after:(e,{print:t})=>{t.linebreak(),KG(e)}};var QG={};const{hasPrevNewline:ZG,markAfter:eQ,markBefore:tQ,isMarkedAfter:nQ}=xq,{isFirst:rQ,isNext:iQ,isLast:sQ}=GU;QG.ForOfStatement={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!rQ(e)&&!ZG(e))},before(e,{print:t}){t.linebreak(),tQ(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&&!sQ(e)&&!iQ(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(nQ(a),e)},afterIf:iQ,after(e,{print:t}){t.linebreak(),eQ(e)}};var aQ={},oQ={};const{exists:uQ}=GU;oQ.insideIfWithNoBody=e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!uQ(t)};var cQ={getDirectives:e=>e.node.directives?e.get("directives"):[]},lQ={};const{types:pQ}=rn,{isLooksLikeChain:dQ}=Yq,{isReturnStatement:hQ,isExpressionStatement:fQ,isMemberExpression:mQ,isCallExpression:yQ}=pQ;function gQ(e){return!!mQ(e)&&fQ(e.parentPath.parentPath)}function bQ(e){if(!yQ(e))return!1;const{parentPath:t}=e;return!!hQ(t)||fQ(t)}lQ.isCallInsideChain=e=>{if(!yQ(e.parentPath.parentPath))return!1;const t=e.find(gQ);if(t)return dQ(t);const n=e.find(bQ);if(!n)return!1;const r=n.get("callee");return dQ(r)};const{types:xQ}=rn,{isNext:SQ,isParentProgram:TQ,isLast:EQ,exists:vQ,satisfy:PQ}=GU,{markAfter:AQ}=xq,{parseComments:CQ}=gq,{insideIfWithNoBody:wQ}=oQ,{getDirectives:kQ}=cQ,{isCallInsideChain:IQ}=lQ,{isArrowFunctionExpression:_Q,isObjectMethod:NQ,isFunctionDeclaration:OQ,isExportDeclaration:LQ,isDoWhileStatement:DQ,isBlockStatement:FQ,isArrayExpression:MQ}=xQ,BQ=e=>_Q(e)||NQ(e);aQ.BlockStatement={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=kQ(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!MQ(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=IQ(e);s.indent.inc(p);for(const e of u)o(e);CQ(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;NQ(d)&&s.write(SQ(d)||r,",")},afterIf:function(e){return JQ(e)?qQ:VQ(e)?$Q:RQ(e)?qQ:jQ(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||UQ(e)||EQ(e)||function(e){return!!OQ(e.parentPath)&&(!!LQ(e.parentPath?.parentPath)&&!SQ(e.parentPath?.parentPath))}(e)?$Q:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&vQ(n)}(e)},after(e,{write:t}){t.newline(),AQ(e.parentPath)}};const RQ=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(BQ),jQ=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!SQ(t)},UQ=({parentPath:e})=>/FunctionExpression/.test(e.type),qQ=!0,$Q=!1,JQ=({parentPath:e})=>FQ(e),VQ=PQ([({parentPath:e})=>DQ(e),e=>!SQ(e)&&(!SQ(e.parentPath)&&TQ(e.parentPath)),wQ]);var KQ={},WQ={maybeSpaceAfterKeyword:(e,{print:t},n)=>{const{roundBraces:r}=n,{argument:i}=e.node;if(!i)return;const{type:s}=i;return"SequenceExpression"===s&&r.sequence||"StringLiteral"===s||"TemplateLiteral"===s||"ArrayExpression"===s||"ObjectExpression"===s||"UnaryExpression"===s&&"!"===i.operator||"ArrowFunctionExpression"===s&&r.arrow?t.space():void t(" ")}};const{types:XQ}=rn,{isInsideLabel:zQ}=GU,{isPrevBody:HQ,noTrailingComment:YQ,isLast:GQ}=GU,{hasPrevNewline:QQ}=xq,{maybeSpaceAfterKeyword:ZQ}=WQ,{isJSXElement:eZ}=XQ;KQ.ReturnStatement={beforeIf:e=>!QQ(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||HQ(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;if(r.indent(!zQ(e)),i("return"),ZQ(e,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return eZ(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)||!GQ(e)&&(!GQ(e.parentPath)&&YQ(e)),after(e,{print:t}){t.newline()}};var tZ={};const{isNext:nZ}=GU;tZ.TryStatement={print(e,{print:t}){const n=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),n.node&&(t.space(),t("finally"),t.space(),t(n),t.newline())},afterSatisfy:()=>[nZ],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}},tZ.CatchClause=(e,{print:t,maybe:n})=>{const r=e.get("param"),i=e.get("body");t.space(),t("catch"),r.node?(t("("),t(r),t(")"),t.space()):t.space(),t(i),n.print.newline(function(e){return e.parentPath.parentPath.isBlockStatement()}(e))};var rZ={};const{isNext:iZ,isInsideIf:sZ}=GU,aZ=e=>e.parentPath.isBlockStatement();rZ.DebuggerStatement={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[iZ,aZ,sZ],after(e,{print:t}){t.newline()}};var oZ={};const{exists:uZ}=GU,{markAfter:cZ}=xq;oZ.ForStatement={print(e,{print:t,maybe:n,indent:r}){const{test:i,update:s,body:a}=e.node;if(r(),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(i),t("__test"),t(";"),n.print.space(s),t("__update"),t(")"),a.body)t.space(),t("__body");else{const r=!e.get("body").isEmptyStatement();n.print.newline(r),n.indent.inc(r),t("__body"),n.indent.dec(r)}},afterIf:e=>uZ(e.getNextSibling()),after(e,{print:t}){t.linebreak(),cZ(e)}};var lZ={exports:{}},pZ={parseImportSpecifiers:e=>{const t=[],n=[],r=[];for(const i of e)"ImportDefaultSpecifier"!==i.type?"ImportNamespaceSpecifier"!==i.type?"ImportSpecifier"!==i.type||r.push(i):n.push(i):t.push(i);return{defaults:t,namespaces:n,imports:r}}},dZ={ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},maybePrintAttributes:(e,t)=>{if(hZ(e))return fZ(e,"assert",t);fZ(e,"with",t)}};const hZ=e=>e.node.extra?.deprecatedAssertSyntax;function fZ(e,t,{write:n,traverse:r,indent:i}){const s=e.get("attributes");if(s.length){n(` ${t}`),n.space(),n("{"),n.breakline(),i.inc();for(const e of s)i(),r(e),n.newline();i.dec(),n("}")}}var mZ={};const{types:yZ}=rn,{isExportDeclaration:gZ}=yZ;mZ.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()},mZ.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!gZ(s)),r()},function(e){const{parseImportSpecifiers:t}=pZ,{markAfter:n}=xq,{isLast:r,isNext:i}=GU,{maybePrintAttributes:s,ImportAttribute:a}=dZ,{printTrailingCommentBlock:o,printTrailingCommentLine:u}=mZ;e.exports.ImportAttribute=a,e.exports.ImportDeclaration={print(e,n,r){const{print:a,maybe:o,write:u,traverse:c,indent:l}=n,{phase:p}=e.node,d="type"===e.node.importKind,h=e.get("specifiers");l(),u("import"),o.write(d," type"),o.write(p,` ${p}`);let f=!1;const m=h.length-1,{defaults:y,namespaces:g,imports:b}=t(h);o.write(h.length," ");for(const e of y)c(e.get("local")),o.write(m,","),o.write.space(m);for(const e of g)u("* as "),c(e.get("local"));const x=function(e,t){const{maxSpecifiersInOneLine:n,maxPropertiesLengthInOneLine:r}=t;for(const{node:t}of e){if(t.imported.name!==t.local.name)return 1;if(t.imported.name.length>=r)return 1}return n}(b,r),S=b.length-1;for(const[e,t]of b.entries()){const n=e===S,r=!n,{imported:i,local:s}=t.node;if(l.inc(),o.write(!f,"{"),o.write.breakline(S>=x),f=!0,c(t.get("imported")),i.name!==s.name&&(u(" as "),u(s.name)),S<x&&r&&(o.write(m,","),o.write.space(m)),S>=x){o.write(m,",");const t=e===m,n=e===m-1;o.write.newline(n&&y.length),o.write.newline(t)}l.dec(),o.write(n,"}")}o.write(h.length," from"),a.space(),a("__source"),s(e,n),a(";"),i(e)&&a.newline()},afterIf:e=>!r(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),n(e)}},e.exports.ImportDeclaration.printTrailingCommentBlock=o,e.exports.ImportDeclaration.printTrailingCommentLine=u}(lZ);var bZ=lZ.exports;bZ.default;var xZ={};const{types:SZ}=rn,{isParentBlock:TZ}=GU,{markAfter:EZ,isMarkedAfter:vZ,hasPrevNewline:PZ}=xq,{isNewlineBetweenSiblings:AZ,exists:CZ,isNext:wZ,isLast:kZ}=GU,{isExportNamespaceSpecifier:IZ,isVariableDeclaration:_Z,isExportNamedDeclaration:NZ}=SZ,OZ={maxOneLineSpecifiers:2};xZ.ExportSpecifier=(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},xZ.ExportNamespaceSpecifier=(e,{print:t})=>{t("* as "),t("__exported")},xZ.ExportNamedDeclaration={beforeIf(e){const t=e.getPrevSibling();return!PZ(e)&&_Z(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}=OZ,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),IZ(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!kZ(e));const p=u.length,d=!CZ(l)||p>c;if(u&&!e.node.declaration){if(t.space(),t("{"),u.length){r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of u.entries()){const o="type"===s.node.exportKind,u=r<e;i.indent(d),i.print(o,"type "),n(s),u&&!d?t(", "):d&&i.print(u||a,","),i.print.newline(d)}r.dec(),r()}t("}");const s=e.get("source");return CZ(s)&&(t(" from "),n(s)),t(";"),void i.print.newline(wZ(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!kZ(e)&&(!(e=>vZ(e.get("declaration")))(e)&&(!!AZ(e)||TZ(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();NZ(r)&&n(),t.newline(),EZ(e)}};var LZ={ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()}},DZ={};const{isNext:FZ}=GU,{markAfter:MZ}=xq;DZ.WhileStatement={print(e,{print:t,indent:n}){n(),t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>FZ(e),after(e,{print:t}){t.linebreak(),MZ(e)}};var BZ={};const{isNext:RZ,exists:jZ,isLast:UZ}=GU,{parseLeadingComments:qZ}=gq;BZ.SwitchStatement={print(e,t,n){const{print:r,maybe:i,indent:s,write:a,traverse:o}=t;s(),r("switch"),r("("),r("__discriminant"),r(") {"),r.newline();const u=e.get("cases"),c=u.length-1;for(const[e,l]of u.entries()){const u=l.get("test");s(),qZ(l,t,n),jZ(u)?(a("case "),o(u)):a("default"),r(":");const p=l.get("consequent"),d=l.get("consequent.0")?.isBlockStatement();i.indent.inc(!d),i.print.newline(!d&&p.length);for(const e of p)e.isBlockStatement()?(r.space(),r(e)):r(e);i.indent.dec(!d),i.write.linebreak(e<c)}r.indent(),r("}"),RZ(e)||UZ(e)||r.newline()},afterSatisfy:()=>[RZ],after(e,{print:t}){t.breakline(),t.newline()}};var $Z={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")}},JZ={};const{types:VZ}=rn,{isNext:KZ}=GU,{isVariableDeclaration:WZ,isFunction:XZ}=VZ;JZ.ExportDefaultDeclaration={print(e,{print:t,traverse:n,maybe:r}){const i=e.get("declaration");t("export default "),n(i),r.print(function(e){return!e.isClassDeclaration()&&!e.isFunctionDeclaration()}(i),";")},afterSatisfy:()=>[KZ],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!WZ(t))return!1;const{declaration:n}=e.node;return XZ(n)}(e))}};var zZ={};const{isParentBlock:HZ,isNextParent:YZ,isInsideIf:GZ,isInsideLabel:QZ}=GU,ZZ=e=>e.parentPath.isSwitchCase();zZ.BreakStatement={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!QZ(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[HZ,YZ,ZZ,GZ]};var e0={};const{isLast:t0}=GU,n0=e=>!t0(e);e0.DoWhileStatement={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[n0],after(e,{print:t}){t.newline()}};var r0={};const{parseComments:i0}=gq,{getDirectives:s0}=cQ,{hasCoupleTrailingComments:a0}=GU;r0.Program=(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),i0(e,t,n);const o=s0(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&a0(r.at(-1))||a.endOfFile()};var o0={};const{isInsideLabel:u0}=GU;o0.ContinueStatement=(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!u0(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()};var c0={};const{isInsideLabel:l0}=GU;c0.LabeledStatement=(e,{print:t,maybe:n})=>{n.indent(!l0(e)),t("__label"),t(":"),t.space(),t("__body")};var p0={};const{isLast:d0}=GU;p0.EmptyStatement=(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!d0(e)&&!d0(r))};const{ExpressionStatement:h0}=yG,{VariableDeclaration:f0}=gG,{IfStatement:m0}=JG,{ForOfStatement:y0}=QG,{BlockStatement:g0}=aQ,{ReturnStatement:b0}=KQ,x0=tZ,{DebuggerStatement:S0}=rZ,{ForStatement:T0}=oZ,E0=bZ,v0=xZ,{ExportAllDeclaration:P0}=LZ,{WhileStatement:A0}=DZ,{SwitchStatement:C0}=BZ,{ForInStatement:w0}=$Z,{ExportDefaultDeclaration:k0}=JZ,{BreakStatement:I0}=zZ,{DoWhileStatement:_0}=e0,{Program:N0}=r0,{ContinueStatement:O0}=o0,{LabeledStatement:L0}=c0,{EmptyStatement:D0}=p0,{ExportNamespaceSpecifier:F0,ExportSpecifier:M0}=v0;var B0={...E0,...v0,BlockStatement:g0,DoWhileStatement:_0,ExpressionStatement:h0,ExportSpecifier:M0,ExportNamespaceSpecifier:F0,ExportDefaultDeclaration:k0,ExportAllDeclaration:P0,VariableDeclaration:f0,IfStatement:m0,ForStatement:T0,ForInStatement:w0,ForOfStatement:y0,ReturnStatement:b0,DebuggerStatement:S0,LabeledStatement:L0,Program:N0,EmptyStatement:D0,InterpreterDirective(e,{print:t}){t(`#!${e.node.value}\n`),t.newline()},SwitchStatement:C0,...x0,BreakStatement:I0,ContinueStatement:O0,WhileStatement:A0},R0={TemplateLiteral:(e,{write:t,traverse:n})=>{t("`");let r=0;const i=e.get("expressions");for(const s of e.node.quasis){t(s.value.raw);const e=i[r++];e&&(t("${"),n(e),t("}"))}t("`")}},j0={},U0={maybeDecorators:e=>e.node.decorators?e.get("decorators"):[]};const{maybeDecorators:q0}=U0,{maybeParens:$0}=$$,{maybeTypeAnnotation:J0}=EK;j0.Identifier=$0(J0((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of q0(e))i(t),s(" ");n(o),r.write(u,"?")}));var V0={exports:{}};!function(e){const{types:t}=rn,{isMemberExpression:n}=t;e.exports.Decorator=(e,{print:t,maybe:r})=>{const{expression:i}=e.node,s=n(i);t("@"),r.print(s,"("),t("__expression"),r.print(s,")")},e.exports.Decorator.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()}}(V0);var K0=V0.exports;K0.default;var W0={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(X0(s,n)),t.quote()}};const X0=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?z0(r,{slash:"\\",quote:"'"}):t?z0(r,{slash:"\\",quote:'"'}):e},z0=(e,{slash:t,quote:n})=>{const r=[];for(const[i,s]of e.entries()){const a=e[i-1];s!==n||a===t?r.push(s):r.push(`${t}${s}`)}return r.join("")};var H0={DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()}},Y0={VoidPattern:(e,{write:t})=>{t("void")}};const{TemplateLiteral:G0}=R0,{Identifier:Q0}=j0,{Decorator:Z0}=K0,{StringLiteral:e1}=W0,{DirectiveLiteral:t1}=H0,{VoidPattern:n1}=Y0;var r1={Identifier:Q0,Decorator:Z0,DirectiveLiteral:t1,TemplateLiteral:G0,VoidPattern:n1,BigIntLiteral(e,{write:t}){t(e.node.raw)},NumericLiteral(e,{write:t}){const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},Directive(e,{print:t,maybe:n}){n.print.breakline(e.node.leadingComments?.length),t("__value")},BooleanLiteral(e,{write:t}){t(e.node.value)},StringLiteral:e1,RegExpLiteral(e,{print:t}){const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},NullLiteral(e,{write:t}){t("null")},MetaProperty(e,{write:t}){t("import.meta")},Super(e,{write:t}){t("super")}},i1={};i1.TSTypeLiteral=(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const t=e.get("members");return(1!==t.length||!e.parentPath.isTSTypeParameterInstantiation())&&(t.length&&t[0].node.typeAnnotation)}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")};var s1={};const{isLast:a1,isNext:o1,isNextParent:u1}=GU,{markAfter:c1}=xq,{maybeDeclare:l1}=oV;s1.TSTypeAliasDeclaration={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:l1((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(a1(e)||a1(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!o1(e)&&!u1(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),c1(e)}};var p1={};const{types:d1}=rn,{isTSConditionalType:h1}=d1;p1.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(!h1(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")};var f1={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()}},m1={};const{exists:y1}=GU;m1.TSTypeParameter=(e,{write:t,traverse:n})=>{const r=e.get("constraint");if(e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),!y1(r))return;t(" extends "),n(r);const i=e.get("default");y1(i)&&(t.space(),t("="),t.space(),n(i))};var g1={};const{printParams:b1}=yq,{isNext:x1}=GU,{maybeDeclare:S1}=oV,T1=e=>e.parentPath.isExportNamedDeclaration();g1.TSDeclareFunction={beforeIf:e=>!T1(e),before:(e,{indent:t})=>{t()},print:S1((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),b1(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(x1(e)||x1(e.parentPath)||T1(e))&&t.newline()}};var E1={};const{printParams:v1}=yq;E1.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"),v1(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()};var P1={};const{isNext:A1}=GU,{maybeDeclare:C1}=oV;P1.TSModuleDeclaration={print:C1((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:()=>[A1],after(e,{print:t}){t.newline(),t.newline()}},P1.TSModuleBlock=(e,{print:t,traverse:n,indent:r})=>{t("{"),t.breakline(),r.inc();for(const t of e.get("body"))n(t);r.dec(),t("}")};var w1={};const{types:k1}=rn,{isNext:I1,isNextParent:_1}=GU,{maybeDeclare:N1}=oV,{markAfter:O1}=xq,{isTSTypeAliasDeclaration:L1,isExportNamedDeclaration:D1,isTSModuleBlock:F1}=k1;w1.TSInterfaceDeclaration={print:N1((e,{print:t,maybe:n})=>{const{node:r}=e;if(n.indent(!D1(e.parentPath)),t("interface "),t("__id"),r.extends){t(" extends ");const r=e.get("extends"),i=r.length-1;for(const[e,s]of r.entries())t(s),n.print(e<i,", ")}t("__typeParameters"),t("__body")}),afterSatisfy:()=>[I1,_1],after(e,{print:t}){t.linebreak();const n=D1(e.parentPath);n&&(e=>F1(e.parentPath.parentPath))(e)&&O1(e),n||L1(e)||t.newline()}};var M1={};const{types:B1}=rn,{maybeParens:R1}=$$,{isVariableDeclarator:j1,isObjectExpression:U1}=B1;M1.TSAsExpression=R1((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!j1(e.parentPath)&&U1(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});var q1={};const{parseComments:$1}=gq;q1.TSInterfaceBody=(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(r.length),a.inc(),$1(e,t,n);for(const e of r)a(),i(e);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))};var J1={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())}}},V1={};const{maybePrintTypeAnnotation:K1}=EK,{hasTrailingComment:W1,isNext:X1}=GU,{printKey:z1}=yJ;V1.TSPropertySignature=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),z1(e,t),n.print(i,"?"),K1(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),X1(e)&&W1(e)&&r.newline()};var H1={},Y1={hasReturnType:e=>e.node.returnType,printReturnType:(e,{traverse:t})=>{t(e.get("returnType"))}};const{printParams:G1}=yq,{printReturnType:Q1}=Y1,{maybeParens:Z1}=$$;H1.TSFunctionType=Z1((e,t,n)=>{const{print:r}=t;G1(e,t,n),r.space(),r("=>"),r.space(),Q1(e,t)});var e2={};const{isNext:t2,isNextParent:n2,isLast:r2}=GU,{markAfter:i2}=xq;e2.TSEnumDeclaration={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:n,indent:r}){t("enum "),t("__id"),t(" "),t("{"),r.inc(),t.newline();for(const r of e.get("body.members"))n(r),t(","),t.newline();r.dec(),r(),t("}"),r2(e)||(t.newline(),i2(e))},afterSatisfy:()=>[t2,n2],after(e,{print:t}){t.linebreak()}};var s2={TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))}},a2={};a2.TSTupleType=(e,{write:t,traverse:n,indent:r,maybe:i})=>{const s=e.get("elementTypes");t("["),r.inc();const a=function(e){let t;for(const n of e){if(t&&n.type!==t)return!1;({type:t}=n)}return!0}(s);i.write.newline(a&&s.length);const o=s.length-1;for(const[e,t]of s.entries())i.indent(a),n(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);r.dec(),i.indent(a&&s.length),t("]")};var o2={TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")}},u2={};const{printParams:c2}=yq,{printReturnType:l2}=Y1;u2.TSConstructorType=(e,t,n)=>{const{print:r}=t;r("new"),r(" "),c2(e,t,n),r.space(),r("=>"),r.space(),l2(e,t)};var p2={};const{printReturnType:d2}=Y1,{printParams:h2}=yq;p2.TSCallSignatureDeclaration=(e,t,n)=>{const{print:r}=t;h2(e,t,n),r(":"),r.space(),d2(e,t),r(";"),r.newline()};var f2={};const{printParams:m2}=yq,{hasReturnType:y2,printReturnType:g2}=Y1;f2.TSConstructSignatureDeclaration=(e,t,n)=>{const{write:r}=t;r("new"),m2(e,t,n),y2(e)&&(r(":"),r.space(),g2(e,t)),r(";"),r.newline()};var b2={};const{printParams:x2}=yq,{printKind:S2}=xJ,{hasReturnType:T2,printReturnType:E2}=Y1,{printKey:v2}=yJ;b2.TSMethodSignature=(e,t,n)=>{const{write:r}=t;S2(e,t),v2(e,t),x2(e,t,n),T2(e)&&(r(":"),r.space(),E2(e,t)),r(";"),r.newline()};var P2={};const{maybeParens:A2}=$$;P2.TSUnionType=A2({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:n})=>{const r=e.get("types"),{length:i}=r;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=n?function(e,{traverse:t,write:n}){const r=e.length-1;for(const[i,s]of e.entries())t(s),i<r&&(n.space(),n("|"),n.space())}(r,t):function(e,{traverse:t,write:n,indent:r}){r.inc();for(const r of e)n.breakline(),n("|"),n.space(),t(r);r.dec()}(r,t)}});var C2={};const{createImportExpression:w2}=vY;C2.TSImportType=(e,t,n)=>{w2(e,t,n,{source:"argument"})};var k2={};const{isNext:I2}=GU;k2.TSExportAssignment={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[I2],after:(e,{print:t})=>{t.newline()}};var _2={TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")}},N2={};const{maybeParens:O2}=$$;N2.TSInferType=O2((e,{print:t})=>{t("infer "),t("__typeParameter")});var L2={exports:{}};!function(e){const{hasLeadingComment:t}=GU;e.exports.TSParameterProperty=(e,{print:n,maybe:r,indent:i})=>{const{decorators:s,readonly:a,accessibility:o}=e.node,u=s?.length>1;if(r.print.breakline(u),s){for(const t of e.get("decorators"))r.indent(u),n(t);r.print.breakline(u),t(e)?n(" "):i()}o&&(n(o),n.space()),a&&(n("readonly"),n.space()),n("__parameter"),t(e)&&!e.node.decorators&&n.breakline()},e.exports.TSParameterProperty.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{indent:i,print:s}=t;return e.node.decorators?(r(),void s.breakline()):e.parentPath.isClassMethod()?(i.inc(),s.breakline(),r(),s.breakline(),void i.dec()):void 0}}(L2);var D2=L2.exports;D2.default;var F2={};const{maybeParens:M2}=$$;F2.TSTypeQuery=M2((e,{print:t})=>{t("typeof "),t("__exprName")});var B2={TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")}};const{isNext:R2}=GU,{TSTypeLiteral:j2}=i1,{TSTypeAliasDeclaration:U2}=s1,{TSMappedType:q2}=p1,{TSConditionalType:$2}=f1,{TSTypeParameter:J2}=m1,{TSDeclareFunction:V2}=g1,{TSDeclareMethod:K2}=E1,{TSModuleDeclaration:W2,TSModuleBlock:X2}=P1,{TSInterfaceDeclaration:z2}=w1,{TSAsExpression:H2}=M1,{TSInterfaceBody:Y2}=q1,{TSIntersectionType:G2}=J1,{TSPropertySignature:Q2}=V1,{TSFunctionType:Z2}=H1,{printParams:e3}=yq,{TSEnumDeclaration:t3}=e2,{TSEnumMember:n3}=s2,{TSTupleType:r3}=a2,{TSNamedTupleMember:i3}=o2,{TSConstructorType:s3}=u2,{TSCallSignatureDeclaration:a3}=p2,{TSConstructSignatureDeclaration:o3}=f2,{TSMethodSignature:u3}=b2,{TSUnionType:c3}=P2,{maybePrintTypeAnnotation:l3}=EK,{TSImportType:p3}=C2,{TSExportAssignment:d3}=k2,{TSTypeReference:h3}=_2,{TSInferType:f3}=N2,{TSParameterProperty:m3}=D2,{TSTypeQuery:y3}=F2,{TSParenthesizedType:g3}=B2;var b3={TSAsExpression:H2,TSExportAssignment:d3,TSTypeLiteral:j2,TSTypeAliasDeclaration:U2,TSTypeParameter:J2,TSMappedType:q2,TSConditionalType:$2,TSDeclareFunction:V2,TSModuleDeclaration:W2,TSModuleBlock:X2,TSIntersectionType:G2,TSImportType:p3,TSUnionType:c3,TSTypeQuery:y3,TSBigIntKeyword(e,{write:t}){t("bigint")},TSNullKeyword(e,{write:t}){t("null")},TSSymbolKeyword(e,{write:t}){t("symbol")},TSNeverKeyword(e,{write:t}){t("never")},TSUnknownKeyword(e,{write:t}){t("unknown")},TSObjectKeyword(e,{write:t}){t("object")},TSLiteralType(e,{print:t}){t("__literal")},TSTupleType:r3,TSInferType:f3,TSRestType(e,{print:t}){t("..."),t("__typeAnnotation")},TSTypeParameterDeclaration(e,t,n){e3(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypeParameterInstantiation(e,t,n){e3(e,t,n,{braceOpen:"<",braceClose:">"})},TSArrayType(e,{print:t}){t("__elementType"),t("[]")},TSTypeReference:h3,TSTypeOperator(e,{write:t,print:n}){const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSInterfaceDeclaration:z2,TSInterfaceBody:Y2,TSTypeAssertion(e,{print:t}){t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSUndefinedKeyword(e,{write:t}){t("undefined")},TSBooleanKeyword(e,{write:t}){t("boolean")},TSSatisfiesExpression(e,{print:t}){t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSNumberKeyword(e,{write:t}){t("number")},TSIndexedAccessType(e,{print:t}){t("__objectType"),t("["),t("__indexType"),t("]")},TSStringKeyword(e,{write:t}){t("string")},TSInstantiationExpression(e,{print:t}){t("__expression"),t("__typeArguments")},TSAnyKeyword(e,{write:t}){t("any")},TSVoidKeyword(e,{write:t}){t("void")},TSQualifiedName(e,{print:t}){t("__left"),t("."),t("__right")},TSTypeAnnotation(e,{print:t}){t("__typeAnnotation")},TSParameterProperty:m3,TSConstructSignatureDeclaration:o3,TSIndexSignature(e,t){const{print:n}=t;n("["),n("__parameters.0"),n("]"),l3(e,t),n(";"),n.newline()},TSClassImplements(e,{print:t}){t("__expression"),t("__typeArguments")},TSInterfaceHeritage(e,{print:t}){t("__expression"),t("__typeArguments")},TSParenthesizedType:g3,TSPropertySignature:Q2,TSFunctionType:Z2,TSTypePredicate(e,{print:t}){t("__parameterName"),t(" is "),t("__typeAnnotation")},TSNonNullExpression(e,{print:t}){t("__expression"),t("!")},TSEnumDeclaration:t3,TSEnumMember:n3,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(R2(e))},TSExternalModuleReference(e,{print:t}){t("require("),t("__expression"),t(")")},TSDeclareMethod:K2,TSNamedTupleMember:i3,TSConstructorType:s3,TSMethodSignature:u3,TSCallSignatureDeclaration:a3,TSThisType(e,{print:t}){t("this")}},x3={};const{types:S3}=rn,{isJSXElement:T3}=S3;x3.JSXElement={condition:function(e){return!!e.parentPath.isReturnStatement()||(!!e.parentPath.isParenthesizedExpression()||(!!e.node.extra?.parenthesized||(!!e.parentPath.isArrowFunctionExpression()||e.parentPath.isVariableDeclarator())))},before(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node,s=i?.length;r.write.space(!s&&(({parentPath:e})=>e.isArrowFunctionExpression())(e)),n.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:n,maybe:r}){const i=function(e){const t=e.node.openingElement.attributes.length;if(t>2)return!1;const n=e.parentPath.isArrowFunctionExpression(),r=e.parentPath.isJSXElement(),i=e.parentPath.parentPath.isCallExpression();return r||n&&i}(e);r.indent.inc(i),t("__openingElement"),e.get("children").map(n),t("__closingElement"),r.indent.dec(i)},after(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node;T3(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};var E3={};const{isCoupleLines:v3}=GU;E3.JSXAttribute={condition:e=>v3(e.parentPath),before(e,{print:t,indent:n}){n.inc(),t.breakline()},print(e,{print:t,maybe:n}){const{value:r}=e.node;t("__name"),n.print(r,"="),t("__value")},after(e,{indent:t}){t.dec()}};var P3={};const{isCoupleLines:A3}=GU;P3.JSXOpeningElement={print(e,{print:t,maybe:n}){n.indent((({parentPath:e})=>{const t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment()||t.isLogicalExpression())})(e)),t("<"),t("__name");const r=A3(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);A3(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}};var C3={};C3.JSXFragment={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:n}){t("("),n.inc(),t.breakline()},print(e,{print:t,traverse:n}){t("__openingFragment"),e.get("children").map(n),t("__closingFragment")},after(e,{write:t,indent:n}){n.dec(),t.breakline(),t(")")}},C3.JSXOpeningFragment=(e,{write:t})=>{t("<>")},C3.JSXClosingFragment=(e,{write:t})=>{t("</>")};var w3={};const{isNext:k3}=GU;w3.JSXText=(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=k3(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))};const{JSXElement:I3}=x3,{JSXAttribute:_3}=E3,{isCoupleLines:N3}=GU,{JSXOpeningElement:O3}=P3,L3=C3,{JSXText:D3}=w3,{parseComments:F3}=gq;var M3={...L3,JSXElement:I3,JSXAttribute:_3,JSXOpeningElement:O3,JSXText:D3,JSXEmptyExpression(e,t,n){F3(e,t,n)},JSXExpressionContainer(e,{print:t}){t("{"),t("__expression"),t("}")},JSXIdentifier(e,{write:t}){t(e.node.name)},JSXMemberExpression(e,{print:t}){t("__object"),t("."),t("__property")},JSXSpreadAttribute(e,{print:t,maybe:n}){const r=N3(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXClosingElement(e,{print:t}){t("</"),t("__name"),t(">")}};var B3={...rG,...B0,...r1,...b3,...M3};B3.default;var R3={};const j3=e=>()=>e,{keys:U3}=Object;function q3(e,t,n){if(!n)return[`{{ ${e} }}`,t[e]];const r=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[r]||"";if(!r.includes("|"))return[e,i];const[s,a]=r.split("|"),o=n[a],u=t[s];return o?[e,o(u)]:[e,u]}const{satisfy:$3}=GU;const J3=e=>{const t=e?.()||[];return $3(t)},V3=(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):U3(t);for(const e of i){const[i,s]=q3(e,t,n),a=j3(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r},{types:K3}=rn,W3=e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:J3(n),beforeIf:J3(r),...e}},{isProgram:X3,isFile:z3,isStatement:H3,expressionStatement:Y3,program:G3,file:Q3}=K3;R3.maybeThrow=(e,t,n)=>{if(e)throw Error(V3(n,{path:t,type:t.type}))};const Z3=e=>H3(e)?e:Y3(e);R3.maybeFile=e=>z3(e)?e:Q3((e=>X3(e)?e:G3([Z3(e)]))(e)),R3.maybeVisitor=(e,t,n,r)=>"function"==typeof e?e(t,n,r):function(e,t,n,r){const{print:i,split:s,condition:a,before:o=s,beforeIf:u=a,after:c=s,afterIf:l=a}=W3(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 e4={},t4=t(J),n4=function(e){return(e=e.replace(i4,function(e){return" "+(e.toLowerCase()||e)})).trim().split(r4).join("_")},r4=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,i4=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const s4=t4,a4=n4,{codeFrameColumns:o4}=rn,{TYPES:u4}=zU,{stringify:c4}=JSON,{LOG:l4,LOG_ALL:p4,LOG_TOKENS:d4,LOG_TERM:h4,LOG_DEBUG:f4}={};function m4(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}e4.createDebug=e=>t=>{f4&&e.push({type:u4.DEBUG,value:`/*__${a4(t)}*/`})},e4.createLog=({newline:e="\n",store:t=m4()}={})=>({type:n,value:r})=>{if(d4)console.log(o4(c4({type:n,value:r}),{},{highlightCode:!0}));else if(p4)console.log(o4(r,{},{highlightCode:!0}));else{if(l4){if(r===e)return void console.log(o4(t(),{},{highlightCode:!0}));t(r)}h4&&s4.stdout.write(r)}};var y4={},g4={};const b4=e=>"boolean"==typeof e,x4={arrow:!0,sequence:!0,assign:!1,new:!0},S4={arrow:!0,sequence:!0,assign:!0,new:!0},T4={arrow:!1,sequence:!1,assign:!1,new:!1};g4.parseRoundBraces=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...x4,...e}:b4(e)&&e?S4:b4(e)&&!e?T4:x4;var t},g4.ROUND_BRACES_DISABLED=T4,g4.ROUND_BRACES_ENABLED=S4,g4.ROUND_BRACES_DEFAULTS=x4;var E4={parseQuotes:({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1}};const{parseRoundBraces:v4}=g4,{parseQuotes:P4}=E4;y4.parseOverrides=(e={})=>{const{format:t,semantics:n,visitors:r}=e,i=A4(t);return{format:i,semantics:C4(i,n),visitors:r}};const A4=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),C4=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...P4(e),...t,roundBraces:v4(t)}),w4=XU,k4=rn.traverse,{TYPES:I4}=zU,_4=B3,{maybeFile:N4,maybeVisitor:O4,maybeThrow:L4}=R3,{createDebug:D4,createLog:F4}=e4,{maybeMarkAfter:M4}=xq,{parseLeadingComments:B4,parseTrailingComments:R4}=gq,{parseOverrides:j4}=y4,U4=e=>e&&"object"==typeof e,{round:q4}=Math,{assign:$4,freeze:J4}=Object;function V4(e,t){let n="";for(++e;--e>0;)n+=t;return n}WU.tokenize=(e,t)=>{const{visitors:n,format:r,semantics:i}=j4(t),s=[],a=(e=>{const t=F4();return n=>{t(n),e.push(n)}})(s),o=D4(s),u=e=>{a({type:I4.TOKEN,value:e})},c=()=>{a({type:I4.INDENT,value:V4(x,r.indent)})},l=()=>{a({type:I4.NEWLINE,value:r.newline})},p=e=>e&&l(),d=()=>{l(),c()},h=e=>e&&d(),f=()=>{c(),l()},m=e=>e&&f(),y=(e,t)=>e&&u(t),g=()=>{a({type:I4.SPACE,value:r.space})},b=e=>e&&g();let x=0;$4(c,{inc:()=>++x,dec:()=>--x});const S=()=>{a({type:I4.QUOTE,value:r.quote})};$4(u,{indent:c,newline:l,linebreak:f,breakline:d,space:g,splitter:()=>{a({type:I4.SPLITTER,value:r.splitter})},quote:S,endOfFile:()=>{a({type:I4.END_OF_FILE,value:r.endOfFile})}}),$4(y,{newline:p,breakline:h,linebreak:m,space:b});const T={indent:e=>e&&c(),markAfter:M4,write:y,space:b};$4(T.indent,{inc:e=>e&&c.inc(),dec:e=>e&&c.dec()});const E=J4({indent:c,write:u,debug:o,traverse:P,maybe:T,quote:S,store:w4()}),v={..._4,...n};function P(e){const{type:t}=e,n=v[t];if(!e.node)return;const r=K4(e,{write:u,traverse:P});$4(r,u,{space:g,round:q4});const s={...E,print:r},a=(e,t)=>e&&r(t);$4(a,{newline:p,breakline:h,linebreak:m,space:b}),$4(s.maybe,{print:a}),L4(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const c=x;B4(e,s,i,{currentTraverse:n}),O4(n,e,s,i),R4(e,s,i,{currentTraverse:n}),L4(x!==c,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),o(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,P):k4(N4(e),{Program(e){P(e),e.stop()}}),s};const K4=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=W4(e,r);return U4(i)?t(i):n(i)},W4=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(U4(t),t);var X4={},z4={cook:e=>{const t=[];for(const{value:n}of e)t.push(n);return t}};const{cook:H4}=z4;X4.printTokens=e=>H4(e).join("");var Y4={},G4={},Q4=new RegExp(/(^[ \t]*\n)/,"gm");const Z4=function(e){return e.replace(Q4,"")},e5=e=>e.slice(0,e.indexOf("(")),t5=e=>e.includes("(")?`${e5(e)}(`:`${e}(`,n5=e=>"\n"===e.at(-1)?e:`${e}\n`,r5="__putout_processor_json",i5="__putout_processor_yaml",s5="__putout_processor_filesystem",a5="__putout_processor_ignore",o5=`${r5}(__object)`,u5=`${i5}(__object)`,c5=`${s5}(__object)`,l5=`${a5}(__array)`,p5=[r5,i5,s5,a5];G4.__json=o5,G4.__yaml=u5,G4.__filesystem=c5,G4.__ignore=l5,G4.__json_name=r5,G4.__yaml_name=i5,G4.__filesystem_name=s5,G4.__ignore_name=a5,G4.toJS=(e,t=o5)=>`${t5(t)}${e});\n`,G4.fromJS=(e,t=o5)=>{e=n5(e);const n=e5(t);e=e.slice(e.indexOf(n));const r=t5(t),i=e.length-3,s=e.slice(r.length,i);return n5(Z4(s))},G4.isJSON=e=>{for(const t of p5)if(!e.indexOf(t))return!0;return!1};const{types:d5}=rn,{isJSON:h5}=G4,{isCallExpression:f5,isIdentifier:m5}=d5;Y4.maybeJSON=(e,t)=>function(e){const{program:t}=e;if(!t)return!1;const{body:n}=e.program;if(!n.length)return!1;const{expression:r}=e.program.body[0];if(!f5(r))return!1;const{callee:i}=r;return!!m5(i)&&h5(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const{tokenize:y5}=WU,{printTokens:g5}=X4,{maybeJSON:b5}=Y4,{maybeVisitor:x5}=R3,S5=B3;KU.print=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=b5(e,t),r=y5(e,n);return g5(r)},KU.visitors=S5,KU.maybeVisitor=x5;var T5={};function E5(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function v5(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}const{generate:P5}=rn,A5=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&&!E5(n)&&(t[e]=v5(t[e+1]))}return t.join("\n")},C5={alignSpaces:!0};T5.print=(e,t)=>{const{source:n,alignSpaces:r}={...C5,...t};let{code:i}=P5(e,{...n&&{experimental_preserveFormat:!0,retainLines:!0}},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?A5(i):i};const w5=KU,k5=T5,{isArray:I5}=Array;var _5=(e,t={})=>{const[n="putout",r]=(i=t.printer,I5(i)?i:[i,{}]);var i;return"babel"===n?k5.print(e,{...t,...r}):w5.print(e,r)},N5={};const{types:O5}=rn,{isFunctionExpression:L5,objectMethod:D5}=O5,{assign:F5}=Object;function M5(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{types:B5}=rn,{classPrivateMethod:R5,classMethod:j5,privateName:U5,identifier:q5}=B5,{assign:$5}=Object;const J5=({type:e})=>"PrivateIdentifier"===e;const{types:V5}=rn,{identifier:K5}=V5;const{types:W5}=rn,{directive:X5,directiveLiteral:z5}=W5;const{assign:H5}=Object;var Y5={convertParenthesizedExpression:({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},G5={convertTSParenthesizedType:({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},Q5={convertNodeComments:e=>{const{comments:t}=e;if(t){delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0;for(const n of t){const t=e8(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=Z5(n),e[t].push(n)}}},convertProgramComments:e=>{for(const t of e)t.type=Z5(t);return e}};const Z5=({type:e})=>`Comment${e}`;function e8({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}const{convertProgramComments:t8}=Q5;var n8={convertPropertyDefinition:e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=r8(e))}e.node.type="ClassProperty"},convertTSInterfaceHeritage:e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){const{object:e,property:n}=t;t.type="TSQualifiedName",t.left=e,t.right=n,delete t.object,delete t.property,t=e}},convertPrivateIdentifier:e=>{e.replaceWith(r8(e.node))},convertTSAbstractMethodDefinition:e=>{const{node:t}=e,{generator:n,async:r,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:n,async:r,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)}};const r8=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{traverse:i8,types:s8}=rn,a8=e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&L5(i)&&(t.replaceWith(D5("method",n,i.params,i.body,e)),F5(t.node,{id:null,method:!0,generator:i.generator,loc:M5(n,i),async:i.async,type:"ObjectMethod"}))}},o8=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(J5(t)){const s=function(e){return U5(q5(e.name))}(t);return R5(e,s,n,r,i)}return j5(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),$5(e.node,{loc:s,expression:u,generator:c})},u8=e=>{e.node.type="ClassPrivateProperty"},c8=({node:e})=>{e.name&&(e.id=K5(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)},l8=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=z5(e.directive),i=X5(r);t.directives.push(i),n.remove()}}},p8=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)},d8=e=>{const{attributes:t=[]}=e.node;e.node.attributes=t},h8=e=>{const{attributes:t=[]}=e.node;H5(e.node,{attributes:t})},{convertParenthesizedExpression:f8}=Y5,{convertTSParenthesizedType:m8}=G5,{convertNodeComments:y8}=Q5,g8=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")},b8=e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:t8(t),tokens:n}},{convertTSInterfaceHeritage:x8,convertTSAbstractMethodDefinition:S8,convertPropertyDefinition:T8,convertPrivateIdentifier:E8}=n8,{isObjectExpression:v8,isExportDeclaration:P8}=s8,A8={convertParens:!0};function C8(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}N5.estreeToBabel=(e,t)=>{const n=b8(e),r={...A8,...t};return i8(n,{noScope:!0,ParenthesizedExpression:f8(r),TSParenthesizedType:m8(r),enter(e){const{node:t}=e,{type:n}=t;return n.endsWith("Literal")?(g8(t),C8(t)):"JSXText"===n?C8(t):"BlockStatement"===n||"Program"===n?l8(e):"Property"===n?function(e){e.type="ObjectProperty"}(t):"MethodDefinition"===n?o8(e):"FieldDefinition"===n?u8(e):"PrivateName"===n?c8(e):"ImportDeclaration"===n?d8(e):P8(e)?h8(e):"ChainExpression"===n?p8(e):"TSAbstractMethodDefinition"===n?S8(e):"TSInterfaceHeritage"===n?x8(e):"PropertyDefinition"===n?T8(e):"PrivateIdentifier"===n?E8(e):void 0},exit(e){const{node:t}=e;if(y8(t),v8(t))return a8(e.get("properties"))}}),n};var w8={},k8={exports:{}},I8=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 _8=I8;function N8(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function O8(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}k8.exports=_8(N8),k8.exports.strict=_8(O8),N8.proto=N8(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return N8(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return O8(this)},configurable:!0})});var L8=k8.exports;const D8=()=>{};var F8=t(Object.freeze({__proto__:null,default:D8}));var M8,B8,R8=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)}}}}),j8=t(R8);const U8=L8(()=>{const{Parser:e}=F8,t=(B8||(B8=1,M8=function(e){return e.extend(F8,F8,j8)}),M8),n=F8.default;return e.extend(n(),t)});w8.parse=function(e){const t=U8(),n={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},r=Array.from(t.tokenizer(e,n));return{...t.parse(e,n),tokens:r}};var q8={},$8=["importMeta","importAttributes","deprecatedImportAssert","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],J8={allowReturnOutsideFunction:!0,allowUndeclaredExports:!0,allowImportExportEverywhere:!0};const V8=L8,K8=$8,W8=J8,{assign:X8}=Object,z8=e=>!e.indexOf("// @flow"),H8=V8(()=>rn);function Y8({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}q8.parse=function(e,t){const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=z8(e),isRecovery:a,printer:o}=t,{parse:u}=H8(),c={sourceFileName:n,sourceType:"module",tokens:!0,...W8,errorRecovery:a,plugins:(l=[...K8,...Y8({isTS:r,isFlow:s,isJSX:i})],l.filter(Boolean))};var l;"babel"===o&&X8(c,{createParenthesizedExpressions:!0});const p=u(e,c);return p.program.extra.__putout_printer=o,p};var G8={};const Q8=L8(()=>F8);G8.parse=function(e){const{parse:t}=Q8();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})};var Z8={};const e6=L8(()=>F8);Z8.parse=function(e){const{parse:t}=e6();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})};var t6={};const n6=L8(()=>F8);t6.parse=e=>{const{Tenko:t}=n6(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n};var r6={};const i6=L8(()=>F8);r6.parse=function(e){return i6().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})};var s6=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const a6=s6;const o6=w8,u6=q8,c6=G8,l6=Z8,p6=t6,d6=r6,h6=(e,t,n,r)=>{const[i,...s]=r,[a,o]=a6(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]=a6(e,t,n);if(!r)return i}throw a},f6=["has already been declared"];function m6(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){return"babel"===t?u6.parse(e,{isTS:r,isJSX:i,isRecovery:s,printer:n}):"object"==typeof t?t.parse(e,{isJSX:i,isTS:r}):"espree"===t?c6.parse(e):"acorn"===t?o6.parse(e):"esprima"===t?l6.parse(e):"tenko"===t?p6.parse(e):"hermes"===t?d6.parse(e):function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(t).parse(e)}var y6={};const g6=s6;y6.tryThrowWithReason=(e,...t)=>{const[n,r]=g6(e,...t);if(n)throw n.reason="parse",n;return r};const{estreeToBabel:b6}=N5,x6=(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 h6(m6,e,f6,[s,a,o])},{tryThrowWithReason:S6}=y6,{assign:T6}=Object;var E6=(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}=v6({printer:r,parser:n,isTS:i,isJSX:s});return S6(a,e)};const v6=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&T6(s,{convertParens:!1});return b6(x6(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const{generate:P6}=rn;var A6=(e,t,n)=>P6(e,{comments:!1,...t},n),C6={exports:{}};function w6(e,t){t||(t={});var n,r,i,s=t.vargs||function(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}(e),a=[],o=new Map,u=t.maxAge>0&&t.maxAge<1/0?function(e){return r=setTimeout(function(){n?o.delete(e):a.splice(e,1)},t.maxAge)}:0,c=t.equals?t.equals:0,l=t.maxArgs,p=t.serializer;return 1!==e.length||t.equals||s?i=c?function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&c(arguments[i],a[r][i]););if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&arguments[i]===a[r][i];);if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:(i=function(t){var n;return p&&(t=p(t)),o.get(t)||(!u||u(t),o.set(t,n=e.call(this,t)),n)},n=1),i.clear=function(){r&&clearTimeout(r),o.clear(),a=[]},i.keys=function(){return n?[...o.keys()]:a.slice()},i.values=function(){return n?[...o.values()]:a.map(e=>e.val)},i}var k6=t(Object.freeze({__proto__:null,default:w6,nanomemoize:w6}));!function(e){const{types:t,template:n}=rn,{nanomemoize:r}=k6,i=$8,s={...J8,plugins:[...i,"typescript","jsx"]},{isExpressionStatement:a,isTSExternalModuleReference:o}=t,u=e=>a(e)||o(e)?e.expression:e;e.exports=r((e,t)=>{const r=n(e,{...s,...t});return(...e)=>{const t=r(...e);return u(t)}}),e.exports.ast=r((e,t)=>{const r=n.ast(e,{...s,...t});return u(r)}),e.exports.program=r((e,t)=>n.program(e,{...s,...t})),e.exports.program.ast=r((e,t)=>n.program.ast(e,{...s,...t})),e.exports.ast.fresh=(e,t)=>{const r=n.ast(e,{...s,...t});return u(r)},e.exports.extractExpression=u}(C6);var I6=C6.exports;I6.default;const _6=_5,N6=E6,O6=A6,L6=I6;VU.print=_6,VU.parse=N6,VU.generate=O6,VU.template=L6;var D6={mergeShebang:(e,t)=>e?`${e}\n${t}`:t,cutShebang:e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]}},F6={},M6={},B6={};function R6(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 j6=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,U6=function(e){return j6.exec(e).slice(1)};function q6(){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=R6(Y6(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function $6(e){var t=J6(e),n="/"===G6(e,-1);return(e=R6(Y6(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function J6(e){return"/"===e.charAt(0)}function V6(){return $6(Y6(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 K6(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=q6(e).substr(1),t=q6(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 W6(e){var t=U6(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function X6(e,t){var n=U6(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function z6(e){return U6(e)[3]}var H6={extname:z6,basename:X6,dirname:W6,sep:"/",delimiter:":",relative:K6,join:V6,isAbsolute:J6,normalize:$6,resolve:q6};function Y6(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 G6="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)},Q6=t(Object.freeze({__proto__:null,basename:X6,default:H6,delimiter:":",dirname:W6,extname:z6,isAbsolute:J6,join:V6,normalize:$6,relative:K6,resolve:q6,sep:"/"}));var Z6={simpleImport:async e=>{const t=await import(e);return t.default||t}};const e9=t4,{join:t9}=Q6,n9=L8,{nanomemoize:r9}=k6,i9=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}},{simpleImport:s9}=Z6,{assign:a9}=Object;async function o9(e,t=s9){let n,r;for(const i of e){if([n,r]=await i9(t,i),!n)return r;if("ERR_UNSUPPORTED_DIR_IMPORT"===n.code){const e=require.resolve(i);if([n,r]=await i9(t,e),!n)return r}if("ERR_MODULE_NOT_FOUND"!==n.code)throw a9(n,{message:`${i}: ${n.message}`}),n}throw a9(n,{message:n.message.replace(/\simported.*/,"")}),n}B6.createAsyncLoader=e=>r9(async(t,n)=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await o9([require.resolve(e)],n)}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(c9),s=Array.from(new Set([...r,...i]));return await o9(s,n)});const u9=n9(()=>e9.env.PUTOUT_LOAD_DIR);function c9(e){const t=u9();if(!t)return[e];const n=t9(t,e);return[n,`${n}.js`]}var l9={},p9={};const d9=e=>"string"==typeof e,{isArray:h9}=Array,{entries:f9}=Object;p9.parsePluginNames=e=>{const t=[];for(const n of e)if(d9(n))t.push([n]);else{if(h9(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...f9(n))}return t};var m9={};const{isArray:y9}=Array,g9=e=>"boolean"==typeof e,b9=e=>"string"==typeof e,x9=e=>"object"==typeof e,{entries:S9}=Object,{stringify:T9}=JSON,E9=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),v9=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${T9(e)}`),P9=()=>Object.create(null),A9=(e,t)=>(function(e,t){if(g9(t))return!0;if(/^(on|off)$/.test(t))return!0;if(x9(t))return!0;throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})}(e,t),"on"===t||"off"!==t&&t);function C9(e,t){const[n]=t,r=A9(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}}m9.parseRules=e=>{const t=[];!function(e){if(y9(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of S9(e)){if(b9(r)){t.push({rule:n,state:A9(n,r),plugin:null,msg:"",options:P9()});continue}if(g9(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:P9()});continue}if(!(y9(r)&&r.length)){if(x9(r))throw v9(r);throw E9(r)}t.push(C9(n,r))}return t};const w9=e=>e.split("/")[0];m9.enableNestedRules=e=>{const t={};for(const[n,r]of S9(e))n.includes("/")&&A9(n,r)&&(t[w9(n)]="on"),t[n]=r;return t};var k9={};k9.mergeRules=([e,t],n)=>{for(const r of n){if(r.rule!==e)continue;const{msg:n,options:i}=r;return{rule:e,plugin:t,msg:n,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}};var I9={};const _9=e=>e.includes("/")?e.split("/").shift():e,N9=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-","");I9.validateRules=({items:e,rules:t})=>{const n=Object.keys(t);for(const t of n){let n=!1,r=!1,i=!1;for(const[s,a={}]of e){const e=N9(s);if(n=e===t,r=e===_9(t),i=t.includes(e),n&&a.rules)throw Error(`Rule '${t}' cannot be applied to nested plugin '${s}'`);if(n||r||i)break}if(!n&&!r&&!i)throw Error(`No plugin found for a rule: '${t}'`)}};var O9={isEnabled:(e,t)=>{for(const{rule:n,state:r}of t)if(n===e)return r;for(const{rule:n,state:r}of t)if(n.includes("/")&&RegExp(`^${n}`).test(e))return r;for(const{rule:n,state:r}of t)if(RegExp(`^${n}/`).test(e))return r;return!0}},L9={getLoadedRules:e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t}};const{parseRules:D9}=m9,{mergeRules:F9}=k9,{validateRules:M9}=I9,{isEnabled:B9}=O9,{getLoadedRules:R9}=L9;var j9={parseRules:D9,mergeRules:F9,validateRules:M9,isEnabled:B9,getLoadedRules:R9},U9={};U9.check=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},U9.checkRule=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)};const{parsePluginNames:q9}=p9,{validateRules:$9}=j9,{check:J9}=U9;l9.validateRulesRelations=e=>{J9(e);const{pluginNames:t=[],rules:n={}}=e,r=q9(t);$9({rules:n,items:r})};var V9={},K9={};const{parsePluginNames:W9}=p9,{enableNestedRules:X9}=m9,{parseRules:z9,getLoadedRules:H9}=j9;K9.prepareRules=({rules:e,pluginNames:t})=>{const n=X9(e),r=z9(n),i=H9(r);return{items:W9(t),loadedRules:i,cookedRules:z9(e)}};const Y9=["find","traverse","replace","include","exclude","rules","declare","scan"];var G9=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of Y9)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},Q9={};const{isEnabled:Z9,mergeRules:e7}=j9,{isArray:t7}=Array,n7=e=>t7(e)?e:["on",e];function r7(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}Q9.filterEnabledPlugins=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!Z9(r,t))continue;const[e,s]=n7(i);r7(r,e,t)&&n.push(e7([r,s],t))}return n};const{basename:i7}=Q6,{isEnabled:s7}=j9,{prepareRules:a7}=K9,o7=G9,{filterEnabledPlugins:u7}=Q9,{createAsyncLoader:c7}=B6,{check:l7,checkRule:p7}=U9,d7=c7("plugin");V9.loadPluginsAsync=async e=>{l7(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=a7({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!s7(i,t))continue;p7(i);const[e]=h7(i),a=s||d7(e);r.push(m7(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];o7({plugin:n,rule:t});const{rules:r}=n;r?s.push(...f7(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return u7({plugins:a,cookedRules:s})};const h7=e=>[e,"putout"];function f7(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function m7(e){if(e.startsWith("import:")){return i7(e.replace("import:","")).replace("plugin-","")}return e}var y7,g7={},b7={},x7=t(Object.freeze({__proto__:null,default:{}}));function S7(){if(y7)return b7;y7=1;const e=t4,{createRequire:t}=x7,{join:n}=Q6,r=s6,i=L8,{assign:s}=Object,a=e=>({name:t,namespace:n})=>{const[i,a]=function(e,t,n){if(n.startsWith("import:"))return l(n.replace("import:",""));let[r,i]=l(`@${e}/${t}-${n}`);r||([r,i]=l(`${e}-${t}-${n}`));r||([r,i]=l(n));return[r,i]}(n,e,t);if(!i)throw Error(`${o=e,`${o[0].toUpperCase()}${o.slice(1)}`} "${n}-${e}-${t}" could not be found!`);var o;const[u,c]=r(a,i);if("ERR_REQUIRE_ESM"===u?.code&&s(u,{message:`☝️ Looks like '${t}' is ESM, use 'await putoutAsync()' instead`,name:t}),u)throw u;return c};b7.loadPlugin=a("plugin"),b7.loadProcessor=a("processor");const{PUTOUT_YARN_PNP:o="putout"}={},u=i(()=>t(require.resolve(o))),c=i(()=>t(require.resolve("putout")));function l(e,{again:t=!1}={}){let i;const s=u(),a=c();return[,i]=r(a.resolve,e),i?[i,a]:([,i]=r(s.resolve,e),i||t?[i,s]:l(function(e){const t=p();return t?n(t,e):e}(e),{again:!0}))}const p=i(()=>e.env.PUTOUT_LOAD_DIR);return b7}const T7=G9,{prepareRules:E7}=K9,{isEnabled:v7}=j9,{filterEnabledPlugins:P7}=Q9,{check:A7,checkRule:C7}=U9,{isArray:w7}=Array;g7.loadPlugins=e=>{A7(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=E7({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!v7(r,t))continue;C7(r);const e=I7(r),[s,a]=k7(r),o=_7(i)||O7({name:s,namespace:a});T7({plugin:o,rule:r});const{rules:u}=o;u?n.push(...N7(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return P7({plugins:a,cookedRules:s})};const k7=e=>[e,"putout"],I7=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),_7=e=>w7(e)?e[1]:e;function N7(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function O7({name:e,namespace:t}){const{loadPlugin:n}=S7();return n({name:e,namespace:t})}var L7={};const D7=e=>"string"==typeof e,{isArray:F7}=Array,M7=e=>"on"===e,B7=e=>"off"===e;const{createAsyncLoader:R7}=B6,j7=e=>{const t=[];for(const n of e)if(D7(n))t.push([n]);else if(F7(n)){const[e,r]=n;if(B7(r))continue;if(M7(r)){t.push([e]);continue}t.push([e,r]);continue}return t},{check:U7}=U9;L7.loadProcessorsAsync=async(e,t)=>{U7(e);const{processors:n=[]}=e,r=j7(n),i=R7("processor"),s=[];for(const[e,n]of r)n?s.push(n):s.push(i(e,t));return await Promise.all(s)};const{createAsyncLoader:q7}=B6,{validateRulesRelations:$7}=l9,{loadPluginsAsync:J7}=V9,{loadPlugins:V7}=g7,{loadProcessorsAsync:K7}=L7;M6.loadPlugins=V7,M6.loadPluginsAsync=J7,M6.loadProcessorsAsync=K7,M6.createAsyncLoader=q7,M6.validateRulesRelations=$7;var W7,X7,z7={},H7={exports:{}};function Y7(){if(X7)return W7;X7=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,s=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return W7=function(o,u){u=u||{};var c=typeof o;if("string"===c&&o.length>0)return function(a){if((a=String(a)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!o)return;var u=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(o);if("number"===c&&isFinite(o))return u.long?function(i){var s=Math.abs(i);if(s>=r)return a(i,s,r,"day");if(s>=n)return a(i,s,n,"hour");if(s>=t)return a(i,s,t,"minute");if(s>=e)return a(i,s,e,"second");return i+" ms"}(o):function(i){var s=Math.abs(i);if(s>=r)return Math.round(i/r)+"d";if(s>=n)return Math.round(i/n)+"h";if(s>=t)return Math.round(i/t)+"m";if(s>=e)return Math.round(i/e)+"s";return i+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},W7}var G7=function(e){function t(e){let r,i,s,a=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];r=s.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=Y7(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&void 0!==$&&"env"in $&&(e=$.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=G7(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(H7,H7.exports);var Q7=H7.exports;Q7.default;var Z7={};const eee=Q7;Z7.createDebug=t=>{const n=eee(t);return new Proxy(n,{apply:(n,r,i)=>(e.__putout_debug?.(t,...i),n(...i)),get:(t,n)=>!!e.__putout_debug?.[n]||t[n]})};const tee=s6,{createDebug:nee}=Z7,{stringify:ree}=JSON,iee=nee("putout:runner:fix");var see=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(iee.enabled&&iee(`${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: '${ree(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]=tee(e,...(({path:e,pathOptions:t,options:n})=>t?[e,t,{options:n}]:[e,{options:n}])({path:t,pathOptions:n,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||r,s.reason="fix",s})(t,{path:n,pathOptions:r,position:s,options:a}))};var aee={};const oee=e=>e.path||e[0]||e;aee.getPath=oee,aee.getPosition=(e,t)=>{const n=oee(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:uee}=Array;var cee=e=>e?(e=>uee(e)?e:[e])(e):[],lee={};const{stringify:pee}=JSON;lee.validate=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${pee(t)}'. More on using Includer: https://git.io/JqcMn`)};var dee={};const{values:hee,entries:fee,assign:mee}=Object,yee=e=>Array.from(e),gee=e=>e.node,bee=e=>yee(e).filter(gee),xee=e=>e;function See({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=()=>fee(n),r}}function Tee(e=xee){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(yee(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(yee(n))},n}}dee.listStore=Tee(),dee.pathStore=Tee(bee),dee.mapStore=See({get:e=>hee(e),set(e,t,n){e[t]=n}}),dee.upStore=See({get:e=>hee(e),set(e,t,n){e[t]=e[t]||{},mee(e[t],n)}}),dee.upListStore=See({get:e=>hee(e).map(bee),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});const{traverse:Eee}=rn,{generate:vee}=VU,Pee=see,{getPosition:Aee}=aee,Cee=cee,{validate:wee}=lee,{listStore:kee,mapStore:Iee,upStore:_ee,upListStore:Nee,pathStore:Oee}=dee,{merge:Lee}=Eee.visitors,{assign:Dee}=Object,Fee=(e,t,n)=>{const r=[];return t[e]&&(wee(e,t[e]),r.push(...Cee(t[e]()))),n[e]&&r.push(...Cee(n[e])),r};var Mee=(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}=Bee(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:vee,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);Dee(c,{include:Fee("include",o,c),exclude:Fee("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:Lee(i)}};function Bee(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=Iee(),o=kee(),u=_ee(),c=kee(),l=Nee(),p=Oee();return{push:(a,o)=>{const u=Aee(a,r),l=i||e.report(a,o);c({message:l,position:u}),Pee(t,e.fix,{path:a,pathOptions:o,rule:n,position:u,options:s})},pull:()=>(a.clear(),o.clear(),u.clear(),l.clear(),p.clear(),c.clear()),store:a,listStore:o,upstore:u,uplist:l,pathStore:p}}const{traverse:Ree,types:jee}=rn,{generate:Uee}=VU,{merge:qee}=Ree.visitors;var $ee=function({rule:e,find:t,ast:n,options:r,template:i,traverse:s=Ree}){const a=[],o=t(n,{traverse:Jee({rule:e,options:r,template:i,traverse:s}),generate:Uee,types:jee,push:e=>{a.push(e)},options:r});return[...a,...o||[]]};const Jee=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=qee(n({rule:e,visitor:s,options:t}));return r(i,a)};var Vee={exports:{}},Kee={},Wee={};const Xee=e=>void 0===e;const zee=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),Hee=e=>/__proto__|prototype/.test(e);var Yee={};const Gee=/\.body\.0\.expression$/,Qee=/\.body\.0\.key$/,Zee=/\.body\.0$/;Yee.prepareBodyWay=e=>e.replace(Gee,"").replace(Qee,"").replace(Zee,"");var ete={};const{template:tte}=VU,{types:nte}=rn,{isBlockStatement:rte,isTSModuleBlock:ite,isBooleanLiteral:ste,isIdentifier:ate,isLiteral:ote,isTemplateElement:ute,isFunction:cte,isImportDefaultSpecifier:lte,isExportSpecifier:pte,isRegExpLiteral:dte,isJSXText:hte,isJSXIdentifier:fte,isJSXAttribute:mte,isTSTypeReference:yte,isTSTypeParameterDeclaration:gte}=nte,bte="__object",xte="__array",Ste="__args",Tte="__type_params",Ete="__imports",vte="__exports",Pte="__body",Ate="__jsx_children",Cte="__jsx_attributes",wte="__",kte="__identifier",Ite="__bool",_te=/^__[a-z]$/,Nte=/__args__[a-z]$/,Ote=/^__identifier__[a-z]$/,Lte=/^__bool__[a-z]$/,Dte=[bte,xte,Ste,Tte,Ite,Ate,Cte,Ete,vte,Pte,wte,kte,_te,Nte,Ote,Lte];function Fte(e,t){return"string"==typeof t?e===t:t.test(e)}ete.isTemplate=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),ete.is=(e,t=Dte)=>{for(const n of t)if(Fte(e,n))return!0;return!1},ete.isNameStr=e=>_te.test(e),ete.isImportsStr=e=>e===Ete,ete.isExportsStr=e=>e===vte,ete.isArgsStr=e=>e===Ste||Nte.test(e),ete.isTypeParamsStr=e=>e===Tte,ete.isJSXChildrenStr=e=>e===Ate,ete.isJSXAttributesStr=e=>e===Cte,ete.isObjectStr=e=>e===bte,ete.isArrayStr=e=>e===xte,ete.isAnyStr=e=>e===wte,ete.isBodyStr=e=>e===Pte;const Mte=e=>ate(e,{name:Pte}),Bte=(e,t)=>e.type===t.type,{isArray:Rte}=Array;ete.isId=(e,t)=>!!ate(t,{name:kte})&&ate(e),ete.isBool=(e,t)=>!!ate(t,{name:Ite})&&ste(e),ete.isEqualType=Bte,ete.isStr=e=>"string"==typeof e,ete.isAny=e=>!!ate(e,{name:wte})||hte(e,{value:wte}),ete.isAnyLiteral=(e,t)=>!!ote(t,{value:wte})&&Bte(e,t),ete.isArgs=e=>{const t=Rte(e)?e[0]:e;return ate(t,{name:Ste})};ete.isEqualTypeParams=(e,t)=>!!e&&(!!(e=>{if(!gte(e))return!1;const{params:t}=e,{name:n}=t[0];return ate(n,{name:Tte})})(t)&&Bte(e,t)),ete.isLinkedArgs=e=>{const t=Rte(e)?e[0]:e;return ate(t)&&Nte.test(t.name)},ete.isJSXChildren=e=>{const t=Rte(e)?e[0]:e;return hte(t,{value:Ate})},ete.isJSXAttributes=e=>{const t=Rte(e)?e[0]:e;return!!mte(t)&&fte(t.name,{name:Cte})},ete.isLinkedId=(e,t)=>!(!ate(t)||!Ote.test(t.name))&&ate(e),ete.isLinkedBool=(e,t)=>!(!ate(t)||!Lte.test(t.name))&&ste(e),ete.isLinkedRegExp=(e,t)=>!(!dte(t)||!_te.test(t.pattern))&&dte(e),ete.isPath=e=>Boolean(e.node),ete.isArray=Rte,ete.isObject=e=>!!e&&(!Rte(e)&&"object"==typeof e),ete.isArrays=(e,t)=>!(!Rte(e)||!Rte(t))&&e.length===t.length,ete.isImports=e=>{const t=Rte(e)?e[0]:e;return!!lte(t)&&ate(t.local,{name:Ete})},ete.isExports=e=>{const t=Rte(e)?e[0]:e;return!!pte(t)&&ate(t.local,{name:vte})};const jte="ObjectPattern|ObjectExpression",Ute="ArrayPattern|ArrayExpression";ete.isEqualAnyArray=(e,t)=>{if(!ate(t,{name:xte}))return!1;const{type:n}=e;return Ute.includes(n)},ete.isEqualAnyObject=(e,t)=>{if(!ate(t,{name:bte}))return!1;const{type:n}=e;return jte.includes(n)},ete.isEqualBody=(e,t)=>!!e&&(!!Mte(t)&&"BlockStatement"===e.type),ete.isEqualFunctionDeclarationBody=(e,t)=>{if(!e)return!1;if(!(Mte(n=t)||(rte(n)||ite(n))&&Mte(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},ete.isEqualNop=(e,t)=>{if(!ate(t,{name:"__nop"}))return!1;if(!cte(e))return!1;const{body:n}=e;return!!rte(n)&&!n.body.length},ete.isLinkedNode=e=>!(!ate(e)||!_te.test(e.name))||(!(!ote(e)||!_te.test(e.value))||(!(!hte(e)||!_te.test(e.value))||(!(!fte(e)||!_te.test(e.name))||(!(!ute(e)||!_te.test(e.value.raw))||yte(e)&&_te.test(e.typeName.name))))),ete.parseTemplate=(e,{program:t}={})=>{const n=(t?tte.program.ast:tte.ast)(e)||tte.ast.fresh(e);if(e===bte)return[n,jte];if(e===xte)return[n,Ute];const{type:r}=n;return[n,r]},ete.isInsideTypeReference=e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference(),ete.isInsideTypeParameter=e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter();const qte=(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(!Xee(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n},$te=(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(!Hee(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=zee(t)?[]:{}}r=r[n]}return i},{traverse:Jte,types:Vte}=rn,{template:Kte}=VU,{replaceWith:Wte,extract:Xte}=CW,{prepareBodyWay:zte}=Yee,{is:Hte,isArgsStr:Yte,isTypeParamsStr:Gte,isJSXChildrenStr:Qte,isJSXAttributesStr:Zte,isImportsStr:ene,isExportsStr:tne,isInsideTypeReference:nne,isInsideTypeParameter:rne,isBodyStr:ine}=ete,{isIdentifier:sne,isStatement:ane,isJSXElement:one,isJSXAttribute:une,isStringLiteral:cne,isTemplateLiteral:lne,templateElement:pne}=Vte,{extractExpression:dne}=Kte,{entries:hne}=Object,{stringify:fne}=JSON;function mne(e){if(sne(e)&&Hte(e.name))return{[e.name]:[""]};const t={};return Jte(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(nne(e))return;if(rne(e))return;const{node:n}=e;if(une(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=Xte(n);Hte(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 yne({waysFrom:e,node:t}){const n={};for(const[r,i]of hne(e))for(let e of i)ene(r)||tne(r)?e=e.replace(/\.0.local$/,""):(Yte(r)||Qte(r)||Zte(r)||Gte(r))&&(e=e.replace(/\.0$/,"")),one(t)||(e=e.replace(/\.expression$/,"")),ine(r)&&(e=zte(e)),n[r]=n[r]||dne(qte(e,t));return n}Wee.getTemplateValues=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${fne(t)}'`);e=(e=>e.node||e)(e);return yne({node:e,waysFrom:mne(Kte.ast(t))})},Wee.findVarsWays=mne,Wee.getValues=yne;const gne=e=>e.replace("`","\\`");Wee.setValues=function({waysTo:e,values:t,path:n}){const r=dne(n.node);for(const[i,s]of hne(e))for(let e of s){if(!e){Wte(n,t[i]);continue}if((ene(i)||tne(i))&&(e=e.replace(/\.0.local$/,"")),(Yte(i)||Qte(i)||Zte(i))&&(e=e.replace(/\.0$/,"")),ane(t[i])&&(e=e.replace(/\.expression$/,"")),cne(t[i])&&lne(r)){const{value:n}=t[i],s=pne({raw:gne(n)});$te(e,s,r);continue}ine(i)&&(e=zte(e));const{extra:s}=qte(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}$te(e,t[i],r)}};var bne={},xne={exports:{}};const Sne=Q7("putout:compare"),{isArray:Tne}=Array;function Ene(e){if(Tne(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}"`}xne.exports=(e,t)=>{if(!Sne.enabled)return;const n=Ene(e),r=Ene(t);return Sne(`${n} = ${r}`)},xne.exports._parseValue=Ene;var vne=xne.exports,Pne={exports:{}};const{types:Ane}=rn,{isIdentifier:Cne,isLiteral:wne,isStringLiteral:kne,isTemplateElement:Ine,isTSTypeReference:_ne,isJSXText:Nne,isJSXIdentifier:One}=Ane,Lne=e=>{e=e[0]||e;const{name:t,value:n}=e;if(Cne(e)||One(e))return t;if(wne(e))return n;if(Ine(e))return e.value.cooked;if(_ne(e))return e.typeName.name;if(Nne(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)};Pne.exports=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=Lne(t);return!(kne(t)&&!kne(n))&&(r[i]?(Cne(r[i])&&_ne(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))},Pne.exports._parseName=Lne;var Dne=Pne.exports,Fne={},Mne={};const{is:Bne}=ete;Mne.comparePrimitives=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||Bne(t)||t!==e);var n};const{types:Rne}=rn,{isObject:jne,isArrays:Une}=ete,{comparePrimitives:qne}=Mne,{isIdentifier:$ne}=Rne;Fne.comparePlain=(e,t,{add:n})=>!e&&e===t||!!e&&(!!qne(e,t)||(!(!$ne(e)||e.name!==t.name)||(jne(t)&&!Array.isArray(t)||!!Une(e,t))&&n(e,t,{plain:!0})));const{types:Jne}=rn,Vne=vne,Kne=Dne,{isId:Wne,isBool:Xne,isObject:zne,isArrays:Hne,isAny:Yne,isAnyLiteral:Gne,isArgs:Qne,isEqualTypeParams:Zne,isJSXChildren:ere,isJSXAttributes:tre,isLinkedArgs:nre,isLinkedId:rre,isLinkedBool:ire,isImports:sre,isExports:are,isEqualAnyObject:ore,isEqualAnyArray:ure,isEqualBody:cre,isEqualFunctionDeclarationBody:lre,isEqualNop:pre,isLinkedNode:dre,isLinkedRegExp:hre}=ete,{comparePlain:fre}=Fne,{comparePrimitives:mre}=Mne,{isClassBody:yre,isBlock:gre,isJSXText:bre,isTemplateElement:xre}=Jne,Sre=e=>(t,n)=>e(n),Tre=[mre,function(e,t){if(!xre(e)||!xre(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!(!bre(e)||!bre(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},Sre(yre),Sre(e=>gre(e)&&!e.body.length),Sre(Yne),Wne,Xne,ure,ore,cre,lre,pre,Zne,hre,function(e,t,{add:n,templateStore:r}){const i=e&&(dre(t)||nre(t)||rre(e,t)||ire(e,t));return!!i&&Kne({add:n,value:t,nodeValue:e,templateStore:r})},Gne,Sre(sre),Sre(are),Sre(Qne),Sre(ere),Sre(tre),function(e,t,{add:n}){const r=zne(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=Hne(e,t);r&&n(e,t);return r}];bne.runComparators=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=Tre.length;if(Vne(t,e),i)return fre(e,t,{add:n});for(;++s<a;){if((0,Tre[s])(e,t,{add:n,templateStore:r}))return!0}return!1};var Ere={};const{types:vre}=rn,{isEqualBody:Pre,isEqualAnyObject:Are,isEqualAnyArray:Cre,isLinkedNode:wre,isLinkedId:kre,isLinkedRegExp:Ire,isEqualNop:_re}=ete,{isIdentifier:Nre,isStringLiteral:Ore}=vre,Lre=[Are,Cre,_re,function(e,t){return Nre(e)&&wre(t)},function(e,t){return Ore(e)&&wre(t)},kre,Ire,Pre];Ere.runTopLevelComparators=(e,t)=>{let n=-1;const r=Lre.length;for(;++n<r;){if((0,Lre[n])(e,t))return!0}return!1};const{template:Dre}=VU,{findVarsWays:Fre,getValues:Mre,setValues:Bre,getTemplateValues:Rre}=Wee,{runComparators:jre}=bne,{runTopLevelComparators:Ure}=Ere,{isStr:qre,isId:$re,isPath:Jre,isEqualType:Vre,isTemplate:Kre,parseTemplate:Wre}=ete,{extractExpression:Xre}=Dre,{keys:zre}=Object,{isArray:Hre}=Array,Yre=()=>{},Gre=e=>Hre(e)&&!e.length,Qre=e=>Hre(e)?e:[e];function Zre(e){return qre(e)?Dre.ast(e):e.node?e.node:e}function eie(e,t,n={},r=Yre){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=Xre(Zre(e)),a=Xre(Zre(t));if(r(s,a),$re(s,a))return!0;if(s.type===t)return!0;if(Ure(s,a))return!0;if(i&&Jre(e)&&!Vre(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 nie(n,a)}return nie(s,a)}Kee.compare=eie,Kee.parseTemplate=Wre,Kee.isTemplate=Kre,Kee.findVarsWays=Fre,Kee.getValues=Mre,Kee.setValues=Bre,Kee.getTemplateValues=Rre,Kee.compareAny=(e,t,n)=>{t=Qre(t);for(const r of t)if(eie(e,r,n))return!0;return!1},Kee.compareAll=(e,t,n)=>{t=Qre(t);for(const r of t)if(!eie(e,r,n))return!1;return!0};const tie=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function nie(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||Gre(e)&&!Gre(t))return!1;for(const n of zre(t)){if(tie.includes(n))continue;const a=Xre(e[n]),o=Xre(t[n]);if(!jre(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const rie=s6,{compareAny:iie,compareAll:sie,parseTemplate:aie,isTemplate:oie}=Kee,uie=cee,{createDebug:cie}=Z7,lie=cie("putout:runner:template"),{entries:pie}=Object,die=e=>"function"==typeof e,hie=(e,t)=>{lie.enabled&&lie(e,t.toString())},{stringify:fie}=JSON;Vee.exports._log=hie;const mie=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!die(n)||!r.length)return{[t]:n};const i=yie({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};Vee.exports=({rule:e,visitor:t,options:n})=>{const r=[],i=uie(n.exclude),s=uie(n.include);for(const[n,a]of pie(t)){if(!n)continue;if(!oie(n)){r.push(mie({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=aie(n),u=yie({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r},Vee.exports._log=hie;const yie=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(hie(e,i),n.length&&iie(i,n))return;if(t.length&&!sie(i,t))return;if(!die(r))throw Error(`☝️ Looks like provided visitor is not a function: ${fie(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=rie(r,i);if(s)throw s.rule=e,s};var gie,bie=Vee.exports,xie={};function Sie(){}function Tie(){Tie.init.call(this)}function Eie(e){return void 0===e._maxListeners?Tie.defaultMaxListeners:e._maxListeners}function vie(e,t,n,r){var i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=new Sie,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=Eie(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=s[t]=n,++e._eventsCount;return e}function Pie(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 Aie(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 Cie(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}Sie.prototype=Object.create(null),Tie.EventEmitter=Tie,Tie.usingDomains=!1,Tie.prototype.domain=void 0,Tie.prototype._events=void 0,Tie.prototype._maxListeners=void 0,Tie.defaultMaxListeners=10,Tie.init=function(){this.domain=null,Tie.usingDomains&&(!gie.active||this instanceof gie.Domain||(this.domain=gie.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Sie,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Tie.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},Tie.prototype.getMaxListeners=function(){return Eie(this)},Tie.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=Cie(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=Cie(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=Cie(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=Cie(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=Cie(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},Tie.prototype.addListener=function(e,t){return vie(this,e,t,!1)},Tie.prototype.on=Tie.prototype.addListener,Tie.prototype.prependListener=function(e,t){return vie(this,e,t,!0)},Tie.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Pie(this,e,t)),this},Tie.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Pie(this,e,t)),this},Tie.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 Sie:(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 Sie,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},Tie.prototype.off=function(e,t){return this.removeListener(e,t)},Tie.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Sie,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new Sie: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 Sie,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},Tie.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):[]},Tie.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Aie.call(e,t)},Tie.prototype.listenerCount=Aie,Tie.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var wie=t(Object.freeze({__proto__:null,EventEmitter:Tie,default:Tie}));const{EventEmitter:kie}=wie;xie.createProgress=()=>{let e=0,t=0;const n=new kie;return n.reset=()=>{t=0,e=0},n.file=({i:e,n:t,percent:r,rule:i})=>{n.emit("file",{i:e,n:t,rule:i,percent:r})},n.inc=()=>{++e},n.start=r=>{++t,n.emit("start",{pluginsIndex:t,pluginsCount:e,rule:r})},n.push=r=>{n.emit("push",{pluginsIndex:t,pluginsCount:e,rule:r})},n.end=r=>{n.emit("end",{rule:r,pluginsIndex:t,pluginsCount:e})},n};var Iie={};const _ie=s6;Iie.tryThrowWithReason=(e,...t)=>{const[n,r]=_ie(e,...t);if(n)throw n.reason??="traverse",n;return r};var Nie={};const Oie=Q7("putout:runner:include"),Lie=cee,{validate:Die}=lee,Fie=()=>[],Mie=()=>!0;Nie.include=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=Fie,filter:u=Mie}=t;Die("include",a),Die("report",s);const c=Bie(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...Lie(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}};const Bie=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{Oie(e),t(i,{options:r})&&n(i)})({rule:n,filter:t,push:r,options:i});for(const t of e)s[t]=a;return s};var Rie={},jie={exports:{}};const Uie=e=>(...t)=>(...n)=>e(...t,...n);const{entries:qie}=Object,{isArray:$ie}=Array;function Jie(e,t){const{node:n}=e;let r,i;for([r,i]of qie(t)){if($ie(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const Vie=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?Uie(e)(...t):Uie(e)),{types:Kie}=rn,Wie=e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(Jie(t,t.parent));return n.join(".")},{isProgram:Xie}=Kie,zie="__putout_runner_replace";function Hie(e,t,n){const r=`${e} -> ${t}`;return{watermark:r,highWatermark:`${Wie(n)}: ${r}`}}function Yie({path:e,program:t}){e.node&&(e.node[zie]=e.node[zie]||new Set),t.node[zie]=t.node[zie]||new Set}function Gie({path:e,program:t,watermark:n,highWatermark:r}){Yie({path:e,program:t}),e?.node[zie].add(n),t.node[zie].add(r)}function Qie({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[zie].has(n)||e.findParent((e=>t=>t.node?.[zie]?.has(e))(n))&&!s)||t.node[zie].has(r)}jie.exports=(e,t,n)=>{const{watermark:r,highWatermark:i}=Hie(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(Xie),path:n};return{init:Vie(Yie,s),has:Vie(Qie,s),add:Vie(Gie,s)}},jie.exports.REPLACE_WATERMARK=zie,jie.exports.create=Hie,jie.exports.init=Yie,jie.exports.add=Gie,jie.exports.has=Qie;var Zie=jie.exports;const{template:ese,print:tse}=VU,{remove:nse,replaceWith:rse}=CW,{types:ise}=rn,{compare:sse,findVarsWays:ase,getValues:ose,setValues:use}=Kee,cse=cee,lse=Zie,{createDebug:pse}=Z7,dse=pse("putout:runner:replace"),hse=(e,t)=>{dse.enabled&&dse(`${e} -> ${t}\n`)},{isExpression:fse,isStatement:mse,isExpressionStatement:yse}=ise,gse={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:bse,entries:xse}=Object,{stringify:Sse}=JSON,Tse=()=>[],Ese=()=>({});Rie.replace=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||Ese)({options:r}),{report:s,exclude:a=Tse,replace:o,filter:u=Cse(i)}=t,c=o({options:r}),l=Ase(c,i),p=(d=c,()=>bse(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...cse(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},Rie.clearWatermark=e=>{delete e.program[lse.REPLACE_WATERMARK]};const vse=e=>"function"==typeof e,Pse=(e,t,n)=>{const r=ese.ast(e),i=lse(e,t,n);if(i.init(),i.has())return;const s=ase(r),a=((e,{node:t})=>e.type!==t.type&&yse(t)?t.expression:t)(r,n),o=ose({waysFrom:s,node:a}),u=function(e,t,n){const r=vse(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 ese.ast.fresh(r)}(t,o,n);if(!u)return hse(e,"''"),nse(n);!function(e,t,n){if(!fse(e))return;if(!mse(t)||yse(t))return;if(yse(n)||yse(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${tse(e,gse)} -> ${tse(t,gse)}'. For code: '${n}'`)}(r,u,n);const c=ase(u),l=rse(n,u);u.__putout_replace_cooked||(kse(c,s),use({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),hse(e,l)},Ase=(e,t)=>n=>{for(const[r,i]of xse(e)){const e=ese.ast(r);if(sse(n,e,{findUp:!1})){const s=t[r];s&&!wse(n,e,s)||Pse(r,i,n)}}},Cse=e=>t=>{const n=xse(e);for(const[e,r]of n){const n=ese.ast(e);if(sse(t.node,n,{findUp:!1}))return wse(t,n,r)}return!0};function wse(e,t,n){const r=ase(t),{node:i}=e,s=ose({waysFrom:r,node:i});return function(e){if(!vse(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const kse=(e,t)=>{for(const n of bse(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${Sse(bse(t))} -> ${Sse(bse(e))}`)};var Ise={},_se={},Nse={};const Ose="__putout_declare_undefined_variables",Lse=e=>e.scope.getProgramParent().path,Dse=(e,t)=>t[e]=t[e]||{};Nse.checkDeclarationForESLint=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose][e]},Nse.addDeclarationForESLint=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose][e]=!0},Nse.setModuleType=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose].__putout_module_type=e,e},Nse.getModuleType=e=>{const t=Lse(e);return Dse(Ose,t),t[Ose].__putout_module_type};const{template:Fse}=VU,{isESM:Mse,insertAfter:Bse}=CW,{compare:Rse}=Kee,{types:jse}=rn,{addDeclarationForESLint:Use,checkDeclarationForESLint:qse,getModuleType:$se,setModuleType:Jse}=Nse,{isImportDeclaration:Vse,isVariableDeclaration:Kse}=jse,{keys:Wse}=Object,Xse=e=>e.node.source.value.includes("."),zse=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"];_se.declare=e=>({report:Hse,include:Yse,fix:Qse(e),filter:Gse(e)});const Hse=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},Yse=()=>["ReferencedIdentifier"],Gse=e=>(t,{options:n})=>{if(zse.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=Wse(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)||qse(c,t))return!1;const l=function(e,t){if(t)return Jse(t,e);const n=$se(e);return n||Jse((e=>Mse(e)?"esm":"commonjs")(e),e)}(t,i);return Zse(l,s[c])},Qse=e=>(t,{options:n})=>{const r=$se(t),i={...e,...n.declarations},{name:s}=t.node,a=Zse(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=tae(t),r=(e=>e.filter(Kse).pop())(t);return Kse(e)&&n||(Vse(e)||eae(e))&&n?n:Kse(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(Kse(e)&&Vse(n)||eae(n))return Bse(n,e);if(Kse(e))return eae(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&Xse(n)?n.insertBefore(e):Bse(n,e):r.insertBefore(e)}(Fse.ast.fresh(a),o),Use(s,t)},Zse=(e,t)=>"string"==typeof t?t:t[e];const eae=e=>Rse(e,"const __a = require(__b)");const tae=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(Xse(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{declare:nae}=_se,{stringify:rae}=JSON;Ise.declare=({rule:e,plugin:t,msg:n,options:r})=>(function(e){if(t=e,"function"!=typeof t)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${rae(e)}'.`);var t}(t.declare),{rule:e,plugin:nae(t.declare()),msg:n,options:r});var iae={},sae={},aae={};const oae=XU(),{assign:uae}=Object,cae=()=>{},lae={renameFile:cae,removeFile:cae,createDirectory:cae,readFileContent:(pae="",()=>pae),writeFileContent:cae,copyFile:cae};var pae;const dae=uae({},lae);function hae(e){uae(dae,e)}function fae(){uae(dae,lae)}aae.renameFile=(e,t)=>{dae.renameFile(e,t)},aae.removeFile=e=>{dae.removeFile(e)},aae.copyFile=(e,t)=>{dae.copyFile(e,t)},aae.createDirectory=e=>{dae.createDirectory(e)},aae.readFileContent=e=>dae.readFileContent(e),aae.writeFileContent=(e,t)=>{dae.writeFileContent(e,t)},aae.init=hae,aae.pause=()=>{oae(dae),fae()},aae.start=()=>{hae(oae())},aae.deinit=fae;var mae={};const{types:yae}=rn,{arrayExpression:gae,stringLiteral:bae,objectProperty:xae}=yae;function Sae(e,t){const n=bae(e);return xae(n,t)}mae.createTypeProperty=e=>Sae("type",bae(e)),mae.createFilesProperty=e=>Sae("files",gae(e)),mae.createFilenameProperty=e=>Sae("filename",bae(e)),mae.createContentProperty=e=>Sae("content",bae(e));const{join:Tae,basename:Eae,dirname:vae}=Q6,{types:Pae}=rn,Aae=s6,{setLiteralValue:Cae,getProperty:wae,traverseProperties:kae}=CW,Iae=aae,{createTypeProperty:_ae,createFilesProperty:Nae,createFilenameProperty:Oae,createContentProperty:Lae}=mae,{isProgram:Dae,objectExpression:Fae}=Pae,Mae=e=>"string"==typeof e,{isArray:Bae}=Array,Rae=e=>{const[t,n]=Aae(btoa,e);return t?btoa(escape(e)):n},jae=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function Uae(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return Dae(t)?null:t}function qae({name:e,base:t,exclude:n}){for(const r of n)if(e===r||jae(r).test(t))return!0;return!1}function $ae(e,t,n=[]){!function(e){if(!Mae(e)&&!Bae(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=>Bae(e)?e:[e])(t);for(const t of kae(e,"filename")){const{value:e}=t.node.value,s=Eae(e);for(const a of i)if(e===a||jae(a).test(s)){const e=t.parentPath;if(qae({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function Jae(e){return wae(e,"filename").get("value")}function Vae(e){const{value:t}=Jae(e).node;return t}function Kae(e){return wae(e,"type").node.value.value}function Wae(e){const t=wae(e,"content");return[Boolean(t),t?.node.value.value]}function Xae(e){const t=Vae(e);Uae(e)&&(e.remove(),Iae.removeFile(t))}function zae(e,t){const n=Kae(e);if("directory"!==n){const t=Vae(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=wae(e,"files"),i=Tae(Vae(e),Eae(t)),[s]=$ae(r,i);s&&s.remove()}sae.getParentDirectory=Uae,sae.findFile=$ae,sae.getFileType=Kae,sae.getFileContent=Wae,sae.getFilename=Vae,sae.renameFile=(e,t)=>{const n=Vae(e),r=Jae(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);Cae(r,a),Iae.renameFile(n,a)},sae.removeFile=Xae,sae.removeEmptyDirectory=e=>{if("directory"!==Kae(e))return;let t=e;for(;!Yae(e).length;){if("/"===Vae(e))break;if(t=Uae(e),!t)break;Xae(e),e=t}},sae.moveFile=(e,t)=>{if(e===t)return;const n=Vae(t),r=Vae(e),i=Hae(t),s=wae(e,"filename"),a=r.split("/").pop(),o=Tae(n,a);zae(t,o),Cae(s.get("value"),o),i.node.value.elements.push(e.node),e.remove(),Iae.renameFile(r,o)},sae.copyFile=(e,t)=>{const n=Vae(t),r=Vae(e),i=r.split("/").pop(),s=Tae(n,i),[a,o]=Wae(e),u=Fae([_ae("file"),Oae(s),a&&Lae(o)].filter(Boolean));zae(t,s);Hae(t).node.value.elements.push(u),Iae.copyFile(r,s)},sae.createFile=(e,t,n)=>{zae(e,t);const r=Hae(e),i=Vae(e),s=Tae(i,t),a=[_ae("file"),Oae(s),n&&Lae(n)].filter(Boolean);r.node.value.elements.push(Fae(a));const o=r.get("value.elements").at(-1);return Mae(n)&&Qae(o,n),o};const Hae=e=>wae(e,"files");function Yae(e){return"directory"!==Kae(e)?[]:Hae(e).get("value.elements")}function Gae(e,t){const n=Hae(e),r=Vae(e),i=Tae(r,t),s=_ae("directory"),a=Nae([]),o=Oae(i);return n.node.value.elements.push(Fae([s,o,a])),Iae.createDirectory(i),n.get("value.elements").at(-1)}function Qae(e,t){if("directory"===Kae(e))return;const n=Vae(e);Iae.writeFileContent(n,t);const r=wae(e,"content");if(r)return void Cae(r.node.value,Rae(t));const i=Lae(Rae(t));e.node.properties.push(i)}function Zae(e){let t=Uae(e);if(!t)return e;let n=t;for(;t=Uae(t);)n=t;return n}sae.readDirectory=Yae,sae.createDirectory=Gae,sae.readFileContent=e=>{if("directory"===Kae(e))return"";const[t,n]=Wae(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=Aae(atob,e);return t?e:unescape(n)})(n);const r=Vae(e),i=Iae.readFileContent(r),s=Lae(Rae(i));return e.node.properties.push(s),i},sae.writeFileContent=Qae,sae.createNestedDirectory=(e,t)=>{const n=Zae(e);if(vae(t)===Vae(e))return Gae(e,Eae(t));let r=t;const i=Vae(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=vae(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=Tae(i,t);s.shift();break}let o=$ae(n,s).at(-1)||n;const u=Vae(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=Gae(o,Eae(s[l]))}return o},sae.getRootDirectory=Zae,sae.init=Iae.init,sae.deinit=Iae.deinit,sae.pause=Iae.pause,sae.start=Iae.start;var eoe={};const{basename:toe,dirname:noe}=Q6,{types:roe}=rn,{createDirectory:ioe,getFileType:soe,getFilename:aoe,findFile:ooe}=sae,{__filesystem_name:uoe}=G4,{replaceWith:coe,getProperty:loe}=CW,{objectExpression:poe,arrayExpression:doe,stringLiteral:hoe,isArrayExpression:foe,isStringLiteral:moe,isTemplateLiteral:yoe,objectProperty:goe}=roe;eoe.report=()=>"Convert Simple Filesystem to Filesystem";const boe=e=>e.endsWith("/"),xoe=e=>{const t=boe(e)?"directory":"file";return goe(hoe("type"),hoe(t))},Soe=e=>goe(hoe("filename"),hoe(e)),Toe=e=>boe(e)?goe(hoe("files"),doe([])):null,Eoe=e=>goe(hoe("content"),hoe(e));function voe(e,t){if(moe(e))return e.value;if(yoe(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}eoe.fix=e=>{const t=doe([]);for(const n of e.get("elements")){if(foe(n)){const[e,r]=n.node.elements,{value:i}=e,s=voe(r,n);t.elements.push(poe([xoe(i),Soe(i),Eoe(s)]));continue}if(moe(n)){const{value:e}=n.node;t.elements.push(poe([xoe(e),Soe(Poe(e)),Toe(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=ooe(t,"*");for(const e of r){const t=aoe(e);Aoe(t);const r=soe(e),i=noe(t),s=toe(t),[a]=ooe(n,i);if(!a||"directory"!==soe(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){ioe(a,s);continue}loe(a,"files").node.value.elements.push(e.node)}coe(e,n)}(e,t)},eoe.traverse=({push:e})=>({[`${uoe}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const Poe=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function Aoe(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var Coe={};const{types:woe}=rn,{replaceWith:koe,getProperty:Ioe}=CW,{__filesystem_name:_oe}=G4,{findFile:Noe,getFilename:Ooe,getFileType:Loe}=sae,{stringLiteral:Doe,arrayExpression:Foe}=woe,{isArray:Moe}=Array,Boe=e=>"/"===e?e:`${e}/`;Coe.report=()=>"Convert Filesystem to Simple Filesystem",Coe.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=Ooe(e),r=Loe(e),i=Ioe(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(Boe(t))}const r=[];for(const e of n)Moe(e)?r.push(Foe([Doe(e[0]),Doe(e[1])])):r.push(Doe(e));koe(e,Foe(r))},Coe.traverse=({push:e})=>({[`${_oe}(__object)`]:t=>{const n=t.get("arguments.0"),r=Noe(n,"*");e(n,{files:r})}});const Roe=XU,{compare:joe}=Kee,{__filesystem_name:Uoe}=G4,{findFile:qoe,pause:$oe,start:Joe}=sae,Voe=Q7("putout:runner:scanner"),Koe=eoe,Woe=Coe;iae.scan=({rule:e,plugin:t,msg:n,options:r},{progress:i})=>{const{scan:s,report:a,fix:o}=t;i.inc();return{rule:e,msg:n,options:r,plugin:{report:a,fix:o,traverse:zoe({scan:s,rule:e,progress:i})}}};const Xoe=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},zoe=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${Uoe}(__)`](s){Voe(t),n.start(t);const a=s.get("arguments.0"),o=Roe(!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=qoe(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);Yoe(Koe,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:Xoe({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),Yoe(Woe,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),Hoe=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function Yoe(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:Hoe({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${Uoe}(__object)`],n=e[`${Uoe}(__array)`];return t?[t,`${Uoe}(__object)`]:[n,`${Uoe}(__array)`]}(a);joe(t,u)&&($oe(),o(t),Joe())}const{traverse:Goe}=rn,Qoe=L8,Zoe=Q7("putout:runner:find"),eue=see,tue=Mee,nue=$ee,rue=bie,{createProgress:iue}=xie,{tryThrowWithReason:sue}=Iie,{include:aue}=Nie,{replace:oue,clearWatermark:uue}=Rie,{declare:cue}=Ise,{scan:lue}=iae,{getPath:pue,getPosition:due}=aee,hue=e=>e?.removed;z7.runPlugins=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=iue(),traverse:a=Goe})=>{let o=[];const u=Qoe(tue),{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(aue(oue(i))):e.declare?r.push(aue(cue(i))):e.include?r.push(aue(i)):e.scan&&r.push(lue(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=fue({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:rue,traverse:a}),s.reset(),!n||!o.length)return o;uue(e)}return o},z7.getPosition=due;const fue=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...yue({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...mue({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function mue({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});sue(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 yue({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){Zoe(`find: ${o}`);const{report:i,find:p}=u,d=sue(nue,{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}=pue(e),p=due(e,n);a.push({rule:o,message:r,position:p}),hue(s)||eue(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const gue=M6,bue=z7,{createProgress:xue}=xie;F6.defaultOptions=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=3,loadPlugins:s=gue.loadPlugins,loadPluginsAsync:a=gue.loadPluginsAsync,runPlugins:o=bue.runPlugins,progress:u=xue()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}};var Sue={};const Tue=e=>e.replace(/\s\(\d:\d+\)/,""),Eue=s6,{validateRulesRelations:vue}=M6,{defaultOptions:Pue}=F6,{cutShebang:Aue}=D6,Cue=(e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:Tue(e.message),position:{line:n,column:r}}]},wue=e=>e?Cue(e,"loader"):[];Sue.transform=(e,t,n)=>{n=Pue(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPlugins:u,runPlugins:c,progress:l}=n,[,p]=Aue(t),[d]=Eue(vue,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:u({pluginNames:r,cache:i,rules:s}),progress:l});return[...wue(d),...h]},Sue.transformAsync=async(e,t,n)=>{n=Pue(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPluginsAsync:u,runPlugins:c,progress:l}=n,[,p]=Aue(t),[d]=Eue(vue,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:await u({pluginNames:r,cache:i,rules:s}),progress:l});return[...wue(d),...h]};var kue={};const{transform:Iue,transformAsync:_ue}=Sue;kue.findPlaces=(e,t,n)=>Iue(e,t,{...n,fix:!1}),kue.findPlacesAsync=async(e,t,n)=>await _ue(e,t,{...n,fix:!1});const{isArray:Nue}=Array,Oue=()=>{};var Lue=()=>{let e=0,t=0;return async(n,r)=>{const{name:i,rule:s,source:a,places:o,index:u=0,count:c=1,trace:l=Oue,formatterOptions:p={}}=r;if(!Nue(o))throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof o}'`);return o.length&&++e,t+=o.length,l("progress",{rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t}),await n({rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t})}},Due={};const{types:Fue,traverse:Mue}=rn,{compare:Bue,parseTemplate:Rue,isTemplate:jue,getTemplateValues:Uue}=Kee,{isFile:que,isProgram:$ue}=Fue,{merge:Jue}=Mue.visitors,{entries:Vue}=Object;Due.traverse=Xue;const Kue=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!que(e)&&!$ue(e);return n=>{Mue(e,{noScope:t,...n})}},Wue=([e])=>e;function Xue(e,t){const n=Kue(e),r=[],i=Vue(t);if(!i.map(Wue).find(jue))return n(t);for(const[e,t]of i){if(!jue(e)){r.push({[e]:t});continue}const[n,i]=Rue(e),s=zue({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(Jue(r))}const zue=({fn:e,node:t,tmpl:n})=>r=>{Bue(r,t)&&e(r,Uue(r.node,n))};Due.contains=(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return Xue(e,i),n};var Hue={};const{setLiteralValue:Yue}=CW,{types:Gue}=rn,{isJSXElement:Que}=Gue;function Zue(e,t){let n=null;const r=e.node||e,{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}Hue.hasTagName=(e,t)=>{const n=e.node||e;return!!Que(e)&&n.openingElement.name.name===t},Hue.getAttributePath=(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},Hue.getAttributeNode=Zue,Hue.getAttributeValue=(e,t)=>{const n=Zue(e,t);return n?n.value.value:""},Hue.addAttributeValue=(e,t,n)=>{const r=Zue(e,t);r.value.value.includes(n)||Yue(r.value,`${r.value.value} ${n}`)},Hue.removeAttributeValue=(e,t,n)=>{if(!e)return;const r=Zue(e.node||e,t),{value:i}=r.value;i.includes(n)&&Yue(r.value,i.replace(RegExp(`\\s?${n}`),""))};var ece={_hasUFlag:!1,shouldRun:function(e){var t=e.flags.includes("s");return!!t&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var n="\\uFFFF",r="";this._hasUFlag&&(n="\\u{10FFFF}",r=""),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:n,kind:"unicode",symbol:r}}]})}}},tce={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},nce={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}},rce={dotAll:ece,namedCapturingGroups:tce,xFlag:nce};function ice(e){return e?sce[e.type](e):""}var sce={RegExp:function(e){return"/"+ice(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(ice).join("")},Disjunction:function(e){return ice(e.left)+"|"+ice(e.right)},Group:function(e){var t=ice(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=ice(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=ice(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(ice).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return ice(e.from)+"-"+ice(e.to)},Repetition:function(e){return""+ice(e.expression)+ice(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+"}"}},ace={generate:ice},oce={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},uce=mce(oce),cce={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"},lce=mce(cce),pce={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"},dce=mce(pce),hce={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"},fce=mce(hce);function mce(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 yce(e){return pce.hasOwnProperty(e)||dce.hasOwnProperty(e)}function gce(e){return hce.hasOwnProperty(e)||fce.hasOwnProperty(e)}var bce={isAlias:function(e){return uce.hasOwnProperty(e)||lce.hasOwnProperty(e)},isValidName:function(e){return oce.hasOwnProperty(e)||uce.hasOwnProperty(e)||cce.hasOwnProperty(e)||lce.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?yce(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&gce(t)},isGeneralCategoryValue:yce,isScriptCategoryValue:gce,isBinaryPropertyName:function(e){return cce.hasOwnProperty(e)||lce.hasOwnProperty(e)},getCanonicalName:function(e){return uce.hasOwnProperty(e)?uce[e]:lce.hasOwnProperty(e)?lce[e]:null},getCanonicalValue:function(e){return dce.hasOwnProperty(e)?dce[e]:fce.hasOwnProperty(e)?fce[e]:lce.hasOwnProperty(e)?lce[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:oce,NON_BINARY_ALIASES_TO_PROP_NAMES:uce,BINARY_PROP_NAMES_TO_ALIASES:cce,BINARY_ALIASES_TO_PROP_NAMES:lce,GENERAL_CATEGORY_VALUE_TO_ALIASES:pce,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:dce,SCRIPT_VALUE_TO_ALIASES:hce,SCRIPT_VALUE_ALIASES_TO_VALUE:fce},xce=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 Sce(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 Tce=void 0,Ece={},vce=void 0,Pce=void 0;function Ace(e,t){return Ece.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 Cce=[[-1,1,function(e,t){Pce=Ace(t,t),vce=e}],[0,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),vce=Yce({type:"RegExp",body:t,flags:Jce(r)},Gce(i,o||a))}],[1,1,function(e,t){Pce=Ace(t,t),vce=e}],[1,0,function(){Pce=null,vce=""}],[2,1,function(e,t){Pce=Ace(t,t),vce=e}],[2,2,function(e,t,n,r){Pce=Ace(n,r),vce=e+t}],[3,1,function(e,t){Pce=Ace(t,t),vce=e}],[4,1,function(e,t){Pce=Ace(t,t),vce=e}],[4,3,function(e,t,n,r,i,s){Pce=Ace(r,s);var a=null;i&&(a=Gce(r||i,s||i)),vce=Yce({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){Pce=Ace(t,t),vce=0!==e.length?1===e.length?Yce(e[0],Pce):Yce({type:"Alternative",expressions:e},Pce):null}],[6,0,function(){Pce=null,vce=[]}],[6,2,function(e,t,n,r){Pce=Ace(n,r),vce=e.concat(t)}],[7,1,function(e,t){Pce=Ace(t,t),vce=Yce(Object.assign({type:"Assertion"},e),Pce)}],[7,2,function(e,t,n,r){Pce=Ace(n,r),vce=e,t&&(vce=Yce({type:"Repetition",expression:e,quantifier:t},Pce))}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"^"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"$"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"\\b"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"simple",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),(vce=qce(e.slice(1),"simple",Pce)).escaped=!0}],[10,1,function(e,t){Pce=Ace(t,t),(vce=qce(e,"unicode",Pce)).isSurrogatePair=!0}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"unicode",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=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&&Uce.isGeneralCategoryValue(i),o=-1===r&&Uce.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!Uce.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!Uce.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return Yce({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:Uce.getCanonicalName(i)||i,canonicalValue:Uce.getCanonicalValue(s)||s},t)}(e,Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"control",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"hex",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"oct",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=Fce)return Yce({type:"Backreference",kind:"number",number:n,reference:n},t);return qce(e,"decimal",t)}(e,Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=function(e,t){var n=e.slice(3,-1),r=Hce(n);if(Mce.hasOwnProperty(r))return Yce({type:"Backreference",kind:"name",number:Mce[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=[qce(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(Vce))||(p=e.match(Kce))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(qce(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(qce(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){Pce=Ace(t,t),vce=e}],[11,0],[12,1,function(e,t){Pce=Ace(t,t),vce=e}],[12,2,function(e,t,n,r){Pce=Ace(n,r),e.greedy=!1,vce=e}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t);var n=Rce(e);vce=Yce({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:"Range",from:Rce(e)[0],greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t);var n=Rce(e);vce=Yce({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},Pce)}],[14,1,function(e,t){Pce=Ace(t,t),vce=e}],[14,1,function(e,t){Pce=Ace(t,t),vce=e}],[15,3,function(e,t,n,r,i,s){Pce=Ace(r,s);var a=String(e),o=Hce(a);if(!Ece.options.allowGroupNameDuplicates&&Mce.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');Mce[o]=e.groupNumber,vce=Yce({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},Pce)}],[15,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"Group",capturing:!0,number:e.groupNumber,expression:t},Pce)}],[16,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"Group",capturing:!1,expression:t},Pce)}],[17,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"CharacterClass",negative:!0,expressions:t},Pce)}],[17,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"CharacterClass",expressions:t},Pce)}],[18,0,function(){Pce=null,vce=[]}],[18,1,function(e,t){Pce=Ace(t,t),vce=e}],[19,1,function(e,t){Pce=Ace(t,t),vce=[e]}],[19,2,function(e,t,n,r){Pce=Ace(n,r),vce=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),jce(e,n),vce=[Yce({type:"ClassRange",from:e,to:n},Gce(i,a))],r&&(vce=vce.concat(r))}],[20,1,function(e,t){Pce=Ace(t,t),vce=e}],[20,2,function(e,t,n,r){Pce=Ace(n,r),vce=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),jce(e,n),vce=[Yce({type:"ClassRange",from:e,to:n},Gce(i,a))],r&&(vce=vce.concat(r))}],[21,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"simple",Pce)}],[21,1,function(e,t){Pce=Ace(t,t),vce=e}],[22,1,function(e,t){Pce=Ace(t,t),vce=e}],[22,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}]],wce={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"},kce=[{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"}],Ice=[],_ce=void 0,Nce=[[/^#[^\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 Xce(Tce.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&&"\\-"===Tce)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+Tce);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 Xce(Tce=Tce.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"}]],Oce={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]},Lce={type:"$",value:""};_ce={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(Lce);for(var e=this._string.slice(this._cursor),t=Oce[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=Nce[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(Tce=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,Sce(u))}return this.onToken(this._toToken(a,Tce))}}if(this.isEOF())return this._cursor++,Lce;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}},Ece.lexer=_ce,Ece.tokenizer=_ce,Ece.options={captureLocations:!0};var Dce={setOptions:function(e){return Ece.options=e,this},getOptions:function(){return Ece.options},parse:function(e,t){if(!_ce)throw new Error("Tokenizer instance wasn't specified.");_ce.initString(e);var n=Ece.options;t&&(Ece.options=Object.assign({},Ece.options,t)),Dce.onParseBegin(e,_ce,Ece.options),Ice.length=0,Ice.push(0);var r=_ce.getNextToken(),i=null;do{r||(Ece.options=n,Zce());var s=Ice[Ice.length-1],a=wce[r.type];kce[s].hasOwnProperty(a)||(Ece.options=n,Qce(r));var o=kce[s][a];if("s"===o[0]){var u=null;Ece.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),Ice.push({symbol:wce[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=_ce.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=Cce[c],p="function"==typeof l[2],d=p?[]:null,h=p&&Ece.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){Ice.pop();var m=Ice.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){Tce=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,Sce(g)),y.semanticValue=vce,h&&(y.loc=Pce)}var b=Ice[Ice.length-1],x=l[0];Ice.push(y,kce[b][x])}else if("acc"===o){Ice.pop();var S=Ice.pop();return(1!==Ice.length||0!==Ice[0]||_ce.hasMoreTokens())&&(Ece.options=n,Qce(r)),S.hasOwnProperty("semanticValue")?(Ece.options=n,Dce.onParseEnd(S.semanticValue),S.semanticValue):(Dce.onParseEnd(),Ece.options=n,!0)}}while(_ce.hasMoreTokens()||Ice.length>1)},setTokenizer:function(e){return _ce=e,Dce},getTokenizer:function(){return _ce},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},Fce=0,Mce={},Bce="";function Rce(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw new SyntaxError("Numbers out of order in "+e+" quantifier");return t}function jce(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")}Dce.onParseBegin=function(e,t){Bce=e,Fce=0,Mce={};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"))},Dce.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++Fce),e};var Uce=bce;function qce(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=xce(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 Yce({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var $ce="gimsuxy";function Jce(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)||!$ce.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 Vce=/^\\u[0-9a-fA-F]{4}/,Kce=/^\\u\{[0-9a-fA-F]{1,}\}/,Wce=/\\u\{[0-9a-fA-F]{1,}\}/;function Xce(e,t){if(Wce.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var zce=/\\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 Hce(e){return e.replace(new RegExp(zce,"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 Yce(e,t){return Ece.options.captureLocations&&(e.loc={source:Bce.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 Gce(e,t){return Ece.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function Qce(e){"$"===e.type&&Zce(),_ce.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function Zce(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var ele=Dce;ele.default;var tle=ele,nle=tle.parse.bind(tle);tle.parse=function(e,t){return nle(""+e,t)},tle.setOptions({captureLocations:!1});var rle=tle;rle.default;var ile=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 sle="expressions",ale="expression",ole=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 ile(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=sle),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=ale),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=sle),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]:sle;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,sle,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,ale):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,ule)===JSON.stringify(e.node,ule)}},{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:ule,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 ule(e,t){if("loc"!==e)return t}ole.initRegistry(),ole.traversingIndexStack=[];var cle=ole;cle.default;var lle=cle;var ple={traverse:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function r(e,t,n,r){var i=lle.getForNode(t);return lle.getForNode(e,i,n,r)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),lle.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pre,r=t.post,i=t.skipProperty;!function e(t,s,a,o){if(t&&"string"==typeof t.type){var u=void 0;if(n&&(u=n(t,s,a,o)),!1!==u)for(var c in s&&s[a]&&(t=isNaN(o)?s[a]:s[a][o]),t)if(t.hasOwnProperty(c)){if(i?i(c,t):"$"===c[0])continue;var l=t[c];if(Array.isArray(l)){var p=0;for(lle.traversingIndexStack.push(p);p<l.length;)e(l[p],t,c,p),p=lle.updateTraversingIndex(1);lle.traversingIndexStack.pop()}else e(l,t,c)}r&&r(t,s,a,o)}}(e,null)}(e,{pre:function(e,i,s,a){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if("function"==typeof h["*"])if(o){if(!o.isRemoved())if(!1===h["*"](o))return!1}else h["*"](e,i,s,a);var f=void 0;if("function"==typeof h[e.type]?f=h[e.type]:"object"==typeof h[e.type]&&"function"==typeof h[e.type].pre&&(f=h[e.type].pre),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}},post:function(e,i,s,a){if(e){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value,f=void 0;if("object"==typeof h[e.type]&&"function"==typeof h[e.type].post&&(f=h[e.type].post),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},skipProperty:function(e){return"loc"===e}})}},dle=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 hle=ace,fle=rle,mle=ple,yle=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=n}return dle(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=hle.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=hle.generate(this._ast)),this._string}}]),e}(),gle={TransformResult:yle,transform:function(e,t){var n=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(n=fle.parse(e,{captureLocations:!0})),mle.traverse(n,t),new yle(n)}},ble=rce,xle=gle,Sle={transform:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length>0?t:Object.keys(ble),r=void 0,i={};return n.forEach(function(t){if(!ble.hasOwnProperty(t))throw new Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(ble).join(", "));var n=ble[t];r=xle.transform(e,n),e=r.getAST(),"function"==typeof n.getExtra&&(i[t]=n.getExtra())}),r.setExtra(i),r}},Tle={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)}},Ele="A".codePointAt(0),vle="Z".codePointAt(0),Ple="a".codePointAt(0),Ale="z".codePointAt(0),Cle="0".codePointAt(0),wle="9".codePointAt(0),kle={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>=Cle&&t.codePoint<=wle&&n.codePoint>=Cle&&n.codePoint<=wle||t.codePoint>=Ele&&t.codePoint<=vle&&n.codePoint>=Ele&&n.codePoint<=vle||t.codePoint>=Ple&&t.codePoint<=Ale&&n.codePoint>=Ple&&n.codePoint<=Ale}(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 Ile="A".codePointAt(0),_le="Z".codePointAt(0),Nle={_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>=Ile&&t.codePoint<=_le&&n.codePoint>=Ile&&n.codePoint<=_le}(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 Ole={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))}},Lle=Ole.increaseQuantifierByOne,Dle={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=Mle(n.node.quantifier),i=r.from,s=r.to,a=Mle(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!Fle(n.node.quantifier)&&!Fle(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(Fle(n.node.quantifier)||Fle(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;Lle(t.quantifier),n.remove()}}}};function Fle(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function Mle(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 Ble={Quantifier:function(e){"Range"===e.node.kind&&(function(e){var t=e.node;if(0!==t.from||t.to)return;t.kind="*",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||t.to)return;t.kind="+",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||1!==t.to)return;e.parentPath.replace(e.parentPath.node.expression)}(e))}};function Rle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var jle={_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){$le(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&&Jle(r,383)?u=e.getChild(l):t&&n&&Jle(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<Ule.length||!Ule.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return $le(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return Ule.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var Ule=[function(e){return qle(e," ")}].concat(Rle(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return $le(t,e)}})),Rle([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return Jle(t,e)}})),[function(e){return"ClassRange"===e.type&&Jle(e.from,8192)&&Jle(e.to,8202)}]);function qle(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 $le(e,t){return qle(e,t,"meta")}function Jle(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var Vle={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||Kle(r)})}}};function Kle(e){return/[*[()+?$./{}|]/.test(e)}var Wle={_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=Xle(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(zle(i,"}"))return!0;if(zle(i,","))return zle(i=(r=r+(n=Xle(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=Xle(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&zle(i,"{"))return!0;if(zle(i,","))return i=(r=r-(n=Xle(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&zle(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 Xle(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 zle(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var Hle={_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){Qle(e)&&n.push(e.value)}),t.sort(Yle);for(var r=0;r<t.length;r++){var i=t[r];if(epe(i,n,this._hasIUFlags)||spe(i,t[r-1])||ape(i,t[r+1]))t.splice(r,1),r--;else{var s=upe(i,r,t);t.splice(r-s+1,s),r-=s}}}};function Yle(e,t){var n=Gle(e),r=Gle(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 Gle(e.to)-Gle(t.to);if(Qle(e)&&Qle(t)||Zle(e)&&Zle(t))return e.value<t.value?-1:1}return n-r}function Gle(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 Qle(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 Zle(e){return"Char"===e.type&&"control"===e.kind}function epe(e,t,n){for(var r=0;r<t.length;r++)if(tpe(e,t[r],n))return!0;return!1}function tpe(e,t,n){return"ClassRange"===e.type?tpe(e.from,t,n)&&tpe(e.to,t,n):!("\\S"!==t||!Qle(e,"\\w")&&!Qle(e,"\\d"))||(!("\\D"!==t||!Qle(e,"\\W")&&!Qle(e,"\\s"))||(!("\\w"!==t||!Qle(e,"\\d"))||(!("\\W"!==t||!Qle(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?npe(e):"\\S"===t?!npe(e):"\\d"===t?rpe(e):"\\D"===t?!rpe(e):"\\w"===t?ipe(e,n):"\\W"===t&&!ipe(e,n)))))}function npe(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 rpe(e){return e.codePoint>=48&&e.codePoint<=57}function ipe(e,t){return rpe(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function spe(e,t){if(t&&"ClassRange"===t.type){if(ope(e,t))return!0;if(cpe(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 ape(e,t){return!(!t||"ClassRange"!==t.type||!cpe(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function ope(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?ope(e.from,t)&&ope(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function upe(e,t,n){if(!cpe(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!cpe(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function cpe(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(ipe(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var lpe=cle,ppe=Ole.disjunctionToList,dpe=Ole.listToDisjunction,hpe={Disjunction:function(e){var t=e.node,n={},r=ppe(t).filter(function(e){var t=e?lpe.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(dpe(r))}},fpe={Disjunction:function(e){var t=e.node,n=e.parent;if(mpe[n.type]){var r=new Map;if(ype(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};mpe[n.type](e.getParent(),i)}}}},mpe={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 ype(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return ype(r,t)&&ype(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 ype(e,t)})}function gpe(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 bpe={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(gpe(n.expressions.slice(0,e.index)),gpe(r.node.expressions),gpe(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function xpe(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 Spe=cle,Tpe=Ole.increaseQuantifierByOne,Epe={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,vpe(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,Ppe(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,Ape(e,r,n)),n++}}};function vpe(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(r.expressions.slice(n-s,n)),[t.node])}),u=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(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 Ppe(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return Tpe(s.node.quantifier),i}}i++}return n}function Ape(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(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 Tpe(t.node.quantifier),n-a}}return n}var Cpe=new Map([["charSurrogatePairToSingleUnicode",Tle],["charCodeToSimpleChar",kle],["charCaseInsensitiveLowerCaseTransform",Nle],["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",Dle],["quantifierRangeToSymbol",Ble],["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",jle],["charClassToSingleChar",Vle],["charEscapeUnescape",Wle],["charClassClassrangesMerge",Hle],["disjunctionRemoveDuplicates",hpe],["groupSingleCharsToCharClass",fpe],["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",bpe],["combineRepeatingPatterns",Epe]]);Cpe.default;var wpe=function e(t){if(null===t||"object"!=typeof t)return t;var n=void 0;for(var r in n=Array.isArray(t)?[]:{},t)n[r]=e(t[r]);return n},kpe=rle,Ipe=gle,_pe=Cpe,Npe={optimize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.whitelist,r=void 0===n?[]:n,i=t.blacklist,s=void 0===i?[]:i,a=(r.length>0?r:Array.from(_pe.keys())).filter(function(e){return!s.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=kpe.parse(e));var u=new Ipe.TransformResult(o),c=void 0;do{c=u.toString(),o=wpe(u.getAST()),a.forEach(function(e){if(!_pe.has(e))throw new Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(_pe.keys()).join(", "));var t=_pe.get(e),n=Ipe.transform(o,t);n.toString()!==u.toString()&&(n.toString().length<=u.toString().length?u=n:o=wpe(u.getAST()))})}while(u.toString()!==c);return u}},Ope={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},Lpe=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")},Dpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Fpe=Ope.EPSILON,Mpe=Ope.EPSILON_CLOSURE,Bpe=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 Dpe(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!==Mpe&&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=Lpe(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][Fpe],e._transitionTable[t.number][Mpe]=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),Rpe=Bpe;Rpe.default;var jpe=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 Upe(e){return Array.isArray(e)?e:Array.from(e)}function qpe(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 $pe=null;function Jpe(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(qpe(r)).sort().join(",")!==[].concat(qpe(i)).sort().join(","))return!1}return!0}function Vpe(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(!Kpe(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 Kpe(e,t,n,r){if(!$pe[e]||!$pe[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||$pe[e].has(i)&&$pe[t].has(s)}var Wpe={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();$pe={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?$pe[e]=i:(s.add(e),$pe[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=Upe(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,v=!1,P=void 0;try{for(var A,C=Object.keys(d)[Symbol.iterator]();!(E=(A=C.next()).done);E=!0){var w=A.value;if(Vpe(T,w,t,r)){d[w].add(T),d[T]=d[w];continue e}}}catch(e){v=!0,P=e}finally{try{!E&&C.return&&C.return()}finally{if(v)throw P}}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}}$pe=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(qpe(k))),o=a[a.length-1],u=a[a.length-2]};!Jpe(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=jpe(S,2),E=T[0],v=T[1];d[v]={};var P=!0,A=!1,C=void 0;try{for(var w,k=r[Symbol.iterator]();!(P=(w=k.next()).done);P=!0){var I=w.value;f(E,v);var _=void 0,N=!0,O=!1,L=void 0;try{for(var D,F=E[Symbol.iterator]();!(N=(D=F.next()).done);N=!0){var M=D.value;if(_=t[M][I])break}}catch(e){O=!0,L=e}finally{try{!N&&F.return&&F.return()}finally{if(O)throw L}}_&&(d[v][I]=l.get($pe[_]))}}catch(e){A=!0,C=e}finally{try{!P&&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}},Xpe=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 zpe(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 Hpe=Wpe,Ype=Ope.EPSILON_CLOSURE,Gpe=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 Xpe(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,Hpe.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]][Ype]],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 v=!0,P=!1,A=void 0;try{for(var C,w=E[Symbol.iterator]();!(v=(C=w.next()).done);v=!0){var k=C.value;t[k]&&y.push.apply(y,zpe(t[k][Ype]))}}catch(e){P=!0,A=e}finally{try{!v&&w.return&&w.return()}finally{if(P)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(zpe(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}(),Qpe=Gpe;Qpe.default;var Zpe=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 ede=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 Zpe(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}(),tde=ede;tde.default;var nde=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 rde=tde,ide=Ope.EPSILON,sde=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,rde),nde(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(ide)[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(ide)[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(ide),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}(),ade=sde;ade.default;var ode=Rpe,ude=ade,cde=Ope.EPSILON;function lde(e){var t=new ude,n=new ude({accepting:!0});return new ode(t.addTransition(e,n),n)}function pde(e,t){return e.out.accepting=!1,t.out.accepting=!0,e.out.addTransition(cde,t.in),new ode(e.in,t.out)}function dde(e,t){var n=new ude,r=new ude;return n.addTransition(cde,e.in),n.addTransition(cde,t.in),r.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition(cde,r),t.out.addTransition(cde,r),new ode(n,r)}var hde={alt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=pde(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},char:lde,e:function(){return lde(cde)},or:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=dde(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},rep:function(e){return e.in.addTransition(cde,e.out),e.out.addTransition(cde,e.in),e},repExplicit:function(e){var t=new ude,n=new ude({accepting:!0});return t.addTransition(cde,e.in),t.addTransition(cde,n),e.out.accepting=!1,e.out.addTransition(cde,n),n.addTransition(cde,e.in),new ode(t,n)},plusRep:function(e){return e.out.addTransition(cde,e.in),e},questionRep:function(e){return e.in.addTransition(cde,e.out),e}};var fde=rle,mde=hde.alt,yde=hde.char,gde=hde.or,bde=hde.rep,xde=hde.plusRep,Sde=hde.questionRep;function Tde(e){if(e&&!Ede[e.type])throw new Error(e.type+" is not supported in NFA/DFA interpreter.");return e?Ede[e.type](e):""}var Ede={RegExp:function(e){if(""!==e.flags)throw new Error("NFA/DFA: Flags are not supported yet.");return Tde(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(Tde);return mde.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))},Disjunction:function(e){return gde(Tde(e.left),Tde(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return bde(Tde(e.expression));case"+":return xde(Tde(e.expression));case"?":return Sde(Tde(e.expression));default:throw new Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw new Error("NFA/DFA: Only simple chars are supported yet.");return yde(e.value)},Group:function(e){return Tde(e.expression)}},vde={build:function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=fde.parse(e,{captureLocations:!0})),Tde(t)}},Pde=Qpe,Ade=vde,Cde={NFA:Rpe,DFA:Pde,builders:hde,toNFA:function(e){return Ade.build(e)},toDFA:function(e){return new Pde(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},wde=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 kde=function(){function e(t,n){var r=n.flags,i=n.groups,s=n.source;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=i,this.flags=r,this.source=s||t.source,this.dotAll=r.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return wde(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var n in t.groups={},this._groups){var r=this._groups[n];t.groups[n]=t[r]}return t}}]),e}(),Ide=Sle,_de=ace,Nde=Npe,Ode=rle,Lde=gle,Dde=ple,Fde={RegExpTree:kde}.RegExpTree,Mde={parser:Ode,fa:Cde,TransformResult:Lde.TransformResult,parse:function(e,t){return Ode.parse(""+e,t)},traverse:function(e,t,n){return Dde.traverse(e,t,n)},transform:function(e,t){return Lde.transform(e,t)},generate:function(e){return _de.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).blacklist;return Nde.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(e,t){return Ide.transform(e,t)},exec:function(e,t){if("string"==typeof e){var n=this.compatTranspile(e),r=n.getExtra();e=r.namedCapturingGroups?new Fde(n.toRegExp(),{flags:n.getFlags(),source:n.getSource(),groups:r.namedCapturingGroups}):n.toRegExp()}return e.exec(t)}};const Bde=Mde,Rde=({type:e,kind:t})=>"Char"!==e||"simple"!==t;var jde=e=>{let t=!1;const n=Bde.parse(e);return"Alternative"===n.body.type&&(Bde.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(Rde))}}),!t)},Ude={};const qde=Mde;Ude.transformRegExp=(e,{report:t,traverse:n,fix:r})=>{const i=qde.parse(e,{captureLocations:!0}),s=[];return qde.traverse(i,n({push:e=>{const{start:n}=(e.path||e).node.loc;s.push({position:n,message:t(e)}),r(e)}})),[qde.generate(i),s]};const $de=jde,{transformRegExp:Jde}=Ude;var Vde={isSimpleRegExp:$de,transformRegExp:Jde},Kde={};const{compareAny:Wde}=Kee,{template:Xde}=VU,{types:zde}=rn,{isBlockStatement:Hde,isFunction:Yde,isLabeledStatement:Gde,isObjectPattern:Qde,isCallExpression:Zde,objectPattern:ehe,objectProperty:the}=zde,{entries:nhe}=Object,rhe=!0,ihe=e=>e.isCallExpression()||e.isStatement(),she=e=>Zde(e.find(ihe)),ahe=({name:e})=>`Argument '${e}' is missing`;Kde.addArgs=e=>({report:ahe,fix:ohe,traverse:uhe(e)});const ohe=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=Xde.ast.fresh(e);if(Hde(s)){const e=function(e){if(!Gde(e)){const{expression:t}=e;return the(t,t,!1,rhe)}const{label:t,body:n}=e;return the(t,n.expression,!1,rhe)}(s.body[0]);return n.properties.push(e),Qde(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},uhe=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of nhe(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!she(e))continue;const r=e.find(Yde);if(!r)continue;const{block:o}=r.scope;if(!Wde(e.scope.path,s))continue;if(Wde(e.scope.path,a))continue;const{params:u}=o,[c,l]=che(u);if(Qde(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:ehe([])})}}}};function che(e){for(const[t,n]of e.entries())if(Qde(n))return[t,n];return[-1,null]}var lhe={};const phe=["import","export"],dhe=["const","var","let"],hhe=["if"],fhe=["readonly","implements","declare","module","type"],mhe=["interface","static"],yhe=[...hhe,...dhe,...phe,...mhe,"async","break","continue","for","else","from","return","throw","of","while","class","extends","default"],ghe=[...yhe,"as","await","new","yield","typeof","function"];lhe.isKeyword=e=>ghe.includes(e),lhe.isDeclarationKeyword=e=>dhe.includes(e),lhe.isModuleDeclarationKeyword=e=>phe.includes(e),lhe.isConditionKeyword=e=>hhe.includes(e),lhe.isStatementKeyword=e=>yhe.includes(e),lhe.isTSKeyword=e=>{const t=fhe.includes(e),n=mhe.includes(e);return t||n};var bhe={};const{relative:xhe}=Q6,She=F8,The=e=>!e.indexOf("!"),Ehe=e=>e.replace(/^!/,"");var vhe=(e,t,n={})=>{const r=xhe(e,t),i=She(),s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(Ehe(n));The(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 Phe=Q6,{parse:Ahe,print:Che}=VU,{transform:whe}=Sue,{findPlaces:khe}=kue,Ihe=vhe,{toJS:_he,fromJS:Nhe}=G4,{readFileContent:Ohe,findFile:Lhe,writeFileContent:Dhe,getFilename:Fhe,createFile:Mhe,removeFile:Bhe,getParentDirectory:Rhe}=sae,{join:jhe}=Phe,Uhe=e=>e&&"object"==typeof e,{entries:qhe}=Object,$he=(e,{message:t})=>t;function Jhe(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){whe(s,i,a);const o=function(e,t){if(/\.json$/.test(e)){const e=Che(t);return Nhe(e)}return Che(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=jhe(Fhe(e),n),[s]=Lhe(e,i);return s||Mhe(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});Dhe(u,o),e!==u&&Bhe(e)}bhe.matchFiles=e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of qhe(e))if(!Uhe(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:Jhe,scan:Vhe({defaultFilename:t,files:n,exclude:r}),report:$he}};const Vhe=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=Fhe(r);a.filename=a.filename??n;for(const[n,i]of qhe(e)){const[e]=Whe(n,a),s=Lhe(r,e,t);for(const e of s){const t=Rhe(e),r=Fhe(e),[s,c=s]=Whe(n,{filename:r});Ihe(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=Ohe(a)||"{}",[d,h]=Khe(o,p),f=Xhe(o,l),m=khe(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 Khe(e,t){if(/\.json$/.test(e)){const e=_he(t);return[e,Ahe(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,Ahe(t,{isTS:!0})]}return[t,Ahe(t)]}function Whe(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=Phe.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function Xhe(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}var zhe={};const{join:Hhe}=Q6,{getParentDirectory:Yhe,getFilename:Ghe,readFileContent:Qhe,findFile:Zhe,renameFile:efe}=sae,{parse:tfe}=JSON;zhe.renameFiles=({type:e,mask:t,rename:n})=>({report:nfe,fix:rfe,scan:ife({type:e,mask:t,rename:n})});const nfe=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,rfe=(e,{to:t})=>{efe(e,t)},ife=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!sfe(e,a))continue;const t=Ghe(a);i(a,{from:t,to:n(t)})}};function sfe(e,t){const n=function(e){let t,n=Yhe(e);do{const e=Ghe(n);[t]=Zhe(n,Hhe(e,"package.json"))}while(!t&&(n=Yhe(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=Qhe(n);if(!r)return!1;return(tfe(r).type||"commonjs")===e}var afe={};const{types:ofe}=rn,{traverseProperties:ufe}=CW,{stringLiteral:cfe}=ofe,lfe=({value:e})=>e;afe.ignore=(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/\(|\)/);return{report:pfe(t),match:dfe({type:e,property:n,collector:i,list:r}),replace:hfe({type:e,property:n,collector:i,list:r})}};const pfe=e=>()=>`Add dotfiles to '${e}'`,dfe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=ffe(r,s);return{[e]:e=>{const r=mfe(e,{property:t,collector:n});if(!r)return!1;const i=r.map(lfe);for(const e of a)if(!i.includes(e))return!0;return!1}}},hfe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=ffe(r,s);return{[e]:(e,r)=>{const i=mfe(e,{property:t,collector:n}),s=i.map(lfe);for(const e of a)s.includes(e)||i.push(cfe(e));return r}}};function ffe(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function mfe(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=ufe(r,t);return i?i.node.value.elements:null}var yfe={};const{types:gfe}=rn,{parenthesizedExpression:bfe,tsParenthesizedType:xfe}=gfe;function Sfe(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function Tfe(e,t=Sfe(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}yfe.hasParens=Tfe,yfe.addParens=e=>{const t=Sfe(e);if(Tfe(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(xfe(n)):(e.replaceWith(bfe(n)),e)},yfe.removeParens=e=>{const t=Sfe(e);if(!Tfe(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e};const{codeFrameColumns:Efe}=rn;var vfe=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return Efe(e,{start:i},{highlightCode:n,message:r})};const{traverse:Pfe,types:Afe}=rn,{parse:Cfe,print:wfe,generate:kfe,template:Ife}=VU,{cutShebang:_fe,mergeShebang:Nfe}=D6,{defaultOptions:Ofe}=F6,{transform:Lfe,transformAsync:Dfe}=Sue,{findPlaces:Ffe,findPlacesAsync:Mfe}=kue;n.exports=Rfe;var Bfe=n.exports.putout=Rfe;function Rfe(e,t){eme(e),t=Ofe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=_fe(e),u=Cfe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=Lfe(u,e,t);if(!t.fix)return{code:e,places:c};const l=wfe(u,{printer:s,source:e});return{code:Nfe(o,l),places:c}}var jfe=n.exports.putoutAsync=async(e,t)=>{eme(e),t=Ofe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=_fe(e),u=Cfe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await Dfe(u,e,t);if(!t.fix)return{code:e,places:c};const l=wfe(u,{printer:s});return{code:Nfe(o,l),places:c}},Ufe=n.exports.transform=Lfe,qfe=n.exports.transformAsync=Dfe,$fe=n.exports.findPlaces=Ffe,Jfe=n.exports.findPlacesAsync=Mfe,Vfe=n.exports.parse=Cfe,Kfe=n.exports.print=wfe,Wfe=n.exports.traverse=Pfe,Xfe=n.exports.types=Afe,zfe=n.exports.template=Ife,Hfe=n.exports.generate=kfe,Yfe=n.exports.initReport=Lue,Gfe=n.exports.operator={...CW,...Kee,...Due,...G4,...Hue,..._se,...Vde,...Kde,...sae,...lhe,...bhe,...zhe,...afe,...yfe},Qfe=n.exports.ignores=vhe,Zfe=n.exports.codeframe=vfe;function eme(e){if(!(e=>"string"==typeof e)(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}var tme=n.exports;export{Zfe as codeframe,tme as default,$fe as findPlaces,Jfe as findPlacesAsync,Hfe as generate,Qfe as ignores,Yfe as initReport,Gfe as operator,Vfe as parse,Kfe as print,Bfe as putout,jfe as putoutAsync,zfe as template,Ufe as transform,qfe as transformAsync,Wfe as traverse,Xfe as types};
|
|
13
|
+
`;return this.replaceWith(c)[0].get("arguments.0")},matchesPattern:function(e,t){return Wj(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Kj(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()?Uj(e):!!this.isBlockStatement()&&qj(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()&&!Uj(this.container)&&Rj.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?Vj(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&(i.node.source.value===e&&(!t||(!(!r.isImportDefaultSpecifier()||"default"!==t)||(!(!r.isImportNamespaceSpecifier()||"*"!==t)||!(!r.isImportSpecifier()||!$j(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 Gj(this,e,new Map)},resolve:function(e,t){return Qj.call(this,e,t)||this},isConstantExpression:function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&(1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral())},isInStrictMode:function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0});return!!e},isDenylisted:function(){const e=this.opts.denylist??this.opts.blacklist;return e?.includes(this.node.type)},visit:function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip?.(this))return!1;const e=this.context;if(this.shouldSkip||wU.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return IU(this,e),this.debug("Recursing into..."),this.shouldStop=CU(this.node,this.opts,this.scope,this.state,this,this.skipKeys),IU(this,e),wU.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|gU},setContext:function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return _U.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;!Xo(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},remove:function(){$B.call(this),NU.call(this),jB.call(this)||(this.opts?.noScope||RB.call(this),this.shareCommentsWithSiblings(),UB.call(this)),qB.call(this)},insertBefore:function(e){$B.call(this);const t=lR.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||QB(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 sR.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(WB(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($B.call(this),this.isSequenceExpression())return oR(this.get("expressions")).insertAfter(e);const t=lR.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||QB(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>ZB(e)?HB(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 VB(r),e.replaceWith(XB(JB([],r),[])),e.get("callee.body").insertAfter(t),[e];if(uR(e))t.unshift(r);else if(GB(r)&&nR(r.callee))t.unshift(r),t.push(rR());else if(function(e,t){if(!YB(e)||!eR(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(zB(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(HB(KB("=",zB(e),r))),t.push(HB(zB(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return aR.call(this,t);if(this.isStatementOrBlock()){const e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(WB(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){$B.call(this);const n=lR.call(this,t),r=this.node[e],i=bU.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return sR.call(i,n)},pushContainer:function(e,t){$B.call(this);const n=lR.call(this,t),r=this.node[e];return bU.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 uU(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return bU.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?cU.call(this,e,t):lU.call(this,n,t)},getAssignmentIdentifiers:function(){return Zj(this.node)},getBindingIdentifiers:function(e){return eU(this.node,e)},getOuterBindingIdentifiers:function(e){return tU(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=eU.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",hU(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",hU(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){pU(this.node,e,t,n)},addComments:function(e,t){dU(this.node,e,t)}};Object.assign(bU.prototype,xU);for(const e of jc){const t=`is${e}`,n=sn[t];bU.prototype[t]=function(e){return n(this.node,e)},bU.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(bU.prototype,WD);for(const e of Object.keys(vD))"_"!==e[0]&&(jc.includes(e)||jc.push(e));var{VISITOR_KEYS:SU}=sn,TU=class{constructor(e,t,n,r){Vt(this,"queue",null),Vt(this,"priorityQueue",null),this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=SU[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 bU.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++,NU.call(i),0!==i.contexts.length&&i.contexts[i.contexts.length-1]===this||MU.call(i,this),null===i.key)continue;const{node:s}=i;if(!t.has(s)){if(s&&t.add(s),i.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<r;t++)FU.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:EU}=sn;function vU(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++,NU.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===e||MU.call(s,e),null===s.key)continue;const{node:a}=s;if(!n.has(a)){if(a&&n.add(a),PU(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=vU(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)FU.call(t[e]);return e.queue=null,r}function PU(e,t){const n=t.node;if(!n)return!1;const r=e.opts,i=r.denylist??r.blacklist;return!i?.includes(n.type)&&(!r.shouldSkip?.(t)&&(t.shouldSkip||kU.call(t,r.enter)||t.node&&kU.call(t,r[n.type]?.enter)?t.shouldStop:(t.shouldStop=AU(t.node,r,t.scope,e.state,t,t.skipKeys),!(!t.node||!kU.call(t,r.exit))||(t.node&&kU.call(t,r[n.type]?.exit),t.shouldStop))))}function AU(e,t,n,r,i,s,a){const o=EU[e.type];if(!o?.length)return!1;const u=new TU(n,t,r,i);if(a)return!s?.[i.parentKey]&&vU(u,[i]);for(const t of o){if(s?.[t])continue;const n=e[t];if(n)if(Array.isArray(n)){if(!n.length)continue;const r=[];for(let s=0;s<n.length;s++){const a=bU.get({parentPath:i,parent:e,container:n,key:s,listKey:t});r.push(a)}if(vU(u,r))return!0}else if(vU(u,[bU.get({parentPath:i,parent:e,container:e,key:t,listKey:null})]))return!0}return!1}function CU(e,t,n,r,i,s,a){return AU(e,t,n,r,i,s,a)}function wU(e){const t=this.opts;return this.debug(e),!(!this.node||!kU.call(this,t[e]))||!!this.node&&kU.call(this,t[this.node.type]?.[e])}function kU(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 IU(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function _U(){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 NU(){this.removed||(OU.call(this),DU.call(this),LU.call(this))}function OU(){this.parentPath&&(this.parent=this.parentPath.node)}function LU(){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 RU.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void RU.call(this,e);this.key=null}}function DU(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function FU(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function MU(e){this.contexts.push(e),this.setContext(e)}function BU(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,RU.call(this,r)}function RU(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type}function jU(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t}var{VISITOR_KEYS:UU,removeProperties:qU,traverseFast:$U}=sn;function JU(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.");UU[e.type]&&(eF(t),CU(e,t,n,r,i,null,s))}}JU.visitors=pF,JU.verify=tF,JU.explode=eF,JU.cheap=function(e,t){$U(e,t)},JU.node=function(e,t,n,r,i,s){CU(e,t,n,r,i,s)},JU.clearNode=function(e,t){qU(e,t)},JU.removeProperties=function(e,t){return $U(e,JU.clearNode,t),e},JU.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||$U(e,function(e){return n?.includes(e.type)?$U.skip:e.type===t?$U.stop:void 0}))},JU.cache=EF,rn.default;var VU={},KU={},WU={},XU=e=>{const t={value:e};return(...e)=>{const[n]=e;return e.length?(t.value=n,n):t.value}},zU={TYPES:{TOKEN:"Token",NEWLINE:"Newline",LINEBREAK:"Linebreak",SPLITTER:"Splitter",INDENT:"Indent",DEBUG:"Debug",SPACE:"Space",ROUND_BRACE_OPEN:"RoundBraceOpen",ROUND_BRACE_CLOSE:"RoundBraceClose",QUOTE:"Quote",END_OF_FILE:"EndOfFile"}},HU={},YU={},GU={};const{types:QU}=rn,{isStringLiteral:ZU,isIdentifier:eq,isIfStatement:tq,isStatement:nq,isForOfStatement:rq,isVariableDeclaration:iq,isMemberExpression:sq,isArrayExpression:aq,isObjectExpression:oq,isLabeledStatement:uq}=QU,cq=e=>e.parentPath?.isProgram(),lq=e=>{const t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},pq=e=>cq(e)&&!lq(e);function dq([e,t]){return ZU(e)&&eq(t)}GU.isNextObject=e=>e.getNextSibling().isObjectExpression(),GU.isPrevObject=e=>e.getPrevSibling().isObjectExpression(),GU.isFirst=e=>e.node===e.parentPath.node.body?.[0],GU.isPrevBody=e=>e.getPrevSibling().isBlockStatement(),GU.isNext=lq,GU.isPrev=e=>e.getPrevSibling().node,GU.isNextParent=e=>lq(e.parentPath),GU.isParentProgram=cq,GU.isParentBlock=e=>e.parentPath.isBlockStatement(),GU.isLast=pq,GU.isParentLast=e=>pq(e.parentPath),GU.isIndented=(e={})=>{const{parentPath:t,node:n}=e;return!t.node.loc||n.loc?.start.column!==t.node.loc.start.column},GU.isCoupleLines=function(e){const t=e.node?.loc?.start?.line,n=e.node?.loc?.end?.line;return n!==t},GU.exists=e=>e.node,GU.isStringAndIdentifier=dq;GU.isSimpleAndNotEmptyObject=e=>{const[t]=e;return!(t&&!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(t.type))&&(e=>{let t=e.at(-1);return oq(t)||(t=e.at(-2)),!!oq(t)&&t.node.properties.length})(e)},GU.isIdentifierAndIdentifier=([e,t])=>eq(e)&&eq(t),GU.isStringAndMember=([e,t])=>ZU(e)&&sq(t),GU.isIdentifierAndString=([e,t])=>eq(e)&&ZU(t),GU.isStringAndArray=([e,t])=>!!ZU(e)&&(!!aq(t)&&!dq(t.node.elements));const hq=e=>tq(e)||nq(e),fq=e=>rq(e)||nq(e);GU.isIf=e=>tq(e.find(hq)),GU.isForOf=e=>{const t=e.find(fq);return!!rq(t)||!!iq(t)&&rq(t.parentPath)},GU.isInsideIf=e=>e.parentPath?.isIfStatement(),GU.isNewlineBetweenSiblings=e=>{const t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},GU.isInsideLabel=({parentPath:e})=>uq(e),GU.satisfy=e=>t=>{for(const n of e)if(n(t))return!0;return!1};const mq=e=>e.node||e;GU.hasCoupleTrailingComments=e=>{const t=mq(e);return t?.trailingComments?.length>1},GU.hasTrailingComment=e=>{const t=mq(e);return t.trailingComments?.length},GU.hasLeadingComment=e=>e.node?.leadingComments?.length,GU.noTrailingComment=e=>!e.node.trailingComments?.length,GU.noLeadingComment=e=>!e.node.leadingComments?.length;var yq={},gq={},bq={},xq={};const Sq="__putout_newline_after";function Tq(e){e[Sq]=!0}function Eq(e){return e[Sq]}xq.markBefore=function(e){e.__putout_newline_before=!0},xq.markAfter=Tq,xq.maybeMarkAfter=(e,t)=>e&&Tq(t),xq.isMarkedAfter=Eq,xq.hasPrevNewline=e=>Eq(e.getPrevSibling());var vq={maybeInsideFn:(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())}},Pq={};const Aq=(e,t)=>()=>e(`//${t}`),Cq=(e,t)=>()=>e(`/*${t}*/\n`);Pq.hasTrailingCommentsPrinter=e=>{const{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||Boolean(n)},Pq.hasLeadingCommentsPrinter=e=>{const{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||Boolean(n)},Pq.printLeadingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:Cq(i,l)}):a?.(e,t,n,{index:r,printComment:Aq(i,l),isLast:r===u})},Pq.printTrailingComments=(e,t,n,{currentTraverse:r})=>{const{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=r,u=s.length-1;for(const[r,{type:c,value:l}]of s.entries())"CommentLine"!==c?"CommentBlock"===c&&o?.(e,t,n,{index:r,printComment:Cq(i,l)}):a?.(e,t,n,{index:r,printComment:Aq(i,l),isLast:r===u})};const{types:wq}=rn,{hasTrailingComment:kq,satisfy:Iq,isPrev:_q}=GU,{markBefore:Nq}=xq,{maybeInsideFn:Oq}=vq,{printLeadingComments:Lq,hasLeadingCommentsPrinter:Dq}=Pq,{isArrowFunctionExpression:Fq,isObjectProperty:Mq,isVariableDeclarator:Bq,isClassProperty:Rq,isTSPropertySignature:jq,isSpreadElement:Uq,isClassBody:qq,isBinaryExpression:$q,isClassMethod:Jq,isDecorator:Vq}=wq,Kq=Iq([Mq,Bq,Rq,jq,Uq]),Wq=e=>{const{parentPath:t}=e;return!(!Bq(t)||e!==t.get("init"))||!!Fq(t)&&Bq(t.parentPath)};function Xq(e){const{loc:t,leadingComments:n}=e.node;if(!Kq(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 zq=e=>{const{parentPath:t}=e;return e===t.get("properties")[0]||!(!qq(t)||!Rq(e))&&e===t.get("body")[0]};bq.parseLeadingComments=(e,t,n,{currentTraverse:r={}}={})=>{const{print:i,maybe:s,indent:a}=t;if(!n.comments)return;const{leadingComments:o}=e.node;if(!o?.length)return;if(Dq(r))return Lq(e,t,n,{currentTraverse:r});if((e=>e?.parentPath.node?.decorators)(e))return;const u=e.isSwitchCase();if(!u&&kq(e.getPrevSibling()))return;const c=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),l=Kq(e),p=zq(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}*/`),jq(e)&&!_q(e)&&i.breakline(),(e.isStatement()||e.isTSEnumMember()||n||t||a||u)&&(i.newline(),Nq(e),s.indent(t||a||u));continue}}else(t||!e.isClassProperty()&&!e.isBinaryExpression())&&s.indent(p),Oq(c,{print:i,indent:a}),Xq(e)?s.print.breakline(!zq(e)):s.print.space(l&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(l),s.print.newline(!l),Jq(e)?a():($q(e)||Vq(e))&&(a.inc(),a(),a.dec())):i.newline(),Wq(e)&&(a.inc(),a(),a.dec())};var Hq={},Yq={},Gq={};const{hasTrailingComment:Qq}=GU,{assign:Zq}=Object;function e$(e){const t=[];let n=e.get("object");for(;!n.isIdentifier();){const e=n.isCallExpression(),r=n$(n);if(e&&(n=n.get("callee")),t.unshift(r),!n.isMemberExpression())break;n=n.get("object")}return t}function t$(e){const t=[];for(;e.isMemberExpression()&&(Qq(e.get("object"))&&t.push({type:"CommentLine"}),(e=e.parentPath).isCallExpression()&&(t.push(n$(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}function n$(e){const t={type:e.type};return e.isCallExpression()&&Zq(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}Gq.chain=e=>{const t=[...e$(e),...t$(e)],n=t.slice(0,-1);return[t.at(-1),n]};const{types:r$}=rn,{chain:i$}=Gq,{satisfy:s$}=GU,{isUnaryExpression:a$,isIfStatement:o$,isCallExpression:u$,isIdentifier:c$}=r$,l$=e=>"CallExpression"===e.type,p$=s$([a$,o$]),d$=({type:e})=>"CommentLine"===e;Yq.isLooksLikeChain=e=>{const[t,n]=i$(e);if((e=>!!c$(e.node.object)&&!!c$(e.node.property)&&u$(e.parentPath.parentPath))(e))return!1;if(p$(t))return!1;if(h$(n))return!1;if(n.find(d$))return!0;if(e.find(f$))return!1;const r=n.filter(l$),[i]=r;return!(2===r.length&&!i.name)&&(!(e=>e.parentPath?.isCallExpression()&&e.parentPath.get("arguments.0")===e)(e)&&r.length>1)};const h$=([e])=>u$(e,{name:"get"}),f$=e=>{const t=e.find(o$);let n=!1;return t?(t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n):n},{types:m$}=rn,{isLast:y$,isCoupleLines:g$,isNext:b$}=GU,{isLooksLikeChain:x$}=Yq,{printTrailingComments:S$,hasTrailingCommentsPrinter:T$}=Pq,{isDecorator:E$,isMemberExpression:v$,isExpressionStatement:P$,isCallExpression:A$}=m$,C$=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,w$=e=>{const{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function k$(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}const I$=e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments,_$=e=>{const{parentPath:t}=e;if(E$(e)){const{loc:t}=e.node.trailingComments[0];return!k$(e,t)}return!v$(t)&&!y$(e)};function N$(e){const{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod())return!1;if(I$(e))return!1;if(e.isThrowStatement())return!1;const[i]=r,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!n)return!0;const o=n.start.line,u=n.end.line;return s===o+1&&s===u+1||s===o+2&&s===u+2}function O$(e){const t=e.getPrevSibling();if(P$(t))return!1;const{expression:n}=e.node;return!!A$(n)&&!A$(n.arguments[0])}Hq.isTrailingIsLeading=I$,Hq.parseTrailingComments=(e,t,n,{currentTraverse:r}={})=>{const{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!n.comments)return;const{trailingComments:u}=e.node;if(!u?.length)return;if(T$(r))return S$(e,t,n,{currentTraverse:r});if(e.isDirective())return;const c=u.length-1,l=x$(i);for(const{type:t,value:n,loc:r}of u){const i=k$(e,r),u=N$(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(!b$(e)),a.write.breakline(!c)),s(`//${n}`),a.write.newline(_$(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(O$(e)),s(`/*${n}*/`),a.write.newline(!i||!w$(e)&&g$(e.parentPath)))}};var L$={};const{isNext:D$}=GU;L$.parseComments=(e,{write:t,maybe:n},r)=>{if(!r.comments)return;const i=e.node.comments||e.node.innerComments;if(!i)return;const s=i.length-1,a=e.isProgram();for(const[r,{type:o,value:u}]of i.entries())if("CommentLine"!==o)"CommentBlock"===o&&(t("/*"),t(u),t("*/"));else{if(n.write.breakline(D$(e)||!a),t("//"),t(u),a){n.write.newline(r<s);continue}t.newline()}};const{parseLeadingComments:F$}=bq,{parseTrailingComments:M$}=Hq,{parseComments:B$}=L$;gq.parseLeadingComments=F$,gq.parseTrailingComments=M$,gq.parseComments=B$;const{parseComments:R$}=gq,j$=()=>{},U$=e=>e.get("params");function q$(e){if("ArrowFunctionExpression"!==e.type)return!1;const{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}yq.printParams=(e,t,n,r={})=>{const{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:u}=t,{params:c=U$(e),braceOpen:l="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:h=j$,printBeforeClose:f=j$}=r;s&&u(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){if(q$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceOpen:l},n),R$(e,t,n),h();const m=c.length-1;for(let e=0;e<=m;e++){const t=e===m;u(c[e]),t||(a(","),d())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:n},r){if(q$(e)&&!r.roundBraces.arrow)return;t(n)}(e,{print:a,braceClose:p},n)};var $$={};const J$=e=>e.node.extra?.parenthesized;$$.isParens=J$,$$.maybeParens=e=>"function"==typeof e?V$(e):K$(e);const V$=e=>({condition:J$,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),K$=({print:e,condition:t,checkParens:n=!0})=>({...V$(e),condition:(e,r,i)=>{const s=t?.(e,r,i);return n?s||J$(e):s}}),{exists:W$}=GU,{printParams:X$}=yq,{maybeParens:z$}=$$;YU.ArrowFunctionExpression=z$((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");W$(u)&&(s(":"),s.space(),a(u)),r.space(),r("=>");const c=e.get("body").isJSXElement();i.print.space(!c),r("__body")});var H$={};const{types:Y$}=rn,{markAfter:G$}=xq,{isNext:Q$,isNextParent:Z$}=GU,{printParams:eJ}=yq,tJ=(nJ=function(e){return!!cJ(e.parentPath)&&e.node.body.body.length},(...e)=>!nJ(...e));var nJ;const{isAssignmentExpression:rJ,isTSModuleBlock:iJ,isBlockStatement:sJ,isExportNamedDeclaration:aJ,isExpressionStatement:oJ,isFunctionDeclaration:uJ,isExportDefaultDeclaration:cJ}=Y$;H$.FunctionDeclaration={print(e,t,n){const{print:r,maybe:i}=t,{async:s,generator:a,returnType:o}=e.node;i.indent(!(({parentPath:e})=>aJ(e))(e)),i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),eJ(e,t,n),o&&(r(": "),r("__returnType")),r.space(),r("__body")},afterSatisfy:()=>[Q$,Z$,dJ],after(e,{indent:t,maybe:n}){(pJ(e)||lJ(e)||Q$(e))&&t(),n.write.newline(tJ(e)),G$(e)}};const lJ=e=>{const t=e.getNextSibling();return uJ(t)},pJ=e=>{const t=e.getNextSibling();return!!oJ(t)&&rJ(t.node.expression)};function dJ(e){const{parentPath:t}=e;return!!iJ(t.parentPath)||!!sJ(t)&&!e.node.body.body.length}var hJ={},fJ={};const mJ=e=>{const t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())};fJ.maybeDecorators=e=>(t,n,r,i)=>{const{write:s,traverse:a,maybe:o}=n,{decorators:u}=t.node;if(u)for(const e of t.get("decorators"))o.write.breakline(mJ(t)),a(e),s.breakline();e(t,n,r,i)};var yJ={},gJ={maybePrintComputed:(e,t,{maybe:n,traverse:r})=>{const{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")}};const{maybePrintComputed:bJ}=gJ;yJ.printKey=(e,t)=>{const n=e.get("key");bJ(e,n,t)};var xJ={printKind:(e,{write:t})=>{const{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")}},SJ={};const{printParams:TJ}=yq,{hasLeadingComment:EJ}=GU,vJ=({decorators:e})=>e?.length;SJ.printFunctionParams=(e,t,n)=>{const{params:r}=e.node,i=r.filter(vJ).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,EJ(i)&&++n}return n===r})(e),a=CJ({isNewline:i,printer:t}),o=PJ({type:"inc",printer:t,isNewline:i,isAllHasComments:s}),u=AJ({type:"dec",printer:t,isNewline:i,isAllHasComments:s});TJ(e,t,n,{printAfterOpen:o,printSpace:a,printBeforeClose:u})};const PJ=({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=n;t||i[r](),s.breakline()},AJ=({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;const{indent:i,print:s}=t;n||i[r](),s.breakline()},CJ=({isNewline:e,printer:t})=>()=>{const{print:n}=t;if(!e)return n.space();n.breakline()},{isNext:wJ,hasTrailingComment:kJ}=GU,{maybeDecorators:IJ}=fJ,{printKey:_J}=yJ,{printKind:NJ}=xJ,{printFunctionParams:OJ}=SJ,LJ=e=>!kJ(e)&&wJ(e),DJ={print:IJ((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(" ")),NJ(e,t),_J(e,t),OJ(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r.space(),r("__body")}),afterSatisfy:()=>[LJ],after(e,{print:t}){t.linebreak()}};hJ.ClassPrivateMethod=DJ,hJ.ClassMethod=DJ;var FJ={};const{isNewlineBetweenSiblings:MJ}=GU,{printParams:BJ}=yq,{printKey:RJ}=yJ,{printKind:jJ}=xJ;FJ.ObjectMethod={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){const{print:r}=t;jJ(e,t),RJ(e,t),BJ(e,t,n),r.space(),r("__body")},afterIf:e=>MJ(e),after(e,{print:t}){t.linebreak()}};var UJ={};const{exists:qJ}=GU,{printParams:$J}=yq,{maybeParens:JJ}=$$;UJ.FunctionExpression=JJ((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");qJ(l)&&(s(" "),a(l)),$J(e,t,n),r.space(),r("__body")});const{ArrowFunctionExpression:VJ}=YU,{FunctionDeclaration:KJ}=H$,{ClassMethod:WJ,ClassPrivateMethod:XJ}=hJ,{ObjectMethod:zJ}=FJ,{FunctionExpression:HJ}=UJ;HU.FunctionDeclaration=KJ,HU.FunctionExpression=HJ,HU.ArrowFunctionExpression=VJ,HU.ClassMethod=WJ,HU.ClassPrivateMethod=XJ,HU.ObjectMethod=zJ;var YJ={};const{isLast:GJ,isNext:QJ}=GU,{maybeParens:ZJ}=$$,eV=ZJ((e,t)=>{const{maybe:n,traverse:r}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");n.print(i,s),n.print(/^(delete|typeof|void|throw)$/.test(s)," "),r(a),n.print(!i,s)});function tV(e,{print:t}){t(`${e} `),t("__argument")}YJ.UnaryExpression=eV,YJ.UpdateExpression=eV,YJ.AwaitExpression=ZJ((e,{print:t})=>{tV("await",{print:t})}),YJ.YieldExpression=ZJ((e,{print:t,maybe:n})=>{const{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")}),YJ.ThrowStatement=(e,{print:t,indent:n,maybe:r})=>{n(),tV("throw",{print:t}),t(";"),r.print.newline(!GJ(e)),r.print.breakline(QJ(e))};var nV={};const{maybePrintComputed:rV}=gJ,{maybeParens:iV}=$$,{isLooksLikeChain:sV}=Yq;nV.MemberExpression=(e,t)=>{const{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),o=s.isAssignmentExpression(),{computed:u}=e.node,c=sV(e);if(r.print(o,"("),i(s),r.print(o,")"),u)return rV(e,a,t);r.indent.inc(c),r.print.breakline(c),n("."),n("__property"),r.indent.dec(c)},nV.OptionalMemberExpression=iV((e,{print:t,maybe:n})=>{const{computed:r,optional:i}=e.node;if(t("__object"),n.print(i,"?."),n.print(!i&&!r,"."),r)return t("["),t("__property"),void t("]");t("__property")});var aV={},oV={maybeDeclare:e=>(t,n,r)=>{const{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)}};const{types:uV}=rn,{isNext:cV}=GU,{markAfter:lV}=xq,{maybeDeclare:pV}=oV,{parseComments:dV}=gq,{maybeDecorators:hV}=fJ,{isFunction:fV,isTSModuleBlock:mV}=uV,yV=e=>fV(e.parentPath.parentPath),gV=hV((e,t,n)=>{const{id:r,abstract:i,superClass:s}=e.node,{print:a,indent:o,maybe:u,traverse:c}=t;u.print(i,"abstract "),a("class"),u.print(r||s," "),a("__id"),a("__typeParameters");const{node:l}=e;l.superClass&&(u.print(r," "),a("extends "),a("__superClass"),a("__superTypeArguments")),l.implements&&(a(" implements "),e.get("implements").forEach(a)),a.space(),a("{"),u.print.newline(e.node.body.body.length),o.inc();const p=e.get("body"),d=p.get("body");for(const e of d)o(),c(e);d.length||dV(p,t,n),o.dec(),u.indent(d.length),a("}")});aV.ClassExpression=gV,aV.ClassDeclaration={print:pV((e,t,n)=>{const{maybe:r}=t;r.indent(!(({parentPath:e})=>e.isExportDeclaration())(e)),gV(e,t,n)}),afterIf:e=>!!yV(e)||(!!cV(e)||(e=>mV(e.parentPath.parentPath))(e)),after(e,{write:t}){t.newline(),!yV(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),lV(e))}};var bV={};const{exists:xV}=GU,{maybeParens:SV}=$$,{isArray:TV}=Array,EV=SV((e,{indent:t,print:n,maybe:r,traverse:i})=>{const s=(e=>{const t=e.get("arguments");return TV(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),xV(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(")")});bV.OptionalCallExpression=EV,bV.CallExpression=EV;var vV={};const{types:PV}=rn,{exists:AV}=GU,{isMarkedAfter:CV}=xq,{isExpressionStatement:wV,isMemberExpression:kV}=PV;function IV(e,t,n,r){const{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>kV(e))(t))return s(e);i.print(a.new,e)}vV.NewExpression={beforeIf(e){if(!(({parentPath:e})=>wV(e))(e))return!1;const[t,n]=(({parentPath:e})=>{const t=e.getPrevSibling();return[t.node,t]})(e);return!!t&&(!CV(n)&&(!n.isExpressionStatement()&&(({parentPath:e})=>AV(e.getPrevSibling()))(e)))},before(e,{print:t}){t.breakline()},print(e,t,n){const{print:r,maybe:i}=t;r("new "),r("__callee"),r("__typeArguments");const s=e.get("arguments");!function(e,t,n){IV("(",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){IV(")",e,t,n)}(e,t,n)}};var _V={},NV={};const{types:OV}=rn,{isArrayExpression:LV}=OV,DV=["NullLiteral","NumericLiteral","BigIntLiteral"];NV.isInsideTuple=e=>{const{parentPath:t}=e;if(!LV(t))return!1;const[n,r]=t.node.elements;return r===e.node&&DV.includes(n.type)};var FV={};const{types:MV}=rn,{isArrayExpression:BV,isCallExpression:RV,isIdentifier:jV}=MV;FV.isThirdObjectInsideArray=({parentPath:e})=>{if(!BV(e))return!1;const[,t]=e.node.elements;return RV(t)&&!!jV(t)};const{types:UV}=rn,{isCoupleLines:qV,isForOf:$V,isIf:JV,noTrailingComment:VV,isNewlineBetweenSiblings:KV,noLeadingComment:WV,hasLeadingComment:XV,exists:zV}=GU,{parseComments:HV}=gq,{isInsideTuple:YV}=NV,{isLooksLikeChain:GV}=Yq,{isThirdObjectInsideArray:QV}=FV,{isStringLiteral:ZV,isArrayExpression:eK}=UV,tK=e=>e.get("argument").isLogicalExpression();_V.ObjectExpression=(e,t,n)=>{const{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=YV(e)||function({parentPath:e}){return!!eK(e)&&!!eK(e.parentPath)&&(({parentPath:e})=>e.isCallExpression())(e.parentPath)}(e)||QV(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=!aK(e);s.print(l,"("),i("{"),HV(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()&&GV(t)})(e);s.indent.inc(h);for(const[e,t]of u.entries()){if(t.isSpreadElement()){const n=tK(t);WV(t)&&s.indent(c>1||n||p),i(t),VV(t)&&(c>1||p)&&(s.print(e!==d||r,","),i.newline());continue}s.indent(p&&WV(t)),i(t),t.isObjectMethod()||VV(t)&&!nK(t)&&(s.print.newline(p),s.print.linebreak(KV(t)))}o?(YV(e)||function({parentPath:e}){const{elements:t}=e.parentPath.node,[n]=t;return ZV(n)}(e))&&(a.dec(),a(),a.inc()):(a.dec(),s.indent(p)),i("}"),s.print(l,")"),s.indent.dec(h)};const nK=e=>{const t=e.getNextSibling();return!!zV(t)&&XV(t)},rK=e=>{const{parentPath:t}=e;return!!t.isCallExpression()&&(!qV(e)&&e!==t.get("arguments").at(-1))},iK=!0,sK=!1;function aK(e){const{length:t}=e.get("properties");return t?rK(e)||$V(e)||JV(e)?iK:qV(e)?sK:!(e=>e.get("properties.0.value").node)(e):iK}_V.isOneLine=aK;var oK={},uK={};const{types:cK}=rn,{isStringLiteral:lK,isTemplateLiteral:pK,isBinaryExpression:dK}=cK,hK=e=>!!lK(e)||pK(e);uK.isConcatenation=e=>{const{parentPath:t}=e,{operator:n}=e.node;if("+"!==n)return!1;const r=e.node.loc?.start.line,i=e.node.loc?.end.line;if(r===i)return!1;const s=e.get("left"),a=e.get("right");return!!(hK(s)&&hK(a)&&dK(t))||dK(s)&&hK(a)},uK.concatenate=(e,{print:t,indent:n})=>{e.parentPath.isBinaryExpression()||(n.inc(),t.breakline()),t("__left"),t.space(),t("+"),t.breakline(),t("__right"),e.parentPath.isBinaryExpression()||n.dec()};const{types:fK}=rn,{isConcatenation:mK}=uK,{isOneLine:yK}=_V,{printKey:gK}=yJ,{isTSImportType:bK}=fK;oK.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=!yK(e.parentPath);gK(e,t),i||(o(":"),s.write.space(!mK(u)),a(u)),p&&!(({parentPath:e})=>bK(e.parentPath))(e)?s.write(!l||r,","):!l&&c.length&&o(", ")};var xK={},SK={wrongShorthand:({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name},TK={moreThenMaxPropertiesInOneLine:(e,{maxPropertiesInOneLine:t})=>{const{parentPath:n}=e;if(n.isObjectProperty())return!1;return t>=e.node.properties.length}},EK={};const{types:vK}=rn,{isMemberExpression:PK,isSequenceExpression:AK}=vK;function CK(e,t){const{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;AK(n)||PK(n)||i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}EK.maybePrintTypeAnnotation=CK,EK.maybeTypeAnnotation=e=>(t,n,r)=>{e(t,n,r),CK(t,n)};var wK={};const{types:kK}=rn,{isAssignmentPattern:IK,isIdentifier:_K}=kK;function NK(e,t){return _K(e)&&_K(t)?e.name.length+t.name.length:_K(e)?e.name.length:0}wK.moreThenMaxPropertiesLengthInOneLine=(e,{maxPropertiesLengthInOneLine:t})=>{const{properties:n}=e.node;for(const{key:e,value:r}of n){if(IK(r)){const{left:e,right:n}=r;if(NK(e,n)>=t)return!0}if(!_K(e))continue;const{name:n}=e;if(n.length>=t)return!0}return!1};const{types:OK}=rn,{wrongShorthand:LK}=SK,{isForOf:DK,isCoupleLines:FK,exists:MK}=GU,{moreThenMaxPropertiesInOneLine:BK}=TK,{maybeTypeAnnotation:RK}=EK,{moreThenMaxPropertiesLengthInOneLine:jK}=wK,{printKey:UK}=yJ,{isObjectExpression:qK,isIdentifier:$K,isAssignmentPattern:JK,isVariableDeclarator:VK,isFunction:KK,isObjectPattern:WK,isForOfStatement:XK,isVariableDeclaration:zK}=OK;const HK=({path:e,valuePath:t,property:n})=>{if(!FK(t))return!1;if(MK(n.getPrevSibling()))return!1;const r=e.get("properties");return!(e.parentPath.isVariableDeclarator()&&!eW(r))&&!e.parentPath.isObjectProperty()};function YK({parentPath:e}){return XK(e.parentPath.parentPath)}function GK(e){const t=e.getPrevSibling();return JK(t.node.value)}function QK(e){const t=e.getPrevSibling();if(!JK(t.node.value))return!1;const{right:n}=t.node.value;return qK(n)}function ZK(e){const t=e.getNextSibling();if(!t.node)return!1;if(!JK(t.node.value))return!1;const{right:n}=t.node.value;return qK(n)}function eW(e){for(const t of e){const{value:e}=t.node;if(JK(e))return!0}return!1}function tW(e){for(const t of e)if(WK(t.node.value))return!0;return!1}xK.ObjectPattern={print:RK((e,t,n)=>{const r=function(e){return!e.parentPath.isArrayPattern()}(e),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=n,{print:a,maybe:o,indent:u}=t;o.indent.inc(r),a("{");const c=e.get("properties"),l=c.length-1,p=function(e,t){const{parentPath:n}=e,r=e.get("properties"),i=r.length-1,{maxPropertiesInOneLine:s,maxPropertiesLengthInOneLine:a}=t,o=jK(e,{maxPropertiesLengthInOneLine:a}),u=BK(e,{maxPropertiesInOneLine:s}),c=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return tW(r)?rW:u&&!o&&VK(e.parentPath)?nW:!c&&i&&!DK(e)&&function(e){for(const t of e){const{value:e}=t.node;if($K(e)&&e.name.length>4)return!0}return!1}(r)||!c&&eW(r)?rW:n.isObjectProperty()}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=l&&tW(c),h=!(e=>!!KK(e.parentPath)||KK(e.parentPath.parentPath))(e);o.print.newline(p&&h);for(const[n,r]of c.entries()){if(r.isRestElement()){const e=p||d;o.indent(e),a(r),o.print.newline(e);continue}const i=n&&QK(r),s=ZK(r),u=r.get("value"),c=r.get("key"),f=u.isAssignmentPattern(),{shorthand:m,computed:y}=r.node,g=HK({path:e,property:r,valuePath:u});if(o.indent((i||p)&&h),o.print.breakline(g),!f&&s&&a.breakline(),UK(r,t),!m||LK({computed:y,isAssign:f,keyPath:c,valuePath:u}))a(":"),a.space(),a(u);else if(f){a(u),o.print(g,","),o.print.newline(g);const{right:t}=u.node;if(n&&!GK(r)&&!YK(e)&&qK(t)){a(","),a.newline();continue}}!f&&s&&h?(a(","),a.breakline()):p||d||i&&h?(a(","),a.newline()):!(n<l)||f&&g||(a(","),a.space())}u.dec(),o.indent(p||function(e,t){const{parentPath:n}=e;if(zK(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(JK(n)&&qK(n.right))return i>1||t<=n.left}return!1}(e,s)),o.indent.inc(!r),a("}")})};const nW=!1,rW=!0;var iW={};const{exists:sW}=GU,{maybePrintTypeAnnotation:aW}=EK,{maybeDecorators:oW}=fJ,{printKey:uW}=yJ,{printKind:cW}=xJ,lW=oW((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 "),cW(e,t),uW(e,t),c.print(o,"?"),aW(e,t),sW(l)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()});iW.ClassProperty=lW,iW.ClassPrivateProperty=lW,iW.PrivateName=(e,{print:t})=>{t("#"),t("__id")},iW.ClassAccessorProperty=(e,t,n)=>{lW(e,t,n,{accessor:!0})};var pW={exports:{}},dW={};const{hasLeadingComment:hW}=GU,{isParens:fW}=$$;dW.condition=(e,t,n)=>{const{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||("LogicalExpression"===i||("BinaryExpression"===i||("UnaryExpression"===i||!(!s.assign&&!hW(e))&&fW(e))))};var mW={};const{types:yW}=rn,{hasLeadingComment:gW}=GU,{isReturnStatement:bW}=yW;mW.printLeadingCommentLine=(e,t,n,{printComment:r,isLast:i})=>{const{parentPath:s}=e,{print:a,maybe:o}=t;bW(s)||(o.print.breakline(!i),r(),a.breakline())},mW.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{parentPath:i}=e,{print:s}=t;bW(i)||(r(),s.indent())},mW.maybeInsideReturnWithCommentStart=(e,{print:t,indent:n})=>{const{parentPath:r}=e;if(bW(r)&&gW(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()}},mW.maybeInsideReturnWithCommentEnd=(e,{print:t,indent:n})=>{const{parentPath:r}=e;bW(r)&&gW(e)&&(n.dec(),t.breakline())};var xW={};const{types:SW}=rn,{isAssignmentExpression:TW,isExpressionStatement:EW}=SW;xW.printSeparator=(e,{print:t})=>{!function(e){const{right:t}=e.node;return!!e.parentPath.find(EW)&&TW(t)}(e)?t.space():t.breakline()},function(e){const{condition:t}=dW,{printLeadingCommentLine:n,maybeInsideReturnWithCommentEnd:r,maybeInsideReturnWithCommentStart:i,printLeadingCommentBlock:s}=mW,{maybeParens:a}=$$,{printSeparator:o}=xW;e.exports.AssignmentExpression=a({checkParens:!1,condition:t,print(e,t){const{print:n}=t,{operator:s}=e.node;i(e,t),n("__left"),n.space(),n(s),o(e,t),n("__right"),(({parentPath:e})=>/BlockStatement|Program/.test(e.type))(e)&&(n(";"),n.breakline()),r(e,t)}}),e.exports.AssignmentExpression.printLeadingCommentLine=n,e.exports.AssignmentExpression.printLeadingCommentBlock=s}(pW);var vW=pW.exports;vW.default;var PW={},AW={},CW={},wW={};const{types:kW}=rn,{isIdentifier:IW,isMemberExpression:_W}=kW;function NW(e,t){const n=OW(t);return e.scope.getAllBindings()[n]}wW.getBinding=NW,wW.getBindingPath=(e,t)=>NW(e,t)?.path;const OW=e=>"string"==typeof e?e:IW(e)?e.name:_W(e)?OW(e.object):"";var LW={};const{types:DW}=rn,{isOptionalMemberExpression:FW,isMemberExpression:MW,isIdentifier:BW,isLiteral:RW}=DW;LW.isSimple=e=>!!RW(e)||(!!BW(e)||(!!MW(e)||FW(e)));var jW={};const{types:UW}=rn,{isArrayExpression:qW,isLiteral:$W,isIdentifier:JW,isMemberExpression:VW,isTemplateElement:KW,isRegExpLiteral:WW,isClassMethod:XW,isTemplateLiteral:zW,isJSXText:HW,isJSXAttribute:YW,isJSXIdentifier:GW,isTSTypeReference:QW,isTSTypeParameter:ZW}=UW;function eX(e){if(e=e.node||e,JW(e))return e.name;if(GW(e))return e.name;if(WW(e))return e.pattern;if(zW(e))return eX(e.quasis[0]);if($W(e))return e.value;if(KW(e))return e.value.raw;if(VW(e))return`${eX(e.object)}.${eX(e.property)}`;if(qW(e))return tX(e);if(HW(e))return e.value;if(YW(e))return e.name.name;if(XW(e))return eX(e.key);if(QW(e))return eX(e.typeName);if(ZW(e))return eX(e.name);const t=["Literals","Identifiers","TemplateLiteral","TemplateElement","RegExpLiteral","ArrayExpression","MemberExpression","JSXIdentifier","JSXAttribute","JSXText","TSTypeParameter"].join(", ");throw Error(`'operator.extract(node)' understands only ${t} and TSTypeReference🤷, found: ${e.type}`)}function tX(e,t=[]){for(const n of e.elements)qW(n)?tX(n,t):t.push(eX(n));return t.join(",")}jW.extract=eX;var nX={};const{getBindingPath:rX}=wW,{extract:iX}=jW,sX=!1,aX=!0;function oX(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[aX,r];if(e.isBinaryExpression())return function(e){const{operator:t}=e.node,n=e.get("left"),r=e.get("right"),[i,s]=oX(n);if(!i)return[sX];const[a,o]=oX(r);if(!a)return[sX];const u=`return a ${t} b`,c=cX[t]||cX.init(t,Function("a","op","b",u));return[aX,c(s,t,o)]}(e);if(uX(e))return[aX,iX(t)];const i=function(e){const{node:t}=e;return e.isIdentifier()?rX(e,iX(t)):function(e){const t=e.get("object");return!!e.isMemberExpression()&&(!e.node.computed&&t.isIdentifier())}(e)?rX(e,iX(t.object)):null}(e);if(!i)return[sX];const s=i.get("init");return s.isObjectExpression()&&e.isMemberExpression()?function(e,t){const n=iX(e.node.property);for(const e of t.get("properties")){const t=e.get("key");if(!uX(t))return[sX];if(iX(t)!==n)continue;const[r,i]=oX(e.get("value"));if(!r)break;return[aX,i]}return[sX]}(e,s):[sX]}function uX(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))}nX.compute=oX;const cX={init:(e,t)=>cX[e]=t};var lX={};const{entries:pX}=Object;lX.remove=e=>{if(!e.node)return;const{scope:t}=e,n=hX(e),r=fX(e);if(t&&!r.node){const r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=dX(e))}if(!e.parentPath.isArrayPattern())return void e.remove();const i=e.parentPath.get("elements"),s=i.length-1;for(const[t,n]of pX(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}};const dX=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:[]},hX=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),fX=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling();var mX={getExportDefault:e=>{const t=e.scope.getProgramParent().path;for(const e of t.get("body"))if(e.isExportDefaultDeclaration())return e;return null}},yX={},gX={renameProperty:(e,t,n)=>{e.traverse({ObjectProperty(e){const{node:r}=e,{key:i,value:s}=r;i.name===s.name&&i.name===t&&(i.name=n,s.name=n,r.shorthand=!0,e.stop())}})}};const{renameProperty:bX}=gX;yX.rename=(e,t,n)=>{const r=e.scope.getAllBindings()[t];if(!r)return;const i=r.path;bX(i,t,n),i.scope.rename(t,n)};var xX={setLiteralValue:(e,t)=>{const n=e.node||e,{raw:r,extra:i,value:s}=n;n.value=s.replace(s,t),'""'!==r?!r&&s?i&&(n.raw=i.raw.replace(s,t),n.extra.rawValue=s):n.raw="'"+String.raw`${t}`+"'":n.raw=r.replace(r,`"${t}"`)}},SX={};function TX(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"})}SX.getPathAfterRequires=e=>{let t;for(t of e)if(!TX(t))break;return t};var EX={},vX={};const{traverse:PX,types:AX}=rn,{extract:CX}=jW,{isCallExpression:wX,isObjectExpression:kX}=AX,IX=e=>e.node||e;vX.traverseProperties=(e,t,{firstLevel:n=!1}={})=>{const r=[],i=function(e){return kX(e)?wX(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:IX(e)}:IX(e)}(e),s=_X({name:t,collector:r});return n?(s(e),r):(PX(i,{noScope:!0,ObjectExpression:s}),r)};const _X=({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=CX(n);e===i&&t.push(r)}},{isObjectExpression:NX,isObjectPattern:OX}=rn.types,{extract:LX}=jW,{traverseProperties:DX}=vX;EX.traverseProperties=DX,EX.getProperties=(e,t)=>{const n={};for(const r of e.get("properties")){if(r.isSpreadElement())continue;const e=r.get("key"),i=LX(e);if(t.includes(i)){n[`${i}Path`]=r;continue}}return n},EX.getProperty=(e,t)=>{if(!NX(e)&&!OX(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);const n=e.get("properties");for(const e of n){const n=e.get("key");if(LX(n)===t)return e}return null};var FX={};const MX=e=>"string"==typeof e;FX.getLiteralRaw=e=>{const{raw:t,extra:n,value:r}=e.node||e;return MX(t)?t:n&&MX(n.raw)?n.raw:`'${i=r,i.includes("\\'")?i:i.replaceAll("'","\\'")}'`;var i};var BX={},RX={},jX={};const{types:UX}=rn,{isStatement:qX,isBlockStatement:$X,blockStatement:JX,expressionStatement:VX}=UX;jX.maybeBody=(e,t)=>{const{parentPath:n}=e;return t&&!qX(t)||$X(t)||!n?.isArrowFunctionExpression?.()?{currentPath:e}:(n.node.body=JX([VX(e.node)]),{currentPath:n.get("body.body.0")})};var KX={};const{types:WX}=rn,{isExpression:XX,toStatement:zX,expressionStatement:HX}=WX;KX.toExpression=e=>{const{type:t}=e;return["ObjectProperty"].includes(t)?e:XX(e)?HX(e):zX(e)};const{maybeBody:YX}=jX,{toExpression:GX}=KX,{isSequenceExpression:QX}=rn.types;RX.replaceWithMultiple=(e,t)=>{const{node:n}=e,{trailingComments:r,comments:i,leadingComments:s}=n;delete e.node.trailingComments;const a=e.parentPath.node.comments,o=t.filter(Boolean).map(GX);!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}=YX(e),c=u.replaceWithMultiple(o);return c.length?(s||QX(e)||delete c[0].node.leadingComments,c[0].node.comments=i||a,c.at(-1).node.trailingComments=r,c):c};var ZX={};const{maybeBody:ez}=jX,{assign:tz}=Object;ZX.replaceWith=(e,t)=>{t=(e=>{var t;return(e=(t=e).__putout_replaced_with?t.__putout_replaced_with:t).node?e.node:e})(t),e?.parentPath?.isExpressionStatement()&&!e.parentPath.isProgram()&&(!function(e,t){e.__putout_replaced_with=t}(e,t),e=e.parentPath);const{comments:n,loc:r}=e.node,{currentPath:i}=ez(e,t);return i.replaceWith(t),tz(i.node,{comments:n,loc:r}),i};const{replaceWithMultiple:nz}=RX,{replaceWith:rz}=ZX,{toExpression:iz}=KX;BX.replaceWith=rz,BX.replaceWithMultiple=nz,BX.toExpression=iz;const{types:sz}=rn,{getBinding:az,getBindingPath:oz}=wW,{isSimple:uz}=LW,{extract:cz}=jW,{compute:lz}=nX,{remove:pz}=lX,{getExportDefault:dz}=mX,{rename:hz}=yX,{renameProperty:fz}=gX,{setLiteralValue:mz}=xX,{getPathAfterRequires:yz}=SX,{getProperty:gz,getProperties:bz,traverseProperties:xz}=EX,{getLiteralRaw:Sz}=FX,{replaceWith:Tz,replaceWithMultiple:Ez,toExpression:vz}=BX,{matchesPattern:Pz,isImportDeclaration:Az,isExportDeclaration:Cz,isStatement:wz,expressionStatement:kz}=sz;CW.getBinding=az,CW.getBindingPath=oz,CW.getLiteralRaw=Sz,CW.extract=cz,CW.compute=lz,CW.replaceWith=Tz,CW.getExportDefault=dz,CW.toExpression=vz,CW.isSimple=uz,CW.rename=hz,CW.renameProperty=fz,CW.setLiteralValue=mz,CW.getProperty=gz,CW.getProperties=bz,CW.traverseProperties=xz,CW.replaceWithMultiple=Ez,CW.insertBefore=(e,t)=>{e.insertBefore(t)},CW.insertAfter=(e,t)=>{const{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,wz(e)&&!wz(t)?e.insertAfter(kz(t)):e.insertAfter(t),e.node.comments=n},CW.isModuleExports=e=>Pz(e.node||e,"module.exports");CW.findBinding=(e,t)=>{const n=e.findParent((e=>t=>t.scope.bindings[e])(t));return n?n.scope.bindings[t]:null},CW.remove=pz,CW.getPathAfterRequires=yz,CW.getPathAfterImports=e=>{const t=e.length;let n=0;for(;n<t-1&&Az(e[n]);)++n;return e[n]},CW.isESM=e=>{const t=e.scope.getProgramParent().path;for(const e of t.node.body){if(Az(e))return!0;if(Cz(e))return!0}return!1};const{isSimple:Iz}=CW,{types:_z}=rn,{isStringAndMember:Nz,isStringAndIdentifier:Oz,isIdentifierAndString:Lz,isCoupleLines:Dz,isStringAndArray:Fz,isIdentifierAndIdentifier:Mz,isSimpleAndNotEmptyObject:Bz}=GU,{isObjectExpression:Rz,isArrayExpression:jz,isObjectProperty:Uz,isCallExpression:qz,isAwaitExpression:$z,isBooleanLiteral:Jz,isNullLiteral:Vz,isStringLiteral:Kz,isSpreadElement:Wz,isIdentifier:Xz}=_z,{round:zz}=Math,Hz=!1,Yz=!0;AW.isMultiLine=(e,{elements:t,maxElementsInOneLine:n,maxElementLengthInOneLine:r})=>{const[i]=t;return function(e,t){if(e.length>1)return!1;const[n]=e;return!!Xz(n)&&n.node.name.length<t}(t,r)?Hz:t.length>n&&Kz(i)||t.length>3&&!Rz(i)||Bz(t)?Yz: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()||!Iz(n))||!n.isCallExpression()&&n.isMemberExpression())}(e)||(e=>{if(e.length>1)return!1;const[t]=e;return Wz(t)})(t)||2===t.length&&Mz(t)||function(e){const{parentPath:t}=e;return!!t.isCallExpression()&&(!!t.parentPath.isFunction()&&e.node.elements.length<4)}(e)||rH(e)||function(e){return e.parentPath.isForOfStatement()}(e)||(([e,t])=>Jz(e)&&Iz(t))(t)||(([e,t])=>Vz(e)&&Iz(t))(t)||(([e,t])=>{if(Iz(e))return qz(t)||$z(t)})(t)||Zz(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 zz(i/r)>2}(t)||eH(e)||Fz(t)&&t.length<3||Nz(t)||Oz(t)||Lz(t)||(([e,t])=>Iz(e)&&Rz(t))(t)||Qz(t)&&e.parentPath.isArrayExpression()&&jz(e.parentPath.node.elements[0])||(e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression())(e)?Hz: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)||Dz(e)||!function(e){for(const t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!Gz(e)&&tH(e)&&!nH(e)?Yz:Hz};const Gz=({parentPath:e})=>e.isForOfStatement(),Qz=([e,t])=>Kz(e)&&Kz(t),Zz=(e,t)=>{const{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&(!(!Kz(a)||!Kz(o))&&s<t)},eH=e=>{const{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&(!!n.isObjectProperty()&&(!(!Kz(s)||!Kz(a))&&!Dz(e)))};const tH=({parentPath:e})=>!e.isCallExpression(),nH=e=>e.find(Uz);function rH(e){const t=e.get("elements");return!!t.length&&(!!(([e,t])=>Jz(e)&&Rz(t))(t)||!function(e){return!!e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement()}(e)&&(!!t[0].isObjectExpression()||!Wz(t[1])&&iH(t)))}AW.isIncreaseIndent=rH;const iH=e=>{const t=e.at(0),n=e.at(-1);return Kz(t)&&Rz(n)};AW.isCurrentNewLine=e=>!!e.isSpreadElement()||!e.isObjectExpression();var sH={};const{types:aH}=rn,{isIndented:oH}=GU,{isStringLiteral:uH,isArrayExpression:cH}=aH,lH=e=>e.parentPath.isArrayExpression();function pH(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;const t=e.parentPath.node.elements,n=t.filter(cH).length,r=!cH(t.at(-1));if(n&&r)return!1;const{length:i}=t;return i<=3&&1!==i}sH.isInsideArray=lH,sH.isArrayIndented=e=>{const t=e.get("elements");if(pH(e))return!1;const[n]=t;return!dH(t)||!lH(e)&&oH(n)},sH.isArrayInsideArray=pH;const dH=([e,t])=>!(!uH(e)||!uH(t))&&e.node.value.length>20;var hH={};const{isNextObject:fH,isPrevObject:mH}=GU,yH=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier","NewExpression"];hH.isObjectAfterSimple=e=>{const{type:t}=e;return!(!fH(e)||mH(e))&&yH.includes(t)},hH.isNextSimple=e=>{const{type:t}=e.getNextSibling();return yH.includes(t)};const{types:gH}=rn,{isCoupleLines:bH,isStringAndIdentifier:xH,isIdentifierAndIdentifier:SH,isStringAndArray:TH,isSimpleAndNotEmptyObject:EH,isNextObject:vH}=GU,{isIncreaseIndent:PH,isCurrentNewLine:AH,isMultiLine:CH}=AW,{isInsideArray:wH,isArrayInsideArray:kH,isArrayIndented:IH}=sH,{isObjectAfterSimple:_H,isNextSimple:NH}=hH,{isObjectExpression:OH,isSpreadElement:LH,isStringLiteral:DH,isIdentifier:FH,isFunction:MH,isCallExpression:BH,isObjectProperty:RH}=gH,jH=e=>(e=>DH(e.getNextSibling()))(e)||(e=>DH(e.getPrevSibling()))(e),UH=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(MH(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},qH=e=>{const t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier()||t.isCallExpression())||t.getNextSibling().isObjectExpression()},$H=({parentPath:e})=>1===e.node.elements.length;function JH(e){if(!LH(e)&&!FH(e)&&!BH(e))return;const t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()}PW.ArrayExpression={beforeIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!bH(t)&&(!(!xH(n)||!$H(e))||SH(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=!PH(e);t("[");const c=IH(e);n.indent.inc(c&&u);const l=CH(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&&AH(i);JH(i)&&t.newline(),n.indent(a),t(i),(r<p||s)&&n.print(a,","),OH(i)&&RH(e.parentPath)||n.print.newline((a||UH(i))&&!vH(i)&&!OH(i)),n.print.space(a&&_H(i)),!a&&r<p&&(t(","),!qH(i)&&i.isObjectExpression()&&NH(i)||t.space())}n.indent.dec(c&&u);const d=e.parentPath.get("elements");if(wH(e)&&TH(d)){const t=2===d.length,r=!jH(e)||t;n.indent.dec(r),n.indent(o.length&&l),n.indent.inc(r)}else kH(e)||OH(o.at(-1))||n.indent(o.length&&l);!EH(o)||LH(o.at(-1))||BH(o.at(-1))||(t(","),t.breakline()),t("]")},afterIf(e){const{parentPath:t}=e,{elements:n}=e.node;return!!t.isArrayExpression()&&(!bH(t)&&(!(!xH(n)||!$H(e))||SH(n)))},after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}};var VH={};const{maybeTypeAnnotation:KH}=EK;VH.ArrayPattern=KH((e,{indent:t,maybe:n,print:r},i)=>{const{maxElementsInOneLine:s}=i;r("[");const a=e.get("elements");t.inc();const o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,u=a.length-1;n.print(o&&a.length,"\n");for(const[e,t]of a.entries())n.indent(o),r(t),o?r(",\n"):e<u&&(r(","),r.space());t.dec(),n.indent(a.length&&o),r("]")});var WH={};WH.AssignmentPattern={print(e,{print:t,maybe:n}){n.print(function(e){const{parentPath:t}=e;return!(!t.isObjectProperty()||t.node.shorthand)||(!!(e=>e.parentPath.isFunction())(e)||(!!t.isTSParameterProperty()||t.isArrayPattern()))}(e),"__left"),t.space(),t("="),t.space(),t("__right")}};var XH={};const{maybeTypeAnnotation:zH}=EK;XH.RestElement=zH((e,{print:t})=>{t("..."),t("__argument")});var HH={};const{hasTrailingComment:YH}=GU;HH.SpreadElement=(e,t)=>{const{print:n}=t;n("..."),n("__argument"),YH(e)&&n(",")};var GH={exports:{}},QH={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))}},ZH={};const{hasLeadingComment:eY}=GU,tY=()=>{};ZH.printLeadingCommentLine=tY,ZH.printLeadingCommentBlock=tY,ZH.maybePrintComments=(e,{print:t})=>{if(eY(e)){const{leadingComments:n}=e.node;for(const{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}},function(e){const{hasLeadingComment:t}=GU,{maybeParens:n}=$$,{condition:r}=QH,{maybePrintComments:i,printLeadingCommentLine:s,printLeadingCommentBlock:a}=ZH;e.exports.SequenceExpression=n({checkParens:!1,condition:r,print(e,n){const{write:r,traverse:s,indent:a,maybe:o}=n,u=e.get("expressions"),c=u.length-1,l=t(e);l&&(a.inc(),r.breakline(),i(e,n));for(const[e,t]of u.entries())s(t),e<c&&(r(","),o.write.space(!l),o.print.breakline(l));l&&(a.dec(),r.breakline())}}),e.exports.SequenceExpression.printLeadingCommentLine=s,e.exports.SequenceExpression.printLeadingCommentBlock=a}(GH);var nY=GH.exports;nY.default;var rY={TaggedTemplateExpression:(e,{print:t})=>{t("__tag"),t("__quasi")}},iY={},sY={maybeSpace:(e,{print:t})=>{const{right:n}=e.node;return"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()}};const{concatenate:aY,isConcatenation:oY}=uK,{maybeSpace:uY}=sY,{maybeParens:cY}=$$;iY.BinaryExpression=cY((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")):oY(e)?aY(e,{print:t,indent:n,maybe:r}):(t("__left"),t.space(),t(e.node.operator),uY(e,{print:t}),void t("__right"))});var lY={},pY={};const{types:dY}=rn,{isLogicalExpression:hY,isReturnStatement:fY,isVariableDeclarator:mY}=dY;function yY(e){let t=0;do{++t;const n=e.get("right");hY(n)&&(t+=yY(n)[0]),e=e.get("left");const{operator:r}=e.node;if("||"!==r&&"&&"!==r)break}while(e.isLogicalExpression());return[t]}pY.isRootOk=e=>fY(e)||mY(e),pY.chain=e=>{const[t]=yY(e),[n,r]=function(e){let t=0;do{++t,e=e.parentPath}while(e.isLogicalExpression());return[t,{type:e.type}]}(e);return[r,t+n,t,n]};const{maybeParens:gY}=$$,{chain:bY,isRootOk:xY}=pY;lY.LogicalExpression=gY({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]=bY(e);if(!xY(n))return!1;if(r<=t.maxLogicalsInOneLine)return!1;const{operator:i}=e.node;return"||"===i||"&&"===i}(e,r);n.indent.inc(i),i?t.breakline():t.space(),n.indent.dec(i),t(e.node.operator),t.space(),t("__right")}});var SY={};const{maybeParens:TY}=$$;SY.ConditionalExpression=TY((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")});var EY={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()}},vY={};function PY(e,t,n,{source:r="source"}={}){const{print:i,maybe:s}=t,{options:a}=e.node;i("import("),i(`__${r}`),s.print(a,","),s.print.space(a),i("__options"),i(")")}vY.ImportExpression=PY,vY.createImportExpression=PY;var AY={};const{types:CY}=rn,{isJSXElement:wY}=CY;AY.ParenthesizedExpression={before(e,{print:t}){t("(")},condition:e=>{const{expression:t}=e.node;return!wY(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}};const kY=HU,IY=YJ,_Y=nV,{ClassExpression:NY,ClassDeclaration:OY}=aV,{CallExpression:LY,OptionalCallExpression:DY}=bV,{NewExpression:FY}=vV,{ObjectExpression:MY}=_V,{ObjectProperty:BY}=oK,{ObjectPattern:RY}=xK,{ClassProperty:jY,ClassAccessorProperty:UY,ClassPrivateProperty:qY,PrivateName:$Y}=iW,{AssignmentExpression:JY}=vW,{ArrayExpression:VY}=PW,{ArrayPattern:KY}=VH,{AssignmentPattern:WY}=WH,{RestElement:XY}=XH,{SpreadElement:zY}=HH,{SequenceExpression:HY}=nY,{TaggedTemplateExpression:YY}=rY,{BinaryExpression:GY}=iY,{LogicalExpression:QY}=lY,{ConditionalExpression:ZY}=SY,{StaticBlock:eG}=EY,{ImportExpression:tG}=vY,{ParenthesizedExpression:nG}=AY;var rG={...kY,...IY,..._Y,ArrayPattern:KY,ArrayExpression:VY,AssignmentExpression:JY,AssignmentPattern:WY,BinaryExpression:GY,CallExpression:LY,ClassExpression:NY,ClassProperty:jY,ClassAccessorProperty:UY,ClassPrivateProperty:qY,ClassDeclaration:OY,ConditionalExpression:ZY,NewExpression:FY,LogicalExpression:QY,OptionalCallExpression:DY,ObjectExpression:MY,ObjectProperty:BY,ObjectPattern:RY,ParenthesizedExpression:nG,PrivateName:$Y,RestElement:XY,ImportExpression:tG,SpreadElement:zY,SequenceExpression:HY,StaticBlock:eG,TaggedTemplateExpression:YY,ThisExpression(e,{write:t}){t("this")}},iG={exports:{}},sG={};const{types:aG}=rn,{isExpressionStatement:oG,isFunction:uG,isAssignmentExpression:cG}=aG;sG.isInsideAssignNextAssignFunction=e=>{const{expression:t}=e.node;if(!cG(t))return!1;const n=e.getNextSibling();if(uG(n)&&n.node.leadingComments)return!0;if(!oG(n))return!1;const{leadingComments:r}=n.node;return!!r&&(!!cG(n.node.expression)&&uG(n.node.expression.right))};var lG={};const{types:pG}=rn,{hasTrailingComment:dG}=GU,{isBlockStatement:hG,isProgram:fG,isIfStatement:mG}=pG;lG.printLeadingCommentLine=(e,t,n,{index:r,isLast:i,printComment:s})=>{const{print:a,indent:o}=t,u=e.getPrevSibling(),{parentPath:c}=e;dG(u)||(r||u.node||!mG(c)&&!hG(c)||o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},lG.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{const{indent:i}=t,s=e.getPrevSibling();dG(s)||(hG(e.parentPath)&&!fG(e.parentPath.parentPath)&&i(),r())},function(e){const{types:t}=rn,{isNext:n,isLast:r,isParentBlock:i,isParentLast:s,isNewlineBetweenSiblings:a,satisfy:o,noTrailingComment:u,hasTrailingComment:c,isCoupleLines:l,isInsideLabel:p}=GU,{isInsideAssignNextAssignFunction:d}=sG,{printLeadingCommentLine:h,printLeadingCommentBlock:f}=lG,{isCallExpression:m,isExpressionStatement:y,isAssignmentExpression:g}=t,b=({parentPath:e})=>e.isReturnStatement(),x=(e=>(...t)=>!e(...t))(b),S=o([function(e){return!r(e)&&!s(e)},i,n,function(e){return e.findParent(n)}]),T=o([a,function(e){return e.parentPath.get("body")===e},function(e){const t=e.get("expression");if(!t.isStringLiteral())return!1;const{value:n}=e.node.expression;return"use strict"===n},e=>e.getNextSibling().isIfStatement()]);e.exports.ExpressionStatement={beforeIf:e=>!b(e)&&!p(e),before(e,{indent:t}){t()},print(e,{print:t,maybe:r,store:i,indent:s}){const a=b(e);if(t("__expression"),r.print(!a,";"),n(e)&&!a&&T(e)){t.newline();const r=n(e)&&u(e)||function(e){if(g(e.node.expression))return!1;const t=e.getNextSibling();if(!y(t))return!1;const{expression:n}=t.node;return m(n)}(e)||function(e){const{expression:t}=e.node;return!!m(t)&&(!!m(t.arguments[0])&&function(e){const{trailingComments:t}=e.node,[n]=t;return r=n,"CommentBlock"===r?.type;var r}(e))}(e);r&&s(),i(!0)}},afterIf:e=>!!S(e)||(!(!c(e)||!r(e))||(e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&Boolean(e.parentPath.node.alternate))(e)),after(e,{print:t,maybe:n,store:i,indent:s}){c(e)&&r(e)&&l(e)&&t.breakline(),c(e)&&!l(e)||function({parentPath:e}){if(!e.isIfStatement())return!1;const t=e.parentPath;if(!t.isIfStatement())return!1;const n=t.parentPath;return!!n.isIfStatement()&&r(n)}(e)||x(e)&&(d(e)&&s(),t.newline(),n.markAfter(i(),e))}},e.exports.ExpressionStatement.printLeadingCommentLine=h,e.exports.ExpressionStatement.printLeadingCommentBlock=f}(iG);var yG=iG.exports;yG.default;var gG={},bG={maybeSpaceAfterKeyword:(e,{write:t})=>{const{declarations:n}=e.node;if(!n.length)return;const{id:r}=n[0];if("ArrayPattern"===r.type||"ObjectPattern"===r.type)return t.space();t(" ")}};const{types:xG}=rn,{isNext:SG,isCoupleLines:TG,isNewlineBetweenSiblings:EG,exists:vG,noTrailingComment:PG}=GU,{hasPrevNewline:AG}=xq,{maybeSpaceAfterKeyword:CG}=bG,{isConcatenation:wG}=uK,{parseLeadingComments:kG}=gq,{maybeDeclare:IG}=oV,{isExportDeclaration:_G}=xG,NG=e=>e.parentPath.isTSModuleBlock(),OG=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),LG=e=>e.parentPath.isSwitchCase();function DG(e){return!SG(e)&&e.parentPath.isBlockStatement()}function FG(e){return!jG(e.parentPath)&&e.parentPath.isExportDeclaration()}function MG(e){return!jG(e)&&TG(e)}function BG(e){const t=e.getPrevSibling(),n=e.getNextSibling();return!!vG(t.getPrevSibling())&&(e.node.loc?.start.line!==t.node?.loc?.start.line+2&&(!jG(e)&&t.isVariableDeclaration()&&!n.isVariableDeclaration()))}function RG(e){const t=e.getNextSibling(),n=e.getPrevSibling();return!(!vG(n.getPrevSibling())&&t.isVariableDeclaration())&&(e.node.loc?.start.line!==n.node?.loc?.start?.line+2&&TG(t))}gG.VariableDeclaration={beforeIf:function(e){if(function(e){return e.node===e.parentPath.node.body?.[0]}(e))return!1;if(AG(e))return!1;if(AG(e.parentPath))return!1;const t=e.getPrevSibling();return!(t.isStatement()&&!t.isExpressionStatement()&&!t.isBlockStatement())&&(!_G(e.parentPath)&&TG(e))},before(e,{print:t}){t.breakline()},print:IG((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),CG(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),vG(d)&&(r.space(),r("="),t.write.space(!wG(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}kG(n,{print:s,maybe:t,indent:a},o)}}t.indent.dec(l),(OG(e)||LG(e)||NG(e)||(e=>e.parentPath.isIfStatement())(e))&&r(";");let p=!1;LG(e)&&(r.newline(),(e=>e.parentPath.get("consequent.0")===e)(e)||(p=!0)),OG(e)&&SG(e)&&(PG(e)||EG(e))&&(r.newline(),p=!0),n(p)}),afterSatisfy:()=>[UG,qG,DG,MG,$G,RG,BG,EG,FG,NG],after(e,{maybe:t,store:n}){const r=n();if(jG(e.parentPath)&&!e.parentPath.isBlockStatement()||!OG(e)&&!NG(e))return!1;t.print.linebreak(r),t.print.newline(!r),t.markAfter(r,e)}};const jG=e=>e.parentPath?.isProgram()&&!SG(e);const UG=e=>e.getNextSibling().isIfStatement(),qG=e=>e.getNextSibling().isFunctionDeclaration(),$G=e=>{const t=e.getNextSibling();if(!t.isExpressionStatement())return!1;const{parentPath:n}=e;return!(n.isBlockStatement()&&n.node.body.length<3)&&t.get("expression").isAssignmentExpression()};var JG={};const{types:VG}=rn,{markAfter:KG}=xq,{exists:WG,isNext:XG,isInsideIf:zG}=GU,{isBlockStatement:HG,isFunctionDeclaration:YG,isStatement:GG}=VG;JG.IfStatement={print:(e,{indent:t,print:n,maybe:r,write:i,traverse:s})=>{const{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),n("if"),n.space(),n("("),n("__test"),n(")");const u=e.get("consequent"),c=e.get("alternate"),l=u.isBlockStatement(),p=u.isVariableDeclaration();if(l)n.space(),n(u),(zG(e.parentPath)||(({parentPath:e})=>"BlockStatement"===e.type&&"BlockStatement"===e.parentPath.type)(e))&&r.print.newline((e=>!e.node.body.length)(u));else{const t=!(e=>e.get("consequent").isEmptyStatement())(e);r.print.newline(t),r.indent.inc(t),r.indent(p),n(u),r.indent.dec(t)}if(c.isBlockStatement()?(i.space(),i("else"),i.space(),s(c)):c.isIfStatement()?(c.get("consequent").isBlockStatement()?i.space():t(),i("else "),s(c)):WG(c)&&(r.write.newline(p),r.indent(!l),r.write.space(l),i("else"),i.splitter(),t.inc(),s(c),t.dec()),!XG(e)&&!u.isBlockStatement())return;const d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||GG(d)||n.newline(),(e=>{const{parentPath:t}=e;return!!HG(t)&&!!HG(e.node.consequent)&&!e.node.consequent.body.length&&YG(e.parentPath.parentPath)})(e)&&n.newline()},afterSatisfy:()=>[XG],after:(e,{print:t})=>{t.linebreak(),KG(e)}};var QG={};const{hasPrevNewline:ZG,markAfter:eQ,markBefore:tQ,isMarkedAfter:nQ}=xq,{isFirst:rQ,isNext:iQ,isLast:sQ}=GU;QG.ForOfStatement={beforeIf(e){const{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&(!rQ(e)&&!ZG(e))},before(e,{print:t}){t.linebreak(),tQ(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&&!sQ(e)&&!iQ(e))}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(nQ(a),e)},afterIf:iQ,after(e,{print:t}){t.linebreak(),eQ(e)}};var aQ={},oQ={};const{exists:uQ}=GU;oQ.insideIfWithNoBody=e=>{if(!e.parentPath.isIfStatement())return!1;if(!e.parentPath.parentPath.isIfStatement())return!1;const t=e.parentPath?.parentPath.getNextSibling();return!uQ(t)};var cQ={getDirectives:e=>e.node.directives?e.get("directives"):[]},lQ={};const{types:pQ}=rn,{isLooksLikeChain:dQ}=Yq,{isReturnStatement:hQ,isExpressionStatement:fQ,isMemberExpression:mQ,isCallExpression:yQ}=pQ;function gQ(e){return!!mQ(e)&&fQ(e.parentPath.parentPath)}function bQ(e){if(!yQ(e))return!1;const{parentPath:t}=e;return!!hQ(t)||fQ(t)}lQ.isCallInsideChain=e=>{if(!yQ(e.parentPath.parentPath))return!1;const t=e.find(gQ);if(t)return dQ(t);const n=e.find(bQ);if(!n)return!1;const r=n.get("callee");return dQ(r)};const{types:xQ}=rn,{isNext:SQ,isParentProgram:TQ,isLast:EQ,exists:vQ,satisfy:PQ}=GU,{markAfter:AQ}=xq,{parseComments:CQ}=gq,{insideIfWithNoBody:wQ}=oQ,{getDirectives:kQ}=cQ,{isCallInsideChain:IQ}=lQ,{isArrowFunctionExpression:_Q,isObjectMethod:NQ,isFunctionDeclaration:OQ,isExportDeclaration:LQ,isDoWhileStatement:DQ,isBlockStatement:FQ,isArrayExpression:MQ}=xQ,BQ=e=>_Q(e)||NQ(e);aQ.BlockStatement={print(e,t,n){const{trailingComma:r}=n,{indent:i,maybe:s,write:a,traverse:o}=t,u=e.get("body"),c=kQ(e);e.parentPath.isBlockStatement()&&i();const l=(e=>{const{parentPath:t}=e.parentPath;if(!MQ(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=IQ(e);s.indent.inc(p);for(const e of u)o(e);CQ(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;NQ(d)&&s.write(SQ(d)||r,",")},afterIf:function(e){return JQ(e)?qQ:VQ(e)?$Q:RQ(e)?qQ:jQ(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||UQ(e)||EQ(e)||function(e){return!!OQ(e.parentPath)&&(!!LQ(e.parentPath?.parentPath)&&!SQ(e.parentPath?.parentPath))}(e)?$Q:!function(e){const{parentPath:t}=e;if(!t.isIfStatement())return!1;const n=t.get("alternate");return e!==n&&vQ(n)}(e)},after(e,{write:t}){t.newline(),AQ(e.parentPath)}};const RQ=e=>(({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate)(e)&&e.find(BQ),jQ=e=>{const{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!SQ(t)},UQ=({parentPath:e})=>/FunctionExpression/.test(e.type),qQ=!0,$Q=!1,JQ=({parentPath:e})=>FQ(e),VQ=PQ([({parentPath:e})=>DQ(e),e=>!SQ(e)&&(!SQ(e.parentPath)&&TQ(e.parentPath)),wQ]);var KQ={},WQ={maybeSpaceAfterKeyword:(e,{print:t},n)=>{const{roundBraces:r}=n,{argument:i}=e.node;if(!i)return;const{type:s}=i;return"SequenceExpression"===s&&r.sequence||"StringLiteral"===s||"TemplateLiteral"===s||"ArrayExpression"===s||"ObjectExpression"===s||"UnaryExpression"===s&&"!"===i.operator||"ArrowFunctionExpression"===s&&r.arrow?t.space():void t(" ")}};const{types:XQ}=rn,{isInsideLabel:zQ}=GU,{isPrevBody:HQ,noTrailingComment:YQ,isLast:GQ}=GU,{hasPrevNewline:QQ}=xq,{maybeSpaceAfterKeyword:ZQ}=WQ,{isJSXElement:eZ}=XQ;KQ.ReturnStatement={beforeIf:e=>!QQ(e)&&(({parentPath:e})=>e.node?.body?.length>2)(e)||HQ(e),before(e,{print:t}){t.linebreak()},print(e,t,n){const{maybe:r,print:i}=t;if(r.indent(!zQ(e)),i("return"),ZQ(e,t,n),function(e){const t=e.node.argument;if(!t)return;const{leadingComments:n}=t;return eZ(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)||!GQ(e)&&(!GQ(e.parentPath)&&YQ(e)),after(e,{print:t}){t.newline()}};var tZ={};const{isNext:nZ}=GU;tZ.TryStatement={print(e,{print:t}){const n=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),n.node&&(t.space(),t("finally"),t.space(),t(n),t.newline())},afterSatisfy:()=>[nZ],after(e,{maybe:t,print:n}){t.print.newline(!e.node.finalizer),n.breakline()}},tZ.CatchClause=(e,{print:t,maybe:n})=>{const r=e.get("param"),i=e.get("body");t.space(),t("catch"),r.node?(t("("),t(r),t(")"),t.space()):t.space(),t(i),n.print.newline(function(e){return e.parentPath.parentPath.isBlockStatement()}(e))};var rZ={};const{isNext:iZ,isInsideIf:sZ}=GU,aZ=e=>e.parentPath.isBlockStatement();rZ.DebuggerStatement={print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[iZ,aZ,sZ],after(e,{print:t}){t.newline()}};var oZ={};const{exists:uZ}=GU,{markAfter:cZ}=xq;oZ.ForStatement={print(e,{print:t,maybe:n,indent:r}){const{test:i,update:s,body:a}=e.node;if(r(),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(i),t("__test"),t(";"),n.print.space(s),t("__update"),t(")"),a.body)t.space(),t("__body");else{const r=!e.get("body").isEmptyStatement();n.print.newline(r),n.indent.inc(r),t("__body"),n.indent.dec(r)}},afterIf:e=>uZ(e.getNextSibling()),after(e,{print:t}){t.linebreak(),cZ(e)}};var lZ={exports:{}},pZ={parseImportSpecifiers:e=>{const t=[],n=[],r=[];for(const i of e)"ImportDefaultSpecifier"!==i.type?"ImportNamespaceSpecifier"!==i.type?"ImportSpecifier"!==i.type||r.push(i):n.push(i):t.push(i);return{defaults:t,namespaces:n,imports:r}}},dZ={ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},maybePrintAttributes:(e,t)=>{if(hZ(e))return fZ(e,"assert",t);fZ(e,"with",t)}};const hZ=e=>e.node.extra?.deprecatedAssertSyntax;function fZ(e,t,{write:n,traverse:r,indent:i}){const s=e.get("attributes");if(s.length){n(` ${t}`),n.space(),n("{"),n.breakline(),i.inc();for(const e of s)i(),r(e),n.newline();i.dec(),n("}")}}var mZ={};const{types:yZ}=rn,{isExportDeclaration:gZ}=yZ;mZ.printTrailingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()},mZ.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{const{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!gZ(s)),r()},function(e){const{parseImportSpecifiers:t}=pZ,{markAfter:n}=xq,{isLast:r,isNext:i}=GU,{maybePrintAttributes:s,ImportAttribute:a}=dZ,{printTrailingCommentBlock:o,printTrailingCommentLine:u}=mZ;e.exports.ImportAttribute=a,e.exports.ImportDeclaration={print(e,n,r){const{print:a,maybe:o,write:u,traverse:c,indent:l}=n,{phase:p}=e.node,d="type"===e.node.importKind,h=e.get("specifiers");l(),u("import"),o.write(d," type"),o.write(p,` ${p}`);let f=!1;const m=h.length-1,{defaults:y,namespaces:g,imports:b}=t(h);o.write(h.length," ");for(const e of y)c(e.get("local")),o.write(m,","),o.write.space(m);for(const e of g)u("* as "),c(e.get("local"));const x=function(e,t){const{maxSpecifiersInOneLine:n,maxPropertiesLengthInOneLine:r}=t;for(const{node:t}of e){if(t.imported.name!==t.local.name)return 1;if(t.imported.name.length>=r)return 1}return n}(b,r),S=b.length-1;for(const[e,t]of b.entries()){const n=e===S,r=!n,{imported:i,local:s}=t.node;if(l.inc(),o.write(!f,"{"),o.write.breakline(S>=x),f=!0,c(t.get("imported")),i.name!==s.name&&(u(" as "),u(s.name)),S<x&&r&&(o.write(m,","),o.write.space(m)),S>=x){o.write(m,",");const t=e===m,n=e===m-1;o.write.newline(n&&y.length),o.write.newline(t)}l.dec(),o.write(n,"}")}o.write(h.length," from"),a.space(),a("__source"),s(e,n),a(";"),i(e)&&a.newline()},afterIf:e=>!r(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),n(e)}},e.exports.ImportDeclaration.printTrailingCommentBlock=o,e.exports.ImportDeclaration.printTrailingCommentLine=u}(lZ);var bZ=lZ.exports;bZ.default;var xZ={};const{types:SZ}=rn,{isParentBlock:TZ}=GU,{markAfter:EZ,isMarkedAfter:vZ,hasPrevNewline:PZ}=xq,{isNewlineBetweenSiblings:AZ,exists:CZ,isNext:wZ,isLast:kZ}=GU,{isExportNamespaceSpecifier:IZ,isVariableDeclaration:_Z,isExportNamedDeclaration:NZ}=SZ,OZ={maxOneLineSpecifiers:2};xZ.ExportSpecifier=(e,{print:t})=>{const{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},xZ.ExportNamespaceSpecifier=(e,{print:t})=>{t("* as "),t("__exported")},xZ.ExportNamedDeclaration={beforeIf(e){const t=e.getPrevSibling();return!PZ(e)&&_Z(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}=OZ,l=e.get("source");if(r(),t("export"),"type"===o&&u.length&&t(" type"),IZ(u[0]))return t(" "),t(u[0]),t(" from "),t("__source"),t(";"),void i.print.newline(!kZ(e));const p=u.length,d=!CZ(l)||p>c;if(u&&!e.node.declaration){if(t.space(),t("{"),u.length){r.inc(),i.print.newline(d);const e=p-1;for(const[r,s]of u.entries()){const o="type"===s.node.exportKind,u=r<e;i.indent(d),i.print(o,"type "),n(s),u&&!d?t(", "):d&&i.print(u||a,","),i.print.newline(d)}r.dec(),r()}t("}");const s=e.get("source");return CZ(s)&&(t(" from "),n(s)),t(";"),void i.print.newline(wZ(e)||(e=>e.parentPath.isTSModuleBlock())(e))}t(" "),t("__declaration")},afterIf:e=>!kZ(e)&&(!(e=>vZ(e.get("declaration")))(e)&&(!!AZ(e)||TZ(e))),after(e,{print:t,indent:n}){const r=e.getNextSibling();NZ(r)&&n(),t.newline(),EZ(e)}};var LZ={ExportAllDeclaration:(e,{print:t})=>{const{exportKind:n}=e.node;t("export "),"type"===n&&t("type "),t("* from "),t("__source"),t(";"),t.newline()}},DZ={};const{isNext:FZ}=GU,{markAfter:MZ}=xq;DZ.WhileStatement={print(e,{print:t,indent:n}){n(),t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body?(t.space(),t("__body")):(n.inc(),t.newline(),t("__body"),n.dec())},afterIf:e=>FZ(e),after(e,{print:t}){t.linebreak(),MZ(e)}};var BZ={};const{isNext:RZ,exists:jZ,isLast:UZ}=GU,{parseLeadingComments:qZ}=gq;BZ.SwitchStatement={print(e,t,n){const{print:r,maybe:i,indent:s,write:a,traverse:o}=t;s(),r("switch"),r("("),r("__discriminant"),r(") {"),r.newline();const u=e.get("cases"),c=u.length-1;for(const[e,l]of u.entries()){const u=l.get("test");s(),qZ(l,t,n),jZ(u)?(a("case "),o(u)):a("default"),r(":");const p=l.get("consequent"),d=l.get("consequent.0")?.isBlockStatement();i.indent.inc(!d),i.print.newline(!d&&p.length);for(const e of p)e.isBlockStatement()?(r.space(),r(e)):r(e);i.indent.dec(!d),i.write.linebreak(e<c)}r.indent(),r("}"),RZ(e)||UZ(e)||r.newline()},afterSatisfy:()=>[RZ],after(e,{print:t}){t.breakline(),t.newline()}};var $Z={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")}},JZ={};const{types:VZ}=rn,{isNext:KZ}=GU,{isVariableDeclaration:WZ,isFunction:XZ}=VZ;JZ.ExportDefaultDeclaration={print(e,{print:t,traverse:n,maybe:r}){const i=e.get("declaration");t("export default "),n(i),r.print(function(e){return!e.isClassDeclaration()&&!e.isFunctionDeclaration()}(i),";")},afterSatisfy:()=>[KZ],after(e,{print:t,maybe:n}){t.newline(),n.print.newline(!function(e){const t=e.getNextSibling();if(!WZ(t))return!1;const{declaration:n}=e.node;return XZ(n)}(e))}};var zZ={};const{isParentBlock:HZ,isNextParent:YZ,isInsideIf:GZ,isInsideLabel:QZ}=GU,ZZ=e=>e.parentPath.isSwitchCase();zZ.BreakStatement={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){const{label:r}=e.node;n.indent(!QZ(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[HZ,YZ,ZZ,GZ]};var e0={};const{isLast:t0}=GU,n0=e=>!t0(e);e0.DoWhileStatement={print(e,{print:t,indent:n}){n(),t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")")},afterSatisfy:()=>[n0],after(e,{print:t}){t.newline()}};var r0={};const{parseComments:i0}=gq,{getDirectives:s0}=cQ,{hasCoupleTrailingComments:a0}=GU;r0.Program=(e,t,n)=>{const{body:r}=e.node,{traverse:i,maybe:s,write:a}=t;i(e.get("interpreter")),i0(e,t,n);const o=s0(e);for(const e of o)i(e),s.write.newline(r.length);e.get("body").forEach(i),o.length&&!r.length||r.length&&a0(r.at(-1))||a.endOfFile()};var o0={};const{isInsideLabel:u0}=GU;o0.ContinueStatement=(e,{print:t,maybe:n,write:r})=>{const{label:i}=e.node;n.indent(!u0(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()};var c0={};const{isInsideLabel:l0}=GU;c0.LabeledStatement=(e,{print:t,maybe:n})=>{n.indent(!l0(e)),t("__label"),t(":"),t.space(),t("__body")};var p0={};const{isLast:d0}=GU;p0.EmptyStatement=(e,{write:t,maybe:n})=>{const{parentPath:r}=e;t(";"),n.write.newline(!d0(e)&&!d0(r))};const{ExpressionStatement:h0}=yG,{VariableDeclaration:f0}=gG,{IfStatement:m0}=JG,{ForOfStatement:y0}=QG,{BlockStatement:g0}=aQ,{ReturnStatement:b0}=KQ,x0=tZ,{DebuggerStatement:S0}=rZ,{ForStatement:T0}=oZ,E0=bZ,v0=xZ,{ExportAllDeclaration:P0}=LZ,{WhileStatement:A0}=DZ,{SwitchStatement:C0}=BZ,{ForInStatement:w0}=$Z,{ExportDefaultDeclaration:k0}=JZ,{BreakStatement:I0}=zZ,{DoWhileStatement:_0}=e0,{Program:N0}=r0,{ContinueStatement:O0}=o0,{LabeledStatement:L0}=c0,{EmptyStatement:D0}=p0,{ExportNamespaceSpecifier:F0,ExportSpecifier:M0}=v0;var B0={...E0,...v0,BlockStatement:g0,DoWhileStatement:_0,ExpressionStatement:h0,ExportSpecifier:M0,ExportNamespaceSpecifier:F0,ExportDefaultDeclaration:k0,ExportAllDeclaration:P0,VariableDeclaration:f0,IfStatement:m0,ForStatement:T0,ForInStatement:w0,ForOfStatement:y0,ReturnStatement:b0,DebuggerStatement:S0,LabeledStatement:L0,Program:N0,EmptyStatement:D0,InterpreterDirective(e,{print:t}){t(`#!${e.node.value}\n`),t.newline()},SwitchStatement:C0,...x0,BreakStatement:I0,ContinueStatement:O0,WhileStatement:A0},R0={TemplateLiteral:(e,{write:t,traverse:n})=>{t("`");let r=0;const i=e.get("expressions");for(const s of e.node.quasis){t(s.value.raw);const e=i[r++];e&&(t("${"),n(e),t("}"))}t("`")}},j0={},U0={maybeDecorators:e=>e.node.decorators?e.get("decorators"):[]};const{maybeDecorators:q0}=U0,{maybeParens:$0}=$$,{maybeTypeAnnotation:J0}=EK;j0.Identifier=$0(J0((e,t)=>{const{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:u}=a;for(const t of q0(e))i(t),s(" ");n(o),r.write(u,"?")}));var V0={exports:{}};!function(e){const{types:t}=rn,{isMemberExpression:n}=t;e.exports.Decorator=(e,{print:t,maybe:r})=>{const{expression:i}=e.node,s=n(i);t("@"),r.print(s,"("),t("__expression"),r.print(s,")")},e.exports.Decorator.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{print:i}=t;r(),i.breakline()}}(V0);var K0=V0.exports;K0.default;var W0={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(X0(s,n)),t.quote()}};const X0=(e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{const r=e.split("");return n?z0(r,{slash:"\\",quote:"'"}):t?z0(r,{slash:"\\",quote:'"'}):e},z0=(e,{slash:t,quote:n})=>{const r=[];for(const[i,s]of e.entries()){const a=e[i-1];s!==n||a===t?r.push(s):r.push(`${t}${s}`)}return r.join("")};var H0={DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()}},Y0={VoidPattern:(e,{write:t})=>{t("void")}};const{TemplateLiteral:G0}=R0,{Identifier:Q0}=j0,{Decorator:Z0}=K0,{StringLiteral:e1}=W0,{DirectiveLiteral:t1}=H0,{VoidPattern:n1}=Y0;var r1={Identifier:Q0,Decorator:Z0,DirectiveLiteral:t1,TemplateLiteral:G0,VoidPattern:n1,BigIntLiteral(e,{write:t}){t(e.node.raw)},NumericLiteral(e,{write:t}){const{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},Directive(e,{print:t,maybe:n}){n.print.breakline(e.node.leadingComments?.length),t("__value")},BooleanLiteral(e,{write:t}){t(e.node.value)},StringLiteral:e1,RegExpLiteral(e,{print:t}){const{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},NullLiteral(e,{write:t}){t("null")},MetaProperty(e,{write:t}){t("import.meta")},Super(e,{write:t}){t("super")}},i1={};i1.TSTypeLiteral=(e,{indent:t,traverse:n,write:r})=>{const i=e.get("members");r("{");const s=function(e){const t=e.get("members");return(1!==t.length||!e.parentPath.isTSTypeParameterInstantiation())&&(t.length&&t[0].node.typeAnnotation)}(e);s&&(r.newline(),t.inc());for(const e of i)t(),n(e);s&&(t.dec(),r.indent()),r("}")};var s1={};const{isLast:a1,isNext:o1,isNextParent:u1}=GU,{markAfter:c1}=xq,{maybeDeclare:l1}=oV;s1.TSTypeAliasDeclaration={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:l1((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(a1(e)||a1(e.parentPath));n.print.newline(!s)}),afterIf:(e,{store:t})=>!t()&&(!(!o1(e)&&!u1(e))&&!e.getNextSibling().isTSTypeAliasDeclaration()),after(e,{print:t,maybe:n}){n.indent(e.getNextSibling().isExportDeclaration()),t.newline(),c1(e)}};var p1={};const{types:d1}=rn,{isTSConditionalType:h1}=d1;p1.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(!h1(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")};var f1={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()}},m1={};const{exists:y1}=GU;m1.TSTypeParameter=(e,{write:t,traverse:n})=>{const r=e.get("constraint");if(e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),!y1(r))return;t(" extends "),n(r);const i=e.get("default");y1(i)&&(t.space(),t("="),t.space(),n(i))};var g1={};const{printParams:b1}=yq,{isNext:x1}=GU,{maybeDeclare:S1}=oV,T1=e=>e.parentPath.isExportNamedDeclaration();g1.TSDeclareFunction={beforeIf:e=>!T1(e),before:(e,{indent:t})=>{t()},print:S1((e,t,n)=>{const{print:r}=t;r("function "),r("__id"),b1(e,t,n),r(":"),r.space(),r("__returnType")}),afterIf:e=>!(e=>e.parentPath.isExportDefaultDeclaration())(e),after:(e,{print:t})=>{t(";"),(x1(e)||x1(e.parentPath)||T1(e))&&t.newline()}};var E1={};const{printParams:v1}=yq;E1.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"),v1(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()};var P1={};const{isNext:A1}=GU,{maybeDeclare:C1}=oV;P1.TSModuleDeclaration={print:C1((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:()=>[A1],after(e,{print:t}){t.newline(),t.newline()}},P1.TSModuleBlock=(e,{print:t,traverse:n,indent:r})=>{t("{"),t.breakline(),r.inc();for(const t of e.get("body"))n(t);r.dec(),t("}")};var w1={};const{types:k1}=rn,{isNext:I1,isNextParent:_1}=GU,{maybeDeclare:N1}=oV,{markAfter:O1}=xq,{isTSTypeAliasDeclaration:L1,isExportNamedDeclaration:D1,isTSModuleBlock:F1}=k1;w1.TSInterfaceDeclaration={print:N1((e,{print:t,maybe:n})=>{const{node:r}=e;if(n.indent(!D1(e.parentPath)),t("interface "),t("__id"),r.extends){t(" extends ");const r=e.get("extends"),i=r.length-1;for(const[e,s]of r.entries())t(s),n.print(e<i,", ")}t("__typeParameters"),t("__body")}),afterSatisfy:()=>[I1,_1],after(e,{print:t}){t.linebreak();const n=D1(e.parentPath);n&&(e=>F1(e.parentPath.parentPath))(e)&&O1(e),n||L1(e)||t.newline()}};var M1={};const{types:B1}=rn,{maybeParens:R1}=$$,{isVariableDeclarator:j1,isObjectExpression:U1}=B1;M1.TSAsExpression=R1((e,{print:t,maybe:n})=>{const r=function(e){const{expression:t}=e.node;return!j1(e.parentPath)&&U1(t)}(e);n.print(r,"("),t("__expression"),n.print(r,")"),t(" as "),t("__typeAnnotation")});var q1={};const{parseComments:$1}=gq;q1.TSInterfaceBody=(e,t,n)=>{const r=e.get("body"),{traverse:i,write:s,indent:a,maybe:o}=t;s.space(),s("{"),o.write.newline(r.length),a.inc(),$1(e,t,n);for(const e of r)a(),i(e);a.dec(),a(),s("}"),o.write.newline(function(e){return!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock()}(e))};var J1={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())}}},V1={};const{maybePrintTypeAnnotation:K1}=EK,{hasTrailingComment:W1,isNext:X1}=GU,{printKey:z1}=yJ;V1.TSPropertySignature=(e,t)=>{const{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),z1(e,t),n.print(i,"?"),K1(e,t),function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)||(r(";"),r.newline()),X1(e)&&W1(e)&&r.newline()};var H1={},Y1={hasReturnType:e=>e.node.returnType,printReturnType:(e,{traverse:t})=>{t(e.get("returnType"))}};const{printParams:G1}=yq,{printReturnType:Q1}=Y1,{maybeParens:Z1}=$$;H1.TSFunctionType=Z1((e,t,n)=>{const{print:r}=t;G1(e,t,n),r.space(),r("=>"),r.space(),Q1(e,t)});var e2={};const{isNext:t2,isNextParent:n2,isLast:r2}=GU,{markAfter:i2}=xq;e2.TSEnumDeclaration={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:n,indent:r}){t("enum "),t("__id"),t(" "),t("{"),r.inc(),t.newline();for(const r of e.get("body.members"))n(r),t(","),t.newline();r.dec(),r(),t("}"),r2(e)||(t.newline(),i2(e))},afterSatisfy:()=>[t2,n2],after(e,{print:t}){t.linebreak()}};var s2={TSEnumMember:(e,{print:t,indent:n})=>{const{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))}},a2={};a2.TSTupleType=(e,{write:t,traverse:n,indent:r,maybe:i})=>{const s=e.get("elementTypes");t("["),r.inc();const a=function(e){let t;for(const n of e){if(t&&n.type!==t)return!1;({type:t}=n)}return!0}(s);i.write.newline(a&&s.length);const o=s.length-1;for(const[e,t]of s.entries())i.indent(a),n(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);r.dec(),i.indent(a&&s.length),t("]")};var o2={TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")}},u2={};const{printParams:c2}=yq,{printReturnType:l2}=Y1;u2.TSConstructorType=(e,t,n)=>{const{print:r}=t;r("new"),r(" "),c2(e,t,n),r.space(),r("=>"),r.space(),l2(e,t)};var p2={};const{printReturnType:d2}=Y1,{printParams:h2}=yq;p2.TSCallSignatureDeclaration=(e,t,n)=>{const{print:r}=t;h2(e,t,n),r(":"),r.space(),d2(e,t),r(";"),r.newline()};var f2={};const{printParams:m2}=yq,{hasReturnType:y2,printReturnType:g2}=Y1;f2.TSConstructSignatureDeclaration=(e,t,n)=>{const{write:r}=t;r("new"),m2(e,t,n),y2(e)&&(r(":"),r.space(),g2(e,t)),r(";"),r.newline()};var b2={};const{printParams:x2}=yq,{printKind:S2}=xJ,{hasReturnType:T2,printReturnType:E2}=Y1,{printKey:v2}=yJ;b2.TSMethodSignature=(e,t,n)=>{const{write:r}=t;S2(e,t),v2(e,t),x2(e,t,n),T2(e)&&(r(":"),r.space(),E2(e,t)),r(";"),r.newline()};var P2={};const{maybeParens:A2}=$$;P2.TSUnionType=A2({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:n})=>{const r=e.get("types"),{length:i}=r;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=n?function(e,{traverse:t,write:n}){const r=e.length-1;for(const[i,s]of e.entries())t(s),i<r&&(n.space(),n("|"),n.space())}(r,t):function(e,{traverse:t,write:n,indent:r}){r.inc();for(const r of e)n.breakline(),n("|"),n.space(),t(r);r.dec()}(r,t)}});var C2={};const{createImportExpression:w2}=vY;C2.TSImportType=(e,t,n)=>{w2(e,t,n,{source:"argument"})};var k2={};const{isNext:I2}=GU;k2.TSExportAssignment={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[I2],after:(e,{print:t})=>{t.newline()}};var _2={TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")}},N2={};const{maybeParens:O2}=$$;N2.TSInferType=O2((e,{print:t})=>{t("infer "),t("__typeParameter")});var L2={exports:{}};!function(e){const{hasLeadingComment:t}=GU;e.exports.TSParameterProperty=(e,{print:n,maybe:r,indent:i})=>{const{decorators:s,readonly:a,accessibility:o}=e.node,u=s?.length>1;if(r.print.breakline(u),s){for(const t of e.get("decorators"))r.indent(u),n(t);r.print.breakline(u),t(e)?n(" "):i()}o&&(n(o),n.space()),a&&(n("readonly"),n.space()),n("__parameter"),t(e)&&!e.node.decorators&&n.breakline()},e.exports.TSParameterProperty.printLeadingCommentLine=(e,t,n,{printComment:r})=>{const{indent:i,print:s}=t;return e.node.decorators?(r(),void s.breakline()):e.parentPath.isClassMethod()?(i.inc(),s.breakline(),r(),s.breakline(),void i.dec()):void 0}}(L2);var D2=L2.exports;D2.default;var F2={};const{maybeParens:M2}=$$;F2.TSTypeQuery=M2((e,{print:t})=>{t("typeof "),t("__exprName")});var B2={TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")}};const{isNext:R2}=GU,{TSTypeLiteral:j2}=i1,{TSTypeAliasDeclaration:U2}=s1,{TSMappedType:q2}=p1,{TSConditionalType:$2}=f1,{TSTypeParameter:J2}=m1,{TSDeclareFunction:V2}=g1,{TSDeclareMethod:K2}=E1,{TSModuleDeclaration:W2,TSModuleBlock:X2}=P1,{TSInterfaceDeclaration:z2}=w1,{TSAsExpression:H2}=M1,{TSInterfaceBody:Y2}=q1,{TSIntersectionType:G2}=J1,{TSPropertySignature:Q2}=V1,{TSFunctionType:Z2}=H1,{printParams:e3}=yq,{TSEnumDeclaration:t3}=e2,{TSEnumMember:n3}=s2,{TSTupleType:r3}=a2,{TSNamedTupleMember:i3}=o2,{TSConstructorType:s3}=u2,{TSCallSignatureDeclaration:a3}=p2,{TSConstructSignatureDeclaration:o3}=f2,{TSMethodSignature:u3}=b2,{TSUnionType:c3}=P2,{maybePrintTypeAnnotation:l3}=EK,{TSImportType:p3}=C2,{TSExportAssignment:d3}=k2,{TSTypeReference:h3}=_2,{TSInferType:f3}=N2,{TSParameterProperty:m3}=D2,{TSTypeQuery:y3}=F2,{TSParenthesizedType:g3}=B2;var b3={TSAsExpression:H2,TSExportAssignment:d3,TSTypeLiteral:j2,TSTypeAliasDeclaration:U2,TSTypeParameter:J2,TSMappedType:q2,TSConditionalType:$2,TSDeclareFunction:V2,TSModuleDeclaration:W2,TSModuleBlock:X2,TSIntersectionType:G2,TSImportType:p3,TSUnionType:c3,TSTypeQuery:y3,TSBigIntKeyword(e,{write:t}){t("bigint")},TSNullKeyword(e,{write:t}){t("null")},TSSymbolKeyword(e,{write:t}){t("symbol")},TSNeverKeyword(e,{write:t}){t("never")},TSUnknownKeyword(e,{write:t}){t("unknown")},TSObjectKeyword(e,{write:t}){t("object")},TSLiteralType(e,{print:t}){t("__literal")},TSTupleType:r3,TSInferType:f3,TSRestType(e,{print:t}){t("..."),t("__typeAnnotation")},TSTypeParameterDeclaration(e,t,n){e3(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypeParameterInstantiation(e,t,n){e3(e,t,n,{braceOpen:"<",braceClose:">"})},TSArrayType(e,{print:t}){t("__elementType"),t("[]")},TSTypeReference:h3,TSTypeOperator(e,{write:t,print:n}){const{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSInterfaceDeclaration:z2,TSInterfaceBody:Y2,TSTypeAssertion(e,{print:t}){t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSUndefinedKeyword(e,{write:t}){t("undefined")},TSBooleanKeyword(e,{write:t}){t("boolean")},TSSatisfiesExpression(e,{print:t}){t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSNumberKeyword(e,{write:t}){t("number")},TSIndexedAccessType(e,{print:t}){t("__objectType"),t("["),t("__indexType"),t("]")},TSStringKeyword(e,{write:t}){t("string")},TSInstantiationExpression(e,{print:t}){t("__expression"),t("__typeArguments")},TSAnyKeyword(e,{write:t}){t("any")},TSVoidKeyword(e,{write:t}){t("void")},TSQualifiedName(e,{print:t}){t("__left"),t("."),t("__right")},TSTypeAnnotation(e,{print:t}){t("__typeAnnotation")},TSParameterProperty:m3,TSConstructSignatureDeclaration:o3,TSIndexSignature(e,t){const{print:n}=t;n("["),n("__parameters.0"),n("]"),l3(e,t),n(";"),n.newline()},TSClassImplements(e,{print:t}){t("__expression"),t("__typeArguments")},TSInterfaceHeritage(e,{print:t}){t("__expression"),t("__typeArguments")},TSParenthesizedType:g3,TSPropertySignature:Q2,TSFunctionType:Z2,TSTypePredicate(e,{print:t}){t("__parameterName"),t(" is "),t("__typeAnnotation")},TSNonNullExpression(e,{print:t}){t("__expression"),t("!")},TSEnumDeclaration:t3,TSEnumMember:n3,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(R2(e))},TSExternalModuleReference(e,{print:t}){t("require("),t("__expression"),t(")")},TSDeclareMethod:K2,TSNamedTupleMember:i3,TSConstructorType:s3,TSMethodSignature:u3,TSCallSignatureDeclaration:a3,TSThisType(e,{print:t}){t("this")}},x3={};const{types:S3}=rn,{isJSXElement:T3}=S3;x3.JSXElement={condition:function(e){return!!e.parentPath.isReturnStatement()||(!!e.parentPath.isParenthesizedExpression()||(!!e.node.extra?.parenthesized||(!!e.parentPath.isArrowFunctionExpression()||e.parentPath.isVariableDeclarator())))},before(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node,s=i?.length;r.write.space(!s&&(({parentPath:e})=>e.isArrowFunctionExpression())(e)),n.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:n,maybe:r}){const i=function(e){const t=e.node.openingElement.attributes.length;if(t>2)return!1;const n=e.parentPath.isArrowFunctionExpression(),r=e.parentPath.isJSXElement(),i=e.parentPath.parentPath.isCallExpression();return r||n&&i}(e);r.indent.inc(i),t("__openingElement"),e.get("children").map(n),t("__closingElement"),r.indent.dec(i)},after(e,{write:t,indent:n,maybe:r}){const{leadingComments:i}=e.node;T3(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}};var E3={};const{isCoupleLines:v3}=GU;E3.JSXAttribute={condition:e=>v3(e.parentPath),before(e,{print:t,indent:n}){n.inc(),t.breakline()},print(e,{print:t,maybe:n}){const{value:r}=e.node;t("__name"),n.print(r,"="),t("__value")},after(e,{indent:t}){t.dec()}};var P3={};const{isCoupleLines:A3}=GU;P3.JSXOpeningElement={print(e,{print:t,maybe:n}){n.indent((({parentPath:e})=>{const t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment()||t.isLogicalExpression())})(e)),t("<"),t("__name");const r=A3(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);A3(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)}};var C3={};C3.JSXFragment={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:n}){t("("),n.inc(),t.breakline()},print(e,{print:t,traverse:n}){t("__openingFragment"),e.get("children").map(n),t("__closingFragment")},after(e,{write:t,indent:n}){n.dec(),t.breakline(),t(")")}},C3.JSXOpeningFragment=(e,{write:t})=>{t("<>")},C3.JSXClosingFragment=(e,{write:t})=>{t("</>")};var w3={};const{isNext:k3}=GU;w3.JSXText=(e,{write:t,indent:n})=>{const{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=k3(e);return s?.raw.includes("&")?t(s.raw):a&&o?(n.inc(),t.breakline(),void n.dec()):void(a?t.breakline():t(i))};const{JSXElement:I3}=x3,{JSXAttribute:_3}=E3,{isCoupleLines:N3}=GU,{JSXOpeningElement:O3}=P3,L3=C3,{JSXText:D3}=w3,{parseComments:F3}=gq;var M3={...L3,JSXElement:I3,JSXAttribute:_3,JSXOpeningElement:O3,JSXText:D3,JSXEmptyExpression(e,t,n){F3(e,t,n)},JSXExpressionContainer(e,{print:t}){t("{"),t("__expression"),t("}")},JSXIdentifier(e,{write:t}){t(e.node.name)},JSXMemberExpression(e,{print:t}){t("__object"),t("."),t("__property")},JSXSpreadAttribute(e,{print:t,maybe:n}){const r=N3(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXClosingElement(e,{print:t}){t("</"),t("__name"),t(">")}};var B3={...rG,...B0,...r1,...b3,...M3};B3.default;var R3={};const j3=e=>()=>e,{keys:U3}=Object;function q3(e,t,n){if(!n)return[`{{ ${e} }}`,t[e]];const r=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[r]||"";if(!r.includes("|"))return[e,i];const[s,a]=r.split("|"),o=n[a],u=t[s];return o?[e,o(u)]:[e,u]}const{satisfy:$3}=GU;const J3=e=>{const t=e?.()||[];return $3(t)},V3=(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):U3(t);for(const e of i){const[i,s]=q3(e,t,n),a=j3(s);for(;r.includes(i);)r=r.replace(i,a)}return r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r},{types:K3}=rn,W3=e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;const{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:J3(n),beforeIf:J3(r),...e}},{isProgram:X3,isFile:z3,isStatement:H3,expressionStatement:Y3,program:G3,file:Q3}=K3;R3.maybeThrow=(e,t,n)=>{if(e)throw Error(V3(n,{path:t,type:t.type}))};const Z3=e=>H3(e)?e:Y3(e);R3.maybeFile=e=>z3(e)?e:Q3((e=>X3(e)?e:G3([Z3(e)]))(e)),R3.maybeVisitor=(e,t,n,r)=>"function"==typeof e?e(t,n,r):function(e,t,n,r){const{print:i,split:s,condition:a,before:o=s,beforeIf:u=a,after:c=s,afterIf:l=a}=W3(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 e4={},t4=t(J),n4=function(e){return(e=e.replace(i4,function(e){return" "+(e.toLowerCase()||e)})).trim().split(r4).join("_")},r4=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,i4=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;const s4=t4,a4=n4,{codeFrameColumns:o4}=rn,{TYPES:u4}=zU,{stringify:c4}=JSON,{LOG:l4,LOG_ALL:p4,LOG_TOKENS:d4,LOG_TERM:h4,LOG_DEBUG:f4}={};function m4(){let e=[];return(...t)=>{const[n]=t;if(t.length)return void e.push(n);const r=e.join("");return e=[],r}}e4.createDebug=e=>t=>{f4&&e.push({type:u4.DEBUG,value:`/*__${a4(t)}*/`})},e4.createLog=({newline:e="\n",store:t=m4()}={})=>({type:n,value:r})=>{if(d4)console.log(o4(c4({type:n,value:r}),{},{highlightCode:!0}));else if(p4)console.log(o4(r,{},{highlightCode:!0}));else{if(l4){if(r===e)return void console.log(o4(t(),{},{highlightCode:!0}));t(r)}h4&&s4.stdout.write(r)}};var y4={},g4={};const b4=e=>"boolean"==typeof e,x4={arrow:!0,sequence:!0,assign:!1,new:!0},S4={arrow:!0,sequence:!0,assign:!0,new:!0},T4={arrow:!1,sequence:!1,assign:!1,new:!1};g4.parseRoundBraces=({roundBraces:e})=>{return(t=e)&&"object"==typeof t?{...x4,...e}:b4(e)&&e?S4:b4(e)&&!e?T4:x4;var t},g4.ROUND_BRACES_DISABLED=T4,g4.ROUND_BRACES_ENABLED=S4,g4.ROUND_BRACES_DEFAULTS=x4;var E4={parseQuotes:({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1}};const{parseRoundBraces:v4}=g4,{parseQuotes:P4}=E4;y4.parseOverrides=(e={})=>{const{format:t,semantics:n,visitors:r}=e,i=A4(t);return{format:i,semantics:C4(i,n),visitors:r}};const A4=e=>({indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...e}),C4=(e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxElementLengthInOneLine:10,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,...P4(e),...t,roundBraces:v4(t)}),w4=XU,k4=rn.traverse,{TYPES:I4}=zU,_4=B3,{maybeFile:N4,maybeVisitor:O4,maybeThrow:L4}=R3,{createDebug:D4,createLog:F4}=e4,{maybeMarkAfter:M4}=xq,{parseLeadingComments:B4,parseTrailingComments:R4}=gq,{parseOverrides:j4}=y4,U4=e=>e&&"object"==typeof e,{round:q4}=Math,{assign:$4,freeze:J4}=Object;function V4(e,t){let n="";for(++e;--e>0;)n+=t;return n}WU.tokenize=(e,t)=>{const{visitors:n,format:r,semantics:i}=j4(t),s=[],a=(e=>{const t=F4();return n=>{t(n),e.push(n)}})(s),o=D4(s),u=e=>{a({type:I4.TOKEN,value:e})},c=()=>{a({type:I4.INDENT,value:V4(x,r.indent)})},l=()=>{a({type:I4.NEWLINE,value:r.newline})},p=e=>e&&l(),d=()=>{l(),c()},h=e=>e&&d(),f=()=>{c(),l()},m=e=>e&&f(),y=(e,t)=>e&&u(t),g=()=>{a({type:I4.SPACE,value:r.space})},b=e=>e&&g();let x=0;$4(c,{inc:()=>++x,dec:()=>--x});const S=()=>{a({type:I4.QUOTE,value:r.quote})};$4(u,{indent:c,newline:l,linebreak:f,breakline:d,space:g,splitter:()=>{a({type:I4.SPLITTER,value:r.splitter})},quote:S,endOfFile:()=>{a({type:I4.END_OF_FILE,value:r.endOfFile})}}),$4(y,{newline:p,breakline:h,linebreak:m,space:b});const T={indent:e=>e&&c(),markAfter:M4,write:y,space:b};$4(T.indent,{inc:e=>e&&c.inc(),dec:e=>e&&c.dec()});const E=J4({indent:c,write:u,debug:o,traverse:P,maybe:T,quote:S,store:w4()}),v={..._4,...n};function P(e){const{type:t}=e,n=v[t];if(!e.node)return;const r=K4(e,{write:u,traverse:P});$4(r,u,{space:g,round:q4});const s={...E,print:r},a=(e,t)=>e&&r(t);$4(a,{newline:p,breakline:h,linebreak:m,space:b}),$4(s.maybe,{print:a}),L4(!n,e,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");const c=x;B4(e,s,i,{currentTraverse:n}),O4(n,e,s,i),R4(e,s,i,{currentTraverse:n}),L4(x!==c,e,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),o(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(n){n===e&&(t(n),n.stop())}})}(e,P):k4(N4(e),{Program(e){P(e),e.stop()}}),s};const K4=(e,{traverse:t,write:n})=>r=>{if(r===e)return null;const i=W4(e,r);return U4(i)?t(i):n(i)},W4=(e,t)=>"string"==typeof t&&t.startsWith("__")?((e,t)=>e.get(t.replace("__","")))(e,t):(U4(t),t);var X4={},z4={cook:e=>{const t=[];for(const{value:n}of e)t.push(n);return t}};const{cook:H4}=z4;X4.printTokens=e=>H4(e).join("");var Y4={},G4={},Q4=new RegExp(/(^[ \t]*\n)/,"gm");const Z4=function(e){return e.replace(Q4,"")},e5=e=>e.slice(0,e.indexOf("(")),t5=e=>e.includes("(")?`${e5(e)}(`:`${e}(`,n5=e=>"\n"===e.at(-1)?e:`${e}\n`,r5="__putout_processor_json",i5="__putout_processor_yaml",s5="__putout_processor_filesystem",a5="__putout_processor_ignore",o5=`${r5}(__object)`,u5=`${i5}(__object)`,c5=`${s5}(__object)`,l5=`${a5}(__array)`,p5=[r5,i5,s5,a5];G4.__json=o5,G4.__yaml=u5,G4.__filesystem=c5,G4.__ignore=l5,G4.__json_name=r5,G4.__yaml_name=i5,G4.__filesystem_name=s5,G4.__ignore_name=a5,G4.toJS=(e,t=o5)=>`${t5(t)}${e});\n`,G4.fromJS=(e,t=o5)=>{e=n5(e);const n=e5(t);e=e.slice(e.indexOf(n));const r=t5(t),i=e.length-3,s=e.slice(r.length,i);return n5(Z4(s))},G4.isJSON=e=>{for(const t of p5)if(!e.indexOf(t))return!0;return!1};const{types:d5}=rn,{isJSON:h5}=G4,{isCallExpression:f5,isIdentifier:m5}=d5;Y4.maybeJSON=(e,t)=>function(e){const{program:t}=e;if(!t)return!1;const{body:n}=e.program;if(!n.length)return!1;const{expression:r}=e.program.body[0];if(!f5(r))return!1;const{callee:i}=r;return!!m5(i)&&h5(i.name)}(e)?{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}}:t;const{tokenize:y5}=WU,{printTokens:g5}=X4,{maybeJSON:b5}=Y4,{maybeVisitor:x5}=R3,S5=B3;KU.print=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);const n=b5(e,t),r=y5(e,n);return g5(r)},KU.visitors=S5,KU.maybeVisitor=x5;var T5={};function E5(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}function v5(e){let t="";for(let n=0;n<e.length;n++){if(" "!==e[n])return t;t+=" "}return t}const{generate:P5}=rn,A5=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&&!E5(n)&&(t[e]=v5(t[e+1]))}return t.join("\n")},C5={alignSpaces:!0};T5.print=(e,t)=>{const{source:n,alignSpaces:r}={...C5,...t};let{code:i}=P5(e,{...n&&{experimental_preserveFormat:!0,retainLines:!0}},n);return"\n"===i[0]&&(i=i.trimStart()),i+="\n",r?A5(i):i};const w5=KU,k5=T5,{isArray:I5}=Array;var _5=(e,t={})=>{const[n="putout",r]=(i=t.printer,I5(i)?i:[i,{}]);var i;return"babel"===n?k5.print(e,{...t,...r}):w5.print(e,r)},N5={};const{types:O5}=rn,{isFunctionExpression:L5,objectMethod:D5}=O5,{assign:F5}=Object;function M5(e,t){return e.loc&&t.loc?{start:e.loc.start,end:t.loc.end}:null}const{types:B5}=rn,{classPrivateMethod:R5,classMethod:j5,privateName:U5,identifier:q5}=B5,{assign:$5}=Object;const J5=({type:e})=>"PrivateIdentifier"===e;const{types:V5}=rn,{identifier:K5}=V5;const{types:W5}=rn,{directive:X5,directiveLiteral:z5}=W5;const{assign:H5}=Object;var Y5={convertParenthesizedExpression:({convertParens:e})=>t=>{if(!e)return;const{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},G5={convertTSParenthesizedType:({convertParens:e})=>t=>{if(!e)return;const{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)}},Q5={convertNodeComments:e=>{const{comments:t}=e;if(t){delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0;for(const n of t){const t=e8(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=Z5(n),e[t].push(n)}}},convertProgramComments:e=>{for(const t of e)t.type=Z5(t);return e}};const Z5=({type:e})=>`Comment${e}`;function e8({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}const{convertProgramComments:t8}=Q5;var n8={convertPropertyDefinition:e=>{const{node:t}=e;if("PrivateIdentifier"===t.key.type){const{key:e}=t;return t.type="ClassPrivateProperty",void(t.key=r8(e))}e.node.type="ClassProperty"},convertTSInterfaceHeritage:e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){const{object:e,property:n}=t;t.type="TSQualifiedName",t.left=e,t.right=n,delete t.object,delete t.property,t=e}},convertPrivateIdentifier:e=>{e.replaceWith(r8(e.node))},convertTSAbstractMethodDefinition:e=>{const{node:t}=e,{generator:n,async:r,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:n,async:r,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)}};const r8=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{traverse:i8,types:s8}=rn,a8=e=>{for(const t of e){const{computed:e,key:n,method:r,value:i}=t.node;r&&L5(i)&&(t.replaceWith(D5("method",n,i.params,i.body,e)),F5(t.node,{id:null,method:!0,generator:i.generator,loc:M5(n,i),async:i.async,type:"ObjectMethod"}))}},o8=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(J5(t)){const s=function(e){return U5(q5(e.name))}(t);return R5(e,s,n,r,i)}return j5(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(l),$5(e.node,{loc:s,expression:u,generator:c})},u8=e=>{e.node.type="ClassPrivateProperty"},c8=({node:e})=>{e.name&&(e.id=K5(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)},l8=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=z5(e.directive),i=X5(r);t.directives.push(i),n.remove()}}},p8=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)},d8=e=>{const{attributes:t=[]}=e.node;e.node.attributes=t},h8=e=>{const{attributes:t=[]}=e.node;H5(e.node,{attributes:t})},{convertParenthesizedExpression:f8}=Y5,{convertTSParenthesizedType:m8}=G5,{convertNodeComments:y8}=Q5,g8=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")},b8=e=>{if("File"===e.type)return e;const{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:t8(t),tokens:n}},{convertTSInterfaceHeritage:x8,convertTSAbstractMethodDefinition:S8,convertPropertyDefinition:T8,convertPrivateIdentifier:E8}=n8,{isObjectExpression:v8,isExportDeclaration:P8}=s8,A8={convertParens:!0};function C8(e){const{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}N5.estreeToBabel=(e,t)=>{const n=b8(e),r={...A8,...t};return i8(n,{noScope:!0,ParenthesizedExpression:f8(r),TSParenthesizedType:m8(r),enter(e){const{node:t}=e,{type:n}=t;return n.endsWith("Literal")?(g8(t),C8(t)):"JSXText"===n?C8(t):"BlockStatement"===n||"Program"===n?l8(e):"Property"===n?function(e){e.type="ObjectProperty"}(t):"MethodDefinition"===n?o8(e):"FieldDefinition"===n?u8(e):"PrivateName"===n?c8(e):"ImportDeclaration"===n?d8(e):P8(e)?h8(e):"ChainExpression"===n?p8(e):"TSAbstractMethodDefinition"===n?S8(e):"TSInterfaceHeritage"===n?x8(e):"PropertyDefinition"===n?T8(e):"PrivateIdentifier"===n?E8(e):void 0},exit(e){const{node:t}=e;if(y8(t),v8(t))return a8(e.get("properties"))}}),n};var w8={},k8={exports:{}},I8=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 _8=I8;function N8(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function O8(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}k8.exports=_8(N8),k8.exports.strict=_8(O8),N8.proto=N8(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return N8(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return O8(this)},configurable:!0})});var L8=k8.exports;const D8=()=>{};var F8=t(Object.freeze({__proto__:null,default:D8}));var M8,B8,R8=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)}}}}),j8=t(R8);const U8=L8(()=>{const{Parser:e}=F8,t=(B8||(B8=1,M8=function(e){return e.extend(F8,F8,j8)}),M8),n=F8.default;return e.extend(n(),t)});w8.parse=function(e){const t=U8(),n={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},r=Array.from(t.tokenizer(e,n));return{...t.parse(e,n),tokens:r}};var q8={},$8=["importMeta","importAttributes","deprecatedImportAssert","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],J8={allowReturnOutsideFunction:!0,allowUndeclaredExports:!0,allowImportExportEverywhere:!0};const V8=L8,K8=$8,W8=J8,{assign:X8}=Object,z8=e=>!e.indexOf("// @flow"),H8=V8(()=>rn);function Y8({isTS:e,isFlow:t,isJSX:n}){const r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}q8.parse=function(e,t){const{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=z8(e),isRecovery:a,printer:o}=t,{parse:u}=H8(),c={sourceFileName:n,sourceType:"module",tokens:!0,...W8,errorRecovery:a,plugins:(l=[...K8,...Y8({isTS:r,isFlow:s,isJSX:i})],l.filter(Boolean))};var l;"babel"===o&&X8(c,{createParenthesizedExpressions:!0});const p=u(e,c);return p.program.extra.__putout_printer=o,p};var G8={};const Q8=L8(()=>F8);G8.parse=function(e){const{parse:t}=Q8();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})};var Z8={};const e6=L8(()=>F8);Z8.parse=function(e){const{parse:t}=e6();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})};var t6={};const n6=L8(()=>F8);t6.parse=e=>{const{Tenko:t}=n6(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n};var r6={};const i6=L8(()=>F8);r6.parse=function(e){return i6().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})};var s6=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};const a6=s6;const o6=w8,u6=q8,c6=G8,l6=Z8,p6=t6,d6=r6,h6=(e,t,n,r)=>{const[i,...s]=r,[a,o]=a6(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]=a6(e,t,n);if(!r)return i}throw a},f6=["has already been declared"];function m6(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){return"babel"===t?u6.parse(e,{isTS:r,isJSX:i,isRecovery:s,printer:n}):"object"==typeof t?t.parse(e,{isJSX:i,isTS:r}):"espree"===t?c6.parse(e):"acorn"===t?o6.parse(e):"esprima"===t?l6.parse(e):"tenko"===t?p6.parse(e):"hermes"===t?d6.parse(e):function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(t).parse(e)}var y6={};const g6=s6;y6.tryThrowWithReason=(e,...t)=>{const[n,r]=g6(e,...t);if(n)throw n.reason="parse",n;return r};const{estreeToBabel:b6}=N5,x6=(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 h6(m6,e,f6,[s,a,o])},{tryThrowWithReason:S6}=y6,{assign:T6}=Object;var E6=(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}=v6({printer:r,parser:n,isTS:i,isJSX:s});return S6(a,e)};const v6=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){const s={};"babel"===r&&T6(s,{convertParens:!1});return b6(x6(i,e,{isTS:t,isJSX:n,printer:r}),s)}});const{generate:P6}=rn;var A6=(e,t,n)=>P6(e,{comments:!1,...t},n),C6={exports:{}};function w6(e,t){t||(t={});var n,r,i,s=t.vargs||function(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}(e),a=[],o=new Map,u=t.maxAge>0&&t.maxAge<1/0?function(e){return r=setTimeout(function(){n?o.delete(e):a.splice(e,1)},t.maxAge)}:0,c=t.equals?t.equals:0,l=t.maxArgs,p=t.serializer;return 1!==e.length||t.equals||s?i=c?function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&c(arguments[i],a[r][i]););if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:function(){for(var t=l||arguments.length,n=a.length,r=-1;++r<n;)if(a[r].length===t){for(var i=-1;++i<t&&arguments[i]===a[r][i];);if(i===t)return a[r].val}return a[r]=arguments,!u||u(r),arguments.val=e.apply(this,a[r])}:(i=function(t){var n;return p&&(t=p(t)),o.get(t)||(!u||u(t),o.set(t,n=e.call(this,t)),n)},n=1),i.clear=function(){r&&clearTimeout(r),o.clear(),a=[]},i.keys=function(){return n?[...o.keys()]:a.slice()},i.values=function(){return n?[...o.values()]:a.map(e=>e.val)},i}var k6=t(Object.freeze({__proto__:null,default:w6,nanomemoize:w6}));!function(e){const{types:t,template:n}=rn,{nanomemoize:r}=k6,i=$8,s={...J8,plugins:[...i,"typescript","jsx"]},{isExpressionStatement:a,isTSExternalModuleReference:o}=t,u=e=>a(e)||o(e)?e.expression:e;e.exports=r((e,t)=>{const r=n(e,{...s,...t});return(...e)=>{const t=r(...e);return u(t)}}),e.exports.ast=r((e,t)=>{const r=n.ast(e,{...s,...t});return u(r)}),e.exports.program=r((e,t)=>n.program(e,{...s,...t})),e.exports.program.ast=r((e,t)=>n.program.ast(e,{...s,...t})),e.exports.ast.fresh=(e,t)=>{const r=n.ast(e,{...s,...t});return u(r)},e.exports.extractExpression=u}(C6);var I6=C6.exports;I6.default;const _6=_5,N6=E6,O6=A6,L6=I6;VU.print=_6,VU.parse=N6,VU.generate=O6,VU.template=L6;var D6={mergeShebang:(e,t)=>e?`${e}\n${t}`:t,cutShebang:e=>{if(e.indexOf("#"))return[e,""];const t=e.split("\n"),n=t.slice(1).join("\n"),[r]=t;return[n,`${r}\n`]}},F6={},M6={},B6={};function R6(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 j6=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,U6=function(e){return j6.exec(e).slice(1)};function q6(){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=R6(Y6(e.split("/"),function(e){return!!e}),!t).join("/"))||"."}function $6(e){var t=J6(e),n="/"===G6(e,-1);return(e=R6(Y6(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function J6(e){return"/"===e.charAt(0)}function V6(){return $6(Y6(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 K6(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=q6(e).substr(1),t=q6(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 W6(e){var t=U6(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function X6(e,t){var n=U6(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function z6(e){return U6(e)[3]}var H6={extname:z6,basename:X6,dirname:W6,sep:"/",delimiter:":",relative:K6,join:V6,isAbsolute:J6,normalize:$6,resolve:q6};function Y6(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 G6="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)},Q6=t(Object.freeze({__proto__:null,basename:X6,default:H6,delimiter:":",dirname:W6,extname:z6,isAbsolute:J6,join:V6,normalize:$6,relative:K6,resolve:q6,sep:"/"}));var Z6={simpleImport:async e=>{const t=await import(e);return t.default||t}};const e9=t4,{join:t9}=Q6,n9=L8,{nanomemoize:r9}=k6,i9=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}},{simpleImport:s9}=Z6,{assign:a9}=Object;async function o9(e,t=s9){let n,r;for(const i of e){if([n,r]=await i9(t,i),!n)return r;if("ERR_UNSUPPORTED_DIR_IMPORT"===n.code){const e=require.resolve(i);if([n,r]=await i9(t,e),!n)return r}if("ERR_MODULE_NOT_FOUND"!==n.code)throw a9(n,{message:`${i}: ${n.message}`}),n}throw a9(n,{message:n.message.replace(/\simported.*/,"")}),n}B6.createAsyncLoader=e=>r9(async(t,n)=>{if("none"===t)return()=>{};if(t.startsWith("import:")){const e=t.replace("import:","");return await o9([require.resolve(e)],n)}const r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(c9),s=Array.from(new Set([...r,...i]));return await o9(s,n)});const u9=n9(()=>e9.env.PUTOUT_LOAD_DIR);function c9(e){const t=u9();if(!t)return[e];const n=t9(t,e);return[n,`${n}.js`]}var l9={},p9={};const d9=e=>"string"==typeof e,{isArray:h9}=Array,{entries:f9}=Object;p9.parsePluginNames=e=>{const t=[];for(const n of e)if(d9(n))t.push([n]);else{if(h9(n)){const[e,r]=n;t.push([e,r]);continue}t.push(...f9(n))}return t};var m9={};const{isArray:y9}=Array,g9=e=>"boolean"==typeof e,b9=e=>"string"==typeof e,x9=e=>"object"==typeof e,{entries:S9}=Object,{stringify:T9}=JSON,E9=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),v9=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${T9(e)}`),P9=()=>Object.create(null),A9=(e,t)=>(function(e,t){if(g9(t))return!0;if(/^(on|off)$/.test(t))return!0;if(x9(t))return!0;throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})}(e,t),"on"===t||"off"!==t&&t);function C9(e,t){const[n]=t,r=A9(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}}m9.parseRules=e=>{const t=[];!function(e){if(y9(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e);for(const[n,r]of S9(e)){if(b9(r)){t.push({rule:n,state:A9(n,r),plugin:null,msg:"",options:P9()});continue}if(g9(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:P9()});continue}if(!(y9(r)&&r.length)){if(x9(r))throw v9(r);throw E9(r)}t.push(C9(n,r))}return t};const w9=e=>e.split("/")[0];m9.enableNestedRules=e=>{const t={};for(const[n,r]of S9(e))n.includes("/")&&A9(n,r)&&(t[w9(n)]="on"),t[n]=r;return t};var k9={};k9.mergeRules=([e,t],n)=>{for(const r of n){if(r.rule!==e)continue;const{msg:n,options:i}=r;return{rule:e,plugin:t,msg:n,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}};var I9={};const _9=e=>e.includes("/")?e.split("/").shift():e,N9=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-","");I9.validateRules=({items:e,rules:t})=>{const n=Object.keys(t);for(const t of n){let n=!1,r=!1,i=!1;for(const[s,a={}]of e){const e=N9(s);if(n=e===t,r=e===_9(t),i=t.includes(e),n&&a.rules)throw Error(`Rule '${t}' cannot be applied to nested plugin '${s}'`);if(n||r||i)break}if(!n&&!r&&!i)throw Error(`No plugin found for a rule: '${t}'`)}};var O9={isEnabled:(e,t)=>{for(const{rule:n,state:r}of t)if(n===e)return r;for(const{rule:n,state:r}of t)if(n.includes("/")&&RegExp(`^${n}`).test(e))return r;for(const{rule:n,state:r}of t)if(RegExp(`^${n}/`).test(e))return r;return!0}},L9={getLoadedRules:e=>{const t=[];for(const n of e){const{rule:e}=n;e.includes("/")||t.push(n)}return t}};const{parseRules:D9}=m9,{mergeRules:F9}=k9,{validateRules:M9}=I9,{isEnabled:B9}=O9,{getLoadedRules:R9}=L9;var j9={parseRules:D9,mergeRules:F9,validateRules:M9,isEnabled:B9,getLoadedRules:R9},U9={};U9.check=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},U9.checkRule=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)};const{parsePluginNames:q9}=p9,{validateRules:$9}=j9,{check:J9}=U9;l9.validateRulesRelations=e=>{J9(e);const{pluginNames:t=[],rules:n={}}=e,r=q9(t);$9({rules:n,items:r})};var V9={},K9={};const{parsePluginNames:W9}=p9,{enableNestedRules:X9}=m9,{parseRules:z9,getLoadedRules:H9}=j9;K9.prepareRules=({rules:e,pluginNames:t})=>{const n=X9(e),r=z9(n),i=H9(r);return{items:W9(t),loadedRules:i,cookedRules:z9(e)}};const Y9=["find","traverse","replace","include","exclude","rules","declare","scan"];var G9=({plugin:e,rule:t})=>{const n=Object.keys(e);for(const e of Y9)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},Q9={};const{isEnabled:Z9,mergeRules:e7}=j9,{isArray:t7}=Array,n7=e=>t7(e)?e:["on",e];function r7(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}Q9.filterEnabledPlugins=({plugins:e,cookedRules:t})=>{const n=[];for(const[r,i]of e){if(!Z9(r,t))continue;const[e,s]=n7(i);r7(r,e,t)&&n.push(e7([r,s],t))}return n};const{basename:i7}=Q6,{isEnabled:s7}=j9,{prepareRules:a7}=K9,o7=G9,{filterEnabledPlugins:u7}=Q9,{createAsyncLoader:c7}=B6,{check:l7,checkRule:p7}=U9,d7=c7("plugin");V9.loadPluginsAsync=async e=>{l7(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=a7({rules:n,pluginNames:t}),a=await async function({items:e,loadedRules:t}){const n=[],r=[];for(const[i,s]of e){if(!s7(i,t))continue;p7(i);const[e]=h7(i),a=s||d7(e);r.push(m7(i)),n.push(a)}const i=await Promise.all(n),s=[];for(const[e,t]of r.entries()){const n=i[e];o7({plugin:n,rule:t});const{rules:r}=n;r?s.push(...f7(t,r)):s.push([t,n])}return s}({items:r,loadedRules:i});return u7({plugins:a,cookedRules:s})};const h7=e=>[e,"putout"];function f7(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function m7(e){if(e.startsWith("import:")){return i7(e.replace("import:","")).replace("plugin-","")}return e}var y7,g7={},b7={},x7=t(Object.freeze({__proto__:null,default:{}}));function S7(){if(y7)return b7;y7=1;const e=t4,{createRequire:t}=x7,{join:n}=Q6,r=s6,i=L8,{assign:s}=Object,a=e=>({name:t,namespace:n})=>{const[i,a]=function(e,t,n){if(n.startsWith("import:"))return l(n.replace("import:",""));let[r,i]=l(`@${e}/${t}-${n}`);r||([r,i]=l(`${e}-${t}-${n}`));r||([r,i]=l(n));return[r,i]}(n,e,t);if(!i)throw Error(`${o=e,`${o[0].toUpperCase()}${o.slice(1)}`} "${n}-${e}-${t}" could not be found!`);var o;const[u,c]=r(a,i);if("ERR_REQUIRE_ESM"===u?.code&&s(u,{message:`☝️ Looks like '${t}' is ESM, use 'await putoutAsync()' instead`,name:t}),u)throw u;return c};b7.loadPlugin=a("plugin"),b7.loadProcessor=a("processor");const{PUTOUT_YARN_PNP:o="putout"}={},u=i(()=>t(require.resolve(o))),c=i(()=>t(require.resolve("putout")));function l(e,{again:t=!1}={}){let i;const s=u(),a=c();return[,i]=r(a.resolve,e),i?[i,a]:([,i]=r(s.resolve,e),i||t?[i,s]:l(function(e){const t=p();return t?n(t,e):e}(e),{again:!0}))}const p=i(()=>e.env.PUTOUT_LOAD_DIR);return b7}const T7=G9,{prepareRules:E7}=K9,{isEnabled:v7}=j9,{filterEnabledPlugins:P7}=Q9,{check:A7,checkRule:C7}=U9,{isArray:w7}=Array;g7.loadPlugins=e=>{A7(e);const{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=E7({rules:n,pluginNames:t}),a=function({items:e,loadedRules:t}){const n=[];for(const[r,i]of e){if(!v7(r,t))continue;C7(r);const e=I7(r),[s,a]=k7(r),o=_7(i)||O7({name:s,namespace:a});T7({plugin:o,rule:r});const{rules:u}=o;u?n.push(...N7(e,u)):n.push([e,o])}return n}({items:r,loadedRules:i});return P7({plugins:a,cookedRules:s})};const k7=e=>[e,"putout"],I7=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),_7=e=>w7(e)?e[1]:e;function N7(e,t){const n=[],r=Object.entries(t);for(const[t,i]of r)n.push([`${e}/${t}`,i]);return n}function O7({name:e,namespace:t}){const{loadPlugin:n}=S7();return n({name:e,namespace:t})}var L7={};const D7=e=>"string"==typeof e,{isArray:F7}=Array,M7=e=>"on"===e,B7=e=>"off"===e;const{createAsyncLoader:R7}=B6,j7=e=>{const t=[];for(const n of e)if(D7(n))t.push([n]);else if(F7(n)){const[e,r]=n;if(B7(r))continue;if(M7(r)){t.push([e]);continue}t.push([e,r]);continue}return t},{check:U7}=U9;L7.loadProcessorsAsync=async(e,t)=>{U7(e);const{processors:n=[]}=e,r=j7(n),i=R7("processor"),s=[];for(const[e,n]of r)n?s.push(n):s.push(i(e,t));return await Promise.all(s)};const{createAsyncLoader:q7}=B6,{validateRulesRelations:$7}=l9,{loadPluginsAsync:J7}=V9,{loadPlugins:V7}=g7,{loadProcessorsAsync:K7}=L7;M6.loadPlugins=V7,M6.loadPluginsAsync=J7,M6.loadProcessorsAsync=K7,M6.createAsyncLoader=q7,M6.validateRulesRelations=$7;var W7,X7,z7={},H7={exports:{}};function Y7(){if(X7)return W7;X7=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,s=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return W7=function(o,u){u=u||{};var c=typeof o;if("string"===c&&o.length>0)return function(a){if((a=String(a)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!o)return;var u=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*r;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*t;case"seconds":case"second":case"secs":case"sec":case"s":return u*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(o);if("number"===c&&isFinite(o))return u.long?function(i){var s=Math.abs(i);if(s>=r)return a(i,s,r,"day");if(s>=n)return a(i,s,n,"hour");if(s>=t)return a(i,s,t,"minute");if(s>=e)return a(i,s,e,"second");return i+" ms"}(o):function(i){var s=Math.abs(i);if(s>=r)return Math.round(i/r)+"d";if(s>=n)return Math.round(i/n)+"h";if(s>=t)return Math.round(i/t)+"m";if(s>=e)return Math.round(i/e)+"s";return i+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},W7}var G7=function(e){function t(e){let r,i,s,a=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];r=s.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=Y7(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&void 0!==$&&"env"in $&&(e=$.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=G7(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(H7,H7.exports);var Q7=H7.exports;Q7.default;var Z7={};const eee=Q7;Z7.createDebug=t=>{const n=eee(t);return new Proxy(n,{apply:(n,r,i)=>(e.__putout_debug?.(t,...i),n(...i)),get:(t,n)=>!!e.__putout_debug?.[n]||t[n]})};const tee=s6,{createDebug:nee}=Z7,{stringify:ree}=JSON,iee=nee("putout:runner:fix");var see=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(iee.enabled&&iee(`${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: '${ree(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]=tee(e,...(({path:e,pathOptions:t,options:n})=>t?[e,t,{options:n}]:[e,{options:n}])({path:t,pathOptions:n,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||r,s.reason="fix",s})(t,{path:n,pathOptions:r,position:s,options:a}))};var aee={};const oee=e=>e.path||e[0]||e;aee.getPath=oee,aee.getPosition=(e,t)=>{const n=oee(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:uee}=Array;var cee=e=>e?(e=>uee(e)?e:[e])(e):[],lee={};const{stringify:pee}=JSON;lee.validate=(e,t)=>{if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${pee(t)}'. More on using Includer: https://git.io/JqcMn`)};var dee={};const{values:hee,entries:fee,assign:mee}=Object,yee=e=>Array.from(e),gee=e=>e.node,bee=e=>yee(e).filter(gee),xee=e=>e;function See({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=()=>fee(n),r}}function Tee(e=xee){return(t=new Set)=>{const n=(...n)=>{if(!n.length)return e(yee(t));const[r]=n;t.add(r)};return n.clear=()=>{const n=t;return t=new Set,e(yee(n))},n}}dee.listStore=Tee(),dee.pathStore=Tee(bee),dee.mapStore=See({get:e=>hee(e),set(e,t,n){e[t]=n}}),dee.upStore=See({get:e=>hee(e),set(e,t,n){e[t]=e[t]||{},mee(e[t],n)}}),dee.upListStore=See({get:e=>hee(e).map(bee),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});const{traverse:Eee}=rn,{generate:vee}=VU,Pee=see,{getPosition:Aee}=aee,Cee=cee,{validate:wee}=lee,{listStore:kee,mapStore:Iee,upStore:_ee,upListStore:Nee,pathStore:Oee}=dee,{merge:Lee}=Eee.visitors,{assign:Dee}=Object,Fee=(e,t,n)=>{const r=[];return t[e]&&(wee(e,t[e]),r.push(...Cee(t[e]()))),n[e]&&r.push(...Cee(n[e])),r};var Mee=(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}=Bee(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:vee,options:c});if(!y)throw Error(`☝️ Visitors cannot be empty in "${a}"`);Dee(c,{include:Fee("include",o,c),exclude:Fee("exclude",o,c)}),i.push(...r({rule:a,visitor:y,options:c}))}return{entries:Object.entries(s),visitor:Lee(i)}};function Bee(e,{fix:t,rule:n,shebang:r,msg:i,options:s}){const a=Iee(),o=kee(),u=_ee(),c=kee(),l=Nee(),p=Oee();return{push:(a,o)=>{const u=Aee(a,r),l=i||e.report(a,o);c({message:l,position:u}),Pee(t,e.fix,{path:a,pathOptions:o,rule:n,position:u,options:s})},pull:()=>(a.clear(),o.clear(),u.clear(),l.clear(),p.clear(),c.clear()),store:a,listStore:o,upstore:u,uplist:l,pathStore:p}}const{traverse:Ree,types:jee}=rn,{generate:Uee}=VU,{merge:qee}=Ree.visitors;var $ee=function({rule:e,find:t,ast:n,options:r,template:i,traverse:s=Ree}){const a=[],o=t(n,{traverse:Jee({rule:e,options:r,template:i,traverse:s}),generate:Uee,types:jee,push:e=>{a.push(e)},options:r});return[...a,...o||[]]};const Jee=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>{const a=qee(n({rule:e,visitor:s,options:t}));return r(i,a)};var Vee={exports:{}},Kee={},Wee={};const Xee=e=>void 0===e;const zee=(e,t=Number(e))=>(e=>!Number.isNaN(e)&&"number"==typeof e)(t),Hee=e=>/__proto__|prototype/.test(e);var Yee={};const Gee=/\.body\.0\.expression$/,Qee=/\.body\.0\.key$/,Zee=/\.body\.0$/;Yee.prepareBodyWay=e=>e.replace(Gee,"").replace(Qee,"").replace(Zee,"");var ete={};const{template:tte}=VU,{types:nte}=rn,{isBlockStatement:rte,isTSModuleBlock:ite,isBooleanLiteral:ste,isIdentifier:ate,isLiteral:ote,isTemplateElement:ute,isFunction:cte,isImportDefaultSpecifier:lte,isExportSpecifier:pte,isRegExpLiteral:dte,isJSXText:hte,isJSXIdentifier:fte,isJSXAttribute:mte,isTSTypeReference:yte,isTSTypeParameterDeclaration:gte}=nte,bte="__object",xte="__array",Ste="__args",Tte="__type_params",Ete="__imports",vte="__exports",Pte="__body",Ate="__jsx_children",Cte="__jsx_attributes",wte="__",kte="__identifier",Ite="__bool",_te=/^__[a-z]$/,Nte=/__args__[a-z]$/,Ote=/^__identifier__[a-z]$/,Lte=/^__bool__[a-z]$/,Dte=[bte,xte,Ste,Tte,Ite,Ate,Cte,Ete,vte,Pte,wte,kte,_te,Nte,Ote,Lte];function Fte(e,t){return"string"==typeof t?e===t:t.test(e)}ete.isTemplate=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),ete.is=(e,t=Dte)=>{for(const n of t)if(Fte(e,n))return!0;return!1},ete.isNameStr=e=>_te.test(e),ete.isImportsStr=e=>e===Ete,ete.isExportsStr=e=>e===vte,ete.isArgsStr=e=>e===Ste||Nte.test(e),ete.isTypeParamsStr=e=>e===Tte,ete.isJSXChildrenStr=e=>e===Ate,ete.isJSXAttributesStr=e=>e===Cte,ete.isObjectStr=e=>e===bte,ete.isArrayStr=e=>e===xte,ete.isAnyStr=e=>e===wte,ete.isBodyStr=e=>e===Pte;const Mte=e=>ate(e,{name:Pte}),Bte=(e,t)=>e.type===t.type,{isArray:Rte}=Array;ete.isId=(e,t)=>!!ate(t,{name:kte})&&ate(e),ete.isBool=(e,t)=>!!ate(t,{name:Ite})&&ste(e),ete.isEqualType=Bte,ete.isStr=e=>"string"==typeof e,ete.isAny=e=>!!ate(e,{name:wte})||hte(e,{value:wte}),ete.isAnyLiteral=(e,t)=>!!ote(t,{value:wte})&&Bte(e,t),ete.isArgs=e=>{const t=Rte(e)?e[0]:e;return ate(t,{name:Ste})};ete.isEqualTypeParams=(e,t)=>!!e&&(!!(e=>{if(!gte(e))return!1;const{params:t}=e,{name:n}=t[0];return ate(n,{name:Tte})})(t)&&Bte(e,t)),ete.isLinkedArgs=e=>{const t=Rte(e)?e[0]:e;return ate(t)&&Nte.test(t.name)},ete.isJSXChildren=e=>{const t=Rte(e)?e[0]:e;return hte(t,{value:Ate})},ete.isJSXAttributes=e=>{const t=Rte(e)?e[0]:e;return!!mte(t)&&fte(t.name,{name:Cte})},ete.isLinkedId=(e,t)=>!(!ate(t)||!Ote.test(t.name))&&ate(e),ete.isLinkedBool=(e,t)=>!(!ate(t)||!Lte.test(t.name))&&ste(e),ete.isLinkedRegExp=(e,t)=>!(!dte(t)||!_te.test(t.pattern))&&dte(e),ete.isPath=e=>Boolean(e.node),ete.isArray=Rte,ete.isObject=e=>!!e&&(!Rte(e)&&"object"==typeof e),ete.isArrays=(e,t)=>!(!Rte(e)||!Rte(t))&&e.length===t.length,ete.isImports=e=>{const t=Rte(e)?e[0]:e;return!!lte(t)&&ate(t.local,{name:Ete})},ete.isExports=e=>{const t=Rte(e)?e[0]:e;return!!pte(t)&&ate(t.local,{name:vte})};const jte="ObjectPattern|ObjectExpression",Ute="ArrayPattern|ArrayExpression";ete.isEqualAnyArray=(e,t)=>{if(!ate(t,{name:xte}))return!1;const{type:n}=e;return Ute.includes(n)},ete.isEqualAnyObject=(e,t)=>{if(!ate(t,{name:bte}))return!1;const{type:n}=e;return jte.includes(n)},ete.isEqualBody=(e,t)=>!!e&&(!!Mte(t)&&"BlockStatement"===e.type),ete.isEqualFunctionDeclarationBody=(e,t)=>{if(!e)return!1;if(!(Mte(n=t)||(rte(n)||ite(n))&&Mte(n.body[0].expression)))return!1;var n;const{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},ete.isEqualNop=(e,t)=>{if(!ate(t,{name:"__nop"}))return!1;if(!cte(e))return!1;const{body:n}=e;return!!rte(n)&&!n.body.length},ete.isLinkedNode=e=>!(!ate(e)||!_te.test(e.name))||(!(!ote(e)||!_te.test(e.value))||(!(!hte(e)||!_te.test(e.value))||(!(!fte(e)||!_te.test(e.name))||(!(!ute(e)||!_te.test(e.value.raw))||yte(e)&&_te.test(e.typeName.name))))),ete.parseTemplate=(e,{program:t}={})=>{const n=(t?tte.program.ast:tte.ast)(e)||tte.ast.fresh(e);if(e===bte)return[n,jte];if(e===xte)return[n,Ute];const{type:r}=n;return[n,r]},ete.isInsideTypeReference=e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference(),ete.isInsideTypeParameter=e=>e.isIdentifier()&&e.parentPath?.isTSTypeParameter();const qte=(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(!Xee(n[s])){n=n[s];break}if(!n[r]){n=void 0;break}n=n[r]}return n},$te=(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(!Hee(n)){if(e===a)r[n]=t;else if(!r[n]){const t=s[e+1];r[n]=zee(t)?[]:{}}r=r[n]}return i},{traverse:Jte,types:Vte}=rn,{template:Kte}=VU,{replaceWith:Wte,extract:Xte}=CW,{prepareBodyWay:zte}=Yee,{is:Hte,isArgsStr:Yte,isTypeParamsStr:Gte,isJSXChildrenStr:Qte,isJSXAttributesStr:Zte,isImportsStr:ene,isExportsStr:tne,isInsideTypeReference:nne,isInsideTypeParameter:rne,isBodyStr:ine}=ete,{isIdentifier:sne,isStatement:ane,isJSXElement:one,isJSXAttribute:une,isStringLiteral:cne,isTemplateLiteral:lne,templateElement:pne}=Vte,{extractExpression:dne}=Kte,{entries:hne}=Object,{stringify:fne}=JSON;function mne(e){if(sne(e)&&Hte(e.name))return{[e.name]:[""]};const t={};return Jte(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(nne(e))return;if(rne(e))return;const{node:n}=e;if(une(e.parentPath)&&e.parentPath.node.name===n)return;const r=[],i=Xte(n);Hte(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 yne({waysFrom:e,node:t}){const n={};for(const[r,i]of hne(e))for(let e of i)ene(r)||tne(r)?e=e.replace(/\.0.local$/,""):(Yte(r)||Qte(r)||Zte(r)||Gte(r))&&(e=e.replace(/\.0$/,"")),one(t)||(e=e.replace(/\.expression$/,"")),ine(r)&&(e=zte(e)),n[r]=n[r]||dne(qte(e,t));return n}Wee.getTemplateValues=(e,t)=>{if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${fne(t)}'`);e=(e=>e.node||e)(e);return yne({node:e,waysFrom:mne(Kte.ast(t))})},Wee.findVarsWays=mne,Wee.getValues=yne;const gne=e=>e.replace("`","\\`");Wee.setValues=function({waysTo:e,values:t,path:n}){const r=dne(n.node);for(const[i,s]of hne(e))for(let e of s){if(!e){Wte(n,t[i]);continue}if((ene(i)||tne(i))&&(e=e.replace(/\.0.local$/,"")),(Yte(i)||Qte(i)||Zte(i))&&(e=e.replace(/\.0$/,"")),ane(t[i])&&(e=e.replace(/\.expression$/,"")),cne(t[i])&&lne(r)){const{value:n}=t[i],s=pne({raw:gne(n)});$te(e,s,r);continue}ine(i)&&(e=zte(e));const{extra:s}=qte(e,r);if(s){const e=t[i].extra;t[i].extra={...s,...e}}$te(e,t[i],r)}};var bne={},xne={exports:{}};const Sne=Q7("putout:compare"),{isArray:Tne}=Array;function Ene(e){if(Tne(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}"`}xne.exports=(e,t)=>{if(!Sne.enabled)return;const n=Ene(e),r=Ene(t);return Sne(`${n} = ${r}`)},xne.exports._parseValue=Ene;var vne=xne.exports,Pne={exports:{}};const{types:Ane}=rn,{isIdentifier:Cne,isLiteral:wne,isStringLiteral:kne,isTemplateElement:Ine,isTSTypeReference:_ne,isJSXText:Nne,isJSXIdentifier:One}=Ane,Lne=e=>{e=e[0]||e;const{name:t,value:n}=e;if(Cne(e)||One(e))return t;if(wne(e))return n;if(Ine(e))return e.value.cooked;if(_ne(e))return e.typeName.name;if(Nne(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)};Pne.exports=({add:e,value:t,nodeValue:n,templateStore:r})=>{const i=Lne(t);return!(kne(t)&&!kne(n))&&(r[i]?(Cne(r[i])&&_ne(n)||e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))},Pne.exports._parseName=Lne;var Dne=Pne.exports,Fne={},Mne={};const{is:Bne}=ete;Mne.comparePrimitives=(e,t)=>{return!(n=t,"object"==typeof n&&null!==n||Bne(t)||t!==e);var n};const{types:Rne}=rn,{isObject:jne,isArrays:Une}=ete,{comparePrimitives:qne}=Mne,{isIdentifier:$ne}=Rne;Fne.comparePlain=(e,t,{add:n})=>!e&&e===t||!!e&&(!!qne(e,t)||(!(!$ne(e)||e.name!==t.name)||(jne(t)&&!Array.isArray(t)||!!Une(e,t))&&n(e,t,{plain:!0})));const{types:Jne}=rn,Vne=vne,Kne=Dne,{isId:Wne,isBool:Xne,isObject:zne,isArrays:Hne,isAny:Yne,isAnyLiteral:Gne,isArgs:Qne,isEqualTypeParams:Zne,isJSXChildren:ere,isJSXAttributes:tre,isLinkedArgs:nre,isLinkedId:rre,isLinkedBool:ire,isImports:sre,isExports:are,isEqualAnyObject:ore,isEqualAnyArray:ure,isEqualBody:cre,isEqualFunctionDeclarationBody:lre,isEqualNop:pre,isLinkedNode:dre,isLinkedRegExp:hre}=ete,{comparePlain:fre}=Fne,{comparePrimitives:mre}=Mne,{isClassBody:yre,isBlock:gre,isJSXText:bre,isTemplateElement:xre}=Jne,Sre=e=>(t,n)=>e(n),Tre=[mre,function(e,t){if(!xre(e)||!xre(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!(!bre(e)||!bre(t))&&(/^\s+$/.test(t.value)&&/^\s+$/.test(e.value))},function(e,t){return"__"===t},Sre(yre),Sre(e=>gre(e)&&!e.body.length),Sre(Yne),Wne,Xne,ure,ore,cre,lre,pre,Zne,hre,function(e,t,{add:n,templateStore:r}){const i=e&&(dre(t)||nre(t)||rre(e,t)||ire(e,t));return!!i&&Kne({add:n,value:t,nodeValue:e,templateStore:r})},Gne,Sre(sre),Sre(are),Sre(Qne),Sre(ere),Sre(tre),function(e,t,{add:n}){const r=zne(t);r&&n(e,t);return r},function(e,t,{add:n}){const r=Hne(e,t);r&&n(e,t);return r}];bne.runComparators=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1;const a=Tre.length;if(Vne(t,e),i)return fre(e,t,{add:n});for(;++s<a;){if((0,Tre[s])(e,t,{add:n,templateStore:r}))return!0}return!1};var Ere={};const{types:vre}=rn,{isEqualBody:Pre,isEqualAnyObject:Are,isEqualAnyArray:Cre,isLinkedNode:wre,isLinkedId:kre,isLinkedRegExp:Ire,isEqualNop:_re}=ete,{isIdentifier:Nre,isStringLiteral:Ore}=vre,Lre=[Are,Cre,_re,function(e,t){return Nre(e)&&wre(t)},function(e,t){return Ore(e)&&wre(t)},kre,Ire,Pre];Ere.runTopLevelComparators=(e,t)=>{let n=-1;const r=Lre.length;for(;++n<r;){if((0,Lre[n])(e,t))return!0}return!1};const{template:Dre}=VU,{findVarsWays:Fre,getValues:Mre,setValues:Bre,getTemplateValues:Rre}=Wee,{runComparators:jre}=bne,{runTopLevelComparators:Ure}=Ere,{isStr:qre,isId:$re,isPath:Jre,isEqualType:Vre,isTemplate:Kre,parseTemplate:Wre}=ete,{extractExpression:Xre}=Dre,{keys:zre}=Object,{isArray:Hre}=Array,Yre=()=>{},Gre=e=>Hre(e)&&!e.length,Qre=e=>Hre(e)?e:[e];function Zre(e){return qre(e)?Dre.ast(e):e.node?e.node:e}function eie(e,t,n={},r=Yre){const{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e)return!1;if(!t)return!1;const s=Xre(Zre(e)),a=Xre(Zre(t));if(r(s,a),$re(s,a))return!0;if(s.type===t)return!0;if(Ure(s,a))return!0;if(i&&Jre(e)&&!Vre(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 nie(n,a)}return nie(s,a)}Kee.compare=eie,Kee.parseTemplate=Wre,Kee.isTemplate=Kre,Kee.findVarsWays=Fre,Kee.getValues=Mre,Kee.setValues=Bre,Kee.getTemplateValues=Rre,Kee.compareAny=(e,t,n)=>{t=Qre(t);for(const r of t)if(eie(e,r,n))return!0;return!1},Kee.compareAll=(e,t,n)=>{t=Qre(t);for(const r of t)if(!eie(e,r,n))return!1;return!0};const tie=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function nie(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||Gre(e)&&!Gre(t))return!1;for(const n of zre(t)){if(tie.includes(n))continue;const a=Xre(e[n]),o=Xre(t[n]);if(!jre(a,o,{add:s,templateStore:i,plain:r}))return!1}}return!0}const rie=s6,{compareAny:iie,compareAll:sie,parseTemplate:aie,isTemplate:oie}=Kee,uie=cee,{createDebug:cie}=Z7,lie=cie("putout:runner:template"),{entries:pie}=Object,die=e=>"function"==typeof e,hie=(e,t)=>{lie.enabled&&lie(e,t.toString())},{stringify:fie}=JSON;Vee.exports._log=hie;const mie=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>{if(!die(n)||!r.length)return{[t]:n};const i=yie({rule:e,fn:n,nodesExclude:r,nodesInclude:[]});return{[t]:i}};Vee.exports=({rule:e,visitor:t,options:n})=>{const r=[],i=uie(n.exclude),s=uie(n.include);for(const[n,a]of pie(t)){if(!n)continue;if(!oie(n)){r.push(mie({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}const[t,o]=aie(n),u=yie({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:u})}return r},Vee.exports._log=hie;const yie=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(hie(e,i),n.length&&iie(i,n))return;if(t.length&&!sie(i,t))return;if(!die(r))throw Error(`☝️ Looks like provided visitor is not a function: ${fie(r)}. More on using Traverser: https://git.io/JqcMn`);const[s]=rie(r,i);if(s)throw s.rule=e,s};var gie,bie=Vee.exports,xie={};function Sie(){}function Tie(){Tie.init.call(this)}function Eie(e){return void 0===e._maxListeners?Tie.defaultMaxListeners:e._maxListeners}function vie(e,t,n,r){var i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=new Sie,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=Eie(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=s[t]=n,++e._eventsCount;return e}function Pie(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 Aie(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 Cie(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}Sie.prototype=Object.create(null),Tie.EventEmitter=Tie,Tie.usingDomains=!1,Tie.prototype.domain=void 0,Tie.prototype._events=void 0,Tie.prototype._maxListeners=void 0,Tie.defaultMaxListeners=10,Tie.init=function(){this.domain=null,Tie.usingDomains&&(!gie.active||this instanceof gie.Domain||(this.domain=gie.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Sie,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Tie.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},Tie.prototype.getMaxListeners=function(){return Eie(this)},Tie.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=Cie(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=Cie(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=Cie(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=Cie(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=Cie(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,l,this,i)}return!0},Tie.prototype.addListener=function(e,t){return vie(this,e,t,!1)},Tie.prototype.on=Tie.prototype.addListener,Tie.prototype.prependListener=function(e,t){return vie(this,e,t,!0)},Tie.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Pie(this,e,t)),this},Tie.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Pie(this,e,t)),this},Tie.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 Sie:(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 Sie,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},Tie.prototype.off=function(e,t){return this.removeListener(e,t)},Tie.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Sie,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new Sie: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 Sie,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},Tie.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):[]},Tie.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Aie.call(e,t)},Tie.prototype.listenerCount=Aie,Tie.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var wie=t(Object.freeze({__proto__:null,EventEmitter:Tie,default:Tie}));const{EventEmitter:kie}=wie;xie.createProgress=()=>{let e=0,t=0;const n=new kie;return n.reset=()=>{t=0,e=0},n.file=({i:e,n:t,percent:r,rule:i})=>{n.emit("file",{i:e,n:t,rule:i,percent:r})},n.inc=()=>{++e},n.start=r=>{++t,n.emit("start",{pluginsIndex:t,pluginsCount:e,rule:r})},n.push=r=>{n.emit("push",{pluginsIndex:t,pluginsCount:e,rule:r})},n.end=r=>{n.emit("end",{rule:r,pluginsIndex:t,pluginsCount:e})},n};var Iie={};const _ie=s6;Iie.tryThrowWithReason=(e,...t)=>{const[n,r]=_ie(e,...t);if(n)throw n.reason??="traverse",n;return r};var Nie={};const Oie=Q7("putout:runner:include"),Lie=cee,{validate:Die}=lee,Fie=()=>[],Mie=()=>!0;Nie.include=({rule:e,plugin:t,msg:n,options:r})=>{const{fix:i,report:s,include:a,exclude:o=Fie,filter:u=Mie}=t;Die("include",a),Die("report",s);const c=Bie(a(),u,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...Lie(r.exclude)]},plugin:{report:s,fix:i,traverse:c}}};const Bie=(e,t,n)=>({push:r,options:i})=>{const s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{Oie(e),t(i,{options:r})&&n(i)})({rule:n,filter:t,push:r,options:i});for(const t of e)s[t]=a;return s};var Rie={},jie={exports:{}};const Uie=e=>(...t)=>(...n)=>e(...t,...n);const{entries:qie}=Object,{isArray:$ie}=Array;function Jie(e,t){const{node:n}=e;let r,i;for([r,i]of qie(t)){if($ie(i)){const e=i.indexOf(n);if(e>=0)return`${r}.${e}`;continue}if(i===n)break}return r}const Vie=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?Uie(e)(...t):Uie(e)),{types:Kie}=rn,Wie=e=>{let t={parentPath:e};const n=[];for(;t=t.parentPath;)n.unshift(Jie(t,t.parent));return n.join(".")},{isProgram:Xie}=Kie,zie="__putout_runner_replace";function Hie(e,t,n){const r=`${e} -> ${t}`;return{watermark:r,highWatermark:`${Wie(n)}: ${r}`}}function Yie({path:e,program:t}){e.node&&(e.node[zie]=e.node[zie]||new Set),t.node[zie]=t.node[zie]||new Set}function Gie({path:e,program:t,watermark:n,highWatermark:r}){Yie({path:e,program:t}),e?.node[zie].add(n),t.node[zie].add(r)}function Qie({path:e,program:t,watermark:n,highWatermark:r}){const{node:i}=e,{loc:s}=i;return!!(i?.[zie].has(n)||e.findParent((e=>t=>t.node?.[zie]?.has(e))(n))&&!s)||t.node[zie].has(r)}jie.exports=(e,t,n)=>{const{watermark:r,highWatermark:i}=Hie(e,t,n),s={watermark:r,highWatermark:i,program:n.findParent(Xie),path:n};return{init:Vie(Yie,s),has:Vie(Qie,s),add:Vie(Gie,s)}},jie.exports.REPLACE_WATERMARK=zie,jie.exports.create=Hie,jie.exports.init=Yie,jie.exports.add=Gie,jie.exports.has=Qie;var Zie=jie.exports;const{template:ese,print:tse}=VU,{remove:nse,replaceWith:rse}=CW,{types:ise}=rn,{compare:sse,findVarsWays:ase,getValues:ose,setValues:use}=Kee,cse=cee,lse=Zie,{createDebug:pse}=Z7,dse=pse("putout:runner:replace"),hse=(e,t)=>{dse.enabled&&dse(`${e} -> ${t}\n`)},{isExpression:fse,isStatement:mse,isExpressionStatement:yse}=ise,gse={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:bse,entries:xse}=Object,{stringify:Sse}=JSON,Tse=()=>[],Ese=()=>({});Rie.replace=({rule:e,plugin:t,msg:n,options:r})=>{const i=(t.match||Ese)({options:r}),{report:s,exclude:a=Tse,replace:o,filter:u=Cse(i)}=t,c=o({options:r}),l=Ase(c,i),p=(d=c,()=>bse(d));var d;return{rule:e,msg:n,options:{...r,exclude:[...a(),...cse(r.exclude)]},plugin:{report:s,fix:l,filter:u,include:p}}},Rie.clearWatermark=e=>{delete e.program[lse.REPLACE_WATERMARK]};const vse=e=>"function"==typeof e,Pse=(e,t,n)=>{const r=ese.ast(e),i=lse(e,t,n);if(i.init(),i.has())return;const s=ase(r),a=((e,{node:t})=>e.type!==t.type&&yse(t)?t.expression:t)(r,n),o=ose({waysFrom:s,node:a}),u=function(e,t,n){const r=vse(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 ese.ast.fresh(r)}(t,o,n);if(!u)return hse(e,"''"),nse(n);!function(e,t,n){if(!fse(e))return;if(!mse(t)||yse(t))return;if(yse(n)||yse(n.parentPath))return;throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${tse(e,gse)} -> ${tse(t,gse)}'. For code: '${n}'`)}(r,u,n);const c=ase(u),l=rse(n,u);u.__putout_replace_cooked||(kse(c,s),use({waysTo:c,values:o,path:l})),i.add(),n.scope.getBlockParent().crawl(),hse(e,l)},Ase=(e,t)=>n=>{for(const[r,i]of xse(e)){const e=ese.ast(r);if(sse(n,e,{findUp:!1})){const s=t[r];s&&!wse(n,e,s)||Pse(r,i,n)}}},Cse=e=>t=>{const n=xse(e);for(const[e,r]of n){const n=ese.ast(e);if(sse(t.node,n,{findUp:!1}))return wse(t,n,r)}return!0};function wse(e,t,n){const r=ase(t),{node:i}=e,s=ose({waysFrom:r,node:i});return function(e){if(!vse(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}const kse=(e,t)=>{for(const n of bse(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${Sse(bse(t))} -> ${Sse(bse(e))}`)};var Ise={},_se={},Nse={};const Ose="__putout_declare_undefined_variables",Lse=e=>e.scope.getProgramParent().path,Dse=(e,t)=>t[e]=t[e]||{};Nse.checkDeclarationForESLint=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose][e]},Nse.addDeclarationForESLint=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose][e]=!0},Nse.setModuleType=(e,t)=>{const n=Lse(t);return Dse(Ose,n),n[Ose].__putout_module_type=e,e},Nse.getModuleType=e=>{const t=Lse(e);return Dse(Ose,t),t[Ose].__putout_module_type};const{template:Fse}=VU,{isESM:Mse,insertAfter:Bse}=CW,{compare:Rse}=Kee,{types:jse}=rn,{addDeclarationForESLint:Use,checkDeclarationForESLint:qse,getModuleType:$se,setModuleType:Jse}=Nse,{isImportDeclaration:Vse,isVariableDeclaration:Kse}=jse,{keys:Wse}=Object,Xse=e=>e.node.source.value.includes("."),zse=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration","TSQualifiedName"];_se.declare=e=>({report:Hse,include:Yse,fix:Qse(e),filter:Gse(e)});const Hse=e=>{const{name:t}=e.node;return`Declare '${t.split(".").shift()}', it referenced but not defined`},Yse=()=>["ReferencedIdentifier"],Gse=e=>(t,{options:n})=>{if(zse.includes(t.parentPath.type))return!1;const{dismiss:r=[],type:i}=n,s={...e,...n.declarations},a=Wse(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)||qse(c,t))return!1;const l=function(e,t){if(t)return Jse(t,e);const n=$se(e);return n||Jse((e=>Mse(e)?"esm":"commonjs")(e),e)}(t,i);return Zse(l,s[c])},Qse=e=>(t,{options:n})=>{const r=$se(t),i={...e,...n.declarations},{name:s}=t.node,a=Zse(r,i[s]),o=t.scope.getProgramParent().path.get("body");!function(e,t){const n=function(e,t){const n=tae(t),r=(e=>e.filter(Kse).pop())(t);return Kse(e)&&n||(Vse(e)||eae(e))&&n?n:Kse(e)&&r&&!((e,t)=>t.at(-1)===e)(r,t)?r:null}(e,t),[r]=t;if(Kse(e)&&Vse(n)||eae(n))return Bse(n,e);if(Kse(e))return eae(r)?r.insertAfter(e):r.insertBefore(e);n?n.isImportDeclaration()&&Xse(n)?n.insertBefore(e):Bse(n,e):r.insertBefore(e)}(Fse.ast.fresh(a),o),Use(s,t)},Zse=(e,t)=>"string"==typeof t?t:t[e];const eae=e=>Rse(e,"const __a = require(__b)");const tae=e=>{const t=[],n=[];for(const r of e)r.isImportDeclaration()&&(Xse(r)?n.push(r):t.push(r));return t.pop()||n.pop()};const{declare:nae}=_se,{stringify:rae}=JSON;Ise.declare=({rule:e,plugin:t,msg:n,options:r})=>(function(e){if(t=e,"function"!=typeof t)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${rae(e)}'.`);var t}(t.declare),{rule:e,plugin:nae(t.declare()),msg:n,options:r});var iae={},sae={},aae={};const oae=XU(),{assign:uae}=Object,cae=()=>{},lae={renameFile:cae,removeFile:cae,createDirectory:cae,readFileContent:(pae="",()=>pae),writeFileContent:cae,copyFile:cae};var pae;const dae=uae({},lae);function hae(e){uae(dae,e)}function fae(){uae(dae,lae)}aae.renameFile=(e,t)=>{dae.renameFile(e,t)},aae.removeFile=e=>{dae.removeFile(e)},aae.copyFile=(e,t)=>{dae.copyFile(e,t)},aae.createDirectory=e=>{dae.createDirectory(e)},aae.readFileContent=e=>dae.readFileContent(e),aae.writeFileContent=(e,t)=>{dae.writeFileContent(e,t)},aae.init=hae,aae.pause=()=>{oae(dae),fae()},aae.start=()=>{hae(oae())},aae.deinit=fae;var mae={};const{types:yae}=rn,{arrayExpression:gae,stringLiteral:bae,objectProperty:xae}=yae;function Sae(e,t){const n=bae(e);return xae(n,t)}mae.createTypeProperty=e=>Sae("type",bae(e)),mae.createFilesProperty=e=>Sae("files",gae(e)),mae.createFilenameProperty=e=>Sae("filename",bae(e)),mae.createContentProperty=e=>Sae("content",bae(e));const{join:Tae,basename:Eae,dirname:vae}=Q6,{types:Pae}=rn,Aae=s6,{setLiteralValue:Cae,getProperty:wae,traverseProperties:kae}=CW,Iae=aae,{createTypeProperty:_ae,createFilesProperty:Nae,createFilenameProperty:Oae,createContentProperty:Lae}=mae,{isProgram:Dae,objectExpression:Fae}=Pae,Mae=e=>"string"==typeof e,{isArray:Bae}=Array,Rae=e=>{const[t,n]=Aae(btoa,e);return t?btoa(escape(e)):n},jae=e=>{const t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function Uae(e){if(!e.parentPath)return null;const{parentPath:t}=e.parentPath.parentPath;return Dae(t)?null:t}function qae({name:e,base:t,exclude:n}){for(const r of n)if(e===r||jae(r).test(t))return!0;return!1}function $ae(e,t,n=[]){!function(e){if(!Mae(e)&&!Bae(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=>Bae(e)?e:[e])(t);for(const t of kae(e,"filename")){const{value:e}=t.node.value,s=Eae(e);for(const a of i)if(e===a||jae(a).test(s)){const e=t.parentPath;if(qae({name:a,base:s,exclude:n}))continue;r.push(e)}}return r}function Jae(e){return wae(e,"filename").get("value")}function Vae(e){const{value:t}=Jae(e).node;return t}function Kae(e){return wae(e,"type").node.value.value}function Wae(e){const t=wae(e,"content");return[Boolean(t),t?.node.value.value]}function Xae(e){const t=Vae(e);Uae(e)&&(e.remove(),Iae.removeFile(t))}function zae(e,t){const n=Kae(e);if("directory"!==n){const t=Vae(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}const r=wae(e,"files"),i=Tae(Vae(e),Eae(t)),[s]=$ae(r,i);s&&s.remove()}sae.getParentDirectory=Uae,sae.findFile=$ae,sae.getFileType=Kae,sae.getFileContent=Wae,sae.getFilename=Vae,sae.renameFile=(e,t)=>{const n=Vae(e),r=Jae(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);Cae(r,a),Iae.renameFile(n,a)},sae.removeFile=Xae,sae.removeEmptyDirectory=e=>{if("directory"!==Kae(e))return;let t=e;for(;!Yae(e).length;){if("/"===Vae(e))break;if(t=Uae(e),!t)break;Xae(e),e=t}},sae.moveFile=(e,t)=>{if(e===t)return;const n=Vae(t),r=Vae(e),i=Hae(t),s=wae(e,"filename"),a=r.split("/").pop(),o=Tae(n,a);zae(t,o),Cae(s.get("value"),o),i.node.value.elements.push(e.node),e.remove(),Iae.renameFile(r,o)},sae.copyFile=(e,t)=>{const n=Vae(t),r=Vae(e),i=r.split("/").pop(),s=Tae(n,i),[a,o]=Wae(e),u=Fae([_ae("file"),Oae(s),a&&Lae(o)].filter(Boolean));zae(t,s);Hae(t).node.value.elements.push(u),Iae.copyFile(r,s)},sae.createFile=(e,t,n)=>{zae(e,t);const r=Hae(e),i=Vae(e),s=Tae(i,t),a=[_ae("file"),Oae(s),n&&Lae(n)].filter(Boolean);r.node.value.elements.push(Fae(a));const o=r.get("value.elements").at(-1);return Mae(n)&&Qae(o,n),o};const Hae=e=>wae(e,"files");function Yae(e){return"directory"!==Kae(e)?[]:Hae(e).get("value.elements")}function Gae(e,t){const n=Hae(e),r=Vae(e),i=Tae(r,t),s=_ae("directory"),a=Nae([]),o=Oae(i);return n.node.value.elements.push(Fae([s,o,a])),Iae.createDirectory(i),n.get("value.elements").at(-1)}function Qae(e,t){if("directory"===Kae(e))return;const n=Vae(e);Iae.writeFileContent(n,t);const r=wae(e,"content");if(r)return void Cae(r.node.value,Rae(t));const i=Lae(Rae(t));e.node.properties.push(i)}function Zae(e){let t=Uae(e);if(!t)return e;let n=t;for(;t=Uae(t);)n=t;return n}sae.readDirectory=Yae,sae.createDirectory=Gae,sae.readFileContent=e=>{if("directory"===Kae(e))return"";const[t,n]=Wae(e);if(t)return(e=>{if(e.includes(" "))return e;const[t,n]=Aae(atob,e);return t?e:unescape(n)})(n);const r=Vae(e),i=Iae.readFileContent(r),s=Lae(Rae(i));return e.node.properties.push(s),i},sae.writeFileContent=Qae,sae.createNestedDirectory=(e,t)=>{const n=Zae(e);if(vae(t)===Vae(e))return Gae(e,Eae(t));let r=t;const i=Vae(n),s=[];let a=r;for(;r!==i;)if(s.unshift(r),a=r,r=vae(r),r===a){r=i;for(const[e,t]of s.entries())s[e]=Tae(i,t);s.shift();break}let o=$ae(n,s).at(-1)||n;const u=Vae(o),c=s.length;let l=s.indexOf(u)+1;for(;l<c;l++){o=Gae(o,Eae(s[l]))}return o},sae.getRootDirectory=Zae,sae.init=Iae.init,sae.deinit=Iae.deinit,sae.pause=Iae.pause,sae.start=Iae.start;var eoe={};const{basename:toe,dirname:noe}=Q6,{types:roe}=rn,{createDirectory:ioe,getFileType:soe,getFilename:aoe,findFile:ooe}=sae,{__filesystem_name:uoe}=G4,{replaceWith:coe,getProperty:loe}=CW,{objectExpression:poe,arrayExpression:doe,stringLiteral:hoe,isArrayExpression:foe,isStringLiteral:moe,isTemplateLiteral:yoe,objectProperty:goe}=roe;eoe.report=()=>"Convert Simple Filesystem to Filesystem";const boe=e=>e.endsWith("/"),xoe=e=>{const t=boe(e)?"directory":"file";return goe(hoe("type"),hoe(t))},Soe=e=>goe(hoe("filename"),hoe(e)),Toe=e=>boe(e)?goe(hoe("files"),doe([])):null,Eoe=e=>goe(hoe("content"),hoe(e));function voe(e,t){if(moe(e))return e.value;if(yoe(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}eoe.fix=e=>{const t=doe([]);for(const n of e.get("elements")){if(foe(n)){const[e,r]=n.node.elements,{value:i}=e,s=voe(r,n);t.elements.push(poe([xoe(i),Soe(i),Eoe(s)]));continue}if(moe(n)){const{value:e}=n.node;t.elements.push(poe([xoe(e),Soe(Poe(e)),Toe(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){const[n,...r]=ooe(t,"*");for(const e of r){const t=aoe(e);Aoe(t);const r=soe(e),i=noe(t),s=toe(t),[a]=ooe(n,i);if(!a||"directory"!==soe(a))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===r){ioe(a,s);continue}loe(a,"files").node.value.elements.push(e.node)}coe(e,n)}(e,t)},eoe.traverse=({push:e})=>({[`${uoe}(__array)`]:t=>{const n=t.get("arguments.0");e(n)}});const Poe=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;function Aoe(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)}var Coe={};const{types:woe}=rn,{replaceWith:koe,getProperty:Ioe}=CW,{__filesystem_name:_oe}=G4,{findFile:Noe,getFilename:Ooe,getFileType:Loe}=sae,{stringLiteral:Doe,arrayExpression:Foe}=woe,{isArray:Moe}=Array,Boe=e=>"/"===e?e:`${e}/`;Coe.report=()=>"Convert Filesystem to Simple Filesystem",Coe.fix=(e,{files:t})=>{const n=[];for(const e of t){const t=Ooe(e),r=Loe(e),i=Ioe(e,"content"),s=i?.node?.value;s?n.push([t,s.value]):"directory"!==r?n.push(t):n.push(Boe(t))}const r=[];for(const e of n)Moe(e)?r.push(Foe([Doe(e[0]),Doe(e[1])])):r.push(Doe(e));koe(e,Foe(r))},Coe.traverse=({push:e})=>({[`${_oe}(__object)`]:t=>{const n=t.get("arguments.0"),r=Noe(n,"*");e(n,{files:r})}});const Roe=XU,{compare:joe}=Kee,{__filesystem_name:Uoe}=G4,{findFile:qoe,pause:$oe,start:Joe}=sae,Voe=Q7("putout:runner:scanner"),Koe=eoe,Woe=Coe;iae.scan=({rule:e,plugin:t,msg:n,options:r},{progress:i})=>{const{scan:s,report:a,fix:o}=t;i.inc();return{rule:e,msg:n,options:r,plugin:{report:a,fix:o,traverse:zoe({scan:s,rule:e,progress:i})}}};const Xoe=({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)},zoe=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${Uoe}(__)`](s){Voe(t),n.start(t);const a=s.get("arguments.0"),o=Roe(!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=qoe(...t),r=n.length;for(const[t,i]of n.entries())e({i:t,n:r}),yield i})(u);Yoe(Koe,{shouldConvert:!0,path:s,isSimple:o}),e(a,{push:Xoe({push:r,rule:t,progress:n}),progress:u,trackFile:c,options:i}),Yoe(Woe,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}}),Hoe=({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n));function Yoe(e,{path:t,isSimple:n,shouldConvert:r=!0}){const{traverse:i,fix:s}=e;if(!r)return;const a=i({push:Hoe({fix:s,isSimple:n})}),[o,u]=function(e){const t=e[`${Uoe}(__object)`],n=e[`${Uoe}(__array)`];return t?[t,`${Uoe}(__object)`]:[n,`${Uoe}(__array)`]}(a);joe(t,u)&&($oe(),o(t),Joe())}const{traverse:Goe}=rn,Qoe=L8,Zoe=Q7("putout:runner:find"),eue=see,tue=Mee,nue=$ee,rue=bie,{createProgress:iue}=xie,{tryThrowWithReason:sue}=Iie,{include:aue}=Nie,{replace:oue,clearWatermark:uue}=Rie,{declare:cue}=Ise,{scan:lue}=iae,{getPath:pue,getPosition:due}=aee,hue=e=>e?.removed;z7.runPlugins=({ast:e,shebang:t,fix:n,fixCount:r=2,plugins:i,progress:s=iue(),traverse:a=Goe})=>{let o=[];const u=Qoe(tue),{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(aue(oue(i))):e.declare?r.push(aue(cue(i))):e.include?r.push(aue(i)):e.scan&&r.push(lue(i,{progress:t}))}return{pluginsFind:n,pluginsTraverse:r}}(i,{progress:s});for(let i=0;i<r;i++){if(o=fue({ast:e,fix:n,shebang:t,pluginsFind:c,pluginsTraverse:l,merge:u,template:rue,traverse:a}),s.reset(),!n||!o.length)return o;uue(e)}return o},z7.getPosition=due;const fue=({ast:e,fix:t,shebang:n,pluginsFind:r,pluginsTraverse:i,template:s,merge:a,traverse:o})=>[...yue({ast:e,fix:t,shebang:n,template:s,pluginsFind:r,traverse:o}),...mue({ast:e,fix:t,shebang:n,template:s,pluginsTraverse:i,merge:a,traverse:o})];function mue({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});sue(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 yue({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){Zoe(`find: ${o}`);const{report:i,find:p}=u,d=sue(nue,{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}=pue(e),p=due(e,n);a.push({rule:o,message:r,position:p}),hue(s)||eue(t,u.fix,{path:e,rule:o,position:p,options:l})}}return a}const gue=M6,bue=z7,{createProgress:xue}=xie;F6.defaultOptions=(e={})=>{const{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=3,loadPlugins:s=gue.loadPlugins,loadPluginsAsync:a=gue.loadPluginsAsync,runPlugins:o=bue.runPlugins,progress:u=xue()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:u}};var Sue={};const Tue=e=>e.replace(/\s\(\d:\d+\)/,""),Eue=s6,{validateRulesRelations:vue}=M6,{defaultOptions:Pue}=F6,{cutShebang:Aue}=D6,Cue=(e,t="parser")=>{const{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:Tue(e.message),position:{line:n,column:r}}]},wue=e=>e?Cue(e,"loader"):[];Sue.transform=(e,t,n)=>{n=Pue(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPlugins:u,runPlugins:c,progress:l}=n,[,p]=Aue(t),[d]=Eue(vue,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:u({pluginNames:r,cache:i,rules:s}),progress:l});return[...wue(d),...h]},Sue.transformAsync=async(e,t,n)=>{n=Pue(n);const{plugins:r,cache:i,rules:s,fix:a,fixCount:o,loadPluginsAsync:u,runPlugins:c,progress:l}=n,[,p]=Aue(t),[d]=Eue(vue,{rules:s,pluginNames:r}),h=c({ast:e,shebang:p,fix:a,fixCount:o,plugins:await u({pluginNames:r,cache:i,rules:s}),progress:l});return[...wue(d),...h]};var kue={};const{transform:Iue,transformAsync:_ue}=Sue;kue.findPlaces=(e,t,n)=>Iue(e,t,{...n,fix:!1}),kue.findPlacesAsync=async(e,t,n)=>await _ue(e,t,{...n,fix:!1});const{isArray:Nue}=Array,Oue=()=>{};var Lue=()=>{let e=0,t=0;return async(n,r)=>{const{name:i,rule:s,source:a,places:o,index:u=0,count:c=1,trace:l=Oue,formatterOptions:p={}}=r;if(!Nue(o))throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof o}'`);return o.length&&++e,t+=o.length,l("progress",{rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t}),await n({rule:s,name:i,options:p,source:a,places:o,index:u,count:c,filesCount:e,errorsCount:t})}},Due={};const{types:Fue,traverse:Mue}=rn,{compare:Bue,parseTemplate:Rue,isTemplate:jue,getTemplateValues:Uue}=Kee,{isFile:que,isProgram:$ue}=Fue,{merge:Jue}=Mue.visitors,{entries:Vue}=Object;Due.traverse=Xue;const Kue=e=>{if((e=>Boolean(e.node))(e))return e.traverse.bind(e);const t=!que(e)&&!$ue(e);return n=>{Mue(e,{noScope:t,...n})}},Wue=([e])=>e;function Xue(e,t){const n=Kue(e),r=[],i=Vue(t);if(!i.map(Wue).find(jue))return n(t);for(const[e,t]of i){if(!jue(e)){r.push({[e]:t});continue}const[n,i]=Rue(e),s=zue({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(Jue(r))}const zue=({fn:e,node:t,tmpl:n})=>r=>{Bue(r,t)&&e(r,Uue(r.node,n))};Due.contains=(e,t)=>{let n=!1;const r=e=>{n=!0,e.stop()},i={};for(const e of t)i[e]=r;return Xue(e,i),n};var Hue={};const{setLiteralValue:Yue}=CW,{types:Gue}=rn,{isJSXElement:Que}=Gue;function Zue(e,t){let n=null;const r=e.node||e,{attributes:i}=r.openingElement;for(const e of i)if(e.name.name===t){n=e;break}return n}Hue.hasTagName=(e,t)=>{const n=e.node||e;return!!Que(e)&&n.openingElement.name.name===t},Hue.getAttributePath=(e,t)=>{const n=e.get("openingElement.attributes");for(const e of n)if(e.node.name.name===t)return e;return null},Hue.getAttributeNode=Zue,Hue.getAttributeValue=(e,t)=>{const n=Zue(e,t);return n?n.value.value:""},Hue.addAttributeValue=(e,t,n)=>{const r=Zue(e,t);r.value.value.includes(n)||Yue(r.value,`${r.value.value} ${n}`)},Hue.removeAttributeValue=(e,t,n)=>{if(!e)return;const r=Zue(e.node||e,t),{value:i}=r.value;i.includes(n)&&Yue(r.value,i.replace(RegExp(`\\s?${n}`),""))},Hue.setAttributeValue=(e,t,n)=>{const r=Zue(e,t);r&&Yue(r.value,n)};var ece={_hasUFlag:!1,shouldRun:function(e){var t=e.flags.includes("s");return!!t&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var n="\\uFFFF",r="";this._hasUFlag&&(n="\\u{10FFFF}",r=""),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:n,kind:"unicode",symbol:r}}]})}}},tce={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},nce={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}},rce={dotAll:ece,namedCapturingGroups:tce,xFlag:nce};function ice(e){return e?sce[e.type](e):""}var sce={RegExp:function(e){return"/"+ice(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(ice).join("")},Disjunction:function(e){return ice(e.left)+"|"+ice(e.right)},Group:function(e){var t=ice(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=ice(e.assertion);return e.negative?"(?!"+t+")":"(?="+t+")";case"Lookbehind":var n=ice(e.assertion);return e.negative?"(?<!"+n+")":"(?<="+n+")";default:throw new TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(ice).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return ice(e.from)+"-"+ice(e.to)},Repetition:function(e){return""+ice(e.expression)+ice(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+"}"}},ace={generate:ice},oce={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},uce=mce(oce),cce={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"},lce=mce(cce),pce={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"},dce=mce(pce),hce={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"},fce=mce(hce);function mce(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 yce(e){return pce.hasOwnProperty(e)||dce.hasOwnProperty(e)}function gce(e){return hce.hasOwnProperty(e)||fce.hasOwnProperty(e)}var bce={isAlias:function(e){return uce.hasOwnProperty(e)||lce.hasOwnProperty(e)},isValidName:function(e){return oce.hasOwnProperty(e)||uce.hasOwnProperty(e)||cce.hasOwnProperty(e)||lce.hasOwnProperty(e)},isValidValue:function(e,t){return function(e){return"General_Category"===e||"gc"==e}(e)?yce(t):!!function(e){return"Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e}(e)&&gce(t)},isGeneralCategoryValue:yce,isScriptCategoryValue:gce,isBinaryPropertyName:function(e){return cce.hasOwnProperty(e)||lce.hasOwnProperty(e)},getCanonicalName:function(e){return uce.hasOwnProperty(e)?uce[e]:lce.hasOwnProperty(e)?lce[e]:null},getCanonicalValue:function(e){return dce.hasOwnProperty(e)?dce[e]:fce.hasOwnProperty(e)?fce[e]:lce.hasOwnProperty(e)?lce[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:oce,NON_BINARY_ALIASES_TO_PROP_NAMES:uce,BINARY_PROP_NAMES_TO_ALIASES:cce,BINARY_ALIASES_TO_PROP_NAMES:lce,GENERAL_CATEGORY_VALUE_TO_ALIASES:pce,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:dce,SCRIPT_VALUE_TO_ALIASES:hce,SCRIPT_VALUE_ALIASES_TO_VALUE:fce},xce=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 Sce(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 Tce=void 0,Ece={},vce=void 0,Pce=void 0;function Ace(e,t){return Ece.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 Cce=[[-1,1,function(e,t){Pce=Ace(t,t),vce=e}],[0,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),vce=Yce({type:"RegExp",body:t,flags:Jce(r)},Gce(i,o||a))}],[1,1,function(e,t){Pce=Ace(t,t),vce=e}],[1,0,function(){Pce=null,vce=""}],[2,1,function(e,t){Pce=Ace(t,t),vce=e}],[2,2,function(e,t,n,r){Pce=Ace(n,r),vce=e+t}],[3,1,function(e,t){Pce=Ace(t,t),vce=e}],[4,1,function(e,t){Pce=Ace(t,t),vce=e}],[4,3,function(e,t,n,r,i,s){Pce=Ace(r,s);var a=null;i&&(a=Gce(r||i,s||i)),vce=Yce({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){Pce=Ace(t,t),vce=0!==e.length?1===e.length?Yce(e[0],Pce):Yce({type:"Alternative",expressions:e},Pce):null}],[6,0,function(){Pce=null,vce=[]}],[6,2,function(e,t,n,r){Pce=Ace(n,r),vce=e.concat(t)}],[7,1,function(e,t){Pce=Ace(t,t),vce=Yce(Object.assign({type:"Assertion"},e),Pce)}],[7,2,function(e,t,n,r){Pce=Ace(n,r),vce=e,t&&(vce=Yce({type:"Repetition",expression:e,quantifier:t},Pce))}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"^"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"$"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"\\b"}}],[8,1,function(e,t){Pce=Ace(t,t),vce={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[9,1,function(e,t){Pce=Ace(t,t),vce=e}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"simple",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),(vce=qce(e.slice(1),"simple",Pce)).escaped=!0}],[10,1,function(e,t){Pce=Ace(t,t),(vce=qce(e,"unicode",Pce)).isSurrogatePair=!0}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"unicode",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=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&&Uce.isGeneralCategoryValue(i),o=-1===r&&Uce.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!Uce.isValidName(i))throw new SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(r+1,-1),!Uce.isValidValue(i,s))throw new SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return Yce({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:Uce.getCanonicalName(i)||i,canonicalValue:Uce.getCanonicalValue(s)||s},t)}(e,Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"control",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"hex",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"oct",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=function(e,t){var n=Number(e.slice(1));if(n>0&&n<=Fce)return Yce({type:"Backreference",kind:"number",number:n,reference:n},t);return qce(e,"decimal",t)}(e,Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}],[10,1,function(e,t){Pce=Ace(t,t),vce=function(e,t){var n=e.slice(3,-1),r=Hce(n);if(Mce.hasOwnProperty(r))return Yce({type:"Backreference",kind:"name",number:Mce[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=[qce(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(Vce))||(p=e.match(Kce))?(i&&(c={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),l.push(qce(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(qce(p[0],"simple",c)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){Pce=Ace(t,t),vce=e}],[11,0],[12,1,function(e,t){Pce=Ace(t,t),vce=e}],[12,2,function(e,t,n,r){Pce=Ace(n,r),e.greedy=!1,vce=e}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:e,greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t);var n=Rce(e);vce=Yce({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t),vce=Yce({type:"Quantifier",kind:"Range",from:Rce(e)[0],greedy:!0},Pce)}],[13,1,function(e,t){Pce=Ace(t,t);var n=Rce(e);vce=Yce({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},Pce)}],[14,1,function(e,t){Pce=Ace(t,t),vce=e}],[14,1,function(e,t){Pce=Ace(t,t),vce=e}],[15,3,function(e,t,n,r,i,s){Pce=Ace(r,s);var a=String(e),o=Hce(a);if(!Ece.options.allowGroupNameDuplicates&&Mce.hasOwnProperty(o))throw new SyntaxError('Duplicate of the named group "'+o+'".');Mce[o]=e.groupNumber,vce=Yce({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},Pce)}],[15,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"Group",capturing:!0,number:e.groupNumber,expression:t},Pce)}],[16,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"Group",capturing:!1,expression:t},Pce)}],[17,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"CharacterClass",negative:!0,expressions:t},Pce)}],[17,3,function(e,t,n,r,i,s){Pce=Ace(r,s),vce=Yce({type:"CharacterClass",expressions:t},Pce)}],[18,0,function(){Pce=null,vce=[]}],[18,1,function(e,t){Pce=Ace(t,t),vce=e}],[19,1,function(e,t){Pce=Ace(t,t),vce=[e]}],[19,2,function(e,t,n,r){Pce=Ace(n,r),vce=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),jce(e,n),vce=[Yce({type:"ClassRange",from:e,to:n},Gce(i,a))],r&&(vce=vce.concat(r))}],[20,1,function(e,t){Pce=Ace(t,t),vce=e}],[20,2,function(e,t,n,r){Pce=Ace(n,r),vce=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){Pce=Ace(i,o),jce(e,n),vce=[Yce({type:"ClassRange",from:e,to:n},Gce(i,a))],r&&(vce=vce.concat(r))}],[21,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"simple",Pce)}],[21,1,function(e,t){Pce=Ace(t,t),vce=e}],[22,1,function(e,t){Pce=Ace(t,t),vce=e}],[22,1,function(e,t){Pce=Ace(t,t),vce=qce(e,"meta",Pce)}]],wce={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"},kce=[{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"}],Ice=[],_ce=void 0,Nce=[[/^#[^\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 Xce(Tce.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&&"\\-"===Tce)return"ESC_CHAR";if("u"===e||"xu"===e||"u_class"===e)throw new SyntaxError("invalid Unicode escape "+Tce);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 Xce(Tce=Tce.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"}]],Oce={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]},Lce={type:"$",value:""};_ce={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(Lce);for(var e=this._string.slice(this._cursor),t=Oce[this.getCurrentState()],n=0;n<t.length;n++){var r=t[n],i=Nce[r],s=this._match(e,i[0]);if(""===e&&""===s&&this._cursor++,null!==s){(Tce=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,Sce(u))}return this.onToken(this._toToken(a,Tce))}}if(this.isEOF())return this._cursor++,Lce;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}},Ece.lexer=_ce,Ece.tokenizer=_ce,Ece.options={captureLocations:!0};var Dce={setOptions:function(e){return Ece.options=e,this},getOptions:function(){return Ece.options},parse:function(e,t){if(!_ce)throw new Error("Tokenizer instance wasn't specified.");_ce.initString(e);var n=Ece.options;t&&(Ece.options=Object.assign({},Ece.options,t)),Dce.onParseBegin(e,_ce,Ece.options),Ice.length=0,Ice.push(0);var r=_ce.getNextToken(),i=null;do{r||(Ece.options=n,Zce());var s=Ice[Ice.length-1],a=wce[r.type];kce[s].hasOwnProperty(a)||(Ece.options=n,Qce(r));var o=kce[s][a];if("s"===o[0]){var u=null;Ece.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),Ice.push({symbol:wce[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),r=_ce.getNextToken()}else if("r"===o[0]){var c=o.slice(1),l=Cce[c],p="function"==typeof l[2],d=p?[]:null,h=p&&Ece.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){Ice.pop();var m=Ice.pop();p&&(d.unshift(m.semanticValue),h&&h.unshift(m.loc))}var y={symbol:l[0]};if(p){Tce=i?i.value:null,i&&i.value.length;var g=null!==h?d.concat(h):d;l[2].apply(l,Sce(g)),y.semanticValue=vce,h&&(y.loc=Pce)}var b=Ice[Ice.length-1],x=l[0];Ice.push(y,kce[b][x])}else if("acc"===o){Ice.pop();var S=Ice.pop();return(1!==Ice.length||0!==Ice[0]||_ce.hasMoreTokens())&&(Ece.options=n,Qce(r)),S.hasOwnProperty("semanticValue")?(Ece.options=n,Dce.onParseEnd(S.semanticValue),S.semanticValue):(Dce.onParseEnd(),Ece.options=n,!0)}}while(_ce.hasMoreTokens()||Ice.length>1)},setTokenizer:function(e){return _ce=e,Dce},getTokenizer:function(){return _ce},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},Fce=0,Mce={},Bce="";function Rce(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw new SyntaxError("Numbers out of order in "+e+" quantifier");return t}function jce(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")}Dce.onParseBegin=function(e,t){Bce=e,Fce=0,Mce={};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"))},Dce.onShift=function(e){return"L_PAREN"!==e.type&&"NAMED_CAPTURE_GROUP"!==e.type||(e.value=new String(e.value),e.value.groupNumber=++Fce),e};var Uce=bce;function qce(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=xce(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 Yce({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var $ce="gimsuxy";function Jce(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)||!$ce.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 Vce=/^\\u[0-9a-fA-F]{4}/,Kce=/^\\u\{[0-9a-fA-F]{1,}\}/,Wce=/\\u\{[0-9a-fA-F]{1,}\}/;function Xce(e,t){if(Wce.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw new SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var zce=/\\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 Hce(e){return e.replace(new RegExp(zce,"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 Yce(e,t){return Ece.options.captureLocations&&(e.loc={source:Bce.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 Gce(e,t){return Ece.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function Qce(e){"$"===e.type&&Zce(),_ce.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function Zce(){!function(e){throw new SyntaxError(e)}("Unexpected end of input.")}var ele=Dce;ele.default;var tle=ele,nle=tle.parse.bind(tle);tle.parse=function(e,t){return nle(""+e,t)},tle.setOptions({captureLocations:!1});var rle=tle;rle.default;var ile=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 sle="expressions",ale="expression",ole=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 ile(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=sle),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=ale),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=sle),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]:sle;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,sle,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,ale):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,ule)===JSON.stringify(e.node,ule)}},{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:ule,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 ule(e,t){if("loc"!==e)return t}ole.initRegistry(),ole.traversingIndexStack=[];var cle=ole;cle.default;var lle=cle;var ple={traverse:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function r(e,t,n,r){var i=lle.getForNode(t);return lle.getForNode(e,i,n,r)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),lle.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.pre,r=t.post,i=t.skipProperty;!function e(t,s,a,o){if(t&&"string"==typeof t.type){var u=void 0;if(n&&(u=n(t,s,a,o)),!1!==u)for(var c in s&&s[a]&&(t=isNaN(o)?s[a]:s[a][o]),t)if(t.hasOwnProperty(c)){if(i?i(c,t):"$"===c[0])continue;var l=t[c];if(Array.isArray(l)){var p=0;for(lle.traversingIndexStack.push(p);p<l.length;)e(l[p],t,c,p),p=lle.updateTraversingIndex(1);lle.traversingIndexStack.pop()}else e(l,t,c)}r&&r(t,s,a,o)}}(e,null)}(e,{pre:function(e,i,s,a){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if("function"==typeof h["*"])if(o){if(!o.isRemoved())if(!1===h["*"](o))return!1}else h["*"](e,i,s,a);var f=void 0;if("function"==typeof h[e.type]?f=h[e.type]:"object"==typeof h[e.type]&&"function"==typeof h[e.type].pre&&(f=h[e.type].pre),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}},post:function(e,i,s,a){if(e){var o=void 0;n.asNodes||(o=r(e,i,s,a));var u=!0,c=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value,f=void 0;if("object"==typeof h[e.type]&&"function"==typeof h[e.type].post&&(f=h[e.type].post),f)if(o){if(!o.isRemoved())if(!1===f.call(h,o))return!1}else f.call(h,e,i,s,a)}}catch(e){c=!0,l=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw l}}}},skipProperty:function(e){return"loc"===e}})}},dle=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 hle=ace,fle=rle,mle=ple,yle=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=n}return dle(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=hle.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=hle.generate(this._ast)),this._string}}]),e}(),gle={TransformResult:yle,transform:function(e,t){var n=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(n=fle.parse(e,{captureLocations:!0})),mle.traverse(n,t),new yle(n)}},ble=rce,xle=gle,Sle={transform:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length>0?t:Object.keys(ble),r=void 0,i={};return n.forEach(function(t){if(!ble.hasOwnProperty(t))throw new Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(ble).join(", "));var n=ble[t];r=xle.transform(e,n),e=r.getAST(),"function"==typeof n.getExtra&&(i[t]=n.getExtra())}),r.setExtra(i),r}},Tle={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)}},Ele="A".codePointAt(0),vle="Z".codePointAt(0),Ple="a".codePointAt(0),Ale="z".codePointAt(0),Cle="0".codePointAt(0),wle="9".codePointAt(0),kle={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>=Cle&&t.codePoint<=wle&&n.codePoint>=Cle&&n.codePoint<=wle||t.codePoint>=Ele&&t.codePoint<=vle&&n.codePoint>=Ele&&n.codePoint<=vle||t.codePoint>=Ple&&t.codePoint<=Ale&&n.codePoint>=Ple&&n.codePoint<=Ale}(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 Ile="A".codePointAt(0),_le="Z".codePointAt(0),Nle={_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>=Ile&&t.codePoint<=_le&&n.codePoint>=Ile&&n.codePoint<=_le}(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 Ole={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))}},Lle=Ole.increaseQuantifierByOne,Dle={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=Mle(n.node.quantifier),i=r.from,s=r.to,a=Mle(t.quantifier),o=a.from,u=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!Fle(n.node.quantifier)&&!Fle(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&u?t.quantifier.to=s+u:delete t.quantifier.to,(Fle(n.node.quantifier)||Fle(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;Lle(t.quantifier),n.remove()}}}};function Fle(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function Mle(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 Ble={Quantifier:function(e){"Range"===e.node.kind&&(function(e){var t=e.node;if(0!==t.from||t.to)return;t.kind="*",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||t.to)return;t.kind="+",delete t.from}(e),function(e){var t=e.node;if(1!==t.from||1!==t.to)return;e.parentPath.replace(e.parentPath.node.expression)}(e))}};function Rle(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var jle={_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){$le(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&&Jle(r,383)?u=e.getChild(l):t&&n&&Jle(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<Ule.length||!Ule.every(function(e){return t.expressions.some(function(t){return e(t)})}))return;var n=t.expressions.find(function(e){return $le(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,t.expressions.map(function(t,n){return Ule.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}(e)}};var Ule=[function(e){return qle(e," ")}].concat(Rle(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return $le(t,e)}})),Rle([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return Jle(t,e)}})),[function(e){return"ClassRange"===e.type&&Jle(e.from,8192)&&Jle(e.to,8202)}]);function qle(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 $le(e,t){return qle(e,t,"meta")}function Jle(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}var Vle={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||Kle(r)})}}};function Kle(e){return/[*[()+?$./{}|]/.test(e)}var Wle={_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=Xle(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(zle(i,"}"))return!0;if(zle(i,","))return zle(i=(r=r+(n=Xle(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=Xle(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];if(n&&zle(i,"{"))return!0;if(zle(i,","))return i=(r=r-(n=Xle(r-1,t,!0))-1)<t.expressions.length&&t.expressions[r],n&&zle(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 Xle(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 zle(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}var Hle={_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){Qle(e)&&n.push(e.value)}),t.sort(Yle);for(var r=0;r<t.length;r++){var i=t[r];if(epe(i,n,this._hasIUFlags)||spe(i,t[r-1])||ape(i,t[r+1]))t.splice(r,1),r--;else{var s=upe(i,r,t);t.splice(r-s+1,s),r-=s}}}};function Yle(e,t){var n=Gle(e),r=Gle(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 Gle(e.to)-Gle(t.to);if(Qle(e)&&Qle(t)||Zle(e)&&Zle(t))return e.value<t.value?-1:1}return n-r}function Gle(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 Qle(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 Zle(e){return"Char"===e.type&&"control"===e.kind}function epe(e,t,n){for(var r=0;r<t.length;r++)if(tpe(e,t[r],n))return!0;return!1}function tpe(e,t,n){return"ClassRange"===e.type?tpe(e.from,t,n)&&tpe(e.to,t,n):!("\\S"!==t||!Qle(e,"\\w")&&!Qle(e,"\\d"))||(!("\\D"!==t||!Qle(e,"\\W")&&!Qle(e,"\\s"))||(!("\\w"!==t||!Qle(e,"\\d"))||(!("\\W"!==t||!Qle(e,"\\s"))||"Char"===e.type&&!isNaN(e.codePoint)&&("\\s"===t?npe(e):"\\S"===t?!npe(e):"\\d"===t?rpe(e):"\\D"===t?!rpe(e):"\\w"===t?ipe(e,n):"\\W"===t&&!ipe(e,n)))))}function npe(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 rpe(e){return e.codePoint>=48&&e.codePoint<=57}function ipe(e,t){return rpe(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function spe(e,t){if(t&&"ClassRange"===t.type){if(ope(e,t))return!0;if(cpe(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 ape(e,t){return!(!t||"ClassRange"!==t.type||!cpe(e)||t.from.codePoint!==e.codePoint+1)&&(t.from=e,!0)}function ope(e,t){return("Char"!==e.type||!isNaN(e.codePoint))&&("ClassRange"===e.type?ope(e.from,t)&&ope(e.to,t):e.codePoint>=t.from.codePoint&&e.codePoint<=t.to.codePoint)}function upe(e,t,n){if(!cpe(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(!cpe(s)||s.codePoint!==i.codePoint-1)break;r++,t--}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}function cpe(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(ipe(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var lpe=cle,ppe=Ole.disjunctionToList,dpe=Ole.listToDisjunction,hpe={Disjunction:function(e){var t=e.node,n={},r=ppe(t).filter(function(e){var t=e?lpe.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(dpe(r))}},fpe={Disjunction:function(e){var t=e.node,n=e.parent;if(mpe[n.type]){var r=new Map;if(ype(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};mpe[n.type](e.getParent(),i)}}}},mpe={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 ype(e,t){if(!e)return!1;var n=e.type;if("Disjunction"===n){var r=e.left,i=e.right;return ype(r,t)&&ype(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 ype(e,t)})}function gpe(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 bpe={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(gpe(n.expressions.slice(0,e.index)),gpe(r.node.expressions),gpe(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}};function xpe(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 Spe=cle,Tpe=Ole.increaseQuantifierByOne,Epe={Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,vpe(e,r,n)))>=t.expressions.length)break;if(r=e.getChild(n),(n=Math.max(1,Ppe(e,r,n)))>=t.expressions.length)break;r=e.getChild(n),n=Math.max(1,Ape(e,r,n)),n++}}};function vpe(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(r.expressions.slice(n-s,n)),[t.node])}),u=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(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 Ppe(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var u=i;u<n;u++)e.getChild(i+1).remove();return Tpe(s.node.quantifier),i}}i++}return n}function Ape(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=Spe.getForNode({type:"Alternative",expressions:[].concat(xpe(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 Tpe(t.node.quantifier),n-a}}return n}var Cpe=new Map([["charSurrogatePairToSingleUnicode",Tle],["charCodeToSimpleChar",kle],["charCaseInsensitiveLowerCaseTransform",Nle],["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",Dle],["quantifierRangeToSymbol",Ble],["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",jle],["charClassToSingleChar",Vle],["charEscapeUnescape",Wle],["charClassClassrangesMerge",Hle],["disjunctionRemoveDuplicates",hpe],["groupSingleCharsToCharClass",fpe],["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",bpe],["combineRepeatingPatterns",Epe]]);Cpe.default;var wpe=function e(t){if(null===t||"object"!=typeof t)return t;var n=void 0;for(var r in n=Array.isArray(t)?[]:{},t)n[r]=e(t[r]);return n},kpe=rle,Ipe=gle,_pe=Cpe,Npe={optimize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.whitelist,r=void 0===n?[]:n,i=t.blacklist,s=void 0===i?[]:i,a=(r.length>0?r:Array.from(_pe.keys())).filter(function(e){return!s.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=kpe.parse(e));var u=new Ipe.TransformResult(o),c=void 0;do{c=u.toString(),o=wpe(u.getAST()),a.forEach(function(e){if(!_pe.has(e))throw new Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(_pe.keys()).join(", "));var t=_pe.get(e),n=Ipe.transform(o,t);n.toString()!==u.toString()&&(n.toString().length<=u.toString().length?u=n:o=wpe(u.getAST()))})}while(u.toString()!==c);return u}},Ope={EPSILON:"ε",EPSILON_CLOSURE:"ε*"},Lpe=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")},Dpe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Fpe=Ope.EPSILON,Mpe=Ope.EPSILON_CLOSURE,Bpe=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 Dpe(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!==Mpe&&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=Lpe(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][Fpe],e._transitionTable[t.number][Mpe]=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),Rpe=Bpe;Rpe.default;var jpe=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 Upe(e){return Array.isArray(e)?e:Array.from(e)}function qpe(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 $pe=null;function Jpe(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(qpe(r)).sort().join(",")!==[].concat(qpe(i)).sort().join(","))return!1}return!0}function Vpe(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(!Kpe(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 Kpe(e,t,n,r){if(!$pe[e]||!$pe[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||$pe[e].has(i)&&$pe[t].has(s)}var Wpe={minimize:function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();$pe={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?$pe[e]=i:(s.add(e),$pe[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=Upe(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,v=!1,P=void 0;try{for(var A,C=Object.keys(d)[Symbol.iterator]();!(E=(A=C.next()).done);E=!0){var w=A.value;if(Vpe(T,w,t,r)){d[w].add(T),d[T]=d[w];continue e}}}catch(e){v=!0,P=e}finally{try{!E&&C.return&&C.return()}finally{if(v)throw P}}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}}$pe=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(qpe(k))),o=a[a.length-1],u=a[a.length-2]};!Jpe(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=jpe(S,2),E=T[0],v=T[1];d[v]={};var P=!0,A=!1,C=void 0;try{for(var w,k=r[Symbol.iterator]();!(P=(w=k.next()).done);P=!0){var I=w.value;f(E,v);var _=void 0,N=!0,O=!1,L=void 0;try{for(var D,F=E[Symbol.iterator]();!(N=(D=F.next()).done);N=!0){var M=D.value;if(_=t[M][I])break}}catch(e){O=!0,L=e}finally{try{!N&&F.return&&F.return()}finally{if(O)throw L}}_&&(d[v][I]=l.get($pe[_]))}}catch(e){A=!0,C=e}finally{try{!P&&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}},Xpe=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 zpe(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 Hpe=Wpe,Ype=Ope.EPSILON_CLOSURE,Gpe=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 Xpe(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,Hpe.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]][Ype]],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 v=!0,P=!1,A=void 0;try{for(var C,w=E[Symbol.iterator]();!(v=(C=w.next()).done);v=!0){var k=C.value;t[k]&&y.push.apply(y,zpe(t[k][Ype]))}}catch(e){P=!0,A=e}finally{try{!v&&w.return&&w.return()}finally{if(P)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(zpe(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}(),Qpe=Gpe;Qpe.default;var Zpe=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 ede=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 Zpe(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}(),tde=ede;tde.default;var nde=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 rde=tde,ide=Ope.EPSILON,sde=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,rde),nde(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(ide)[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(ide)[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(ide),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}(),ade=sde;ade.default;var ode=Rpe,ude=ade,cde=Ope.EPSILON;function lde(e){var t=new ude,n=new ude({accepting:!0});return new ode(t.addTransition(e,n),n)}function pde(e,t){return e.out.accepting=!1,t.out.accepting=!0,e.out.addTransition(cde,t.in),new ode(e.in,t.out)}function dde(e,t){var n=new ude,r=new ude;return n.addTransition(cde,e.in),n.addTransition(cde,t.in),r.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition(cde,r),t.out.addTransition(cde,r),new ode(n,r)}var hde={alt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=pde(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},char:lde,e:function(){return lde(cde)},or:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=!0,s=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){e=dde(e,o.value)}}catch(e){s=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw a}}return e},rep:function(e){return e.in.addTransition(cde,e.out),e.out.addTransition(cde,e.in),e},repExplicit:function(e){var t=new ude,n=new ude({accepting:!0});return t.addTransition(cde,e.in),t.addTransition(cde,n),e.out.accepting=!1,e.out.addTransition(cde,n),n.addTransition(cde,e.in),new ode(t,n)},plusRep:function(e){return e.out.addTransition(cde,e.in),e},questionRep:function(e){return e.in.addTransition(cde,e.out),e}};var fde=rle,mde=hde.alt,yde=hde.char,gde=hde.or,bde=hde.rep,xde=hde.plusRep,Sde=hde.questionRep;function Tde(e){if(e&&!Ede[e.type])throw new Error(e.type+" is not supported in NFA/DFA interpreter.");return e?Ede[e.type](e):""}var Ede={RegExp:function(e){if(""!==e.flags)throw new Error("NFA/DFA: Flags are not supported yet.");return Tde(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(Tde);return mde.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))},Disjunction:function(e){return gde(Tde(e.left),Tde(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return bde(Tde(e.expression));case"+":return xde(Tde(e.expression));case"?":return Sde(Tde(e.expression));default:throw new Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw new Error("NFA/DFA: Only simple chars are supported yet.");return yde(e.value)},Group:function(e){return Tde(e.expression)}},vde={build:function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=fde.parse(e,{captureLocations:!0})),Tde(t)}},Pde=Qpe,Ade=vde,Cde={NFA:Rpe,DFA:Pde,builders:hde,toNFA:function(e){return Ade.build(e)},toDFA:function(e){return new Pde(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},wde=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 kde=function(){function e(t,n){var r=n.flags,i=n.groups,s=n.source;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=i,this.flags=r,this.source=s||t.source,this.dotAll=r.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return wde(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var n in t.groups={},this._groups){var r=this._groups[n];t.groups[n]=t[r]}return t}}]),e}(),Ide=Sle,_de=ace,Nde=Npe,Ode=rle,Lde=gle,Dde=ple,Fde={RegExpTree:kde}.RegExpTree,Mde={parser:Ode,fa:Cde,TransformResult:Lde.TransformResult,parse:function(e,t){return Ode.parse(""+e,t)},traverse:function(e,t,n){return Dde.traverse(e,t,n)},transform:function(e,t){return Lde.transform(e,t)},generate:function(e){return _de.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).blacklist;return Nde.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(e,t){return Ide.transform(e,t)},exec:function(e,t){if("string"==typeof e){var n=this.compatTranspile(e),r=n.getExtra();e=r.namedCapturingGroups?new Fde(n.toRegExp(),{flags:n.getFlags(),source:n.getSource(),groups:r.namedCapturingGroups}):n.toRegExp()}return e.exec(t)}};const Bde=Mde,Rde=({type:e,kind:t})=>"Char"!==e||"simple"!==t;var jde=e=>{let t=!1;const n=Bde.parse(e);return"Alternative"===n.body.type&&(Bde.traverse(n,{RegExp({node:e}){const{expressions:n}=e.body;t=Boolean(n.find(Rde))}}),!t)},Ude={};const qde=Mde;Ude.transformRegExp=(e,{report:t,traverse:n,fix:r})=>{const i=qde.parse(e,{captureLocations:!0}),s=[];return qde.traverse(i,n({push:e=>{const{start:n}=(e.path||e).node.loc;s.push({position:n,message:t(e)}),r(e)}})),[qde.generate(i),s]};const $de=jde,{transformRegExp:Jde}=Ude;var Vde={isSimpleRegExp:$de,transformRegExp:Jde},Kde={};const{compareAny:Wde}=Kee,{template:Xde}=VU,{types:zde}=rn,{isBlockStatement:Hde,isFunction:Yde,isLabeledStatement:Gde,isObjectPattern:Qde,isCallExpression:Zde,objectPattern:ehe,objectProperty:the}=zde,{entries:nhe}=Object,rhe=!0,ihe=e=>e.isCallExpression()||e.isStatement(),she=e=>Zde(e.find(ihe)),ahe=({name:e})=>`Argument '${e}' is missing`;Kde.addArgs=e=>({report:ahe,fix:ohe,traverse:uhe(e)});const ohe=({declaration:e,path:t,pattern:n,params:r,index:i})=>{const s=Xde.ast.fresh(e);if(Hde(s)){const e=function(e){if(!Gde(e)){const{expression:t}=e;return the(t,t,!1,rhe)}const{label:t,body:n}=e;return the(t,n.expression,!1,rhe)}(s.body[0]);return n.properties.push(e),Qde(r[i])?void 0:r.push(n)}t.scope.block.params=[s]},uhe=e=>({push:t,options:n})=>{const r={...n.args,...e};return{ReferencedIdentifier(e){for(const[n,[i,s,a]]of nhe(r)){if(e.node.name!==n)continue;if(e.scope.hasBinding(n))continue;if(!she(e))continue;const r=e.find(Yde);if(!r)continue;const{block:o}=r.scope;if(!Wde(e.scope.path,s))continue;if(Wde(e.scope.path,a))continue;const{params:u}=o,[c,l]=che(u);if(Qde(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:ehe([])})}}}};function che(e){for(const[t,n]of e.entries())if(Qde(n))return[t,n];return[-1,null]}var lhe={};const phe=["import","export"],dhe=["const","var","let"],hhe=["if"],fhe=["readonly","implements","declare","module","type"],mhe=["interface","static"],yhe=[...hhe,...dhe,...phe,...mhe,"async","break","continue","for","else","from","return","throw","of","while","class","extends","default"],ghe=[...yhe,"as","await","new","yield","typeof","function"];lhe.isKeyword=e=>ghe.includes(e),lhe.isDeclarationKeyword=e=>dhe.includes(e),lhe.isModuleDeclarationKeyword=e=>phe.includes(e),lhe.isConditionKeyword=e=>hhe.includes(e),lhe.isStatementKeyword=e=>yhe.includes(e),lhe.isTSKeyword=e=>{const t=fhe.includes(e),n=mhe.includes(e);return t||n};var bhe={};const{relative:xhe}=Q6,She=F8,The=e=>!e.indexOf("!"),Ehe=e=>e.replace(/^!/,"");var vhe=(e,t,n={})=>{const r=xhe(e,t),i=She(),s=function(e){for(const[t,n]of e.entries()){const r=e.indexOf(Ehe(n));The(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 Phe=Q6,{parse:Ahe,print:Che}=VU,{transform:whe}=Sue,{findPlaces:khe}=kue,Ihe=vhe,{toJS:_he,fromJS:Nhe}=G4,{readFileContent:Ohe,findFile:Lhe,writeFileContent:Dhe,getFilename:Fhe,createFile:Mhe,removeFile:Bhe,getParentDirectory:Rhe}=sae,{join:jhe}=Phe,Uhe=e=>e&&"object"==typeof e,{entries:qhe}=Object,$he=(e,{message:t})=>t;function Jhe(e,{dirPath:t,matchInputFilename:n,outputFilename:r,matchedJS:i,matchedAST:s,options:a}){whe(s,i,a);const o=function(e,t){if(/\.json$/.test(e)){const e=Che(t);return Nhe(e)}return Che(t)}(r,s),u=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;const i=jhe(Fhe(e),n),[s]=Lhe(e,i);return s||Mhe(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:r,inputFile:e});Dhe(u,o),e!==u&&Bhe(e)}bhe.matchFiles=e=>{const{filename:t}=e,n=e.files??e,r=e.exclude??[];!function(e){for(const[,t]of qhe(e))if(!Uhe(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n);return{fix:Jhe,scan:Vhe({defaultFilename:t,files:n,exclude:r}),report:$he}};const Vhe=({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{const o=[],u=Fhe(r);a.filename=a.filename??n;for(const[n,i]of qhe(e)){const[e]=Whe(n,a),s=Lhe(r,e,t);for(const e of s){const t=Rhe(e),r=Fhe(e),[s,c=s]=Whe(n,{filename:r});Ihe(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=Ohe(a)||"{}",[d,h]=Khe(o,p),f=Xhe(o,l),m=khe(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 Khe(e,t){if(/\.json$/.test(e)){const e=_he(t);return[e,Ahe(e)]}if(/\.(c|m)?ts(x)?$/.test(e)){return[t,Ahe(t,{isTS:!0})]}return[t,Ahe(t)]}function Whe(e,t){const{filename:n}=t;if(!n)return e.split(" -> ");const{ext:r,name:i}=Phe.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}function Xhe(e,t){if(t.plugins)return t;return{plugins:[[`match-file: ${e}`,t]]}}var zhe={};const{join:Hhe}=Q6,{getParentDirectory:Yhe,getFilename:Ghe,readFileContent:Qhe,findFile:Zhe,renameFile:efe}=sae,{parse:tfe}=JSON;zhe.renameFiles=({type:e,mask:t,rename:n})=>({report:nfe,fix:rfe,scan:ife({type:e,mask:t,rename:n})});const nfe=(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`,rfe=(e,{to:t})=>{efe(e,t)},ife=({type:e,mask:t,rename:n})=>(r,{push:i,trackFile:s})=>{for(const a of s(r,t)){if(e&&!sfe(e,a))continue;const t=Ghe(a);i(a,{from:t,to:n(t)})}};function sfe(e,t){const n=function(e){let t,n=Yhe(e);do{const e=Ghe(n);[t]=Zhe(n,Hhe(e,"package.json"))}while(!t&&(n=Yhe(n)));return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;const r=Qhe(n);if(!r)return!1;return(tfe(r).type||"commonjs")===e}var afe={};const{types:ofe}=rn,{traverseProperties:ufe}=CW,{stringLiteral:cfe}=ofe,lfe=({value:e})=>e;afe.ignore=(e,{name:t,property:n,list:r})=>{const[,i]=e.split(/\(|\)/);return{report:pfe(t),match:dfe({type:e,property:n,collector:i,list:r}),replace:hfe({type:e,property:n,collector:i,list:r})}};const pfe=e=>()=>`Add dotfiles to '${e}'`,dfe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=ffe(r,s);return{[e]:e=>{const r=mfe(e,{property:t,collector:n});if(!r)return!1;const i=r.map(lfe);for(const e of a)if(!i.includes(e))return!0;return!1}}},hfe=({type:e,property:t,collector:n,list:r})=>({options:i})=>{const{dismiss:s=[]}=i,a=ffe(r,s);return{[e]:(e,r)=>{const i=mfe(e,{property:t,collector:n}),s=i.map(lfe);for(const e of a)s.includes(e)||i.push(cfe(e));return r}}};function ffe(e,t){const n=[];for(const r of e)t.includes(r)||n.push(r);return n}function mfe(e,{property:t,collector:n}){const r=e[n];if(!t)return r.elements;const[i]=ufe(r,t);return i?i.node.value.elements:null}var yfe={};const{types:gfe}=rn,{parenthesizedExpression:bfe,tsParenthesizedType:xfe}=gfe;function Sfe(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function Tfe(e,t=Sfe(e)){if("babel"!==t)return e.node.extra?.parenthesized;const{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}yfe.hasParens=Tfe,yfe.addParens=e=>{const t=Sfe(e);if(Tfe(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(xfe(n)):(e.replaceWith(bfe(n)),e)},yfe.removeParens=e=>{const t=Sfe(e);if(!Tfe(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;const{node:n}=e;return e.parentPath.replaceWith(n),e};const{codeFrameColumns:Efe}=rn;var vfe=({source:e,error:t,highlightCode:n=!0})=>{const{message:r,loc:i}=t;if(!i)return r;return Efe(e,{start:i},{highlightCode:n,message:r})};const{traverse:Pfe,types:Afe}=rn,{parse:Cfe,print:wfe,generate:kfe,template:Ife}=VU,{cutShebang:_fe,mergeShebang:Nfe}=D6,{defaultOptions:Ofe}=F6,{transform:Lfe,transformAsync:Dfe}=Sue,{findPlaces:Ffe,findPlacesAsync:Mfe}=kue;n.exports=Rfe;var Bfe=n.exports.putout=Rfe;function Rfe(e,t){eme(e),t=Ofe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=_fe(e),u=Cfe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=Lfe(u,e,t);if(!t.fix)return{code:e,places:c};const l=wfe(u,{printer:s,source:e});return{code:Nfe(o,l),places:c}}var jfe=n.exports.putoutAsync=async(e,t)=>{eme(e),t=Ofe(t);const{parser:n,isTS:r,isJSX:i,printer:s}=t,[a,o]=_fe(e),u=Cfe(a,{parser:n,isTS:r,isJSX:i,printer:s}),c=await Dfe(u,e,t);if(!t.fix)return{code:e,places:c};const l=wfe(u,{printer:s});return{code:Nfe(o,l),places:c}},Ufe=n.exports.transform=Lfe,qfe=n.exports.transformAsync=Dfe,$fe=n.exports.findPlaces=Ffe,Jfe=n.exports.findPlacesAsync=Mfe,Vfe=n.exports.parse=Cfe,Kfe=n.exports.print=wfe,Wfe=n.exports.traverse=Pfe,Xfe=n.exports.types=Afe,zfe=n.exports.template=Ife,Hfe=n.exports.generate=kfe,Yfe=n.exports.initReport=Lue,Gfe=n.exports.operator={...CW,...Kee,...Due,...G4,...Hue,..._se,...Vde,...Kde,...sae,...lhe,...bhe,...zhe,...afe,...yfe},Qfe=n.exports.ignores=vhe,Zfe=n.exports.codeframe=vfe;function eme(e){if(!(e=>"string"==typeof e)(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}var tme=n.exports;export{Zfe as codeframe,tme as default,$fe as findPlaces,Jfe as findPlacesAsync,Hfe as generate,Qfe as ignores,Yfe as initReport,Gfe as operator,Vfe as parse,Kfe as print,Bfe as putout,jfe as putoutAsync,zfe as template,Ufe as transform,qfe as transformAsync,Wfe as traverse,Xfe as types};
|