package c.a.t.a; import com.discord.models.domain.ModelAuditLogEntry; import com.discord.simpleast.core.node.Node; import com.discord.simpleast.core.node.StyleNode; import d0.z.d.m; import java.util.regex.Pattern; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.text.Regex; /* compiled from: JavaScript.kt */ public final class i { public static final String[] a = {"import|export|default|package", "class|enum", "function|super|extends|implements|arguments", "var|let|const|static|get|set|new", "return|break|continue|yield|void", "if|else|for|while|do|switch|async|await|case|try|catch|finally|delete|throw|NaN|Infinity", "of|in|instanceof|typeof", "debugger|with", "true|false|null|undefined"}; public static final String[] b = {"String|Boolean|RegExp|Number|Date|Math|JSON|Symbol|BigInt|Atomics|DataView", "Function|Promise|Generator|GeneratorFunction|AsyncFunction|AsyncGenerator|AsyncGeneratorFunction", "Array|Object|Map|Set|WeakMap|WeakSet|Int8Array|Int16Array|Int32Array|Uint8Array|Uint16Array", "Uint32Array|Uint8ClampedArray|Float32Array|Float64Array|BigInt64Array|BigUint64Array|Buffer", "ArrayBuffer|SharedArrayBuffer", "Reflect|Proxy|Intl|WebAssembly", "console|process|require|isNaN|parseInt|parseFloat|encodeURI|decodeURI|encodeURIComponent", "decodeURIComponent|this|global|globalThis|eval|isFinite|module", "setTimeout|setInterval|clearTimeout|clearInterval|setImmediate|clearImmediate", "queueMicrotask|document|window", "Error|SyntaxError|TypeError|RangeError|ReferenceError|EvalError|InternalError|URIError", "AggregateError|escape|unescape|URL|URLSearchParams|TextEncoder|TextDecoder", "AbortController|AbortSignal|EventTarget|Event|MessageChannel", "MessagePort|MessageEvent|FinalizationRegistry|WeakRef", "regeneratorRuntime"}; /* renamed from: c reason: collision with root package name */ public static final Pattern f240c = Pattern.compile("^/.*?/(?:\\w*)?", 32); public static final Pattern d = Pattern.compile("^<(.*)>"); public static final Pattern e = Pattern.compile("^(?:(?://.*?(?=\\n|$))|(/\\*.*?\\*/))", 32); public static final Pattern f = Pattern.compile("^('[\\s\\S]*?(? extends Node.a { public static final Pattern a = Pattern.compile("^(var|let|const)(\\s+[a-zA-Z_$](?:[a-zA-Z0-9_$])*)", 32); public static final C0045a b = new C0045a(null); /* compiled from: JavaScript.kt */ /* renamed from: c.a.t.a.i$a$a reason: collision with other inner class name */ public static final class C0045a { public C0045a(DefaultConstructorMarker defaultConstructorMarker) { } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(String str, String str2, f fVar) { super(new StyleNode.b(str, fVar.d), new StyleNode.b(str2, fVar.e)); m.checkNotNullParameter(str, "definition"); m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME); m.checkNotNullParameter(fVar, "codeStyleProviders"); } } /* compiled from: JavaScript.kt */ public static final class b extends Node.a { public static final Pattern a = new Regex("^(function\\*?|static|get|set|async)(\\s+[a-zA-Z_$](?:[a-zA-Z0-9_$])*?)?( *?\\(.*?\\))", d0.g0.i.DOT_MATCHES_ALL).toPattern(); public static final a b = new a(null); /* compiled from: JavaScript.kt */ public static final class a { public a(DefaultConstructorMarker defaultConstructorMarker) { } } /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x002a: APUT (r0v4 com.discord.simpleast.core.node.Node[]) (1 ??[boolean, int, float, short, byte, char]) (r1v1 com.discord.simpleast.core.node.StyleNode$b) */ /* JADX WARNING: Illegal instructions before constructor call */ public b(String str, String str2, String str3, f fVar) { super(r0); m.checkNotNullParameter(str, "pre"); m.checkNotNullParameter(str3, "params"); m.checkNotNullParameter(fVar, "codeStyleProviders"); Node[] nodeArr = new Node[3]; nodeArr[0] = new StyleNode.b(str, fVar.d); nodeArr[1] = str2 != null ? new StyleNode.b(str2, fVar.e) : null; nodeArr[2] = new StyleNode.b(str3, fVar.h); } } /* compiled from: JavaScript.kt */ public static final class c extends Node.a { public static final Pattern a = Pattern.compile("^([{\\[,])(\\s*[a-zA-Z0-9_$]*)(:)", 32); public static final a b = new a(null); /* compiled from: JavaScript.kt */ public static final class a { public a(DefaultConstructorMarker defaultConstructorMarker) { } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(String str, String str2, String str3, f fVar) { super(new StyleNode.b(str, fVar.a), new StyleNode.b(str2, fVar.e), new StyleNode.b(str3, fVar.a)); m.checkNotNullParameter(str, "prefix"); m.checkNotNullParameter(str2, "property"); m.checkNotNullParameter(str3, "suffix"); m.checkNotNullParameter(fVar, "codeStyleProviders"); } } }