@elyx-code/project-logic-tree 0.0.6762 → 0.0.6763

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/dist/index.cjs CHANGED
@@ -113,7 +113,7 @@ ${e} | ${"^".padStart(s)}`}function bAi(o,p,i){if(o!==null&&/^\w$/.test(o)){cons
113
113
  `,"\r"],!1,!1),q$=yn([";"],!0,!1),wWe=S("ABORT",!0),OWe=S("ACCESS",!0),CWe=S("ACTION",!0),_We=S("ADD",!0),VWe=S("ADMIN",!0),PWe=S("AFTER",!0),NWe=S("AGAINST",!0),xWe=S("ALL",!0),$We=S("ALTER",!0),LWe=S("ALWAYS",!0),BWe=S("ANALYZE",!0),MWe=S("AND",!0),GWe=S("ANY",!0),kWe=S("ARRAY",!0),jWe=S("AS",!0),UWe=S("ASC",!0),KWe=S("ASSERT",!0),FWe=S("ASSIGNMENT",!0),SWe=S("AT",!0),qWe=S("ATOMIC",!0),ZWe=S("ATTACH",!0),HWe=S("ATTRIBUTE",!0),WWe=S("AUTHORIZATION",!0),zWe=S("AUTO_INCREMENT",!0),JWe=S("AUTOEXTEND_SIZE",!0),YWe=S("AUTOINCREMENT",!0),XWe=S("AVG_ROW_LENGTH",!0),QWe=S("BEFORE",!0),eze=S("BEGIN",!0),tze=S("BERNOULLI",!0),ize=S("BETWEEN",!0),rze=S("BI_CAPACITY",!0),nze=S("BIGDECIMAL",!0),aze=S("BIGINT",!0),sze=S("BIGNUMERIC",!0),lze=S("BINARY",!0),oze=S("BIT",!0),dze=S("BLOB",!0),uze=S("BOOL",!0),pze=S("BOOLEAN",!0),cze=S("BREADTH",!0),fze=S("BREAK",!0),yze=S("BY",!0),hze=S("BYPASSRLS",!0),mze=S("BYTEINT",!0),Tze=S("BYTES",!0),vze=S("CACHE",!0),Eze=S("CALL",!0),bze=S("CALLED",!0),Aze=S("CAPACITY",!0),gze=S("CASCADE",!0),Ize=S("CASCADED",!0),Rze=S("CASE",!0),Dze=S("CAST",!0),wze=S("CENTURY",!0),Oze=S("CHAIN",!0),Cze=S("CHAR",!0),_ze=S("CHARACTER",!0),Vze=S("CHECK",!0),Pze=S("CHECKSUM",!0),Nze=S("CLONE",!0),xze=S("CLUSTER",!0),$ze=S("COLLATE",!0),Lze=S("COLUMN",!0),Bze=S("COLUMN_FORMAT",!0),Mze=S("COLUMNS",!0),Gze=S("COMMENT",!0),kze=S("COMMENTS",!0),jze=S("COMMIT",!0),Uze=S("COMMITTED",!0),Kze=S("COMPACT",!0),Fze=S("COMPRESSED",!0),Sze=S("COMPRESSION",!0),qze=S("CONCURRENTLY",!0),Zze=S("CONFLICT",!0),Hze=S("CONNECT",!0),Wze=S("CONNECTION",!0),zze=S("CONSTRAINT",!0),Jze=S("CONSTRAINTS",!0),Yze=S("CONTINUE",!0),Xze=S("COPY",!0),Qze=S("COST",!0),eJe=S("CREATE",!0),tJe=S("CREATEDB",!0),iJe=S("CREATEROLE",!0),rJe=S("CROSS",!0),nJe=S("CUBE",!0),aJe=S("CUME_DIST",!0),sJe=S("CURRENT",!0),lJe=S("CURRENT_CATALOG",!0),oJe=S("CURRENT_DATE",!0),dJe=S("CURRENT_DATETIME",!0),uJe=S("CURRENT_ROLE",!0),pJe=S("CURRENT_SCHEMA",!0),cJe=S("CURRENT_TIME",!0),fJe=S("CURRENT_TIMESTAMP",!0),yJe=S("CURRENT_USER",!0),hJe=S("CYCLE",!0),mJe=S("DATA",!0),TJe=S("DATABASE",!0),vJe=S("DATE",!0),EJe=S("DATETIME",!0),bJe=S("DAY",!0),AJe=S("DAY_HOUR",!0),gJe=S("DAY_MICROSECOND",!0),IJe=S("DAY_MINUTE",!0),RJe=S("DAY_SECOND",!0),DJe=S("DAYOFWEEK",!0),wJe=S("DAYOFYEAR",!0),OJe=S("DEC",!0),CJe=S("DECADE",!0),_Je=S("DECIMAL",!0),VJe=S("DECLARE",!0),PJe=S("DEFAULT",!0),NJe=S("DEFAULTS",!0),xJe=S("DEFERRABLE",!0),$Je=S("DEFERRED",!0),LJe=S("DEFINER",!0),BJe=S("DELAY_KEY_WRITE",!0),MJe=S("DELAYED",!0),GJe=S("DELETE",!0),kJe=S("DENSE_RANK",!0),jJe=S("DEPENDS",!0),UJe=S("DEPTH",!0),KJe=S("DESC",!0),FJe=S("DESCRIBE",!0),SJe=S("DETACH",!0),qJe=S("DETERMINISTIC",!0),ZJe=S("DIRECTORY",!0),HJe=S("DISABLE",!0),WJe=S("DISK",!0),zJe=S("DISTINCT",!0),JJe=S("DISTINCTROW",!0),YJe=S("DIV",!0),XJe=S("DO",!0),QJe=S("DOMAIN",!0),eYe=S("DOUBLE",!0),tYe=S("DOW",!0),iYe=S("DOY",!0),rYe=S("DROP",!0),nYe=S("DUAL",!0),aYe=S("DUMPFILE",!0),sYe=S("DUPLICATE",!0),lYe=S("DYNAMIC",!0),oYe=S("EACH",!0),dYe=S("ELSE",!0),uYe=S("ELSEIF",!0),pYe=S("ENABLE",!0),cYe=S("ENCLOSED",!0),fYe=S("ENCRYPTED",!0),yYe=S("ENCRYPTION",!0),hYe=S("END",!0),mYe=S("ENFORCED",!0),TYe=S("ENGINE",!0),vYe=S("ENGINE_ATTRIBUTE",!0),EYe=S("ENUM",!0),bYe=S("EPOCH",!0),AYe=S("ERROR",!0),gYe=S("ESCAPE",!0),IYe=S("ESCAPED",!0),RYe=S("EXAMINED",!0),DYe=S("EXCEPT",!0),wYe=S("EXCEPTION",!0),OYe=S("EXCLUDE",!0),CYe=S("EXCLUDING",!0),_Ye=S("EXCLUSIVE",!0),VYe=S("EXECUTE",!0),PYe=S("EXISTS",!0),NYe=S("EXPANSION",!0),xYe=S("EXPLAIN",!0),$Ye=S("EXPORT",!0),LYe=S("EXPRESSION",!0),BYe=S("EXTENDED",!0),MYe=S("EXTENSION",!0),GYe=S("EXTERNAL",!0),kYe=S("EXTRACT",!0),jYe=S("FAIL",!0),UYe=S("FALSE",!0),KYe=S("FETCH",!0),FYe=S("FIELDS",!0),SYe=S("FILES",!0),qYe=S("FILTER",!0),ZYe=S("FIRST",!0),HYe=S("FIRST_VALUE",!0),WYe=S("FIXED",!0),zYe=S("FLOAT",!0),JYe=S("FLOAT64",!0),YYe=S("FOLLOWING",!0),XYe=S("FOR",!0),QYe=S("FORCE",!0),eXe=S("FOREIGN",!0),tXe=S("FORMAT",!0),iXe=S("FRIDAY",!0),rXe=S("FROM",!0),nXe=S("FULL",!0),aXe=S("FULLTEXT",!0),sXe=S("FUNCTION",!0),lXe=S("FUNCTIONS",!0),oXe=S("GENERATED",!0),dXe=S("GEOGRAPHY",!0),uXe=S("GLOB",!0),pXe=S("GLOBAL",!0),cXe=S("GRANT",!0),fXe=S("GRANTED",!0),yXe=S("GROUP",!0),hXe=S("GROUPING",!0),mXe=S("GROUPS",!0),TXe=S("HASH",!0),vXe=S("HAVING",!0),EXe=S("HIGH_PRIORITY",!0),bXe=S("HOUR",!0),AXe=S("HOUR_MICROSECOND",!0),gXe=S("HOUR_MINUTE",!0),IXe=S("HOUR_SECOND",!0),RXe=S("IDENTITY",!0),DXe=S("IF",!0),wXe=S("IGNORE",!0),OXe=S("ILIKE",!0),CXe=S("IMMEDIATE",!0),_Xe=S("IMMUTABLE",!0),VXe=S("IN",!0),PXe=S("INCLUDE",!0),NXe=S("INCLUDING",!0),xXe=S("INCREMENT",!0),$Xe=S("INDEX",!0),LXe=S("INDEXED",!0),BXe=S("INDEXES",!0),MXe=S("INHERIT",!0),GXe=S("INHERITS",!0),kXe=S("INITIALLY",!0),jXe=S("INNER",!0),UXe=S("INOUT",!0),KXe=S("INPUT",!0),FXe=S("INSERT",!0),SXe=S("INSERT_METHOD",!0),qXe=S("INSTEAD",!0),ZXe=S("INT",!0),HXe=S("INT64",!0),WXe=S("INTEGER",!0),zXe=S("INTERSECT",!0),JXe=S("INTERVAL",!0),YXe=S("INTO",!0),XXe=S("INVISIBLE",!0),QXe=S("INVOKER",!0),eQe=S("IS",!0),tQe=S("ISNULL",!0),iQe=S("ISODOW",!0),rQe=S("ISOLATION",!0),nQe=S("ISOWEEK",!0),aQe=S("ISOYEAR",!0),sQe=S("ITERATE",!0),lQe=S("JOIN",!0),oQe=S("JSON",!0),dQe=S("JSONB",!0),uQe=S("JULIAN",!0),pQe=S("KEY",!0),cQe=S("KEY_BLOCK_SIZE",!0),fQe=S("LAG",!0),yQe=S("LANGUAGE",!0),hQe=S("LARGE",!0),mQe=S("LAST",!0),TQe=S("LAST_VALUE",!0),vQe=S("LATERAL",!0),EQe=S("LEAD",!0),bQe=S("LEAKPROOF",!0),AQe=S("LEAVE",!0),gQe=S("LEFT",!0),IQe=S("LEVEL",!0),RQe=S("LIKE",!0),DQe=S("LIMIT",!0),wQe=S("LINES",!0),OQe=S("LIST",!0),CQe=S("LOAD",!0),_Qe=S("LOCAL",!0),VQe=S("LOCALTIME",!0),PQe=S("LOCALTIMESTAMP",!0),NQe=S("LOCK",!0),xQe=S("LOCKED",!0),$Qe=S("LOGGED",!0),LQe=S("LOGIN",!0),BQe=S("LONGBLOB",!0),MQe=S("LONGTEXT",!0),GQe=S("LOOP",!0),kQe=S("LOW_PRIORITY",!0),jQe=S("MAIN",!0),UQe=S("MAINTAIN",!0),KQe=S("MATCH",!0),FQe=S("MATCHED",!0),SQe=S("MATERIALIZED",!0),qQe=S("MAX",!0),ZQe=S("MAX_ROWS",!0),HQe=S("MAXVALUE",!0),WQe=S("MEDIUMBLOB",!0),zQe=S("MEDIUMINT",!0),JQe=S("MEDIUMTEXT",!0),YQe=S("MEMBER",!0),XQe=S("MEMORY",!0),QQe=S("MERGE",!0),eet=S("MESSAGE",!0),tet=S("METHOD",!0),iet=S("MICROSECOND",!0),ret=S("MICROSECONDS",!0),net=S("MILLENNIUM",!0),aet=S("MILLISECOND",!0),set=S("MILLISECONDS",!0),oet=S("MIN",!0),det=S("MIN_ROWS",!0),uet=S("MINUTE",!0),pet=S("MINUTE_MICROSECOND",!0),cet=S("MINUTE_SECOND",!0),fet=S("MINVALUE",!0),yet=S("MOD",!0),het=S("MODE",!0),met=S("MODULUS",!0),Tet=S("MONDAY",!0),vet=S("MONTH",!0),Eet=S("NATIVE",!0),bet=S("NATURAL",!0),Aet=S("NCHAR",!0),get=S("NEW",!0),Iet=S("NEXT",!0),Ret=S("NFC",!0),Det=S("NFD",!0),wet=S("NFKC",!0),Oet=S("NFKD",!0),Cet=S("NO",!0),_et=S("NOBYPASSRLS",!0),Vet=S("NOCREATEDB",!0),Pet=S("NOCREATEROLE",!0),Net=S("NOINHERIT",!0),xet=S("NOLOGIN",!0),$et=S("NONE",!0),Let=S("NOREPLICATION",!0),Bet=S("NORMALIZED",!0),Met=S("NOSUPERUSER",!0),Get=S("NOT",!0),ket=S("NOTHING",!0),jet=S("NOTNULL",!0),Uet=S("NOWAIT",!0),Ket=S("NTH_VALUE",!0),Fet=S("NTILE",!0),qet=S("NULL",!0),Zet=S("NULLS",!0),Het=S("NUMERIC",!0),Wet=S("NVARCHAR",!0),zet=S("OBJECT",!0),Jet=S("OF",!0),Yet=S("OFFSET",!0),Xet=S("OIDS",!0),Qet=S("OLD",!0),ett=S("ON",!0),ttt=S("ONLY",!0),itt=S("OPERATOR",!0),rtt=S("OPTION",!0),ntt=S("OPTIONALLY",!0),att=S("OPTIONS",!0),stt=S("OR",!0),ltt=S("ORDER",!0),ott=S("ORDINAL",!0),dtt=S("ORDINALITY",!0),utt=S("ORGANIZATION",!0),ptt=S("OTHERS",!0),ctt=S("OUT",!0),ftt=S("OUTER",!0),ytt=S("OUTFILE",!0),htt=S("OVER",!0),mtt=S("OVERRIDING",!0),Ttt=S("OVERWRITE",!0),vtt=S("OWNED",!0),Ett=S("OWNER",!0),btt=S("PACK_KEYS",!0),Att=S("PARALLEL",!0),gtt=S("PARAMETER",!0),Itt=S("PARTIAL",!0),Rtt=S("PARTITION",!0),Dtt=S("PASSWORD",!0),wtt=S("PERCENT",!0),Ott=S("PERCENT_RANK",!0),Ctt=S("PERMISSIVE",!0),_tt=S("PIVOT",!0),Vtt=S("PLAIN",!0),Ptt=S("PLAN",!0),Ntt=S("POLICIES",!0),xtt=S("POLICY",!0),$tt=S("PRAGMA",!0),Ltt=S("PRECEDING",!0),Btt=S("PRECISION",!0),Mtt=S("PRESERVE",!0),Gtt=S("PRIMARY",!0),ktt=S("PRIVILEGES",!0),jtt=S("PROCEDURE",!0),Utt=S("PROCEDURES",!0),Ktt=S("PROJECT",!0),Ftt=S("PUBLIC",!0),Stt=S("QUALIFY",!0),qtt=S("QUARTER",!0),Ztt=S("QUERY",!0),Htt=S("QUICK",!0),Wtt=S("RAISE",!0),ztt=S("RANGE",!0),Jtt=S("RANK",!0),Ytt=S("READ",!0),Xtt=S("REAL",!0),Qtt=S("RECURSIVE",!0),eit=S("REDUNDANT",!0),tit=S("REFERENCES",!0),iit=S("REFERENCING",!0),rit=S("REFRESH",!0),nit=S("REGEXP",!0),ait=S("REINDEX",!0),sit=S("RELEASE",!0),lit=S("REMAINDER",!0),oit=S("REMOTE",!0),dit=S("RENAME",!0),uit=S("REPEAT",!0),pit=S("REPEATABLE",!0),cit=S("REPLACE",!0),fit=S("REPLICA",!0),yit=S("REPLICATION",!0),hit=S("RESERVATION",!0),mit=S("RESET",!0),Tit=S("RESPECT",!0),vit=S("RESTART",!0),Eit=S("RESTRICT",!0),bit=S("RESTRICTED",!0),Ait=S("RESTRICTIVE",!0),git=S("RETURN",!0),Iit=S("RETURNING",!0),Rit=S("RETURNS",!0),Dit=S("REVOKE",!0),wit=S("RIGHT",!0),Oit=S("RLIKE",!0),Cit=S("ROLE",!0),_it=S("ROLLBACK",!0),Vit=S("ROLLUP",!0),Pit=S("ROUTINE",!0),Nit=S("ROUTINES",!0),xit=S("ROW",!0),$it=S("ROW_FORMAT",!0),Lit=S("ROW_NUMBER",!0),Bit=S("ROWID",!0),Mit=S("ROWS",!0),Git=S("RULE",!0),kit=S("SAFE",!0),jit=S("SAFE_CAST",!0),Uit=S("SAFE_OFFSET",!0),Kit=S("SAFE_ORDINAL",!0),Fit=S("SATURDAY",!0),Sit=S("SAVEPOINT",!0),qit=S("SCHEMA",!0),Zit=S("SEARCH",!0),Hit=S("SECOND",!0),Wit=S("SECOND_MICROSECOND",!0),zit=S("SECONDARY_ENGINE_ATTRIBUTE",!0),Jit=S("SECURITY",!0),Yit=S("SELECT",!0),Xit=S("SEQUENCE",!0),Qit=S("SEQUENCES",!0),ert=S("SERIALIZABLE",!0),trt=S("SERVER",!0),irt=S("SESSION",!0),rrt=S("SESSION_USER",!0),nrt=S("SET",!0),art=S("SETS",!0),srt=S("SHARE",!0),lrt=S("SIMILAR",!0),ort=S("SIMPLE",!0),drt=S("SKIP",!0),urt=S("SMALLINT",!0),prt=S("SNAPSHOT",!0),crt=S("SOME",!0),frt=S("SOUNDS",!0),yrt=S("SOURCE",!0),hrt=S("SPATIAL",!0),mrt=S("SQL_BIG_RESULT",!0),Trt=S("SQL_BUFFER_RESULT",!0),vrt=S("SQL_CACHE",!0),Ert=S("SQL_CALC_FOUND_ROWS",!0),brt=S("SQL_NO_CACHE",!0),Art=S("SQL_SMALL_RESULT",!0),grt=S("STABLE",!0),Irt=S("START",!0),Rrt=S("STARTING",!0),Drt=S("STATEMENT",!0),wrt=S("STATISTICS",!0),Ort=S("STATS_AUTO_RECALC",!0),Crt=S("STATS_PERSISTENT",!0),_rt=S("STATS_SAMPLE_PAGES",!0),Vrt=S("STORAGE",!0),Prt=S("STORED",!0),Nrt=S("STRAIGHT_JOIN",!0),xrt=S("STRICT",!0),$rt=S("STRING",!0),Lrt=S("STRUCT",!0),Brt=S("SUNDAY",!0),Mrt=S("SUPERUSER",!0),Grt=S("SUPPORT",!0),krt=S("SYMMETRIC",!0),jrt=S("SYSID",!0),Urt=S("SYSTEM",!0),Krt=S("SYSTEM_TIME",!0),Frt=S("SYSTEM_USER",!0),Srt=S("TABLE",!0),qrt=S("TABLES",!0),Zrt=S("TABLESAMPLE",!0),Hrt=S("TABLESPACE",!0),Wrt=S("TARGET",!0),zrt=S("TEMP",!0),Jrt=S("TEMPORARY",!0),Yrt=S("TERMINATED",!0),Xrt=S("TEXT",!0),Qrt=S("THEN",!0),ent=S("THURSDAY",!0),tnt=S("TIES",!0),int=S("TIME",!0),rnt=S("TIMESTAMP",!0),nnt=S("TIMEZONE",!0),ant=S("TIMEZONE_HOUR",!0),snt=S("TIMEZONE_MINUTE",!0),lnt=S("TINYBLOB",!0),ont=S("TINYINT",!0),dnt=S("TINYTEXT",!0),unt=S("TO",!0),pnt=S("TRANSACTION",!0),cnt=S("TRANSFORM",!0),fnt=S("TRIGGER",!0),ynt=S("TRUE",!0),hnt=S("TRUNCATE",!0),mnt=S("TUESDAY",!0),Tnt=S("TYPE",!0),vnt=S("UESCAPE",!0),Ent=S("UNBOUNDED",!0),bnt=S("UNCOMMITTED",!0),Ant=S("UNION",!0),gnt=S("UNIQUE",!0),Int=S("UNKNOWN",!0),Rnt=S("UNLOGGED",!0),Dnt=S("UNNEST",!0),wnt=S("UNPIVOT",!0),Ont=S("UNSAFE",!0),Cnt=S("UNTIL",!0),_nt=S("UPDATE",!0),Vnt=S("USAGE",!0),Pnt=S("USER",!0),Nnt=S("USING",!0),xnt=S("VACUUM",!0),$nt=S("VALID",!0),Lnt=S("VALIDATE",!0),Bnt=S("VALUE",!0),Mnt=S("VALUES",!0),Gnt=S("VARBINARY",!0),knt=S("VARCHAR",!0),jnt=S("VARIADIC",!0),Unt=S("VARYING",!0),Knt=S("VECTOR",!0),Fnt=S("VERBOSE",!0),Snt=S("VIEW",!0),qnt=S("VIRTUAL",!0),Znt=S("VISIBLE",!0),Hnt=S("VOLATILE",!0),Wnt=S("WEDNESDAY",!0),znt=S("WEEK",!0),Jnt=S("WHEN",!0),Ynt=S("WHERE",!0),Xnt=S("WHILE",!0),Qnt=S("WINDOW",!0),eat=S("WITH",!0),tat=S("WITHOUT",!0),iat=S("WORK",!0),rat=S("WRAPPER",!0),nat=S("WRITE",!0),aat=S("XOR",!0),sat=S("YEAR",!0),lat=S("YEAR_MONTH",!0),oat=S("ZONE",!0),dat=function(t,l,a){return(0,bo.surrounding)(t,l,a)},uat=function(t,l){return(0,C.loc)({type:"program",statements:(0,DO.readCommaSepList)(t,l)})},pat=function(){return(0,hn.isAcceptUnsupportedGrammar)()},cat=function(t){return t},fat=function(t){return t},yat=function(t){return t},hat=function(t){return t},mat=function(t){return t},Tat=function(t){return t},vat=function(t){return t},Eat=function(t){return t},bat=function(t){return t},Aat=function(t){return t},gat=function(t){return t},Iat=function(t){return t},Rat=function(t){return t},Dat=function(t){return t},wat=function(){return(0,C.loc)({type:"empty"})},Oat=function(t,l){return(0,C.loc)({type:"program",statements:(0,DO.readCommaSepList)(t,l)})},Cat=function(){return{type:"program",statements:[]}},_at=function(t){return t},Vat=function(t){return t},Pat=function(t){return t},Nat=function(t,l){return(0,k.createCompoundSelectStmtChain)(t,l)},xat=function(t){return(0,N.read)(t)},$at=function(t,l){return(0,k.createCompoundSelectStmtChain)(t,l)},Lat=function(t){return(0,N.read)(t)},Bat=function(t,l,a){return(0,C.loc)({type:"select_stmt",clauses:[(0,N.read)(t),(0,N.read)(l),...a.map(N.read)].filter(ly.identity)})},Mat=function(t){return t},Gat=function(t){return t},kat=function(t,l){return(0,C.loc)({type:"table_clause",tableKw:(0,N.read)(t),table:l})},jat=function(t){return(0,C.loc)({type:"select_stmt",clauses:[t]})},Uat=function(t,l,a){return(0,C.loc)({type:"with_clause",withKw:t,recursiveKw:(0,N.read)(l),tables:(0,N.read)(a)})},Kat=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"common_table_expr",table:t,columns:(0,N.read)(l),asKw:(0,N.read)(a),materializedKw:(0,N.read)(u),expr:(0,N.read)(f),search:(0,N.read)(h),cycle:(0,N.read)(A)})},Fat=function(t){return(0,N.read)(t)},Sat=function(t){return t},qat=function(t,l,a,u){return(0,C.loc)({type:"cte_search_clause",searchKw:(0,N.read)(t),columns:l,setKw:(0,N.read)(a),resultColumn:u})},Zat=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"cte_cycle_clause",cycleKw:(0,N.read)(t),columns:l,setKw:(0,N.read)(a),resultColumn:u,values:(0,N.read)(f),usingKw:(0,N.read)(h),pathColumn:A})},Hat=function(t,l,a,u){return(0,C.loc)({type:"cte_cycle_clause_values",toKw:(0,N.read)(t),markValue:l,defaultKw:(0,N.read)(a),defaultValue:u})},Wat=function(t){return t},zat=function(t){return t},Jat=function(t){return t},Yat=function(t){return t},Xat=function(t){return t},Qat=function(t){return t},est=function(t){return t},tst=function(t,l,a){return(0,C.loc)({type:"select_clause",selectKw:t,modifiers:l.map(N.read),columns:(0,N.read)(a)})},ist=function(t,l,a){return(0,C.loc)({type:"select_clause",selectKw:t,modifiers:l.map(N.read),columns:(0,N.read)(a)})},rst=function(t,l,a){return(0,C.loc)({type:"select_clause",selectKw:t,modifiers:l.map(N.read),columns:(0,N.read)(a)})},nst=function(t,l,a){return(0,C.loc)({type:"select_clause",selectKw:t,modifiers:l.map(N.read),columns:(0,N.read)(a)})},ast=function(t){return(0,C.loc)({type:"select_all",allKw:t})},sst=function(t,l){return(0,C.loc)({type:"select_distinct_on",distinctOnKw:(0,N.read)(t),columns:l})},lst=function(t){return(0,C.loc)({type:"select_distinct",distinctKw:t})},ost=function(t){return(0,C.loc)({type:"select_distinct",distinctKw:t})},dst=function(t){return(0,C.loc)({type:"select_as_struct",asStructKw:(0,N.read)(t)})},ust=function(t){return(0,C.loc)({type:"select_as_value",asValueKw:(0,N.read)(t)})},pst=function(t){return t},cst=function(t){return(0,C.loc)({type:"mysql_modifier",modifierKw:t})},fst=function(t,l,a){return(0,C.loc)((0,k.createListExpr)(t,a?[...l,a]:l))},yst=function(t,l,a){return(0,C.loc)({type:"except_columns",expr:t,exceptKw:(0,N.read)(l),columns:a})},hst=function(t,l,a){return(0,C.loc)({type:"replace_columns",expr:t,replaceKw:(0,N.read)(l),columns:a})},mst=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Tst=function(t,l){return(0,C.loc)({type:"member_expr",object:(0,N.read)(t),property:(0,N.read)(l)})},vst=function(){return(0,C.loc)({type:"all_columns"})},Est=function(t,l,a){return{asKw:t,alias:(0,N.read)(l),columnAliases:(0,N.read)(a)}},bst=function(t){return{alias:t,columnAliases:void 0}},Ast=function(t,l){return{alias:t,columnAliases:(0,N.read)(l)}},gst=function(t){return t},Ist=function(t,l){return(0,C.loc)({type:"from_clause",fromKw:(0,N.read)(t),expr:l})},Rst=function(t,l){return(0,C.loc)({type:"from_clause",fromKw:(0,N.read)(t),expr:l})},Dst=function(t){return(0,C.loc)({type:"dual_table",dualKw:t})},wst=function(t,l){return(0,k.createJoinExprChain)(t,l)},Ost=function(t,l,a,u){return f=>({type:"join_expr",left:(0,bo.trailing)(f,t),operator:l,right:(0,N.read)(a),specification:(0,N.read)(u)})},Cst=function(t,l,a){return(0,C.loc)({type:"indexed_table",table:(0,N.read)(t),indexedByKw:(0,N.read)(l),index:(0,N.read)(a)})},_st=function(t,l){return(0,C.loc)({type:"not_indexed_table",table:(0,N.read)(t),notIndexedKw:(0,N.read)(l)})},Vst=function(t){return(0,C.loc)({type:"table_with_inheritance",table:(0,N.read)(t)})},Pst=function(t,l){return(0,C.loc)({type:"table_without_inheritance",onlyKw:(0,N.read)(t),table:(0,N.read)(l)})},Nst=function(t,l,a){return(0,C.loc)({type:"func_call_with_column_definitions",funcCall:t,asKw:(0,N.read)(l),columns:a})},xst=function(t){return t.type==="alias"},$st=function(t,l){return(0,C.loc)({type:"func_call_with_column_definitions",funcCall:t,asKw:void 0,columns:(0,N.read)(l)})},Lst=function(t,l){return(0,C.loc)({type:"with_ordinality_expr",expr:t,withOrdinalityKw:(0,N.read)(l)})},Bst=function(t,l){return(0,C.loc)({type:"lateral_derived_table",lateralKw:(0,N.read)(t),expr:l})},Mst=function(t,l){return(0,C.loc)({type:"lateral_derived_table",lateralKw:(0,N.read)(t),expr:l})},Gst=function(t,l){return(0,C.loc)({type:"rows_from_expr",rowsFromKw:(0,N.read)(t),expr:l})},kst=function(t,l,a){return(0,C.loc)({type:"partitioned_table",table:(0,N.read)(t),partitionKw:(0,N.read)(l),partitions:a})},jst=function(t){return t},Ust=function(t,l){return[(0,N.read)(t),...l instanceof Array?l:[l]]},Kst=function(t){return(0,N.read)(t)},Fst=function(t){return(0,N.read)(t)},Sst=function(t){return t},qst=function(t,l){return(0,C.loc)({type:"join_using_specification",usingKw:t,expr:(0,N.read)(l)})},Zst=function(t,l){return(0,C.loc)({type:"join_on_specification",onKw:t,expr:(0,N.read)(l)})},Hst=function(t,l){return(0,C.loc)({type:"unnest_with_offset_expr",unnest:t,withOffsetKw:(0,N.read)(l)})},Wst=function(t){return t},zst=function(t,l){return(0,C.loc)({type:"unnest_expr",unnestKw:(0,N.read)(t),expr:l})},Jst=function(t,l,a){return u=>({type:"pivot_expr",left:(0,bo.trailing)(u,t),pivotKw:(0,N.read)(l),args:a})},Yst=function(t,l,a,u,f){return(0,C.loc)({type:"pivot_for_in",aggregations:(0,N.read)(t),forKw:(0,N.read)(l),inputColumn:(0,N.read)(a),inKw:(0,N.read)(u),pivotColumns:f})},Xst=function(t,l,a,u){return f=>({type:"unpivot_expr",left:(0,bo.trailing)(f,t),unpivotKw:(0,N.read)(l),nullHandlingKw:(0,N.read)(a),args:u})},Qst=function(t,l,a,u,f){return(0,C.loc)({type:"unpivot_for_in",valuesColumn:(0,N.read)(t),forKw:(0,N.read)(l),nameColumn:(0,N.read)(a),inKw:(0,N.read)(u),unpivotColumns:f})},elt=function(t,l,a,u,f){return h=>({type:"tablesample_expr",left:(0,bo.trailing)(h,t),tablesampleKw:(0,N.read)(l),method:(0,N.read)(a),args:u,repeatable:(0,N.read)(f)})},tlt=function(t){return(0,C.loc)({type:"tablesample_method",methodKw:(0,N.read)(t)})},ilt=function(t,l){return(0,C.loc)({type:"tablesample_percent",percent:t,percentKw:(0,N.read)(l)})},rlt=function(t,l){return(0,C.loc)({type:"tablesample_repeatable",repeatableKw:(0,N.read)(t),seed:l})},nlt=function(t,l,a){return u=>({type:"for_system_time_as_of_expr",left:(0,bo.trailing)(u,t),forSystemTimeAsOfKw:(0,N.read)(l),expr:a})},alt=function(t,l){return(0,C.loc)({type:"where_clause",whereKw:t,expr:(0,N.read)(l)})},slt=function(t,l,a,u){return(0,C.loc)({type:"group_by_clause",groupByKw:(0,N.read)(t),distinctKw:(0,N.read)(l),columns:a,withRollupKw:(0,N.read)(u)})},llt=function(t){return t},olt=function(t,l){return(0,C.loc)({type:"group_by_rollup",rollupKw:(0,N.read)(t),columns:l})},dlt=function(t,l){return(0,C.loc)({type:"group_by_cube",cubeKw:(0,N.read)(t),columns:l})},ult=function(t,l){return(0,C.loc)({type:"group_by_grouping_sets",groupingSetsKw:(0,N.read)(t),columns:l})},plt=function(t){return(0,C.loc)({type:"group_by_all",allKw:(0,N.read)(t)})},clt=function(t,l){return(0,C.loc)({type:"having_clause",havingKw:t,expr:(0,N.read)(l)})},flt=function(t,l){return(0,C.loc)({type:"partition_by_clause",partitionByKw:(0,N.read)(t),specifications:l})},ylt=function(t,l){return(0,C.loc)({type:"cluster_by_clause",clusterByKw:(0,N.read)(t),columns:l})},hlt=function(t,l,a){return(0,C.loc)({type:"order_by_clause",orderByKw:(0,N.read)(t),specifications:l,withRollupKw:(0,N.read)(a)})},mlt=function(t,l,a){return!l&&!a&&t.type==="identifier"?t:(0,C.loc)(Object.assign({type:"sort_specification",expr:(0,N.read)(t),direction:(0,N.read)(l)},a?{nullHandlingKw:(0,N.read)(a)}:{}))},Tlt=function(t,l,a,u){return(0,C.loc)({type:"index_specification",expr:t,opclass:(0,N.read)(l),direction:(0,N.read)(a),nullHandlingKw:(0,N.read)(u)})},vlt=function(t){return(0,C.loc)({type:"sort_direction_asc",ascKw:t})},Elt=function(t){return(0,C.loc)({type:"sort_direction_desc",descKw:t})},blt=function(t,l){return(0,C.loc)({type:"sort_direction_using_operator",usingKw:(0,N.read)(t),operator:(0,N.read)(l)})},Alt=function(t){return(0,N.read)(t)},glt=function(t,l){return(0,C.loc)({type:"limit_clause",limitKw:t,count:(0,N.read)(l)})},Ilt=function(t,l,a,u,f){return(0,C.loc)({type:"limit_clause",limitKw:t,count:(0,N.read)(l),offsetKw:a,offset:(0,N.read)(u),rowsExamined:(0,N.read)(f)})},Rlt=function(t,l,a,u){return(0,C.loc)({type:"limit_clause",limitKw:t,offset:(0,N.read)(l),count:(0,N.read)(a),rowsExamined:(0,N.read)(u)})},Dlt=function(t,l,a){return(0,C.loc)({type:"limit_clause",limitKw:t,count:(0,N.read)(l),rowsExamined:(0,N.read)(a)})},wlt=function(t,l){return(0,C.loc)({type:"limit_clause",limitKw:t,rowsExamined:(0,N.read)(l)})},Olt=function(t){return(0,C.loc)({type:"limit_all",allKw:t})},Clt=function(t,l){return(0,C.loc)({type:"limit_rows_examined",rowsExaminedKw:(0,N.read)(t),count:l})},_lt=function(t,l,a){return(0,C.loc)({type:"offset_clause",offsetKw:(0,N.read)(t),offset:(0,N.read)(l),rowsKw:(0,N.read)(a)})},Vlt=function(t,l,a,u){return(0,C.loc)({type:"fetch_clause",fetchKw:(0,N.read)(t),count:(0,N.read)(l),rowsKw:(0,N.read)(a),withTiesKw:(0,N.read)(u)})},Plt=function(t,l){return(0,C.loc)({type:"window_clause",windowKw:(0,N.read)(t),namedWindows:l})},Nlt=function(t,l,a){return(0,C.loc)({type:"named_window",name:(0,N.read)(t),asKw:(0,N.read)(l),window:a})},xlt=function(t,l,a,u){return(0,C.loc)({type:"window_definition",baseWindowName:(0,N.read)(t),partitionBy:(0,N.read)(l),orderBy:(0,N.read)(a),frame:(0,N.read)(u)})},$lt=function(t){return["PARTITION","ROWS","RANGE"].includes(t.name.toUpperCase())},Llt=function(t){return t},Blt=function(t,l,a){return(0,C.loc)({type:"frame_clause",unitKw:t,extent:(0,N.read)(l),exclusion:(0,N.read)(a)})},Mlt=function(t){return t},Glt=function(t,l,a,u){return(0,C.loc)({type:"frame_between",betweenKw:t,begin:(0,N.read)(l),andKw:a,end:(0,N.read)(u)})},klt=function(t){return(0,C.loc)({type:"frame_bound_current_row",currentRowKw:(0,N.read)(t)})},jlt=function(t,l){return(0,C.loc)({type:"frame_bound_preceding",expr:(0,N.read)(t),precedingKw:l})},Ult=function(t,l){return(0,C.loc)({type:"frame_bound_following",expr:(0,N.read)(t),followingKw:l})},Klt=function(t){return(0,C.loc)({type:"frame_unbounded",unboundedKw:t})},Flt=function(t,l){return(0,C.loc)({type:"frame_exclusion",excludeKw:(0,N.read)(t),kindKw:l})},Slt=function(t){return(0,N.read)(t)},qlt=function(t,l){return(0,C.loc)({type:"qualify_clause",qualifyKw:t,expr:(0,N.read)(l)})},Zlt=function(t,l){return(0,C.loc)({type:"returning_clause",returningKw:t,columns:(0,N.read)(l)})},Hlt=function(t,l){return(0,C.loc)({type:"where_current_of_clause",whereCurrentOfKw:(0,N.read)(t),cursor:l})},Wlt=function(t,l,a,u){return(0,C.loc)({type:"into_table_clause",intoKw:(0,N.read)(t),kind:(0,N.read)(l),tableKw:(0,N.read)(a),name:u})},zlt=function(t,l){return(0,C.loc)({type:"into_variables_clause",intoKw:(0,N.read)(t),variables:l})},Jlt=function(t,l){return(0,C.loc)({type:"into_dumpfile_clause",intoDumpfileKw:(0,N.read)(t),filename:(0,N.read)(l)})},Ylt=function(t,l,a,u,f){return(0,C.loc)({type:"into_outfile_clause",intoOutfileKw:(0,N.read)(t),filename:(0,N.read)(l),charset:(0,N.read)(a),fields:(0,N.read)(u),lines:(0,N.read)(f)})},Xlt=function(t,l){return(0,C.loc)({type:"outfile_option_character_set",characterSetKw:(0,N.read)(t),value:l})},Qlt=function(t,l){return(0,C.loc)({type:"outfile_fields",fieldsKw:(0,N.read)(t),options:l.map(N.read)})},eot=function(t,l){return(0,C.loc)({type:"outfile_lines",linesKw:(0,N.read)(t),options:l.map(N.read)})},tot=function(t,l){return(0,C.loc)({type:"outfile_option_terminated_by",terminatedByKw:(0,N.read)(t),value:l})},iot=function(t,l,a){return(0,C.loc)({type:"outfile_option_enclosed_by",optionallyKw:(0,N.read)(t),enclosedByKw:(0,N.read)(l),value:a})},rot=function(t,l){return(0,C.loc)({type:"outfile_option_starting_by",startingByKw:(0,N.read)(t),value:l})},not=function(t,l){return(0,C.loc)({type:"outfile_option_escaped_by",escapedByKw:(0,N.read)(t),value:l})},aot=function(t,l,a,u){return(0,C.loc)({type:"for_clause",forKw:(0,N.read)(t),lockStrengthKw:(0,N.read)(l),tables:(0,N.read)(a),waitingKw:(0,N.read)(u)})},sot=function(t,l){return(0,C.loc)({type:"for_clause_tables",ofKw:(0,N.read)(t),tables:l})},lot=function(t){return(0,C.loc)({type:"lock_in_share_mode_clause",lockInShareModeKw:(0,N.read)(t)})},oot=function(t,l,a,u,f,h,A,O){return(0,C.loc)({type:"insert_stmt",clauses:[(0,N.read)(t),l,(0,N.read)(a),(0,N.read)(u),(0,N.read)(f),(0,N.read)(h),...A.map(N.read),(0,N.read)(O)].filter(ly.identity)})},dot=function(t,l,a,u,f,h){return(0,C.loc)({type:"insert_clause",insertKw:t,modifiers:l.map(N.read),orAction:(0,N.read)(a),intoKw:(0,N.read)(u),table:(0,N.read)(f),columns:(0,N.read)(h)})},uot=function(t){return(0,C.loc)({type:"mysql_modifier",modifierKw:t})},pot=function(t,l){return(0,C.loc)({type:"or_alternate_action",orKw:(0,N.read)(t),actionKw:(0,N.read)(l)})},cot=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},fot=function(t){return(0,C.loc)({type:"overriding_clause",overridingKw:(0,N.read)(t)})},yot=function(t){return t},hot=function(t,l){return(0,C.loc)({type:"values_clause",valuesKw:t,values:(0,N.read)(l)})},mot=function(t){return t},Tot=function(t){return t},vot=function(t){return t},Eot=function(t){return t},bot=function(t,l){return(0,C.loc)({type:"row_constructor",rowKw:(0,N.read)(t),row:l})},Aot=function(t,l){return(0,C.loc)({type:"array_constructor",arrayKw:(0,N.read)(t),expr:l})},got=function(t){return(0,C.loc)({type:"default",defaultKw:t})},Iot=function(t){return(0,C.loc)({type:"default_values",defaultValuesKw:(0,N.read)(t)})},Rot=function(t,l,a,u,f){return(0,C.loc)({type:"upsert_clause",onConflictKw:(0,N.read)(t),conflictTarget:(0,N.read)(l),where:(0,N.read)(a),doKw:u,action:(0,N.read)(f)})},Dot=function(t,l){return(0,C.loc)({type:"conflict_target_on_constraint",onConstraintKw:(0,N.read)(t),constraint:l})},wot=function(t){return(0,C.loc)({type:"upsert_action_nothing",nothingKw:t})},Oot=function(t,l,a){return(0,C.loc)({type:"upsert_action_update",updateKw:t,set:(0,N.read)(l),where:(0,N.read)(a)})},Cot=function(t,l,a){return(0,C.loc)({type:"row_alias_clause",asKw:(0,N.read)(t),rowAlias:(0,N.read)(l),columnAliases:(0,N.read)(a)})},_ot=function(t,l){return(0,C.loc)({type:"on_duplicate_key_update_clause",onDuplicateKeyUpdateKw:(0,N.read)(t),assignments:l})},Vot=function(t,l,a,u){return(0,C.loc)({type:"update_stmt",clauses:[(0,N.read)(t),(0,N.read)(l),(0,N.read)(a),...u.map(N.read)].filter(ly.identity)})},Pot=function(t,l,a,u){return(0,C.loc)({type:"update_clause",updateKw:(0,N.read)(t),modifiers:l.map(N.read),orAction:(0,N.read)(a),tables:u})},Not=function(t,l){return(0,C.loc)({type:"set_clause",setKw:(0,N.read)(t),assignments:l})},xot=function(t){return t},$ot=function(t,l){return(0,C.loc)({type:"column_assignment",column:(0,N.read)(t),expr:(0,N.read)(l)})},Lot=function(t){return t},Bot=function(t,l,a){return(0,C.loc)({type:"delete_stmt",clauses:[(0,N.read)(t),(0,N.read)(l),...a.map(N.read)].filter(ly.identity)})},Mot=function(t,l,a,u){return(0,C.loc)({type:"delete_clause",deleteKw:(0,N.read)(t),modifiers:l.map(N.read),fromKw:(0,N.read)(a),tables:u})},Got=function(t){return(0,C.loc)({type:"mysql_modifier",modifierKw:t})},kot=function(t){return t},jot=function(t){return t},Uot=function(t){return t},Kot=function(t,l,a,u,f){return(0,C.loc)({type:"truncate_stmt",truncateKw:(0,N.read)(t),tableKw:(0,N.read)(l),tables:a,restartOrContinueKw:(0,N.read)(u),behaviorKw:(0,N.read)(f)})},Fot=function(t,l,a){return(0,C.loc)({type:"merge_stmt",clauses:[(0,N.read)(t),(0,N.read)(l),...a.map(N.read)].filter(ly.identity)})},Sot=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"merge_clause",mergeKw:(0,N.read)(t),intoKw:(0,N.read)(l),target:(0,N.read)(a),usingKw:(0,N.read)(u),source:(0,N.read)(f),onKw:(0,N.read)(h),condition:A})},qot=function(t,l,a,u,f,h){return(0,C.loc)({type:"merge_when_clause",whenKw:(0,N.read)(t),matchedKw:(0,N.read)(l),byKw:(0,N.read)(a),condition:(0,N.read)(u),thenKw:(0,N.read)(f),action:h})},Zot=function(t,l){return(0,C.loc)({type:"merge_when_condition",andKw:(0,N.read)(t),expr:l})},Hot=function(t){return t},Wot=function(t){return(0,C.loc)({type:"merge_action_do_nothing",doNothingKw:(0,N.read)(t)})},zot=function(t){return(0,C.loc)({type:"merge_action_delete",deleteKw:t})},Jot=function(t,l){return(0,C.loc)({type:"merge_action_update",updateKw:(0,N.read)(t),set:l})},Yot=function(t,l,a,u){return(0,C.loc)({type:"merge_action_insert",insertKw:(0,N.read)(t),columns:(0,N.read)(l),clauses:[(0,N.read)(a),u].filter(ly.identity)})},Xot=function(t){return(0,C.loc)({type:"merge_action_insert_row_clause",rowKw:t})},Qot=function(t,l,a,u,f,h,A,O){return(0,C.loc)({type:"create_view_stmt",createKw:t,orReplaceKw:(0,N.read)(l),kinds:a.map(N.read),viewKw:(0,N.read)(u),ifNotExistsKw:(0,N.read)(f),name:(0,N.read)(h),columns:(0,N.read)(A),clauses:O.map(N.read)})},edt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},tdt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:(0,N.read)(t)})},idt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},rdt=function(t,l){return(0,C.loc)({type:"column_definition",name:t,constraints:l.map(N.read)})},ndt=function(t){return t},adt=function(t){return t},sdt=function(t,l,a){return(0,C.loc)({type:"with_check_option_clause",withKw:(0,N.read)(t),levelKw:(0,N.read)(l),checkOptionKw:(0,N.read)(a)})},ldt=function(t,l){return(0,C.loc)({type:"as_replica_of_clause",asReplicaOfKw:(0,N.read)(t),view:l})},odt=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_view_stmt",dropKw:(0,N.read)(t),kind:(0,N.read)(l),viewKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),views:(0,N.read)(f),behaviorKw:(0,N.read)(h)})},ddt=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"alter_view_stmt",alterKw:t,kind:(0,N.read)(l),viewKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),name:(0,N.read)(f),columns:(0,N.read)(h),actions:(0,N.read)(A)})},udt=function(t){return t},pdt=function(t){return t},cdt=function(t){return t},fdt=function(t,l,a,u){return(0,C.loc)({type:"refresh_materialized_view_stmt",refreshMaterializedViewKw:(0,N.read)(t),concurrentlyKw:(0,N.read)(l),name:a,clauses:u.map(N.read)})},ydt=function(t,l,a,u,f,h,A,O,z,Te){return(0,C.loc)({type:"create_index_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),indexTypeKw:(0,N.read)(a),indexKw:(0,N.read)(u),ifNotExistsKw:(0,N.read)(f),name:(0,N.read)(h),onKw:(0,N.read)(A),table:(0,N.read)(O),columns:z,clauses:Te.map(N.read)})},hdt=function(t,l,a,u,f,h,A,O,z,Te,$e){return(0,C.loc)({type:"create_index_stmt",createKw:(0,N.read)(t),indexTypeKw:(0,N.read)(l),indexKw:(0,N.read)(a),concurrentlyKw:(0,N.read)(u),ifNotExistsKw:(0,N.read)(f),name:(0,N.read)(h),onKw:(0,N.read)(A),table:(0,N.read)(O),using:(0,N.read)(z),columns:Te,clauses:$e.map(N.read)})},mdt=function(t){return t},Tdt=function(t){return t},vdt=function(t){return t},Edt=function(t){return t},bdt=function(t){return t},Adt=function(t){return t},gdt=function(t){return t},Idt=function(t){return t},Rdt=function(t){return(0,C.loc)({type:"verbose_all_columns",allColumnsKw:(0,N.read)(t)})},Ddt=function(t,l){return(0,C.loc)({type:"index_include_clause",includeKw:(0,N.read)(t),columns:l})},wdt=function(t){return(0,C.loc)({type:"index_nulls_distinct_clause",nullsDistinctKw:(0,N.read)(t)})},Odt=function(t){return(0,C.loc)({type:"index_nulls_not_distinct_clause",nullsNotDistinctKw:(0,N.read)(t)})},Cdt=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_index_stmt",dropKw:(0,N.read)(t),indexKw:(0,N.read)(l),concurrentlyKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),indexes:(0,N.read)(f),behaviorKw:(0,N.read)(h)})},_dt=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"drop_index_stmt",dropKw:(0,N.read)(t),indexTypeKw:(0,N.read)(l),indexKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),indexes:(0,N.read)(f),onKw:(0,N.read)(h),table:A})},Vdt=function(t,l,a,u,f){return(0,C.loc)({type:"alter_index_stmt",alterKw:(0,N.read)(t),indexKw:(0,N.read)(l),ifExistsKw:(0,N.read)(a),index:u,action:(0,N.read)(f)})},Pdt=function(t,l,a,u,f){return(0,C.loc)({type:"alter_index_all_in_tablespace_stmt",alterIndexKw:(0,N.read)(t),allInTablespaceKw:(0,N.read)(l),tablespace:(0,N.read)(a),ownedBy:(0,N.read)(u),action:f})},Ndt=function(t,l){return(0,C.loc)({type:"reindex_stmt",reindexKw:t,name:(0,N.read)(l)})},xdt=function(t,l,a,u,f){return(0,C.loc)({type:"reindex_stmt",reindexKw:t,options:(0,N.read)(l),targetKw:(0,N.read)(a),concurrentlyKw:(0,N.read)(u),name:(0,N.read)(f)})},$dt=function(t,l){return(0,C.loc)({type:"reindex_option_concurrently",concurrentlyKw:(0,N.read)(t),value:(0,N.read)(l)})},Ldt=function(t,l){return(0,C.loc)({type:"reindex_option_tablespace",tablespaceKw:(0,N.read)(t),name:l})},Bdt=function(t,l){return(0,C.loc)({type:"reindex_option_verbose",verboseKw:t,value:(0,N.read)(l)})},Mdt=function(t,l,a,u,f,h,A,O,z,Te,$e){return(0,C.loc)({type:"create_table_stmt",createKw:t,orReplaceKw:(0,N.read)(l),kind:(0,N.read)(a),tableKw:(0,N.read)(u),ifNotExistsKw:(0,N.read)(f),name:(0,N.read)(h),partitionOf:(0,N.read)(A),ofType:(0,N.read)(O),columns:(0,N.read)(z),options:(0,N.read)(Te),clauses:$e.map(N.read)})},Gdt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},kdt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:(0,N.read)(t)})},jdt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},Udt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},Kdt=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},Fdt=function(t){return(0,N.read)(t)},Sdt=function(t){return t},qdt=function(t){return t},Zdt=function(t,l,a,u){return(0,C.loc)({type:"column_definition",name:t,dataType:(0,N.read)(l),withOptionsKw:(0,N.read)(a),constraints:u.map(N.read)})},Hdt=function(t,l){return(0,C.loc)({type:"create_table_partition_of_clause",partitionOfKw:(0,N.read)(t),table:l})},Wdt=function(t,l){return(0,C.loc)({type:"create_table_of_type_clause",ofKw:(0,N.read)(t),typeName:l})},zdt=function(t){return t},Jdt=function(t){return t},Ydt=function(t){return t},Xdt=function(t){return t},Qdt=function(t,l,a){return(0,C.loc)({type:"create_table_like_clause",likeKw:(0,N.read)(t),name:l,options:a.map(N.read)})},eut=function(t,l){return(0,C.loc)({type:"table_like_option",includingOrExcludingKw:(0,N.read)(t),optionKw:l})},tut=function(t,l){return(0,C.loc)({type:"create_table_copy_clause",copyKw:(0,N.read)(t),name:l})},iut=function(t,l){return(0,C.loc)({type:"create_table_clone_clause",cloneKw:(0,N.read)(t),table:l})},rut=function(t,l,a){return(0,C.loc)({type:"for_system_time_as_of_expr",left:(0,N.read)(t),forSystemTimeAsOfKw:(0,N.read)(l),expr:a})},nut=function(t,l){return(0,C.loc)({type:"with_partition_columns_clause",withPartitionColumnsKw:(0,N.read)(t),columns:(0,N.read)(l)})},aut=function(t,l){return(0,C.loc)({type:"create_table_using_clause",usingKw:(0,N.read)(t),module:l.type==="identifier"?{type:"func_call",name:l}:l})},sut=function(t,l){return(0,C.loc)({type:"create_table_inherits_clause",inheritsKw:(0,N.read)(t),tables:l})},lut=function(t,l,a){return(0,C.loc)({type:"create_table_partition_by_clause",partitionByKw:(0,N.read)(t),strategyKw:(0,N.read)(l),columns:a})},out=function(t,l){return(0,C.loc)({type:"create_table_partition_bound_clause",forValuesKw:(0,N.read)(t),bound:(0,N.read)(l)})},dut=function(t,l,a,u){return(0,C.loc)({type:"partition_bound_from_to",fromKw:(0,N.read)(t),from:l,toKw:(0,N.read)(a),to:u})},uut=function(t){return(0,C.loc)({type:"partition_bound_minvalue",minvalueKw:t})},put=function(t){return(0,C.loc)({type:"partition_bound_maxvalue",maxvalueKw:t})},cut=function(t,l){return(0,C.loc)({type:"partition_bound_in",inKw:(0,N.read)(t),values:l})},fut=function(t,l){return(0,C.loc)({type:"partition_bound_with",withKw:(0,N.read)(t),values:l})},yut=function(t,l){return(0,C.loc)({type:"partition_bound_modulus",modulusKw:(0,N.read)(t),value:l})},hut=function(t,l){return(0,C.loc)({type:"partition_bound_remainder",remainderKw:(0,N.read)(t),value:l})},mut=function(t){return(0,C.loc)({type:"create_table_default_partition_clause",defaultKw:(0,N.read)(t)})},Tut=function(t,l){return(0,C.loc)({type:"create_table_on_commit_clause",onCommitKw:(0,N.read)(t),actionKw:(0,N.read)(l)})},vut=function(t,l){return(0,C.loc)({type:"tablespace_clause",tablespaceKw:(0,N.read)(t),name:l})},Eut=function(t,l){return(0,C.loc)({type:"using_access_method_clause",usingKw:(0,N.read)(t),method:l})},but=function(t){return(0,C.loc)({type:"create_table_without_oids_clause",withoutOidsKw:(0,N.read)(t)})},Aut=function(t){return(0,C.loc)({type:"with_data_clause",withDataKw:(0,N.read)(t)})},gut=function(t,l){return(0,C.loc)({type:"create_table_server_clause",serverKw:(0,N.read)(t),name:l})},Iut=function(t,l){return(0,C.loc)({type:"bigquery_options",optionsKw:(0,N.read)(t),options:l})},Rut=function(t,l){return(0,C.loc)({type:"binary_expr",left:(0,N.read)(t),operator:"=",right:(0,N.read)(l)})},Dut=function(t,l){return(0,C.loc)({type:"bigquery_option_default_collate",defaultCollateKw:(0,N.read)(t),collation:l})},wut=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_table_stmt",dropKw:(0,N.read)(t),kind:(0,N.read)(l),tableKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),tables:f,behaviorKw:(0,N.read)(h)})},Out=function(t){return(0,N.read)(t)},Cut=function(t,l,a,u){return(0,C.loc)({type:"alter_table_stmt",alterTableKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),table:(0,N.read)(a),actions:u})},_ut=function(t,l,a,u,f){return(0,C.loc)({type:"alter_table_all_in_tablespace_stmt",alterTableKw:(0,N.read)(t),allInTablespaceKw:(0,N.read)(l),tablespace:(0,N.read)(a),ownedBy:(0,N.read)(u),action:f})},Vut=function(t,l){return(0,C.loc)({type:"owned_by_clause",ownedByKw:(0,N.read)(t),owners:l})},Put=function(t){return t},Nut=function(t){return t},xut=function(t){return t},$ut=function(t){return t},Lut=function(t,l,a){return(0,C.loc)({type:"alter_action_add_column",addKw:(0,N.read)(t),ifNotExistsKw:(0,N.read)(l),column:a})},But=function(t,l,a,u){return(0,C.loc)({type:"alter_action_drop_column",dropKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),column:a,behaviorKw:(0,N.read)(u)})},Mut=function(t,l){return(0,C.loc)({type:"alter_action_rename",renameKw:(0,N.read)(t),newName:l})},Gut=function(t){return(0,N.read)(t)},kut=function(t){return(0,N.read)(t)},jut=function(t){return t},Uut=function(t,l,a,u,f){return(0,C.loc)({type:"alter_action_rename_column",renameKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),oldName:(0,N.read)(a),toKw:(0,N.read)(u),newName:f})},Kut=function(t){return(0,N.read)(t)},Fut=function(t){return t},Sut=function(t,l,a,u){return(0,C.loc)({type:"alter_action_alter_column",alterKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),column:(0,N.read)(a),action:u})},qut=function(t){return(0,N.read)(t)},Zut=function(t){return t},Hut=function(t,l){return(0,C.loc)({type:"alter_action_set_default_collate",setDefaultCollateKw:(0,N.read)(t),collation:l})},Wut=function(t,l){return(0,C.loc)({type:"alter_action_set_bigquery_options",setKw:(0,N.read)(t),options:l})},zut=function(t,l){return(0,C.loc)({type:"alter_action_set_postgresql_options",setKw:(0,N.read)(t),options:l})},Jut=function(t,l){return(0,C.loc)({type:"alter_action_reset_postgresql_options",resetKw:(0,N.read)(t),options:l})},Yut=function(t,l,a){return a},Xut=function(t,l,a,u){return(0,C.loc)({type:"alter_action_add_constraint",addKw:(0,N.read)(t),name:(0,N.read)(l),constraint:a,modifiers:u.map(N.read)})},Qut=function(t,l,a){return(0,C.loc)({type:"alter_action_add_constraint_constraint_name",constraintKw:(0,N.read)(t),ifNotExistsKw:(0,N.read)(l),name:a})},ept=function(t,l,a,u){return(0,C.loc)({type:"alter_action_drop_constraint",dropConstraintKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),constraint:a,behaviorKw:(0,N.read)(u)})},tpt=function(t,l){return(0,C.loc)({type:"alter_action_drop_primary_key",dropPrimaryKeyKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l)})},ipt=function(t,l,a){return(0,C.loc)({type:"alter_action_alter_constraint",alterConstraintKw:(0,N.read)(t),constraint:l,modifiers:a.map(N.read)})},rpt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_rename_constraint",renameConstraintKw:(0,N.read)(t),oldName:(0,N.read)(l),toKw:(0,N.read)(a),newName:u})},npt=function(t,l){return(0,C.loc)({type:"alter_action_validate_constraint",validateConstraintKw:(0,N.read)(t),constraint:l})},apt=function(t,l){return(0,C.loc)({type:"alter_action_owner_to",ownerToKw:(0,N.read)(t),owner:l})},spt=function(t,l){return(0,C.loc)({type:"alter_action_set_schema",setSchemaKw:(0,N.read)(t),schema:l})},lpt=function(t,l,a){return(0,C.loc)({type:"alter_action_enable",enableKw:(0,N.read)(t),modeKw:(0,N.read)(l),item:a})},opt=function(t,l){return(0,C.loc)({type:"alter_action_disable",disableKw:(0,N.read)(t),item:l})},dpt=function(t,l){return(0,C.loc)({type:"alter_action_force",forceKw:(0,N.read)(t),item:l})},upt=function(t,l){return(0,C.loc)({type:"alter_action_no_force",noForceKw:(0,N.read)(t),item:l})},ppt=function(t,l,a){return(0,C.loc)({type:"alter_action_set_tablespace",setTablespaceKw:(0,N.read)(t),tablespace:l,nowaitKw:(0,N.read)(a)})},cpt=function(t,l){return(0,C.loc)({type:"alter_action_set_access_method",setAccessMethodKw:(0,N.read)(t),method:l})},fpt=function(t,l){return(0,C.loc)({type:"alter_action_cluster_on",clusterOnKw:(0,N.read)(t),index:l})},ypt=function(t){return(0,C.loc)({type:"alter_action_set_without_cluster",setWithoutClusterKw:(0,N.read)(t)})},hpt=function(t){return(0,C.loc)({type:"alter_action_set_without_oids",setWithoutOidsKw:(0,N.read)(t)})},mpt=function(t){return(0,C.loc)({type:"alter_action_set_logged",setLoggedKw:(0,N.read)(t)})},Tpt=function(t){return(0,C.loc)({type:"alter_action_set_unlogged",setUnloggedKw:(0,N.read)(t)})},vpt=function(t,l){return(0,C.loc)({type:"alter_action_inherit",inheritKw:(0,N.read)(t),table:l})},Ept=function(t,l){return(0,C.loc)({type:"alter_action_no_inherit",noInheritKw:(0,N.read)(t),table:l})},bpt=function(t,l){return(0,C.loc)({type:"alter_action_of_type",ofKw:(0,N.read)(t),typeName:l})},Apt=function(t){return(0,C.loc)({type:"alter_action_not_of_type",notOfKw:(0,N.read)(t)})},gpt=function(t,l){return(0,C.loc)({type:"alter_action_depends_on_extension",dependsOnExtensionKw:(0,N.read)(t),extension:l})},Ipt=function(t,l){return(0,C.loc)({type:"alter_action_no_depends_on_extension",noDependsOnExtensionKw:(0,N.read)(t),extension:l})},Rpt=function(t,l){return(0,C.loc)({type:"alter_action_replica_identity",replicaIdentityKw:(0,N.read)(t),identity:l})},Dpt=function(t,l){return(0,C.loc)({type:"replica_identity_using_index",usingIndexKw:(0,N.read)(t),index:l})},wpt=function(t,l){return(0,C.loc)({type:"alter_action_attach_partition",attachPartitionKw:(0,N.read)(t),index:l})},Opt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_add_enum_value",addValueKw:(0,N.read)(t),ifNotExistsKw:(0,N.read)(l),value:a,position:(0,N.read)(u)})},Cpt=function(t,l){return(0,C.loc)({type:"alter_action_add_enum_value_position",positionKw:(0,N.read)(t),value:l})},_pt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_rename_enum_value",renameValueKw:(0,N.read)(t),oldValue:l,toKw:(0,N.read)(a),newValue:u})},Vpt=function(t,l,a,u,f){return(0,C.loc)({type:"alter_action_rename_attribute",renameAttributeKw:(0,N.read)(t),oldName:l,toKw:(0,N.read)(a),newName:u,behaviorKw:(0,N.read)(f)})},Ppt=function(t,l,a,u,f){return(0,C.loc)({type:"alter_action_add_attribute",addAttributeKw:(0,N.read)(t),name:l,dataType:(0,N.read)(a),constraint:(0,N.read)(u),behaviorKw:(0,N.read)(f)})},Npt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_drop_attribute",dropAttributeKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),name:a,behaviorKw:(0,N.read)(u)})},xpt=function(t,l,a,u,f,h){return(0,C.loc)({type:"alter_action_alter_attribute",alterAttributeKw:(0,N.read)(t),name:(0,N.read)(l),setDataTypeKw:(0,N.read)(a),dataType:u,constraint:(0,N.read)(f),behaviorKw:(0,N.read)(h)})},$pt=function(t){return t},Lpt=function(t){return t},Bpt=function(t){return t},Mpt=function(t,l){return(0,C.loc)({type:"alter_action_set_default",setDefaultKw:(0,N.read)(t),expr:l})},Gpt=function(t){return(0,C.loc)({type:"alter_action_drop_default",dropDefaultKw:(0,N.read)(t)})},kpt=function(t){return(0,C.loc)({type:"alter_action_set_not_null",setNotNullKw:(0,N.read)(t)})},jpt=function(t){return(0,C.loc)({type:"alter_action_drop_not_null",dropNotNullKw:(0,N.read)(t)})},Upt=function(t,l,a){return(0,C.loc)({type:"alter_action_set_data_type",setDataTypeKw:(0,N.read)(t),dataType:l,clauses:a.map(N.read)})},Kpt=function(t){return(0,C.loc)(Object.assign(Object.assign({},t),{type:"set_data_type_collate_clause"}))},Fpt=function(t,l){return(0,C.loc)({type:"set_data_type_using_clause",usingKw:(0,N.read)(t),expr:l})},Spt=function(t){return(0,C.loc)({type:"alter_action_set_visible",setVisibleKw:(0,N.read)(t)})},qpt=function(t){return(0,C.loc)({type:"alter_action_set_invisible",setInvisibleKw:(0,N.read)(t)})},Zpt=function(t,l){return(0,C.loc)({type:"alter_action_set_compression",setCompressionKw:(0,N.read)(t),method:l})},Hpt=function(t,l){return(0,C.loc)({type:"alter_action_set_storage",setStorageKw:(0,N.read)(t),typeKw:l})},Wpt=function(t,l){return(0,C.loc)({type:"alter_action_set_statistics",setStatisticsKw:(0,N.read)(t),value:l})},zpt=function(t,l){return(0,C.loc)({type:"alter_action_drop_expression",dropExpressionKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l)})},Jpt=function(t,l){return(0,C.loc)({type:"alter_action_drop_identity",dropIdentityKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l)})},Ypt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_add_identity",addGeneratedKw:(0,N.read)(t),whenKw:(0,N.read)(l),asIdentityKw:(0,N.read)(a),sequenceOptions:(0,N.read)(u)})},Xpt=function(t,l){return(0,C.loc)({type:"alter_action_alter_identity",actions:[t,...l.map(N.read)]})},Qpt=function(t){return(0,C.loc)({type:"toggle_row_level_security",rowLevelSecurityKw:(0,N.read)(t)})},ect=function(t,l){return(0,C.loc)({type:"toggle_trigger",triggerKw:(0,N.read)(t),name:l})},tct=function(t,l){return(0,C.loc)({type:"toggle_rule",ruleKw:(0,N.read)(t),name:l})},ict=function(t,l){return(0,C.loc)({type:"alter_action_set_generated",setGeneratedKw:(0,N.read)(t),whenKw:(0,N.read)(l)})},rct=function(t,l){return(0,C.loc)({type:"alter_action_set_sequence_option",setKw:(0,N.read)(t),option:l})},nct=function(t){return(0,C.loc)(Object.assign(Object.assign({},t),{type:"alter_action_restart"}))},act=function(t,l,a){return(0,C.loc)({type:"rename_table_stmt",renameKw:(0,N.read)(t),tableKw:(0,N.read)(l),actions:a})},sct=function(t,l,a){return(0,C.loc)({type:"rename_action",from:t,toKw:(0,N.read)(l),to:a})},lct=function(t,l,a,u,f,h,A,O,z,Te,$e){return(0,C.loc)({type:"create_trigger_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),kind:(0,N.read)(a),triggerKw:(0,N.read)(u),ifNotExistsKw:(0,N.read)(f),name:(0,N.read)(h),timeKw:(0,N.read)(A),event:(0,N.read)(O),target:(0,N.read)(z),clauses:Te.map(N.read),body:$e})},oct=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},dct=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},uct=function(t,l){return(0,k.createBinaryExprChain)(t,l)},pct=function(t,l,a){return(0,C.loc)({type:"trigger_event",eventKw:(0,N.read)(t),ofKw:(0,N.read)(l),columns:(0,N.read)(a)})},cct=function(t){return(0,C.loc)({type:"trigger_event",eventKw:(0,N.read)(t)})},fct=function(t,l){return(0,C.loc)({type:"trigger_target",onKw:(0,N.read)(t),table:l})},yct=function(t){return t},hct=function(t,l){return(0,C.loc)({type:"for_each_clause",forEachKw:(0,N.read)(t),itemKw:(0,N.read)(l)})},mct=function(t,l){return(0,C.loc)({type:"when_clause",whenKw:(0,N.read)(t),expr:l})},Tct=function(t,l){return(0,C.loc)({type:"from_referenced_table_clause",fromKw:(0,N.read)(t),table:l})},vct=function(t){return(0,C.loc)({type:"trigger_timing_clause",timingKw:(0,N.read)(t)})},Ect=function(t,l){return(0,C.loc)({type:"trigger_referencing_clause",referencingKw:(0,N.read)(t),transitions:(0,N.read)(l)})},bct=function(t,l,a,u){return(0,C.loc)({type:"trigger_transition",oldOrNewKw:(0,N.read)(t),rowOrTableKw:(0,N.read)(l),asKw:(0,N.read)(a),name:u})},Act=function(t,l,a){return(0,C.loc)({type:"block_stmt",beginKw:(0,N.read)(t),program:l,endKw:(0,N.read)(a)})},gct=function(t,l,a,u){return(0,C.loc)({type:"execute_clause",executeKw:(0,N.read)(t),functionKw:(0,N.read)(l),name:(0,N.read)(a),args:u})},Ict=function(t,l){return(0,C.loc)({type:"program",statements:(0,DO.readCommaSepList)(t,l)})},Rct=function(t,l,a,u){return(0,C.loc)({type:"alter_trigger_stmt",alterTriggerKw:(0,N.read)(t),trigger:(0,N.read)(l),target:(0,N.read)(a),action:u})},Dct=function(t,l,a){return(0,C.loc)({type:"drop_trigger_stmt",dropTriggerKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),trigger:a})},wct=function(t,l,a,u,f){return(0,C.loc)({type:"drop_trigger_stmt",dropTriggerKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),trigger:a,target:(0,N.read)(u),behaviorKw:(0,N.read)(f)})},Oct=function(t,l,a,u,f){return(0,C.loc)({type:"create_schema_stmt",createSchemaKw:(0,N.read)(t),ifNotExistsKw:(0,N.read)(l),name:(0,N.read)(a),clauses:u.map(N.read),statements:f.map(N.read)})},Cct=function(t){return t},_ct=function(t){return t},Vct=function(t){return t},Pct=function(t,l){return(0,C.loc)({type:"create_schema_authorization_clause",authorizationKw:(0,N.read)(t),role:l})},Nct=function(t){return t},xct=function(t,l,a,u){return(0,C.loc)({type:"drop_schema_stmt",dropSchemaKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),schemas:a,behaviorKw:(0,N.read)(u)})},$ct=function(t,l,a,u){return(0,C.loc)({type:"alter_schema_stmt",alterSchemaKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),name:a,actions:u.map(N.read)})},Lct=function(t){return t},Bct=function(t){return t},Mct=function(t){return t},Gct=function(t){return t},kct=function(t){return t},jct=function(t,l,a,u,f,h,A,O,z){return(0,C.loc)({type:"create_function_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),temporaryKw:(0,N.read)(a),tableKw:(0,N.read)(u),functionKw:(0,N.read)(f),ifNotExistsKw:(0,N.read)(h),name:(0,N.read)(A),params:O,clauses:z.map(N.read)})},Uct=function(t,l,a,u,f,h){return(0,C.loc)({type:"create_function_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),functionKw:(0,N.read)(a),name:(0,N.read)(u),params:f,clauses:h.map(N.read)})},Kct=function(t,l){return(0,C.loc)({type:"function_signature",name:(0,N.read)(t),params:(0,N.read)(l)})},Fct=function(t,l){return(0,C.loc)({type:"function_param",name:(0,N.read)(t),dataType:l})},Sct=function(t){return t},qct=function(t){return t},Zct=function(t){return t},Hct=function(t,l){return(0,C.loc)({type:"returns_clause",returnsKw:(0,N.read)(t),dataType:l})},Wct=function(t,l){return(0,C.loc)({type:"return_clause",returnKw:(0,N.read)(t),expr:l})},zct=function(t){return(0,C.loc)({type:"determinism_clause",deterministicKw:(0,N.read)(t)})},Jct=function(t,l){return(0,C.loc)({type:"language_clause",languageKw:(0,N.read)(t),name:l})},Yct=function(t,l){return(0,C.loc)({type:"dynamically_loaded_function",objectFile:(0,N.read)(t),symbol:(0,N.read)(l)})},Xct=function(t,l){return(0,C.loc)({type:"with_connection_clause",withConnectionKw:(0,N.read)(t),connection:l})},Qct=function(t){return(0,C.loc)({type:"function_window_clause",windowKw:t})},eft=function(t){return(0,C.loc)({type:"function_behavior_clause",behaviorKw:(0,N.read)(t)})},tft=function(t,l){return(0,C.loc)({type:"function_security_clause",externalKw:(0,N.read)(t),securityKw:(0,N.read)(l)})},ift=function(t,l){return(0,C.loc)({type:"function_cost_clause",costKw:(0,N.read)(t),cost:l})},rft=function(t,l){return(0,C.loc)({type:"function_rows_clause",rowsKw:(0,N.read)(t),rows:l})},nft=function(t,l){return(0,C.loc)({type:"function_support_clause",supportKw:(0,N.read)(t),name:l})},aft=function(t,l){return(0,C.loc)({type:"function_transform_clause",transformKw:(0,N.read)(t),types:l})},sft=function(t,l){return(0,C.loc)({type:"transform_type",forTypeKw:(0,N.read)(t),dataType:l})},lft=function(t,l,a,u){return(0,C.loc)({type:"set_parameter_clause",setKw:(0,N.read)(t),name:(0,N.read)(l),operator:a,value:(0,N.read)(u)})},oft=function(t,l,a){return(0,C.loc)({type:"set_parameter_from_current_clause",setKw:(0,N.read)(t),name:l,fromCurrentKw:(0,N.read)(a)})},dft=function(t,l){return(0,C.loc)({type:"reset_parameter_clause",resetKw:(0,N.read)(t),name:l})},uft=function(t){return(0,C.loc)({type:"reset_all_parameters_clause",resetAllKw:(0,N.read)(t)})},pft=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"drop_function_stmt",dropKw:(0,N.read)(t),tableKw:(0,N.read)(l),functionKw:(0,N.read)(a),ifExistsKw:(0,N.read)(u),name:f,params:(0,N.read)(h),behaviorKw:(0,N.read)(A)})},cft=function(t,l,a,u,f,h){return(0,C.loc)({type:"alter_function_stmt",alterKw:(0,N.read)(t),functionKw:(0,N.read)(l),name:a,params:(0,N.read)(u),actions:f.map(N.read),behaviorKw:(0,N.read)(h)})},fft=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"create_procedure_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),procedureKw:(0,N.read)(a),ifNotExistsKw:(0,N.read)(u),name:(0,N.read)(f),params:h,clauses:A.map(N.read)})},yft=function(t,l,a){return(0,C.loc)({type:"function_param",mode:(0,N.read)(t),name:(0,N.read)(l),dataType:a})},hft=function(t,l,a,u){return(0,C.loc)({type:"function_param",mode:(0,N.read)(t),name:(0,N.read)(l),dataType:a,default:(0,N.read)(u)})},mft=function(t,l,a){return(0,C.loc)({type:"function_param",mode:(0,N.read)(t),dataType:l,default:(0,N.read)(a)})},Tft=function(t,l){return(0,C.loc)({type:"function_param_default",operator:t,expr:(0,N.read)(l)})},vft=function(t){return t},Eft=function(t){return t},bft=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_procedure_stmt",dropKw:(0,N.read)(t),procedureKw:(0,N.read)(l),ifExistsKw:(0,N.read)(a),name:u,params:(0,N.read)(f),behaviorKw:(0,N.read)(h)})},Aft=function(t,l,a,u,f,h){return(0,C.loc)({type:"alter_procedure_stmt",alterKw:(0,N.read)(t),procedureKw:(0,N.read)(l),name:a,params:(0,N.read)(u),actions:f.map(N.read),behaviorKw:(0,N.read)(h)})},gft=function(t,l,a,u,f,h){return(0,C.loc)({type:"create_sequence_stmt",createKw:(0,N.read)(t),kind:(0,N.read)(l),sequenceKw:(0,N.read)(a),ifNotExistsKw:(0,N.read)(u),name:f,options:h.map(N.read)})},Ift=function(t){return(0,C.loc)({type:"relation_kind",kindKw:t})},Rft=function(t,l){return(0,C.loc)({type:"sequence_option_list",options:[t,...l.map(N.read)]})},Dft=function(t,l){return(0,C.loc)({type:"sequence_option_as_type",asKw:(0,N.read)(t),dataType:l})},wft=function(t,l,a){return(0,C.loc)({type:"sequence_option_increment",incrementKw:(0,N.read)(t),byKw:(0,N.read)(l),value:a})},Oft=function(t,l,a){return(0,C.loc)({type:"sequence_option_start",startKw:(0,N.read)(t),withKw:(0,N.read)(l),value:a})},Cft=function(t,l,a){return(0,C.loc)({type:"sequence_option_restart",restartKw:(0,N.read)(t),withKw:(0,N.read)(l),value:a})},_ft=function(t,l){return(0,C.loc)({type:"sequence_option_restart",restartKw:(0,N.read)(t),value:(0,N.read)(l)})},Vft=function(t,l){return(0,C.loc)({type:"sequence_option_minvalue",minvalueKw:(0,N.read)(t),value:l})},Pft=function(t,l){return(0,C.loc)({type:"sequence_option_maxvalue",maxvalueKw:(0,N.read)(t),value:l})},Nft=function(t){return(0,C.loc)({type:"sequence_option_no_minvalue",noMinvalueKw:(0,N.read)(t)})},xft=function(t){return(0,C.loc)({type:"sequence_option_no_maxvalue",noMaxvalueKw:(0,N.read)(t)})},$ft=function(t,l){return(0,C.loc)({type:"sequence_option_cache",cacheKw:(0,N.read)(t),value:l})},Lft=function(t){return(0,C.loc)({type:"sequence_option_cycle",cycleKw:t})},Bft=function(t){return(0,C.loc)({type:"sequence_option_no_cycle",noCycleKw:(0,N.read)(t)})},Mft=function(t,l){return(0,C.loc)({type:"sequence_option_owned_by",ownedByKw:(0,N.read)(t),owner:l})},Gft=function(t,l,a,u,f){return(0,C.loc)({type:"alter_sequence_stmt",alterKw:(0,N.read)(t),sequenceKw:(0,N.read)(l),ifExistsKw:(0,N.read)(a),sequence:u,actions:f.map(N.read)})},kft=function(t,l,a,u,f){return(0,C.loc)({type:"drop_sequence_stmt",dropKw:(0,N.read)(t),sequenceKw:(0,N.read)(l),ifExistsKw:(0,N.read)(a),sequences:u,behaviorKw:(0,N.read)(f)})},jft=function(t,l,a){return(0,C.loc)({type:"create_type_stmt",createTypeKw:(0,N.read)(t),name:l,definition:(0,N.read)(a)})},Uft=function(t,l){return(0,C.loc)({type:"composite_type_definition",asKw:(0,N.read)(t),columns:(0,N.read)(l)})},Kft=function(t,l){return(0,C.loc)({type:"enum_type_definition",asEnumKw:(0,N.read)(t),values:(0,N.read)(l)})},Fft=function(t,l,a){return(0,C.loc)({type:"alter_type_stmt",alterTypeKw:(0,N.read)(t),name:l,actions:(0,N.read)(a)})},Sft=function(t,l,a,u){return(0,C.loc)({type:"drop_type_stmt",dropTypeKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),types:a,behaviorKw:(0,N.read)(u)})},qft=function(t,l,a,u,f){return(0,C.loc)({type:"create_domain_stmt",createDomainKw:(0,N.read)(t),name:(0,N.read)(l),asKw:(0,N.read)(a),dataType:u,constraints:f.map(N.read)})},Zft=function(t,l,a){return(0,C.loc)({type:"alter_domain_stmt",alterDomainKw:(0,N.read)(t),name:l,action:(0,N.read)(a)})},Hft=function(t,l,a,u){return(0,C.loc)({type:"drop_domain_stmt",dropDomainKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),domains:a,behaviorKw:(0,N.read)(u)})},Wft=function(t,l,a,u){return(0,C.loc)({type:"create_role_stmt",createRoleKw:(0,N.read)(t),name:l,withKw:(0,N.read)(a),options:u.map(N.read)})},zft=function(t){return(0,C.loc)({type:"role_option_keyword",kw:(0,N.read)(t)})},Jft=function(t,l){return(0,C.loc)({type:"role_option_connection_limit",connectionLimitKw:(0,N.read)(t),limit:l})},Yft=function(t,l,a){return(0,C.loc)({type:"role_option_password",encryptedKw:(0,N.read)(t),passwordKw:(0,N.read)(l),password:a})},Xft=function(t,l){return(0,C.loc)({type:"role_option_valid_until",validUntilKw:(0,N.read)(t),timestamp:l})},Qft=function(t,l){return(0,C.loc)({type:"role_option_in_role",inRoleKw:(0,N.read)(t),names:l})},eyt=function(t,l){return(0,C.loc)({type:"role_option_role",roleKw:(0,N.read)(t),names:l})},tyt=function(t,l){return(0,C.loc)({type:"role_option_admin",adminKw:(0,N.read)(t),names:l})},iyt=function(t,l){return(0,C.loc)({type:"role_option_sysid",sysIdKw:(0,N.read)(t),sysId:l})},ryt=function(t,l,a,u){return(0,C.loc)({type:"alter_role_stmt",alterRoleKw:(0,N.read)(t),name:(0,N.read)(l),database:(0,N.read)(a),action:u})},nyt=function(t,l){return(0,C.loc)({type:"in_database_clause",inDatabaseKw:(0,N.read)(t),name:l})},ayt=function(t,l){return(0,C.loc)({type:"alter_action_with_role_options",withKw:t,options:l.map(N.read)})},syt=function(t,l){return(0,C.loc)({type:"alter_action_with_role_options",options:[t,...l.map(N.read)]})},lyt=function(t,l,a,u){return(0,C.loc)({type:"alter_action_set_postgresql_option",setKw:(0,N.read)(t),name:(0,N.read)(l),operator:a,value:(0,N.read)(u)})},oyt=function(t,l,a){return(0,C.loc)({type:"alter_action_set_postgresql_option_from_current",setKw:(0,N.read)(t),name:(0,N.read)(l),fromCurrentKw:(0,N.read)(a)})},dyt=function(t,l){return(0,C.loc)({type:"alter_action_reset_postgresql_option",resetKw:(0,N.read)(t),name:l})},uyt=function(t,l){return(0,C.loc)({type:"alter_action_add_user",addUserKw:(0,N.read)(t),users:l})},pyt=function(t,l){return(0,C.loc)({type:"alter_action_drop_user",dropUserKw:(0,N.read)(t),users:l})},cyt=function(t,l,a){return(0,C.loc)({type:"drop_role_stmt",dropRoleKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),names:a})},fyt=function(t,l,a,u){return(0,C.loc)({type:"set_role_stmt",setKw:(0,N.read)(t),scopeKw:(0,N.read)(l),roleKw:(0,N.read)(a),name:u})},yyt=function(t){return(0,C.loc)({type:"reset_role_stmt",resetRoleKw:(0,N.read)(t)})},hyt=function(t,l,a,u,f){return(0,C.loc)({type:"create_policy_stmt",createPolicyKw:(0,N.read)(t),name:(0,N.read)(l),onKw:(0,N.read)(a),table:u,clauses:f.map(N.read)})},myt=function(t,l){return(0,C.loc)({type:"policy_permissive_clause",asKw:(0,N.read)(t),permissiveKw:l})},Tyt=function(t,l){return(0,C.loc)({type:"policy_restrictive_clause",asKw:(0,N.read)(t),restrictiveKw:l})},vyt=function(t,l){return(0,C.loc)({type:"policy_command_clause",forKw:(0,N.read)(t),commandKw:l})},Eyt=function(t,l){return(0,C.loc)({type:"policy_roles_clause",toKw:(0,N.read)(t),roles:l})},byt=function(t,l){return(0,C.loc)({type:"policy_using_clause",usingKw:(0,N.read)(t),expr:l})},Ayt=function(t,l,a){return(0,C.loc)({type:"policy_check_clause",withKw:(0,N.read)(t),checkKw:(0,N.read)(l),expr:a})},gyt=function(t,l,a,u,f){return(0,C.loc)({type:"alter_policy_stmt",alterPolicyKw:(0,N.read)(t),name:(0,N.read)(l),onKw:(0,N.read)(a),table:u,actions:f.map(N.read)})},Iyt=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_policy_stmt",dropPolicyKw:(0,N.read)(t),ifExistsKw:(0,N.read)(l),name:(0,N.read)(a),onKw:(0,N.read)(u),table:f,behaviorKw:(0,N.read)(h)})},Ryt=function(t,l,a){return(0,C.loc)({type:"analyze_stmt",analyzeKw:t,tableKw:(0,N.read)(l),tables:(0,N.read)(a)||[]})},Dyt=function(t,l,a,u){return(0,C.loc)({type:"explain_stmt",explainKw:(0,N.read)(t),analyzeKw:(0,N.read)(l),queryPlanKw:(0,N.read)(a),statement:u})},wyt=function(t){return t},Oyt=function(t){return t},Cyt=function(t,l,a){return(0,C.loc)({type:"start_transaction_stmt",startKw:t,behaviorKw:(0,N.read)(l),transactionKw:(0,N.read)(a)})},_yt=function(t,l,a){return(0,C.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,N.read)(l),modes:(0,N.read)(a)})},Vyt=function(t,l){return(0,C.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,N.read)(l)})},Pyt=function(t,l,a){return(0,C.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,N.read)(l),modes:(0,N.read)(a)})},Nyt=function(t){return(0,C.loc)({type:"transaction_mode_deferrable",deferrableKw:t})},xyt=function(t){return(0,C.loc)({type:"transaction_mode_not_deferrable",notDeferrableKw:(0,N.read)(t)})},$yt=function(t){return(0,C.loc)({type:"transaction_mode_read_write",readWriteKw:(0,N.read)(t)})},Lyt=function(t){return(0,C.loc)({type:"transaction_mode_read_only",readOnlyKw:(0,N.read)(t)})},Byt=function(t,l){return(0,C.loc)({type:"transaction_mode_isolation_level",isolationLevelKw:(0,N.read)(t),levelKw:(0,N.read)(l)})},Myt=function(t,l,a){return(0,C.loc)({type:"commit_transaction_stmt",commitKw:t,transactionKw:(0,N.read)(l),chain:(0,N.read)(a)})},Gyt=function(t){return t},kyt=function(t,l,a,u){return(0,C.loc)({type:"rollback_transaction_stmt",rollbackKw:t,transactionKw:(0,N.read)(l),savepoint:(0,N.read)(a),chain:(0,N.read)(u)})},jyt=function(t){return t},Uyt=function(t,l,a){return(0,C.loc)({type:"rollback_to_savepoint",toKw:(0,N.read)(t),savepointKw:(0,N.read)(l),savepoint:a})},Kyt=function(t){return t},Fyt=function(t){return t},Syt=function(t,l){return(0,C.loc)({type:"savepoint_stmt",savepointKw:(0,N.read)(t),savepoint:l})},qyt=function(t,l,a){return(0,C.loc)({type:"release_savepoint_stmt",releaseKw:(0,N.read)(t),savepointKw:(0,N.read)(l),savepoint:a})},Zyt=function(t){return(0,C.loc)({type:"transaction_chain_clause",andChainKw:(0,N.read)(t)})},Hyt=function(t){return(0,C.loc)({type:"transaction_no_chain_clause",andNoChainKw:(0,N.read)(t)})},Wyt=function(t){return t},zyt=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"grant_privilege_stmt",grantKw:(0,N.read)(t),privileges:(0,N.read)(l),onKw:(0,N.read)(a),resource:(0,N.read)(u),toKw:(0,N.read)(f),roles:h,clauses:A.map(N.read)})},Jyt=function(t,l,a,u,f,h){return(0,C.loc)({type:"grant_privilege_stmt",grantKw:(0,N.read)(t),privileges:(0,N.read)(l),onKw:(0,N.read)(a),resource:(0,N.read)(u),toKw:(0,N.read)(f),roles:h,clauses:[]})},Yyt=function(t,l,a,u,f){return(0,C.loc)({type:"grant_role_stmt",grantKw:(0,N.read)(t),grantedRoles:(0,N.read)(l),toKw:(0,N.read)(a),granteeRoles:u,clauses:f.map(N.read)})},Xyt=function(t,l){return(0,C.loc)({type:"privilege",privilegeKw:t,columns:(0,N.read)(l)})},Qyt=function(t){return(0,N.read)(t)},eht=function(t,l,a){return(0,C.loc)({type:"all_privileges",allKw:(0,N.read)(t),privilegesKw:(0,N.read)(l),columns:(0,N.read)(a)})},tht=function(t,l){return(0,C.loc)({type:"grant_resource_all_tables_in_schema",allTablesInSchemaKw:(0,N.read)(t),schemas:l})},iht=function(t,l){return(0,C.loc)({type:"grant_resource_all_sequences_in_schema",allSequencesInSchemaKw:(0,N.read)(t),schemas:l})},rht=function(t,l){return(0,C.loc)({type:"grant_resource_all_functions_in_schema",allFunctionsInSchemaKw:(0,N.read)(t),schemas:l})},nht=function(t,l){return(0,C.loc)({type:"grant_resource_sequence",sequenceKw:(0,N.read)(t),sequences:l})},aht=function(t,l){return(0,C.loc)({type:"grant_resource_database",databaseKw:(0,N.read)(t),databases:l})},sht=function(t,l){return(0,C.loc)({type:"grant_resource_domain",domainKw:(0,N.read)(t),domains:l})},lht=function(t,l){return(0,C.loc)({type:"grant_resource_foreign_data_wrapper",foreignDataWrapperKw:(0,N.read)(t),dataWrappers:l})},oht=function(t,l){return(0,C.loc)({type:"grant_resource_foreign_server",foreignServerKw:(0,N.read)(t),servers:l})},dht=function(t,l){return(0,C.loc)({type:"grant_resource_function",functionKw:(0,N.read)(t),functions:l})},uht=function(t,l){return(0,C.loc)({type:"grant_resource_language",languageKw:(0,N.read)(t),languages:l})},pht=function(t,l){return(0,C.loc)({type:"grant_resource_large_object",largeObjectKw:(0,N.read)(t),oids:l})},cht=function(t,l){return(0,C.loc)({type:"grant_resource_postgresql_option",parameterKw:(0,N.read)(t),options:l})},fht=function(t,l){return(0,C.loc)({type:"grant_resource_schema",schemaKw:(0,N.read)(t),schemas:l})},yht=function(t,l){return(0,C.loc)({type:"grant_resource_tablespace",tablespaceKw:(0,N.read)(t),tablespaces:l})},hht=function(t,l){return(0,C.loc)({type:"grant_resource_type",typeKw:(0,N.read)(t),types:l})},mht=function(t,l){return(0,C.loc)({type:"grant_resource_table",tableKw:(0,N.read)(t),tables:l})},Tht=function(t,l){return(0,C.loc)({type:"grant_resource_table",tableKw:(0,N.read)(t),tables:l})},vht=function(t,l){return(0,C.loc)({type:"grant_resource_view",viewKw:(0,N.read)(t),views:l})},Eht=function(t,l){return(0,C.loc)({type:"grant_resource_schema",schemaKw:(0,N.read)(t),schemas:l})},bht=function(t,l,a){return(0,C.loc)({type:"with_grant_option_clause",withKw:(0,N.read)(t),nameKw:(0,N.read)(l),value:a})},Aht=function(t,l){return(0,C.loc)({type:"grant_option_for_clause",nameKw:(0,N.read)(t),optionForKw:(0,N.read)(l)})},ght=function(t,l){return(0,C.loc)({type:"granted_by_clause",grantedByKw:(0,N.read)(t),role:l})},Iht=function(t,l,a,u,f,h,A,O,z){return(0,C.loc)({type:"revoke_privilege_stmt",revokeKw:(0,N.read)(t),option:(0,N.read)(l),privileges:(0,N.read)(a),onKw:(0,N.read)(u),resource:(0,N.read)(f),fromKw:(0,N.read)(h),roles:A,grantedBy:(0,N.read)(O),behaviorKw:(0,N.read)(z)})},Rht=function(t,l,a,u,f,h){return(0,C.loc)({type:"revoke_privilege_stmt",revokeKw:(0,N.read)(t),privileges:(0,N.read)(l),onKw:(0,N.read)(a),resource:(0,N.read)(u),fromKw:(0,N.read)(f),roles:h})},Dht=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"revoke_role_stmt",revokeKw:(0,N.read)(t),option:(0,N.read)(l),grantedRoles:(0,N.read)(a),fromKw:(0,N.read)(u),granteeRoles:f,grantedBy:(0,N.read)(h),behaviorKw:(0,N.read)(A)})},wht=function(t,l){return(0,C.loc)({type:"grantee_group",groupKw:t,name:(0,N.read)(l)})},Oht=function(t){return(0,C.loc)({type:"grantee_public",publicKw:t})},Cht=function(t){return(0,C.loc)({type:"func_call",name:t})},_ht=function(t){return t},Vht=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},Pht=function(t){return t},Nht=function(t){return t},xht=function(t,l,a){return(0,C.loc)({type:"labeled_stmt",beginLabel:(0,N.read)(t),statement:(0,N.read)(l),endLabel:(0,N.read)(a)})},$ht=function(t,l,a){return(0,C.loc)({type:"labeled_stmt",beginLabel:(0,N.read)(t),statement:(0,N.read)(l),endLabel:(0,N.read)(a)})},Lht=function(t,l,a){return(0,C.loc)({type:"labeled_stmt",beginLabel:(0,N.read)(t),statement:(0,N.read)(l),endLabel:(0,N.read)(a)})},Bht=function(t,l,a){return(0,C.loc)({type:"labeled_stmt",beginLabel:(0,N.read)(t),statement:(0,N.read)(l),endLabel:(0,N.read)(a)})},Mht=function(t,l,a){return(0,C.loc)({type:"labeled_stmt",beginLabel:(0,N.read)(t),statement:(0,N.read)(l),endLabel:(0,N.read)(a)})},Ght=function(t,l,a,u,f){return(0,C.loc)({type:"block_stmt",beginKw:(0,N.read)(t),atomicKw:(0,N.read)(l),program:a,exception:(0,N.read)(u),endKw:(0,N.read)(f)})},kht=function(t){return t},jht=function(t,l,a,u,f){return(0,C.loc)({type:"exception_clause",exceptionKw:(0,N.read)(t),whenKw:(0,N.read)(l),condition:(0,N.read)(a),thenKw:(0,N.read)(u),program:f})},Uht=function(t){return(0,C.loc)({type:"error_category",errorKw:t})},Kht=function(t,l,a,u){return(0,C.loc)({type:"declare_stmt",declareKw:(0,N.read)(t),names:l,dataType:(0,N.read)(a),default:(0,N.read)(u)})},Fht=function(t,l){return(0,C.loc)({type:"declare_default",defaultKw:(0,N.read)(t),expr:l})},Sht=function(t,l){return(0,C.loc)({type:"set_stmt",setKw:(0,N.read)(t),assignments:l})},qht=function(t,l){return(0,C.loc)({type:"binary_expr",left:(0,N.read)(t),operator:"=",right:(0,N.read)(l)})},Zht=function(t,l){return(0,C.loc)({type:"binary_expr",left:(0,N.read)(t),operator:"=",right:(0,N.read)(l)})},Hht=function(t,l,a,u){return(0,C.loc)({type:"if_stmt",clauses:[(0,N.read)(t),...l.map(N.read),...a?[(0,N.read)(a)]:[]],endIfKw:(0,N.read)(u)})},Wht=function(t,l,a,u){return(0,C.loc)({type:"if_clause",ifKw:(0,N.read)(t),condition:(0,N.read)(l),thenKw:(0,N.read)(a),consequent:u})},zht=function(t,l,a,u){return(0,C.loc)({type:"elseif_clause",elseifKw:(0,N.read)(t),condition:(0,N.read)(l),thenKw:(0,N.read)(a),consequent:u})},Jht=function(t,l){return(0,C.loc)({type:"else_clause",elseKw:(0,N.read)(t),consequent:l})},Yht=function(t,l,a,u,f){return(0,C.loc)({type:"case_stmt",caseKw:t,expr:(0,N.read)(l),clauses:[...a.map(N.read),...u?[(0,N.read)(u)]:[]],endCaseKw:(0,N.read)(f)})},Xht=function(t,l,a,u){return(0,C.loc)({type:"case_when",whenKw:t,condition:(0,N.read)(l),thenKw:a,result:(0,N.read)(u)})},Qht=function(t,l){return(0,C.loc)({type:"case_else",elseKw:t,result:(0,N.read)(l)})},e0t=function(t,l,a){return(0,C.loc)({type:"loop_stmt",loopKw:(0,N.read)(t),body:l,endLoopKw:(0,N.read)(a)})},t0t=function(t,l,a,u,f){return(0,C.loc)({type:"repeat_stmt",repeatKw:(0,N.read)(t),body:(0,N.read)(l),untilKw:(0,N.read)(a),condition:(0,N.read)(u),endRepeatKw:(0,N.read)(f)})},i0t=function(t,l,a,u,f){return(0,C.loc)({type:"while_stmt",whileKw:(0,N.read)(t),condition:(0,N.read)(l),doKw:(0,N.read)(a),body:(0,N.read)(u),endWhileKw:(0,N.read)(f)})},r0t=function(t,l,a,u,f,h,A){return(0,C.loc)({type:"for_stmt",forKw:(0,N.read)(t),left:(0,N.read)(l),inKw:(0,N.read)(a),right:(0,N.read)(u),doKw:(0,N.read)(f),body:(0,N.read)(h),endForKw:(0,N.read)(A)})},n0t=function(t,l){return(0,C.loc)({type:"break_stmt",breakKw:t,label:(0,N.read)(l)})},a0t=function(t){return t},s0t=function(t,l){return(0,C.loc)({type:"continue_stmt",continueKw:t,label:(0,N.read)(l)})},l0t=function(t){return t},o0t=function(t,l){return(0,C.loc)({type:"call_stmt",callKw:(0,N.read)(t),func:l})},d0t=function(t,l){return(0,C.loc)({type:"return_stmt",returnKw:(0,N.read)(t),expr:l})},u0t=function(t){return(0,C.loc)({type:"return_stmt",returnKw:t})},p0t=function(t,l){return(0,C.loc)({type:"raise_stmt",raiseKw:t,message:(0,N.read)(l)})},c0t=function(t,l){return(0,C.loc)({type:"raise_message",usingMessageKw:(0,N.read)(t),string:(0,N.read)(l)})},f0t=function(t,l,a,u,f){return(0,C.loc)({type:"execute_stmt",executeKw:(0,N.read)(t),immediateKw:(0,N.read)(l),expr:a,into:(0,N.read)(u),using:(0,N.read)(f)})},y0t=function(t){return t},h0t=function(t,l){return(0,C.loc)({type:"execute_into_clause",intoKw:(0,N.read)(t),variables:l})},m0t=function(t,l){return(0,C.loc)({type:"execute_using_clause",usingKw:(0,N.read)(t),values:l})},T0t=function(t,l,a,u,f){return(0,C.loc)({type:"attach_database_stmt",attachKw:(0,N.read)(t),databaseKw:(0,N.read)(l),file:(0,N.read)(a),asKw:(0,N.read)(u),schema:f})},v0t=function(t,l,a){return(0,C.loc)({type:"detach_database_stmt",detachKw:(0,N.read)(t),databaseKw:(0,N.read)(l),schema:a})},E0t=function(t,l,a,u){return(0,C.loc)({type:"vacuum_stmt",vacuumKw:(0,N.read)(t),schema:(0,N.read)(l),intoKw:(0,N.read)(a),file:u})},b0t=function(t,l){return(0,C.loc)({type:"vacuum_stmt",vacuumKw:(0,N.read)(t),schema:(0,N.read)(l)})},A0t=function(t,l){return(0,C.loc)({type:"pragma_stmt",pragmaKw:(0,N.read)(t),pragma:l})},g0t=function(t,l){return(0,C.loc)({type:"pragma_assignment",name:(0,N.read)(t),value:(0,N.read)(l)})},I0t=function(t,l){return(0,C.loc)({type:"pragma_func_call",name:(0,N.read)(t),args:(0,N.read)(l)})},R0t=function(t){return(0,k.createKeyword)(t)},D0t=function(t,l,a,u){const f=(0,N.read)(l),h={createKw:(0,N.read)(t),name:(0,N.read)(a),options:u};switch(f.name){case"CAPACITY":return(0,C.loc)(Object.assign({type:"create_capacity_stmt",capacityKw:f},h));case"RESERVATION":return(0,C.loc)(Object.assign({type:"create_reservation_stmt",reservationKw:f},h));case"ASSIGNMENT":return(0,C.loc)(Object.assign({type:"create_assignment_stmt",assignmentKw:f},h))}},w0t=function(t,l,a,u){const f=(0,N.read)(l),h={dropKw:(0,N.read)(t),ifExistsKw:(0,N.read)(a),name:u};switch(f.name){case"CAPACITY":return(0,C.loc)(Object.assign({type:"drop_capacity_stmt",capacityKw:f},h));case"RESERVATION":return(0,C.loc)(Object.assign({type:"drop_reservation_stmt",reservationKw:f},h));case"ASSIGNMENT":return(0,C.loc)(Object.assign({type:"drop_assignment_stmt",assignmentKw:f},h))}},O0t=function(t,l,a,u,f,h,A,O){return(0,C.loc)({type:"create_row_access_policy_stmt",createKw:(0,N.read)(t),orReplaceKw:(0,N.read)(l),rowAccessPolicyKw:(0,N.read)(a),ifNotExistsKw:(0,N.read)(u),name:(0,N.read)(f),onKw:(0,N.read)(h),table:(0,N.read)(A),clauses:O.map(N.read)})},C0t=function(t,l){return(0,C.loc)({type:"row_access_policy_grant_clause",grantToKw:(0,N.read)(t),grantees:l})},_0t=function(t,l){return(0,C.loc)({type:"row_access_policy_filter_clause",filterUsingKw:(0,N.read)(t),expr:l})},V0t=function(t,l,a,u,f,h){return(0,C.loc)({type:"drop_row_access_policy_stmt",dropKw:(0,N.read)(t),rowAccessPolicyKw:(0,N.read)(l),ifExistsKw:(0,N.read)(a),name:(0,N.read)(u),onKw:(0,N.read)(f),table:h})},P0t=function(t,l,a,u,f){return(0,C.loc)({type:"drop_row_access_policy_stmt",dropKw:(0,N.read)(t),allKw:(0,N.read)(l),rowAccessPolicyKw:(0,N.read)(a),onKw:(0,N.read)(u),table:f})},N0t=function(t,l){return(0,C.loc)({type:"alter_organization_stmt",alterOrganizationKw:(0,N.read)(t),actions:[l]})},x0t=function(t,l,a){return(0,C.loc)({type:"alter_project_stmt",alterProjectKw:(0,N.read)(t),name:(0,N.read)(l),actions:[a]})},$0t=function(t,l,a){return(0,C.loc)({type:"alter_bi_capacity_stmt",alterBiCapacityKw:(0,N.read)(t),name:(0,N.read)(l),actions:[a]})},L0t=function(t,l,a){return(0,C.loc)({type:"alter_capacity_stmt",alterCapacityKw:(0,N.read)(t),name:(0,N.read)(l),actions:[a]})},B0t=function(t,l,a){return(0,C.loc)({type:"alter_reservation_stmt",alterReservationKw:(0,N.read)(t),name:(0,N.read)(l),actions:[a]})},M0t=function(t,l,a){return(0,C.loc)({type:"assert_stmt",assertKw:(0,N.read)(t),expr:l,as:(0,N.read)(a)})},G0t=function(t,l,a,u){return(0,C.loc)({type:"export_data_stmt",exportDataKw:(0,N.read)(t),withConnection:(0,N.read)(l),options:(0,N.read)(a),as:u})},k0t=function(t,l,a,u,f){return(0,C.loc)({type:"load_data_stmt",loadDataKw:(0,N.read)(t),intoKw:(0,N.read)(l),table:a,columns:(0,N.read)(u),clauses:f.map(N.read)})},j0t=function(t,l){return(0,C.loc)({type:"from_files_options",fromFilesKw:(0,N.read)(t),options:l})},U0t=function(t,l){return(0,C.loc)({type:"postgresql_with_options",withKw:(0,N.read)(t),options:l})},K0t=function(t,l){return(0,C.loc)({type:"table_option",name:(0,N.read)(t),hasEq:!0,value:(0,N.read)(l)})},F0t=function(t){return(0,C.loc)({type:"table_option",name:(0,N.read)(t)})},S0t=function(t,l){return(0,C.loc)({type:"postgresql_options",optionsKw:(0,N.read)(t),options:l})},q0t=function(t,l){return(0,C.loc)({type:"postgresql_option_element",name:(0,N.read)(t),value:l})},Z0t=function(t,l){return(0,C.loc)({type:"postgresql_operator_class",name:t,options:(0,N.read)(l)})},H0t=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},W0t=function(t){return t},z0t=function(t){return t},J0t=function(t){return(0,C.loc)({type:"table_option",name:(0,N.read)(t)})},Y0t=function(t,l){return(0,C.loc)({type:"table_option",name:(0,N.read)(t),hasEq:!0,value:(0,N.read)(l)})},X0t=function(t,l){return(0,C.loc)({type:"table_option",name:(0,N.read)(t),value:(0,N.read)(l)})},Q0t=function(t){return(0,C.loc)({type:"table_option",name:(0,N.read)(t)})},emt=function(t){return(0,N.read)(t)},tmt=function(t){return(0,N.read)(t)},imt=function(t){return(0,N.read)(t)},rmt=function(t){return(0,N.read)(t)},nmt=function(t){return(0,N.read)(t)},amt=function(t,l,a){return!t&&a.length===0?l:(0,C.loc)({type:"constraint",name:(0,N.read)(t),constraint:l,modifiers:a.map(N.read)})},smt=function(t,l){return l},lmt=function(t,l,a){return!t&&a.length===0?l:(0,C.loc)({type:"constraint",name:(0,N.read)(t),constraint:l,modifiers:a.map(N.read)})},omt=function(t,l){return(0,C.loc)({type:"constraint_name",constraintKw:t,name:(0,N.read)(l)})},dmt=function(t){return(0,C.loc)({type:"constraint_modifier",kw:(0,N.read)(t)})},umt=function(t){return(0,C.loc)({type:"constraint_modifier",kw:(0,N.read)(t)})},pmt=function(t){return(0,C.loc)({type:"constraint_modifier",kw:(0,N.read)(t)})},cmt=function(t){return(0,C.loc)({type:"constraint_modifier",kw:(0,N.read)(t)})},fmt=function(t){return t},ymt=function(t){return t},hmt=function(t){return t},mmt=function(t){return t},Tmt=function(t){return t},vmt=function(t,l){return(0,C.loc)({type:"constraint_not_null",notNullKw:(0,N.read)(t),clauses:l.map(N.read)})},Emt=function(t){return(0,C.loc)({type:"constraint_null",nullKw:t})},bmt=function(t,l){return(0,C.loc)({type:"constraint_default",defaultKw:t,expr:(0,N.read)(l)})},Amt=function(t){return(0,C.loc)({type:"constraint_auto_increment",autoIncrementKw:t})},gmt=function(t){return t},Imt=function(t){return t},Rmt=function(t,l){return(0,C.loc)({type:"constraint_comment",commentKw:t,value:(0,N.read)(l)})},Dmt=function(t,l){return(0,C.loc)({type:"constraint_collate",collateKw:t,collation:(0,N.read)(l)})},wmt=function(t){return(0,C.loc)({type:"constraint_visible",visibleKw:t})},Omt=function(t,l){return(0,C.loc)({type:"constraint_column_format",columnFormatKw:(0,N.read)(t),formatKw:l})},Cmt=function(t,l){return(0,C.loc)({type:"constraint_storage",storageKw:(0,N.read)(t),typeKw:l})},_mt=function(t){return t},Vmt=function(t){return t},Pmt=function(t,l,a){return(0,C.loc)({type:"constraint_engine_attribute",engineAttributeKw:l?(0,bo.trailing)(t,l[0]):t,hasEq:!!l,value:(0,N.read)(a)})},Nmt=function(t,l){return(0,C.loc)({type:"constraint_compression",compressionKw:(0,N.read)(t),method:l})},xmt=function(t,l,a,u){return(0,C.loc)({type:"constraint_generated",generatedKw:t?(0,N.read)(t):void 0,asKw:l,expr:(0,N.read)(a),storageKw:(0,N.read)(u)})},$mt=function(t,l,a,u){return(0,C.loc)({type:"constraint_generated",generatedKw:(0,N.read)(t),asKw:(0,N.read)(l),expr:(0,N.read)(a),sequenceOptions:(0,N.read)(u)})},Lmt=function(t){return(0,C.loc)({type:"identity_column",identityKw:t})},Bmt=function(t){return t},Mmt=function(t){return t},Gmt=function(t){return t},kmt=function(t){return t},jmt=function(t,l,a){return(0,C.loc)({type:"constraint_primary_key",primaryKeyKw:(0,N.read)(t),columns:l,clauses:a.map(N.read)})},Umt=function(t,l,a){return(0,C.loc)({type:"constraint_primary_key",primaryKeyKw:(0,N.read)(t),direction:(0,N.read)(l),clauses:a.map(N.read)})},Kmt=function(t){return t},Fmt=function(t){return t},Smt=function(t,l){return(0,C.loc)({type:"existing_index",usingIndexKw:(0,N.read)(t),index:l})},qmt=function(t,l,a,u){return(0,C.loc)({type:"constraint_unique",uniqueKw:(0,N.read)(t),nullsKw:(0,N.read)(l),columns:a,clauses:u.map(N.read)})},Zmt=function(t,l,a){return(0,C.loc)({type:"constraint_unique",uniqueKw:t,nullsKw:(0,N.read)(l),clauses:a.map(N.read)})},Hmt=function(t){return(0,N.read)(t)},Wmt=function(t){return(0,N.read)(t)},zmt=function(t,l,a){return(0,C.loc)({type:"constraint_check",checkKw:t,expr:(0,N.read)(l),clauses:a.map(N.read)})},Jmt=function(t,l,a,u){return(0,C.loc)({type:"constraint_foreign_key",foreignKeyKw:(0,N.read)(t),indexName:(0,N.read)(l),columns:a,references:(0,N.read)(u)})},Ymt=function(t,l,a,u){return(0,C.loc)({type:"references_specification",referencesKw:(0,N.read)(t),table:l,columns:(0,N.read)(a),options:u.map(N.read)})},Xmt=function(t,l,a,u){return(0,C.loc)({type:"referential_action",onKw:(0,N.read)(t),eventKw:(0,N.read)(l),actionKw:a,columns:(0,N.read)(u)})},Qmt=function(t,l){return(0,C.loc)({type:"referential_match",matchKw:(0,N.read)(t),typeKw:l})},eTt=function(t){return(0,N.read)(t)},tTt=function(t,l){return(0,C.loc)({type:"constraint_index",indexKw:(0,N.read)(t),columns:l})},iTt=function(t,l,a){return(0,C.loc)({type:"constraint_index",indexTypeKw:(0,N.read)(t),indexKw:(0,N.read)(l),columns:a})},rTt=function(t,l,a,u){return(0,C.loc)({type:"constraint_exclude",excludeKw:(0,N.read)(t),using:(0,N.read)(l),params:a,clauses:u.map(N.read)})},nTt=function(t,l,a){return(0,C.loc)({type:"exclusion_param",index:t,withKw:(0,N.read)(l),operator:a})},aTt=function(t,l){return(0,C.loc)({type:"on_conflict_clause",onConflictKw:(0,N.read)(t),resolutionKw:l})},sTt=function(t,l){return(0,C.loc)({type:"index_tablespace_clause",usingIndexTablespaceKw:(0,N.read)(t),name:l})},lTt=function(t,l){return(0,C.loc)((0,k.createArrayDataTypeChain)(t,l))},oTt=function(t,l){return(0,C.loc)({type:"with_time_zone_data_type",dataType:t,withTimeZoneKw:(0,N.read)(l)})},dTt=function(t){return(0,C.loc)({type:"array_bounds",bounds:(0,N.read)(t)})},uTt=function(t){return(0,C.loc)({type:"array_bounds",bounds:(0,N.read)(t)})},pTt=function(t,l){return(0,C.loc)({type:"named_data_type",name:(0,N.read)(t),params:l})},cTt=function(t){return t},fTt=function(t){return(0,C.loc)({type:"named_data_type",name:t})},yTt=function(t,l){return(0,C.loc)({type:"named_data_type",name:(0,N.read)(t),params:(0,N.read)(l)})},hTt=function(t,l){return(0,C.loc)({type:"named_data_type",name:(0,N.read)(t),params:(0,N.read)(l)})},mTt=function(t,l){return(0,C.loc)({type:"named_data_type",name:(0,N.read)(t),params:(0,N.read)(l)})},TTt=function(t){return(0,C.loc)({type:"generic_type_params",params:(0,N.read)(t)})},vTt=function(t,l,a){return(0,C.loc)({type:"struct_type_param",name:(0,N.read)(t),dataType:l,constraints:a.map(N.read)})},ETt=function(t,l){return(0,C.loc)({type:"array_type_param",dataType:t,constraints:l.map(N.read)})},bTt=function(t,l){return(0,C.loc)({type:"table_data_type",tableKw:(0,N.read)(t),columns:l})},ATt=function(t){return t},gTt=function(t){return t},ITt=function(t){return t},RTt=function(t){return t},DTt=function(t){return(0,N.read)(t)},wTt=function(t){return(0,N.read)(t)},OTt=function(t){return(0,N.read)(t)},CTt=function(t){return(0,N.read)(t)},_Tt=function(t){return(0,N.read)(t)},VTt=function(t){return(0,N.read)(t)},PTt=function(t){return(0,N.read)(t)},NTt=function(t){return(0,N.read)(t)},xTt=function(t){return(0,N.read)(t)},$Tt=function(t,l){return l.length===0?t:[t,...l.map(N.read)]},LTt=function(t){return t},BTt=function(t){return t},MTt=function(t,l){return l?(0,C.loc)(l(t)):t},GTt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,l,a,u)},kTt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},jTt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},UTt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},KTt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},FTt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},STt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},qTt=function(t){return t},ZTt=function(t){return t},HTt=function(t,l){return l?(0,C.loc)(l(t)):t},WTt=function(t){return l=>(0,k.createPostfixOpExpr)((0,N.read)(t),l)},zTt=function(t){return l=>(0,k.createBinaryExprChain)(l,t)},JTt=function(t,l){return(0,C.loc)((0,k.createBinaryExprChain)(t,l))},YTt=function(t,l){return l?(0,C.loc)(l(t)):t},XTt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},QTt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},evt=function(t,l,a,u){return f=>({type:"between_expr",left:f,betweenKw:(0,N.read)(t),begin:(0,N.read)(l),andKw:(0,N.read)(a),end:(0,N.read)(u)})},tvt=function(t){return(0,N.read)(t)},ivt=function(t,l){return l?(0,C.loc)(l(t)):t},rvt=function(t){return t},nvt=function(t){return l=>(0,k.createPostfixOpExpr)((0,N.read)(t),l)},Z$=function(t){return t},avt=function(t){return l=>(0,k.createBinaryExprChain)(l,t)},svt=function(t,l,a,u){return u},lvt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},ovt=function(t,l,a,u){return u},dvt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},uvt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},pvt=function(t,l,a,u){return f=>(0,k.createBinaryExpr)(f,t,(0,N.read)(l),a,u)},cvt=function(t,l,a,u){return f=>({type:"between_expr",left:f,betweenKw:(0,N.read)(t),begin:(0,N.read)(l),andKw:(0,N.read)(a),end:(0,N.read)(u)})},fvt=function(t){return t},yvt=function(t){return(0,N.read)(t)},hvt=function(t){return(0,N.read)(t)},mvt=function(t){return(0,N.read)(t)},Tvt=function(t){return(0,N.read)(t)},vvt=function(t){return t},Evt=function(t){return t},bvt=function(t){return(0,N.read)(t)},Avt=function(t){return(0,N.read)(t)},gvt=function(t){return(0,N.read)(t)},Ivt=function(t){return(0,N.read)(t)},Rvt=function(t){return(0,N.read)(t)},Dvt=function(t){return t},wvt=function(t){return t},Ovt=function(t){return t},Cvt=function(t,l,a,u,f){return(0,C.loc)((0,k.createBinaryExpr)(t,l,a,u,f))},_vt=function(t){return(0,N.read)(t)},Vvt=function(t,l){return(0,C.loc)({type:"quantifier_expr",quantifierKw:(0,N.read)(t),expr:l})},Pvt=function(t,l,a,u){return(0,C.loc)({type:"full_text_match_expr",matchKw:(0,N.read)(t),columns:(0,N.read)(l),againstKw:(0,N.read)(a),args:(0,N.read)(u)})},Nvt=function(t,l){return(0,C.loc)({type:"full_text_match_args",expr:t,modifier:(0,N.read)(l)})},xvt=function(t){return(0,N.read)(t)},$vt=function(t){return t},Lvt=function(t){return t},Bvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Mvt=function(t){return t},Gvt=function(t,l){return(0,C.loc)({type:"postgresql_operator_expr",operatorKw:(0,N.read)(t),expr:l})},kvt=function(t,l){return(0,C.loc)({type:"member_expr",object:(0,N.read)(t),property:(0,N.read)(l)})},jvt=function(t){return(0,C.loc)({type:"postgresql_operator",operator:xt()})},Uvt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},Kvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Fvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Svt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},qvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Zvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Hvt=function(t){return(0,N.read)(t)},Wvt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},zvt=function(t,l){return(0,k.createCastOperatorExprChain)(t,l)},Jvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Yvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Xvt=function(t){return t},Qvt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},eEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},tEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},iEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},rEt=function(t){return t},nEt=function(t){return t},aEt=function(t){return t},sEt=function(t){return t},lEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},oEt=function(t){return t},dEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},uEt=function(t){return t},pEt=function(t){return t},cEt=function(t){return t},fEt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},yEt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},hEt=function(t){return t},mEt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},TEt=function(t){return t},vEt=function(t){return t},EEt=function(t,l){return(0,C.loc)((0,k.createFuncCall)(t,l))},bEt=function(t,l){return(0,k.createMemberExprChain)(t,l)},AEt=function(t,l){return(0,k.createMemberExprChain)(t,l)},gEt=function(t){return(0,C.loc)({type:"array_subscript",expr:(0,N.read)(t)})},IEt=function(t,l){return(0,C.loc)({type:"array_subscript_specifier",specifierKw:t,args:(0,N.read)(l)})},REt=function(t,l){return(0,C.loc)({type:"array_slice_specifier",from:(0,N.read)(t),to:(0,N.read)(l)})},DEt=function(t){return t},wEt=function(t){return t},OEt=function(t){return t},CEt=function(t){return t},_Et=function(t){return t},VEt=function(t){return t},PEt=function(t){return t},NEt=function(t){return t},xEt=function(t,l,a){return l.items.length>1?(0,hn.isBigquery)()?(0,C.loc)({type:"struct_expr",expr:(0,bo.surrounding)(t,l,a)}):(0,C.loc)({type:"paren_expr",expr:(0,bo.surrounding)(t,l,a)}):(0,C.loc)({type:"paren_expr",expr:(0,bo.surrounding)(t,l.items[0],a)})},$Et=function(t,l){return(0,C.loc)({type:"cast_expr",castKw:t,args:(0,N.read)(l)})},LEt=function(t){return t},BEt=function(t,l,a,u){return(0,C.loc)({type:"cast_arg",expr:(0,N.read)(t),asKw:l,dataType:(0,N.read)(a),format:(0,N.read)(u)})},MEt=function(t,l,a){return(0,C.loc)({type:"cast_format",formatKw:(0,N.read)(t),string:l,timezone:(0,N.read)(a)})},GEt=function(t,l){return(0,C.loc)({type:"cast_format_timezone",atTimeZoneKw:(0,N.read)(t),timezone:l})},kEt=function(t,l){return(0,C.loc)({type:"raise_expr",raiseKw:t,args:(0,N.read)(l)})},jEt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},UEt=function(t){return(0,C.loc)({type:"raise_expr_type",typeKw:t})},KEt=function(t,l){return(0,C.loc)({type:"extract_expr",extractKw:(0,N.read)(t),args:l})},FEt=function(t,l,a){return(0,C.loc)({type:"extract_from",unit:t,fromKw:(0,N.read)(l),expr:a})},SEt=function(t){return t},qEt=function(t){return t},ZEt=function(t){return t},HEt=function(t){return(0,C.loc)({type:"interval_unit",unitKw:t})},WEt=function(t){return(0,C.loc)({type:"interval_unit",unitKw:t})},zEt=function(t,l){return(0,C.loc)({type:"week_expr",weekKw:(0,N.read)(t),args:l})},JEt=function(t,l){return(0,C.loc)((0,k.createFuncCall)(t,l))},YEt=function(t,l,a){return{type:"func_call_right",args:t,filter:(0,N.read)(l),over:(0,N.read)(a)}},XEt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},QEt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},ebt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},tbt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},ibt=function(t){return(0,C.loc)({type:"func_call",name:t})},rbt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.text))},nbt=function(t){return t},abt=function(t){return t},sbt=function(t){return t},lbt=function(t,l,a,u,f,h){return(0,C.loc)({type:"func_args",distinctKw:(0,N.read)(t),args:l,nullHandlingKw:(0,N.read)(a),orderBy:(0,N.read)(u),limit:(0,N.read)(f),having:(0,N.read)(h)})},obt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},dbt=function(){return(0,C.loc)({type:"list_expr",items:[]})},ubt=function(t){return t},pbt=function(t){return t},cbt=function(t,l,a){return(0,C.loc)({type:"named_arg",name:(0,N.read)(t),operator:l,value:(0,N.read)(a)})},fbt=function(t){return t},ybt=function(t,l){return(0,C.loc)({type:"filter_arg",filterKw:(0,N.read)(t),where:l})},hbt=function(t,l){return(0,C.loc)({type:"over_arg",overKw:(0,N.read)(t),window:l})},mbt=function(t,l,a){return(0,C.loc)({type:"having_arg",havingKw:(0,N.read)(t),minMaxKw:(0,N.read)(l),expr:(0,N.read)(a)})},Tbt=function(t,l,a,u,f){return(0,C.loc)({type:"case_expr",caseKw:t,expr:(0,N.read)(l),clauses:[...a.map(N.read),...u?[(0,N.read)(u)]:[]],endKw:(0,N.read)(f)})},vbt=function(t,l,a,u){return(0,C.loc)({type:"case_when",whenKw:t,condition:(0,N.read)(l),thenKw:a,result:(0,N.read)(u)})},Ebt=function(t,l){return(0,C.loc)({type:"case_else",elseKw:t,result:(0,N.read)(l)})},bbt=function(t,l,a){return{type:"interval_expr",intervalKw:t,expr:(0,N.read)(l),unit:a}},Abt=function(t,l,a){return(0,C.loc)({type:"interval_unit_range",fromUnit:t,toKw:(0,N.read)(l),toUnit:a})},gbt=function(t){return(0,C.loc)({type:"interval_unit",unitKw:t})},Ibt=function(t){return t},Rbt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},Dbt=function(){return(0,hn.hasParamType)("?nr")},wbt=function(){return(0,hn.hasParamType)("?")},Obt=function(){return(0,hn.hasParamType)(":name")},Cbt=function(){return(0,hn.hasParamType)("$nr")},_bt=function(){return(0,hn.hasParamType)("$name")},Vbt=function(){return(0,hn.hasParamType)("@name")},Pbt=function(){return(0,hn.hasParamType)("@`name`")},Nbt=function(){return(0,C.loc)({type:"parameter",text:xt()})},xbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},$bt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Lbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Bbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Mbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Gbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},kbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},jbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Ubt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Kbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Fbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Sbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},qbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Zbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Hbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Wbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},zbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Jbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Ybt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Xbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},Qbt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},eAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},tAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},iAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},rAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},nAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},aAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},sAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},lAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},oAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},dAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},uAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},pAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},cAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},fAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},yAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},hAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},mAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},TAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},vAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},EAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},bAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},AAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},gAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},IAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},RAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},DAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},wAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},OAt=function(t,l,a){return(0,C.loc)((0,k.createParenExpr)(t,l,a))},CAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},_At=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},VAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},PAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},NAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},xAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},$At=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},LAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},BAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},MAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},GAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},kAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},jAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},UAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},KAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},FAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},SAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},qAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ZAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},HAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},WAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},zAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},JAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},YAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},XAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},QAt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},egt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},tgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},igt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},rgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ngt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},agt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},sgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},lgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ogt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},dgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ugt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},pgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},cgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},fgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ygt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},hgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},mgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Tgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},vgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Egt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},bgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Agt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},ggt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Igt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Rgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},Dgt=function(t,l){return(0,C.loc)((0,k.createListExpr)(t,l))},wgt=function(){return(0,C.loc)({type:"list_expr",items:[]})},Ogt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Cgt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},_gt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Vgt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Pgt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Ngt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},xgt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},$gt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Lgt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},Bgt=function(t,l){return(0,C.loc)({type:"as_clause",asKw:(0,N.read)(t),expr:l})},Mgt=function(t,l){return(0,C.loc)({type:"as_clause",asKw:(0,N.read)(t),expr:l})},Ggt=function(t,l){return(0,C.loc)({type:"as_clause",asKw:(0,N.read)(t),expr:l})},kgt=function(t,l){return(0,C.loc)({type:"as_clause",asKw:(0,N.read)(t),expr:l})},jgt=function(t,l){return(0,C.loc)({type:"member_expr",object:(0,N.read)(t),property:(0,N.read)(l)})},Ugt=function(t){return(0,C.loc)((0,k.createIdentifier)(t,t))},Kgt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.value))},Fgt=function(t){return(0,C.loc)((0,k.createIdentifier)(t,t))},Sgt=function(t){return(0,S4.isReservedKeyword)(t)},qgt=function(t){return(0,C.loc)((0,k.createIdentifier)(t,t))},Zgt=function(t){return t},Hgt=function(t){return t},Wgt=function(t){return t},zgt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.value))},Jgt=function(t){return t},Ygt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},Xgt=function(t){return(0,C.loc)((0,k.createIdentifier)(t.text,t.value))},Qgt=function(t){return(0,C.loc)((0,k.createIdentifier)(xt(),t.join("")))},eIt=function(){return"`"},tIt=function(t){return(0,C.loc)((0,k.createIdentifier)(xt(),t.join("")))},iIt=function(t){return(0,C.loc)({type:"bigquery_quoted_member_expr",expr:t})},rIt=function(t,l){return(0,k.createMemberExprChain)(t,l)},nIt=function(){return(0,C.loc)((0,k.createIdentifier)(xt(),xt()))},aIt=function(){return!0},sIt=function(){return[]},lIt=function(t){return(0,C.loc)((0,k.createIdentifier)(xt(),t.join("")))},oIt=function(){return"]"},dIt=function(){return xt()},uIt=function(){return xt()},pIt=function(){return xt()},cIt=function(t){return(0,C.loc)({type:"variable",name:t,text:xt()})},fIt=function(t){return(0,C.loc)({type:"variable",name:t.name,text:xt()})},yIt=function(t){return(0,C.loc)({type:"variable",name:t.value,text:xt()})},hIt=function(t){return(0,C.loc)({type:"variable",name:t,text:xt()})},mIt=function(t,l){return(0,C.loc)({type:"typed_expr",dataType:(0,N.read)(t),expr:l})},TIt=function(t){return(0,C.loc)({type:"array_expr",expr:(0,N.read)(t)})},vIt=function(t,l){return(0,C.loc)({type:"typed_expr",dataType:(0,N.read)(t),expr:l})},EIt=function(t){return(0,C.loc)({type:"struct_expr",expr:(0,N.read)(t)})},bIt=function(t,l){return(0,C.loc)((0,k.createAlias)(t,l))},AIt=function(t){return(0,C.loc)({type:"null_literal",nullKw:t,value:null})},gIt=function(t){return(0,C.loc)({type:"boolean_literal",valueKw:t,value:!0})},IIt=function(t){return(0,C.loc)({type:"boolean_literal",valueKw:t,value:!1})},RIt=function(t){return t},DIt=function(t){return t},wIt=function(t,l){return(0,C.loc)({type:"string_with_charset",charset:t,string:(0,N.read)(l)})},OIt=function(t){return t},CIt=function(t){return t},_It=function(t){return t},VIt=function(t){return t},PIt=function(t,l){return(0,k.createStringConcatExprChain)(t,l)},NIt=function(t,l){return(0,k.createStringConcatExprChain)(t,l)},xIt=function(t){return t},$It=function(){return xt()},LIt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},BIt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},MIt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},GIt=function(t,l){return(0,k.createBinaryExprChain)(t,l)},kIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},jIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.value})},UIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.value})},KIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.value})},FIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},SIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},qIt=function(){return"'"},ZIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},HIt=function(){return'"'},WIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},zIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},JIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},YIt=function(t){return t},XIt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.join("")})},QIt=function(t){return t},eRt=function(){return`
114
114
  `},tRt=function(){return"\r"},iRt=function(){return" "},rRt=function(){return"\b"},nRt=function(){return"\f"},aRt=function(){return"\v"},sRt=function(){return"\x07"},lRt=function(t){return String.fromCodePoint(parseInt(t,8))},oRt=function(t){return String.fromCodePoint(parseInt(t,8))},dRt=function(t){return String.fromCodePoint(parseInt(t,16))},uRt=function(t){return String.fromCodePoint(parseInt(t,16))},pRt=function(t){return String.fromCodePoint(parseInt(t,16))},cRt=function(t){return String.fromCodePoint(parseInt(t,16))},fRt=function(){return"\\%"},yRt=function(){return"\\_"},hRt=function(){return"\0"},mRt=function(){return""},TRt=function(t){return t},vRt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t.value})},ERt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t})},bRt=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseTextBlob)(t)})},ARt=function(t){return t},gRt=function(t){return t},IRt=function(t){return t},RRt=function(t){return t},DRt=function(t){return(0,C.loc)({type:"string_literal",text:xt(),value:t})},H$=function(t,l){return t===l},wRt=function(t,l,a){return t===a},ORt=function(t,l,a){return(0,C.loc)({type:"string_literal",text:xt(),value:l})},CRt=function(){return xt()},_Rt=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseTextBlob)(t.value)})},VRt=function(t,l){return(0,C.loc)({type:"datetime_literal",datetimeKw:t,string:(0,N.read)(l)})},PRt=function(t,l){return(0,C.loc)({type:"timestamp_literal",timestampKw:t,string:(0,N.read)(l)})},NRt=function(t,l){return(0,C.loc)({type:"date_literal",dateKw:t,string:(0,N.read)(l)})},xRt=function(t,l){return(0,C.loc)({type:"time_literal",timeKw:t,string:(0,N.read)(l)})},$Rt=function(t,l){return(0,C.loc)({type:"json_literal",jsonKw:t,string:(0,N.read)(l)})},LRt=function(t,l){return(0,C.loc)({type:"jsonb_literal",jsonbKw:t,string:(0,N.read)(l)})},BRt=function(t,l){return(0,C.loc)({type:"numeric_literal",numericKw:t,string:(0,N.read)(l)})},MRt=function(t,l){return(0,C.loc)({type:"bignumeric_literal",bignumericKw:t,string:(0,N.read)(l)})},GRt=function(t,l){return(0,C.loc)({type:"interval_literal",intervalKw:t,string:(0,N.read)(l)})},kRt=function(t){return t},jRt=function(t){return t},URt=function(t){return t},KRt=function(t){return t},FRt=function(t){return t},SRt=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseHexBlob)(t)})},qRt=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseBitBlob)(t)})},ZRt=function(t,l){return(0,C.loc)((0,k.createPrefixOpExpr)(t,(0,N.read)(l)))},HRt=function(t){return t},WRt=function(t){return t},zRt=function(t){return t},JRt=function(){return(0,C.loc)({type:"number_literal",text:xt(),value:parseInt(xt().replace(/_/g,""),16)})},YRt=function(){return(0,C.loc)({type:"number_literal",text:xt(),value:parseInt(xt(),16)})},XRt=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseHexBlob)(t)})},QRt=function(t){return(0,C.loc)({type:"number_literal",text:xt(),value:parseInt(t.replace(/_/g,""),2)})},e1t=function(t){return(0,C.loc)({type:"blob_literal",text:xt(),value:(0,oy.parseBitBlob)(t)})},t1t=function(t){return(0,C.loc)({type:"number_literal",text:xt(),value:parseInt(t.replace(/_/g,""),8)})},i1t=function(){return(0,C.loc)({type:"number_literal",text:xt(),value:parseFloat(xt().replace(/_/g,""))})},r1t=function(){return(0,C.loc)({type:"number_literal",text:xt(),value:parseFloat(xt())})},n1t=function(){return xt()},a1t=function(t){return t.filter(hn.isEnabledWhitespace)},s1t=function(t){return t.filter(hn.isEnabledWhitespace)},l1t=function(t){return t},o1t=function(t){return t},d1t=function(t){return t},u1t=function(){return(0,C.loc)({type:"block_comment",text:xt()})},p1t=function(){return(0,C.loc)({type:"block_comment",text:xt()})},c1t=function(){return(0,C.loc)({type:"line_comment",text:xt()})},f1t=function(){return(0,C.loc)({type:"line_comment",text:xt()})},y1t=function(){return{type:"space",text:xt()}},h1t=function(){return{type:"newline",text:xt()}},m1t=function(){return(0,hn.isBigquery)()},T1t=function(){return(0,hn.isSqlite)()},v1t=function(){return(0,hn.isMysql)()||(0,hn.isMariadb)()},E1t=function(){return(0,hn.isMysql)()},b1t=function(){return(0,hn.isMariadb)()},A1t=function(){return(0,hn.isPostgresql)()},g1t=function(){return(0,C.loc)({type:"unsupported_grammar_stmt",text:xt()})},I1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},R1t=function(t){return(0,S4.isReservedKeyword)(t)},D1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},w1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},O1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},C1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},V1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},P1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},N1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},x1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},L1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},B1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},M1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},G1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},k1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},j1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},U1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},K1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},F1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},S1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},q1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Z1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},H1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},W1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},z1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},J1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Y1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},X1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Q1t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},EDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ADt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},IDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},RDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ODt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},CDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Dt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},PDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Dt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QDt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ewt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},twt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},awt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},swt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},owt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ywt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Twt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Ewt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Awt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Iwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Rwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Dwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Owt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Cwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_wt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Vwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Pwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Nwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$wt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Lwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Bwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Mwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Gwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Uwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Kwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Fwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Swt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Zwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Hwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Wwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Jwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Ywt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Xwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Qwt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},EOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},AOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},IOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ROt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},OOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},COt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Ot=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},POt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Ot=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QOt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ECt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ACt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ICt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},RCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},OCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},CCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Ct=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},PCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Ct=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QCt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},e_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},t_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},i_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},r_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},n_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},a_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},s_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},l_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},o_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},d_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},u_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},p_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},c_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},f_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},y_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},h_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},m_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},T_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},v_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},E_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},b_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},A_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},g_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},I_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},R_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},D_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},w_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},O_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},C_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},__t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},V_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},P_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},N_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},x_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},L_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},B_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},M_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},G_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},k_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},j_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},U_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},K_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},F_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},S_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},q_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Z_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},H_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},W_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},z_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},J_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Y_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},X_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Q_t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},EVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},AVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},IVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},RVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},OVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},CVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Vt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},PVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Vt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QVt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ePt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},EPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},APt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},IPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},RPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},OPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},CPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Pt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},PPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Pt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QPt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},TNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ENt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ANt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},INt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},RNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},DNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ONt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},CNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_Nt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},VNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},PNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},NNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$Nt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},LNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},BNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},MNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},GNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},UNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},KNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},FNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},SNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ZNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},HNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},WNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},JNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},YNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},XNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},QNt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ext=function(t){return(0,C.loc)((0,k.createKeyword)(t))},txt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},ixt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},axt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},lxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},oxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},dxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},uxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},pxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},cxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},fxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},yxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},hxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},mxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Txt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},vxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Ext=function(t){return(0,C.loc)((0,k.createKeyword)(t))},bxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Axt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},gxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Ixt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Rxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Dxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},wxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Oxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Cxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_xt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Vxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Pxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Nxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},xxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$xt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Lxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Bxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Mxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Gxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},kxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},jxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Uxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Kxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Fxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Sxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},qxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Zxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Hxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Wxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},zxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Jxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Yxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Xxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Qxt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},e$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},t$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},i$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},r$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},n$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},a$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},s$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},l$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},o$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},d$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},u$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},p$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},c$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},f$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},y$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},h$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},m$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},T$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},v$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},E$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},b$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},A$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},g$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},I$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},R$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},D$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},w$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},O$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},C$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},_$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},V$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},P$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},N$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},x$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},$$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},L$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},B$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},M$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},G$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},k$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},j$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},U$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},K$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},F$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},S$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},q$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Z$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},H$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},W$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},z$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},J$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Y$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},X$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},Q$t=function(t){return(0,C.loc)((0,k.createKeyword)(t))},eLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},tLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},iLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},rLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},nLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},aLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},sLt=function(t){return(0,C.loc)((0,k.createKeyword)(t))},r=0,R=0,oE=[{line:1,column:1}],oo=0,E1=[],T=0,dE;if("startRule"in c){if(!(c.startRule in m))throw new Error(`Can't start parsing from rule "`+c.startRule+'".');v=m[c.startRule]}function xt(){return s.substring(R,r)}function S(t,l){return{type:"literal",text:t,ignoreCase:l}}function yn(t,l,a){return{type:"class",parts:t,inverted:l,ignoreCase:a}}function lLt(){return{type:"any"}}function oLt(){return{type:"end"}}function uE(t){return{type:"other",description:t}}function W$(t){var l=oE[t],a;if(l)return l;for(a=t-1;!oE[a];)a--;for(l=oE[a],l={line:l.line,column:l.column};a<t;)s.charCodeAt(a)===10?(l.line++,l.column=1):l.column++,a++;return oE[t]=l,l}function z$(t,l,a){var u=W$(t),f=W$(l),h={source:y,start:{offset:t,line:u.line,column:u.column},end:{offset:l,line:f.line,column:f.column}};return a&&y&&typeof y.offset=="function"&&(h.start=y.offset(h.start),h.end=y.offset(h.end)),h}function P(t){r<oo||(r>oo&&(oo=r,E1=[]),E1.push(t))}function dLt(t,l,a){return new p(p.buildMessage(t,l),t,l,a)}function J$(){var t,l,a,u;return t=r,l=g(),a=uLt(),a!==e?(u=g(),R=t,t=dat(l,a,u)):(r=t,t=e),t}function uLt(){var t,l,a,u,f,h,A,O;if(t=r,l=r0(),l===e&&(l=_s()),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=r0(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=r0(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=uat(l,a)}else r=t,t=e;return t}function r0(){var t,l,a;return t=Y$(),t===e&&(t=XGt(),t===e&&(t=r,R=r,l=pat(),l?l=void 0:l=e,l!==e?(a=OFt(),a!==e?(R=t,t=cat(a)):(r=t,t=e)):(r=t,t=e))),t}function Y$(){var t,l,a;return t=pE(),t===e&&(t=hLt(),t===e&&(t=f4t(),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=pLt(),a!==e?(R=t,t=fat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=cLt(),a!==e?(R=t,t=yat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=fLt(),a!==e?(R=t,t=hat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=yLt(),a!==e?(R=t,t=mat(a)):(r=t,t=e)):(r=t,t=e))))))),t}function pLt(){var t;return t=gD(),t===e&&(t=ID(),t===e&&(t=S4t())),t}function cLt(){var t;return t=S2(),t===e&&(t=gD(),t===e&&(t=ID(),t===e&&(t=CD()))),t}function fLt(){var t;return t=S2(),t===e&&(t=CD(),t===e&&(t=Y4t())),t}function yLt(){var t;return t=gD(),t===e&&(t=ID(),t===e&&(t=CD())),t}function hLt(){var t,l,a;return t=$L(),t===e&&(t=Q2t(),t===e&&(t=BL(),t===e&&(t=aBt(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sBt(),a!==e?(R=t,t=Tat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=oBt(),a!==e?(R=t,t=vat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=dBt(),a!==e?(R=t,t=Eat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=mLt(),a!==e?(R=t,t=bat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=TLt(),a!==e?(R=t,t=Aat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=vLt(),a!==e?(R=t,t=gat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ELt(),a!==e?(R=t,t=Iat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=kL(),t===e&&(t=PBt(),t===e&&(t=NBt()))))))))))))),t}function mLt(){var t;return t=wE(),t===e&&(t=cD()),t}function TLt(){var t;return t=z1(),t===e&&(t=OMt(),t===e&&(t=wE(),t===e&&(t=cD(),t===e&&(t=fD(),t===e&&(t=yD(),t===e&&(t=hD())))))),t}function vLt(){var t;return t=z1(),t===e&&(t=f2(),t===e&&(t=g2(),t===e&&(t=R2(),t===e&&(t=O2(),t===e&&(t=fD(),t===e&&(t=yD(),t===e&&(t=hD()))))))),t}function ELt(){var t;return t=z1(),t===e&&(t=tBt(),t===e&&(t=f2(),t===e&&(t=g2(),t===e&&(t=zMt(),t===e&&(t=R2(),t===e&&(t=O2(),t===e&&(t=XMt(),t===e&&(t=xBt(),t===e&&(t=fD(),t===e&&(t=yD(),t===e&&(t=hD(),t===e&&(t=_2(),t===e&&(t=cGt(),t===e&&(t=fGt(),t===e&&(t=wE(),t===e&&(t=MMt(),t===e&&(t=cD(),t===e&&(t=yGt(),t===e&&(t=vGt(),t===e&&(t=EGt(),t===e&&(t=bGt(),t===e&&(t=AGt(),t===e&&(t=IGt(),t===e&&(t=RGt(),t===e&&(t=xGt(),t===e&&(t=KGt(),t===e&&(t=FGt(),t===e&&(t=SGt(),t===e&&(t=qGt(),t===e&&(t=zGt(),t===e&&(t=JGt()))))))))))))))))))))))))))))))),t}function pE(){var t,l,a;return t=Qp(),t===e&&(t=gL(),t===e&&(t=CL(),t===e&&(t=VL(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e?(a=k2t(),a!==e?(R=t,t=Rat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=j2t(),a!==e?(R=t,t=Dat(a)):(r=t,t=e)):(r=t,t=e)))))),t}function _s(){var t,l,a;return t=r,l=r,T++,s.length>r?(a=s.charAt(r),r++):(a=e,T===0&&P(Un)),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=IM()),l!==e&&(R=t,l=wat()),t=l,t}function pl(){var t,l,a,u,f,h,A,O;if(t=r,l=b1(),l!==e){if(a=[],u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=b1(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=b1(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);else a=e;a!==e?(R=t,t=Oat(l,a)):(r=t,t=e)}else r=t,t=e;return t===e&&(t=r,l=_s(),l!==e&&(R=t,l=Cat()),t=l),t}function b1(){var t,l,a;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Y$(),a!==e?(R=t,t=_at(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=r0(),a!==e?(R=t,t=Vat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Y2(),a!==e?(R=t,t=Pat(a)):(r=t,t=e)):(r=t,t=e))),t}function Qp(){var t,l,a,u,f,h,A,O;if(t=r,l=A1(),l!==e){for(a=[],u=r,f=g(),h=X$(),h!==e?(A=g(),O=A1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=X$(),h!==e?(A=g(),O=A1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Nat(l,a)}else r=t,t=e;return t}function X$(){var t,l,a,u,f;return t=r,l=r,a=cO(),a===e&&(a=ww()),a!==e?(u=g(),f=nn(),f===e&&(f=xs()),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=xat(l)),t=l,t===e&&(t=cO(),t===e&&(t=ww())),t}function A1(){var t,l,a,u,f,h,A,O;if(t=r,l=g1(),l!==e){for(a=[],u=r,f=g(),h=Q$(),h!==e?(A=g(),O=g1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=Q$(),h!==e?(A=g(),O=g1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=$at(l,a)}else r=t,t=e;return t}function g1(){var t;return t=eL(),t===e&&(t=ld()),t}function Q$(){var t,l,a,u,f;return t=r,l=r,a=EG(),a!==e?(u=g(),f=nn(),f===e&&(f=xs()),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Lat(l)),t=l,t===e&&(t=EG()),t}function eL(){var t,l,a,u,f,h,A;if(t=r,l=r,a=n0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=bLt(),a===e&&(a=ld()),a!==e){for(u=[],f=r,h=g(),A=rL(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=rL(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Bat(l,a,u)}else r=t,t=e;return t}function bLt(){var t,l,a,u;return t=wLt(),t===e&&(t=r,l=F1(),l!==e?(a=r,T++,u=Je(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Mat(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=tL(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Gat(l)):(r=t,t=e)):(r=t,t=e))),t}function tL(){var t,l,a,u;return t=r,l=r,a=Vn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ec(),a!==e?(R=t,t=kat(l,a)):(r=t,t=e)):(r=t,t=e),t}function iL(){var t,l;return t=r,l=tL(),l!==e&&(R=t,l=jat(l)),t=l,t}function n0(){var t,l,a,u,f,h;return t=r,l=_r(),l!==e?(a=r,u=g(),f=GG(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=YUt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Uat(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function I1(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=qe(),l!==e?(a=r,u=g(),f=Kn(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=mr(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=ALt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=fUt(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=g(),z=ILt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=r,z=g(),Te=RLt(),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),R=t,t=Kat(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ALt(){var t,l,a,u,f;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=Ab(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=Ab()),l!==e&&(R=t,l=Fat(l)),t=l,t}function gLt(){var t,l,a,u;return t=Qp(),t===e&&(t=r,l=CL(),l===e&&(l=gL(),l===e&&(l=VL())),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Sat(l)):(r=t,t=e)):(r=t,t=e)),t}function ILt(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=sO(),a!==e?(u=g(),f=KFt(),f===e&&(f=xSt()),f!==e?(h=g(),A=Tb(),A!==e?(O=g(),z=An(),z!==e?(Te=g(),a=[a,u,f,h,A,O,z,Te],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(u=r,f=g(),h=Li(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=qe(),f!==e?(h=r,T++,A=Ge(),T--,A!==e?(r=h,h=void 0):h=e,h!==e?(R=t,t=qat(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function RLt(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=Aw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(u=r,f=g(),h=Li(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=qe(),f!==e?(h=r,A=g(),O=DLt(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=ha(),z!==e?(Te=g(),O=[O,z,Te],A=O):(r=A,A=e),A!==e?(O=qe(),O!==e?(z=r,T++,Te=Ge(),T--,Te!==e?(r=z,z=void 0):z=e,z!==e?(R=t,t=Zat(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function DLt(){var t,l,a,u,f,h,A;return t=r,l=r,a=ln(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fl(),a!==e?(u=r,f=g(),h=sn(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=fl(),f!==e?(R=t,t=Hat(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function rL(){var t,l,a;return t=C1(),t===e&&(t=ad(),t===e&&(t=HLt(),t===e&&(t=QLt(),t===e&&(t=s0(),t===e&&(t=yE(),t===e&&(t=r2t(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=p2t(),a!==e?(R=t,t=Wat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=nb(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=t2t(),a!==e?(R=t,t=zat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=nb(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=i2t(),a!==e?(R=t,t=Jat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=f2t(),a===e&&(a=y2t(),a===e&&(a=h2t())),a!==e?(R=t,t=Yat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=c2t(),a!==e?(R=t,t=Xat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=g2t(),a!==e?(R=t,t=Qat(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=D2t(),a!==e?(R=t,t=est(a)):(r=t,t=e)):(r=t,t=e)))))))))))))),t}function wLt(){var t,l,a,u,f,h,A;if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=ry(),a!==e){for(u=[],f=r,h=g(),A=lu(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),u.length>=1?f=e:(f=r,h=g(),A=lu(),A!==e?(h=[h,A],f=h):(r=f,f=e));f=r,h=g(),A=a0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=tst(a,u,f)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=ry(),a!==e){for(u=[],f=r,h=g(),A=lu(),A===e&&(A=aL()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=lu(),A===e&&(A=aL()),A!==e?(h=[h,A],f=h):(r=f,f=e);f=r,h=g(),A=a0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=ist(a,u,f)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=ry(),a!==e){for(u=[],f=r,h=g(),A=lu(),A===e&&(A=nL()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),u.length>=2?f=e:(f=r,h=g(),A=lu(),A===e&&(A=nL()),A!==e?(h=[h,A],f=h):(r=f,f=e));f=r,h=g(),A=a0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=rst(a,u,f)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=ry(),a!==e){for(u=[],f=r,h=g(),A=lu(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),u.length>=1?f=e:(f=r,h=g(),A=lu(),A!==e?(h=[h,A],f=h):(r=f,f=e));f=r,h=g(),A=a0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=nst(a,u,f)):(r=t,t=e)}else r=t,t=e;else r=t,t=e}}return t}function lu(){var t,l,a,u,f,h;return t=r,l=nn(),l!==e&&(R=t,l=ast(l)),t=l,t===e&&(t=r,l=r,a=xs(),a!==e?(u=g(),f=fr(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=co(),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=sst(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=xs(),l!==e&&(R=t,l=lst(l)),t=l,t===e&&(t=r,l=MSt(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=ost(l)):(r=t,t=e)):(r=t,t=e)))),t}function nL(){var t,l,a,u,f;return t=r,l=r,a=mr(),a!==e?(u=g(),f=t4(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=dst(l)),t=l,t===e&&(t=r,l=r,a=mr(),a!==e?(u=g(),f=G0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=ust(l)),t=l),t}function aL(){var t,l,a,u,f,h;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=cG(),a===e&&(a=QG(),a===e&&(a=mZt(),a===e&&(a=r,u=hZt(),u!==e?(f=r,T++,h=nb(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=a,a=pst(u)):(r=a,a=e)):(r=a,a=e),a===e&&(a=TZt(),a===e&&(a=fZt(),a===e&&(a=vZt(),a===e&&(a=yZt()))))))),a!==e?(R=t,t=cst(a)):(r=t,t=e)):(r=t,t=e),t}function a0(){var t,l,a,u,f,h,A,O;if(t=r,l=R1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=R1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=R1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=_s(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),R=t,t=fst(l,a,u)}else r=t,t=e;return t}function R1(){var t,l,a,u,f,h;return t=r,l=D1(),l!==e?(a=r,u=g(),f=ww(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=Kn(),u!==e?(R=t,t=yst(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=D1(),l!==e?(a=r,u=g(),f=is(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=GB(),u!==e?(R=t,t=hst(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=D1(),t===e&&(t=r,l=vt(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=mst(l,a)):(r=t,t=e)))),t}function D1(){var t;return t=w1(),t===e&&(t=sL()),t}function sL(){var t,l,a,u,f,h;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===46?(a=w,r++):(a=e,T===0&&P(dl)),a!==e?(u=r,f=g(),h=w1(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Tst(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function w1(){var t,l;return t=r,s.charCodeAt(r)===42?(l=V,r++):(l=e,T===0&&P(Qh)),l!==e&&(R=t,l=vst()),t=l,t}function uo(){var t;return t=O1(),t===e&&(t=OLt()),t}function O1(){var t,l,a,u,f,h;return t=r,l=mr(),l!==e?(a=r,u=g(),f=PKt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=lL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Est(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function OLt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,T++,u=x1(),u===e&&(u=$1()),T--,u===e?a=void 0:(r=a,a=e),a!==e?(u=ow(),u!==e?(R=t,t=bst(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=ow(),a!==e?(u=r,f=g(),h=lL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Ast(a,u)):(r=t,t=e)):(r=t,t=e)),t}function lL(){var t,l,a,u;return t=r,l=Kn(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=gst(l)):(r=t,t=e)):(r=t,t=e),t}function C1(){var t,l,a,u;return t=r,l=r,a=Pa(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=_1(),a===e&&(a=oL()),a!==e?(R=t,t=Ist(l,a)):(r=t,t=e)):(r=t,t=e),t}function CLt(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=_1(),a===e&&(a=oL()),a!==e?(R=t,t=Rst(l,a)):(r=t,t=e)):(r=t,t=e),t}function oL(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=USt(),a!==e?(R=t,t=Dst(a)):(r=t,t=e)):(r=t,t=e),t}function _1(){var t,l,a,u;if(t=r,l=QB(),l!==e){for(a=[],u=dL(),u===e&&(u=x1(),u===e&&(u=$1(),u===e&&(u=yL(),u===e&&(u=hL()))));u!==e;)a.push(u),u=dL(),u===e&&(u=x1(),u===e&&(u=$1(),u===e&&(u=yL(),u===e&&(u=hL()))));R=t,t=wst(l,a)}else r=t,t=e;return t}function dL(){var t,l,a,u,f,h,A;return t=r,l=g(),a=$Lt(),a===e&&(s.charCodeAt(r)===44?(a=b,r++):(a=e,T===0&&P(We))),a!==e?(u=r,f=g(),h=QB(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=MLt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Ost(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function _Lt(){var t;return t=jLt(),t===e&&(t=pL(),t===e&&(t=$f(),t===e&&(t=xLt(),t===e&&(t=vUt(),t===e&&(t=ld(),t===e&&(t=P1(),t===e&&(t=V1(),t===e&&(t=ec())))))))),t}function ec(){var t;return t=NLt(),t===e&&(t=uL(),t===e&&(t=VLt(),t===e&&(t=PLt(),t===e&&(t=nt())))),t}function VLt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=aw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=hG(),f!==e?(h=g(),A=An(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Cst(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function PLt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=aw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Zi(),f!==e?(h=g(),A=hG(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=_st(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function NLt(){var t,l,a,u,f;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=nt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===42?(u=V,r++):(u=e,T===0&&P(Qh)),u!==e?(R=t,t=Vst(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function uL(){var t,l,a,u,f;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=Hw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=yUt(),u===e&&(u=nt()),u!==e?(R=t,t=Pst(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $f(){var t,l,a,u,f,h;return t=r,l=m0(),l!==e?(a=r,u=g(),f=mr(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=Mf(),u!==e?(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=t,t=Nst(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=HE(),l!==e?(R=r,a=xst(l),a?a=void 0:a=e,a!==e?(u=r,f=g(),h=Mf(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=t,t=$st(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=m0())),t}function pL(){var t,l,a,u,f,h,A;return t=r,l=$f(),l===e&&(l=V1()),l!==e?(a=r,u=g(),f=_r(),f!==e?(h=g(),A=t6t(),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=Lst(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xLt(){var t,l,a,u,f;return t=r,l=r,a=IG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ld(),a!==e?(u=r,T++,f=it(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e),u!==e?(R=t,t=Bst(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=IG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=pL(),a===e&&(a=V1(),a===e&&(a=$f())),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=Mst(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function V1(){var t,l,a,u,f,h;return t=r,l=r,a=hu(),a!==e?(u=g(),f=Pa(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=_Ut(),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=Gst(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function P1(){var t,l,a,u,f,h;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=aw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=iy(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=nc(),f!==e?(R=t,t=kst(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $Lt(){var t,l,a,u;return t=LLt(),t===e&&(t=BLt(),t===e&&(t=cL(),t===e&&(t=r,l=QG(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=jst(l)):(r=t,t=e)):(r=t,t=e)))),t}function LLt(){var t,l,a,u,f;return t=r,l=r,a=Sw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=cL(),a!==e?(u=r,T++,f=it(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Et(),T--,f!==e?(r=u,u=void 0):u=e),u!==e?(R=t,t=Ust(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function BLt(){var t,l,a,u,f;return t=r,l=r,a=fSt(),a!==e?(u=g(),f=N0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Kst(l)),t=l,t}function cL(){var t,l,a,u,f,h,A;return t=r,l=r,a=fL(),a!==e?(u=g(),f=n6t(),f!==e?(h=g(),A=N0(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=fL(),a!==e?(u=g(),f=N0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=$3t(),a!==e?(u=g(),f=N0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=N0()))),l!==e&&(R=t,l=Fst(l)),t=l,t}function fL(){var t,l,a,u;return t=bb(),t===e&&(t=Db(),t===e&&(t=r,l=Nw(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Sst(l)):(r=t,t=e)):(r=t,t=e))),t}function MLt(){var t;return t=GLt(),t===e&&(t=kLt()),t}function GLt(){var t,l,a,u,f;return t=r,l=ha(),l!==e?(a=r,u=g(),f=Kn(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=qst(l,a)):(r=t,t=e)):(r=t,t=e),t}function kLt(){var t,l,a,u,f;return t=r,l=fr(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Zst(l,a)):(r=t,t=e)):(r=t,t=e),t}function jLt(){var t,l,a,u,f,h,A,O;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=CKt(),a!==e?(u=r,f=g(),h=_r(),h!==e?(A=g(),O=Rb(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=Hst(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=N1(),a!==e?(R=t,t=Wst(a)):(r=t,t=e)):(r=t,t=e)),t}function ULt(){var t;return t=N1(),t===e&&(t=nt()),t}function N1(){var t,l,a,u;return t=r,l=r,a=WZt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=od(),a!==e?(R=t,t=zst(l,a)):(r=t,t=e)):(r=t,t=e),t}function x1(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=g(),u=r,f=T6t(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=xUt(),f!==e?(R=t,t=Jst(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function KLt(){var t,l,a,u,f,h,A;return t=r,l=r,a=SUt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=es(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=zr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=GB(),h!==e?(R=t,t=Yst(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $1(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=g(),u=r,f=zZt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=yG(),h===e&&(h=Ow()),h!==e?(A=g(),O=pc(),O!==e?(z=g(),h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e),f===e&&(f=null),h=GUt(),h!==e?(R=t,t=Xst(a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function FLt(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a===e&&(a=Kn()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=es(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=zr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=EUt(),h===e&&(h=bUt()),h!==e?(R=t,t=Qst(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yL(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=g(),u=r,f=xZt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=SLt(),h===e&&(h=qe()),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=VUt(),h!==e?(A=r,O=g(),z=ZLt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=elt(a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function SLt(){var t,l;return t=r,l=GFt(),l===e&&(l=_b()),l!==e&&(R=t,l=tlt(l)),t=l,t}function L1(){var t;return t=qLt(),t===e&&(t=vt()),t}function qLt(){var t,l,a,u,f;return t=r,l=fl(),l===e&&(l=MB()),l!==e?(a=r,u=g(),f=y6t(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=ilt(l,a)):(r=t,t=e)):(r=t,t=e),t}function ZLt(){var t,l,a,u;return t=r,l=r,a=KG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=od(),a!==e?(R=t,t=rlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function hL(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=g(),u=r,f=es(),f!==e?(h=g(),A=r4(),A!==e?(O=g(),z=mr(),z!==e?(Te=g(),$e=$s(),$e!==e?(Xe=g(),f=[f,h,A,O,z,Te,$e,Xe],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e?(f=vt(),f!==e?(R=t,t=nlt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ad(){var t,l,a,u,f;return t=r,l=f4(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=alt(l,a)):(r=t,t=e)):(r=t,t=e),t}function HLt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=zf(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=WLt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=WB(),u!==e?(f=r,h=g(),A=_r(),A!==e?(O=g(),z=nO(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e),f===e&&(f=null),R=t,t=slt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function WLt(){var t,l,a,u;return t=r,l=nn(),l===e&&(l=xs()),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=llt(l)):(r=t,t=e)):(r=t,t=e),t}function B1(){var t,l,a,u;return t=zLt(),t===e&&(t=JLt(),t===e&&(t=YLt(),t===e&&(t=r,l=XLt(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=Ns(),t===e&&(t=vt()))))),t}function zLt(){var t,l,a,u,f;return t=r,l=r,a=nO(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=co(),a!==e?(u=r,T++,f=Je(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e),u!==e?(R=t,t=olt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function JLt(){var t,l,a,u,f;return t=r,l=r,a=ySt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=co(),a!==e?(u=r,T++,f=Je(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e),u!==e?(R=t,t=dlt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function YLt(){var t,l,a,u,f,h;return t=r,l=r,a=uG(),a!==e?(u=g(),f=sZt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=IUt(),a!==e?(u=r,T++,f=Je(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e),u!==e?(R=t,t=ult(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function XLt(){var t,l;return t=r,l=nn(),l!==e&&(R=t,l=plt(l)),t=l,t}function QLt(){var t,l,a,u,f;return t=r,l=pG(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=clt(l,a)):(r=t,t=e)):(r=t,t=e),t}function cE(){var t,l,a,u,f,h;return t=r,l=r,a=iy(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=kf(),a!==e?(R=t,t=flt(l,a)):(r=t,t=e)):(r=t,t=e),t}function M1(){var t,l,a,u,f,h;return t=r,l=r,a=vw(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=iw(),a!==e?(R=t,t=ylt(l,a)):(r=t,t=e)):(r=t,t=e),t}function s0(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Qqt(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=vKt(),a!==e?(u=r,f=g(),h=_r(),h!==e?(A=g(),O=nO(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),R=t,t=hlt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function G1(){var t,l,a,u,f,h;return t=r,l=vt(),l!==e?(a=r,u=g(),f=k1(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=mL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=mlt(l,a,u)):(r=t,t=e),t}function fE(){var t,l,a,u,f,h,A;return t=r,l=vt(),l!==e?(a=r,u=g(),f=fkt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=k1(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=mL(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Tlt(l,a,u,f)):(r=t,t=e),t}function k1(){var t,l,a,u,f;return t=r,l=VFt(),l!==e&&(R=t,l=vlt(l)),t=l,t===e&&(t=r,l=JM(),l!==e&&(R=t,l=Elt(l)),t=l,t===e&&(t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=h0(),a===e&&(a=GE()),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=blt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function mL(){var t,l,a,u,f;return t=r,l=r,a=pc(),a!==e?(u=g(),f=Tb(),f===e&&(f=gG()),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Alt(l)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,l,a,u,f,h,A,O;return t=r,l=ty(),l!==e?(a=r,u=g(),f=e2t(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=glt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=ty(),l!==e?(a=r,u=g(),f=vt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=Rb(),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=g(),O=hE(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=Ilt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=ty(),l!==e?(a=r,u=g(),f=vt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===44?(u=b,r++):(u=e,T===0&&P(We)),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=g(),O=hE(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,T++,O=Et(),T--,O!==e?(r=A,A=void 0):A=e,A===e&&(A=r,T++,O=it(),T--,O!==e?(r=A,A=void 0):A=e,A===e&&(A=r,T++,O=Je(),T--,O!==e?(r=A,A=void 0):A=e)),A!==e?(R=t,t=Rlt(l,a,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=ty(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=hE(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Dlt(l,a,u)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=ty(),l!==e?(a=r,u=g(),f=hE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=wlt(l,a)):(r=t,t=e)):(r=t,t=e))))),t}function e2t(){var t,l;return t=r,l=nn(),l!==e&&(R=t,l=Olt(l)),t=l,t}function hE(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=nb(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=hu(),u!==e?(f=g(),h=t3t(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(u=fa(),u!==e?(R=t,t=Clt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function t2t(){var t,l,a,u,f,h;return t=r,l=r,a=Rb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(u=r,f=g(),h=Ls(),h===e&&(h=hu()),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=_lt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function i2t(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=p3t(),a!==e?(u=g(),f=Tb(),f===e&&(f=Nqt()),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=fa(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Ls(),f===e&&(f=hu()),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=Hw(),f===e&&(f=r,h=_r(),h!==e?(A=g(),O=n4(),O!==e?(h=[h,A,O],f=h):(r=f,f=e)):(r=f,f=e)),f!==e?(R=t,t=Vlt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function r2t(){var t,l,a,u;return t=r,l=r,a=h4(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=dKt(),a!==e?(R=t,t=Plt(l,a)):(r=t,t=e)):(r=t,t=e),t}function j1(){var t,l,a,u,f;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=mr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=qB(),u!==e?(R=t,t=Nlt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function n2t(){var t,l,a,u,f,h,A;return t=r,l=a2t(),l===e&&(l=null),a=r,u=g(),f=cE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=s0(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=s2t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=xlt(l,a,u,f),t}function a2t(){var t,l,a;return t=r,l=qe(),l!==e?(R=r,a=$lt(l),a?a=e:a=void 0,a!==e?(R=t,t=Llt(l)):(r=t,t=e)):(r=t,t=e),t}function s2t(){var t,l,a,u,f,h;return t=r,l=l2t(),l!==e?(a=r,u=g(),f=U1(),f===e&&(f=o2t()),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=d2t(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Blt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function l2t(){var t,l,a,u;return t=hu(),t===e&&(t=MG(),t===e&&(t=r,l=R3t(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Mlt(l)):(r=t,t=e)):(r=t,t=e))),t}function o2t(){var t,l,a,u,f,h,A;return t=r,l=oc(),l!==e?(a=r,u=g(),f=U1(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=fo(),u!==e?(f=r,h=g(),A=U1(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Glt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function U1(){var t,l,a,u,f;return t=r,l=r,a=C0(),a!==e?(u=g(),f=Ls(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=klt(l)),t=l,t===e&&(t=r,l=r,a=TL(),a===e&&(a=fl()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=g6t(),a!==e?(R=t,t=jlt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=TL(),a===e&&(a=fl()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=T3t(),a!==e?(R=t,t=Ult(l,a)):(r=t,t=e)):(r=t,t=e))),t}function TL(){var t,l;return t=r,l=ZZt(),l!==e&&(R=t,l=Klt(l)),t=l,t}function d2t(){var t,l,a,u;return t=r,l=r,a=Ow(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=u2t(),a!==e?(R=t,t=Flt(l,a)):(r=t,t=e)):(r=t,t=e),t}function u2t(){var t,l,a,u,f;return t=r,l=r,a=C0(),a!==e?(u=g(),f=Ls(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=ts(),a!==e?(u=g(),f=r6t(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=zf(),l===e&&(l=n4()))),l!==e&&(R=t,l=Slt(l)),t=l,t}function p2t(){var t,l,a,u,f;return t=r,l=C6t(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=qlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function K1(){var t,l,a,u,f;return t=r,l=F6t(),l!==e?(a=r,u=g(),f=a0(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Zlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function vL(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=f4(),a!==e?(u=g(),f=C0(),f!==e?(h=g(),A=$s(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Hlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function c2t(){var t,l,a,u,f,h;return t=r,l=r,a=dd(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=X1(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Vn(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(R=t,t=Wlt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function f2t(){var t,l,a,u;return t=r,l=r,a=dd(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=YB(),a!==e?(R=t,t=zlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function y2t(){var t,l,a,u,f,h;return t=r,l=r,a=dd(),a!==e?(u=g(),f=KSt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=Jlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function h2t(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=dd(),a!==e?(u=g(),f=a6t(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(u=r,f=g(),h=m2t(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=T2t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=v2t(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=Ylt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e),t}function m2t(){var t,l,a,u,f,h;return t=r,l=r,a=Sf(),a!==e?(u=g(),f=Li(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Xlt(l,a)):(r=t,t=e)):(r=t,t=e),t}function T2t(){var t,l,a,u,f,h;if(t=r,l=c3t(),l===e&&(l=Ew()),l!==e){if(a=[],u=r,f=g(),h=EL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=g(),h=EL(),h!==e?(f=[f,h],u=f):(r=u,u=e);else a=e;a!==e?(R=t,t=Qlt(l,a)):(r=t,t=e)}else r=t,t=e;return t}function EL(){var t;return t=AL(),t===e&&(t=E2t(),t===e&&(t=A2t())),t}function v2t(){var t,l,a,u,f,h;if(t=r,l=X3t(),l!==e){if(a=[],u=r,f=g(),h=bL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=g(),h=bL(),h!==e?(f=[f,h],u=f):(r=u,u=e);else a=e;a!==e?(R=t,t=eot(l,a)):(r=t,t=e)}else r=t,t=e;return t}function bL(){var t;return t=b2t(),t===e&&(t=AL()),t}function AL(){var t,l,a,u,f,h;return t=r,l=r,a=LZt(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=tot(l,a)):(r=t,t=e)):(r=t,t=e),t}function E2t(){var t,l,a,u,f,h,A;return t=r,l=r,a=Xqt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=r,u=HSt(),u!==e?(f=g(),h=An(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(u=ji(),u!==e?(R=t,t=iot(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function b2t(){var t,l,a,u,f,h;return t=r,l=r,a=bZt(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=rot(l,a)):(r=t,t=e)):(r=t,t=e),t}function A2t(){var t,l,a,u,f,h;return t=r,l=r,a=e3t(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=not(l,a)):(r=t,t=e)):(r=t,t=e),t}function g2t(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=es(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=I2t(),a!==e?(u=r,f=g(),h=R2t(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=PG(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=r,h=g(),A=oZt(),A!==e?(O=g(),z=iqt(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e)),f===e&&(f=null),R=t,t=aot(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function I2t(){var t,l,a,u,f,h;return t=ml(),t===e&&(t=r,l=ts(),l!==e?(a=g(),u=hl(),u!==e?(f=g(),h=ml(),h!==e?(l=[l,a,u,f,h],t=l):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=oO(),t===e&&(t=r,l=hl(),l!==e?(a=g(),u=oO(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e)))),t}function R2t(){var t,l,a,u;return t=r,l=r,a=$s(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=sot(l,a)):(r=t,t=e)):(r=t,t=e),t}function D2t(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=tqt(),a!==e?(u=g(),f=zr(),f!==e?(h=g(),A=oO(),A!==e?(O=g(),z=gb(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=lot(l)),t=l,t}function gL(){var t,l,a,u,f,h,A,O,z,Te,$e;if(t=r,l=r,a=n0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=w2t(),a!==e)if(u=r,f=g(),h=RL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=C2t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e){for(h=r,A=g(),O=$2t(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=L2t(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=[],z=r,Te=g(),$e=OL(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e);z!==e;)O.push(z),z=r,Te=g(),$e=OL(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e);z=r,Te=g(),$e=K1(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e),z===e&&(z=null),R=t,t=oot(l,a,u,f,h,A,O,z)}else r=t,t=e;else r=t,t=e;return t}function w2t(){var t,l,a,u,f,h,A,O,z;if(t=r,l=P0(),l===e&&(l=is()),l!==e){for(a=[],u=r,f=g(),h=mE(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=mE(),h!==e?(f=[f,h],u=f):(r=u,u=e);u=r,f=g(),h=IL(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=dd(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=P1(),O===e&&(O=O2t()),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=g(),z=Kn(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=dot(l,a,u,f,h,A)):(r=t,t=e)}else r=t,t=e;return t}function mE(){var t,l,a,u;return t=r,l=OG(),l===e&&(l=PSt(),l===e&&(l=cG(),l===e&&(l=Xf()))),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=uot(l)):(r=t,t=e)):(r=t,t=e),t}function IL(){var t,l,a,u,f;return t=r,l=r,a=ya(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=sb(),a===e&&(a=Vw(),a===e&&(a=Xf(),a===e&&(a=is(),a===e&&(a=wb())))),a!==e?(u=r,T++,f=Et(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=pot(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function O2t(){var t,l,a,u,f;return t=r,l=nt(),l!==e?(a=r,u=g(),f=O1(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=cot(l,a)):(r=t,t=e),t}function RL(){var t,l,a,u,f,h,A;return t=r,l=r,a=l6t(),a!==e?(u=g(),f=_b(),f===e&&(f=vu()),f!==e?(h=g(),A=G0(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=fot(l)):(r=t,t=e)):(r=t,t=e),t}function C2t(){var t,l,a;return t=F1(),t===e&&(t=Qp(),t===e&&(t=wL(),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=TE(),a!==e?(R=t,t=yot(a)):(r=t,t=e)):(r=t,t=e)))),t}function F1(){var t,l,a,u,f;return t=r,l=_2t(),l!==e?(a=r,u=g(),f=DKt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=hot(l,a)):(r=t,t=e)):(r=t,t=e),t}function _2t(){var t,l,a,u;return t=Pb(),t===e&&(t=r,l=G0(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=mot(l)):(r=t,t=e)):(r=t,t=e)),t}function S1(){var t,l,a;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=co(),a!==e?(R=t,t=Tot(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=ew(),a!==e?(R=t,t=vot(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ew(),a===e&&(a=DL()),a!==e?(R=t,t=Eot(a)):(r=t,t=e)):(r=t,t=e))),t}function DL(){var t,l,a,u;return t=r,l=r,a=Ls(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ew(),a!==e?(R=t,t=bot(l,a)):(r=t,t=e)):(r=t,t=e),t}function V2t(){var t,l,a,u;return t=r,l=r,a=mw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=eL(),a!==e?(R=t,t=Aot(l,a)):(r=t,t=e)):(r=t,t=e),t}function q1(){var t;return t=vt(),t===e&&(t=l0()),t}function l0(){var t,l;return t=r,l=sn(),l!==e&&(R=t,l=got(l)),t=l,t}function wL(){var t,l,a,u,f;return t=r,l=r,a=sn(),a!==e?(u=g(),f=Pb(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Iot(l)),t=l,t}function OL(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=fr(),a!==e?(u=g(),f=KM(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=P2t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=ad(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=yb(),f!==e?(h=r,A=g(),O=x2t(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,T++,O=Et(),T--,O!==e?(r=A,A=void 0):A=e,A===e&&(A=r,T++,O=Ge(),T--,O!==e?(r=A,A=void 0):A=e),A!==e?(R=t,t=Rot(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function P2t(){var t;return t=T0(),t===e&&(t=N2t()),t}function N2t(){var t,l,a,u,f,h;return t=r,l=r,a=fr(),a!==e?(u=g(),f=cu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Dot(l,a)):(r=t,t=e)):(r=t,t=e),t}function x2t(){var t,l,a,u,f,h;return t=r,l=qw(),l!==e&&(R=t,l=wot(l)),t=l,t===e&&(t=r,l=ml(),l!==e?(a=r,u=g(),f=TE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=ad(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Oot(l,a,u)):(r=t,t=e)):(r=t,t=e)),t}function $2t(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=mr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=qe(),u!==e?(f=r,h=g(),A=nc(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Cot(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function L2t(){var t,l,a,u,f,h,A,O,z,Te,$e;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=fr(),u!==e?(f=g(),h=FSt(),h!==e?(A=g(),O=hl(),O!==e?(z=g(),Te=ml(),Te!==e?($e=g(),u=[u,f,h,A,O,z,Te,$e],a=u):(r=a,a=e)):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a!==e?(u=ZB(),u!==e?(R=t,t=_ot(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function CL(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=n0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=r,u=B2t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=TE(),u!==e){for(f=[],h=r,A=g(),O=_L(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=_L(),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=Vot(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function B2t(){var t,l,a,u,f,h;if(t=r,l=r,a=ml(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e){for(a=[],u=r,f=mE(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=mE(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u=r,f=IL(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=ZUt(),f!==e?(R=t,t=Pot(l,a,u,f)):(r=t,t=e)}else r=t,t=e;return t}function TE(){var t,l,a,u;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ZB(),a!==e?(R=t,t=Not(l,a)):(r=t,t=e)):(r=t,t=e),t}function _L(){var t,l,a,u;return t=C1(),t===e&&(t=r,l=vL(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=xot(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=ad(),t===e&&(t=K1(),t===e&&(t=s0(),t===e&&(t=yE()))))),t}function Z1(){var t,l,a,u,f,h;return t=r,l=r,a=VKt(),a===e&&(a=Kn()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=M2t(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=$ot(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function M2t(){var t,l,a,u;return t=r,l=l0(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Lot(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=vt()),t}function VL(){var t,l,a,u,f,h,A;if(t=r,l=r,a=n0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=G2t(),a!==e){for(u=[],f=r,h=g(),A=NL(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=NL(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Bot(l,a,u)}else r=t,t=e;return t}function G2t(){var t,l,a,u,f,h;if(t=r,l=r,a=dc(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e){for(a=[],u=r,f=PL(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=PL(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u=r,f=Pa(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=eKt(),f!==e?(R=t,t=Mot(l,a,u,f)):(r=t,t=e)}else r=t,t=e;return t}function PL(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=OG(),a===e&&(a=_6t(),a===e&&(a=Xf())),a!==e?(R=t,t=Got(a)):(r=t,t=e)):(r=t,t=e),t}function H1(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sL(),a!==e?(R=t,t=kot(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=P1(),t===e&&(t=jf())),t}function NL(){var t,l,a,u;return t=vL(),t===e&&(t=ad(),t===e&&(t=K1(),t===e&&(t=s0(),t===e&&(t=yE(),t===e&&(t=r,l=CLt(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=jot(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=C1(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Uot(l)):(r=t,t=e)):(r=t,t=e))))))),t}function k2t(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=pO(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Vn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=hKt(),u!==e?(f=r,h=g(),A=tO(),A===e&&(A=FM()),A!==e?(O=g(),z=Jf(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=an(),O===e&&(O=Kr()),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=Kot(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e),t}function j2t(){var t,l,a,u,f,h,A;if(t=r,l=r,a=n0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=U2t(),a!==e){if(u=[],f=r,h=g(),A=xL(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)for(;f!==e;)u.push(f),f=r,h=g(),A=xL(),A!==e?(h=[h,A],f=h):(r=f,f=e);else u=e;u!==e?(R=t,t=Fot(l,a,u)):(r=t,t=e)}else r=t,t=e;return t}function U2t(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=hqt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=dd(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=jf(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=ha(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=jf(),A===e&&(A=OKt()),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=fr(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=vt(),O!==e?(R=t,t=Sot(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xL(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=j0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=CG(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=r,u=Zi(),u!==e?(f=g(),h=CG(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e)),a!==e?(u=r,f=An(),f!==e?(h=g(),A=$Zt(),A===e&&(A=cZt()),A!==e?(O=g(),f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r,h=K2t(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=ny(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=F2t(),A!==e?(R=t,t=qot(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function K2t(){var t,l,a,u;return t=r,l=r,a=fo(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=Zot(l,a)):(r=t,t=e)):(r=t,t=e),t}function F2t(){var t,l,a,u;return t=r,l=S2t(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Hot(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=q2t(),t===e&&(t=Z2t(),t===e&&(t=H2t()))),t}function S2t(){var t,l,a,u,f;return t=r,l=r,a=yb(),a!==e?(u=g(),f=qw(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Wot(l)),t=l,t}function q2t(){var t,l;return t=r,l=dc(),l!==e&&(R=t,l=zot(l)),t=l,t}function Z2t(){var t,l,a,u;return t=r,l=r,a=ml(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=TE(),a!==e?(R=t,t=Jot(l,a)):(r=t,t=e)):(r=t,t=e),t}function H2t(){var t,l,a,u,f,h;return t=r,l=r,a=P0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Kn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=RL(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=F1(),f===e&&(f=wL(),f===e&&(f=W2t())),f!==e?(R=t,t=Yot(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function W2t(){var t,l,a,u;return t=r,l=Ls(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Xot(l)):(r=t,t=e)):(r=t,t=e),t}function $L(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe;if(t=r,l=Sn(),l!==e){for(a=r,u=g(),f=ya(),f!==e?(h=g(),A=is(),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=null),u=[],f=r,h=g(),A=vE(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=vE(),A!==e?(h=[h,A],f=h):(r=f,f=e);if(f=r,h=g(),A=k0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=g(),O=Ja(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=nt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e){if(O=r,z=g(),Te=NUt(),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=[],Te=r,$e=g(),Xe=LL(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e),Te!==e)for(;Te!==e;)z.push(Te),Te=r,$e=g(),Xe=LL(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e);else z=e;z!==e?(R=t,t=Qot(l,a,u,f,h,A,O,z)):(r=t,t=e)}else r=t,t=e;else r=t,t=e}else r=t,t=e;return t}function vE(){var t,l,a,u;return t=r,l=fc(),l===e&&(l=yc()),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=edt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=GG(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=tdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=Ab(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=idt(l)):(r=t,t=e)):(r=t,t=e))),t}function W1(){var t,l,a,u,f,h;if(t=r,l=qe(),l!==e){for(a=[],u=r,f=g(),h=Ya(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),a.length>=1?u=e:(u=r,f=g(),h=Ya(),h!==e?(f=[f,h],u=f):(r=u,u=e));R=t,t=rdt(l,a)}else r=t,t=e;return t}function LL(){var t,l,a;return t=WE(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=z2t(),a!==e?(R=t,t=ndt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=J2t(),a!==e?(R=t,t=adt(a)):(r=t,t=e)):(r=t,t=e))),t}function z2t(){var t;return t=Ya(),t===e&&(t=M1(),t===e&&(t=cE(),t===e&&(t=X2t()))),t}function J2t(){var t;return t=LE(),t===e&&(t=Y2t(),t===e&&(t=bE(),t===e&&(t=iD(),t===e&&(t=AE())))),t}function Y2t(){var t,l,a,u,f,h,A;return t=r,l=r,a=_r(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Bw(),u===e&&(u=JFt()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=w0(),f!==e?(h=g(),A=Ww(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=sdt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function X2t(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=mr(),a!==e?(u=g(),f=eO(),f!==e?(h=g(),A=$s(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=ldt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Q2t(){var t,l,a,u,f,h,A,O,z;return t=r,l=cr(),l!==e?(a=r,u=g(),f=vE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=k0(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=sr(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=Fn(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=odt(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function z1(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=Mr(),l!==e?(a=r,u=g(),f=vE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=k0(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=sr(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=nt(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=g(),z=Kn(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=r,z=g(),Te=WUt(),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O!==e?(R=t,t=ddt(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function J1(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sd(),a===e&&(a=Lf()),a!==e?(R=t,t=udt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=WE(),a!==e?(R=t,t=pdt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=eBt(),a!==e?(R=t,t=cdt(a)):(r=t,t=e)):(r=t,t=e))),t}function eBt(){var t;return t=Vs(),t===e&&(t=ZL(),t===e&&(t=ou(),t===e&&(t=Lf(),t===e&&(t=tc(),t===e&&(t=d0(),t===e&&(t=YL(),t===e&&(t=XL(),t===e&&(t=QL(),t===e&&(t=gE(),t===e&&(t=IE(),t===e&&(t=u0(),t===e&&(t=p0())))))))))))),t}function tBt(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=$6t(),a!==e?(u=g(),f=Ab(),f!==e?(h=g(),A=k0(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=O0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=nt(),u!==e){for(f=[],h=r,A=g(),O=AE(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),f.length>=1?h=e:(h=r,A=g(),O=AE(),O!==e?(A=[A,O],h=A):(r=h,h=e));R=t,t=fdt(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function BL(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt,ii,Vr,sy;if(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e)if(a=r,u=Sn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=ya(),f!==e?(h=g(),A=is(),A!==e?(O=g(),f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r,h=ML(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=Na(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e)if(A=r,O=Ja(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=r,z=nt(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=r,Te=fr(),Te!==e?($e=g(),Te=[Te,$e],z=Te):(r=z,z=e),z!==e)if(Te=r,$e=nt(),$e!==e?(Xe=g(),$e=[$e,Xe],Te=$e):(r=Te,Te=e),Te!==e)if($e=T0(),$e===e&&($e=kUt()),$e!==e){for(Xe=[],pt=r,ii=g(),Vr=EE(),Vr!==e?(ii=[ii,Vr],pt=ii):(r=pt,pt=e);pt!==e;)Xe.push(pt),pt=r,ii=g(),Vr=EE(),Vr!==e?(ii=[ii,Vr],pt=ii):(r=pt,pt=e);R=t,t=ydt(a,u,f,h,A,O,z,Te,$e,Xe)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=r,u=Sn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=ML(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=Na(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=O0(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=Ja(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=r,z=nt(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=r,Te=fr(),Te!==e?($e=g(),Te=[Te,$e],z=Te):(r=z,z=e),z!==e)if(Te=r,$e=uL(),$e===e&&($e=nt()),$e!==e?(Xe=g(),$e=[$e,Xe],Te=$e):(r=Te,Te=e),Te!==e)if($e=r,Xe=bE(),Xe!==e?(pt=g(),Xe=[Xe,pt],$e=Xe):(r=$e,$e=e),$e===e&&($e=null),Xe=T0(),Xe!==e){for(pt=[],ii=r,Vr=g(),sy=EE(),sy!==e?(Vr=[Vr,sy],ii=Vr):(r=ii,ii=e);ii!==e;)pt.push(ii),ii=r,Vr=g(),sy=EE(),sy!==e?(Vr=[Vr,sy],ii=Vr):(r=ii,ii=e);R=t,t=hdt(a,u,f,h,A,O,z,Te,$e,Xe,pt)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function ML(){var t,l,a,u;return t=r,l=fO(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=mdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=oG(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Tdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=YG(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=vdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=sO(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Edt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=t5t(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=bdt(l)):(r=t,t=e)):(r=t,t=e))))),t}function EE(){var t,l,a;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=ad(),a!==e?(R=t,t=Adt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Ya(),a!==e?(R=t,t=gdt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=iD(),a===e&&(a=LE(),a===e&&(a=GL(),a===e&&(a=rBt(),a===e&&(a=nBt())))),a!==e?(R=t,t=Idt(a)):(r=t,t=e)):(r=t,t=e))),t}function iBt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=nn(),u!==e?(f=g(),h=Ew(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(R=t,t=Rdt(a)):(r=t,t=e)):(r=t,t=e),t}function GL(){var t,l,a,u;return t=r,l=r,a=yG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Kn(),a!==e?(R=t,t=Ddt(l,a)):(r=t,t=e)):(r=t,t=e),t}function rBt(){var t,l,a,u,f;return t=r,l=r,a=pc(),a!==e?(u=g(),f=xs(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=wdt(l)),t=l,t}function nBt(){var t,l,a,u,f,h,A;return t=r,l=r,a=pc(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=xs(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Odt(l)),t=l,t}function aBt(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=cr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Na(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=O0(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=sr(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=Fn(),A!==e?(O=r,z=g(),Te=an(),Te===e&&(Te=Kr()),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),R=t,t=Cdt(a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=cr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=sO(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=Na(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=sr(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=Fn(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=r,z=fr(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O!==e?(z=nt(),z!==e?(R=t,t=_dt(a,u,f,h,A,O,z)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function sBt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Na(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(h=r,A=g(),O=lBt(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(R=t,t=Vdt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function lBt(){var t;return t=Vs(),t===e&&(t=d0(),t===e&&(t=u0(),t===e&&(t=p0(),t===e&&(t=gE(),t===e&&(t=IE(),t===e&&(t=Lf(),t===e&&(t=tMt()))))))),t}function oBt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=Na(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=nn(),u!==e?(f=g(),h=zr(),h!==e?(A=g(),O=Tu(),O!==e?(z=g(),u=[u,f,h,A,O,z],a=u):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=qL(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=d0(),h!==e?(R=t,t=Pdt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dBt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=jG(),a!==e?(u=r,f=g(),h=nt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Ndt(a,u)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=jG(),a!==e?(u=r,f=g(),h=CUt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=Na(),A===e&&(A=mu(),A===e&&(A=_b(),A===e&&(A=Vn(),A===e&&(A=qf())))),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=g(),O=O0(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=nt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=xdt(a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function Y1(){var t;return t=uBt(),t===e&&(t=pBt(),t===e&&(t=cBt())),t}function uBt(){var t,l,a,u,f;return t=r,l=O0(),l!==e?(a=r,u=g(),f=JE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=$dt(l,a)):(r=t,t=e),t}function pBt(){var t,l,a,u;return t=r,l=r,a=Tu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Ldt(l,a)):(r=t,t=e)):(r=t,t=e),t}function cBt(){var t,l,a,u,f;return t=r,l=i5t(),l!==e?(a=r,u=g(),f=JE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Bdt(l,a)):(r=t,t=e),t}function kL(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt,ii,Vr;if(t=r,l=Sn(),l!==e)if(a=r,u=g(),f=ya(),f!==e?(h=g(),A=is(),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=X1(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=Vn(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=g(),O=Ja(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=nt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e){for(O=r,z=g(),Te=fBt(),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=r,Te=g(),$e=yBt(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e),z===e&&(z=null),Te=r,$e=g(),Xe=AUt(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e),Te===e&&(Te=null),$e=r,Xe=g(),pt=ykt(),pt!==e?(Xe=[Xe,pt],$e=Xe):(r=$e,$e=e),$e===e&&($e=null),Xe=[],pt=r,ii=g(),Vr=jL(),Vr!==e?(ii=[ii,Vr],pt=ii):(r=pt,pt=e);pt!==e;)Xe.push(pt),pt=r,ii=g(),Vr=jL(),Vr!==e?(ii=[ii,Vr],pt=ii):(r=pt,pt=e);R=t,t=Mdt(l,a,u,f,h,A,O,z,Te,$e,Xe)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function X1(){var t,l,a,u,f;return t=r,l=fc(),l===e&&(l=yc()),l!==e&&(R=t,l=Gdt(l)),t=l,t===e&&(t=r,l=r,a=g3t(),a===e&&(a=Bw()),a!==e?(u=g(),f=yc(),f===e&&(f=fc()),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=kdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=yO(),l===e&&(l=vb()),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=jdt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=mb(),l===e&&(l=dZt()),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Udt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=p4(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Kdt(l)):(r=t,t=e)):(r=t,t=e))))),t}function Ja(){var t,l,a,u,f,h,A;return t=r,l=r,a=Yf(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=_w(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Fdt(l)),t=l,t}function Q1(){var t,l,a;return t=r,l=Tkt(),l!==e&&(R=t,l=Sdt(l)),t=l,t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=UL(),a!==e?(R=t,t=qdt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=o0())),t}function o0(){var t,l,a,u,f,h,A,O;if(t=r,l=qe(),l!==e){for(a=r,u=g(),f=_n(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=_r(),h!==e?(A=g(),O=zw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=[],h=r,A=g(),O=BE(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=BE(),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=Zdt(l,a,u,f)}else r=t,t=e;return t}function fBt(){var t,l,a,u,f,h;return t=r,l=r,a=iy(),a!==e?(u=g(),f=$s(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=Hdt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yBt(){var t,l,a,u,f;return t=r,l=r,a=$s(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=Wdt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jL(){var t,l,a;return t=WE(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=UL(),a!==e?(R=t,t=zdt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=hBt(),a!==e?(R=t,t=Jdt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=EBt(),a!==e?(R=t,t=Ydt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=bBt(),a!==e?(R=t,t=Xdt(a)):(r=t,t=e)):(r=t,t=e))))),t}function UL(){var t,l,a,u,f,h,A;if(t=r,l=r,a=uc(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=nt(),a!==e){for(u=[],f=r,h=g(),A=KL(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=KL(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Qdt(l,a,u)}else r=t,t=e;else r=t,t=e;return t}function KL(){var t,l,a,u;return t=r,l=r,a=V3t(),a===e&&(a=r3t()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=rSt(),a===e&&(a=ub(),a===e&&(a=oSt(),a===e&&(a=CSt(),a===e&&(a=Hf(),a===e&&(a=Jf(),a===e&&(a=N3t(),a===e&&(a=XG(),a===e&&(a=Cb(),a===e&&(a=nn()))))))))),a!==e?(R=t,t=eut(l,a)):(r=t,t=e)):(r=t,t=e),t}function hBt(){var t;return t=mBt(),t===e&&(t=TBt(),t===e&&(t=Ya(),t===e&&(t=SL(),t===e&&(t=cE(),t===e&&(t=M1(),t===e&&(t=c0(),t===e&&(t=FL()))))))),t}function mBt(){var t,l,a,u;return t=r,l=r,a=dSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=tut(l,a)):(r=t,t=e)):(r=t,t=e),t}function TBt(){var t,l,a,u;return t=r,l=r,a=tSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vBt(),a===e&&(a=nt()),a!==e?(R=t,t=iut(l,a)):(r=t,t=e)):(r=t,t=e),t}function vBt(){var t,l,a,u,f,h,A,O,z,Te,$e;return t=r,l=r,a=nt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=es(),u!==e?(f=g(),h=r4(),h!==e?(A=g(),O=mr(),O!==e?(z=g(),Te=$s(),Te!==e?($e=g(),u=[u,f,h,A,O,z,Te,$e],a=u):(r=a,a=e)):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a!==e?(u=vt(),u!==e?(R=t,t=rut(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function FL(){var t,l,a,u,f,h,A;return t=r,l=r,a=_r(),a!==e?(u=g(),f=iy(),f!==e?(h=g(),A=Ew(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=g(),f=Mf(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=nut(l,a)):(r=t,t=e),t}function EBt(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=m0(),a===e&&(a=qe()),a!==e?(R=t,t=aut(l,a)):(r=t,t=e)):(r=t,t=e),t}function bBt(){var t;return t=ABt(),t===e&&(t=gBt(),t===e&&(t=IBt(),t===e&&(t=OBt(),t===e&&(t=CBt(),t===e&&(t=iD(),t===e&&(t=bE(),t===e&&(t=LE(),t===e&&(t=_Bt(),t===e&&(t=AE(),t===e&&(t=VBt(),t===e&&(t=iB()))))))))))),t}function ABt(){var t,l,a,u;return t=r,l=r,a=x3t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=kB(),a!==e?(R=t,t=sut(l,a)):(r=t,t=e)):(r=t,t=e),t}function gBt(){var t,l,a,u,f,h;return t=r,l=r,a=iy(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=MG(),u===e&&(u=Q3t(),u===e&&(u=D3t())),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=T0(),u!==e?(R=t,t=lut(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function IBt(){var t,l,a,u,f,h;return t=r,l=r,a=es(),a!==e?(u=g(),f=Pb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=RBt(),a===e&&(a=DBt(),a===e&&(a=wBt())),a!==e?(R=t,t=out(l,a)):(r=t,t=e)):(r=t,t=e),t}function RBt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Pa(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=UB(),a!==e?(u=r,f=g(),h=ln(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=UB(),f!==e?(R=t,t=dut(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function eD(){var t,l;return t=r,l=Kw(),l!==e&&(R=t,l=uut(l)),t=l,t===e&&(t=r,l=jw(),l!==e&&(R=t,l=put(l)),t=l,t===e&&(t=vt())),t}function DBt(){var t,l,a,u;return t=r,l=r,a=zr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=co(),a!==e?(R=t,t=cut(l,a)):(r=t,t=e)):(r=t,t=e),t}function wBt(){var t,l,a,u;return t=r,l=r,a=_r(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=wUt(),a!==e?(R=t,t=fut(l,a)):(r=t,t=e)):(r=t,t=e),t}function tD(){var t,l,a,u;return t=r,l=r,a=Oqt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=yut(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=M6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=hut(l,a)):(r=t,t=e)):(r=t,t=e)),t}function OBt(){var t,l;return t=r,l=sn(),l!==e&&(R=t,l=mut(l)),t=l,t}function CBt(){var t,l,a,u,f,h;return t=r,l=r,a=fr(),a!==e?(u=g(),f=UM(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=I6t(),u!==e?(f=g(),h=hu(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=r,u=dc(),u!==e?(f=g(),h=hu(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=cr())),a!==e?(R=t,t=Tut(l,a)):(r=t,t=e)):(r=t,t=e),t}function iD(){var t,l,a,u;return t=r,l=r,a=Tu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=vut(l,a)):(r=t,t=e)):(r=t,t=e),t}function bE(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Eut(l,a)):(r=t,t=e)):(r=t,t=e),t}function _Bt(){var t,l,a,u,f;return t=r,l=r,a=U0(),a!==e?(u=g(),f=NG(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=but(l)),t=l,t}function AE(){var t,l,a,u,f,h,A;return t=r,l=r,a=_r(),a!==e?(u=g(),f=fu(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=_r(),a!==e?(u=g(),f=ts(),f!==e?(h=g(),A=fu(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)),l!==e&&(R=t,l=Aut(l)),t=l,t}function VBt(){var t,l,a,u;return t=r,l=r,a=HG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=gut(l,a)):(r=t,t=e)):(r=t,t=e),t}function Ya(){var t,l,a,u,f;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=zw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=jB(),u!==e?(R=t,t=Iut(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function rD(){var t,l,a,u,f,h;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=vt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Rut(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function SL(){var t,l,a,u,f,h;return t=r,l=r,a=sn(),a!==e?(u=g(),f=yo(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=Dut(l,a)):(r=t,t=e)):(r=t,t=e),t}function PBt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=X1(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Vn(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=sr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=Fn(),h!==e?(A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=wut(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function sr(){var t,l,a,u,f;return t=r,l=r,a=Yf(),a!==e?(u=g(),f=_w(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Out(l)),t=l,t}function NBt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=Vn(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=ec(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=HUt(),f!==e?(R=t,t=Cut(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xBt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=Vn(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=nn(),u!==e?(f=g(),h=zr(),h!==e?(A=g(),O=Tu(),O!==e?(z=g(),u=[u,f,h,A,O,z],a=u):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=qL(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=d0(),h!==e?(R=t,t=_ut(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function qL(){var t,l,a,u,f,h;return t=r,l=r,a=xG(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=E0(),a!==e?(R=t,t=Vut(l,a)):(r=t,t=e)):(r=t,t=e),t}function nD(){var t,l,a;return t=ZL(),t===e&&(t=Vs(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=$Bt(),a!==e?(R=t,t=Put(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=LBt(),a!==e?(R=t,t=Nut(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=BBt(),a!==e?(R=t,t=xut(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=MBt(),t===e&&(t=GBt())))))),t}function $Bt(){var t;return t=Lf(),t===e&&(t=HL(),t===e&&(t=sd(),t===e&&(t=RE(),t===e&&(t=DE(),t===e&&(t=FBt()))))),t}function LBt(){var t,l,a;return t=Lf(),t===e&&(t=RE(),t===e&&(t=DE(),t===e&&(t=r,l=r,T++,a=pu(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=WL(),a!==e?(R=t,t=$ut(a)):(r=t,t=e)):(r=t,t=e)))),t}function BBt(){var t;return t=Lf(),t===e&&(t=RE(),t===e&&(t=DE(),t===e&&(t=WL(),t===e&&(t=zL(),t===e&&(t=JL(),t===e&&(t=ou(),t===e&&(t=tc(),t===e&&(t=SBt(),t===e&&(t=qBt(),t===e&&(t=ZBt(),t===e&&(t=HBt(),t===e&&(t=d0(),t===e&&(t=YL(),t===e&&(t=XL(),t===e&&(t=QL(),t===e&&(t=WBt(),t===e&&(t=e2(),t===e&&(t=t2(),t===e&&(t=zBt(),t===e&&(t=JBt(),t===e&&(t=YBt(),t===e&&(t=XBt(),t===e&&(t=gE(),t===e&&(t=IE(),t===e&&(t=QBt()))))))))))))))))))))))))),t}function MBt(){var t,l,a,u,f,h;return t=r,l=r,a=lc(),a!==e?(u=g(),f=db(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=lc(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e)),l!==e?(a=r,u=Ja(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=o0(),u!==e?(R=t,t=Lut(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function GBt(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=db(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e)),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=But(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function Vs(){var t,l,a,u;return t=r,l=r,a=kBt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=Mut(l,a)):(r=t,t=e)):(r=t,t=e),t}function kBt(){var t,l,a,u,f;return t=r,l=r,a=ud(),a!==e?(u=g(),f=ln(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Gut(l)),t=l,t===e&&(t=r,l=r,a=ud(),a!==e?(u=g(),f=mr(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=pu(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=kut(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=ud(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=jut(l)):(r=t,t=e)):(r=t,t=e))),t}function ZL(){var t,l,a,u,f,h,A;return t=r,l=r,a=jBt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=ln(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=qe(),h!==e?(R=t,t=Uut(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jBt(){var t,l,a,u,f;return t=r,l=r,a=ud(),a!==e?(u=g(),f=db(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Kut(l)),t=l,t===e&&(t=r,l=ud(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Fut(l)):(r=t,t=e)):(r=t,t=e)),t}function Lf(){var t,l,a,u,f,h;return t=r,l=r,a=UBt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=qe(),f===e&&(f=fa()),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=dMt(),f!==e?(R=t,t=Sut(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function UBt(){var t,l,a,u,f;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=db(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=qut(l)),t=l,t===e&&(t=r,l=Mr(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Zut(l)):(r=t,t=e)):(r=t,t=e)),t}function HL(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Li(),a!==e?(u=g(),f=sn(),f!==e?(h=g(),A=yo(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=Hut(l,a)):(r=t,t=e)):(r=t,t=e),t}function sd(){var t,l,a,u;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Ya(),a!==e?(R=t,t=Wut(l,a)):(r=t,t=e)):(r=t,t=e),t}function gE(){var t,l,a,u;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=tw(),a!==e?(R=t,t=zut(l,a)):(r=t,t=e)):(r=t,t=e),t}function IE(){var t,l,a,u;return t=r,l=r,a=B0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=DUt(),a!==e?(R=t,t=Jut(l,a)):(r=t,t=e)):(r=t,t=e),t}function RE(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=lc(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=KBt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=oB(),u===e&&(u=r,f=ND(),f!==e?(h=r,T++,A=Ge(),T--,A!==e?(r=h,h=void 0):h=e,h!==e?(R=u,u=Yut(l,a,f)):(r=u,u=e)):(r=u,u=e)),u!==e){for(f=[],h=r,A=g(),O=uu(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=uu(),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=Xut(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function KBt(){var t,l,a,u,f;return t=r,l=r,a=cu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Ja(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(R=t,t=Qut(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function DE(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=cu(),f===e&&(f=w0()),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=ept(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function FBt(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=Yw(),f!==e?(h=g(),A=hl(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=g(),f=sr(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=tpt(l,a)):(r=t,t=e),t}function WL(){var t,l,a,u,f,h,A;if(t=r,l=r,a=Mr(),a!==e?(u=g(),f=cu(),f===e&&(f=w0()),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=qe(),a!==e){if(u=[],f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)for(;f!==e;)u.push(f),f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e);else u=e;u!==e?(R=t,t=ipt(l,a,u)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function zL(){var t,l,a,u,f,h;return t=r,l=r,a=ud(),a!==e?(u=g(),f=cu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=ln(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=qe(),f!==e?(R=t,t=rpt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function JL(){var t,l,a,u,f,h;return t=r,l=r,a=XZt(),a!==e?(u=g(),f=cu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=npt(l,a)):(r=t,t=e)):(r=t,t=e),t}function ou(){var t,l,a,u,f,h;return t=r,l=r,a=d6t(),a!==e?(u=g(),f=ln(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=Bf(),a!==e?(R=t,t=apt(l,a)):(r=t,t=e)):(r=t,t=e),t}function tc(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=mu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=spt(l,a)):(r=t,t=e)):(r=t,t=e),t}function SBt(){var t,l,a,u,f;return t=r,l=r,a=ZSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=R0(),u===e&&(u=eO()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=o2(),u!==e?(R=t,t=lpt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function qBt(){var t,l,a,u;return t=r,l=r,a=BSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=o2(),a!==e?(R=t,t=opt(l,a)):(r=t,t=e)):(r=t,t=e),t}function ZBt(){var t,l,a,u;return t=r,l=r,a=lG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=sD(),a!==e?(R=t,t=dpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function HBt(){var t,l,a,u,f,h;return t=r,l=r,a=ts(),a!==e?(u=g(),f=lG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=sD(),a!==e?(R=t,t=upt(l,a)):(r=t,t=e)):(r=t,t=e),t}function d0(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=Tu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(u=r,f=g(),h=PG(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=ppt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function YL(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Li(),a!==e?(u=g(),f=lb(),f!==e?(h=g(),A=Tqt(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=cpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function XL(){var t,l,a,u,f,h;return t=r,l=r,a=vw(),a!==e?(u=g(),f=fr(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=fpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function QL(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),f=U0(),f!==e?(h=g(),A=vw(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=ypt(l)),t=l,t}function WBt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),f=U0(),f!==e?(h=g(),A=NG(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=hpt(l)),t=l,t}function e2(){var t,l,a,u,f;return t=r,l=r,a=Li(),a!==e?(u=g(),f=rqt(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=mpt(l)),t=l,t}function t2(){var t,l,a,u,f;return t=r,l=r,a=Li(),a!==e?(u=g(),f=yO(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Tpt(l)),t=l,t}function zBt(){var t,l,a,u;return t=r,l=r,a=Qf(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=vpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function JBt(){var t,l,a,u,f,h;return t=r,l=r,a=ts(),a!==e?(u=g(),f=Qf(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=Ept(l,a)):(r=t,t=e)):(r=t,t=e),t}function YBt(){var t,l,a,u;return t=r,l=r,a=$s(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=bpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function XBt(){var t,l,a,u,f;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=$s(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Apt(l)),t=l,t}function u0(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=zM(),a!==e?(u=g(),f=fr(),f!==e?(h=g(),A=aG(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=gpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function p0(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=ts(),a!==e?(u=g(),f=zM(),f!==e?(h=g(),A=fr(),A!==e?(O=g(),z=aG(),z!==e?(Te=g(),a=[a,u,f,h,A,O,z,Te],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Ipt(l,a)):(r=t,t=e)):(r=t,t=e),t}function QBt(){var t,l,a,u,f,h;return t=r,l=r,a=eO(),a!==e?(u=g(),f=Jf(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=sn(),a===e&&(a=qw(),a===e&&(a=Nw(),a===e&&(a=eMt()))),a!==e?(R=t,t=Rpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function eMt(){var t,l,a,u,f,h;return t=r,l=r,a=ha(),a!==e?(u=g(),f=Na(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Dpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function tMt(){var t,l,a,u,f,h;return t=r,l=r,a=_M(),a!==e?(u=g(),f=iy(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=wpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function iMt(){var t,l,a,u,f,h,A;return t=r,l=r,a=lc(),a!==e?(u=g(),f=G0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=Ja(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=ji(),u!==e?(f=r,h=g(),A=rMt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Opt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function rMt(){var t,l,a,u;return t=r,l=r,a=PM(),a===e&&(a=DM()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=Cpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function nMt(){var t,l,a,u,f,h,A;return t=r,l=r,a=ud(),a!==e?(u=g(),f=G0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(u=r,f=g(),h=ln(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=ji(),f!==e?(R=t,t=_pt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function aMt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=ud(),a!==e?(u=g(),f=ob(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(u=r,f=g(),h=ln(),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(f=qe(),f!==e?(h=r,A=g(),O=an(),O===e&&(O=Kr()),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=Vpt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function sMt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=lc(),a!==e?(u=g(),f=ob(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(u=r,f=g(),h=_n(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=ME(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=an(),O===e&&(O=Kr()),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=Ppt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function lMt(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=ob(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Npt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function oMt(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=ob(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Li(),f!==e?(h=g(),A=fu(),A!==e?(O=g(),z=vo(),z!==e?(Te=g(),f=[f,h,A,O,z,Te],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u===e&&(u=r,f=vo(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e)),u!==e?(f=_n(),f!==e?(h=r,A=g(),O=ME(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=xpt(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dMt(){var t,l,a;return t=i2(),t===e&&(t=r2(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=uMt(),a!==e?(R=t,t=$pt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=pu(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=pMt(),a!==e?(R=t,t=Lpt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=cMt(),a!==e?(R=t,t=Bpt(a)):(r=t,t=e)):(r=t,t=e))))),t}function uMt(){var t;return t=aD(),t===e&&(t=a2(),t===e&&(t=sd())),t}function pMt(){var t;return t=fMt(),t===e&&(t=yMt()),t}function cMt(){var t;return t=n2(),t===e&&(t=aD(),t===e&&(t=a2(),t===e&&(t=hMt(),t===e&&(t=mMt(),t===e&&(t=TMt(),t===e&&(t=gE(),t===e&&(t=IE(),t===e&&(t=vMt(),t===e&&(t=EMt(),t===e&&(t=bMt(),t===e&&(t=AMt()))))))))))),t}function i2(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=sn(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=Mpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function r2(){var t,l,a,u,f;return t=r,l=r,a=cr(),a!==e?(u=g(),f=sn(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Gpt(l)),t=l,t}function n2(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=To(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=kpt(l)),t=l,t}function aD(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=To(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=jpt(l)),t=l,t}function a2(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=Li(),a!==e?(u=g(),f=fu(),f!==e?(h=g(),A=vo(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=vo(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e)),l!==e)if(a=_n(),a!==e){for(u=[],f=r,h=g(),A=s2(),A===e&&(A=l2()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=s2(),A===e&&(A=l2()),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Upt(l,a,u)}else r=t,t=e;else r=t,t=e;return t}function s2(){var t,l;return t=r,l=ME(),l!==e&&(R=t,l=Kpt(l)),t=l,t}function l2(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=Fpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function fMt(){var t,l,a,u,f;return t=r,l=r,a=Li(),a!==e?(u=g(),f=c4(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Spt(l)),t=l,t}function yMt(){var t,l,a,u,f;return t=r,l=r,a=Li(),a!==e?(u=g(),f=bG(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=qpt(l)),t=l,t}function hMt(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=ub(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a===e&&(a=l0()),a!==e?(R=t,t=Zpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function mMt(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=Cb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=lB(),a!==e?(R=t,t=Hpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function TMt(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=XG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=Wpt(l,a)):(r=t,t=e)):(r=t,t=e),t}function vMt(){var t,l,a,u,f;return t=r,l=r,a=cr(),a!==e?(u=g(),f=l3t(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=g(),f=sr(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=zpt(l,a)):(r=t,t=e),t}function EMt(){var t,l,a,u,f;return t=r,l=r,a=cr(),a!==e?(u=g(),f=Jf(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=g(),f=sr(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Jpt(l,a)):(r=t,t=e),t}function bMt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=lc(),a!==e?(u=g(),f=Hf(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=R0(),a===e&&(a=r,u=An(),u!==e?(f=g(),h=sn(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e)),a!==e?(u=r,f=g(),h=mr(),h!==e?(A=g(),O=Jf(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(f=r,h=g(),A=SB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Ypt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function AMt(){var t,l,a,u,f,h;if(t=r,l=lD(),l!==e){for(a=[],u=r,f=g(),h=lD(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=lD(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=Xpt(l,a)}else r=t,t=e;return t}function o2(){var t;return t=sD(),t===e&&(t=gMt(),t===e&&(t=IMt())),t}function sD(){var t,l,a,u,f,h,A;return t=r,l=r,a=Ls(),a!==e?(u=g(),f=DG(),f!==e?(h=g(),A=ZG(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Qpt(l)),t=l,t}function gMt(){var t,l,a,u;return t=r,l=r,a=ay(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nn(),a===e&&(a=vu(),a===e&&(a=qe())),a!==e?(R=t,t=ect(l,a)):(r=t,t=e)):(r=t,t=e),t}function IMt(){var t,l,a,u;return t=r,l=r,a=J6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=tct(l,a)):(r=t,t=e)):(r=t,t=e),t}function lD(){var t;return t=RMt(),t===e&&(t=DMt(),t===e&&(t=wMt())),t}function RMt(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),f=Hf(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=R0(),a===e&&(a=r,u=An(),u!==e?(f=g(),h=sn(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e)),a!==e?(R=t,t=ict(l,a)):(r=t,t=e)):(r=t,t=e),t}function DMt(){var t,l,a,u;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=du(),a!==e?(R=t,t=rct(l,a)):(r=t,t=e)):(r=t,t=e),t}function wMt(){var t,l;return t=r,l=V2(),l!==e&&(R=t,l=nct(l)),t=l,t}function OMt(){var t,l,a,u,f;return t=r,l=r,a=ud(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Vn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=mKt(),u!==e?(R=t,t=act(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function oD(){var t,l,a,u,f,h;return t=r,l=nt(),l!==e?(a=r,u=g(),f=ln(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=nt(),u!==e?(R=t,t=sct(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt,ii;if(t=r,l=r,a=Sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=ya(),u!==e?(f=g(),h=is(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=null),u=r,f=CMt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=ay(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=Ja(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=nt(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e)if(O=r,z=PM(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O===e&&(O=r,z=DM(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O===e&&(O=r,z=B3t(),z!==e?(Te=g(),$e=$s(),$e!==e?(Xe=g(),z=[z,Te,$e,Xe],O=z):(r=O,O=e)):(r=O,O=e))),O===e&&(O=null),z=r,Te=_Mt(),Te!==e?($e=g(),Te=[Te,$e],z=Te):(r=z,z=e),z!==e)if(Te=r,$e=uD(),$e!==e?(Xe=g(),$e=[$e,Xe],Te=$e):(r=Te,Te=e),Te!==e){for($e=[],Xe=r,pt=d2(),pt!==e?(ii=g(),pt=[pt,ii],Xe=pt):(r=Xe,Xe=e);Xe!==e;)$e.push(Xe),Xe=r,pt=d2(),pt!==e?(ii=g(),pt=[pt,ii],Xe=pt):(r=Xe,Xe=e);Xe=LMt(),Xe!==e?(R=t,t=lct(l,a,u,f,h,A,O,z,Te,$e,Xe)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function CMt(){var t,l,a;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=yc(),a===e&&(a=fc()),a!==e?(R=t,t=oct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=cu(),a!==e?(R=t,t=dct(a)):(r=t,t=e)):(r=t,t=e)),t}function _Mt(){var t,l,a,u,f,h,A,O;if(t=r,l=dD(),l!==e){for(a=[],u=r,f=g(),h=ya(),h!==e?(A=g(),O=dD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=ya(),h!==e?(A=g(),O=dD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=uct(l,a)}else r=t,t=e;return t}function dD(){var t,l,a,u,f;return t=r,l=r,a=ml(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=$s(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=iw(),u!==e?(R=t,t=pct(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=dc(),l===e&&(l=P0(),l===e&&(l=ml(),l===e&&(l=pO()))),l!==e&&(R=t,l=cct(l)),t=l),t}function uD(){var t,l,a,u;return t=r,l=r,a=fr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=fct(l,a)):(r=t,t=e)):(r=t,t=e),t}function d2(){var t,l,a;return t=VMt(),t===e&&(t=PMt(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=NMt(),a===e&&(a=xMt(),a===e&&(a=$Mt())),a!==e?(R=t,t=yct(a)):(r=t,t=e)):(r=t,t=e))),t}function VMt(){var t,l,a,u,f,h;return t=r,l=r,a=es(),a!==e?(u=g(),f=SSt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=es(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e)),l!==e?(a=Ls(),a===e&&(a=AZt()),a!==e?(R=t,t=hct(l,a)):(r=t,t=e)):(r=t,t=e),t}function PMt(){var t,l,a,u;return t=r,l=r,a=j0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=mct(l,a)):(r=t,t=e)):(r=t,t=e),t}function NMt(){var t,l,a,u;return t=r,l=r,a=Pa(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=Tct(l,a)):(r=t,t=e)):(r=t,t=e),t}function xMt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=yu(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=yu(),a!==e?(u=g(),f=V0(),f!==e?(h=g(),A=fb(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=yu(),a!==e?(u=g(),f=V0(),f!==e?(h=g(),A=_0(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=yu(),l===e&&(l=r,a=V0(),a!==e?(u=g(),f=fb(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=V0(),a!==e?(u=g(),f=_0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)))))),l!==e&&(R=t,l=vct(l)),t=l,t}function $Mt(){var t,l,a,u;return t=r,l=r,a=x6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=IKt(),a!==e?(R=t,t=Ect(l,a)):(r=t,t=e)):(r=t,t=e),t}function pD(){var t,l,a,u,f,h;return t=r,l=r,a=Pqt(),a===e&&(a=Jqt()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Vn(),u===e&&(u=Ls()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=mr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=qe(),f!==e?(R=t,t=bct(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function LMt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=r,u=D0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=BMt(),u!==e?(f=r,h=g(),A=ho(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Act(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=Cw(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=$0(),f===e&&(f=Zf()),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=nt(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=Ns(),h===e&&(h=co()),h!==e?(R=t,t=gct(a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function BMt(){var t,l,a,u,f,h,A,O;if(t=r,l=pE(),l!==e){if(a=[],u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=pE(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===59?(h=E,r++):(h=e,T===0&&P(Df)),h!==e?(A=g(),O=pE(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);else a=e;a!==e?(R=t,t=Ict(l,a)):(r=t,t=e)}else r=t,t=e;return t}function MMt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=ay(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=uD(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=GMt(),f!==e?(R=t,t=Rct(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GMt(){var t;return t=Vs(),t===e&&(t=u0(),t===e&&(t=p0())),t}function cD(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=cr(),u!==e?(f=g(),h=ay(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(R=t,t=Dct(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=cr(),u!==e?(f=g(),h=ay(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(h=r,A=g(),O=uD(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=wct(a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function fD(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Sn(),a!==e?(u=g(),f=mD(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e){for(a=r,u=g(),f=Ja(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=nt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=[],h=r,A=g(),O=u2(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=u2(),O!==e?(A=[A,O],h=A):(r=h,h=e);for(h=[],A=r,O=g(),z=p2(),z!==e?(O=[O,z],A=O):(r=A,A=e);A!==e;)h.push(A),A=r,O=g(),z=p2(),z!==e?(O=[O,z],A=O):(r=A,A=e);R=t,t=Oct(l,a,u,f,h)}else r=t,t=e;return t}function u2(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Ya(),a!==e?(R=t,t=Cct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=SL(),a!==e?(R=t,t=_ct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=kMt(),a!==e?(R=t,t=Vct(a)):(r=t,t=e)):(r=t,t=e))),t}function kMt(){var t,l,a,u;return t=r,l=r,a=$Ft(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Bf(),a!==e?(R=t,t=Pct(l,a)):(r=t,t=e)):(r=t,t=e),t}function p2(){var t,l,a;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=kL(),a===e&&(a=$L(),a===e&&(a=BL(),a===e&&(a=_2(),a===e&&(a=wE(),a===e&&(a=k2()))))),a!==e?(R=t,t=Nct(a)):(r=t,t=e)):(r=t,t=e),t}function yD(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=mD(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Fn(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=xct(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function hD(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=Mr(),a!==e?(u=g(),f=mD(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=nt(),u!==e){if(f=[],h=r,A=g(),O=c2(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e)for(;h!==e;)f.push(h),h=r,A=g(),O=c2(),O!==e?(A=[A,O],h=A):(r=h,h=e);else f=e;f!==e?(R=t,t=$ct(l,a,u,f)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function c2(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sd(),a!==e?(R=t,t=Lct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=HL(),a!==e?(R=t,t=Bct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Vs(),a!==e?(R=t,t=Mct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ou(),a!==e?(R=t,t=Gct(a)):(r=t,t=e)):(r=t,t=e)))),t}function mD(){var t,l,a,u;return t=mu(),t===e&&(t=r,l=qf(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=kct(l)):(r=t,t=e)):(r=t,t=e)),t}function f2(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt,ii;if(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=r,u=Sn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=ya(),f!==e?(h=g(),A=is(),A!==e?(O=g(),f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r,h=yc(),h===e&&(h=fc()),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=Vn(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=Zf(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e)if(O=r,z=Ja(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=r,Te=nt(),Te!==e?($e=g(),Te=[Te,$e],z=Te):(r=z,z=e),z!==e)if(Te=Gf(),Te===e&&(Te=Ns()),Te!==e){if($e=[],Xe=r,pt=g(),ii=OE(),ii!==e?(pt=[pt,ii],Xe=pt):(r=Xe,Xe=e),Xe!==e)for(;Xe!==e;)$e.push(Xe),Xe=r,pt=g(),ii=OE(),ii!==e?(pt=[pt,ii],Xe=pt):(r=Xe,Xe=e);else $e=e;$e!==e?(R=t,t=jct(a,u,f,h,A,O,z,Te,$e)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=r,u=Sn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=ya(),f!==e?(h=g(),A=is(),A!==e?(O=g(),f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r,h=Zf(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=nt(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e)if(A=Gf(),A===e&&(A=Ns()),A!==e){if(O=[],z=r,Te=g(),$e=OE(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e),z!==e)for(;z!==e;)O.push(z),z=r,Te=g(),$e=OE(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e);else O=e;O!==e?(R=t,t=Uct(a,u,f,h,A,O)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function TD(){var t,l,a,u,f;return t=r,l=nt(),l!==e?(a=r,u=g(),f=Gf(),f===e&&(f=Ns()),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Kct(l,a)):(r=t,t=e),t}function vD(){var t,l,a,u,f;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=_n(),u!==e?(R=t,t=Fct(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=PE(),a!==e?(R=t,t=Sct(a)):(r=t,t=e)):(r=t,t=e)),t}function OE(){var t,l,a;return t=KMt(),t===e&&(t=y2(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=UMt(),a!==e?(R=t,t=qct(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=jMt(),a!==e?(R=t,t=Zct(a)):(r=t,t=e)):(r=t,t=e)))),t}function jMt(){var t;return t=SMt(),t===e&&(t=eM(),t===e&&(t=c0(),t===e&&(t=Ya()))),t}function UMt(){var t;return t=FMt(),t===e&&(t=$E(),t===e&&(t=tM(),t===e&&(t=WMt(),t===e&&(t=h2(),t===e&&(t=CE(),t===e&&(t=m2(),t===e&&(t=T2(),t===e&&(t=v2(),t===e&&(t=E2(),t===e&&(t=_E(),t===e&&(t=VE()))))))))))),t}function KMt(){var t,l,a,u;return t=r,l=r,a=SG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wkt(),a===e&&(a=_n()),a!==e?(R=t,t=Hct(l,a)):(r=t,t=e)):(r=t,t=e),t}function FMt(){var t,l,a,u;return t=r,l=r,a=iO(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=Wct(l,a)):(r=t,t=e)):(r=t,t=e),t}function SMt(){var t,l,a,u,f;return t=r,l=YM(),l===e&&(l=r,a=Zi(),a!==e?(u=g(),f=YM(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)),l!==e&&(R=t,l=zct(l)),t=l,t}function y2(){var t,l,a,u;return t=r,l=r,a=Eb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Jct(l,a)):(r=t,t=e)):(r=t,t=e),t}function qMt(){var t;return t=od(),t===e&&(t=ji(),t===e&&(t=Qp())),t}function ZMt(){var t;return t=HMt(),t===e&&(t=ji()),t}function HMt(){var t,l,a,u,f,h;return t=r,l=r,a=ji(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===44?(a=b,r++):(a=e,T===0&&P(We)),a!==e?(u=r,f=g(),h=ji(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Yct(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function c0(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=G6t(),a!==e?(u=g(),f=_r(),f!==e?(h=g(),A=pb(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=_r(),a!==e?(u=g(),f=pb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e)),l!==e?(a=nt(),a!==e?(R=t,t=Xct(l,a)):(r=t,t=e)):(r=t,t=e),t}function WMt(){var t,l;return t=r,l=h4(),l!==e&&(R=t,l=Qct(l)),t=l,t}function h2(){var t,l,a,u,f,h,A,O,z,Te,$e;return t=r,l=_3t(),l===e&&(l=EZt(),l===e&&(l=r5t(),l===e&&(l=RG(),l===e&&(l=r,a=Zi(),a!==e?(u=g(),f=RG(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=zFt(),a!==e?(u=g(),f=fr(),f!==e?(h=g(),A=To(),A!==e?(O=g(),z=mG(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=SG(),a!==e?(u=g(),f=To(),f!==e?(h=g(),A=fr(),A!==e?(O=g(),z=To(),z!==e?(Te=g(),$e=mG(),$e!==e?(a=[a,u,f,h,A,O,z,Te,$e],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=e4(),l===e&&(l=r,a=p6t(),a!==e?(u=g(),f=JZt(),f===e&&(f=U6t(),f===e&&(f=Y6t())),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e))))))))),l!==e&&(R=t,l=eft(l)),t=l,t}function CE(){var t,l,a,u,f,h;return t=r,l=r,a=mb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=r,u=ZG(),u!==e?(f=g(),h=_St(),h===e&&(h=G3t()),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(R=t,t=tft(l,a)):(r=t,t=e),t}function m2(){var t,l,a,u;return t=r,l=r,a=uSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=ift(l,a)):(r=t,t=e)):(r=t,t=e),t}function T2(){var t,l,a,u;return t=r,l=r,a=hu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=rft(l,a)):(r=t,t=e)):(r=t,t=e),t}function v2(){var t,l,a,u;return t=r,l=r,a=_Zt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=nft(l,a)):(r=t,t=e)):(r=t,t=e),t}function E2(){var t,l,a,u;return t=r,l=r,a=FZt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=gKt(),a!==e?(R=t,t=aft(l,a)):(r=t,t=e)):(r=t,t=e),t}function ED(){var t,l,a,u,f,h;return t=r,l=r,a=es(),a!==e?(u=g(),f=vo(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=_n(),a!==e?(R=t,t=sft(l,a)):(r=t,t=e)):(r=t,t=e),t}function _E(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===61?(u=$,r++):(u=e,T===0&&P(pa)),u===e&&(u=ln()),u!==e?(f=r,h=g(),A=XUt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=lft(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bD(){var t;return t=fl(),t===e&&(t=l0(),t===e&&(t=qe())),t}function VE(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(u=r,f=g(),h=Pa(),h!==e?(A=g(),O=C0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=oft(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function b2(){var t,l,a,u;return t=r,l=r,a=B0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=dft(l,a)):(r=t,t=e)):(r=t,t=e),t}function A2(){var t,l,a,u,f;return t=r,l=r,a=B0(),a!==e?(u=g(),f=nn(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=uft(l)),t=l,t}function g2(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Vn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Zf(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=sr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=nt(),h!==e?(A=r,O=g(),z=Gf(),z===e&&(z=Ns()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),O=r,z=g(),Te=an(),Te===e&&(Te=Kr()),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),R=t,t=pft(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zMt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=Zf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=nt(),u!==e){if(f=r,h=g(),A=Gf(),A===e&&(A=Ns()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=[],A=r,O=g(),z=I2(),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e)for(;A!==e;)h.push(A),A=r,O=g(),z=I2(),z!==e?(O=[O,z],A=O):(r=A,A=e);else h=e;h!==e?(A=r,O=g(),z=Kr(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=cft(l,a,u,f,h,A)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function I2(){var t;return t=Vs(),t===e&&(t=ou(),t===e&&(t=tc(),t===e&&(t=u0(),t===e&&(t=p0(),t===e&&(t=_E(),t===e&&(t=VE(),t===e&&(t=A2(),t===e&&(t=b2(),t===e&&(t=h2(),t===e&&(t=CE(),t===e&&(t=m2(),t===e&&(t=T2(),t===e&&(t=v2()))))))))))))),t}function R2(){var t,l,a,u,f,h,A,O,z,Te,$e;if(t=r,l=r,a=Sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=ya(),u!==e?(f=g(),h=is(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=null),u=r,f=$0(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=r,h=Ja(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=nt(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e)if(A=KB(),A===e&&(A=Ns()),A!==e){if(O=[],z=r,Te=g(),$e=w2(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e),z!==e)for(;z!==e;)O.push(z),z=r,Te=g(),$e=w2(),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e);else O=e;O!==e?(R=t,t=fft(l,a,u,f,h,A,O)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function PE(){var t,l,a,u,f,h,A,O;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=$w(),u===e&&(u=zr(),u===e&&(u=Jw())),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=_n(),f!==e?(R=t,t=yft(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=$w(),u===e&&(u=zr(),u===e&&(u=Jw(),u===e&&(u=u4()))),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=_n(),f!==e?(h=r,A=g(),O=D2(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=hft(a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=$w(),u===e&&(u=zr(),u===e&&(u=Jw(),u===e&&(u=u4()))),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=_n(),u!==e?(f=r,h=g(),A=D2(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=mft(a,u,f)):(r=t,t=e)):(r=t,t=e))),t}function D2(){var t,l,a,u,f;return t=r,l=sn(),l===e&&(s.charCodeAt(r)===61?(l=$,r++):(l=e,T===0&&P(pa))),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Tft(l,a)):(r=t,t=e)):(r=t,t=e),t}function w2(){var t,l,a;return t=$E(),t===e&&(t=y2(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=JMt(),a!==e?(R=t,t=vft(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=YMt(),a!==e?(R=t,t=Eft(a)):(r=t,t=e)):(r=t,t=e)))),t}function JMt(){var t;return t=eM(),t===e&&(t=c0(),t===e&&(t=Ya())),t}function YMt(){var t;return t=tM(),t===e&&(t=CE(),t===e&&(t=E2(),t===e&&(t=_E(),t===e&&(t=VE())))),t}function O2(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=$0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(h=r,A=g(),O=KB(),O===e&&(O=Ns()),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=bft(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function XMt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=$0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=nt(),u!==e){if(f=r,h=g(),A=Gf(),A===e&&(A=Ns()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=[],A=r,O=g(),z=C2(),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e)for(;A!==e;)h.push(A),A=r,O=g(),z=C2(),z!==e?(O=[O,z],A=O):(r=A,A=e);else h=e;h!==e?(A=r,O=g(),z=Kr(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=Aft(l,a,u,f,h,A)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function C2(){var t;return t=Vs(),t===e&&(t=ou(),t===e&&(t=tc(),t===e&&(t=u0(),t===e&&(t=p0(),t===e&&(t=_E(),t===e&&(t=VE(),t===e&&(t=A2(),t===e&&(t=b2(),t===e&&(t=CE()))))))))),t}function _2(){var t,l,a,u,f,h,A,O,z,Te;if(t=r,l=r,a=Sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=QMt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Ob(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=r,h=Ja(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=nt(),h!==e){for(A=[],O=r,z=g(),Te=du(),Te!==e?(z=[z,Te],O=z):(r=O,O=e);O!==e;)A.push(O),O=r,z=g(),Te=du(),Te!==e?(z=[z,Te],O=z):(r=O,O=e);R=t,t=gft(l,a,u,f,h,A)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function QMt(){var t,l;return t=r,l=fc(),l===e&&(l=yc(),l===e&&(l=yO())),l!==e&&(R=t,l=Ift(l)),t=l,t}function eGt(){var t,l,a,u,f,h;if(t=r,l=du(),l!==e){for(a=[],u=r,f=g(),h=du(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=du(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=Rft(l,a)}else r=t,t=e;return t}function du(){var t;return t=tGt(),t===e&&(t=iGt(),t===e&&(t=rGt(),t===e&&(t=V2(),t===e&&(t=nGt(),t===e&&(t=aGt(),t===e&&(t=sGt(),t===e&&(t=lGt(),t===e&&(t=oGt(),t===e&&(t=dGt(),t===e&&(t=uGt(),t===e&&(t=pGt()))))))))))),t}function tGt(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=_n(),a!==e?(R=t,t=Dft(l,a)):(r=t,t=e)):(r=t,t=e),t}function iGt(){var t,l,a,u,f;return t=r,l=r,a=P3t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=An(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=sc(),u!==e?(R=t,t=wft(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function rGt(){var t,l,a,u,f;return t=r,l=r,a=dO(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=_r(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=sc(),u!==e?(R=t,t=Oft(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function V2(){var t,l,a,u,f;return t=r,l=r,a=tO(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=_r(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=sc(),u!==e?(R=t,t=Cft(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=tO(),l!==e?(a=r,u=g(),f=sc(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=_ft(l,a)):(r=t,t=e)),t}function nGt(){var t,l,a,u;return t=r,l=r,a=Kw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=sc(),a!==e?(R=t,t=Vft(l,a)):(r=t,t=e)):(r=t,t=e),t}function aGt(){var t,l,a,u;return t=r,l=r,a=jw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=sc(),a!==e?(R=t,t=Pft(l,a)):(r=t,t=e)):(r=t,t=e),t}function sGt(){var t,l,a,u,f;return t=r,l=r,a=ts(),a!==e?(u=g(),f=Kw(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Nft(l)),t=l,t}function lGt(){var t,l,a,u,f;return t=r,l=r,a=ts(),a!==e?(u=g(),f=jw(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=xft(l)),t=l,t}function oGt(){var t,l,a,u;return t=r,l=r,a=HFt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=sc(),a!==e?(R=t,t=$ft(l,a)):(r=t,t=e)):(r=t,t=e),t}function dGt(){var t,l;return t=r,l=Aw(),l!==e&&(R=t,l=Lft(l)),t=l,t}function uGt(){var t,l,a,u,f;return t=r,l=r,a=ts(),a!==e?(u=g(),f=Aw(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Bft(l)),t=l,t}function pGt(){var t,l,a,u,f,h;return t=r,l=r,a=xG(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(R=t,t=Mft(l,a)):(r=t,t=e)):(r=t,t=e),t}function cGt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=Ob(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e){if(h=[],A=r,O=g(),z=du(),z===e&&(z=P2()),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e)for(;A!==e;)h.push(A),A=r,O=g(),z=du(),z===e&&(z=P2()),z!==e?(O=[O,z],A=O):(r=A,A=e);else h=e;h!==e?(R=t,t=Gft(l,a,u,f,h)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function P2(){var t;return t=e2(),t===e&&(t=t2(),t===e&&(t=ou(),t===e&&(t=Vs(),t===e&&(t=tc())))),t}function fGt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Ob(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=Fn(),f!==e?(h=r,A=g(),O=an(),O===e&&(O=Kr()),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=kft(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yGt(){var t,l,a,u,f,h;return t=r,l=r,a=Sn(),a!==e?(u=g(),f=vo(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(u=r,f=g(),h=hGt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=jft(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function hGt(){var t;return t=mGt(),t===e&&(t=TGt()),t}function mGt(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Ns(),a===e&&(a=Mf()),a!==e?(R=t,t=Uft(l,a)):(r=t,t=e)):(r=t,t=e),t}function TGt(){var t,l,a,u,f,h;return t=r,l=r,a=mr(),a!==e?(u=g(),f=rG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=Ns(),a===e&&(a=FB()),a!==e?(R=t,t=Kft(l,a)):(r=t,t=e)):(r=t,t=e),t}function vGt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=vo(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(u=r,f=g(),h=zUt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Fft(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function AD(){var t;return t=ou(),t===e&&(t=Vs(),t===e&&(t=tc(),t===e&&(t=iMt(),t===e&&(t=nMt(),t===e&&(t=aMt(),t===e&&(t=sMt(),t===e&&(t=lMt(),t===e&&(t=oMt())))))))),t}function EGt(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=vo(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Fn(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Sft(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function bGt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Sn(),a!==e?(u=g(),f=hb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=nt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=mr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=_n(),f!==e){for(h=[],A=r,O=g(),z=BE(),z!==e?(O=[O,z],A=O):(r=A,A=e);A!==e;)h.push(A),A=r,O=g(),z=BE(),z!==e?(O=[O,z],A=O):(r=A,A=e);R=t,t=qft(l,a,u,f,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function AGt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=hb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=nt(),a!==e?(u=r,f=g(),h=gGt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Zft(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gGt(){var t;return t=ou(),t===e&&(t=Vs(),t===e&&(t=tc(),t===e&&(t=i2(),t===e&&(t=r2(),t===e&&(t=n2(),t===e&&(t=aD(),t===e&&(t=zL(),t===e&&(t=JL(),t===e&&(t=DE(),t===e&&(t=RE())))))))))),t}function IGt(){var t,l,a,u,f,h,A;return t=r,l=r,a=cr(),a!==e?(u=g(),f=hb(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Fn(),u!==e?(f=r,h=g(),A=an(),A===e&&(A=Kr()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Hft(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function RGt(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=Sn(),a!==e?(u=g(),f=cc(),f===e&&(f=vu(),f===e&&(f=zf())),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=nt(),a!==e){for(u=r,f=g(),h=_r(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=[],h=r,A=g(),O=ic(),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=ic(),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=Wft(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function ic(){var t;return t=DGt(),t===e&&(t=wGt(),t===e&&(t=OGt(),t===e&&(t=CGt(),t===e&&(t=_Gt(),t===e&&(t=VGt(),t===e&&(t=PGt(),t===e&&(t=NGt()))))))),t}function DGt(){var t,l;return t=r,l=CZt(),l===e&&(l=Sqt(),l===e&&(l=pSt(),l===e&&(l=Gqt(),l===e&&(l=cSt(),l===e&&(l=kqt(),l===e&&(l=Qf(),l===e&&(l=jqt(),l===e&&(l=nqt(),l===e&&(l=Uqt(),l===e&&(l=k6t(),l===e&&(l=Fqt(),l===e&&(l=SFt(),l===e&&(l=Mqt()))))))))))))),l!==e&&(R=t,l=zft(l)),t=l,t}function wGt(){var t,l,a,u,f,h;return t=r,l=r,a=pb(),a!==e?(u=g(),f=ty(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=Jft(l,a)):(r=t,t=e)):(r=t,t=e),t}function OGt(){var t,l,a,u,f;return t=r,l=r,a=WSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=r,u=$G(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=ji(),u===e&&(u=dM()),u!==e?(R=t,t=Yft(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function CGt(){var t,l,a,u,f,h;return t=r,l=r,a=d4(),a!==e?(u=g(),f=l4(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=Xft(l,a)):(r=t,t=e)):(r=t,t=e),t}function _Gt(){var t,l,a,u,f,h;return t=r,l=r,a=zr(),a!==e?(u=g(),f=cc(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=E0(),a!==e?(R=t,t=Qft(l,a)):(r=t,t=e)):(r=t,t=e),t}function VGt(){var t,l,a,u;return t=r,l=r,a=cc(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=E0(),a!==e?(R=t,t=eyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function PGt(){var t,l,a,u;return t=r,l=r,a=hw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=E0(),a!==e?(R=t,t=tyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function NGt(){var t,l,a,u;return t=r,l=r,a=VZt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=fa(),a!==e?(R=t,t=iyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function xGt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=cc(),f===e&&(f=vu(),f===e&&(f=zf())),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=Bf(),u===e&&(u=nn()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=$Gt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=LGt(),f!==e?(R=t,t=ryt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $Gt(){var t,l,a,u,f,h;return t=r,l=r,a=zr(),a!==e?(u=g(),f=qf(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=nyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function LGt(){var t;return t=BGt(),t===e&&(t=Vs(),t===e&&(t=MGt(),t===e&&(t=GGt(),t===e&&(t=kGt(),t===e&&(t=jGt(),t===e&&(t=UGt())))))),t}function BGt(){var t,l,a,u,f,h;if(t=r,l=_r(),l!==e){if(a=[],u=r,f=g(),h=ic(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=g(),h=ic(),h!==e?(f=[f,h],u=f):(r=u,u=e);else a=e;a!==e?(R=t,t=ayt(l,a)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,l=ic(),l!==e){for(a=[],u=r,f=g(),h=ic(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=ic(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=syt(l,a)}else r=t,t=e;return t}function MGt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===61?(u=$,r++):(u=e,T===0&&P(pa)),u===e&&(u=ln()),u!==e?(f=r,h=g(),A=kf(),A===e&&(A=RM()),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=lyt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GGt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Pa(),f!==e?(h=g(),A=C0(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=oyt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kGt(){var t,l,a,u;return t=r,l=r,a=B0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a===e&&(a=nn()),a!==e?(R=t,t=dyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function jGt(){var t,l,a,u,f,h;return t=r,l=r,a=lc(),a!==e?(u=g(),f=vu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=uyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function UGt(){var t,l,a,u,f,h;return t=r,l=r,a=cr(),a!==e?(u=g(),f=vu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=pyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function KGt(){var t,l,a,u,f,h;return t=r,l=r,a=cr(),a!==e?(u=g(),f=cc(),f===e&&(f=vu(),f===e&&(f=zf())),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=E0(),u!==e?(R=t,t=cyt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function FGt(){var t,l,a,u,f,h;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=aZt(),u===e&&(u=Bw()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=cc(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=Kqt(),f===e&&(f=qe(),f===e&&(f=ji())),f!==e?(R=t,t=fyt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function SGt(){var t,l,a,u,f;return t=r,l=r,a=B0(),a!==e?(u=g(),f=cc(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=yyt(l)),t=l,t}function qGt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Sn(),a!==e?(u=g(),f=x0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=fr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=nt(),f!==e){for(h=[],A=r,O=g(),z=N2(),z!==e?(O=[O,z],A=O):(r=A,A=e);A!==e;)h.push(A),A=r,O=g(),z=N2(),z!==e?(O=[O,z],A=O):(r=A,A=e);R=t,t=hyt(l,a,u,f,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function N2(){var t;return t=ZGt(),t===e&&(t=HGt(),t===e&&(t=WGt(),t===e&&(t=x2(),t===e&&(t=$2(),t===e&&(t=L2()))))),t}function ZGt(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=m6t(),a!==e?(R=t,t=myt(l,a)):(r=t,t=e)):(r=t,t=e),t}function HGt(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=K6t(),a!==e?(R=t,t=Tyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function WGt(){var t,l,a,u;return t=r,l=r,a=es(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nn(),a===e&&(a=ry(),a===e&&(a=P0(),a===e&&(a=ml(),a===e&&(a=dc())))),a!==e?(R=t,t=vyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function x2(){var t,l,a,u;return t=r,l=r,a=ln(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=v0(),a!==e?(R=t,t=Eyt(l,a)):(r=t,t=e)):(r=t,t=e),t}function $2(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=od(),a!==e?(R=t,t=byt(l,a)):(r=t,t=e)):(r=t,t=e),t}function L2(){var t,l,a,u,f;return t=r,l=r,a=_r(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=w0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=od(),u!==e?(R=t,t=Ayt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zGt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=Mr(),a!==e?(u=g(),f=x0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=fr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=nt(),f!==e){if(h=[],A=r,O=g(),z=B2(),z!==e?(O=[O,z],A=O):(r=A,A=e),A!==e)for(;A!==e;)h.push(A),A=r,O=g(),z=B2(),z!==e?(O=[O,z],A=O):(r=A,A=e);else h=e;h!==e?(R=t,t=gyt(l,a,u,f,h)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function B2(){var t;return t=Vs(),t===e&&(t=x2(),t===e&&(t=$2(),t===e&&(t=L2()))),t}function JGt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=cr(),a!==e?(u=g(),f=x0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=sr(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=qe(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=fr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=nt(),h!==e?(A=r,O=g(),z=an(),z===e&&(z=Kr()),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=Iyt(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gD(){var t,l,a,u,f,h;return t=r,l=wM(),l!==e?(a=r,u=g(),f=Vn(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=Fn(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Ryt(l,a,u)):(r=t,t=e),t}function ID(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=YGt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=wM(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Qw(),f!==e?(h=g(),A=E6t(),A!==e?(O=g(),f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r0(),f!==e?(R=t,t=Dyt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function YGt(){var t,l,a,u;return t=a3t(),t===e&&(t=r,l=$St(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=wyt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=JM(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Oyt(l)):(r=t,t=e)):(r=t,t=e))),t}function XGt(){var t;return t=QGt(),t===e&&(t=s4t(),t===e&&(t=o4t(),t===e&&(t=p4t(),t===e&&(t=c4t())))),t}function QGt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=D0(),a!==e?(u=r,f=g(),h=fb(),h===e&&(h=_0(),h===e&&(h=n3t())),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=M0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Cyt(a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=D0(),a!==e?(u=r,f=g(),h=M0(),h===e&&(h=mO()),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=JB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=_yt(a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=D0(),a!==e?(u=r,f=g(),h=mO(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Vyt(a,u)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=dO(),a!==e?(u=r,f=g(),h=M0(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=JB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Pyt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function RD(){var t;return t=e4t(),t===e&&(t=t4t(),t===e&&(t=i4t(),t===e&&(t=r4t(),t===e&&(t=n4t())))),t}function e4t(){var t,l;return t=r,l=yu(),l!==e&&(R=t,l=Nyt(l)),t=l,t}function t4t(){var t,l,a,u,f;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=yu(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=xyt(l)),t=l,t}function i4t(){var t,l,a,u,f;return t=r,l=r,a=L0(),a!==e?(u=g(),f=s5t(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=$yt(l)),t=l,t}function r4t(){var t,l,a,u,f;return t=r,l=r,a=L0(),a!==e?(u=g(),f=Hw(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Lyt(l)),t=l,t}function n4t(){var t,l,a,u,f,h;return t=r,l=r,a=U3t(),a!==e?(u=g(),f=DG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=a4t(),a!==e?(R=t,t=Byt(l,a)):(r=t,t=e)):(r=t,t=e),t}function a4t(){var t,l,a,u;return t=nZt(),t===e&&(t=r,l=KG(),l!==e?(a=g(),u=L0(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=L0(),l!==e?(a=g(),u=nSt(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=L0(),l!==e?(a=g(),u=HZt(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e)))),t}function s4t(){var t,l,a,u,f,h;return t=r,l=l4t(),l!==e?(a=r,u=g(),f=M2(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=G2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Myt(l,a,u)):(r=t,t=e),t}function l4t(){var t,l,a,u;return t=UM(),t===e&&(t=r,l=ho(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Gyt(l)):(r=t,t=e)):(r=t,t=e)),t}function o4t(){var t,l,a,u,f,h,A;return t=r,l=d4t(),l!==e?(a=r,u=g(),f=M2(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=u4t(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=G2(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=kyt(l,a,u,f)):(r=t,t=e),t}function d4t(){var t,l,a;return t=wb(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sb(),a!==e?(R=t,t=jyt(a)):(r=t,t=e)):(r=t,t=e)),t}function u4t(){var t,l,a,u,f;return t=r,l=r,a=ln(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=aO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(R=t,t=Uyt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function M2(){var t,l,a,u;return t=r,l=M0(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=Kyt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=mO(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=Fyt(l)):(r=t,t=e)):(r=t,t=e)),t}function p4t(){var t,l,a,u,f;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e?(a=r,u=aO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=qe(),u!==e?(R=t,t=Syt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function c4t(){var t,l,a,u,f,h;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e?(a=r,u=B6t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=aO(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=qe(),f!==e?(R=t,t=qyt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function G2(){var t,l,a,u,f,h,A;return t=r,l=r,a=fo(),a!==e?(u=g(),f=kM(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Zyt(l)),t=l,t===e&&(t=r,l=r,a=fo(),a!==e?(u=g(),f=ts(),f!==e?(h=g(),A=kM(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Hyt(l)),t=l),t}function f4t(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=k2(),a===e&&(a=m4t()),a!==e?(R=t,t=Wyt(a)):(r=t,t=e)):(r=t,t=e),t}function k2(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe;if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=r,u=Wf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=zB(),f===e&&(f=j2()),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=r,h=fr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e)if(h=r,A=U2(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e)if(A=r,O=ln(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e)if(O=v0(),O!==e){for(z=[],Te=r,$e=g(),Xe=NE(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e);Te!==e;)z.push(Te),Te=r,$e=g(),Xe=NE(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e);R=t,t=zyt(a,u,f,h,A,O,z)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=Wf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Wr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=fr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=K2(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=ln(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=rw(),O!==e?(R=t,t=Jyt(a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e))if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=r,u=Wf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=r,f=Wr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e)if(f=r,h=ln(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e)if(h=v0(),h!==e){for(A=[],O=r,z=g(),Te=NE(),Te!==e?(z=[z,Te],O=z):(r=O,O=e);O!==e;)A.push(O),O=r,z=g(),Te=NE(),Te!==e?(z=[z,Te],O=z):(r=O,O=e);R=t,t=Yyt(a,u,f,h,A)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function DD(){var t,l,a,u,f;return t=r,l=y4t(),l!==e?(a=r,u=g(),f=nc(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Xyt(l,a)):(r=t,t=e),t}function y4t(){var t,l,a,u,f;return t=ry(),t===e&&(t=P0(),t===e&&(t=ml(),t===e&&(t=dc(),t===e&&(t=pO(),t===e&&(t=kG(),t===e&&(t=ay(),t===e&&(t=oqt(),t===e&&(t=YZt(),t===e&&(t=Sn(),t===e&&(t=lSt(),t===e&&(t=yc(),t===e&&(t=fc(),t===e&&(t=Li(),t===e&&(t=Cw(),t===e&&(t=r,l=r,a=Mr(),a!==e?(u=g(),f=_b(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Qyt(l)),t=l))))))))))))))),t}function j2(){var t,l,a,u,f,h;return t=r,l=nn(),l!==e?(a=r,u=g(),f=R6t(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=nc(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=eht(l,a,u)):(r=t,t=e),t}function U2(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=nn(),a!==e?(u=g(),f=NZt(),f!==e?(h=g(),A=zr(),A!==e?(O=g(),z=mu(),z!==e?(Te=g(),a=[a,u,f,h,A,O,z,Te],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=tht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=nn(),a!==e?(u=g(),f=rZt(),f!==e?(h=g(),A=zr(),A!==e?(O=g(),z=mu(),z!==e?(Te=g(),a=[a,u,f,h,A,O,z,Te],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=iht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=nn(),a!==e?(u=g(),f=b3t(),f===e&&(f=D6t(),f===e&&(f=Z6t())),f!==e?(h=g(),A=zr(),A!==e?(O=g(),z=mu(),z!==e?(Te=g(),a=[a,u,f,h,A,O,z,Te],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=rht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Ob(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Fn(),a!==e?(R=t,t=nht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=qf(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=aht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=hb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Fn(),a!==e?(R=t,t=sht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=vb(),a!==e?(u=g(),f=fu(),f!==e?(h=g(),A=a5t(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=lht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=vb(),a!==e?(u=g(),f=HG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=oht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Zf(),a===e&&(a=$0(),a===e&&(a=q6t())),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=aKt(),a!==e?(R=t,t=dht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Eb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=uht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=W3t(),a!==e?(u=g(),f=zqt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=kf(),a!==e?(R=t,t=pht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=c6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=cht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=fht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Tu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=yht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=vo(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Fn(),a!==e?(R=t,t=hht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Vn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=Fn(),a!==e?(R=t,t=mht(l,a)):(r=t,t=e)))))))))))))))),t}function K2(){var t,l,a,u,f,h;return t=r,l=r,a=Vn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=r,a=mb(),a!==e?(u=g(),f=Vn(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e)),l!==e?(a=Fn(),a!==e?(R=t,t=Tht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=k0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Fn(),a!==e?(R=t,t=vht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mu(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Fn(),a!==e?(R=t,t=Eht(l,a)):(r=t,t=e)):(r=t,t=e))),t}function NE(){var t;return t=h4t(),t===e&&(t=wD()),t}function h4t(){var t,l,a,u,f;return t=r,l=r,a=_r(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Wf(),u===e&&(u=hw(),u===e&&(u=Qf(),u===e&&(u=Li()))),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=Ww(),u===e&&(u=JE()),u!==e?(R=t,t=bht(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function F2(){var t,l,a,u,f,h,A;return t=r,l=r,a=Wf(),a===e&&(a=hw(),a===e&&(a=Qf(),a===e&&(a=Li()))),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Ww(),u!==e?(f=g(),h=es(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(R=t,t=Aht(l,a)):(r=t,t=e)):(r=t,t=e),t}function wD(){var t,l,a,u,f,h;return t=r,l=r,a=I3t(),a!==e?(u=g(),f=An(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=xE(),a!==e?(R=t,t=ght(l,a)):(r=t,t=e)):(r=t,t=e),t}function m4t(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=rO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=F2(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=zB(),h===e&&(h=j2()),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=fr(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=U2(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=r,z=Pa(),z!==e?(Te=g(),z=[z,Te],O=z):(r=O,O=e),O!==e?(z=v0(),z!==e?(Te=r,$e=g(),Xe=wD(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e),Te===e&&(Te=null),$e=r,Xe=g(),pt=an(),pt===e&&(pt=Kr()),pt!==e?(Xe=[Xe,pt],$e=Xe):(r=$e,$e=e),$e===e&&($e=null),R=t,t=Iht(a,u,f,h,A,O,z,Te,$e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=rO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Wr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=fr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=K2(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=Pa(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=rw(),O!==e?(R=t,t=Rht(a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=rO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=F2(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=Wr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=Pa(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=v0(),A!==e?(O=r,z=g(),Te=wD(),Te!==e?(z=[z,Te],O=z):(r=O,O=e),O===e&&(O=null),z=r,Te=g(),$e=an(),$e===e&&($e=Kr()),$e!==e?(Te=[Te,$e],z=Te):(r=z,z=e),z===e&&(z=null),R=t,t=Dht(a,u,f,h,A,O,z)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function xE(){var t,l,a,u,f;return t=r,l=zf(),l!==e?(a=r,u=g(),f=qe(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=wht(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=O6t(),l!==e&&(R=t,l=Oht(l)),t=l,t===e&&(t=r,l=T4t(),l!==e&&(R=t,l=Cht(l)),t=l,t===e&&(t=r,l=qe(),l!==e&&(R=t,l=_ht(l)),t=l))),t}function T4t(){var t,l;return t=r,l=SM(),l===e&&(l=bw(),l===e&&(l=WG())),l!==e&&(R=t,l=Vht(l)),t=l,t}function Bf(){var t;return t=QD(),t===e&&(t=qe()),t}function S2(){var t,l,a,u;return t=v4t(),t===e&&(t=w4t(),t===e&&(t=C4t(),t===e&&(t=_4t(),t===e&&(t=N4t(),t===e&&(t=E4t(),t===e&&(t=A4t(),t===e&&(t=b4t(),t===e&&(t=r,l=g4t(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Pht(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=$4t(),t===e&&(t=B4t(),t===e&&(t=G4t(),t===e&&(t=Y2(),t===e&&(t=r,l=k4t(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Nht(l)):(r=t,t=e)):(r=t,t=e)))))))))))))),t}function v4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=r,f=g(),h=$E(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=xht(l,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=$E()),t}function E4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=r,f=g(),h=H2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=$ht(l,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=H2()),t}function b4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=r,f=g(),h=z2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Lht(l,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=z2()),t}function A4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=r,f=g(),h=W2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Bht(l,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=W2()),t}function g4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=r,f=g(),h=J2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=qe(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Mht(l,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=J2()),t}function $E(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=D0(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=I4t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=pl(),u!==e?(f=r,h=g(),A=R4t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=ho(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(R=t,t=Ght(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function I4t(){var t,l,a,u;return t=r,l=xFt(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=kht(l)):(r=t,t=e)):(r=t,t=e),t}function R4t(){var t,l,a,u,f,h,A,O;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=i3t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=j0(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=D4t(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=ny(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=pl(),A!==e?(R=t,t=jht(a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function D4t(){var t,l;return t=r,l=XSt(),l!==e&&(R=t,l=Uht(l)),t=l,t}function w4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=OSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(u=r,f=g(),h=_n(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=O4t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Kht(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function O4t(){var t,l,a,u;return t=r,l=r,a=sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(R=t,t=Fht(l,a)):(r=t,t=e)):(r=t,t=e),t}function C4t(){var t,l,a,u;return t=r,l=r,a=Li(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=TKt(),a!==e?(R=t,t=Sht(l,a)):(r=t,t=e)):(r=t,t=e),t}function OD(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=qe(),u===e&&(u=A0(),u===e&&(u=nc(),u===e&&(u=PUt()))),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===61?(u=$,r++):(u=e,T===0&&P(pa)),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=qht(a,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=r,u=qe(),u===e&&(u=nc()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===61?(u=$,r++):(u=e,T===0&&P(pa)),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Zht(a,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function _4t(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=V4t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e){for(a=[],u=r,f=q2(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=q2(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e);u=r,f=P4t(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=ho(),h!==e?(A=g(),O=Yf(),O!==e?(h=[h,A,O],f=h):(r=f,f=e)):(r=f,f=e),f!==e?(R=t,t=Hht(l,a,u,f)):(r=t,t=e)}else r=t,t=e;return t}function V4t(){var t,l,a,u,f,h;return t=r,l=r,a=Yf(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=vt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=ny(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=pl(),f!==e?(R=t,t=Wht(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function q2(){var t,l,a,u,f,h;return t=r,l=r,a=qSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=vt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=ny(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=pl(),f!==e?(R=t,t=zht(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function P4t(){var t,l,a,u;return t=r,l=r,a=Dw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=pl(),a!==e?(R=t,t=Jht(l,a)):(r=t,t=e)):(r=t,t=e),t}function N4t(){var t,l,a,u,f,h,A,O,z,Te;if(t=r,l=Tw(),l!==e){if(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=[],f=r,h=g(),A=Z2(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)for(;f!==e;)u.push(f),f=r,h=g(),A=Z2(),A!==e?(h=[h,A],f=h):(r=f,f=e);else u=e;u!==e?(f=r,h=g(),A=x4t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=ho(),O!==e?(z=g(),Te=Tw(),Te!==e?(A=[A,O,z,Te],h=A):(r=h,h=e)):(r=h,h=e),h!==e?(R=t,t=Yht(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function Z2(){var t,l,a,u,f,h,A;return t=r,l=j0(),l!==e?(a=r,u=g(),f=vt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=ny(),u!==e?(f=r,h=g(),A=pl(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Xht(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function x4t(){var t,l,a,u,f;return t=r,l=Dw(),l!==e?(a=r,u=g(),f=pl(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Qht(l,a)):(r=t,t=e)):(r=t,t=e),t}function H2(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=wG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=pl(),a!==e?(u=r,f=g(),h=ho(),h!==e?(A=g(),O=wG(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=e0t(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function W2(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=UG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=pl(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=l4(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=vt(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=ho(),A!==e?(O=g(),z=UG(),z!==e?(A=[A,O,z],h=A):(r=h,h=e)):(r=h,h=e),h!==e?(R=t,t=t0t(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function z2(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=y4(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=vt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=yb(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=pl(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=ho(),A!==e?(O=g(),z=y4(),z!==e?(A=[A,O,z],h=A):(r=h,h=e)):(r=h,h=e),h!==e?(R=t,t=i0t(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function J2(){var t,l,a,u,f,h,A,O,z,Te,$e;return t=r,l=r,a=es(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=zr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=od(),h===e&&(h=ld()),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=yb(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=r,O=pl(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e?(O=r,z=ho(),z!==e?(Te=g(),$e=es(),$e!==e?(z=[z,Te,$e],O=z):(r=O,O=e)):(r=O,O=e),O!==e?(R=t,t=r0t(l,a,u,f,h,A,O)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $4t(){var t,l,a,u,f;return t=r,l=L4t(),l!==e?(a=r,u=g(),f=qe(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=n0t(l,a)):(r=t,t=e),t}function L4t(){var t,l,a,u;return t=Y3t(),t===e&&(t=r,l=FFt(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=a0t(l)):(r=t,t=e)):(r=t,t=e)),t}function B4t(){var t,l,a,u,f;return t=r,l=M4t(),l!==e?(a=r,u=g(),f=qe(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=s0t(l,a)):(r=t,t=e),t}function M4t(){var t,l,a,u;return t=F3t(),t===e&&(t=r,l=FM(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=l0t(l)):(r=t,t=e)):(r=t,t=e)),t}function G4t(){var t,l,a,u;return t=r,l=r,a=WFt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=m0(),a!==e?(R=t,t=o0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function Y2(){var t,l,a,u,f;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=iO(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=vt(),u!==e?(R=t,t=d0t(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=iO(),a!==e?(R=t,t=u0t(a)):(r=t,t=e)):(r=t,t=e)),t}function k4t(){var t,l,a,u,f;return t=r,l=BG(),l!==e?(a=r,u=g(),f=j4t(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=p0t(l,a)):(r=t,t=e),t}function j4t(){var t,l,a,u,f,h;return t=r,l=r,a=ha(),a!==e?(u=g(),f=mqt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=ji(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=c0t(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function CD(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=Cw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=U4t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=vt(),u!==e?(f=r,h=g(),A=K4t(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=F4t(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),R=t,t=f0t(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e),t}function U4t(){var t,l,a,u;return t=r,l=_0(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=y0t(l)):(r=t,t=e)):(r=t,t=e),t}function K4t(){var t,l,a,u;return t=r,l=r,a=dd(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Wr(),a!==e?(R=t,t=h0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function F4t(){var t,l,a,u;return t=r,l=r,a=ha(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=HB(),a!==e?(R=t,t=m0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function S4t(){var t;return t=q4t(),t===e&&(t=Z4t(),t===e&&(t=H4t(),t===e&&(t=W4t()))),t}function q4t(){var t,l,a,u,f,h,A;return t=r,l=r,a=_M(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=vt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=mr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=qe(),h!==e?(R=t,t=T0t(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Z4t(){var t,l,a,u,f;return t=r,l=r,a=LSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qf(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=qe(),u!==e?(R=t,t=v0t(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function H4t(){var t,l,a,u,f,h;return t=r,l=r,a=o4(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=dd(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=ji(),f!==e?(R=t,t=E0t(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=o4(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a===e&&(a=null),R=t,t=b0t(l,a)):(r=t,t=e)),t}function W4t(){var t,l,a,u;return t=r,l=r,a=A6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=z4t(),a===e&&(a=J4t(),a===e&&(a=nt())),a!==e?(R=t,t=A0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function z4t(){var t,l,a,u,f,h;return t=r,l=r,a=nt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=X2(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=g0t(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function J4t(){var t,l,a,u,f;return t=r,l=r,a=g(),u=nt(),u!==e?(a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=g(),f=LUt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=I0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function X2(){var t,l;return t=r,l=cl(),l!==e&&(R=t,l=R0t(l)),t=l,t===e&&(t=fl()),t}function Y4t(){var t;return t=X4t(),t===e&&(t=Q4t(),t===e&&(t=ekt(),t===e&&(t=rkt(),t===e&&(t=nkt(),t===e&&(t=akt(),t===e&&(t=skt(),t===e&&(t=lkt(),t===e&&(t=okt(),t===e&&(t=dkt(),t===e&&(t=ukt(),t===e&&(t=pkt()))))))))))),t}function X4t(){var t,l,a,u,f,h;return t=r,l=r,a=Sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Q2(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=nt(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=Ya(),f!==e?(R=t,t=D0t(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Q4t(){var t,l,a,u,f,h;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Q2(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=nt(),f!==e?(R=t,t=w0t(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Q2(){var t;return t=GM(),t===e&&(t=FG(),t===e&&(t=NFt())),t}function ekt(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe;if(t=r,l=r,a=Sn(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=ya(),u!==e?(f=g(),h=is(),h!==e?(A=g(),u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=null),u=r,f=Ls(),f!==e?(h=g(),A=lb(),A!==e?(O=g(),z=x0(),z!==e?(Te=g(),f=[f,h,A,O,z,Te],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e)if(f=r,h=Ja(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=qe(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e)if(A=r,O=fr(),O!==e?(z=g(),O=[O,z],A=O):(r=A,A=e),A!==e)if(O=nt(),O!==e){if(z=[],Te=r,$e=g(),Xe=eB(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e),Te!==e)for(;Te!==e;)z.push(Te),Te=r,$e=g(),Xe=eB(),Xe!==e?($e=[$e,Xe],Te=$e):(r=Te,Te=e);else z=e;z!==e?(R=t,t=O0t(l,a,u,f,h,A,O,z)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function eB(){var t;return t=tkt(),t===e&&(t=ikt()),t}function tkt(){var t,l,a,u,f,h;return t=r,l=r,a=Wf(),a!==e?(u=g(),f=ln(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=FB(),a!==e?(R=t,t=C0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function ikt(){var t,l,a,u,f,h;return t=r,l=r,a=sG(),a!==e?(u=g(),f=ha(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=co(),a!==e?(R=t,t=_0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function rkt(){var t,l,a,u,f,h,A,O,z,Te;return t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Ls(),u!==e?(f=g(),h=lb(),h!==e?(A=g(),O=x0(),O!==e?(z=g(),u=[u,f,h,A,O,z],a=u):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a!==e?(u=r,f=sr(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=r,h=qe(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=r,A=fr(),A!==e?(O=g(),A=[A,O],h=A):(r=h,h=e),h!==e?(A=nt(),A!==e?(R=t,t=V0t(l,a,u,f,h,A)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=cr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=nn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=Ls(),f!==e?(h=g(),A=lb(),A!==e?(O=g(),z=b6t(),z!==e?(Te=g(),f=[f,h,A,O,z,Te],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e?(f=r,h=fr(),h!==e?(A=g(),h=[h,A],f=h):(r=f,f=e),f!==e?(h=nt(),h!==e?(R=t,t=P0t(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function nkt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=i6t(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=sd(),a!==e?(R=t,t=N0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function akt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=w6t(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=sd(),u!==e?(R=t,t=x0t(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function skt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=kFt(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=nt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=sd(),u!==e?(R=t,t=$0t(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function lkt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=GM(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=nt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=sd(),u!==e?(R=t,t=L0t(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function okt(){var t,l,a,u,f,h;return t=r,l=r,a=Mr(),a!==e?(u=g(),f=FG(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=nt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=sd(),u!==e?(R=t,t=B0t(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dkt(){var t,l,a,u,f,h;return t=r,l=r,a=PFt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=vt(),a!==e?(u=r,f=g(),h=_Kt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=M0t(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function ukt(){var t,l,a,u,f,h;return t=r,l=r,a=s3t(),a!==e?(u=g(),f=fu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=c0(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=Ya(),f!==e?(h=g(),f=[f,h],u=f):(r=u,u=e),u!==e?(f=WE(),f!==e?(R=t,t=G0t(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pkt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,a=eqt(),a!==e?(u=g(),f=fu(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=r,u=dd(),u===e&&(u=o6t()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e)if(u=nt(),u!==e){for(f=r,h=g(),A=Mf(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=[],A=r,O=g(),z=tB(),z!==e?(O=[O,z],A=O):(r=A,A=e);A!==e;)h.push(A),A=r,O=g(),z=tB(),z!==e?(O=[O,z],A=O):(r=A,A=e);R=t,t=k0t(l,a,u,f,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function tB(){var t;return t=cE(),t===e&&(t=M1(),t===e&&(t=Ya(),t===e&&(t=ckt(),t===e&&(t=FL(),t===e&&(t=c0()))))),t}function ckt(){var t,l,a,u,f,h;return t=r,l=r,a=Pa(),a!==e?(u=g(),f=f3t(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=jB(),a!==e?(R=t,t=j0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function LE(){var t,l,a,u;return t=r,l=r,a=_r(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=tw(),a!==e?(R=t,t=U0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function _D(){var t,l,a,u,f,h;return t=r,l=r,a=nt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=vt(),h===e&&(h=RM()),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=K0t(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=nt(),l!==e&&(R=t,l=F0t(l)),t=l),t}function iB(){var t,l,a,u;return t=r,l=r,a=zw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=OUt(),a!==e?(R=t,t=S0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function VD(){var t,l,a,u;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=q0t(l,a)):(r=t,t=e)):(r=t,t=e),t}function fkt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=nt(),a!==e?(u=r,f=g(),h=tw(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=Z0t(a,u)):(r=t,t=e)):(r=t,t=e),t}function ykt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e)if(a=PD(),a!==e){for(u=[],f=r,h=g(),s.charCodeAt(r)===44?(A=b,r++):(A=e,T===0&&P(We)),A!==e?(O=g(),z=PD(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),s.charCodeAt(r)===44?(A=b,r++):(A=e,T===0&&P(We)),A!==e?(O=g(),z=PD(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);R=t,t=H0t(a,u)}else r=t,t=e;else r=t,t=e;return t}function PD(){var t,l,a;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=hkt(),a!==e?(R=t,t=W0t(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=mkt(),a!==e?(R=t,t=z0t(a)):(r=t,t=e)):(r=t,t=e)),t}function hkt(){var t,l,a,u,f;return t=r,l=e4(),l===e&&(l=r,a=U0(),a!==e?(u=g(),f=z6t(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)),l!==e&&(R=t,l=J0t(l)),t=l,t}function mkt(){var t,l,a,u,f,h;return t=r,l=r,a=rB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===61?(a=$,r++):(a=e,T===0&&P(pa)),a!==e?(u=r,f=g(),h=nB(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Y0t(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=rB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=nB(),a!==e?(R=t,t=X0t(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=dO(),a!==e?(u=g(),f=M0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Q0t(l)),t=l)),t}function rB(){var t,l,a,u,f,h,A;return t=LFt(),t===e&&(t=VM(),t===e&&(t=MFt(),t===e&&(t=r,l=r,a=sn(),a!==e?(u=g(),f=Sf(),f!==e?(h=g(),A=Li(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=emt(l)),t=l,t===e&&(t=r,l=r,a=Sf(),a!==e?(u=g(),f=Li(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=tmt(l)),t=l,t===e&&(t=eSt(),t===e&&(t=r,l=r,a=sn(),a!==e?(u=g(),f=yo(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=imt(l)),t=l,t===e&&(t=yo(),t===e&&(t=jM(),t===e&&(t=ub(),t===e&&(t=pb(),t===e&&(t=r,l=r,a=fu(),a!==e?(u=g(),f=XM(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=rmt(l)),t=l,t===e&&(t=r,l=r,a=Na(),a!==e?(u=g(),f=XM(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=nmt(l)),t=l,t===e&&(t=VSt(),t===e&&(t=zSt(),t===e&&(t=JSt(),t===e&&(t=iG(),t===e&&(t=L3t(),t===e&&(t=Z3t(),t===e&&(t=uqt(),t===e&&(t=Iqt(),t===e&&(t=u6t(),t===e&&(t=$G(),t===e&&(t=H6t(),t===e&&(t=qG(),t===e&&(t=gZt(),t===e&&(t=IZt(),t===e&&(t=RZt(),t===e&&(t=Tu(),t===e&&(t=Cb(),t===e&&(t=cO())))))))))))))))))))))))))))))),t}function nB(){var t;return t=ji(),t===e&&(t=fa(),t===e&&(t=qe(),t===e&&(t=kB(),t===e&&(t=sn(),t===e&&(t=eG(),t===e&&(t=Pw(),t===e&&(t=sSt(),t===e&&(t=N6t(),t===e&&(t=aSt(),t===e&&(t=ts(),t===e&&(t=Tb(),t===e&&(t=gG(),t===e&&(t=QM(),t===e&&(t=_G())))))))))))))),t}function BE(){var t,l,a,u,f,h,A;if(t=r,l=r,a=aB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=f0(),a!==e){for(u=[],f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=amt(l,a,u)}else r=t,t=e;return t}function Tkt(){var t,l,a,u,f,h,A;if(t=r,l=r,a=aB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=oB(),a===e&&(a=r,u=ND(),u!==e?(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=a,a=smt(l,u)):(r=a,a=e)):(r=a,a=e)),a!==e){for(u=[],f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=uu(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=lmt(l,a,u)}else r=t,t=e;return t}function aB(){var t,l,a,u,f;return t=r,l=cu(),l!==e?(a=r,u=g(),f=qe(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=omt(l,a)):(r=t,t=e),t}function uu(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=yu(),a===e&&(a=r,u=Zi(),u!==e?(f=g(),h=yu(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=r,u=V0(),u!==e?(f=g(),h=_0(),h===e&&(h=fb()),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e))),a!==e?(R=t,t=dmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=ts(),u!==e?(f=g(),h=Qf(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=r,u=Zi(),u!==e?(f=g(),h=d4(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e)),a!==e?(R=t,t=umt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=pu(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=Zi(),u!==e?(f=g(),h=tG(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a!==e?(R=t,t=pmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=pu(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=tG(),a!==e?(R=t,t=cmt(a)):(r=t,t=e)):(r=t,t=e)))),t}function f0(){var t,l,a;return t=ND(),t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=Akt(),a!==e?(R=t,t=fmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=gkt(),t===e&&(t=ME(),t===e&&(t=Lkt(),t===e&&(t=fB(),t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=vkt(),a!==e?(R=t,t=ymt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Ekt(),a!==e?(R=t,t=hmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Ya(),a!==e?(R=t,t=mmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=bkt(),a!==e?(R=t,t=Tmt(a)):(r=t,t=e)):(r=t,t=e)))))))))),t}function vkt(){var t;return t=kkt(),t===e&&(t=cB(),t===e&&(t=Pkt(),t===e&&(t=Ikt()))),t}function Ekt(){var t;return t=Dkt(),t===e&&(t=wkt(),t===e&&(t=Okt(),t===e&&(t=sB(),t===e&&(t=_kt())))),t}function bkt(){var t;return t=sB(),t===e&&(t=Vkt(),t===e&&(t=Nkt(),t===e&&(t=iB()))),t}function ND(){var t,l,a,u,f,h;if(t=r,l=r,a=Zi(),a!==e?(u=g(),f=To(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e){for(a=[],u=r,f=g(),h=Ps(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),a.length>=1?u=e:(u=r,f=g(),h=Ps(),h!==e?(f=[f,h],u=f):(r=u,u=e));R=t,t=vmt(l,a)}else r=t,t=e;return t}function Akt(){var t,l;return t=r,l=To(),l!==e&&(R=t,l=Emt(l)),t=l,t}function gkt(){var t,l,a,u,f;return t=r,l=sn(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=bmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Ikt(){var t,l;return t=r,l=Rkt(),l!==e&&(R=t,l=Amt(l)),t=l,t}function Rkt(){var t,l,a,u;return t=r,l=BFt(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=gmt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=VM(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Imt(l)):(r=t,t=e)):(r=t,t=e)),t}function Dkt(){var t,l,a,u,f;return t=r,l=jM(),l!==e?(a=r,u=g(),f=ji(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Rmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function ME(){var t,l,a,u,f;return t=r,l=yo(),l!==e?(a=r,u=g(),f=qe(),f===e&&(f=ji()),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Dmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function wkt(){var t,l;return t=r,l=c4(),l===e&&(l=bG()),l!==e&&(R=t,l=wmt(l)),t=l,t}function Okt(){var t,l,a,u;return t=r,l=r,a=iSt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Pw(),a===e&&(a=eG(),a===e&&(a=sn())),a!==e?(R=t,t=Omt(l,a)):(r=t,t=e)):(r=t,t=e),t}function sB(){var t,l,a,u;return t=r,l=r,a=Cb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Ckt(),a===e&&(a=lB()),a!==e?(R=t,t=Cmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Ckt(){var t,l,a,u;return t=r,l=QM(),l===e&&(l=_G()),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=_mt(l)):(r=t,t=e)):(r=t,t=e),t}function lB(){var t,l,a,u;return t=r,l=v6t(),l===e&&(l=mb(),l===e&&(l=o3t(),l===e&&(l=lqt(),l===e&&(l=sn())))),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Vmt(l)):(r=t,t=e)):(r=t,t=e),t}function _kt(){var t,l,a,u,f,h;return t=r,l=iG(),l===e&&(l=qG()),l!==e?(a=r,u=g(),s.charCodeAt(r)===61?(f=$,r++):(f=e,T===0&&P(pa)),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=ji(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=Pmt(l,a,u)):(r=t,t=e)):(r=t,t=e),t}function Vkt(){var t,l,a,u;return t=r,l=r,a=ub(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qe(),a===e&&(a=l0()),a!==e?(R=t,t=Nmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Pkt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Hf(),a!==e?(u=g(),f=R0(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),a=mr(),a!==e?(u=r,f=g(),h=od(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=DZt(),A===e&&(A=p4()),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=xmt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function Nkt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Hf(),a!==e?(u=g(),f=R0(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=Hf(),a!==e?(u=g(),f=An(),f!==e?(h=g(),A=sn(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)),l!==e?(a=r,u=g(),f=mr(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=xkt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=SB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=$mt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xkt(){var t,l;return t=r,l=Jf(),l!==e&&(R=t,l=Lmt(l)),t=l,t}function oB(){var t,l,a;return t=$kt(),t===e&&(t=jkt(),t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=Gkt(),a!==e?(R=t,t=Bmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=cB(),a!==e?(R=t,t=Mmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Kkt(),a!==e?(R=t,t=Gmt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Fkt(),a!==e?(R=t,t=kmt(a)):(r=t,t=e)):(r=t,t=e)))))),t}function $kt(){var t,l,a,u,f,h,A;if(t=r,l=r,a=Yw(),a!==e?(u=g(),f=hl(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e)if(a=T0(),a===e&&(a=dB()),a!==e){for(u=[],f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=jmt(l,a,u)}else r=t,t=e;else r=t,t=e;return t}function Lkt(){var t,l,a,u,f,h,A;if(t=r,l=Bkt(),l!==e){for(a=r,u=g(),f=Mkt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=[],f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Umt(l,a,u)}else r=t,t=e;return t}function Bkt(){var t,l,a,u;return t=r,l=Yw(),l!==e?(a=g(),u=hl(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=hl(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Kmt(l)):(r=t,t=e)):(r=t,t=e)),t}function Mkt(){var t,l,a,u;return t=r,l=k1(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Fmt(l)):(r=t,t=e)):(r=t,t=e),t}function dB(){var t,l,a,u,f,h;return t=r,l=r,a=ha(),a!==e?(u=g(),f=Na(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=Smt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Gkt(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=pB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=uB(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Kn(),u===e&&(u=dB()),u!==e){for(f=[],h=r,A=g(),O=Ps(),O===e&&(O=po()),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=Ps(),O===e&&(O=po()),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=qmt(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function kkt(){var t,l,a,u,f,h,A;if(t=r,l=pB(),l!==e){for(a=r,u=g(),f=uB(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=[],f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=Ps(),A===e&&(A=po()),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=Zmt(l,a,u)}else r=t,t=e;return t}function uB(){var t,l,a,u,f,h,A;return t=r,l=r,a=pc(),a!==e?(u=g(),f=xs(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=pc(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=xs(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)),l!==e&&(R=t,l=Hmt(l)),t=l,t}function pB(){var t,l,a,u,f;return t=r,l=r,a=fO(),a!==e?(u=g(),f=Na(),f===e&&(f=hl()),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=fO()),l!==e&&(R=t,l=Wmt(l)),t=l,t}function cB(){var t,l,a,u,f,h,A;if(t=r,l=w0(),l!==e)if(a=r,u=g(),f=od(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e){for(u=[],f=r,h=g(),A=Ps(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),u.length>=1?f=e:(f=r,h=g(),A=Ps(),A!==e?(h=[h,A],f=h):(r=f,f=e));R=t,t=zmt(l,a,u)}else r=t,t=e;else r=t,t=e;return t}function jkt(){var t,l,a,u,f,h,A;return t=r,l=r,a=vb(),a!==e?(u=g(),f=hl(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,u=qe(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Kn(),u!==e?(f=r,h=g(),A=fB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Jmt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fB(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=kG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=nt(),a!==e){for(u=r,f=g(),h=Kn(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),f=[],h=r,A=g(),O=yB(),O===e&&(O=hB()),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=yB(),O===e&&(O=hB()),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=Ymt(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function yB(){var t,l,a,u,f,h,A;return t=r,l=r,a=fr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=ml(),u===e&&(u=dc()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=Ukt(),u!==e?(f=r,h=g(),A=Kn(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=Xmt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hB(){var t,l,a,u;return t=r,l=r,a=kw(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Nw(),a===e&&(a=f6t(),a===e&&(a=lZt())),a!==e?(R=t,t=Qmt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Ukt(){var t,l,a,u,f;return t=r,l=Kr(),l===e&&(l=an(),l===e&&(l=r,a=Li(),a!==e?(u=g(),f=To(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=ts(),a!==e?(u=g(),f=CFt(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=Li(),a!==e?(u=g(),f=sn(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e))))),l!==e&&(R=t,l=eTt(l)),t=l,t}function Kkt(){var t,l,a,u,f;return t=r,l=r,a=Na(),a===e&&(a=hl()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Kn(),a!==e?(R=t,t=tTt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=oG(),a===e&&(a=YG()),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=Na(),u===e&&(u=hl()),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=Kn(),u!==e?(R=t,t=iTt(l,a,u)):(r=t,t=e)):(r=t,t=e)),t}function Fkt(){var t,l,a,u,f,h,A,O;if(t=r,l=r,a=Ow(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=r,u=bE(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=gUt(),u!==e){for(f=[],h=r,A=g(),O=po(),O===e&&(O=ad()),O!==e?(A=[A,O],h=A):(r=h,h=e);h!==e;)f.push(h),h=r,A=g(),O=po(),O===e&&(O=ad()),O!==e?(A=[A,O],h=A):(r=h,h=e);R=t,t=rTt(l,a,u,f)}else r=t,t=e;else r=t,t=e;return t}function xD(){var t,l,a,u,f,h;return t=r,l=fE(),l!==e?(a=r,u=g(),f=_r(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=GE(),u===e&&(u=h0()),u!==e?(R=t,t=nTt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ps(){var t,l,a,u,f,h;return t=r,l=r,a=fr(),a!==e?(u=g(),f=KM(),f!==e?(h=g(),a=[a,u,f,h],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=wb(),a===e&&(a=sb(),a===e&&(a=Vw(),a===e&&(a=Xf(),a===e&&(a=is())))),a!==e?(R=t,t=aTt(l,a)):(r=t,t=e)):(r=t,t=e),t}function po(){var t;return t=GL(),t===e&&(t=LE(),t===e&&(t=Skt())),t}function Skt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=ha(),a!==e?(u=g(),f=Na(),f!==e?(h=g(),A=Tu(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=qe(),a!==e?(R=t,t=sTt(l,a)):(r=t,t=e)):(r=t,t=e),t}function _n(){var t,l,a,u,f,h,A,O,z,Te;if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=$D(),a!==e){if(u=[],f=r,h=g(),A=mB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)for(;f!==e;)u.push(f),f=r,h=g(),A=mB(),A!==e?(h=[h,A],f=h):(r=f,f=e);else u=e;u!==e?(R=t,t=lTt(a,u)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=$D(),a!==e?(u=r,f=g(),h=U0(),h===e&&(h=_r()),h!==e?(A=g(),O=hc(),O!==e?(z=g(),Te=TO(),Te!==e?(f=[f,h,A,O,z,Te],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e?(R=t,t=oTt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=$D())),t}function mB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===91?(l=j,r++):(l=e,T===0&&P(e0)),l!==e?(a=r,u=g(),f=_s(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===93?(u=F,r++):(u=e,T===0&&P(t0)),u!==e?(R=t,t=dTt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===91?(l=j,r++):(l=e,T===0&&P(e0)),l!==e?(a=r,u=g(),f=fa(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===93?(u=F,r++):(u=e,T===0&&P(t0)),u!==e?(R=t,t=uTt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function $D(){var t,l,a,u;return t=r,l=r,a=EB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=RUt(),a!==e?(R=t,t=pTt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=TB(),a===e&&(a=vB(),a===e&&(a=qkt())),a!==e?(R=t,t=cTt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=EB(),l!==e&&(R=t,l=fTt(l)),t=l)),t}function TB(){var t,l,a,u,f;return t=r,l=mw(),l!==e?(a=r,u=g(),f=LD(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=yTt(l,a)):(r=t,t=e),t}function vB(){var t,l,a,u,f;return t=r,l=t4(),l!==e?(a=r,u=g(),f=LD(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=hTt(l,a)):(r=t,t=e),t}function qkt(){var t,l,a,u,f;return t=r,l=Vn(),l!==e?(a=r,u=g(),f=LD(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=mTt(l,a)):(r=t,t=e)):(r=t,t=e),t}function LD(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===60?(l=K,r++):(l=e,T===0&&P(tE)),l!==e?(a=r,u=g(),f=RKt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===62?(u=Y,r++):(u=e,T===0&&P(iE)),u!==e?(R=t,t=TTt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function BD(){var t;return t=Zkt(),t===e&&(t=Hkt()),t}function Zkt(){var t,l,a,u,f,h,A;if(t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e)if(a=_n(),a!==e){for(u=[],f=r,h=g(),A=f0(),A!==e?(h=[h,A],f=h):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=f0(),A!==e?(h=[h,A],f=h):(r=f,f=e);R=t,t=vTt(l,a,u)}else r=t,t=e;else r=t,t=e;return t}function Hkt(){var t,l,a,u,f,h;if(t=r,l=_n(),l!==e){for(a=[],u=r,f=g(),h=f0(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=f0(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=ETt(l,a)}else r=t,t=e;return t}function Wkt(){var t,l,a,u,f;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=Vn(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=Mf(),u!==e?(R=t,t=bTt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function EB(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=zkt(),a!==e?(R=t,t=ATt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Jkt(),a!==e?(R=t,t=gTt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Ykt(),a!==e?(R=t,t=ITt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Qkt(),a!==e?(R=t,t=RTt(a)):(r=t,t=e)):(r=t,t=e)))),t}function zkt(){var t,l,a,u,f;return t=BM(),t===e&&(t=ZFt(),t===e&&(t=A3t(),t===e&&(t=ey(),t===e&&(t=Lw(),t===e&&(t=wZt(),t===e&&(t=cb(),t===e&&(t=gw(),t===e&&(t=hc(),t===e&&(t=uO(),t===e&&(t=TG(),t===e&&(t=M3t(),t===e&&(t=JG(),t===e&&(t=vG(),t===e&&(t=NM(),t===e&&(t=a4(),t===e&&(t=qFt(),t===e&&(t=Zw(),t===e&&(t=WM(),t===e&&(t=xM(),t===e&&(t=jFt(),t===e&&(t=m3t(),t===e&&(t=r,l=r,a=OM(),a!==e?(u=g(),f=vo(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=DTt(l)),t=l)))))))))))))))))))))),t}function Jkt(){var t,l,a,u,f;return t=MM(),t===e&&(t=BM(),t===e&&(t=UFt(),t===e&&(t=UZt(),t===e&&(t=pqt(),t===e&&(t=aqt(),t===e&&(t=$M(),t===e&&(t=QZt(),t===e&&(t=cb(),t===e&&(t=gw(),t===e&&(t=hc(),t===e&&(t=uO(),t===e&&(t=xb(),t===e&&(t=QFt(),t===e&&(t=Vqt(),t===e&&(t=e5t(),t===e&&(t=Wqt(),t===e&&(t=KZt(),t===e&&(t=BZt(),t===e&&(t=fqt(),t===e&&(t=sqt(),t===e&&(t=Zw(),t===e&&(t=Pw(),t===e&&(t=WM(),t===e&&(t=DSt(),t===e&&(t=TG(),t===e&&(t=vG(),t===e&&(t=JG(),t===e&&(t=a4(),t===e&&(t=cqt(),t===e&&(t=NM(),t===e&&(t=h3t(),t===e&&(t=r,l=r,a=Rw(),a!==e?(u=g(),f=LG(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=wTt(l)),t=l,t===e&&(t=r,l=r,a=hO(),a!==e?(u=g(),f=Sf(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=OTt(l)),t=l,t===e&&(t=r,l=r,a=_qt(),a!==e?(u=g(),f=Sf(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=CTt(l)),t=l,t===e&&(t=Rw(),t===e&&(t=P6t(),t===e&&(t=LM(),t===e&&(t=Lw(),t===e&&(t=rG(),t===e&&(t=Li())))))))))))))))))))))))))))))))))))))))),t}function Ykt(){var t,l,a,u,f;return t=r,l=r,a=LM(),a!==e?(u=g(),f=hO(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=_Tt(l)),t=l,t===e&&(t=r,l=r,a=Sf(),a!==e?(u=g(),f=hO(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=VTt(l)),t=l,t===e&&(t=r,l=r,a=Rw(),a!==e?(u=g(),f=LG(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=PTt(l)),t=l,t===e&&(t=Xkt(),t===e&&(t=ab(),t===e&&(t=dw()))))),t}function Xkt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=ey(),a!==e?(u=g(),f=ZE(),f!==e?(h=g(),A=ln(),A!==e?(O=g(),z=ZE(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=NTt(l)),t=l,t===e&&(t=r,l=r,a=ey(),a!==e?(u=g(),f=ZE(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=xTt(l)),t=l,t===e&&(t=ey())),t}function Qkt(){var t,l,a,u,f,h;if(t=r,l=ab(),l!==e){for(a=[],u=r,f=g(),h=ab(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=ab(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=$Tt(l,a)}else r=t,t=e;return t}function vt(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=bB(),a!==e?(R=t,t=LTt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=ijt(),a!==e?(R=t,t=BTt(a)):(r=t,t=e)):(r=t,t=e)),t}function bB(){var t,l,a;return t=r,l=tjt(),l!==e?(a=ejt(),a===e&&(a=null),R=t,t=MTt(l,a)):(r=t,t=e),t}function ejt(){var t,l,a,u,f;return t=r,l=g(),s.substr(r,2)===ie?(a=ie,r+=2):(a=e,T===0&&P(w$)),a!==e?(u=g(),f=bB(),f!==e?(R=t,t=GTt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t}function tjt(){var t,l,a,u,f,h,A,O;if(t=r,l=MD(),l!==e){for(a=[],u=r,f=g(),h=ya(),h===e&&(s.substr(r,2)===ee?(h=ee,r+=2):(h=e,T===0&&P(i0))),h!==e?(A=g(),O=MD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=ya(),h===e&&(s.substr(r,2)===ee?(h=ee,r+=2):(h=e,T===0&&P(i0))),h!==e?(A=g(),O=MD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=kTt(l,a)}else r=t,t=e;return t}function MD(){var t,l,a,u,f,h,A,O;if(t=r,l=GD(),l!==e){for(a=[],u=r,f=g(),h=m4(),h!==e?(A=g(),O=GD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=m4(),h!==e?(A=g(),O=GD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=jTt(l,a)}else r=t,t=e;return t}function GD(){var t,l,a,u,f,h,A,O;if(t=r,l=rc(),l!==e){for(a=[],u=r,f=g(),h=fo(),h===e&&(s.substr(r,2)===de?(h=de,r+=2):(h=e,T===0&&P(O$))),h!==e?(A=g(),O=rc(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=fo(),h===e&&(s.substr(r,2)===de?(h=de,r+=2):(h=e,T===0&&P(O$))),h!==e?(A=g(),O=rc(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=UTt(l,a)}else r=t,t=e;return t}function ijt(){var t,l,a,u,f,h,A,O;if(t=r,l=kD(),l!==e){for(a=[],u=r,f=g(),h=ya(),h!==e?(A=g(),O=kD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=ya(),h!==e?(A=g(),O=kD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=KTt(l,a)}else r=t,t=e;return t}function kD(){var t,l,a,u,f,h,A,O;if(t=r,l=rc(),l!==e){for(a=[],u=r,f=g(),h=fo(),h!==e?(A=g(),O=rc(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=fo(),h!==e?(A=g(),O=rc(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=FTt(l,a)}else r=t,t=e;return t}function rc(){var t,l,a,u,f;return t=r,l=Zi(),l!==e?(a=r,u=g(),f=rc(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=STt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=rjt(),a!==e?(R=t,t=qTt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=ojt(),a!==e?(R=t,t=ZTt(a)):(r=t,t=e)):(r=t,t=e))),t}function rjt(){var t,l,a;return t=r,l=jD(),l!==e?(a=njt(),a===e&&(a=null),R=t,t=HTt(l,a)):(r=t,t=e),t}function njt(){var t,l,a,u,f,h,A;if(t=r,l=r,a=g(),u=AB(),u!==e?(a=[a,u],l=a):(r=l,l=e),l!==e&&(R=t,l=WTt(l)),t=l,t===e){if(t=r,l=[],a=r,u=g(),f=KD(),f!==e?(h=g(),A=jD(),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e)for(;a!==e;)l.push(a),a=r,u=g(),f=KD(),f!==e?(h=g(),A=jD(),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e);else l=e;l!==e&&(R=t,l=zTt(l)),t=l}return t}function jD(){var t,l,a,u,f,h,A,O;if(t=r,l=UD(),l!==e){for(a=[],u=r,f=g(),s.substr(r,2)===ae?(h=ae,r+=2):(h=e,T===0&&P(l1)),h===e&&(s.charCodeAt(r)===62?(h=Y,r++):(h=e,T===0&&P(iE)),h===e&&(s.substr(r,2)===fe?(h=fe,r+=2):(h=e,T===0&&P(o1)),h===e&&(s.substr(r,2)===ve?(h=ve,r+=2):(h=e,T===0&&P(d1)),h===e&&(s.charCodeAt(r)===60?(h=K,r++):(h=e,T===0&&P(tE)),h===e&&(s.charCodeAt(r)===61?(h=$,r++):(h=e,T===0&&P(pa)),h===e&&(s.substr(r,2)===ue?(h=ue,r+=2):(h=e,T===0&&P(u1)))))))),h!==e?(A=g(),O=y0(),O===e&&(O=UD()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.substr(r,2)===ae?(h=ae,r+=2):(h=e,T===0&&P(l1)),h===e&&(s.charCodeAt(r)===62?(h=Y,r++):(h=e,T===0&&P(iE)),h===e&&(s.substr(r,2)===fe?(h=fe,r+=2):(h=e,T===0&&P(o1)),h===e&&(s.substr(r,2)===ve?(h=ve,r+=2):(h=e,T===0&&P(d1)),h===e&&(s.charCodeAt(r)===60?(h=K,r++):(h=e,T===0&&P(tE)),h===e&&(s.charCodeAt(r)===61?(h=$,r++):(h=e,T===0&&P(pa)),h===e&&(s.substr(r,2)===ue?(h=ue,r+=2):(h=e,T===0&&P(u1)))))))),h!==e?(A=g(),O=y0(),O===e&&(O=UD()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=JTt(l,a)}else r=t,t=e;return t}function UD(){var t,l,a;return t=r,l=_a(),l!==e?(a=ajt(),a===e&&(a=null),R=t,t=YTt(l,a)):(r=t,t=e),t}function ajt(){var t,l,a,u,f,h,A;return t=r,l=g(),a=r,u=Zi(),u!==e?(f=g(),h=zr(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=zr()),a!==e?(u=g(),f=co(),f===e&&(f=_a()),f!==e?(R=t,t=XTt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=g(),a=sjt(),a!==e?(u=g(),f=DB(),f!==e?(R=t,t=QTt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=g(),u=ljt(),u!==e?(a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=g(),f=_a(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=fo(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=_a(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=evt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function sjt(){var t,l,a,u,f,h;return t=uc(),t===e&&(t=fG(),t===e&&(t=r,l=zG(),l!==e?(a=g(),u=ln(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=Zi(),l!==e?(a=g(),u=uc(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=Zi(),l!==e?(a=g(),u=fG(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=Zi(),l!==e?(a=g(),u=zG(),u!==e?(f=g(),h=ln(),h!==e?(l=[l,a,u,f,h],t=l):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))))),t}function ljt(){var t,l,a,u,f,h,A;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=oc(),f!==e?(h=g(),A=i4(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=oc(),a!==e?(u=g(),f=i4(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=Zi(),a!==e?(u=g(),f=oc(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=oc()))),l!==e&&(R=t,l=tvt(l)),t=l,t}function ojt(){var t,l,a;return t=r,l=_a(),l!==e?(a=djt(),a===e&&(a=null),R=t,t=ivt(l,a)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=cjt(),a!==e?(R=t,t=rvt(a)):(r=t,t=e)):(r=t,t=e)),t}function djt(){var t,l,a,u,f,h,A,O,z,Te;if(t=r,l=r,a=g(),u=AB(),u!==e?(a=[a,u],l=a):(r=l,l=e),l!==e&&(R=t,l=nvt(l)),t=l,t===e){if(t=r,l=[],a=r,u=g(),f=IB(),f!==e?(h=g(),A=r,O=y0(),O!==e?(z=r,T++,Te=it(),T--,Te!==e?(r=z,z=void 0):z=e,z!==e?(R=A,A=Z$(O)):(r=A,A=e)):(r=A,A=e),A===e&&(A=_a()),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e),a!==e)for(;a!==e;)l.push(a),a=r,u=g(),f=IB(),f!==e?(h=g(),A=r,O=y0(),O!==e?(z=r,T++,Te=it(),T--,Te!==e?(r=z,z=void 0):z=e,z!==e?(R=A,A=Z$(O)):(r=A,A=e)):(r=A,A=e),A===e&&(A=_a()),A!==e?(u=[u,f,h,A],a=u):(r=a,a=e)):(r=a,a=e);else l=e;l!==e&&(R=t,l=avt(l)),t=l,t===e&&(t=r,l=g(),a=r,u=Zi(),u!==e?(f=g(),h=zr(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=zr()),a!==e?(u=g(),f=co(),f===e&&(f=_a(),f===e&&(f=r,h=r,T++,A=Je(),T--,A!==e?(r=h,h=void 0):h=e,h!==e?(A=N1(),A!==e?(R=f,f=svt(l,a,u,A)):(r=f,f=e)):(r=f,f=e))),f!==e?(R=t,t=lvt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=g(),a=r,u=Zi(),u!==e?(f=g(),h=uc(),h!==e?(u=[u,f,h],a=u):(r=a,a=e)):(r=a,a=e),a===e&&(a=uc()),a!==e?(u=g(),f=r,h=r,T++,A=Je(),T--,A!==e?(r=h,h=void 0):h=e,h!==e?(A=y0(),A!==e?(R=f,f=ovt(l,a,u,A)):(r=f,f=e)):(r=f,f=e),f===e&&(f=DB()),f!==e?(R=t,t=dvt(l,a,u,f)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=pu(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=g(),u=r,f=yqt(),f!==e?(h=g(),A=$s(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(f=g(),h=MUt(),h!==e?(R=t,t=uvt(a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=g(),u=r,f=pZt(),f!==e?(h=g(),A=uc(),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e),u!==e?(f=g(),h=_a(),h!==e?(R=t,t=pvt(a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=g(),u=pjt(),u!==e?(a=[a,u],l=a):(r=l,l=e),l!==e?(a=r,u=g(),f=_a(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,f=g(),h=fo(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=_a(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=cvt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))))))}return t}function AB(){var t,l,a,u,f,h,A,O,z;return t=r,l=qqt(),l===e&&(l=k3t()),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=fvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=Zi(),a!==e?(u=g(),f=To(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=yvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mo(),a!==e?(u=g(),f=s4(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=mo(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=s4(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=hvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mo(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=gB(),A!==e?(O=g(),z=Ib(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=mo(),a!==e?(u=g(),f=gB(),f!==e?(h=g(),A=Ib(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=mvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mo(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=Ib(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=mo(),a!==e?(u=g(),f=Ib(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Tvt(l)):(r=t,t=e)):(r=t,t=e))))),t}function gB(){var t;return t=xqt(),t===e&&(t=$qt(),t===e&&(t=Lqt(),t===e&&(t=Bqt()))),t}function IB(){var t,l,a,u;return t=r,s.substr(r,3)===ye?(l=ye,r+=3):(l=e,T===0&&P(b9e)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=vvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===Ve?(l=Ve,r+=2):(l=e,T===0&&P(A9e)),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Evt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(s.substr(r,2)===ae?(t=ae,r+=2):(t=e,T===0&&P(l1)),t===e&&(s.charCodeAt(r)===62?(t=Y,r++):(t=e,T===0&&P(iE)),t===e&&(s.substr(r,2)===fe?(t=fe,r+=2):(t=e,T===0&&P(o1)),t===e&&(s.substr(r,2)===ve?(t=ve,r+=2):(t=e,T===0&&P(d1)),t===e&&(s.charCodeAt(r)===60?(t=K,r++):(t=e,T===0&&P(tE)),t===e&&(s.charCodeAt(r)===61?(t=$,r++):(t=e,T===0&&P(pa)),t===e&&(s.substr(r,2)===ue?(t=ue,r+=2):(t=e,T===0&&P(u1)),t===e&&(t=KD(),t===e&&(t=ujt())))))))))),t}function KD(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=mo(),a!==e?(u=g(),f=Zi(),f!==e?(h=g(),A=xs(),A!==e?(O=g(),z=Pa(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=bvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mo(),a!==e?(u=g(),f=xs(),f!==e?(h=g(),A=Pa(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=Avt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,a=mo(),a!==e?(u=g(),f=Zi(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=gvt(l)),t=l,t===e&&(t=r,l=mo(),l!==e&&(R=t,l=Ivt(l)),t=l))),t}function ujt(){var t,l,a,u,f;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=RB(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=RB()),l!==e&&(R=t,l=Rvt(l)),t=l,t}function RB(){var t,l,a,u;return t=L6t(),t===e&&(t=r,l=S6t(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Dvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=dG(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=wvt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=kw(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Ovt(l)):(r=t,t=e)):(r=t,t=e)))),t}function DB(){var t,l,a,u,f,h;return t=r,l=_a(),l!==e?(a=g(),u=QSt(),u!==e?(f=g(),h=ji(),h!==e?(R=t,t=Cvt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=_a()),t}function pjt(){var t,l,a,u,f;return t=r,l=r,a=Zi(),a!==e?(u=g(),f=oc(),f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=oc()),l!==e&&(R=t,l=_vt(l)),t=l,t}function y0(){var t,l,a,u;return t=r,l=r,a=OM(),a===e&&(a=uZt(),a===e&&(a=nn())),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ld(),a===e&&(a=co()),a!==e?(R=t,t=Vvt(l,a)):(r=t,t=e)):(r=t,t=e),t}function cjt(){var t,l,a,u,f,h,A;return t=r,l=kw(),l!==e?(a=r,u=g(),f=nc(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=_Ft(),u!==e?(f=r,h=g(),A=mUt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=Pvt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fjt(){var t,l,a,u,f;return t=r,l=_a(),l!==e?(a=r,u=g(),f=yjt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Nvt(l,a)):(r=t,t=e),t}function yjt(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt,ii,Vr;return t=r,l=r,a=zr(),a!==e?(u=g(),f=Sw(),f!==e?(h=g(),A=Eb(),A!==e?(O=g(),z=gb(),z!==e?(Te=g(),$e=_r(),$e!==e?(Xe=g(),pt=Qw(),pt!==e?(ii=g(),Vr=nG(),Vr!==e?(a=[a,u,f,h,A,O,z,Te,$e,Xe,pt,ii,Vr],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=zr(),a!==e?(u=g(),f=Sw(),f!==e?(h=g(),A=Eb(),A!==e?(O=g(),z=gb(),z!==e?(a=[a,u,f,h,A,O,z],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=zr(),a!==e?(u=g(),f=MM(),f!==e?(h=g(),A=gb(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,a=_r(),a!==e?(u=g(),f=Qw(),f!==e?(h=g(),A=nG(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)))),l!==e&&(R=t,l=xvt(l)),t=l,t}function _a(){var t,l,a;return t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=bjt(),a!==e?(R=t,t=$vt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=hjt(),a!==e?(R=t,t=Lvt(a)):(r=t,t=e)):(r=t,t=e)),t}function hjt(){var t,l,a,u,f,h,A,O;if(t=r,l=kE(),l!==e){for(a=[],u=r,f=g(),h=wB(),h===e&&(h=h0()),h!==e?(A=g(),O=kE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=wB(),h===e&&(h=h0()),h!==e?(A=g(),O=kE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Bvt(l,a)}else r=t,t=e;return t}function wB(){var t,l;return t=r,s.substr(r,3)===_e?(l=_e,r+=3):(l=e,T===0&&P(g9e)),l===e&&(s.substr(r,2)===xe?(l=xe,r+=2):(l=e,T===0&&P(I9e)),l===e&&(s.substr(r,2)===ee?(l=ee,r+=2):(l=e,T===0&&P(i0)),l===e&&(s.substr(r,2)===Pe?(l=Pe,r+=2):(l=e,T===0&&P(p1)),l===e&&(s.substr(r,2)===Me?(l=Me,r+=2):(l=e,T===0&&P(c1)),l===e&&(s.substr(r,4)===Se?(l=Se,r+=4):(l=e,T===0&&P(R9e)),l===e&&(s.substr(r,3)===je?(l=je,r+=3):(l=e,T===0&&P(D9e)),l===e&&(s.substr(r,3)===Ze?(l=Ze,r+=3):(l=e,T===0&&P(w9e)),l===e&&(s.substr(r,2)===Ye?(l=Ye,r+=2):(l=e,T===0&&P(O9e)),l===e&&(s.substr(r,3)===st?(l=st,r+=3):(l=e,T===0&&P(C9e)),l===e&&(s.substr(r,2)===dt?(l=dt,r+=2):(l=e,T===0&&P(_9e)),l===e&&(s.substr(r,2)===_t?(l=_t,r+=2):(l=e,T===0&&P(V9e)),l===e&&(s.substr(r,2)===Mt?(l=Mt,r+=2):(l=e,T===0&&P(P9e)),l===e&&(s.substr(r,3)===Gi?(l=Gi,r+=3):(l=e,T===0&&P(C$)),l===e&&(s.substr(r,2)===gr?(l=gr,r+=2):(l=e,T===0&&P(_$)),l===e&&(s.substr(r,3)===Br?(l=Br,r+=3):(l=e,T===0&&P(N9e)),l===e&&(s.substr(r,2)===wa?(l=wa,r+=2):(l=e,T===0&&P(x9e)),l===e&&(s.substr(r,2)===bn?(l=bn,r+=2):(l=e,T===0&&P($9e)),l===e&&(s.substr(r,2)===$i?(l=$i,r+=2):(l=e,T===0&&P(L9e)),l===e&&(s.substr(r,2)===Yi?(l=Yi,r+=2):(l=e,T===0&&P(B9e)),l===e&&(s.substr(r,2)===io?(l=io,r+=2):(l=e,T===0&&P(M9e)),l===e&&(s.substr(r,2)===ro?(l=ro,r+=2):(l=e,T===0&&P(G9e)),l===e&&(s.substr(r,2)===Xx?(l=Xx,r+=2):(l=e,T===0&&P(k9e)),l===e&&(s.substr(r,2)===Zv?(l=Zv,r+=2):(l=e,T===0&&P(V$)),l===e&&(s.charCodeAt(r)===33?(l=Qx,r++):(l=e,T===0&&P(P$)),l===e&&(s.charCodeAt(r)===126?(l=Hv,r++):(l=e,T===0&&P(rE)),l===e&&(s.charCodeAt(r)===64?(l=Tf,r++):(l=e,T===0&&P(wf)),l===e&&(s.charCodeAt(r)===35?(l=e$,r++):(l=e,T===0&&P(N$)),l===e&&(s.charCodeAt(r)===38?(l=t1,r++):(l=e,T===0&&P(f1)),l===e&&(s.charCodeAt(r)===124?(l=i1,r++):(l=e,T===0&&P(y1)),l===e&&(s.charCodeAt(r)===96?(l=Zp,r++):(l=e,T===0&&P(Jp)),l===e&&(s.charCodeAt(r)===63?(l=r1,r++):(l=e,T===0&&P(h1))))))))))))))))))))))))))))))))),l!==e&&(R=t,l=Mvt(l)),t=l,t}function h0(){var t,l,a,u;return t=r,l=r,a=Yqt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=$Ut(),a!==e?(R=t,t=Gvt(l,a)):(r=t,t=e)):(r=t,t=e),t}function mjt(){var t;return t=Tjt(),t===e&&(t=GE()),t}function Tjt(){var t,l,a,u,f,h;return t=r,l=r,a=nt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===46?(a=w,r++):(a=e,T===0&&P(dl)),a!==e?(u=r,f=g(),h=GE(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=kvt(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,l,a;if(t=r,l=[],E$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(x$)),a!==e)for(;a!==e;)l.push(a),E$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(x$));else l=e;return l!==e&&(R=t,l=jvt()),t=l,t}function kE(){var t,l,a,u,f;return t=r,s.charCodeAt(r)===126?(l=Hv,r++):(l=e,T===0&&P(rE)),l===e&&(l=h0()),l!==e?(a=r,u=g(),f=kE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Uvt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=vjt()),t}function vjt(){var t,l,a,u,f,h,A,O;if(t=r,l=FD(),l!==e){for(a=[],u=r,f=g(),h=UE(),h!==e?(A=g(),O=FD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=UE(),h!==e?(A=g(),O=FD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Kvt(l,a)}else r=t,t=e;return t}function FD(){var t,l,a,u,f,h,A,O;if(t=r,l=SD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===42?(h=V,r++):(h=e,T===0&&P(Qh)),h===e&&(s.charCodeAt(r)===47?(h=n1,r++):(h=e,T===0&&P(m1)),h===e&&(s.charCodeAt(r)===37?(h=a1,r++):(h=e,T===0&&P(T1)))),h!==e?(A=g(),O=SD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===42?(h=V,r++):(h=e,T===0&&P(Qh)),h===e&&(s.charCodeAt(r)===47?(h=n1,r++):(h=e,T===0&&P(m1)),h===e&&(s.charCodeAt(r)===37?(h=a1,r++):(h=e,T===0&&P(T1)))),h!==e?(A=g(),O=SD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Fvt(l,a)}else r=t,t=e;return t}function SD(){var t,l,a,u,f,h,A,O;if(t=r,l=qD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===94?(h=vf,r++):(h=e,T===0&&P(Of)),h!==e?(A=g(),O=qD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===94?(h=vf,r++):(h=e,T===0&&P(Of)),h!==e?(A=g(),O=qD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Svt(l,a)}else r=t,t=e;return t}function qD(){var t,l,a,u,f,h,A,O;if(t=r,l=ZD(),l!==e){for(a=[],u=r,f=g(),h=OB(),h!==e?(A=g(),O=ZD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=OB(),h!==e?(A=g(),O=ZD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=qvt(l,a)}else r=t,t=e;return t}function ZD(){var t,l,a,u,f,h,A,O;if(t=r,l=CB(),l!==e){for(a=[],u=r,f=g(),h=yo(),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=yo(),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Zvt(l,a)}else r=t,t=e;return t}function OB(){var t,l,a,u,f,h,A;return t=r,l=r,a=CM(),a!==e?(u=g(),f=hc(),f!==e?(h=g(),A=TO(),A!==e?(a=[a,u,f,h,A],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e&&(R=t,l=Hvt(l)),t=l,t}function CB(){var t,l,a,u,f;return t=r,s.charCodeAt(r)===45?(l=Ef,r++):(l=e,T===0&&P(Cf)),l===e&&(s.charCodeAt(r)===43?(l=Wv,r++):(l=e,T===0&&P(nE)),l===e&&(s.charCodeAt(r)===126?(l=Hv,r++):(l=e,T===0&&P(rE)))),l!==e?(a=r,u=g(),f=CB(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Wvt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Ejt()),t}function Ejt(){var t,l,a,u,f,h,A,O;if(t=r,l=PB(),l!==e){for(a=[],u=r,f=g(),s.substr(r,2)===zv?(h=zv,r+=2):(h=e,T===0&&P($$)),h!==e?(A=g(),O=_n(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.substr(r,2)===zv?(h=zv,r+=2):(h=e,T===0&&P($$)),h!==e?(A=g(),O=_n(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=zvt(l,a)}else r=t,t=e;return t}function bjt(){var t,l,a,u,f,h,A,O;if(t=r,l=HD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===124?(h=i1,r++):(h=e,T===0&&P(y1)),h!==e?(A=g(),O=HD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===124?(h=i1,r++):(h=e,T===0&&P(y1)),h!==e?(A=g(),O=HD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Jvt(l,a)}else r=t,t=e;return t}function HD(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=jE(),a!==e){for(u=[],f=r,h=g(),s.charCodeAt(r)===94?(A=vf,r++):(A=e,T===0&&P(Of)),A!==e?(O=g(),z=jE(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),s.charCodeAt(r)===94?(A=vf,r++):(A=e,T===0&&P(Of)),A!==e?(O=g(),z=jE(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);R=t,t=Yvt(a,u)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,l=r,T++,a=Je(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=jE(),a!==e?(R=t,t=Xvt(a)):(r=t,t=e)):(r=t,t=e)),t}function jE(){var t,l,a,u,f,h,A,O;if(t=r,l=WD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===38?(h=t1,r++):(h=e,T===0&&P(f1)),h!==e?(A=g(),O=WD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===38?(h=t1,r++):(h=e,T===0&&P(f1)),h!==e?(A=g(),O=WD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Qvt(l,a)}else r=t,t=e;return t}function WD(){var t,l,a,u,f,h,A,O;if(t=r,l=zD(),l!==e){for(a=[],u=r,f=g(),s.substr(r,2)===Pe?(h=Pe,r+=2):(h=e,T===0&&P(p1)),h===e&&(s.substr(r,2)===Me?(h=Me,r+=2):(h=e,T===0&&P(c1))),h!==e?(A=g(),O=zD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.substr(r,2)===Pe?(h=Pe,r+=2):(h=e,T===0&&P(p1)),h===e&&(s.substr(r,2)===Me?(h=Me,r+=2):(h=e,T===0&&P(c1))),h!==e?(A=g(),O=zD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=eEt(l,a)}else r=t,t=e;return t}function zD(){var t,l,a,u,f,h,A,O;if(t=r,l=JD(),l!==e){for(a=[],u=r,f=g(),h=UE(),h!==e?(A=g(),O=JD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=UE(),h!==e?(A=g(),O=JD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=tEt(l,a)}else r=t,t=e;return t}function UE(){var t;return s.charCodeAt(r)===43?(t=Wv,r++):(t=e,T===0&&P(nE)),t===e&&(s.charCodeAt(r)===45?(t=Ef,r++):(t=e,T===0&&P(Cf))),t}function JD(){var t,l,a,u,f,h,A,O;if(t=r,l=YD(),l!==e){for(a=[],u=r,f=g(),h=_B(),h!==e?(A=g(),O=YD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=_B(),h!==e?(A=g(),O=YD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=iEt(l,a)}else r=t,t=e;return t}function _B(){var t,l,a,u;return s.charCodeAt(r)===42?(t=V,r++):(t=e,T===0&&P(Qh)),t===e&&(s.charCodeAt(r)===47?(t=n1,r++):(t=e,T===0&&P(m1)),t===e&&(t=r,s.charCodeAt(r)===37?(l=a1,r++):(l=e,T===0&&P(T1)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=rEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=GSt(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=nEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=wqt(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=aEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===ee?(l=ee,r+=2):(l=e,T===0&&P(i0)),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=sEt(l)):(r=t,t=e)):(r=t,t=e)))))),t}function YD(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e)if(a=KE(),a!==e){for(u=[],f=r,h=g(),s.charCodeAt(r)===94?(A=vf,r++):(A=e,T===0&&P(Of)),A!==e?(O=g(),z=KE(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),s.charCodeAt(r)===94?(A=vf,r++):(A=e,T===0&&P(Of)),A!==e?(O=g(),z=KE(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);R=t,t=lEt(a,u)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,l=r,T++,a=it(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=KE(),a!==e?(R=t,t=oEt(a)):(r=t,t=e)):(r=t,t=e)),t}function KE(){var t,l,a,u,f,h,A,O;if(t=r,l=FE(),l!==e){for(a=[],u=r,f=g(),h=VB(),h!==e?(A=g(),O=FE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=VB(),h!==e?(A=g(),O=FE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=dEt(l,a)}else r=t,t=e;return t}function VB(){var t,l,a,u;return t=r,s.substr(r,2)===ee?(l=ee,r+=2):(l=e,T===0&&P(i0)),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=uEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,3)===Gi?(l=Gi,r+=3):(l=e,T===0&&P(C$)),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=pu(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=pEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===gr?(l=gr,r+=2):(l=e,T===0&&P(_$)),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=pu(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=cEt(l)):(r=t,t=e)):(r=t,t=e))),t}function FE(){var t,l,a,u,f,h;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=$M(),a!==e?(u=r,f=g(),h=FE(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=fEt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Ajt()),t}function Ajt(){var t,l,a,u,f,h,A,O,z;if(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e),l!==e)if(a=XD(),a!==e){for(u=[],f=r,h=g(),A=yo(),A!==e?(O=g(),z=qe(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);f!==e;)u.push(f),f=r,h=g(),A=yo(),A!==e?(O=g(),z=qe(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e);R=t,t=yEt(a,u)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,l=r,T++,a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=XD(),a!==e?(R=t,t=hEt(a)):(r=t,t=e)):(r=t,t=e)),t}function XD(){var t,l,a,u,f;return t=r,l=gjt(),l!==e?(a=r,u=g(),f=XD(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=mEt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=PB()),t}function gjt(){var t,l,a,u;return s.charCodeAt(r)===45?(t=Ef,r++):(t=e,T===0&&P(Cf)),t===e&&(s.charCodeAt(r)===43?(t=Wv,r++):(t=e,T===0&&P(nE)),t===e&&(t=r,s.charCodeAt(r)===126?(l=Hv,r++):(l=e,T===0&&P(rE)),l!==e?(a=r,T++,u=Ge(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TEt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===33?(l=Qx,r++):(l=e,T===0&&P(P$)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=vEt(l)):(r=t,t=e)):(r=t,t=e)))),t}function PB(){var t,l,a,u,f,h,A,O;if(t=r,l=xB(),l!==e?(a=r,u=g(),f=SE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=EEt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=QD(),t===e))if(t=r,l=Djt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=g(),O=b0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=r,f=g(),h=NB(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=r,f=g(),h=SE(),h!==e?(f=[f,h],u=f):(r=u,u=e)));u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=g(),O=b0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=r,f=g(),h=NB(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=r,f=g(),h=SE(),h!==e?(f=[f,h],u=f):(r=u,u=e)));R=t,t=bEt(l,a)}else r=t,t=e;return t}function nt(){var t,l,a,u,f,h,A,O;if(t=r,l=qe(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=g(),O=b0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=g(),O=b0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=AEt(l,a)}else r=t,t=e;return t}function NB(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(s.charCodeAt(r)===91?(a=j,r++):(a=e,T===0&&P(e0)),a!==e?(u=r,f=g(),h=Ijt(),h===e&&(h=Rjt(),h===e&&(h=vt())),h!==e?(A=g(),f=[f,h,A],u=f):(r=u,u=e),u!==e?(s.charCodeAt(r)===93?(f=F,r++):(f=e,T===0&&P(t0)),f!==e?(R=t,t=gEt(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ijt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Rb(),a===e&&(a=Q6t(),a===e&&(a=e6t(),a===e&&(a=eZt()))),a!==e?(u=r,f=g(),h=od(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=IEt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Rjt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=vt(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),s.charCodeAt(r)===58?(u=B,r++):(u=e,T===0&&P(zp)),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=REt(a,f)):(r=t,t=e)):(r=t,t=e),t}function Djt(){var t,l,a;return t=fl(),t===e&&(t=wjt(),t===e&&(t=ld(),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=lM(),a===e&&(a=oM(),a===e&&(a=kKt())),a!==e?(R=t,t=DEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=lM(),a!==e?(R=t,t=wEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Ojt(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=DL(),a===e&&(a=V2t()),a!==e?(R=t,t=OEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Njt(),a!==e?(R=t,t=CEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e?(a=Ljt(),a!==e?(R=t,t=_Et(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=sUt(),t===e&&(t=pUt(),t===e&&(t=qe(),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=oUt(),a!==e?(R=t,t=VEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=A0(),a!==e?(R=t,t=PEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=GKt(),a!==e?(R=t,t=NEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=MB()))))))))))))))),t}function wjt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=kf(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=xEt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ojt(){var t,l,a,u,f;return t=r,l=Cjt(),l!==e?(a=r,u=g(),f=cUt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=$Et(l,a)):(r=t,t=e)):(r=t,t=e),t}function Cjt(){var t,l,a,u;return t=YFt(),t===e&&(t=r,l=X6t(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=LEt(l)):(r=t,t=e)):(r=t,t=e)),t}function _jt(){var t,l,a,u,f,h,A;return t=r,l=r,a=vt(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=mr(),a!==e?(u=r,f=g(),h=_n(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,h=g(),A=Vjt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=BEt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Vjt(){var t,l,a,u,f,h,A;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=v3t(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=vt(),u!==e?(f=r,h=g(),A=Pjt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),R=t,t=MEt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Pjt(){var t,l,a,u,f,h,A,O;return t=r,l=r,a=CM(),a!==e?(u=g(),f=hc(),f!==e?(h=g(),A=TO(),A!==e?(O=g(),a=[a,u,f,h,A,O],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=GEt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Njt(){var t,l,a,u,f;return t=r,l=BG(),l!==e?(a=r,u=g(),f=BUt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=kEt(l,a)):(r=t,t=e)):(r=t,t=e),t}function xjt(){var t,l,a,u,f,h,A,O;if(t=r,l=$jt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ji(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ji(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=jEt(l,a)}else r=t,t=e;return t}function $jt(){var t,l;return t=r,l=Xf(),l===e&&(l=wb(),l===e&&(l=sb(),l===e&&(l=Vw()))),l!==e&&(R=t,l=UEt(l)),t=l,t}function Ljt(){var t,l,a,u;return t=r,l=r,a=d3t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=hUt(),a!==e?(R=t,t=KEt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Bjt(){var t,l,a,u,f,h;return t=r,l=Mjt(),l!==e?(a=r,u=g(),f=Pa(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=vt(),u!==e?(R=t,t=FEt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Mjt(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=qE(),a!==e?(R=t,t=SEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Gjt(),a!==e?(R=t,t=qEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=jjt(),a!==e?(R=t,t=ZEt(a)):(r=t,t=e)):(r=t,t=e))),t}function Gjt(){var t,l;return t=Kjt(),t===e&&(t=r,l=kjt(),l!==e&&(R=t,l=HEt(l)),t=l),t}function kjt(){var t;return t=VG(),t===e&&(t=bqt(),t===e&&(t=lO(),t===e&&(t=Uw(),t===e&&(t=xw(),t===e&&(t=ISt(),t===e&&(t=Iw(),t===e&&(t=RSt(),t===e&&(t=K3t(),t===e&&(t=Fw(),t===e&&(t=Xw(),t===e&&(t=xb(),t===e&&(t=AG(),t===e&&(t=cb(),t===e&&(t=hc(),t===e&&(t=Nb()))))))))))))))),t}function jjt(){var t,l;return t=r,l=Ujt(),l!==e&&(R=t,l=WEt(l)),t=l,t}function Ujt(){var t;return t=XFt(),t===e&&(t=Iw(),t===e&&(t=wSt(),t===e&&(t=kSt(),t===e&&(t=jSt(),t===e&&(t=YSt(),t===e&&(t=xw(),t===e&&(t=j3t(),t===e&&(t=AG(),t===e&&(t=q3t(),t===e&&(t=vqt(),t===e&&(t=Eqt(),t===e&&(t=Aqt(),t===e&&(t=Uw(),t===e&&(t=Fw(),t===e&&(t=Xw(),t===e&&(t=lO(),t===e&&(t=GZt(),t===e&&(t=kZt(),t===e&&(t=jZt(),t===e&&(t=Nb(),t===e&&(t=xb()))))))))))))))))))))),t}function Kjt(){var t,l,a,u;return t=r,l=r,a=Nb(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=jUt(),a!==e?(R=t,t=zEt(l,a)):(r=t,t=e)):(r=t,t=e),t}function Fjt(){var t;return t=OZt(),t===e&&(t=Cqt(),t===e&&(t=qZt(),t===e&&(t=n5t(),t===e&&(t=MZt(),t===e&&(t=E3t(),t===e&&(t=tZt())))))),t}function m0(){var t,l,a,u,f;return t=r,l=Sjt(),l!==e?(a=r,u=g(),f=SE(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=JEt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=QD()),t}function SE(){var t,l,a,u,f,h;return t=r,l=TUt(),l!==e?(a=r,u=g(),f=rUt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=r,f=g(),h=nUt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u===e&&(u=null),R=t,t=YEt(l,a,u)):(r=t,t=e),t}function Sjt(){var t;return t=nt(),t===e&&(t=qe(),t===e&&(t=xB())),t}function xB(){var t,l,a;return t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=qjt(),a!==e?(R=t,t=XEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Zjt(),a!==e?(R=t,t=QEt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Hjt(),a!==e?(R=t,t=ebt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Wjt(),a!==e?(R=t,t=tbt(a)):(r=t,t=e)):(r=t,t=e)))),t}function qjt(){var t;return t=Pb(),t===e&&(t=hSt(),t===e&&(t=NSt(),t===e&&(t=y3t(),t===e&&(t=H3t(),t===e&&(t=z3t(),t===e&&(t=J3t(),t===e&&(t=Zqt(),t===e&&(t=Hqt(),t===e&&(t=h6t(),t===e&&(t=V6t(),t===e&&(t=W6t(),t===e&&(t=Yf(),t===e&&(t=bb(),t===e&&(t=Db())))))))))))))),t}function Zjt(){var t;return t=bb(),t===e&&(t=Db(),t===e&&(t=mw(),t===e&&(t=yo(),t===e&&(t=Yf(),t===e&&(t=uG()))))),t}function Hjt(){var t;return t=ZM(),t===e&&(t=HM(),t===e&&(t=Mw(),t===e&&(t=Gw(),t===e&&(t=qM(),t===e&&(t=Db(),t===e&&(t=bb())))))),t}function Wjt(){var t;return t=dG(),t===e&&(t=uc(),t===e&&(t=is())),t}function QD(){var t,l,a,u,f,h;return t=r,l=zjt(),l!==e?(a=r,T++,u=r,f=g(),s.charCodeAt(r)===40?(h=kt,r++):(h=e,T===0&&P(jt)),h!==e?(f=[f,h],u=f):(r=u,u=e),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ibt(l)):(r=t,t=e)):(r=t,t=e),t}function zjt(){var t,l;return t=r,l=TSt(),l===e&&(l=ZM(),l===e&&(l=HM(),l===e&&(l=Jjt(),l===e&&(l=Yjt(),l===e&&(l=Xjt()))))),l!==e&&(R=t,l=rbt(l)),t=l,t}function Jjt(){var t,l,a,u;return t=r,l=vSt(),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=nbt(l)):(r=t,t=e)):(r=t,t=e),t}function Yjt(){var t,l,a,u;return t=r,l=Mw(),l===e&&(l=Gw(),l===e&&(l=bw())),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=abt(l)):(r=t,t=e)):(r=t,t=e),t}function Xjt(){var t,l,a,u;return t=r,l=Mw(),l===e&&(l=Gw(),l===e&&(l=mSt(),l===e&&(l=SM(),l===e&&(l=qM(),l===e&&(l=bw(),l===e&&(l=vu(),l===e&&(l=WG(),l===e&&(l=PZt())))))))),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=sbt(l)):(r=t,t=e)):(r=t,t=e),t}function Qjt(){var t,l,a,u,f,h,A,O,z;return t=r,l=r,a=xs(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l===e&&(l=null),a=eUt(),a!==e?(u=r,f=g(),h=Xf(),h===e&&(h=j6t()),h!==e?(A=g(),O=pc(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),f=r,h=g(),A=s0(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=yE(),O!==e?(A=[A,O],h=A):(r=h,h=e),h===e&&(h=null),A=r,O=g(),z=aUt(),z!==e?(O=[O,z],A=O):(r=A,A=e),A===e&&(A=null),R=t,t=lbt(l,a,u,f,h,A)):(r=t,t=e),t}function eUt(){var t,l,a,u,f,h,A,O;if(t=r,l=tUt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=$B(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=$B(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=obt(l,a)}else r=t,t=e;return t===e&&(t=r,l=r,T++,s.length>r?(a=s.charAt(r),r++):(a=e,T===0&&P(Un)),T--,a!==e?(r=l,l=void 0):l=e,l!==e&&(R=t,l=dbt()),t=l),t}function tUt(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=iL(),a!==e?(R=t,t=ubt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=w1(),t===e&&(t=LB(),t===e&&(t=vt(),t===e&&(t=Qp())))),t}function $B(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=iL(),a!==e?(R=t,t=pbt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=LB(),t===e&&(t=vt())),t}function LB(){var t,l,a,u,f,h;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=iUt(),a!==e?(u=r,f=g(),h=vt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(f=r,T++,h=Je(),T--,h!==e?(r=f,f=void 0):f=e,f===e&&(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e),f!==e?(R=t,t=cbt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function iUt(){var t,l,a,u;return s.substr(r,2)===t$?(t=t$,r+=2):(t=e,T===0&&P(j9e)),t===e&&(t=r,s.substr(r,2)===ie?(l=ie,r+=2):(l=e,T===0&&P(w$)),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=fbt(l)):(r=t,t=e)):(r=t,t=e)),t}function rUt(){var t,l,a,u,f;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=r,u=sG(),u!==e?(f=g(),u=[u,f],a=u):(r=a,a=e),a!==e?(u=UUt(),u!==e?(R=t,t=ybt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nUt(){var t,l,a,u;return t=r,l=r,a=s6t(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qB(),a===e&&(a=qe()),a!==e?(R=t,t=hbt(l,a)):(r=t,t=e)):(r=t,t=e),t}function aUt(){var t,l,a,u,f,h;return t=r,l=r,a=pG(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=gqt(),a===e&&(a=dqt()),a!==e?(u=r,f=g(),h=vt(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=mbt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function sUt(){var t,l,a,u,f,h,A,O;if(t=r,l=Tw(),l!==e){if(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),u=[],f=r,h=g(),A=BB(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e)for(;f!==e;)u.push(f),f=r,h=g(),A=BB(),A!==e?(h=[h,A],f=h):(r=f,f=e);else u=e;u!==e?(f=r,h=g(),A=lUt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f===e&&(f=null),h=r,A=g(),O=ho(),O!==e?(A=[A,O],h=A):(r=h,h=e),h!==e?(R=t,t=Tbt(l,a,u,f,h)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function BB(){var t,l,a,u,f,h,A;return t=r,l=j0(),l!==e?(a=r,u=g(),f=vt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=ny(),u!==e?(f=r,h=g(),A=vt(),A!==e?(h=[h,A],f=h):(r=f,f=e),f!==e?(R=t,t=vbt(l,a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function lUt(){var t,l,a,u,f;return t=r,l=Dw(),l!==e?(a=r,u=g(),f=vt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Ebt(l,a)):(r=t,t=e)):(r=t,t=e),t}function oUt(){var t,l,a,u,f,h;return t=r,l=ey(),l!==e?(a=r,u=g(),f=vt(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=dUt(),u===e&&(u=qE()),u!==e?(R=t,t=bbt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dUt(){var t,l,a,u,f,h;return t=r,l=qE(),l!==e?(a=r,u=g(),f=ln(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(u=qE(),u!==e?(R=t,t=Abt(l,a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function qE(){var t,l;return t=r,l=ZE(),l!==e&&(R=t,l=gbt(l)),t=l,t}function ZE(){var t,l,a,u;return t=xb(),t===e&&(t=Fw(),t===e&&(t=Iw(),t===e&&(t=xw(),t===e&&(t=Uw(),t===e&&(t=lO(),t===e&&(t=r,l=uUt(),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Ibt(l)):(r=t,t=e)):(r=t,t=e))))))),t}function uUt(){var t;return t=Xw(),t===e&&(t=Nb(),t===e&&(t=VG(),t===e&&(t=iZt(),t===e&&(t=Rqt(),t===e&&(t=Dqt(),t===e&&(t=w3t(),t===e&&(t=C3t(),t===e&&(t=O3t(),t===e&&(t=bSt(),t===e&&(t=gSt(),t===e&&(t=ASt(),t===e&&(t=ESt(),t===e&&(t=l5t()))))))))))))),t}function pUt(){var t,l,a,u,f;return t=r,l=_w(),l!==e?(a=r,u=g(),f=ld(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=Rbt(l,a)):(r=t,t=e)):(r=t,t=e),t}function MB(){var t,l,a,u,f;return t=r,l=r,s.charCodeAt(r)===63?(a=r1,r++):(a=e,T===0&&P(h1)),a!==e?(u=Qa(),u!==e?(R=r,f=Dbt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===63?(a=r1,r++):(a=e,T===0&&P(h1)),a!==e?(R=r,u=wbt(),u?u=void 0:u=e,u!==e?(a=[a,u],l=a):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===58?(a=B,r++):(a=e,T===0&&P(zp)),a!==e?(u=cl(),u!==e?(R=r,f=Obt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===36?(a=ws,r++):(a=e,T===0&&P(Cs)),a!==e?(u=Qa(),u!==e?(R=r,f=Cbt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===36?(a=ws,r++):(a=e,T===0&&P(Cs)),a!==e?(u=cl(),u!==e?(R=r,f=_bt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===64?(a=Tf,r++):(a=e,T===0&&P(wf)),a!==e?(u=cl(),u!==e?(R=r,f=Vbt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,s.charCodeAt(r)===64?(a=Tf,r++):(a=e,T===0&&P(wf)),a!==e?(u=nM(),u!==e?(R=r,f=Pbt(),f?f=void 0:f=e,f!==e?(a=[a,u,f],l=a):(r=l,l=e)):(r=l,l=e)):(r=l,l=e))))))),l!==e&&(R=t,l=Nbt()),t=l,t}function cUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=_jt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=xbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ld(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Qp(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=$bt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=gLt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Lbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ns(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=XB(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Bbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=nt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Mbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function od(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=vt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Gbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Bjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=kbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function mUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=fjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=jbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function TUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Qjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Ubt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function vUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=_1(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Kbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function EUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=KUt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Fbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=FUt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Sbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=qUt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=qbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Kn(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=iw(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Zbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Mf(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=JUt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Hbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function AUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=QUt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Wbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Fn(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=zbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=tKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Jbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=iKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Ybt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function co(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=kf(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Xbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ew(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=rKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=Qbt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Gf(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=nKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=eAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function IUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=WB(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=tAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nc(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Wr(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=iAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function T0(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=sKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=rAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function RUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=lKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=nAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function DUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=oKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=aAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function UB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=uKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=sAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=pKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=lAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function OUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=cKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=oAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function KB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=fKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=dAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function CUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=yKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=uAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function FB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=rw(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=pAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function _Ut(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=EKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=cAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function tw(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=bKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=fAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function VUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=AKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=yAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function PUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=YB(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=hAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function NUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=wKt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=mAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=KLt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=TAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $Ut(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=mjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=vAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function LUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=X2(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=EAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function BUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=xjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=bAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function SB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=eGt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=AAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function MUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=ji(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=gAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=FLt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=IAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=iBt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=RAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=Fjt(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=DAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function UUt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=ad(),u!==e?(f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=wAt(a,u,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function qB(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=g(),u=n2t(),f=g(),s.charCodeAt(r)===41?(h=St,r++):(h=e,T===0&&P(qt)),h!==e?(R=t,t=OAt(a,u,f)):(r=t,t=e)):(r=t,t=e),t}function KUt(){var t,l,a,u,f,h,A,O;if(t=r,l=nw(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=CAt(l,a)}else r=t,t=e;return t}function FUt(){var t,l,a,u,f,h,A,O;if(t=r,l=sw(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=sw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=sw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=_At(l,a)}else r=t,t=e;return t}function SUt(){var t,l,a,u,f,h,A,O;if(t=r,l=HE(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=HE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=HE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=VAt(l,a)}else r=t,t=e;return t}function qUt(){var t,l,a,u,f,h,A,O;if(t=r,l=lw(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=lw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=lw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=PAt(l,a)}else r=t,t=e;return t}function ZUt(){var t,l,a,u,f,h,A,O;if(t=r,l=jf(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=jf(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=jf(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=NAt(l,a)}else r=t,t=e;return t}function HUt(){var t,l,a,u,f,h,A,O;if(t=r,l=nD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=xAt(l,a)}else r=t,t=e;return t}function WUt(){var t,l,a,u,f,h,A,O;if(t=r,l=J1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=J1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=J1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=$At(l,a)}else r=t,t=e;return t}function zUt(){var t,l,a,u,f,h,A,O;if(t=r,l=AD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=AD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=AD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=LAt(l,a)}else r=t,t=e;return t}function iw(){var t,l,a,u,f,h,A,O;if(t=r,l=qe(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=BAt(l,a)}else r=t,t=e;return t}function ZB(){var t,l,a,u,f,h,A,O;if(t=r,l=Z1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Z1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Z1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=MAt(l,a)}else r=t,t=e;return t}function JUt(){var t,l,a,u,f,h,A,O;if(t=r,l=o0(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=o0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=o0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=GAt(l,a)}else r=t,t=e;return t}function YUt(){var t,l,a,u,f,h,A,O;if(t=r,l=I1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=I1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=I1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=kAt(l,a)}else r=t,t=e;return t}function XUt(){var t,l,a,u,f,h,A,O;if(t=r,l=bD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=bD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=bD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=jAt(l,a)}else r=t,t=e;return t}function QUt(){var t,l,a,u,f,h,A,O;if(t=r,l=Q1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Q1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Q1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=UAt(l,a)}else r=t,t=e;return t}function eKt(){var t,l,a,u,f,h,A,O;if(t=r,l=H1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=H1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=H1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=KAt(l,a)}else r=t,t=e;return t}function Fn(){var t,l,a,u,f,h,A,O;if(t=r,l=nt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=FAt(l,a)}else r=t,t=e;return t}function tKt(){var t,l,a,u,f,h,A,O;if(t=r,l=rD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=rD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=rD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=SAt(l,a)}else r=t,t=e;return t}function iKt(){var t,l,a,u,f,h,A,O;if(t=r,l=xD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=xD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=xD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=qAt(l,a)}else r=t,t=e;return t}function kf(){var t,l,a,u,f,h,A,O;if(t=r,l=vt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=vt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=vt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ZAt(l,a)}else r=t,t=e;return t}function rKt(){var t,l,a,u,f,h,A,O;if(t=r,l=q1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=q1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=q1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=HAt(l,a)}else r=t,t=e;return t}function HB(){var t,l,a,u,f,h,A,O;if(t=r,l=cw(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=cw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=cw(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=WAt(l,a)}else r=t,t=e;return t}function nKt(){var t,l,a,u,f,h,A,O;if(t=r,l=vD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=vD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=vD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=zAt(l,a)}else r=t,t=e;return t}function aKt(){var t,l,a,u,f,h,A,O;if(t=r,l=TD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=TD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=TD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=JAt(l,a)}else r=t,t=e;return t}function v0(){var t,l,a,u,f,h,A,O;if(t=r,l=xE(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=xE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=xE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=YAt(l,a)}else r=t,t=e;return t}function WB(){var t,l,a,u,f,h,A,O;if(t=r,l=B1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=B1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=B1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=XAt(l,a)}else r=t,t=e;return t}function Wr(){var t,l,a,u,f,h,A,O;if(t=r,l=qe(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=qe(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=QAt(l,a)}else r=t,t=e;return t}function sKt(){var t,l,a,u,f,h,A,O;if(t=r,l=fE(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=fE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=fE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=egt(l,a)}else r=t,t=e;return t}function lKt(){var t,l,a,u,f,h,A,O;if(t=r,l=fl(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=fl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=fl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=tgt(l,a)}else r=t,t=e;return t}function oKt(){var t,l,a,u,f,h,A,O;if(t=r,l=nt(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=nt(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=igt(l,a)}else r=t,t=e;return t}function dKt(){var t,l,a,u,f,h,A,O;if(t=r,l=j1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=j1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=j1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=rgt(l,a)}else r=t,t=e;return t}function uKt(){var t,l,a,u,f,h,A,O;if(t=r,l=eD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=eD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=eD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ngt(l,a)}else r=t,t=e;return t}function pKt(){var t,l,a,u,f,h,A,O;if(t=r,l=tD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=tD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=tD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=agt(l,a)}else r=t,t=e;return t}function zB(){var t,l,a,u,f,h,A,O;if(t=r,l=DD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=DD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=DD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=sgt(l,a)}else r=t,t=e;return t}function cKt(){var t,l,a,u,f,h,A,O;if(t=r,l=VD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=VD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=VD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=lgt(l,a)}else r=t,t=e;return t}function fKt(){var t,l,a,u,f,h,A,O;if(t=r,l=PE(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=PE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=PE(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ogt(l,a)}else r=t,t=e;return t}function yKt(){var t,l,a,u,f,h,A,O;if(t=r,l=Y1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Y1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Y1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=dgt(l,a)}else r=t,t=e;return t}function hKt(){var t,l,a,u,f,h,A,O;if(t=r,l=ec(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ec(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ec(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ugt(l,a)}else r=t,t=e;return t}function mKt(){var t,l,a,u,f,h,A,O;if(t=r,l=oD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=oD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=oD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=pgt(l,a)}else r=t,t=e;return t}function E0(){var t,l,a,u,f,h,A,O;if(t=r,l=Bf(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Bf(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=Bf(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=cgt(l,a)}else r=t,t=e;return t}function TKt(){var t,l,a,u,f,h,A,O;if(t=r,l=OD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=OD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=OD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=fgt(l,a)}else r=t,t=e;return t}function vKt(){var t,l,a,u,f,h,A,O;if(t=r,l=G1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=G1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=G1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ygt(l,a)}else r=t,t=e;return t}function rw(){var t,l,a,u,f,h,A,O;if(t=r,l=ji(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ji(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ji(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=hgt(l,a)}else r=t,t=e;return t}function EKt(){var t,l,a,u,f,h,A,O;if(t=r,l=$f(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=$f(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=$f(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=mgt(l,a)}else r=t,t=e;return t}function bKt(){var t,l,a,u,f,h,A,O;if(t=r,l=_D(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=_D(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=_D(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Tgt(l,a)}else r=t,t=e;return t}function AKt(){var t,l,a,u,f,h,A,O;if(t=r,l=L1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=L1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=L1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=vgt(l,a)}else r=t,t=e;return t}function JB(){var t,l,a,u,f,h,A,O;if(t=r,l=RD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=RD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=RD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Egt(l,a)}else r=t,t=e;return t}function gKt(){var t,l,a,u,f,h,A,O;if(t=r,l=ED(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ED(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=ED(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=bgt(l,a)}else r=t,t=e;return t}function IKt(){var t,l,a,u,f,h,A,O;if(t=r,l=pD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=pD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=pD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Agt(l,a)}else r=t,t=e;return t}function RKt(){var t,l,a,u,f,h,A,O;if(t=r,l=BD(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=BD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=BD(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=ggt(l,a)}else r=t,t=e;return t}function DKt(){var t,l,a,u,f,h,A,O;if(t=r,l=S1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=S1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=S1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Igt(l,a)}else r=t,t=e;return t}function YB(){var t,l,a,u,f,h,A,O;if(t=r,l=A0(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=A0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=A0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Rgt(l,a)}else r=t,t=e;return t}function wKt(){var t,l,a,u,f,h,A,O;if(t=r,l=W1(),l!==e){for(a=[],u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=W1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),s.charCodeAt(r)===44?(h=b,r++):(h=e,T===0&&P(We)),h!==e?(A=g(),O=W1(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=Dgt(l,a)}else r=t,t=e;return t}function XB(){var t,l,a;return t=r,l=r,T++,s.length>r?(a=s.charAt(r),r++):(a=e,T===0&&P(Un)),T--,a!==e?(r=l,l=void 0):l=e,l!==e&&(R=t,l=wgt()),t=l,t}function nw(){var t,l,a,u,f;return t=r,l=qe(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Ogt(l,a)):(r=t,t=e),t}function aw(){var t,l,a,u,f;return t=r,l=nt(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Cgt(l,a)):(r=t,t=e),t}function sw(){var t,l,a,u,f;return t=r,l=vt(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=_gt(l,a)):(r=t,t=e),t}function HE(){var t,l,a,u,f;return t=r,l=m0(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Vgt(l,a)):(r=t,t=e),t}function OKt(){var t,l,a,u,f;return t=r,l=ld(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Pgt(l,a)):(r=t,t=e),t}function lw(){var t,l,a,u,f;return t=r,l=Kn(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Ngt(l,a)):(r=t,t=e),t}function jf(){var t,l,a,u,f;return t=r,l=ec(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=xgt(l,a)):(r=t,t=e),t}function QB(){var t,l,a,u,f;return t=r,l=_Lt(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=$gt(l,a)):(r=t,t=e),t}function CKt(){var t,l,a,u,f;return t=r,l=ULt(),l!==e?(a=r,u=g(),f=uo(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=Lgt(l,a)):(r=t,t=e),t}function WE(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=Qp(),a!==e?(R=t,t=Bgt(l,a)):(r=t,t=e)):(r=t,t=e),t}function eM(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=qMt(),a!==e?(R=t,t=Mgt(l,a)):(r=t,t=e)):(r=t,t=e),t}function tM(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ZMt(),a!==e?(R=t,t=Ggt(l,a)):(r=t,t=e)):(r=t,t=e),t}function _Kt(){var t,l,a,u;return t=r,l=r,a=mr(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=ji(),a!==e?(R=t,t=kgt(l,a)):(r=t,t=e)):(r=t,t=e),t}function VKt(){var t,l,a,u,f,h;return t=r,l=r,a=qe(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(s.charCodeAt(r)===46?(a=w,r++):(a=e,T===0&&P(dl)),a!==e?(u=r,f=g(),h=b0(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=jgt(l,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=qe()),t}function b0(){var t,l;return t=r,l=cl(),l!==e&&(R=t,l=Ugt(l)),t=l,t===e&&(t=dw()),t}function ow(){var t,l,a,u;return t=qe(),t===e&&(t=r,l=Xa(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=Kgt(l)):(r=t,t=e)):(r=t,t=e)),t}function PKt(){var t,l,a,u;return t=ow(),t===e&&(t=r,l=cl(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=Fgt(l)):(r=t,t=e)):(r=t,t=e)),t}function qe(){var t,l,a;return T++,t=dw(),t===e&&(t=r,l=cl(),l!==e?(R=r,a=Sgt(l),a?a=e:a=void 0,a!==e?(R=t,t=qgt(l)):(r=t,t=e)):(r=t,t=e)),T--,t===e&&(l=e,T===0&&P(U9e)),t}function dw(){var t,l,a;return t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=BKt(),a!==e?(R=t,t=Zgt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=iM(),a!==e?(R=t,t=Hgt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=$Kt(),a===e&&(a=nM()),a!==e?(R=t,t=Wgt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=pM(),a!==e?(R=t,t=zgt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=NKt(),a!==e?(R=t,t=Jgt(a)):(r=t,t=e)):(r=t,t=e))))),t}function NKt(){var t,l,a,u,f,h,A,O;if(t=r,l=xKt(),l!==e){for(a=[],u=r,f=g(),h=Vb(),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),a.length>=1?u=e:(u=r,f=g(),h=Vb(),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e));R=t,t=Ygt(l,a)}else r=t,t=e;return t}function xKt(){var t,l;return t=r,l=eFt(),l!==e&&(R=t,l=Xgt(l)),t=l,t}function iM(){var t,l,a,u;if(t=r,s.charCodeAt(r)===96?(l=Zp,r++):(l=e,T===0&&P(Jp)),l!==e){if(a=[],b$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(L$)),u===e&&(u=rM()),u!==e)for(;u!==e;)a.push(u),b$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(L$)),u===e&&(u=rM());else a=e;a!==e?(s.charCodeAt(r)===96?(u=Zp,r++):(u=e,T===0&&P(Jp)),u!==e?(R=t,t=Qgt(a)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function rM(){var t,l;return t=r,s.substr(r,2)===i$?(l=i$,r+=2):(l=e,T===0&&P(K9e)),l!==e&&(R=t,l=eIt()),t=l,t}function nM(){var t,l,a,u;if(t=r,s.charCodeAt(r)===96?(l=Zp,r++):(l=e,T===0&&P(Jp)),l!==e){if(a=[],A$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(B$)),u===e&&(u=Va()),u!==e)for(;u!==e;)a.push(u),A$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(B$)),u===e&&(u=Va());else a=e;a!==e?(s.charCodeAt(r)===96?(u=Zp,r++):(u=e,T===0&&P(Jp)),u!==e?(R=t,t=tIt(a)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function $Kt(){var t,l,a,u;return t=r,s.charCodeAt(r)===96?(l=Zp,r++):(l=e,T===0&&P(Jp)),l!==e?(a=LKt(),a!==e?(s.charCodeAt(r)===96?(u=Zp,r++):(u=e,T===0&&P(Jp)),u!==e?(R=t,t=iIt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function LKt(){var t,l,a,u,f,h,A,O;if(t=r,l=uw(),l!==e){if(a=[],u=r,f=zE(),f!==e?(s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=zE(),A!==e?(O=uw(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e)for(;u!==e;)a.push(u),u=r,f=zE(),f!==e?(s.charCodeAt(r)===46?(h=w,r++):(h=e,T===0&&P(dl)),h!==e?(A=zE(),A!==e?(O=uw(),O===e&&(O=_s()),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e)):(r=u,u=e);else a=e;a!==e?(R=t,t=rIt(l,a)):(r=t,t=e)}else r=t,t=e;return t}function uw(){var t,l,a;if(t=r,l=[],g$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(M$)),a!==e)for(;a!==e;)l.push(a),g$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(M$));else l=e;return l!==e&&(R=t,l=nIt()),t=l,t}function zE(){var t,l;return t=r,R=r,l=aIt(),l?l=void 0:l=e,l!==e&&(R=t,l=sIt()),t=l,t}function BKt(){var t,l,a,u;if(t=r,s.charCodeAt(r)===91?(l=j,r++):(l=e,T===0&&P(e0)),l!==e){if(a=[],I$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(G$)),u===e&&(u=aM()),u!==e)for(;u!==e;)a.push(u),I$.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(G$)),u===e&&(u=aM());else a=e;a!==e?(s.charCodeAt(r)===93?(u=F,r++):(u=e,T===0&&P(t0)),u!==e?(R=t,t=lIt(a)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function aM(){var t,l;return t=r,s.substr(r,2)===r$?(l=r$,r+=2):(l=e,T===0&&P(F9e)),l!==e&&(R=t,l=oIt()),t=l,t}function cl(){var t,l,a,u;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=MKt(),a!==e?(R=t,t=dIt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Uf(),a!==e?(R=t,t=uIt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=Qa(),a===e&&(a=null),u=Uf(),u!==e?(R=t,t=pIt()):(r=t,t=e)):(r=t,t=e))),t}function MKt(){var t,l,a,u,f,h;if(t=r,l=Uf(),l!==e){for(a=[],u=r,s.charCodeAt(r)===45?(f=Ef,r++):(f=e,T===0&&P(Cf)),f!==e?(h=Uf(),h===e&&(h=Qa()),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,s.charCodeAt(r)===45?(f=Ef,r++):(f=e,T===0&&P(Cf)),f!==e?(h=Uf(),h===e&&(h=Qa()),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);l=[l,a],t=l}else r=t,t=e;return t}function Uf(){var t,l,a,u;if(t=r,l=pw(),l!==e){for(a=[],u=W();u!==e;)a.push(u),u=W();l=[l,a],t=l}else r=t,t=e;return t}function pw(){var t,l,a;return t=sM(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ac(),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ac(),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ac(),a===e&&(s.charCodeAt(r)===36?(a=ws,r++):(a=e,T===0&&P(Cs))),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e)))),t}function W(){var t,l,a;return t=sM(),t===e&&(t=I0(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=ac(),a===e&&(s.charCodeAt(r)===36?(a=ws,r++):(a=e,T===0&&P(Cs))),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e))),t}function sM(){var t;return f9e.test(s.charAt(r))?(t=s.charAt(r),r++):(t=e,T===0&&P(S9e)),t}function ac(){var t;return y9e.test(s.charAt(r))?(t=s.charAt(r),r++):(t=e,T===0&&P(q9e)),t}function A0(){var t,l,a;return t=r,s.charCodeAt(r)===64?(l=Tf,r++):(l=e,T===0&&P(wf)),l!==e?(a=cl(),a!==e?(R=t,t=cIt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===64?(l=Tf,r++):(l=e,T===0&&P(wf)),l!==e?(a=iM(),a!==e?(R=t,t=fIt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===64?(l=Tf,r++):(l=e,T===0&&P(wf)),l!==e?(a=Kf(),a!==e?(R=t,t=yIt(a)):(r=t,t=e)):(r=t,t=e))),t}function GKt(){var t,l,a;return t=r,s.substr(r,2)===Zv?(l=Zv,r+=2):(l=e,T===0&&P(V$)),l!==e?(a=cl(),a!==e?(R=t,t=hIt(a)):(r=t,t=e)):(r=t,t=e),t}function lM(){var t,l,a,u;return t=r,l=r,a=TB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=oM(),a!==e?(R=t,t=mIt(l,a)):(r=t,t=e)):(r=t,t=e),t}function oM(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===91?(l=j,r++):(l=e,T===0&&P(e0)),l!==e?(a=r,u=g(),f=kf(),f===e&&(f=XB()),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===93?(u=F,r++):(u=e,T===0&&P(t0)),u!==e?(R=t,t=TIt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kKt(){var t,l,a,u;return t=r,l=r,a=vB(),a!==e?(u=g(),a=[a,u],l=a):(r=l,l=e),l!==e?(a=jKt(),a!==e?(R=t,t=vIt(l,a)):(r=t,t=e)):(r=t,t=e),t}function jKt(){var t,l,a,u,f,h;return t=r,s.charCodeAt(r)===40?(l=kt,r++):(l=e,T===0&&P(jt)),l!==e?(a=r,u=g(),f=HB(),f!==e?(h=g(),u=[u,f,h],a=u):(r=a,a=e),a!==e?(s.charCodeAt(r)===41?(u=St,r++):(u=e,T===0&&P(qt)),u!==e?(R=t,t=EIt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function cw(){var t,l,a,u,f;return t=r,l=vt(),l!==e?(a=r,u=g(),f=O1(),f!==e?(u=[u,f],a=u):(r=a,a=e),a===e&&(a=null),R=t,t=bIt(l,a)):(r=t,t=e),t}function fl(){var t;return t=ji(),t===e&&(t=fa(),t===e&&(t=mM(),t===e&&(t=JE(),t===e&&(t=dM(),t===e&&(t=lFt(),t===e&&(t=oFt(),t===e&&(t=dFt(),t===e&&(t=uFt(),t===e&&(t=pFt(),t===e&&(t=cFt())))))))))),t}function dM(){var t,l;return t=r,l=To(),l!==e&&(R=t,l=AIt(l)),t=l,t}function JE(){var t,l;return t=r,l=SZt(),l!==e&&(R=t,l=gIt(l)),t=l,t===e&&(t=r,l=u3t(),l!==e&&(R=t,l=IIt(l)),t=l),t}function ji(){var t,l,a;return T++,t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=UKt(),a!==e?(R=t,t=RIt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e)),l!==e?(a=Xa(),a!==e?(R=t,t=DIt(a)):(r=t,t=e)):(r=t,t=e)),T--,t===e&&(l=e,T===0&&P(Z9e)),t}function UKt(){var t;return t=KKt(),t===e&&(t=Xa(),t===e&&(t=qKt())),t}function KKt(){var t,l,a,u,f;return t=r,l=ZKt(),l!==e?(a=r,u=g(),f=FKt(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=wIt(l,a)):(r=t,t=e)):(r=t,t=e),t}function FKt(){var t;return t=mM(),t===e&&(t=Xa()),t}function Xa(){var t,l,a;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=fM(),a===e&&(a=yM(),a===e&&(a=uM(),a===e&&(a=cM(),a===e&&(a=rFt())))),a!==e?(R=t,t=OIt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Et(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=yl(),a!==e?(R=t,t=CIt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=SKt(),a!==e?(R=t,t=_It(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=WKt(),a===e&&(a=aFt(),a===e&&(a=zKt(),a===e&&(a=JKt()))),a!==e?(R=t,t=VIt(a)):(r=t,t=e)):(r=t,t=e)))),t}function SKt(){var t,l,a,u,f,h;if(t=r,l=Kf(),l!==e){for(a=[],u=r,f=g(),h=Kf(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=Kf(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=PIt(l,a)}else r=t,t=e;return t}function qKt(){var t,l,a,u,f,h;if(t=r,l=iFt(),l!==e){for(a=[],u=r,f=g(),h=Kf(),h!==e?(f=[f,h],u=f):(r=u,u=e);u!==e;)a.push(u),u=r,f=g(),h=Kf(),h!==e?(f=[f,h],u=f):(r=u,u=e);R=t,t=NIt(l,a)}else r=t,t=e;return t}function Kf(){var t;return t=g0(),t===e&&(t=tFt()),t}function ZKt(){var t,l,a,u,f;return t=r,s.charCodeAt(r)===95?(l=ol,r++):(l=e,T===0&&P(ul)),l!==e?(a=HKt(),a!==e?(u=r,T++,f=W(),T--,f===e?u=void 0:(r=u,u=e),u!==e?(R=t,t=xIt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function HKt(){var t,l;return t=r,l=Uf(),l!==e&&(R=t,l=$It()),t=l,t}function WKt(){var t,l,a,u,f,h,A,O;if(t=r,l=yl(),l!==e){for(a=[],u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=LIt(l,a)}else r=t,t=e;return t}function zKt(){var t,l,a,u,f,h,A,O;if(t=r,l=XKt(),l!==e){for(a=[],u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=g0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=g0(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=BIt(l,a)}else r=t,t=e;return t}function JKt(){var t,l,a,u,f,h,A,O;if(t=r,l=YKt(),l!==e){for(a=[],u=r,f=g(),h=Vb(),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),a.length>=1?u=e:(u=r,f=g(),h=Vb(),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e));R=t,t=MIt(l,a)}else r=t,t=e;return t}function YKt(){var t,l,a,u,f,h,A,O;if(t=r,l=QKt(),l!==e){for(a=[],u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=Ff(),s.charCodeAt(r)===10?(h=Hp,r++):(h=e,T===0&&P(Yp)),h!==e?(A=g(),O=yl(),O!==e?(f=[f,h,A,O],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=GIt(l,a)}else r=t,t=e;return t}function g0(){var t,l,a,u;if(t=r,s.charCodeAt(r)===39?(l=Oa,r++):(l=e,T===0&&P(Ca)),l!==e){for(a=[],Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=YE(),u===e&&(u=Va()));u!==e;)a.push(u),Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=YE(),u===e&&(u=Va()));s.charCodeAt(r)===39?(u=Oa,r++):(u=e,T===0&&P(Ca)),u!==e?(R=t,t=kIt(a)):(r=t,t=e)}else r=t,t=e;return t}function XKt(){var t,l,a;return t=r,s.charCodeAt(r)===69?(l=DKe,r++):(l=e,T===0&&P(H9e)),l!==e?(a=g0(),a!==e?(R=t,t=jIt(a)):(r=t,t=e)):(r=t,t=e),t}function QKt(){var t,l,a;return t=r,s.substr(r,2)===Jv?(l=Jv,r+=2):(l=e,T===0&&P(k$)),l!==e?(a=yl(),a!==e?(R=t,t=UIt(a)):(r=t,t=e)):(r=t,t=e),t}function eFt(){var t,l,a;return t=r,s.substr(r,2)===Jv?(l=Jv,r+=2):(l=e,T===0&&P(k$)),l!==e?(a=pM(),a!==e?(R=t,t=KIt(a)):(r=t,t=e)):(r=t,t=e),t}function uM(){var t,l,a,u;if(t=r,s.charCodeAt(r)===39?(l=Oa,r++):(l=e,T===0&&P(Ca)),l!==e){for(a=[],Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=Va());u!==e;)a.push(u),Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=Va());s.charCodeAt(r)===39?(u=Oa,r++):(u=e,T===0&&P(Ca)),u!==e?(R=t,t=FIt(a)):(r=t,t=e)}else r=t,t=e;return t}function yl(){var t,l,a,u;if(t=r,s.charCodeAt(r)===39?(l=Oa,r++):(l=e,T===0&&P(Ca)),l!==e){for(a=[],gf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Vf)),u===e&&(u=YE());u!==e;)a.push(u),gf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Vf)),u===e&&(u=YE());s.charCodeAt(r)===39?(u=Oa,r++):(u=e,T===0&&P(Ca)),u!==e?(R=t,t=SIt(a)):(r=t,t=e)}else r=t,t=e;return t}function YE(){var t,l;return t=r,s.substr(r,2)===Yv?(l=Yv,r+=2):(l=e,T===0&&P(j$)),l!==e&&(R=t,l=qIt()),t=l,t}function pM(){var t,l,a,u;if(t=r,s.charCodeAt(r)===34?(l=no,r++):(l=e,T===0&&P(so)),l!==e){for(a=[],If.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Pf)),u===e&&(u=XE());u!==e;)a.push(u),If.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Pf)),u===e&&(u=XE());s.charCodeAt(r)===34?(u=no,r++):(u=e,T===0&&P(so)),u!==e?(R=t,t=ZIt(a)):(r=t,t=e)}else r=t,t=e;return t}function XE(){var t,l;return t=r,s.substr(r,2)===Xv?(l=Xv,r+=2):(l=e,T===0&&P(U$)),l!==e&&(R=t,l=HIt()),t=l,t}function tFt(){var t,l,a,u;if(t=r,s.charCodeAt(r)===34?(l=no,r++):(l=e,T===0&&P(so)),l!==e){for(a=[],Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=XE(),u===e&&(u=Va()));u!==e;)a.push(u),Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=XE(),u===e&&(u=Va()));s.charCodeAt(r)===34?(u=no,r++):(u=e,T===0&&P(so)),u!==e?(R=t,t=WIt(a)):(r=t,t=e)}else r=t,t=e;return t}function cM(){var t,l,a,u;if(t=r,s.charCodeAt(r)===34?(l=no,r++):(l=e,T===0&&P(so)),l!==e){for(a=[],Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=Va());u!==e;)a.push(u),Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=Va());s.charCodeAt(r)===34?(u=no,r++):(u=e,T===0&&P(so)),u!==e?(R=t,t=zIt(a)):(r=t,t=e)}else r=t,t=e;return t}function fM(){var t,l,a,u;if(t=r,s.substr(r,3)===nu?(l=nu,r+=3):(l=e,T===0&&P(aE)),l!==e){for(a=[],Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=QE(),u===e&&(u=Va()));u!==e;)a.push(u),Af.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(_f)),u===e&&(u=QE(),u===e&&(u=Va()));s.substr(r,3)===nu?(u=nu,r+=3):(u=e,T===0&&P(aE)),u!==e?(R=t,t=JIt(a)):(r=t,t=e)}else r=t,t=e;return t}function QE(){var t,l,a,u;return t=r,s.substr(r,2)===Yv?(l=Yv,r+=2):(l=e,T===0&&P(j$)),l===e&&(s.charCodeAt(r)===39?(l=Oa,r++):(l=e,T===0&&P(Ca))),l!==e?(a=r,T++,s.charCodeAt(r)===39?(u=Oa,r++):(u=e,T===0&&P(Ca)),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YIt(l)):(r=t,t=e)):(r=t,t=e),t}function yM(){var t,l,a,u;if(t=r,s.substr(r,3)===au?(l=au,r+=3):(l=e,T===0&&P(sE)),l!==e){for(a=[],Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=eb(),u===e&&(u=Va()));u!==e;)a.push(u),Rf.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(Nf)),u===e&&(u=eb(),u===e&&(u=Va()));s.substr(r,3)===au?(u=au,r+=3):(u=e,T===0&&P(sE)),u!==e?(R=t,t=XIt(a)):(r=t,t=e)}else r=t,t=e;return t}function eb(){var t,l,a,u;return t=r,s.substr(r,2)===Xv?(l=Xv,r+=2):(l=e,T===0&&P(U$)),l===e&&(s.charCodeAt(r)===34?(l=no,r++):(l=e,T===0&&P(so))),l!==e?(a=r,T++,s.charCodeAt(r)===34?(u=no,r++):(u=e,T===0&&P(so)),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QIt(l)):(r=t,t=e)):(r=t,t=e),t}function Va(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt;return t=r,s.substr(r,2)===n$?(l=n$,r+=2):(l=e,T===0&&P(W9e)),l!==e&&(R=t,l=eRt()),t=l,t===e&&(t=r,s.substr(r,2)===a$?(l=a$,r+=2):(l=e,T===0&&P(z9e)),l!==e&&(R=t,l=tRt()),t=l,t===e&&(t=r,s.substr(r,2)===s$?(l=s$,r+=2):(l=e,T===0&&P(J9e)),l!==e&&(R=t,l=iRt()),t=l,t===e&&(t=r,s.substr(r,2)===l$?(l=l$,r+=2):(l=e,T===0&&P(Y9e)),l!==e&&(R=t,l=rRt()),t=l,t===e&&(t=r,s.substr(r,2)===o$?(l=o$,r+=2):(l=e,T===0&&P(X9e)),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e),a!==e?(R=t,t=nRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===d$?(l=d$,r+=2):(l=e,T===0&&P(Q9e)),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=aRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===u$?(l=u$,r+=2):(l=e,T===0&&P(eWe)),l!==e?(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=sRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(a=r,u=r,ua.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(ca)),f!==e?(ua.test(s.charAt(r))?(h=s.charAt(r),r++):(h=e,T===0&&P(ca)),h!==e?(ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca)),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u===e&&(u=r,ua.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(ca)),f!==e?(ua.test(s.charAt(r))?(h=s.charAt(r),r++):(h=e,T===0&&P(ca)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e),u===e&&(ua.test(s.charAt(r))?(u=s.charAt(r),r++):(u=e,T===0&&P(ca)))),u!==e?a=s.substring(a,r):a=u,a!==e?(u=r,T++,f=Ge(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=lRt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(a=r,u=r,ua.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(ca)),f!==e?(ua.test(s.charAt(r))?(h=s.charAt(r),r++):(h=e,T===0&&P(ca)),h!==e?(ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca)),A!==e?(f=[f,h,A],u=f):(r=u,u=e)):(r=u,u=e)):(r=u,u=e),u!==e?a=s.substring(a,r):a=u,a!==e?(u=r,T++,f=Je(),T--,f!==e?(r=u,u=void 0):u=e,u!==e?(R=t,t=oRt(a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(s.charCodeAt(r)===120?(a=s1,r++):(a=e,T===0&&P(tWe)),a!==e?(u=r,f=r,h=lr(),h!==e?(A=lr(),A!==e?(h=[h,A],f=h):(r=f,f=e)):(r=f,f=e),f===e&&(f=lr()),f!==e?u=s.substring(u,r):u=f,u!==e?(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=t,t=dRt(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(s.substr(r,1).toLowerCase()===s1?(a=s.charAt(r),r++):(a=e,T===0&&P(iWe)),a!==e?(u=r,f=r,h=lr(),h!==e?(A=lr(),A!==e?(h=[h,A],f=h):(r=f,f=e)):(r=f,f=e),f!==e?u=s.substring(u,r):u=f,u!==e?(f=r,T++,h=Je(),T--,h!==e?(r=f,f=void 0):f=e,f!==e?(R=t,t=uRt(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(s.charCodeAt(r)===117?(a=wKe,r++):(a=e,T===0&&P(rWe)),a!==e?(u=r,f=r,h=lr(),h!==e?(A=lr(),A!==e?(O=lr(),O!==e?(z=lr(),z!==e?(h=[h,A,O,z],f=h):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e),f!==e?u=s.substring(u,r):u=f,u!==e?(f=r,T++,h=Je(),T--,h!==e?(r=f,f=void 0):f=e,f===e&&(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e),f!==e?(R=t,t=pRt(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(s.charCodeAt(r)===85?(a=OKe,r++):(a=e,T===0&&P(nWe)),a!==e?(u=r,f=r,h=lr(),h!==e?(A=lr(),A!==e?(O=lr(),O!==e?(z=lr(),z!==e?(Te=lr(),Te!==e?($e=lr(),$e!==e?(Xe=lr(),Xe!==e?(pt=lr(),pt!==e?(h=[h,A,O,z,Te,$e,Xe,pt],f=h):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e)):(r=f,f=e),f!==e?u=s.substring(u,r):u=f,u!==e?(f=r,T++,h=Je(),T--,h!==e?(r=f,f=void 0):f=e,f===e&&(f=r,T++,h=Ge(),T--,h!==e?(r=f,f=void 0):f=e),f!==e?(R=t,t=cRt(u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===p$?(l=p$,r+=2):(l=e,T===0&&P(aWe)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=fRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===c$?(l=c$,r+=2):(l=e,T===0&&P(sWe)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=yRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===f$?(l=f$,r+=2):(l=e,T===0&&P(lWe)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=hRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.substr(r,2)===y$?(l=y$,r+=2):(l=e,T===0&&P(oWe)),l!==e?(a=r,T++,u=it(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=mRt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,s.charCodeAt(r)===92?(l=Wp,r++):(l=e,T===0&&P(Xp)),l!==e?(s.length>r?(a=s.charAt(r),r++):(a=e,T===0&&P(Un)),a!==e?(R=t,t=TRt(a)):(r=t,t=e)):(r=t,t=e)))))))))))))))))),t}function iFt(){var t,l,a;return t=r,s.substr(r,1).toLowerCase()===CKe?(l=s.charAt(r),r++):(l=e,T===0&&P(dWe)),l!==e?(a=g0(),a!==e?(R=t,t=vRt(a)):(r=t,t=e)):(r=t,t=e),t}function rFt(){var t,l,a;return t=r,s.substr(r,1).toLowerCase()===_Ke?(l=s.charAt(r),r++):(l=e,T===0&&P(uWe)),l!==e?(a=hM(),a!==e?(R=t,t=ERt(a)):(r=t,t=e)):(r=t,t=e),t}function nFt(){var t,l,a;return t=r,s.substr(r,2).toLowerCase()===VKe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(pWe)),l===e&&(s.substr(r,2).toLowerCase()===PKe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(cWe))),l!==e?(a=hM(),a!==e?(R=t,t=bRt(a)):(r=t,t=e)):(r=t,t=e),t}function hM(){var t,l,a,u,f;if(t=r,s.substr(r,3)===nu?(l=nu,r+=3):(l=e,T===0&&P(aE)),l!==e){for(a=r,u=[],gf.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Vf)),f===e&&(f=QE());f!==e;)u.push(f),gf.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Vf)),f===e&&(f=QE());a=s.substring(a,r),s.substr(r,3)===nu?(u=nu,r+=3):(u=e,T===0&&P(aE)),u!==e?(R=t,t=ARt(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,s.substr(r,3)===au?(l=au,r+=3):(l=e,T===0&&P(sE)),l!==e){for(a=r,u=[],If.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Pf)),f===e&&(f=eb());f!==e;)u.push(f),If.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Pf)),f===e&&(f=eb());a=s.substring(a,r),s.substr(r,3)===au?(u=au,r+=3):(u=e,T===0&&P(sE)),u!==e?(R=t,t=gRt(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,s.charCodeAt(r)===39?(l=Oa,r++):(l=e,T===0&&P(Ca)),l!==e){for(a=r,u=[],gf.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Vf));f!==e;)u.push(f),gf.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Vf));a=s.substring(a,r),s.charCodeAt(r)===39?(u=Oa,r++):(u=e,T===0&&P(Ca)),u!==e?(R=t,t=IRt(a)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,s.charCodeAt(r)===34?(l=no,r++):(l=e,T===0&&P(so)),l!==e){for(a=r,u=[],If.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Pf));f!==e;)u.push(f),If.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(Pf));a=s.substring(a,r),s.charCodeAt(r)===34?(u=no,r++):(u=e,T===0&&P(so)),u!==e?(R=t,t=RRt(a)):(r=t,t=e)}else r=t,t=e}}return t}function aFt(){var t,l,a,u,f,h,A,O,z,Te,$e,Xe,pt;if(t=r,s.substr(r,2)===su?(l=su,r+=2):(l=e,T===0&&P(lE)),l!==e){for(a=r,u=[],f=r,h=r,T++,s.substr(r,2)===su?(A=su,r+=2):(A=e,T===0&&P(lE)),T--,A===e?h=void 0:(r=h,h=e),h!==e?(s.length>r?(A=s.charAt(r),r++):(A=e,T===0&&P(Un)),A!==e?(h=[h,A],f=h):(r=f,f=e)):(r=f,f=e);f!==e;)u.push(f),f=r,h=r,T++,s.substr(r,2)===su?(A=su,r+=2):(A=e,T===0&&P(lE)),T--,A===e?h=void 0:(r=h,h=e),h!==e?(s.length>r?(A=s.charAt(r),r++):(A=e,T===0&&P(Un)),A!==e?(h=[h,A],f=h):(r=f,f=e)):(r=f,f=e);a=s.substring(a,r),s.substr(r,2)===su?(u=su,r+=2):(u=e,T===0&&P(lE)),u!==e?(R=t,t=DRt(a)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,s.charCodeAt(r)===36?(l=ws,r++):(l=e,T===0&&P(Cs)),l!==e)if(a=tb(),a!==e)if(s.charCodeAt(r)===36?(u=ws,r++):(u=e,T===0&&P(Cs)),u!==e){for(f=r,h=[],A=r,O=r,T++,z=r,s.charCodeAt(r)===36?(Te=ws,r++):(Te=e,T===0&&P(Cs)),Te!==e?($e=tb(),$e!==e?(s.charCodeAt(r)===36?(Xe=ws,r++):(Xe=e,T===0&&P(Cs)),Xe!==e?(R=r,pt=H$(a,$e),pt?pt=void 0:pt=e,pt!==e?(Te=[Te,$e,Xe,pt],z=Te):(r=z,z=e)):(r=z,z=e)):(r=z,z=e)):(r=z,z=e),T--,z===e?O=void 0:(r=O,O=e),O!==e?(s.length>r?(z=s.charAt(r),r++):(z=e,T===0&&P(Un)),z!==e?(O=[O,z],A=O):(r=A,A=e)):(r=A,A=e);A!==e;)h.push(A),A=r,O=r,T++,z=r,s.charCodeAt(r)===36?(Te=ws,r++):(Te=e,T===0&&P(Cs)),Te!==e?($e=tb(),$e!==e?(s.charCodeAt(r)===36?(Xe=ws,r++):(Xe=e,T===0&&P(Cs)),Xe!==e?(R=r,pt=H$(a,$e),pt?pt=void 0:pt=e,pt!==e?(Te=[Te,$e,Xe,pt],z=Te):(r=z,z=e)):(r=z,z=e)):(r=z,z=e)):(r=z,z=e),T--,z===e?O=void 0:(r=O,O=e),O!==e?(s.length>r?(z=s.charAt(r),r++):(z=e,T===0&&P(Un)),z!==e?(O=[O,z],A=O):(r=A,A=e)):(r=A,A=e);f=s.substring(f,r),s.charCodeAt(r)===36?(h=ws,r++):(h=e,T===0&&P(Cs)),h!==e?(A=tb(),A!==e?(s.charCodeAt(r)===36?(O=ws,r++):(O=e,T===0&&P(Cs)),O!==e?(R=r,z=wRt(a,f,A),z?z=void 0:z=e,z!==e?(R=t,t=ORt(a,f)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function tb(){var t,l,a,u;if(t=r,l=ac(),l!==e){for(a=[],u=ac(),u===e&&(u=I0());u!==e;)a.push(u),u=ac(),u===e&&(u=I0());R=t,t=CRt()}else r=t,t=e;return t}function sFt(){var t,l,a;return t=r,s.substr(r,1).toLowerCase()===h$?(l=s.charAt(r),r++):(l=e,T===0&&P(fWe)),l!==e?(a=yM(),a===e&&(a=fM(),a===e&&(a=cM(),a===e&&(a=uM()))),a!==e?(R=t,t=_Rt(a)):(r=t,t=e)):(r=t,t=e),t}function lFt(){var t,l,a,u,f;return t=r,l=gw(),l!==e?(a=r,u=g(),f=Xa(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(u=r,T++,f=it(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Et(),T--,f!==e?(r=u,u=void 0):u=e,u===e&&(u=r,T++,f=Je(),T--,f!==e?(r=u,u=void 0):u=e)),u!==e?(R=t,t=VRt(l,a)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=uO(),l!==e?(a=r,u=g(),f=Xa(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=PRt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=cb(),l!==e?(a=r,u=g(),f=Xa(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=NRt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=hc(),l!==e?(a=r,u=g(),f=Xa(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=xRt(l,a)):(r=t,t=e)):(r=t,t=e)))),t}function oFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=Lw(),a!==e?(u=r,f=g(),h=Xa(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=$Rt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=S3t(),a!==e?(u=r,f=g(),h=Xa(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=LRt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function uFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=Zw(),a!==e?(u=r,f=g(),h=Xa(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=BRt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=xM(),a!==e?(u=r,f=g(),h=Xa(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=MRt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function cFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=ey(),a!==e?(u=r,f=g(),h=Xa(),h!==e?(f=[f,h],u=f):(r=u,u=e),u!==e?(R=t,t=GRt(a,u)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function mM(){var t,l,a;return t=fFt(),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l===e&&(l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e),l!==e?(a=yFt(),a!==e?(R=t,t=kRt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=mFt(),a!==e?(R=t,t=jRt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=it(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=vFt(),a!==e?(R=t,t=URt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=nFt(),a!==e?(R=t,t=KRt(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Je(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=sFt(),a!==e?(R=t,t=FRt(a)):(r=t,t=e)):(r=t,t=e)))))),t}function fFt(){var t,l,a,u,f,h;if(t=r,s.substr(r,1).toLowerCase()===s1?(l=s.charAt(r),r++):(l=e,T===0&&P(yWe)),l!==e)if(s.charCodeAt(r)===39?(a=Oa,r++):(a=e,T===0&&P(Ca)),a!==e){for(u=r,f=[],h=lr();h!==e;)f.push(h),h=lr();u=s.substring(u,r),s.charCodeAt(r)===39?(f=Oa,r++):(f=e,T===0&&P(Ca)),f!==e?(R=t,t=SRt(u)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function yFt(){var t,l,a,u,f,h;if(t=r,s.substr(r,1).toLowerCase()===h$?(l=s.charAt(r),r++):(l=e,T===0&&P(hWe)),l!==e)if(s.charCodeAt(r)===39?(a=Oa,r++):(a=e,T===0&&P(Ca)),a!==e){for(u=r,f=[],ao.test(s.charAt(r))?(h=s.charAt(r),r++):(h=e,T===0&&P(lo));h!==e;)f.push(h),ao.test(s.charAt(r))?(h=s.charAt(r),r++):(h=e,T===0&&P(lo));u=s.substring(u,r),s.charCodeAt(r)===39?(f=Oa,r++):(f=e,T===0&&P(Ca)),f!==e?(R=t,t=qRt(u)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function sc(){var t,l,a,u,f;return t=r,s.charCodeAt(r)===45?(l=Ef,r++):(l=e,T===0&&P(Cf)),l===e&&(s.charCodeAt(r)===43?(l=Wv,r++):(l=e,T===0&&P(nE))),l!==e?(a=r,u=g(),f=fa(),f!==e?(u=[u,f],a=u):(r=a,a=e),a!==e?(R=t,t=ZRt(l,a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=fa()),t}function fa(){var t,l,a,u;return T++,t=bFt(),t===e&&(t=r,l=hFt(),l!==e?(a=r,T++,u=Et(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Je(),T--,u!==e?(r=a,a=void 0):a=e,a===e&&(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e)),a!==e?(R=t,t=HRt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=TFt(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=WRt(l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=EFt(),l!==e?(a=r,T++,u=Ge(),T--,u!==e?(r=a,a=void 0):a=e,a!==e?(R=t,t=zRt(l)):(r=t,t=e)):(r=t,t=e)))),T--,t===e&&(l=e,T===0&&P(mWe)),t}function hFt(){var t,l,a,u,f;if(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(s.substr(r,2)===bf?(a=bf,r+=2):(a=e,T===0&&P(v1)),a!==e?(u=gFt(),u!==e?(R=t,t=JRt()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e)if(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e)if(s.substr(r,2)===bf?(a=bf,r+=2):(a=e,T===0&&P(v1)),a!==e){if(u=[],f=lr(),f!==e)for(;f!==e;)u.push(f),f=lr();else u=e;u!==e?(R=t,t=YRt()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function mFt(){var t,l,a,u,f;if(t=r,s.substr(r,2)===bf?(l=bf,r+=2):(l=e,T===0&&P(v1)),l!==e){if(a=r,u=[],f=lr(),f!==e)for(;f!==e;)u.push(f),f=lr();else u=e;u!==e?a=s.substring(a,r):a=u,a!==e?(R=t,t=XRt(a)):(r=t,t=e)}else r=t,t=e;return t}function TFt(){var t,l,a,u;return t=r,s.substr(r,2)===Qv?(l=Qv,r+=2):(l=e,T===0&&P(K$)),l!==e?(a=r,u=RFt(),u!==e?a=s.substring(a,r):a=u,a!==e?(R=t,t=QRt(a)):(r=t,t=e)):(r=t,t=e),t}function vFt(){var t,l,a,u,f;if(t=r,s.substr(r,2)===Qv?(l=Qv,r+=2):(l=e,T===0&&P(K$)),l!==e){if(a=r,u=[],ao.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(lo)),f!==e)for(;f!==e;)u.push(f),ao.test(s.charAt(r))?(f=s.charAt(r),r++):(f=e,T===0&&P(lo));else u=e;u!==e?a=s.substring(a,r):a=u,a!==e?(R=t,t=e1t(a)):(r=t,t=e)}else r=t,t=e;return t}function EFt(){var t,l,a,u;return t=r,s.substr(r,2)===m$?(l=m$,r+=2):(l=e,T===0&&P(TWe)),l!==e?(a=r,u=IFt(),u!==e?a=s.substring(a,r):a=u,a!==e?(R=t,t=t1t(a)):(r=t,t=e)):(r=t,t=e),t}function bFt(){var t,l,a,u,f,h;return t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=r,u=vM(),u!==e?(f=TM(),f===e&&(f=null),u=[u,f],a=u):(r=a,a=e),a===e&&(a=TM()),a!==e?(u=AFt(),u===e&&(u=null),f=r,T++,h=pw(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(R=t,t=i1t()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=r,u=Qa(),u!==e?(f=EM(),f===e&&(f=null),u=[u,f],a=u):(r=a,a=e),a===e&&(a=EM()),a!==e?(u=bM(),u===e&&(u=null),f=r,T++,h=pw(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(R=t,t=r1t()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function AFt(){var t,l,a,u,f,h;if(t=r,l=bM(),l!==e){for(a=[],u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e?(h=Qa(),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e?(h=Qa(),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);l=[l,a],t=l}else r=t,t=e;return t}function TM(){var t,l,a;return t=r,s.charCodeAt(r)===46?(l=w,r++):(l=e,T===0&&P(dl)),l!==e?(a=vM(),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e),t}function vM(){var t,l,a,u,f,h;if(t=r,l=Qa(),l!==e){for(a=[],u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e?(h=Qa(),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e?(h=Qa(),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);l=[l,a],t=l}else r=t,t=e;return t}function gFt(){var t,l,a,u,f,h,A;if(t=r,l=[],a=lr(),a!==e)for(;a!==e;)l.push(a),a=lr();else l=e;if(l!==e){if(a=[],u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],A=lr(),A!==e)for(;A!==e;)h.push(A),A=lr();else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;for(;u!==e;)if(a.push(u),u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],A=lr(),A!==e)for(;A!==e;)h.push(A),A=lr();else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;l=[l,a],t=l}else r=t,t=e;return t}function IFt(){var t,l,a,u,f,h,A;if(t=r,l=[],ua.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(ca)),a!==e)for(;a!==e;)l.push(a),ua.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(ca));else l=e;if(l!==e){if(a=[],u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca)),A!==e)for(;A!==e;)h.push(A),ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca));else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;for(;u!==e;)if(a.push(u),u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca)),A!==e)for(;A!==e;)h.push(A),ua.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(ca));else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;l=[l,a],t=l}else r=t,t=e;return t}function RFt(){var t,l,a,u,f,h,A;if(t=r,l=[],ao.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(lo)),a!==e)for(;a!==e;)l.push(a),ao.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(lo));else l=e;if(l!==e){if(a=[],u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],ao.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(lo)),A!==e)for(;A!==e;)h.push(A),ao.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(lo));else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;for(;u!==e;)if(a.push(u),u=r,s.charCodeAt(r)===95?(f=ol,r++):(f=e,T===0&&P(ul)),f!==e){if(h=[],ao.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(lo)),A!==e)for(;A!==e;)h.push(A),ao.test(s.charAt(r))?(A=s.charAt(r),r++):(A=e,T===0&&P(lo));else h=e;h!==e?(f=[f,h],u=f):(r=u,u=e)}else r=u,u=e;l=[l,a],t=l}else r=t,t=e;return t}function EM(){var t,l,a;return t=r,s.charCodeAt(r)===46?(l=w,r++):(l=e,T===0&&P(dl)),l!==e?(a=Qa(),a!==e?(l=[l,a],t=l):(r=t,t=e)):(r=t,t=e),t}function bM(){var t,l,a,u;return t=r,h9e.test(s.charAt(r))?(l=s.charAt(r),r++):(l=e,T===0&&P(vWe)),l!==e?(m9e.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(EWe)),a===e&&(a=null),u=Qa(),u!==e?(l=[l,a,u],t=l):(r=t,t=e)):(r=t,t=e),t}function Qa(){var t,l,a;if(t=r,l=[],a=I0(),a!==e)for(;a!==e;)l.push(a),a=I0();else l=e;return l!==e&&(R=t,l=n1t()),t=l,t}function I0(){var t;return T9e.test(s.charAt(r))?(t=s.charAt(r),r++):(t=e,T===0&&P(bWe)),t}function lr(){var t;return v9e.test(s.charAt(r))?(t=s.charAt(r),r++):(t=e,T===0&&P(AWe)),t}function g(){var t,l,a;for(T++,t=r,l=[],a=ib(),a===e&&(a=gM(),a===e&&(a=AM()));a!==e;)l.push(a),a=ib(),a===e&&(a=gM(),a===e&&(a=AM()));return R=t,l=a1t(l),t=l,T--,l=e,T===0&&P(gWe),t}function Ff(){var t,l,a;for(t=r,l=[],a=ib(),a===e&&(a=yw());a!==e;)l.push(a),a=ib(),a===e&&(a=yw());return R=t,l=s1t(l),t=l,t}function AM(){var t,l,a;return t=yw(),t===e&&(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=wFt(),a!==e?(R=t,t=l1t(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a===e?l=void 0:(r=l,l=e),l!==e?(a=DFt(),a!==e?(R=t,t=o1t(a)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,l=r,T++,a=Ge(),T--,a!==e?(r=l,l=void 0):l=e,l!==e?(a=fw(),a!==e?(R=t,t=d1t(a)):(r=t,t=e)):(r=t,t=e)))),t}function DFt(){var t,l,a,u,f,h;if(t=r,s.substr(r,2)===eE?(l=eE,r+=2):(l=e,T===0&&P(F$)),l!==e){for(a=[],u=r,f=r,T++,s.substr(r,2)===Os?(h=Os,r+=2):(h=e,T===0&&P(xf)),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=r,T++,s.substr(r,2)===Os?(h=Os,r+=2):(h=e,T===0&&P(xf)),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);s.substr(r,2)===Os?(u=Os,r+=2):(u=e,T===0&&P(xf)),u!==e?(R=t,t=u1t()):(r=t,t=e)}else r=t,t=e;return t}function fw(){var t,l,a,u,f,h;if(t=r,s.substr(r,2)===eE?(l=eE,r+=2):(l=e,T===0&&P(F$)),l!==e){for(a=[],u=fw(),u===e&&(u=r,f=r,T++,s.substr(r,2)===Os?(h=Os,r+=2):(h=e,T===0&&P(xf)),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e));u!==e;)a.push(u),u=fw(),u===e&&(u=r,f=r,T++,s.substr(r,2)===Os?(h=Os,r+=2):(h=e,T===0&&P(xf)),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e));s.substr(r,2)===Os?(u=Os,r+=2):(u=e,T===0&&P(xf)),u!==e?(R=t,t=p1t()):(r=t,t=e)}else r=t,t=e;return t}function yw(){var t,l,a,u,f,h;if(t=r,s.substr(r,2)===T$?(l=T$,r+=2):(l=e,T===0&&P(IWe)),l!==e){for(a=[],u=r,f=r,T++,h=rb(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=r,T++,h=rb(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=c1t()}else r=t,t=e;return t}function wFt(){var t,l,a,u,f,h;if(t=r,s.charCodeAt(r)===35?(l=e$,r++):(l=e,T===0&&P(N$)),l!==e){for(a=[],u=r,f=r,T++,h=rb(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);u!==e;)a.push(u),u=r,f=r,T++,h=rb(),T--,h===e?f=void 0:(r=f,f=e),f!==e?(s.length>r?(h=s.charAt(r),r++):(h=e,T===0&&P(Un)),h!==e?(f=[f,h],u=f):(r=u,u=e)):(r=u,u=e);R=t,t=f1t()}else r=t,t=e;return t}function ib(){var t,l,a;if(t=r,l=[],R$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(S$)),a!==e)for(;a!==e;)l.push(a),R$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(S$));else l=e;return l!==e&&(R=t,l=y1t()),t=l,t}function gM(){var t,l;return t=r,s.substr(r,2)===v$?(l=v$,r+=2):(l=e,T===0&&P(RWe)),l===e&&(s.charCodeAt(r)===10?(l=Hp,r++):(l=e,T===0&&P(Yp))),l!==e&&(R=t,l=h1t()),t=l,t}function rb(){var t;return t=IM(),t===e&&(E9e.test(s.charAt(r))?(t=s.charAt(r),r++):(t=e,T===0&&P(DWe))),t}function IM(){var t,l;return t=r,T++,s.length>r?(l=s.charAt(r),r++):(l=e,T===0&&P(Un)),T--,l===e?t=void 0:(r=t,t=e),t}function Je(){var t;return R=r,t=m1t(),t?t=void 0:t=e,t}function Et(){var t;return R=r,t=T1t(),t?t=void 0:t=e,t}function it(){var t;return R=r,t=v1t(),t?t=void 0:t=e,t}function pu(){var t;return R=r,t=E1t(),t?t=void 0:t=e,t}function nb(){var t;return R=r,t=b1t(),t?t=void 0:t=e,t}function Ge(){var t;return R=r,t=A1t(),t?t=void 0:t=e,t}function OFt(){var t,l,a;if(t=r,l=[],D$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(q$)),a!==e)for(;a!==e;)l.push(a),D$.test(s.charAt(r))?(a=s.charAt(r),r++):(a=e,T===0&&P(q$));else l=e;return l!==e&&(R=t,l=g1t()),t=l,t}function RM(){var t,l;return t=r,l=cl(),l!==e&&(R=t,l=I1t(l)),t=l,t}function ab(){var t,l,a;return t=r,l=cl(),l!==e?(R=r,a=R1t(l),a?a=e:a=void 0,a!==e?(R=t,t=D1t(l)):(r=t,t=e)):(r=t,t=e),t}function sb(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===NKe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(wWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=w1t(l)):(r=t,t=e)):(r=t,t=e),t}function lb(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===xKe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(OWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=O1t(l)):(r=t,t=e)):(r=t,t=e),t}function CFt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===$Ke?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(CWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=C1t(l)):(r=t,t=e)):(r=t,t=e),t}function lc(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===LKe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(_We)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_1t(l)):(r=t,t=e)):(r=t,t=e),t}function hw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===BKe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(VWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=V1t(l)):(r=t,t=e)):(r=t,t=e),t}function DM(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===MKe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(PWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=P1t(l)):(r=t,t=e)):(r=t,t=e),t}function _Ft(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===GKe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(NWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=N1t(l)):(r=t,t=e)):(r=t,t=e),t}function nn(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===kKe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(xWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=x1t(l)):(r=t,t=e)):(r=t,t=e),t}function Mr(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===jKe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P($We)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$1t(l)):(r=t,t=e)):(r=t,t=e),t}function R0(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===UKe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(LWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=L1t(l)):(r=t,t=e)):(r=t,t=e),t}function wM(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===KKe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(BWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=B1t(l)):(r=t,t=e)):(r=t,t=e),t}function fo(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===FKe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(MWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=M1t(l)):(r=t,t=e)):(r=t,t=e),t}function OM(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===SKe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(GWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=G1t(l)):(r=t,t=e)):(r=t,t=e),t}function mw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===qKe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(kWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=k1t(l)):(r=t,t=e)):(r=t,t=e),t}function mr(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===ZKe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(jWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=j1t(l)):(r=t,t=e)):(r=t,t=e),t}function VFt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===HKe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(UWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=U1t(l)):(r=t,t=e)):(r=t,t=e),t}function PFt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===WKe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(KWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=K1t(l)):(r=t,t=e)):(r=t,t=e),t}function NFt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===zKe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(FWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=F1t(l)):(r=t,t=e)):(r=t,t=e),t}function CM(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===JKe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(SWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=S1t(l)):(r=t,t=e)):(r=t,t=e),t}function xFt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===YKe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(qWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=q1t(l)):(r=t,t=e)):(r=t,t=e),t}function _M(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===XKe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(ZWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Z1t(l)):(r=t,t=e)):(r=t,t=e),t}function ob(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===QKe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(HWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=H1t(l)):(r=t,t=e)):(r=t,t=e),t}function $Ft(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===eFe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(WWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=W1t(l)):(r=t,t=e)):(r=t,t=e),t}function VM(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===tFe?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(zWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=z1t(l)):(r=t,t=e)):(r=t,t=e),t}function LFt(){var t,l,a,u;return t=r,s.substr(r,15).toLowerCase()===iFe?(l=s.substr(r,15),r+=15):(l=e,T===0&&P(JWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=J1t(l)):(r=t,t=e)):(r=t,t=e),t}function BFt(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===rFe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(YWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Y1t(l)):(r=t,t=e)):(r=t,t=e),t}function MFt(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===nFe?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(XWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=X1t(l)):(r=t,t=e)):(r=t,t=e),t}function PM(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===aFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(QWe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Q1t(l)):(r=t,t=e)):(r=t,t=e),t}function D0(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===sFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(eze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eDt(l)):(r=t,t=e)):(r=t,t=e),t}function GFt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===lFe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(tze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tDt(l)):(r=t,t=e)):(r=t,t=e),t}function oc(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===oFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ize)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iDt(l)):(r=t,t=e)):(r=t,t=e),t}function kFt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===dFe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(rze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rDt(l)):(r=t,t=e)):(r=t,t=e),t}function jFt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===uFe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(nze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nDt(l)):(r=t,t=e)):(r=t,t=e),t}function NM(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===pFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(aze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aDt(l)):(r=t,t=e)):(r=t,t=e),t}function xM(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===cFe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(sze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sDt(l)):(r=t,t=e)):(r=t,t=e),t}function $M(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===fFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(lze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lDt(l)):(r=t,t=e)):(r=t,t=e),t}function LM(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===yFe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(oze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oDt(l)):(r=t,t=e)):(r=t,t=e),t}function UFt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===hFe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(dze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dDt(l)):(r=t,t=e)):(r=t,t=e),t}function BM(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===mFe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(uze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uDt(l)):(r=t,t=e)):(r=t,t=e),t}function MM(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===TFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(pze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pDt(l)):(r=t,t=e)):(r=t,t=e),t}function KFt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===vFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(cze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cDt(l)):(r=t,t=e)):(r=t,t=e),t}function FFt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===EFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(fze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fDt(l)):(r=t,t=e)):(r=t,t=e),t}function An(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===bFe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(yze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yDt(l)):(r=t,t=e)):(r=t,t=e),t}function SFt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===AFe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(hze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hDt(l)):(r=t,t=e)):(r=t,t=e),t}function qFt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===gFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(mze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mDt(l)):(r=t,t=e)):(r=t,t=e),t}function ZFt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===IFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Tze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TDt(l)):(r=t,t=e)):(r=t,t=e),t}function HFt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===RFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(vze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vDt(l)):(r=t,t=e)):(r=t,t=e),t}function WFt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===DFe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Eze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=EDt(l)):(r=t,t=e)):(r=t,t=e),t}function zFt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===wFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(bze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bDt(l)):(r=t,t=e)):(r=t,t=e),t}function GM(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===OFe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Aze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ADt(l)):(r=t,t=e)):(r=t,t=e),t}function an(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===CFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(gze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gDt(l)):(r=t,t=e)):(r=t,t=e),t}function JFt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===_Fe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Ize)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=IDt(l)):(r=t,t=e)):(r=t,t=e),t}function Tw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===VFe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Rze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=RDt(l)):(r=t,t=e)):(r=t,t=e),t}function YFt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===PFe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Dze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DDt(l)):(r=t,t=e)):(r=t,t=e),t}function XFt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===NFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(wze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wDt(l)):(r=t,t=e)):(r=t,t=e),t}function kM(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===xFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Oze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ODt(l)):(r=t,t=e)):(r=t,t=e),t}function QFt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===$Fe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Cze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=CDt(l)):(r=t,t=e)):(r=t,t=e),t}function Sf(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===LFe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(_ze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Dt(l)):(r=t,t=e)):(r=t,t=e),t}function w0(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===BFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Vze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VDt(l)):(r=t,t=e)):(r=t,t=e),t}function eSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===MFe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Pze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=PDt(l)):(r=t,t=e)):(r=t,t=e),t}function tSt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===GFe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Nze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NDt(l)):(r=t,t=e)):(r=t,t=e),t}function vw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===kFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(xze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xDt(l)):(r=t,t=e)):(r=t,t=e),t}function yo(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===jFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P($ze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Dt(l)):(r=t,t=e)):(r=t,t=e),t}function db(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===UFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Lze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LDt(l)):(r=t,t=e)):(r=t,t=e),t}function iSt(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===KFe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(Bze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BDt(l)):(r=t,t=e)):(r=t,t=e),t}function Ew(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===FFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Mze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MDt(l)):(r=t,t=e)):(r=t,t=e),t}function jM(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===SFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Gze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GDt(l)):(r=t,t=e)):(r=t,t=e),t}function rSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===qFe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(kze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kDt(l)):(r=t,t=e)):(r=t,t=e),t}function UM(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===ZFe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(jze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jDt(l)):(r=t,t=e)):(r=t,t=e),t}function nSt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===HFe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Uze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UDt(l)):(r=t,t=e)):(r=t,t=e),t}function aSt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===WFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Kze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KDt(l)):(r=t,t=e)):(r=t,t=e),t}function sSt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===zFe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Fze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FDt(l)):(r=t,t=e)):(r=t,t=e),t}function ub(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===JFe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Sze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SDt(l)):(r=t,t=e)):(r=t,t=e),t}function O0(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===YFe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(qze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qDt(l)):(r=t,t=e)):(r=t,t=e),t}function KM(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===XFe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Zze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZDt(l)):(r=t,t=e)):(r=t,t=e),t}function lSt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===QFe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Hze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HDt(l)):(r=t,t=e)):(r=t,t=e),t}function pb(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===eSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Wze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WDt(l)):(r=t,t=e)):(r=t,t=e),t}function cu(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===tSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(zze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zDt(l)):(r=t,t=e)):(r=t,t=e),t}function oSt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===iSe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Jze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JDt(l)):(r=t,t=e)):(r=t,t=e),t}function FM(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===rSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Yze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YDt(l)):(r=t,t=e)):(r=t,t=e),t}function dSt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===nSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Xze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XDt(l)):(r=t,t=e)):(r=t,t=e),t}function uSt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===aSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Qze)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QDt(l)):(r=t,t=e)):(r=t,t=e),t}function Sn(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===sSe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(eJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ewt(l)):(r=t,t=e)):(r=t,t=e),t}function pSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===lSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(tJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=twt(l)):(r=t,t=e)):(r=t,t=e),t}function cSt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===oSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(iJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iwt(l)):(r=t,t=e)):(r=t,t=e),t}function fSt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===dSe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(rJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rwt(l)):(r=t,t=e)):(r=t,t=e),t}function ySt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===uSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(nJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nwt(l)):(r=t,t=e)):(r=t,t=e),t}function hSt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===pSe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(aJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=awt(l)):(r=t,t=e)):(r=t,t=e),t}function C0(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===cSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(sJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=swt(l)):(r=t,t=e)):(r=t,t=e),t}function mSt(){var t,l,a,u;return t=r,s.substr(r,15).toLowerCase()===fSe?(l=s.substr(r,15),r+=15):(l=e,T===0&&P(lJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lwt(l)):(r=t,t=e)):(r=t,t=e),t}function TSt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===ySe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(oJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=owt(l)):(r=t,t=e)):(r=t,t=e),t}function vSt(){var t,l,a,u;return t=r,s.substr(r,16).toLowerCase()===hSe?(l=s.substr(r,16),r+=16):(l=e,T===0&&P(dJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dwt(l)):(r=t,t=e)):(r=t,t=e),t}function SM(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===mSe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(uJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uwt(l)):(r=t,t=e)):(r=t,t=e),t}function qM(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===TSe?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(pJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pwt(l)):(r=t,t=e)):(r=t,t=e),t}function ZM(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===vSe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(cJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cwt(l)):(r=t,t=e)):(r=t,t=e),t}function HM(){var t,l,a,u;return t=r,s.substr(r,17).toLowerCase()===ESe?(l=s.substr(r,17),r+=17):(l=e,T===0&&P(fJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fwt(l)):(r=t,t=e)):(r=t,t=e),t}function bw(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===bSe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(yJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ywt(l)):(r=t,t=e)):(r=t,t=e),t}function Aw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===ASe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(hJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hwt(l)):(r=t,t=e)):(r=t,t=e),t}function fu(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===gSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(mJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mwt(l)):(r=t,t=e)):(r=t,t=e),t}function qf(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===ISe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(TJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Twt(l)):(r=t,t=e)):(r=t,t=e),t}function cb(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===RSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(vJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vwt(l)):(r=t,t=e)):(r=t,t=e),t}function gw(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===DSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(EJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Ewt(l)):(r=t,t=e)):(r=t,t=e),t}function Iw(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===wSe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(bJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bwt(l)):(r=t,t=e)):(r=t,t=e),t}function ESt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===OSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(AJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Awt(l)):(r=t,t=e)):(r=t,t=e),t}function bSt(){var t,l,a,u;return t=r,s.substr(r,15).toLowerCase()===CSe?(l=s.substr(r,15),r+=15):(l=e,T===0&&P(gJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gwt(l)):(r=t,t=e)):(r=t,t=e),t}function ASt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===_Se?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(IJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Iwt(l)):(r=t,t=e)):(r=t,t=e),t}function gSt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===VSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(RJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Rwt(l)):(r=t,t=e)):(r=t,t=e),t}function ISt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===PSe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(DJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Dwt(l)):(r=t,t=e)):(r=t,t=e),t}function RSt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===NSe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(wJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wwt(l)):(r=t,t=e)):(r=t,t=e),t}function DSt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===xSe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(OJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Owt(l)):(r=t,t=e)):(r=t,t=e),t}function wSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===$Se?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(CJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Cwt(l)):(r=t,t=e)):(r=t,t=e),t}function WM(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===LSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(_Je)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_wt(l)):(r=t,t=e)):(r=t,t=e),t}function OSt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===BSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(VJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Vwt(l)):(r=t,t=e)):(r=t,t=e),t}function sn(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===MSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(PJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Pwt(l)):(r=t,t=e)):(r=t,t=e),t}function CSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===GSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(NJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Nwt(l)):(r=t,t=e)):(r=t,t=e),t}function yu(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===kSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(xJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xwt(l)):(r=t,t=e)):(r=t,t=e),t}function fb(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===jSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P($Je)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$wt(l)):(r=t,t=e)):(r=t,t=e),t}function _St(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===USe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(LJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Lwt(l)):(r=t,t=e)):(r=t,t=e),t}function VSt(){var t,l,a,u;return t=r,s.substr(r,15).toLowerCase()===KSe?(l=s.substr(r,15),r+=15):(l=e,T===0&&P(BJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Bwt(l)):(r=t,t=e)):(r=t,t=e),t}function PSt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===FSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(MJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Mwt(l)):(r=t,t=e)):(r=t,t=e),t}function dc(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===SSe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(GJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Gwt(l)):(r=t,t=e)):(r=t,t=e),t}function NSt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===qSe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(kJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kwt(l)):(r=t,t=e)):(r=t,t=e),t}function zM(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===ZSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(jJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jwt(l)):(r=t,t=e)):(r=t,t=e),t}function xSt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===HSe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(UJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Uwt(l)):(r=t,t=e)):(r=t,t=e),t}function JM(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===WSe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(KJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Kwt(l)):(r=t,t=e)):(r=t,t=e),t}function $St(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===zSe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(FJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Fwt(l)):(r=t,t=e)):(r=t,t=e),t}function LSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===JSe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(SJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Swt(l)):(r=t,t=e)):(r=t,t=e),t}function YM(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===YSe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(qJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qwt(l)):(r=t,t=e)):(r=t,t=e),t}function XM(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===XSe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(ZJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Zwt(l)):(r=t,t=e)):(r=t,t=e),t}function BSt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===QSe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(HJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Hwt(l)):(r=t,t=e)):(r=t,t=e),t}function QM(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===e3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(WJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Wwt(l)):(r=t,t=e)):(r=t,t=e),t}function xs(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===t3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(zJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zwt(l)):(r=t,t=e)):(r=t,t=e),t}function MSt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===i3e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(JJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Jwt(l)):(r=t,t=e)):(r=t,t=e),t}function GSt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===r3e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(YJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Ywt(l)):(r=t,t=e)):(r=t,t=e),t}function yb(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===n3e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(XJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Xwt(l)):(r=t,t=e)):(r=t,t=e),t}function hb(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===a3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(QJe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Qwt(l)):(r=t,t=e)):(r=t,t=e),t}function Rw(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===s3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(eYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eOt(l)):(r=t,t=e)):(r=t,t=e),t}function kSt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===l3e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(tYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tOt(l)):(r=t,t=e)):(r=t,t=e),t}function jSt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===o3e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(iYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iOt(l)):(r=t,t=e)):(r=t,t=e),t}function cr(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===d3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(rYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rOt(l)):(r=t,t=e)):(r=t,t=e),t}function USt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===u3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(nYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nOt(l)):(r=t,t=e)):(r=t,t=e),t}function KSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===p3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(aYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aOt(l)):(r=t,t=e)):(r=t,t=e),t}function FSt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===c3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(sYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sOt(l)):(r=t,t=e)):(r=t,t=e),t}function eG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===f3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(lYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lOt(l)):(r=t,t=e)):(r=t,t=e),t}function SSt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===y3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(oYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oOt(l)):(r=t,t=e)):(r=t,t=e),t}function Dw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===h3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(dYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dOt(l)):(r=t,t=e)):(r=t,t=e),t}function qSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===m3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(uYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uOt(l)):(r=t,t=e)):(r=t,t=e),t}function ZSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===T3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(pYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pOt(l)):(r=t,t=e)):(r=t,t=e),t}function HSt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===v3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(cYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cOt(l)):(r=t,t=e)):(r=t,t=e),t}function WSt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===E3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(fYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fOt(l)):(r=t,t=e)):(r=t,t=e),t}function zSt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===b3e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(yYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yOt(l)):(r=t,t=e)):(r=t,t=e),t}function ho(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===A3e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(hYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hOt(l)):(r=t,t=e)):(r=t,t=e),t}function tG(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===g3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(mYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mOt(l)):(r=t,t=e)):(r=t,t=e),t}function JSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===I3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(TYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TOt(l)):(r=t,t=e)):(r=t,t=e),t}function iG(){var t,l,a,u;return t=r,s.substr(r,16).toLowerCase()===R3e?(l=s.substr(r,16),r+=16):(l=e,T===0&&P(vYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vOt(l)):(r=t,t=e)):(r=t,t=e),t}function rG(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===D3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(EYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=EOt(l)):(r=t,t=e)):(r=t,t=e),t}function YSt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===w3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(bYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bOt(l)):(r=t,t=e)):(r=t,t=e),t}function XSt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===O3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(AYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=AOt(l)):(r=t,t=e)):(r=t,t=e),t}function QSt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===C3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(gYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gOt(l)):(r=t,t=e)):(r=t,t=e),t}function e3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===_3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(IYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=IOt(l)):(r=t,t=e)):(r=t,t=e),t}function t3t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===V3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(RYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ROt(l)):(r=t,t=e)):(r=t,t=e),t}function ww(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===P3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(DYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DOt(l)):(r=t,t=e)):(r=t,t=e),t}function i3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===N3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(wYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wOt(l)):(r=t,t=e)):(r=t,t=e),t}function Ow(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===x3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(OYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=OOt(l)):(r=t,t=e)):(r=t,t=e),t}function r3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===$3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(CYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=COt(l)):(r=t,t=e)):(r=t,t=e),t}function n3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===L3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(_Ye)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Ot(l)):(r=t,t=e)):(r=t,t=e),t}function Cw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===B3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(VYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VOt(l)):(r=t,t=e)):(r=t,t=e),t}function _w(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===M3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(PYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=POt(l)):(r=t,t=e)):(r=t,t=e),t}function nG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===G3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(NYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NOt(l)):(r=t,t=e)):(r=t,t=e),t}function a3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===k3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(xYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xOt(l)):(r=t,t=e)):(r=t,t=e),t}function s3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===j3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P($Ye)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Ot(l)):(r=t,t=e)):(r=t,t=e),t}function l3t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===U3e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(LYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LOt(l)):(r=t,t=e)):(r=t,t=e),t}function o3t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===K3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(BYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BOt(l)):(r=t,t=e)):(r=t,t=e),t}function aG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===F3e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(MYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MOt(l)):(r=t,t=e)):(r=t,t=e),t}function mb(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===S3e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(GYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GOt(l)):(r=t,t=e)):(r=t,t=e),t}function d3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===q3e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(kYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kOt(l)):(r=t,t=e)):(r=t,t=e),t}function Vw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===Z3e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(jYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jOt(l)):(r=t,t=e)):(r=t,t=e),t}function u3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===H3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(UYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UOt(l)):(r=t,t=e)):(r=t,t=e),t}function p3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===W3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(KYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KOt(l)):(r=t,t=e)):(r=t,t=e),t}function c3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===z3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(FYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FOt(l)):(r=t,t=e)):(r=t,t=e),t}function f3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===J3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(SYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SOt(l)):(r=t,t=e)):(r=t,t=e),t}function sG(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===Y3e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(qYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qOt(l)):(r=t,t=e)):(r=t,t=e),t}function Tb(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===X3e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(ZYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZOt(l)):(r=t,t=e)):(r=t,t=e),t}function y3t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===Q3e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(HYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HOt(l)):(r=t,t=e)):(r=t,t=e),t}function Pw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===eqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(WYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WOt(l)):(r=t,t=e)):(r=t,t=e),t}function h3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===tqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(zYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zOt(l)):(r=t,t=e)):(r=t,t=e),t}function m3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===iqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(JYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JOt(l)):(r=t,t=e)):(r=t,t=e),t}function T3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===rqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(YYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YOt(l)):(r=t,t=e)):(r=t,t=e),t}function es(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===nqe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(XYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XOt(l)):(r=t,t=e)):(r=t,t=e),t}function lG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===aqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(QYe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QOt(l)):(r=t,t=e)):(r=t,t=e),t}function vb(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===sqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(eXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eCt(l)):(r=t,t=e)):(r=t,t=e),t}function v3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===lqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(tXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tCt(l)):(r=t,t=e)):(r=t,t=e),t}function E3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===oqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(iXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iCt(l)):(r=t,t=e)):(r=t,t=e),t}function Pa(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===dqe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(rXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rCt(l)):(r=t,t=e)):(r=t,t=e),t}function Nw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===uqe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(nXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nCt(l)):(r=t,t=e)):(r=t,t=e),t}function oG(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===pqe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(aXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aCt(l)):(r=t,t=e)):(r=t,t=e),t}function Zf(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===cqe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(sXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sCt(l)):(r=t,t=e)):(r=t,t=e),t}function b3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===fqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(lXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lCt(l)):(r=t,t=e)):(r=t,t=e),t}function Hf(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===yqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(oXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oCt(l)):(r=t,t=e)):(r=t,t=e),t}function A3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===hqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(dXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dCt(l)):(r=t,t=e)):(r=t,t=e),t}function dG(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===mqe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(uXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uCt(l)):(r=t,t=e)):(r=t,t=e),t}function g3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===Tqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(pXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pCt(l)):(r=t,t=e)):(r=t,t=e),t}function Wf(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===vqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(cXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cCt(l)):(r=t,t=e)):(r=t,t=e),t}function I3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Eqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(fXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fCt(l)):(r=t,t=e)):(r=t,t=e),t}function zf(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===bqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(yXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yCt(l)):(r=t,t=e)):(r=t,t=e),t}function uG(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===Aqe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(hXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hCt(l)):(r=t,t=e)):(r=t,t=e),t}function R3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===gqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(mXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mCt(l)):(r=t,t=e)):(r=t,t=e),t}function D3t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===Iqe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(TXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TCt(l)):(r=t,t=e)):(r=t,t=e),t}function pG(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===Rqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(vXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vCt(l)):(r=t,t=e)):(r=t,t=e),t}function cG(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===Dqe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(EXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ECt(l)):(r=t,t=e)):(r=t,t=e),t}function xw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===wqe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(bXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bCt(l)):(r=t,t=e)):(r=t,t=e),t}function w3t(){var t,l,a,u;return t=r,s.substr(r,16).toLowerCase()===Oqe?(l=s.substr(r,16),r+=16):(l=e,T===0&&P(AXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ACt(l)):(r=t,t=e)):(r=t,t=e),t}function O3t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===Cqe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(gXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gCt(l)):(r=t,t=e)):(r=t,t=e),t}function C3t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===_qe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(IXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ICt(l)):(r=t,t=e)):(r=t,t=e),t}function Jf(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===Vqe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(RXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=RCt(l)):(r=t,t=e)):(r=t,t=e),t}function Yf(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===Pqe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(DXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DCt(l)):(r=t,t=e)):(r=t,t=e),t}function Xf(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===Nqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(wXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wCt(l)):(r=t,t=e)):(r=t,t=e),t}function fG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===xqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(OXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=OCt(l)):(r=t,t=e)):(r=t,t=e),t}function _0(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===$qe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(CXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=CCt(l)):(r=t,t=e)):(r=t,t=e),t}function _3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===Lqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(_Xe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Ct(l)):(r=t,t=e)):(r=t,t=e),t}function zr(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===Bqe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(VXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VCt(l)):(r=t,t=e)):(r=t,t=e),t}function yG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Mqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(PXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=PCt(l)):(r=t,t=e)):(r=t,t=e),t}function V3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===Gqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(NXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NCt(l)):(r=t,t=e)):(r=t,t=e),t}function P3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===kqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(xXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xCt(l)):(r=t,t=e)):(r=t,t=e),t}function Na(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===jqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P($Xe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Ct(l)):(r=t,t=e)):(r=t,t=e),t}function hG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Uqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(LXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LCt(l)):(r=t,t=e)):(r=t,t=e),t}function N3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Kqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(BXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BCt(l)):(r=t,t=e)):(r=t,t=e),t}function Qf(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Fqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(MXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MCt(l)):(r=t,t=e)):(r=t,t=e),t}function x3t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===Sqe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(GXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GCt(l)):(r=t,t=e)):(r=t,t=e),t}function V0(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===qqe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(kXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kCt(l)):(r=t,t=e)):(r=t,t=e),t}function $3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Zqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(jXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jCt(l)):(r=t,t=e)):(r=t,t=e),t}function $w(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Hqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(UXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UCt(l)):(r=t,t=e)):(r=t,t=e),t}function mG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Wqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(KXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KCt(l)):(r=t,t=e)):(r=t,t=e),t}function P0(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===zqe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(FXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FCt(l)):(r=t,t=e)):(r=t,t=e),t}function L3t(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===Jqe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(SXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SCt(l)):(r=t,t=e)):(r=t,t=e),t}function B3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Yqe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(qXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qCt(l)):(r=t,t=e)):(r=t,t=e),t}function TG(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===Xqe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(ZXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZCt(l)):(r=t,t=e)):(r=t,t=e),t}function M3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Qqe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(HXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HCt(l)):(r=t,t=e)):(r=t,t=e),t}function vG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===e6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(WXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WCt(l)):(r=t,t=e)):(r=t,t=e),t}function EG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===t6e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(zXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zCt(l)):(r=t,t=e)):(r=t,t=e),t}function ey(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===i6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(JXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JCt(l)):(r=t,t=e)):(r=t,t=e),t}function dd(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===r6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(YXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YCt(l)):(r=t,t=e)):(r=t,t=e),t}function bG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===n6e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(XXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XCt(l)):(r=t,t=e)):(r=t,t=e),t}function G3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===a6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(QXe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QCt(l)):(r=t,t=e)):(r=t,t=e),t}function mo(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===s6e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(eQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=e_t(l)):(r=t,t=e)):(r=t,t=e),t}function k3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===l6e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(tQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=t_t(l)):(r=t,t=e)):(r=t,t=e),t}function j3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===o6e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(iQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=i_t(l)):(r=t,t=e)):(r=t,t=e),t}function U3t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===d6e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(rQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=r_t(l)):(r=t,t=e)):(r=t,t=e),t}function K3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===u6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(nQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=n_t(l)):(r=t,t=e)):(r=t,t=e),t}function AG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===p6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(aQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=a_t(l)):(r=t,t=e)):(r=t,t=e),t}function F3t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===c6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(sQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=s_t(l)):(r=t,t=e)):(r=t,t=e),t}function N0(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===f6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(lQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=l_t(l)):(r=t,t=e)):(r=t,t=e),t}function Lw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===y6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(oQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=o_t(l)):(r=t,t=e)):(r=t,t=e),t}function S3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===h6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(dQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=d_t(l)):(r=t,t=e)):(r=t,t=e),t}function q3t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===m6e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(uQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=u_t(l)):(r=t,t=e)):(r=t,t=e),t}function hl(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===T6e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(pQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=p_t(l)):(r=t,t=e)):(r=t,t=e),t}function Z3t(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===v6e?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(cQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=c_t(l)):(r=t,t=e)):(r=t,t=e),t}function H3t(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===E6e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(fQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=f_t(l)):(r=t,t=e)):(r=t,t=e),t}function Eb(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===b6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(yQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=y_t(l)):(r=t,t=e)):(r=t,t=e),t}function W3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===A6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(hQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=h_t(l)):(r=t,t=e)):(r=t,t=e),t}function gG(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===g6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(mQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=m_t(l)):(r=t,t=e)):(r=t,t=e),t}function z3t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===I6e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(TQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=T_t(l)):(r=t,t=e)):(r=t,t=e),t}function IG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===R6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(vQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=v_t(l)):(r=t,t=e)):(r=t,t=e),t}function J3t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===D6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(EQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=E_t(l)):(r=t,t=e)):(r=t,t=e),t}function RG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===w6e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(bQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=b_t(l)):(r=t,t=e)):(r=t,t=e),t}function Y3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===O6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(AQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=A_t(l)):(r=t,t=e)):(r=t,t=e),t}function bb(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===C6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(gQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=g_t(l)):(r=t,t=e)):(r=t,t=e),t}function DG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===_6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(IQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=I_t(l)):(r=t,t=e)):(r=t,t=e),t}function uc(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===V6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(RQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=R_t(l)):(r=t,t=e)):(r=t,t=e),t}function ty(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===P6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(DQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=D_t(l)):(r=t,t=e)):(r=t,t=e),t}function X3t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===N6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(wQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=w_t(l)):(r=t,t=e)):(r=t,t=e),t}function Q3t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===x6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(OQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=O_t(l)):(r=t,t=e)):(r=t,t=e),t}function eqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===$6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(CQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=C_t(l)):(r=t,t=e)):(r=t,t=e),t}function Bw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===L6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(_Qe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=__t(l)):(r=t,t=e)):(r=t,t=e),t}function Mw(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===B6e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(VQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=V_t(l)):(r=t,t=e)):(r=t,t=e),t}function Gw(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===M6e?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(PQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=P_t(l)):(r=t,t=e)):(r=t,t=e),t}function tqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===G6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(NQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=N_t(l)):(r=t,t=e)):(r=t,t=e),t}function iqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===k6e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(xQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=x_t(l)):(r=t,t=e)):(r=t,t=e),t}function rqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===j6e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P($Qe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$_t(l)):(r=t,t=e)):(r=t,t=e),t}function nqt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===U6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(LQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=L_t(l)):(r=t,t=e)):(r=t,t=e),t}function aqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===K6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(BQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=B_t(l)):(r=t,t=e)):(r=t,t=e),t}function sqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===F6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(MQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=M_t(l)):(r=t,t=e)):(r=t,t=e),t}function wG(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===S6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(GQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=G_t(l)):(r=t,t=e)):(r=t,t=e),t}function OG(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===q6e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(kQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=k_t(l)):(r=t,t=e)):(r=t,t=e),t}function lqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===Z6e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(jQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=j_t(l)):(r=t,t=e)):(r=t,t=e),t}function oqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===H6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(UQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=U_t(l)):(r=t,t=e)):(r=t,t=e),t}function kw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===W6e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(KQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=K_t(l)):(r=t,t=e)):(r=t,t=e),t}function CG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===z6e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(FQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=F_t(l)):(r=t,t=e)):(r=t,t=e),t}function Ab(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===J6e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(SQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=S_t(l)):(r=t,t=e)):(r=t,t=e),t}function dqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===Y6e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(qQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=q_t(l)):(r=t,t=e)):(r=t,t=e),t}function uqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===X6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(ZQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Z_t(l)):(r=t,t=e)):(r=t,t=e),t}function jw(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===Q6e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(HQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=H_t(l)):(r=t,t=e)):(r=t,t=e),t}function pqt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===eZe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(WQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=W_t(l)):(r=t,t=e)):(r=t,t=e),t}function cqt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===tZe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(zQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=z_t(l)):(r=t,t=e)):(r=t,t=e),t}function fqt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===iZe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(JQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=J_t(l)):(r=t,t=e)):(r=t,t=e),t}function yqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===rZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(YQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Y_t(l)):(r=t,t=e)):(r=t,t=e),t}function _G(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===nZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(XQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=X_t(l)):(r=t,t=e)):(r=t,t=e),t}function hqt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===aZe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(QQe)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Q_t(l)):(r=t,t=e)):(r=t,t=e),t}function mqt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===sZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(eet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eVt(l)):(r=t,t=e)):(r=t,t=e),t}function Tqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===lZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(tet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tVt(l)):(r=t,t=e)):(r=t,t=e),t}function VG(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===oZe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(iet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iVt(l)):(r=t,t=e)):(r=t,t=e),t}function vqt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===dZe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(ret)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rVt(l)):(r=t,t=e)):(r=t,t=e),t}function Eqt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===uZe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(net)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nVt(l)):(r=t,t=e)):(r=t,t=e),t}function bqt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===pZe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(aet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aVt(l)):(r=t,t=e)):(r=t,t=e),t}function Aqt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===cZe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(set)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sVt(l)):(r=t,t=e)):(r=t,t=e),t}function gqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===fZe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(oet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lVt(l)):(r=t,t=e)):(r=t,t=e),t}function Iqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===yZe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(det)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oVt(l)):(r=t,t=e)):(r=t,t=e),t}function Uw(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===hZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(uet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dVt(l)):(r=t,t=e)):(r=t,t=e),t}function Rqt(){var t,l,a,u;return t=r,s.substr(r,18).toLowerCase()===mZe?(l=s.substr(r,18),r+=18):(l=e,T===0&&P(pet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uVt(l)):(r=t,t=e)):(r=t,t=e),t}function Dqt(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===TZe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(cet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pVt(l)):(r=t,t=e)):(r=t,t=e),t}function Kw(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===vZe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(fet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cVt(l)):(r=t,t=e)):(r=t,t=e),t}function wqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===EZe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(yet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fVt(l)):(r=t,t=e)):(r=t,t=e),t}function gb(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===bZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(het)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yVt(l)):(r=t,t=e)):(r=t,t=e),t}function Oqt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===AZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(met)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hVt(l)):(r=t,t=e)):(r=t,t=e),t}function Cqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===gZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Tet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mVt(l)):(r=t,t=e)):(r=t,t=e),t}function Fw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===IZe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(vet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TVt(l)):(r=t,t=e)):(r=t,t=e),t}function _qt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===RZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Eet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vVt(l)):(r=t,t=e)):(r=t,t=e),t}function Sw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===DZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(bet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=EVt(l)):(r=t,t=e)):(r=t,t=e),t}function Vqt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===wZe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Aet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bVt(l)):(r=t,t=e)):(r=t,t=e),t}function Pqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===OZe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(get)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=AVt(l)):(r=t,t=e)):(r=t,t=e),t}function Nqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===CZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Iet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gVt(l)):(r=t,t=e)):(r=t,t=e),t}function xqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===_Ze?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(Ret)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=IVt(l)):(r=t,t=e)):(r=t,t=e),t}function $qt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===VZe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(Det)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=RVt(l)):(r=t,t=e)):(r=t,t=e),t}function Lqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===PZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(wet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DVt(l)):(r=t,t=e)):(r=t,t=e),t}function Bqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===NZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Oet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wVt(l)):(r=t,t=e)):(r=t,t=e),t}function ts(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===xZe?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(Cet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=OVt(l)):(r=t,t=e)):(r=t,t=e),t}function Mqt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===$Ze?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(_et)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=CVt(l)):(r=t,t=e)):(r=t,t=e),t}function Gqt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===LZe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Vet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Vt(l)):(r=t,t=e)):(r=t,t=e),t}function kqt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===BZe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(Pet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VVt(l)):(r=t,t=e)):(r=t,t=e),t}function jqt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===MZe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Net)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=PVt(l)):(r=t,t=e)):(r=t,t=e),t}function Uqt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===GZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(xet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NVt(l)):(r=t,t=e)):(r=t,t=e),t}function Kqt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===kZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P($et)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xVt(l)):(r=t,t=e)):(r=t,t=e),t}function Fqt(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===jZe?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(Let)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Vt(l)):(r=t,t=e)):(r=t,t=e),t}function Ib(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===UZe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Bet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LVt(l)):(r=t,t=e)):(r=t,t=e),t}function Sqt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===KZe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Met)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BVt(l)):(r=t,t=e)):(r=t,t=e),t}function Zi(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===FZe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(Get)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MVt(l)):(r=t,t=e)):(r=t,t=e),t}function qw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===SZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ket)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GVt(l)):(r=t,t=e)):(r=t,t=e),t}function qqt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===qZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(jet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kVt(l)):(r=t,t=e)):(r=t,t=e),t}function PG(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===ZZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Uet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jVt(l)):(r=t,t=e)):(r=t,t=e),t}function Zqt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===HZe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Ket)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UVt(l)):(r=t,t=e)):(r=t,t=e),t}function Hqt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===WZe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Fet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KVt(l)):(r=t,t=e)):(r=t,t=e),t}function To(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===zZe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(qet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FVt(l)):(r=t,t=e)):(r=t,t=e),t}function pc(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===JZe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Zet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SVt(l)):(r=t,t=e)):(r=t,t=e),t}function Zw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===YZe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Het)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qVt(l)):(r=t,t=e)):(r=t,t=e),t}function Wqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===XZe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Wet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZVt(l)):(r=t,t=e)):(r=t,t=e),t}function zqt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===QZe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(zet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HVt(l)):(r=t,t=e)):(r=t,t=e),t}function $s(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===e5e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(Jet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WVt(l)):(r=t,t=e)):(r=t,t=e),t}function Rb(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===t5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Yet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zVt(l)):(r=t,t=e)):(r=t,t=e),t}function NG(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===i5e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Xet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JVt(l)):(r=t,t=e)):(r=t,t=e),t}function Jqt(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===r5e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(Qet)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YVt(l)):(r=t,t=e)):(r=t,t=e),t}function fr(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===n5e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(ett)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XVt(l)):(r=t,t=e)):(r=t,t=e),t}function Hw(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===a5e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(ttt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QVt(l)):(r=t,t=e)):(r=t,t=e),t}function Yqt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===s5e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(itt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ePt(l)):(r=t,t=e)):(r=t,t=e),t}function Ww(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===l5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(rtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tPt(l)):(r=t,t=e)):(r=t,t=e),t}function Xqt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===o5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(ntt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iPt(l)):(r=t,t=e)):(r=t,t=e),t}function zw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===d5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(att)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rPt(l)):(r=t,t=e)):(r=t,t=e),t}function ya(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===u5e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(stt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nPt(l)):(r=t,t=e)):(r=t,t=e),t}function Qqt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===p5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(ltt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aPt(l)):(r=t,t=e)):(r=t,t=e),t}function e6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===c5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ott)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sPt(l)):(r=t,t=e)):(r=t,t=e),t}function t6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===f5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(dtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lPt(l)):(r=t,t=e)):(r=t,t=e),t}function i6t(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===y5e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(utt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oPt(l)):(r=t,t=e)):(r=t,t=e),t}function r6t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===h5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(ptt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dPt(l)):(r=t,t=e)):(r=t,t=e),t}function Jw(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===m5e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(ctt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uPt(l)):(r=t,t=e)):(r=t,t=e),t}function n6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===T5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(ftt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pPt(l)):(r=t,t=e)):(r=t,t=e),t}function a6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===v5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ytt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cPt(l)):(r=t,t=e)):(r=t,t=e),t}function s6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===E5e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(htt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fPt(l)):(r=t,t=e)):(r=t,t=e),t}function l6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===b5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(mtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yPt(l)):(r=t,t=e)):(r=t,t=e),t}function o6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===A5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Ttt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hPt(l)):(r=t,t=e)):(r=t,t=e),t}function xG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===g5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(vtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mPt(l)):(r=t,t=e)):(r=t,t=e),t}function d6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===I5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Ett)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TPt(l)):(r=t,t=e)):(r=t,t=e),t}function u6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===R5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(btt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vPt(l)):(r=t,t=e)):(r=t,t=e),t}function p6t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===D5e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Att)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=EPt(l)):(r=t,t=e)):(r=t,t=e),t}function c6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===w5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(gtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bPt(l)):(r=t,t=e)):(r=t,t=e),t}function f6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===O5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Itt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=APt(l)):(r=t,t=e)):(r=t,t=e),t}function iy(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===C5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Rtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gPt(l)):(r=t,t=e)):(r=t,t=e),t}function $G(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===_5e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Dtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=IPt(l)):(r=t,t=e)):(r=t,t=e),t}function y6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===V5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(wtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=RPt(l)):(r=t,t=e)):(r=t,t=e),t}function h6t(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===P5e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(Ott)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DPt(l)):(r=t,t=e)):(r=t,t=e),t}function m6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===N5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Ctt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wPt(l)):(r=t,t=e)):(r=t,t=e),t}function T6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===x5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(_tt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=OPt(l)):(r=t,t=e)):(r=t,t=e),t}function v6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===$5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Vtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=CPt(l)):(r=t,t=e)):(r=t,t=e),t}function E6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===L5e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Ptt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Pt(l)):(r=t,t=e)):(r=t,t=e),t}function b6t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===B5e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Ntt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VPt(l)):(r=t,t=e)):(r=t,t=e),t}function x0(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===M5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(xtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=PPt(l)):(r=t,t=e)):(r=t,t=e),t}function A6t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===G5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P($tt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NPt(l)):(r=t,t=e)):(r=t,t=e),t}function g6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===k5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Ltt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xPt(l)):(r=t,t=e)):(r=t,t=e),t}function LG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===j5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Btt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Pt(l)):(r=t,t=e)):(r=t,t=e),t}function I6t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===U5e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Mtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LPt(l)):(r=t,t=e)):(r=t,t=e),t}function Yw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===K5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Gtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BPt(l)):(r=t,t=e)):(r=t,t=e),t}function R6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===F5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(ktt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MPt(l)):(r=t,t=e)):(r=t,t=e),t}function $0(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===S5e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(jtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GPt(l)):(r=t,t=e)):(r=t,t=e),t}function D6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===q5e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Utt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kPt(l)):(r=t,t=e)):(r=t,t=e),t}function w6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===Z5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Ktt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jPt(l)):(r=t,t=e)):(r=t,t=e),t}function O6t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===H5e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Ftt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UPt(l)):(r=t,t=e)):(r=t,t=e),t}function C6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===W5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Stt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KPt(l)):(r=t,t=e)):(r=t,t=e),t}function Xw(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===z5e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(qtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FPt(l)):(r=t,t=e)):(r=t,t=e),t}function Qw(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===J5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Ztt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SPt(l)):(r=t,t=e)):(r=t,t=e),t}function _6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Y5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Htt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qPt(l)):(r=t,t=e)):(r=t,t=e),t}function BG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===X5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Wtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZPt(l)):(r=t,t=e)):(r=t,t=e),t}function MG(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===Q5e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(ztt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HPt(l)):(r=t,t=e)):(r=t,t=e),t}function V6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===eHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Jtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WPt(l)):(r=t,t=e)):(r=t,t=e),t}function L0(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===tHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Ytt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zPt(l)):(r=t,t=e)):(r=t,t=e),t}function P6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===iHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Xtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JPt(l)):(r=t,t=e)):(r=t,t=e),t}function GG(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===rHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Qtt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YPt(l)):(r=t,t=e)):(r=t,t=e),t}function N6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===nHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(eit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XPt(l)):(r=t,t=e)):(r=t,t=e),t}function kG(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===aHe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(tit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QPt(l)):(r=t,t=e)):(r=t,t=e),t}function x6t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===sHe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(iit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eNt(l)):(r=t,t=e)):(r=t,t=e),t}function $6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===lHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(rit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tNt(l)):(r=t,t=e)):(r=t,t=e),t}function L6t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===oHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(nit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iNt(l)):(r=t,t=e)):(r=t,t=e),t}function jG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===dHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ait)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rNt(l)):(r=t,t=e)):(r=t,t=e),t}function B6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===uHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(sit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nNt(l)):(r=t,t=e)):(r=t,t=e),t}function M6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===pHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(lit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aNt(l)):(r=t,t=e)):(r=t,t=e),t}function G6t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===cHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(oit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sNt(l)):(r=t,t=e)):(r=t,t=e),t}function ud(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===fHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(dit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lNt(l)):(r=t,t=e)):(r=t,t=e),t}function UG(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===yHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(uit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oNt(l)):(r=t,t=e)):(r=t,t=e),t}function KG(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===hHe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(pit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dNt(l)):(r=t,t=e)):(r=t,t=e),t}function is(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===mHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(cit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uNt(l)):(r=t,t=e)):(r=t,t=e),t}function eO(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===THe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(fit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pNt(l)):(r=t,t=e)):(r=t,t=e),t}function k6t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===vHe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(yit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cNt(l)):(r=t,t=e)):(r=t,t=e),t}function FG(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===EHe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(hit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fNt(l)):(r=t,t=e)):(r=t,t=e),t}function B0(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===bHe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(mit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yNt(l)):(r=t,t=e)):(r=t,t=e),t}function j6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===AHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Tit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hNt(l)):(r=t,t=e)):(r=t,t=e),t}function tO(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===gHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(vit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mNt(l)):(r=t,t=e)):(r=t,t=e),t}function Kr(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===IHe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Eit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=TNt(l)):(r=t,t=e)):(r=t,t=e),t}function U6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===RHe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(bit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vNt(l)):(r=t,t=e)):(r=t,t=e),t}function K6t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===DHe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Ait)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ENt(l)):(r=t,t=e)):(r=t,t=e),t}function iO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===wHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(git)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bNt(l)):(r=t,t=e)):(r=t,t=e),t}function F6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===OHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Iit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ANt(l)):(r=t,t=e)):(r=t,t=e),t}function SG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===CHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Rit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gNt(l)):(r=t,t=e)):(r=t,t=e),t}function rO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===_He?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Dit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=INt(l)):(r=t,t=e)):(r=t,t=e),t}function Db(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===VHe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(wit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=RNt(l)):(r=t,t=e)):(r=t,t=e),t}function S6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===PHe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Oit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=DNt(l)):(r=t,t=e)):(r=t,t=e),t}function cc(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===NHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Cit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wNt(l)):(r=t,t=e)):(r=t,t=e),t}function wb(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===xHe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(_it)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ONt(l)):(r=t,t=e)):(r=t,t=e),t}function nO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===$He?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Vit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=CNt(l)):(r=t,t=e)):(r=t,t=e),t}function q6t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===LHe?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Pit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_Nt(l)):(r=t,t=e)):(r=t,t=e),t}function Z6t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===BHe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Nit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=VNt(l)):(r=t,t=e)):(r=t,t=e),t}function Ls(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===MHe?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(xit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=PNt(l)):(r=t,t=e)):(r=t,t=e),t}function H6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===GHe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P($it)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=NNt(l)):(r=t,t=e)):(r=t,t=e),t}function W6t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===kHe?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Lit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xNt(l)):(r=t,t=e)):(r=t,t=e),t}function z6t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===jHe?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Bit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$Nt(l)):(r=t,t=e)):(r=t,t=e),t}function hu(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===UHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Mit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=LNt(l)):(r=t,t=e)):(r=t,t=e),t}function J6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===KHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Git)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=BNt(l)):(r=t,t=e)):(r=t,t=e),t}function Y6t(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===FHe?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(kit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=MNt(l)):(r=t,t=e)):(r=t,t=e),t}function X6t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===SHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(jit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=GNt(l)):(r=t,t=e)):(r=t,t=e),t}function Q6t(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===qHe?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Uit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kNt(l)):(r=t,t=e)):(r=t,t=e),t}function eZt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===ZHe?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(Kit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jNt(l)):(r=t,t=e)):(r=t,t=e),t}function tZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===HHe?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Fit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=UNt(l)):(r=t,t=e)):(r=t,t=e),t}function aO(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===WHe?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Sit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=KNt(l)):(r=t,t=e)):(r=t,t=e),t}function mu(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===zHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(qit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=FNt(l)):(r=t,t=e)):(r=t,t=e),t}function sO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===JHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Zit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=SNt(l)):(r=t,t=e)):(r=t,t=e),t}function lO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===YHe?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Hit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qNt(l)):(r=t,t=e)):(r=t,t=e),t}function iZt(){var t,l,a,u;return t=r,s.substr(r,18).toLowerCase()===XHe?(l=s.substr(r,18),r+=18):(l=e,T===0&&P(Wit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ZNt(l)):(r=t,t=e)):(r=t,t=e),t}function qG(){var t,l,a,u;return t=r,s.substr(r,26).toLowerCase()===QHe?(l=s.substr(r,26),r+=26):(l=e,T===0&&P(zit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=HNt(l)):(r=t,t=e)):(r=t,t=e),t}function ZG(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===e7e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Jit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=WNt(l)):(r=t,t=e)):(r=t,t=e),t}function ry(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===t7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Yit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zNt(l)):(r=t,t=e)):(r=t,t=e),t}function Ob(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===i7e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Xit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=JNt(l)):(r=t,t=e)):(r=t,t=e),t}function rZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===r7e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Qit)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=YNt(l)):(r=t,t=e)):(r=t,t=e),t}function nZt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===n7e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(ert)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=XNt(l)):(r=t,t=e)):(r=t,t=e),t}function HG(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===a7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(trt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=QNt(l)):(r=t,t=e)):(r=t,t=e),t}function aZt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===s7e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(irt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ext(l)):(r=t,t=e)):(r=t,t=e),t}function WG(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===l7e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(rrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=txt(l)):(r=t,t=e)):(r=t,t=e),t}function Li(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===o7e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(nrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=ixt(l)):(r=t,t=e)):(r=t,t=e),t}function sZt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===d7e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(art)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rxt(l)):(r=t,t=e)):(r=t,t=e),t}function oO(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===u7e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(srt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nxt(l)):(r=t,t=e)):(r=t,t=e),t}function zG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===p7e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(lrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=axt(l)):(r=t,t=e)):(r=t,t=e),t}function lZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===c7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(ort)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sxt(l)):(r=t,t=e)):(r=t,t=e),t}function oZt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===f7e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(drt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=lxt(l)):(r=t,t=e)):(r=t,t=e),t}function JG(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===y7e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(urt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=oxt(l)):(r=t,t=e)):(r=t,t=e),t}function dZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===h7e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(prt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=dxt(l)):(r=t,t=e)):(r=t,t=e),t}function uZt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===m7e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(crt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=uxt(l)):(r=t,t=e)):(r=t,t=e),t}function pZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===T7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(frt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=pxt(l)):(r=t,t=e)):(r=t,t=e),t}function cZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===v7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(yrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=cxt(l)):(r=t,t=e)):(r=t,t=e),t}function YG(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===E7e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(hrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=fxt(l)):(r=t,t=e)):(r=t,t=e),t}function fZt(){var t,l,a,u;return t=r,s.substr(r,14).toLowerCase()===b7e?(l=s.substr(r,14),r+=14):(l=e,T===0&&P(mrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=yxt(l)):(r=t,t=e)):(r=t,t=e),t}function yZt(){var t,l,a,u;return t=r,s.substr(r,17).toLowerCase()===A7e?(l=s.substr(r,17),r+=17):(l=e,T===0&&P(Trt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=hxt(l)):(r=t,t=e)):(r=t,t=e),t}function hZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===g7e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(vrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=mxt(l)):(r=t,t=e)):(r=t,t=e),t}function mZt(){var t,l,a,u;return t=r,s.substr(r,19).toLowerCase()===I7e?(l=s.substr(r,19),r+=19):(l=e,T===0&&P(Ert)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Txt(l)):(r=t,t=e)):(r=t,t=e),t}function TZt(){var t,l,a,u;return t=r,s.substr(r,12).toLowerCase()===R7e?(l=s.substr(r,12),r+=12):(l=e,T===0&&P(brt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=vxt(l)):(r=t,t=e)):(r=t,t=e),t}function vZt(){var t,l,a,u;return t=r,s.substr(r,16).toLowerCase()===D7e?(l=s.substr(r,16),r+=16):(l=e,T===0&&P(Art)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Ext(l)):(r=t,t=e)):(r=t,t=e),t}function EZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===w7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(grt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=bxt(l)):(r=t,t=e)):(r=t,t=e),t}function dO(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===O7e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Irt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Axt(l)):(r=t,t=e)):(r=t,t=e),t}function bZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===C7e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Rrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=gxt(l)):(r=t,t=e)):(r=t,t=e),t}function AZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===_7e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Drt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Ixt(l)):(r=t,t=e)):(r=t,t=e),t}function XG(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===V7e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(wrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Rxt(l)):(r=t,t=e)):(r=t,t=e),t}function gZt(){var t,l,a,u;return t=r,s.substr(r,17).toLowerCase()===P7e?(l=s.substr(r,17),r+=17):(l=e,T===0&&P(Ort)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Dxt(l)):(r=t,t=e)):(r=t,t=e),t}function IZt(){var t,l,a,u;return t=r,s.substr(r,16).toLowerCase()===N7e?(l=s.substr(r,16),r+=16):(l=e,T===0&&P(Crt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=wxt(l)):(r=t,t=e)):(r=t,t=e),t}function RZt(){var t,l,a,u;return t=r,s.substr(r,18).toLowerCase()===x7e?(l=s.substr(r,18),r+=18):(l=e,T===0&&P(_rt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Oxt(l)):(r=t,t=e)):(r=t,t=e),t}function Cb(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===$7e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Vrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Cxt(l)):(r=t,t=e)):(r=t,t=e),t}function DZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===L7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Prt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_xt(l)):(r=t,t=e)):(r=t,t=e),t}function QG(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===B7e?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(Nrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Vxt(l)):(r=t,t=e)):(r=t,t=e),t}function e4(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===M7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(xrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Pxt(l)):(r=t,t=e)):(r=t,t=e),t}function wZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===G7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P($rt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Nxt(l)):(r=t,t=e)):(r=t,t=e),t}function t4(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===k7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Lrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=xxt(l)):(r=t,t=e)):(r=t,t=e),t}function OZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===j7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Brt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$xt(l)):(r=t,t=e)):(r=t,t=e),t}function CZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===U7e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Mrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Lxt(l)):(r=t,t=e)):(r=t,t=e),t}function _Zt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===K7e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Grt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Bxt(l)):(r=t,t=e)):(r=t,t=e),t}function i4(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===F7e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(krt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Mxt(l)):(r=t,t=e)):(r=t,t=e),t}function VZt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===S7e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(jrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Gxt(l)):(r=t,t=e)):(r=t,t=e),t}function _b(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===q7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Urt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=kxt(l)):(r=t,t=e)):(r=t,t=e),t}function r4(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===Z7e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Krt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=jxt(l)):(r=t,t=e)):(r=t,t=e),t}function PZt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===H7e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Frt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Uxt(l)):(r=t,t=e)):(r=t,t=e),t}function Vn(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===W7e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Srt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Kxt(l)):(r=t,t=e)):(r=t,t=e),t}function NZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===z7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(qrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Fxt(l)):(r=t,t=e)):(r=t,t=e),t}function xZt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===J7e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(Zrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Sxt(l)):(r=t,t=e)):(r=t,t=e),t}function Tu(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===Y7e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Hrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=qxt(l)):(r=t,t=e)):(r=t,t=e),t}function $Zt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===X7e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Wrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Zxt(l)):(r=t,t=e)):(r=t,t=e),t}function fc(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===Q7e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(zrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Hxt(l)):(r=t,t=e)):(r=t,t=e),t}function yc(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===e8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Jrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Wxt(l)):(r=t,t=e)):(r=t,t=e),t}function LZt(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===t8e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(Yrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=zxt(l)):(r=t,t=e)):(r=t,t=e),t}function BZt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===i8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Xrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Jxt(l)):(r=t,t=e)):(r=t,t=e),t}function ny(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===r8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Qrt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Yxt(l)):(r=t,t=e)):(r=t,t=e),t}function MZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===n8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(ent)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Xxt(l)):(r=t,t=e)):(r=t,t=e),t}function n4(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===a8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(tnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Qxt(l)):(r=t,t=e)):(r=t,t=e),t}function hc(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===s8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(int)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=e$t(l)):(r=t,t=e)):(r=t,t=e),t}function uO(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===l8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(rnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=t$t(l)):(r=t,t=e)):(r=t,t=e),t}function GZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===o8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(nnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=i$t(l)):(r=t,t=e)):(r=t,t=e),t}function kZt(){var t,l,a,u;return t=r,s.substr(r,13).toLowerCase()===d8e?(l=s.substr(r,13),r+=13):(l=e,T===0&&P(ant)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=r$t(l)):(r=t,t=e)):(r=t,t=e),t}function jZt(){var t,l,a,u;return t=r,s.substr(r,15).toLowerCase()===u8e?(l=s.substr(r,15),r+=15):(l=e,T===0&&P(snt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=n$t(l)):(r=t,t=e)):(r=t,t=e),t}function UZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===p8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(lnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=a$t(l)):(r=t,t=e)):(r=t,t=e),t}function a4(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===c8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(ont)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=s$t(l)):(r=t,t=e)):(r=t,t=e),t}function KZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===f8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(dnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=l$t(l)):(r=t,t=e)):(r=t,t=e),t}function ln(){var t,l,a,u;return t=r,s.substr(r,2).toLowerCase()===y8e?(l=s.substr(r,2),r+=2):(l=e,T===0&&P(unt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=o$t(l)):(r=t,t=e)):(r=t,t=e),t}function M0(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===h8e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(pnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=d$t(l)):(r=t,t=e)):(r=t,t=e),t}function FZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===m8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(cnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=u$t(l)):(r=t,t=e)):(r=t,t=e),t}function ay(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===T8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(fnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=p$t(l)):(r=t,t=e)):(r=t,t=e),t}function SZt(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===v8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(ynt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=c$t(l)):(r=t,t=e)):(r=t,t=e),t}function pO(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===E8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(hnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=f$t(l)):(r=t,t=e)):(r=t,t=e),t}function qZt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===b8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(mnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=y$t(l)):(r=t,t=e)):(r=t,t=e),t}function vo(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===A8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Tnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=h$t(l)):(r=t,t=e)):(r=t,t=e),t}function Vb(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===g8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(vnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=m$t(l)):(r=t,t=e)):(r=t,t=e),t}function ZZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===I8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Ent)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=T$t(l)):(r=t,t=e)):(r=t,t=e),t}function HZt(){var t,l,a,u;return t=r,s.substr(r,11).toLowerCase()===R8e?(l=s.substr(r,11),r+=11):(l=e,T===0&&P(bnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=v$t(l)):(r=t,t=e)):(r=t,t=e),t}function cO(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===D8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Ant)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=E$t(l)):(r=t,t=e)):(r=t,t=e),t}function fO(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===w8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(gnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=b$t(l)):(r=t,t=e)):(r=t,t=e),t}function s4(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===O8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Int)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=A$t(l)):(r=t,t=e)):(r=t,t=e),t}function yO(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===C8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Rnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=g$t(l)):(r=t,t=e)):(r=t,t=e),t}function WZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===_8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Dnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=I$t(l)):(r=t,t=e)):(r=t,t=e),t}function zZt(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===V8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(wnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=R$t(l)):(r=t,t=e)):(r=t,t=e),t}function JZt(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===P8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Ont)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=D$t(l)):(r=t,t=e)):(r=t,t=e),t}function l4(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===N8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Cnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=w$t(l)):(r=t,t=e)):(r=t,t=e),t}function ml(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===x8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(_nt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=O$t(l)):(r=t,t=e)):(r=t,t=e),t}function YZt(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===$8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Vnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=C$t(l)):(r=t,t=e)):(r=t,t=e),t}function vu(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===L8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Pnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=_$t(l)):(r=t,t=e)):(r=t,t=e),t}function ha(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===B8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Nnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=V$t(l)):(r=t,t=e)):(r=t,t=e),t}function o4(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===M8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(xnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=P$t(l)):(r=t,t=e)):(r=t,t=e),t}function d4(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===G8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P($nt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=N$t(l)):(r=t,t=e)):(r=t,t=e),t}function XZt(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===k8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Lnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=x$t(l)):(r=t,t=e)):(r=t,t=e),t}function G0(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===j8e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Bnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=$$t(l)):(r=t,t=e)):(r=t,t=e),t}function Pb(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===U8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Mnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=L$t(l)):(r=t,t=e)):(r=t,t=e),t}function QZt(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===K8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Gnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=B$t(l)):(r=t,t=e)):(r=t,t=e),t}function e5t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===F8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(knt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=M$t(l)):(r=t,t=e)):(r=t,t=e),t}function u4(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===S8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(jnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=G$t(l)):(r=t,t=e)):(r=t,t=e),t}function hO(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===q8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Unt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=k$t(l)):(r=t,t=e)):(r=t,t=e),t}function t5t(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===Z8e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Knt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=j$t(l)):(r=t,t=e)):(r=t,t=e),t}function i5t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===H8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Fnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=U$t(l)):(r=t,t=e)):(r=t,t=e),t}function k0(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===W8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Snt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=K$t(l)):(r=t,t=e)):(r=t,t=e),t}function p4(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===z8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(qnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=F$t(l)):(r=t,t=e)):(r=t,t=e),t}function c4(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===J8e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(Znt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=S$t(l)):(r=t,t=e)):(r=t,t=e),t}function r5t(){var t,l,a,u;return t=r,s.substr(r,8).toLowerCase()===Y8e?(l=s.substr(r,8),r+=8):(l=e,T===0&&P(Hnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=q$t(l)):(r=t,t=e)):(r=t,t=e),t}function n5t(){var t,l,a,u;return t=r,s.substr(r,9).toLowerCase()===X8e?(l=s.substr(r,9),r+=9):(l=e,T===0&&P(Wnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Z$t(l)):(r=t,t=e)):(r=t,t=e),t}function Nb(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===Q8e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(znt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=H$t(l)):(r=t,t=e)):(r=t,t=e),t}function j0(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===e9e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(Jnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=W$t(l)):(r=t,t=e)):(r=t,t=e),t}function f4(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===t9e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Ynt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=z$t(l)):(r=t,t=e)):(r=t,t=e),t}function y4(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===i9e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(Xnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=J$t(l)):(r=t,t=e)):(r=t,t=e),t}function h4(){var t,l,a,u;return t=r,s.substr(r,6).toLowerCase()===r9e?(l=s.substr(r,6),r+=6):(l=e,T===0&&P(Qnt)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Y$t(l)):(r=t,t=e)):(r=t,t=e),t}function _r(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===n9e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(eat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=X$t(l)):(r=t,t=e)):(r=t,t=e),t}function U0(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===a9e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(tat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=Q$t(l)):(r=t,t=e)):(r=t,t=e),t}function mO(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===s9e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(iat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=eLt(l)):(r=t,t=e)):(r=t,t=e),t}function a5t(){var t,l,a,u;return t=r,s.substr(r,7).toLowerCase()===l9e?(l=s.substr(r,7),r+=7):(l=e,T===0&&P(rat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=tLt(l)):(r=t,t=e)):(r=t,t=e),t}function s5t(){var t,l,a,u;return t=r,s.substr(r,5).toLowerCase()===o9e?(l=s.substr(r,5),r+=5):(l=e,T===0&&P(nat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=iLt(l)):(r=t,t=e)):(r=t,t=e),t}function m4(){var t,l,a,u;return t=r,s.substr(r,3).toLowerCase()===d9e?(l=s.substr(r,3),r+=3):(l=e,T===0&&P(aat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=rLt(l)):(r=t,t=e)):(r=t,t=e),t}function xb(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===u9e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(sat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=nLt(l)):(r=t,t=e)):(r=t,t=e),t}function l5t(){var t,l,a,u;return t=r,s.substr(r,10).toLowerCase()===p9e?(l=s.substr(r,10),r+=10):(l=e,T===0&&P(lat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=aLt(l)):(r=t,t=e)):(r=t,t=e),t}function TO(){var t,l,a,u;return t=r,s.substr(r,4).toLowerCase()===c9e?(l=s.substr(r,4),r+=4):(l=e,T===0&&P(oat)),l!==e?(a=r,T++,u=W(),T--,u===e?a=void 0:(r=a,a=e),a!==e?(R=t,t=sLt(l)):(r=t,t=e)):(r=t,t=e),t}if((0,hn.setRangeFunction)(()=>[R,r]),(0,hn.setOptionsFunction)(()=>c),dE=v(),dE!==e&&r===s.length)return dE;throw dE!==e&&r<s.length&&P(oLt()),dLt(E1,oo<s.length?s.charAt(oo):null,oo<s.length?z$(oo,oo+1):z$(oo,oo))}return{SyntaxError:p,parse:n}}();_N.SyntaxError.prototype.name="PeggySyntaxError";Py.parse=_N.parse;Py.PeggySyntaxError=_N.SyntaxError;var F0={},S0={},q0={},q4;function cgi(){if(q4)return q0;q4=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.alterActionMap=void 0;const o=xi();return q0.alterActionMap={alter_action_rename:p=>(0,o.show)([p.renameKw,p.newName]),alter_action_rename_column:p=>(0,o.show)([p.renameKw,p.ifExistsKw,p.oldName,p.toKw,p.newName]),alter_action_add_column:p=>(0,o.show)([p.addKw,p.ifNotExistsKw,p.column]),alter_action_drop_column:p=>(0,o.show)([p.dropKw,p.ifExistsKw,p.column,p.behaviorKw]),alter_action_set_default_collate:p=>(0,o.show)([p.setDefaultCollateKw,p.collation]),alter_action_set_bigquery_options:p=>(0,o.show)([p.setKw,p.options]),alter_action_set_postgresql_options:p=>(0,o.show)([p.setKw,p.options]),alter_action_reset_postgresql_options:p=>(0,o.show)([p.resetKw,p.options]),alter_action_set_postgresql_option:p=>(0,o.show)([p.setKw,p.name,p.operator,p.value]),alter_action_set_postgresql_option_from_current:p=>(0,o.show)([p.setKw,p.name,p.fromCurrentKw]),alter_action_reset_postgresql_option:p=>(0,o.show)([p.resetKw,p.name]),alter_action_add_constraint:p=>(0,o.show)([p.addKw,p.name,p.constraint,p.modifiers]),alter_action_add_constraint_constraint_name:p=>(0,o.show)([p.constraintKw,p.ifNotExistsKw,p.name]),alter_action_drop_constraint:p=>(0,o.show)([p.dropConstraintKw,p.ifExistsKw,p.constraint,p.behaviorKw]),alter_action_alter_constraint:p=>(0,o.show)([p.alterConstraintKw,p.constraint,p.modifiers]),alter_action_rename_constraint:p=>(0,o.show)([p.renameConstraintKw,p.oldName,p.toKw,p.newName]),alter_action_validate_constraint:p=>(0,o.show)([p.validateConstraintKw,p.constraint]),alter_action_drop_primary_key:p=>(0,o.show)([p.dropPrimaryKeyKw,p.ifExistsKw]),alter_action_owner_to:p=>(0,o.show)([p.ownerToKw,p.owner]),alter_action_set_schema:p=>(0,o.show)([p.setSchemaKw,p.schema]),alter_action_enable:p=>(0,o.show)([p.enableKw,p.modeKw,p.item]),alter_action_disable:p=>(0,o.show)([p.disableKw,p.item]),alter_action_force:p=>(0,o.show)([p.forceKw,p.item]),alter_action_no_force:p=>(0,o.show)([p.noForceKw,p.item]),alter_action_set_tablespace:p=>(0,o.show)([p.setTablespaceKw,p.tablespace,p.nowaitKw]),alter_action_set_access_method:p=>(0,o.show)([p.setAccessMethodKw,p.method]),alter_action_cluster_on:p=>(0,o.show)([p.clusterOnKw,p.index]),alter_action_set_without_cluster:p=>(0,o.show)([p.setWithoutClusterKw]),alter_action_set_without_oids:p=>(0,o.show)([p.setWithoutOidsKw]),alter_action_set_logged:p=>(0,o.show)([p.setLoggedKw]),alter_action_set_unlogged:p=>(0,o.show)([p.setUnloggedKw]),alter_action_inherit:p=>(0,o.show)([p.inheritKw,p.table]),alter_action_no_inherit:p=>(0,o.show)([p.noInheritKw,p.table]),alter_action_of_type:p=>(0,o.show)([p.ofKw,p.typeName]),alter_action_not_of_type:p=>(0,o.show)([p.notOfKw]),alter_action_depends_on_extension:p=>(0,o.show)([p.dependsOnExtensionKw,p.extension]),alter_action_no_depends_on_extension:p=>(0,o.show)([p.noDependsOnExtensionKw,p.extension]),alter_action_replica_identity:p=>(0,o.show)([p.replicaIdentityKw,p.identity]),alter_action_add_enum_value:p=>(0,o.show)([p.addValueKw,p.ifNotExistsKw,p.value,p.position]),alter_action_add_enum_value_position:p=>(0,o.show)([p.positionKw,p.value]),alter_action_rename_enum_value:p=>(0,o.show)([p.renameValueKw,p.oldValue,p.toKw,p.newValue]),alter_action_rename_attribute:p=>(0,o.show)([p.renameAttributeKw,p.oldName,p.toKw,p.newName,p.behaviorKw]),alter_action_add_attribute:p=>(0,o.show)([p.addAttributeKw,p.name,p.dataType,p.constraint,p.behaviorKw]),alter_action_drop_attribute:p=>(0,o.show)([p.dropAttributeKw,p.ifExistsKw,p.name,p.behaviorKw]),alter_action_alter_attribute:p=>(0,o.show)([p.alterAttributeKw,p.name,p.setDataTypeKw,p.dataType,p.constraint,p.behaviorKw]),alter_action_add_user:p=>(0,o.show)([p.addUserKw,p.users]),alter_action_drop_user:p=>(0,o.show)([p.dropUserKw,p.users]),alter_action_alter_column:p=>(0,o.show)([p.alterKw,p.ifExistsKw,p.column,p.action]),alter_action_set_default:p=>(0,o.show)([p.setDefaultKw,p.expr]),alter_action_drop_default:p=>(0,o.show)([p.dropDefaultKw]),alter_action_set_not_null:p=>(0,o.show)([p.setNotNullKw]),alter_action_drop_not_null:p=>(0,o.show)([p.dropNotNullKw]),alter_action_set_data_type:p=>(0,o.show)([p.setDataTypeKw,p.dataType,p.clauses]),alter_action_set_visible:p=>(0,o.show)([p.setVisibleKw]),alter_action_set_invisible:p=>(0,o.show)([p.setInvisibleKw]),alter_action_set_compression:p=>(0,o.show)([p.setCompressionKw,p.method]),alter_action_set_storage:p=>(0,o.show)([p.setStorageKw,p.typeKw]),alter_action_set_statistics:p=>(0,o.show)([p.setStatisticsKw,p.value]),alter_action_drop_expression:p=>(0,o.show)([p.dropExpressionKw,p.ifExistsKw]),alter_action_drop_identity:p=>(0,o.show)([p.dropIdentityKw,p.ifExistsKw]),alter_action_add_identity:p=>(0,o.show)([p.addGeneratedKw,p.whenKw,p.asIdentityKw,p.sequenceOptions]),alter_action_alter_identity:p=>(0,o.show)(p.actions),alter_action_attach_partition:p=>(0,o.show)([p.attachPartitionKw,p.index]),alter_action_with_role_options:p=>(0,o.show)([p.withKw,p.options]),toggle_row_level_security:p=>(0,o.show)([p.rowLevelSecurityKw]),toggle_trigger:p=>(0,o.show)([p.triggerKw,p.name]),toggle_rule:p=>(0,o.show)([p.ruleKw,p.name]),replica_identity_using_index:p=>(0,o.show)([p.usingIndexKw,p.index]),set_data_type_collate_clause:p=>(0,o.show)([p.collateKw,p.collation]),set_data_type_using_clause:p=>(0,o.show)([p.usingKw,p.expr]),alter_action_set_generated:p=>(0,o.show)([p.setGeneratedKw,p.whenKw]),alter_action_set_sequence_option:p=>(0,o.show)([p.setKw,p.option]),alter_action_restart:p=>(0,o.show)([p.restartKw,p.withKw,p.value])},q0}var Z0={},Z4;function fgi(){if(Z4)return Z0;Z4=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.alterTableMap=void 0;const o=xi();return Z0.alterTableMap={alter_table_stmt:p=>(0,o.show)([p.alterTableKw,p.ifExistsKw,p.table,p.actions]),alter_table_all_in_tablespace_stmt:p=>(0,o.show)([p.alterTableKw,p.allInTablespaceKw,p.tablespace,p.ownedBy,p.action]),owned_by_clause:p=>(0,o.show)([p.ownedByKw,p.owners])},Z0}var H0={},H4;function ygi(){if(H4)return H0;H4=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.analyzeMap=void 0;const o=xi();return H0.analyzeMap={analyze_stmt:p=>(0,o.show)([p.analyzeKw,p.tableKw,p.tables])},H0}var W0={},W4;function hgi(){if(W4)return W0;W4=1,Object.defineProperty(W0,"__esModule",{value:!0}),W0.baseMap=void 0;const o=xi();return W0.baseMap={keyword:p=>p.text,all_columns:()=>"*",empty:()=>"",alias:p=>(0,o.show)([p.expr,p.asKw,p.alias,p.columnAliases]),program:p=>(0,o.show)(p.statements,";")},W0}var z0={},z4;function mgi(){if(z4)return z0;z4=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.constraintMap=void 0;const o=xi();return z0.constraintMap={constraint:p=>(0,o.show)([p.name,p.constraint,p.modifiers]),constraint_name:p=>(0,o.show)([p.constraintKw,p.name]),constraint_modifier:p=>(0,o.show)(p.kw),constraint_null:p=>(0,o.show)(p.nullKw),constraint_not_null:p=>(0,o.show)([p.notNullKw,p.clauses]),constraint_auto_increment:p=>(0,o.show)(p.autoIncrementKw),constraint_default:p=>(0,o.show)([p.defaultKw,p.expr]),constraint_comment:p=>(0,o.show)([p.commentKw,p.value]),constraint_primary_key:p=>(0,o.show)([p.primaryKeyKw,p.direction,p.columns,p.clauses]),constraint_foreign_key:p=>(0,o.show)([p.foreignKeyKw,p.indexName,p.columns,p.references]),references_specification:p=>(0,o.show)([p.referencesKw,p.table,p.columns,p.options]),referential_action:p=>(0,o.show)([p.onKw,p.eventKw,p.actionKw,p.columns]),referential_match:p=>(0,o.show)([p.matchKw,p.typeKw]),constraint_unique:p=>(0,o.show)([p.uniqueKw,p.nullsKw,p.columns,p.clauses]),constraint_check:p=>(0,o.show)([p.checkKw,p.expr,p.clauses]),constraint_index:p=>(0,o.show)([p.indexTypeKw,p.indexKw,p.columns]),constraint_generated:p=>(0,o.show)([p.generatedKw,p.asKw,p.expr,p.storageKw,p.sequenceOptions]),identity_column:p=>(0,o.show)(p.identityKw),constraint_collate:p=>(0,o.show)([p.collateKw,p.collation]),constraint_visible:p=>(0,o.show)(p.visibleKw),constraint_column_format:p=>(0,o.show)([p.columnFormatKw,p.formatKw]),constraint_storage:p=>(0,o.show)([p.storageKw,p.typeKw]),constraint_engine_attribute:p=>(0,o.show)([p.engineAttributeKw,p.hasEq?"=":void 0,p.value]),constraint_compression:p=>(0,o.show)([p.compressionKw,p.method]),constraint_exclude:p=>(0,o.show)([p.excludeKw,p.using,p.params,p.clauses]),exclusion_param:p=>(0,o.show)([p.index,p.withKw,p.operator]),on_conflict_clause:p=>(0,o.show)([p.onConflictKw,p.resolutionKw]),index_tablespace_clause:p=>(0,o.show)([p.usingIndexTablespaceKw,p.name]),existing_index:p=>(0,o.show)([p.usingIndexKw,p.index])},z0}var J0={},J4;function Tgi(){if(J4)return J0;J4=1,Object.defineProperty(J0,"__esModule",{value:!0}),J0.createTableMap=void 0;const o=xi();return J0.createTableMap={create_table_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.kind,p.tableKw,p.ifNotExistsKw,p.name,p.partitionOf,p.ofType,p.columns,p.options,p.clauses]),relation_kind:p=>(0,o.show)(p.kindKw),column_definition:p=>(0,o.show)([p.name,p.dataType,p.withOptionsKw,p.constraints.length>0?p.constraints:void 0]),table_option:p=>(0,o.show)([p.name,p.hasEq?"=":void 0,p.value]),create_table_like_clause:p=>(0,o.show)([p.likeKw,p.name,p.options]),table_like_option:p=>(0,o.show)([p.includingOrExcludingKw,p.optionKw]),create_table_copy_clause:p=>(0,o.show)([p.copyKw,p.name]),create_table_clone_clause:p=>(0,o.show)([p.cloneKw,p.table]),with_partition_columns_clause:p=>(0,o.show)([p.withPartitionColumnsKw,p.columns]),create_table_using_clause:p=>(0,o.show)([p.usingKw,p.module]),create_table_inherits_clause:p=>(0,o.show)([p.inheritsKw,p.tables]),create_table_partition_by_clause:p=>(0,o.show)([p.partitionByKw,p.strategyKw,p.columns]),create_table_partition_of_clause:p=>(0,o.show)([p.partitionOfKw,p.table]),create_table_partition_bound_clause:p=>(0,o.show)([p.forValuesKw,p.bound]),partition_bound_from_to:p=>(0,o.show)([p.fromKw,p.from,p.toKw,p.to]),partition_bound_minvalue:p=>(0,o.show)([p.minvalueKw]),partition_bound_maxvalue:p=>(0,o.show)([p.maxvalueKw]),partition_bound_in:p=>(0,o.show)([p.inKw,p.values]),partition_bound_with:p=>(0,o.show)([p.withKw,p.values]),partition_bound_modulus:p=>(0,o.show)([p.modulusKw,p.value]),partition_bound_remainder:p=>(0,o.show)([p.remainderKw,p.value]),create_table_default_partition_clause:p=>(0,o.show)(p.defaultKw),create_table_on_commit_clause:p=>(0,o.show)([p.onCommitKw,p.actionKw]),tablespace_clause:p=>(0,o.show)([p.tablespaceKw,p.name]),using_access_method_clause:p=>(0,o.show)([p.usingKw,p.method]),create_table_without_oids_clause:p=>(0,o.show)(p.withoutOidsKw),with_data_clause:p=>(0,o.show)(p.withDataKw),create_table_of_type_clause:p=>(0,o.show)([p.ofKw,p.typeName]),create_table_server_clause:p=>(0,o.show)([p.serverKw,p.name])},J0}var Y0={},Y4;function vgi(){if(Y4)return Y0;Y4=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.dataTypeMap=void 0;const o=xi();return Y0.dataTypeMap={named_data_type:p=>(0,o.show)([p.name,p.params]),array_data_type:p=>(0,o.show)([p.dataType,p.bounds]),array_bounds:p=>(0,o.show)(["[",p.bounds,"]"]),with_time_zone_data_type:p=>(0,o.show)([p.dataType,p.withTimeZoneKw]),generic_type_params:p=>(0,o.show)(["<",p.params,">"]),array_type_param:p=>(0,o.show)([p.dataType,p.constraints]),struct_type_param:p=>(0,o.show)([p.name,p.dataType,p.constraints]),table_data_type:p=>(0,o.show)([p.tableKw,p.columns])},Y0}var X0={},X4;function Egi(){if(X4)return X0;X4=1,Object.defineProperty(X0,"__esModule",{value:!0}),X0.dclMap=void 0;const o=xi();return X0.dclMap={grant_privilege_stmt:p=>(0,o.show)([p.grantKw,p.privileges,p.onKw,p.resource,p.toKw,p.roles,p.clauses]),grant_role_stmt:p=>(0,o.show)([p.grantKw,p.grantedRoles,p.toKw,p.granteeRoles,p.clauses]),privilege:p=>(0,o.show)([p.privilegeKw,p.columns]),all_privileges:p=>(0,o.show)([p.allKw,p.privilegesKw,p.columns]),grant_resource_table:p=>(0,o.show)([p.tableKw,p.tables]),grant_resource_all_tables_in_schema:p=>(0,o.show)([p.allTablesInSchemaKw,p.schemas]),grant_resource_sequence:p=>(0,o.show)([p.sequenceKw,p.sequences]),grant_resource_all_sequences_in_schema:p=>(0,o.show)([p.allSequencesInSchemaKw,p.schemas]),grant_resource_database:p=>(0,o.show)([p.databaseKw,p.databases]),grant_resource_domain:p=>(0,o.show)([p.domainKw,p.domains]),grant_resource_foreign_data_wrapper:p=>(0,o.show)([p.foreignDataWrapperKw,p.dataWrappers]),grant_resource_foreign_server:p=>(0,o.show)([p.foreignServerKw,p.servers]),grant_resource_function:p=>(0,o.show)([p.functionKw,p.functions]),grant_resource_all_functions_in_schema:p=>(0,o.show)([p.allFunctionsInSchemaKw,p.schemas]),grant_resource_language:p=>(0,o.show)([p.languageKw,p.languages]),grant_resource_large_object:p=>(0,o.show)([p.largeObjectKw,p.oids]),grant_resource_postgresql_option:p=>(0,o.show)([p.parameterKw,p.options]),grant_resource_schema:p=>(0,o.show)([p.schemaKw,p.schemas]),grant_resource_tablespace:p=>(0,o.show)([p.tablespaceKw,p.tablespaces]),grant_resource_type:p=>(0,o.show)([p.typeKw,p.types]),grant_resource_view:p=>(0,o.show)([p.viewKw,p.views]),with_grant_option_clause:p=>(0,o.show)([p.withKw,p.nameKw,p.value]),grant_option_for_clause:p=>(0,o.show)([p.nameKw,p.optionForKw]),granted_by_clause:p=>(0,o.show)([p.grantedByKw,p.role]),revoke_privilege_stmt:p=>(0,o.show)([p.revokeKw,p.option,p.privileges,p.onKw,p.resource,p.fromKw,p.roles,p.grantedBy,p.behaviorKw]),revoke_role_stmt:p=>(0,o.show)([p.revokeKw,p.option,p.grantedRoles,p.fromKw,p.granteeRoles,p.grantedBy,p.behaviorKw]),grantee_group:p=>(0,o.show)([p.groupKw,p.name]),grantee_public:p=>(0,o.show)([p.publicKw])},X0}var Q0={},Q4;function bgi(){if(Q4)return Q0;Q4=1,Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.deleteMap=void 0;const o=xi();return Q0.deleteMap={delete_stmt:p=>(0,o.show)(p.clauses),delete_clause:p=>(0,o.show)([p.deleteKw,p.modifiers,p.fromKw,p.tables])},Q0}var em={},ek;function Agi(){if(ek)return em;ek=1,Object.defineProperty(em,"__esModule",{value:!0}),em.domainMap=void 0;const o=xi();return em.domainMap={create_domain_stmt:p=>(0,o.show)([p.createDomainKw,p.name,p.asKw,p.dataType,p.constraints]),alter_domain_stmt:p=>(0,o.show)([p.alterDomainKw,p.name,p.action]),drop_domain_stmt:p=>(0,o.show)([p.dropDomainKw,p.ifExistsKw,p.domains,p.behaviorKw])},em}var tm={},tk;function ggi(){if(tk)return tm;tk=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.dropTableMap=void 0;const o=xi();return tm.dropTableMap={drop_table_stmt:p=>(0,o.show)([p.dropKw,p.kind,p.tableKw,p.ifExistsKw,p.tables,p.behaviorKw])},tm}var im={},ik;function Igi(){if(ik)return im;ik=1,Object.defineProperty(im,"__esModule",{value:!0}),im.explainMap=void 0;const o=xi();return im.explainMap={explain_stmt:p=>(0,o.show)([p.explainKw,p.analyzeKw,p.queryPlanKw,p.statement])},im}var rm={},rk;function Rgi(){if(rk)return rm;rk=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.exprMap=void 0;const o=xi();return rm.exprMap={list_expr:p=>(0,o.show)(p.items,","),paren_expr:p=>"("+(0,o.show)(p.expr)+")",binary_expr:p=>(0,o.show)([p.left,p.operator,p.right]),prefix_op_expr:p=>(0,o.show)([p.operator,p.expr]),postfix_op_expr:p=>(0,o.show)([p.expr,p.operator]),func_call:p=>(0,o.show)([p.name,p.args,p.filter,p.over]),func_args:p=>(0,o.show)([p.distinctKw,p.args,p.nullHandlingKw,p.orderBy,p.limit,p.having]),named_arg:p=>(0,o.show)([p.name,p.operator,p.value]),cast_expr:p=>(0,o.show)([p.castKw,p.args]),cast_operator_expr:p=>(0,o.show)([p.left,p.operator,p.right]),cast_arg:p=>(0,o.show)([p.expr,p.asKw,p.dataType,p.format]),cast_format:p=>(0,o.show)([p.formatKw,p.string,p.timezone]),cast_format_timezone:p=>(0,o.show)([p.atTimeZoneKw,p.timezone]),row_constructor:p=>(0,o.show)([p.rowKw,p.row]),array_constructor:p=>(0,o.show)([p.arrayKw,p.expr]),raise_expr:p=>(0,o.show)([p.raiseKw,p.args]),raise_expr_type:p=>(0,o.show)(p.typeKw),extract_expr:p=>(0,o.show)([p.extractKw,p.args]),extract_from:p=>(0,o.show)([p.unit,p.fromKw,p.expr]),week_expr:p=>(0,o.show)([p.weekKw,p.args]),filter_arg:p=>(0,o.show)([p.filterKw,p.where]),over_arg:p=>(0,o.show)([p.overKw,p.window]),having_arg:p=>(0,o.show)([p.havingKw,p.minMaxKw,p.expr]),between_expr:p=>(0,o.show)([p.left,p.betweenKw,p.begin,p.andKw,p.end]),case_expr:p=>(0,o.show)([p.caseKw,p.expr,p.clauses,p.endKw]),case_when:p=>(0,o.show)([p.whenKw,p.condition,p.thenKw,p.result]),case_else:p=>(0,o.show)([p.elseKw,p.result]),interval_expr:p=>(0,o.show)([p.intervalKw,p.expr,p.unit]),interval_unit_range:p=>(0,o.show)([p.fromUnit,p.toKw,p.toUnit]),interval_unit:p=>(0,o.show)([p.unitKw]),typed_expr:p=>(0,o.show)([p.dataType,p.expr]),array_expr:p=>(0,o.show)(["[",p.expr,"]"]),struct_expr:p=>(0,o.show)(["(",p.expr,")"]),quantifier_expr:p=>(0,o.show)([p.quantifierKw,p.expr]),full_text_match_expr:p=>(0,o.show)([p.matchKw,p.columns,p.againstKw,p.args]),full_text_match_args:p=>(0,o.show)([p.expr,p.modifier]),member_expr:p=>(0,o.show)([p.object,p.property],p.property.type==="array_subscript"?"":"."),bigquery_quoted_member_expr:p=>(0,o.show)(["`",p.expr,"`"]),array_subscript:p=>(0,o.show)(["[",p.expr,"]"]),array_subscript_specifier:p=>(0,o.show)([p.specifierKw,p.args]),array_slice_specifier:p=>(0,o.show)([p.from,":",p.to]),string_with_charset:p=>"_"+p.charset+(0,o.show)(p.string),datetime_literal:p=>(0,o.show)([p.datetimeKw,p.string]),date_literal:p=>(0,o.show)([p.dateKw,p.string]),time_literal:p=>(0,o.show)([p.timeKw,p.string]),timestamp_literal:p=>(0,o.show)([p.timestampKw,p.string]),json_literal:p=>(0,o.show)([p.jsonKw,p.string]),jsonb_literal:p=>(0,o.show)([p.jsonbKw,p.string]),numeric_literal:p=>(0,o.show)([p.numericKw,p.string]),bignumeric_literal:p=>(0,o.show)([p.bignumericKw,p.string]),interval_literal:p=>(0,o.show)([p.intervalKw,p.string]),identifier:p=>p.text,string_literal:p=>p.text,number_literal:p=>p.text,blob_literal:p=>p.text,boolean_literal:p=>(0,o.show)(p.valueKw),null_literal:p=>(0,o.show)(p.nullKw),variable:p=>p.text,parameter:p=>p.text},rm}var nm={},nk;function Dgi(){if(nk)return nm;nk=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.functionMap=void 0;const o=xi();return nm.functionMap={create_function_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.temporaryKw,p.tableKw,p.functionKw,p.ifNotExistsKw,p.name,p.params,p.clauses]),function_signature:p=>(0,o.show)([p.name,p.params]),function_param:p=>(0,o.show)([p.mode,p.name,p.dataType,p.default]),function_param_default:p=>(0,o.show)([p.operator,p.expr]),return_clause:p=>(0,o.show)([p.returnKw,p.expr]),dynamically_loaded_function:p=>(0,o.show)([p.objectFile,",",p.symbol]),function_window_clause:p=>(0,o.show)([p.windowKw]),function_behavior_clause:p=>(0,o.show)([p.behaviorKw]),function_security_clause:p=>(0,o.show)([p.externalKw,p.securityKw]),function_cost_clause:p=>(0,o.show)([p.costKw,p.cost]),function_rows_clause:p=>(0,o.show)([p.rowsKw,p.rows]),function_support_clause:p=>(0,o.show)([p.supportKw,p.name]),function_transform_clause:p=>(0,o.show)([p.transformKw,p.types]),transform_type:p=>(0,o.show)([p.forTypeKw,p.dataType]),set_parameter_clause:p=>(0,o.show)([p.setKw,p.name,p.operator,p.value]),set_parameter_from_current_clause:p=>(0,o.show)([p.setKw,p.name,p.fromCurrentKw]),reset_parameter_clause:p=>(0,o.show)([p.resetKw,p.name]),reset_all_parameters_clause:p=>(0,o.show)([p.resetAllKw]),drop_function_stmt:p=>(0,o.show)([p.dropKw,p.tableKw,p.functionKw,p.ifExistsKw,p.name,p.params,p.behaviorKw]),alter_function_stmt:p=>(0,o.show)([p.alterKw,p.functionKw,p.name,p.params,p.actions,p.behaviorKw])},nm}var am={},ak;function wgi(){if(ak)return am;ak=1,Object.defineProperty(am,"__esModule",{value:!0}),am.indexMap=void 0;const o=xi();return am.indexMap={create_index_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.indexTypeKw,p.indexKw,p.concurrentlyKw,p.ifNotExistsKw,p.name,p.onKw,p.table,p.using,p.columns,p.clauses]),verbose_all_columns:p=>(0,o.show)(p.allColumnsKw),index_specification:p=>(0,o.show)([p.expr,p.opclass,p.direction,p.nullHandlingKw]),index_include_clause:p=>(0,o.show)([p.includeKw,p.columns]),index_nulls_distinct_clause:p=>(0,o.show)([p.nullsDistinctKw]),index_nulls_not_distinct_clause:p=>(0,o.show)([p.nullsNotDistinctKw]),drop_index_stmt:p=>(0,o.show)([p.dropKw,p.indexTypeKw,p.indexKw,p.concurrentlyKw,p.ifExistsKw,p.indexes,p.onKw,p.table,p.behaviorKw]),alter_index_stmt:p=>(0,o.show)([p.alterKw,p.indexKw,p.ifExistsKw,p.index,p.action]),alter_index_all_in_tablespace_stmt:p=>(0,o.show)([p.alterIndexKw,p.allInTablespaceKw,p.tablespace,p.ownedBy,p.action]),reindex_stmt:p=>(0,o.show)([p.reindexKw,p.options,p.targetKw,p.concurrentlyKw,p.name]),reindex_option_concurrently:p=>(0,o.show)([p.concurrentlyKw,p.value]),reindex_option_tablespace:p=>(0,o.show)([p.tablespaceKw,p.name]),reindex_option_verbose:p=>(0,o.show)([p.verboseKw,p.value])},am}var sm={},sk;function Ogi(){if(sk)return sm;sk=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.insertMap=void 0;const o=xi();return sm.insertMap={insert_stmt:p=>(0,o.show)(p.clauses),insert_clause:p=>(0,o.show)([p.insertKw,p.modifiers,p.orAction,p.intoKw,p.table,p.columns]),or_alternate_action:p=>(0,o.show)([p.orKw,p.actionKw]),values_clause:p=>(0,o.show)([p.valuesKw,p.values]),default_values:p=>(0,o.show)(p.defaultValuesKw),default:p=>(0,o.show)(p.defaultKw),overriding_clause:p=>(0,o.show)(p.overridingKw),upsert_clause:p=>(0,o.show)([p.onConflictKw,p.conflictTarget,p.where,p.doKw,p.action]),conflict_target_on_constraint:p=>(0,o.show)([p.onConstraintKw,p.constraint]),upsert_action_nothing:p=>(0,o.show)(p.nothingKw),upsert_action_update:p=>(0,o.show)([p.updateKw,p.set,p.where]),row_alias_clause:p=>(0,o.show)([p.asKw,p.rowAlias,p.columnAliases]),on_duplicate_key_update_clause:p=>(0,o.show)([p.onDuplicateKeyUpdateKw,p.assignments])},sm}var lm={},lk;function Cgi(){if(lk)return lm;lk=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.mergeMap=void 0;const o=xi();return lm.mergeMap={merge_stmt:p=>(0,o.show)(p.clauses),merge_clause:p=>(0,o.show)([p.mergeKw,p.intoKw,p.target,p.usingKw,p.source,p.onKw,p.condition]),merge_when_clause:p=>(0,o.show)([p.whenKw,p.matchedKw,p.byKw,p.condition,p.thenKw,p.action]),merge_when_condition:p=>(0,o.show)([p.andKw,p.expr]),merge_action_do_nothing:p=>(0,o.show)(p.doNothingKw),merge_action_delete:p=>(0,o.show)([p.deleteKw]),merge_action_insert:p=>(0,o.show)([p.insertKw,p.columns,p.clauses]),merge_action_update:p=>(0,o.show)([p.updateKw,p.set]),merge_action_insert_row_clause:p=>(0,o.show)(p.rowKw)},lm}var om={},ok;function _gi(){if(ok)return om;ok=1,Object.defineProperty(om,"__esModule",{value:!0}),om.policyMap=void 0;const o=xi();return om.policyMap={create_policy_stmt:p=>(0,o.show)([p.createPolicyKw,p.name,p.onKw,p.table,p.clauses]),policy_permissive_clause:p=>(0,o.show)([p.asKw,p.permissiveKw]),policy_restrictive_clause:p=>(0,o.show)([p.asKw,p.restrictiveKw]),policy_command_clause:p=>(0,o.show)([p.forKw,p.commandKw]),policy_roles_clause:p=>(0,o.show)([p.toKw,p.roles]),policy_using_clause:p=>(0,o.show)([p.usingKw,p.expr]),policy_check_clause:p=>(0,o.show)([p.withKw,p.checkKw,p.expr]),alter_policy_stmt:p=>(0,o.show)([p.alterPolicyKw,p.name,p.onKw,p.table,p.actions]),drop_policy_stmt:p=>(0,o.show)([p.dropPolicyKw,p.ifExistsKw,p.name,p.onKw,p.table,p.behaviorKw])},om}var dm={},dk;function Vgi(){if(dk)return dm;dk=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.preparedStatementsMap=void 0;const o=xi();return dm.preparedStatementsMap={execute_stmt:p=>(0,o.show)([p.executeKw,p.immediateKw,p.expr,p.into,p.using]),execute_into_clause:p=>(0,o.show)([p.intoKw,p.variables]),execute_using_clause:p=>(0,o.show)([p.usingKw,p.values])},dm}var um={},uk;function Pgi(){if(uk)return um;uk=1,Object.defineProperty(um,"__esModule",{value:!0}),um.proceduralLanguageMap=void 0;const o=xi();return um.proceduralLanguageMap={labeled_stmt:p=>(0,o.show)([p.beginLabel,":",p.statement,p.endLabel]),block_stmt:p=>(0,o.show)([p.beginKw,p.atomicKw,p.program,p.exception,p.endKw]),exception_clause:p=>(0,o.show)([p.exceptionKw,p.whenKw,p.condition,p.thenKw,p.program]),error_category:p=>(0,o.show)(p.errorKw),declare_stmt:p=>(0,o.show)([p.declareKw,p.names,p.dataType,p.default]),declare_default:p=>(0,o.show)([p.defaultKw,p.expr]),set_stmt:p=>(0,o.show)([p.setKw,p.assignments]),if_stmt:p=>(0,o.show)([p.clauses,p.endIfKw]),if_clause:p=>(0,o.show)([p.ifKw,p.condition,p.thenKw,p.consequent]),elseif_clause:p=>(0,o.show)([p.elseifKw,p.condition,p.thenKw,p.consequent]),else_clause:p=>(0,o.show)([p.elseKw,p.consequent]),case_stmt:p=>(0,o.show)([p.caseKw,p.expr,p.clauses,p.endCaseKw]),loop_stmt:p=>(0,o.show)([p.loopKw,p.body,p.endLoopKw]),repeat_stmt:p=>(0,o.show)([p.repeatKw,p.body,p.untilKw,p.condition,p.endRepeatKw]),while_stmt:p=>(0,o.show)([p.whileKw,p.condition,p.doKw,p.body,p.endWhileKw]),for_stmt:p=>(0,o.show)([p.forKw,p.left,p.inKw,p.right,p.doKw,p.body,p.endForKw]),break_stmt:p=>(0,o.show)([p.breakKw,p.label]),continue_stmt:p=>(0,o.show)([p.continueKw,p.label]),call_stmt:p=>(0,o.show)([p.callKw,p.func]),return_stmt:p=>(0,o.show)([p.returnKw,p.expr]),raise_stmt:p=>(0,o.show)([p.raiseKw,p.message]),raise_message:p=>(0,o.show)([p.usingMessageKw,"=",p.string])},um}var pm={},pk;function Ngi(){if(pk)return pm;pk=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.procedureMap=void 0;const o=xi();return pm.procedureMap={create_procedure_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.procedureKw,p.ifNotExistsKw,p.name,p.params,p.clauses]),drop_procedure_stmt:p=>(0,o.show)([p.dropKw,p.procedureKw,p.ifExistsKw,p.name,p.params,p.behaviorKw]),alter_procedure_stmt:p=>(0,o.show)([p.alterKw,p.procedureKw,p.name,p.params,p.actions,p.behaviorKw])},pm}var cm={},ck;function xgi(){if(ck)return cm;ck=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.procClauseMap=void 0;const o=xi();return cm.procClauseMap={returns_clause:p=>(0,o.show)([p.returnsKw,p.dataType]),determinism_clause:p=>(0,o.show)([p.deterministicKw]),language_clause:p=>(0,o.show)([p.languageKw,p.name]),as_clause:p=>(0,o.show)([p.asKw,p.expr]),with_connection_clause:p=>(0,o.show)([p.withConnectionKw,p.connection])},cm}var fm={},fk;function $gi(){if(fk)return fm;fk=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.roleMap=void 0;const o=xi();return fm.roleMap={create_role_stmt:p=>(0,o.show)([p.createRoleKw,p.name,p.withKw,p.options]),role_option_keyword:p=>(0,o.show)(p.kw),role_option_connection_limit:p=>(0,o.show)([p.connectionLimitKw,p.limit]),role_option_password:p=>(0,o.show)([p.encryptedKw,p.passwordKw,p.password]),role_option_valid_until:p=>(0,o.show)([p.validUntilKw,p.timestamp]),role_option_in_role:p=>(0,o.show)([p.inRoleKw,p.names]),role_option_role:p=>(0,o.show)([p.roleKw,p.names]),role_option_admin:p=>(0,o.show)([p.adminKw,p.names]),role_option_sysid:p=>(0,o.show)([p.sysIdKw,p.sysId]),alter_role_stmt:p=>(0,o.show)([p.alterRoleKw,p.name,p.database,p.action]),in_database_clause:p=>(0,o.show)([p.inDatabaseKw,p.name]),drop_role_stmt:p=>(0,o.show)([p.dropRoleKw,p.ifExistsKw,p.names]),set_role_stmt:p=>(0,o.show)([p.setKw,p.scopeKw,p.roleKw,p.name]),reset_role_stmt:p=>(0,o.show)([p.resetRoleKw])},fm}var ym={},yk;function Lgi(){if(yk)return ym;yk=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.schemaMap=void 0;const o=xi();return ym.schemaMap={create_schema_stmt:p=>(0,o.show)([p.createSchemaKw,p.ifNotExistsKw,p.name,p.clauses,p.statements]),create_schema_authorization_clause:p=>(0,o.show)([p.authorizationKw,p.role]),drop_schema_stmt:p=>(0,o.show)([p.dropSchemaKw,p.ifExistsKw,p.schemas,p.behaviorKw]),alter_schema_stmt:p=>(0,o.show)([p.alterSchemaKw,p.ifExistsKw,p.name,p.actions])},ym}var hm={},hk;function Bgi(){if(hk)return hm;hk=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.selectMap=void 0;const o=xi();return hm.selectMap={compound_select_stmt:p=>(0,o.show)([p.left,p.operator,p.right]),select_stmt:p=>(0,o.show)(p.clauses),with_clause:p=>(0,o.show)([p.withKw,p.recursiveKw,p.tables]),common_table_expr:p=>(0,o.show)([p.table,p.columns,p.asKw,p.materializedKw,p.expr,p.search,p.cycle]),cte_search_clause:p=>(0,o.show)([p.searchKw,p.columns,p.setKw,p.resultColumn]),cte_cycle_clause:p=>(0,o.show)([p.cycleKw,p.columns,p.setKw,p.resultColumn,p.values,p.usingKw,p.pathColumn]),cte_cycle_clause_values:p=>(0,o.show)([p.toKw,p.markValue,p.defaultKw,p.defaultValue]),select_clause:p=>(0,o.show)([p.selectKw,p.modifiers,p.columns]),select_all:p=>(0,o.show)(p.allKw),select_distinct:p=>(0,o.show)(p.distinctKw),select_distinct_on:p=>(0,o.show)([p.distinctOnKw,p.columns]),select_as_struct:p=>(0,o.show)(p.asStructKw),select_as_value:p=>(0,o.show)(p.asValueKw),except_columns:p=>(0,o.show)([p.expr,p.exceptKw,p.columns]),replace_columns:p=>(0,o.show)([p.expr,p.replaceKw,p.columns]),from_clause:p=>(0,o.show)([p.fromKw,p.expr]),dual_table:p=>(0,o.show)(p.dualKw),lateral_derived_table:p=>(0,o.show)([p.lateralKw,p.expr]),partitioned_table:p=>(0,o.show)([p.table,p.partitionKw,p.partitions]),indexed_table:p=>(0,o.show)([p.table,p.indexedByKw,p.index]),not_indexed_table:p=>(0,o.show)([p.table,p.notIndexedKw]),with_ordinality_expr:p=>(0,o.show)([p.expr,p.withOrdinalityKw]),table_with_inheritance:p=>(0,o.show)([p.table,"*"]),table_without_inheritance:p=>(0,o.show)([p.onlyKw,p.table]),func_call_with_column_definitions:p=>(0,o.show)([p.funcCall,p.asKw,p.columns]),rows_from_expr:p=>(0,o.show)([p.rowsFromKw,p.expr]),unnest_expr:p=>(0,o.show)([p.unnestKw,p.expr]),unnest_with_offset_expr:p=>(0,o.show)([p.unnest,p.withOffsetKw]),join_expr:p=>(0,o.show)([p.left,p.operator,p.right,p.specification]),join_on_specification:p=>(0,o.show)([p.onKw,p.expr]),join_using_specification:p=>(0,o.show)([p.usingKw,p.expr]),pivot_expr:p=>(0,o.show)([p.left,p.pivotKw,p.args]),pivot_for_in:p=>(0,o.show)([p.aggregations,p.forKw,p.inputColumn,p.inKw,p.pivotColumns]),unpivot_expr:p=>(0,o.show)([p.left,p.unpivotKw,p.nullHandlingKw,p.args]),unpivot_for_in:p=>(0,o.show)([p.valuesColumn,p.forKw,p.nameColumn,p.inKw,p.unpivotColumns]),tablesample_expr:p=>(0,o.show)([p.left,p.tablesampleKw,p.method,p.args,p.repeatable]),tablesample_method:p=>(0,o.show)(p.methodKw),tablesample_percent:p=>(0,o.show)([p.percent,p.percentKw]),tablesample_repeatable:p=>(0,o.show)([p.repeatableKw,p.seed]),for_system_time_as_of_expr:p=>(0,o.show)([p.left,p.forSystemTimeAsOfKw,p.expr]),sort_specification:p=>(0,o.show)([p.expr,p.direction,p.nullHandlingKw]),sort_direction_asc:p=>(0,o.show)(p.ascKw),sort_direction_desc:p=>(0,o.show)(p.descKw),sort_direction_using_operator:p=>(0,o.show)([p.usingKw,p.operator]),where_clause:p=>(0,o.show)([p.whereKw,p.expr]),group_by_clause:p=>(0,o.show)([p.groupByKw,p.distinctKw,p.columns,p.withRollupKw]),group_by_rollup:p=>(0,o.show)([p.rollupKw,p.columns]),group_by_cube:p=>(0,o.show)([p.cubeKw,p.columns]),group_by_grouping_sets:p=>(0,o.show)([p.groupingSetsKw,p.columns]),group_by_all:p=>(0,o.show)([p.allKw]),having_clause:p=>(0,o.show)([p.havingKw,p.expr]),qualify_clause:p=>(0,o.show)([p.qualifyKw,p.expr]),order_by_clause:p=>(0,o.show)([p.orderByKw,p.specifications,p.withRollupKw]),partition_by_clause:p=>(0,o.show)([p.partitionByKw,p.specifications]),window_clause:p=>(0,o.show)([p.windowKw,p.namedWindows]),named_window:p=>(0,o.show)([p.name,p.asKw,p.window]),window_definition:p=>(0,o.show)([p.baseWindowName,p.partitionBy,p.orderBy,p.frame]),limit_clause:p=>p.offsetKw?(0,o.show)([p.limitKw,p.count,p.offsetKw,p.offset,p.rowsExamined]):p.offset?(0,o.show)([p.limitKw,p.offset,",",p.count,p.rowsExamined]):(0,o.show)([p.limitKw,p.count,p.rowsExamined]),limit_all:p=>(0,o.show)(p.allKw),limit_rows_examined:p=>(0,o.show)([p.rowsExaminedKw,p.count]),offset_clause:p=>(0,o.show)([p.offsetKw,p.offset,p.rowsKw]),fetch_clause:p=>(0,o.show)([p.fetchKw,p.count,p.rowsKw,p.withTiesKw]),into_table_clause:p=>(0,o.show)([p.intoKw,p.kind,p.tableKw,p.name]),into_variables_clause:p=>(0,o.show)([p.intoKw,p.variables]),into_dumpfile_clause:p=>(0,o.show)([p.intoDumpfileKw,p.filename]),into_outfile_clause:p=>(0,o.show)([p.intoOutfileKw,p.filename,p.charset,p.fields,p.lines]),outfile_fields:p=>(0,o.show)([p.fieldsKw,p.options]),outfile_lines:p=>(0,o.show)([p.linesKw,p.options]),outfile_option_character_set:p=>(0,o.show)([p.characterSetKw,p.value]),outfile_option_enclosed_by:p=>(0,o.show)([p.optionallyKw,p.enclosedByKw,p.value]),outfile_option_escaped_by:p=>(0,o.show)([p.escapedByKw,p.value]),outfile_option_starting_by:p=>(0,o.show)([p.startingByKw,p.value]),outfile_option_terminated_by:p=>(0,o.show)([p.terminatedByKw,p.value]),for_clause:p=>(0,o.show)([p.forKw,p.lockStrengthKw,p.tables,p.waitingKw]),for_clause_tables:p=>(0,o.show)([p.ofKw,p.tables]),lock_in_share_mode_clause:p=>(0,o.show)(p.lockInShareModeKw),table_clause:p=>(0,o.show)([p.tableKw,p.table])},hm}var mm={},mk;function Mgi(){if(mk)return mm;mk=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.sequenceMap=void 0;const o=xi();return mm.sequenceMap={create_sequence_stmt:p=>(0,o.show)([p.createKw,p.kind,p.sequenceKw,p.ifNotExistsKw,p.name,p.options]),sequence_option_list:p=>(0,o.show)(p.options),sequence_option_as_type:p=>(0,o.show)([p.asKw,p.dataType]),sequence_option_increment:p=>(0,o.show)([p.incrementKw,p.byKw,p.value]),sequence_option_start:p=>(0,o.show)([p.startKw,p.withKw,p.value]),sequence_option_restart:p=>(0,o.show)([p.restartKw,p.withKw,p.value]),sequence_option_minvalue:p=>(0,o.show)([p.minvalueKw,p.value]),sequence_option_maxvalue:p=>(0,o.show)([p.maxvalueKw,p.value]),sequence_option_no_minvalue:p=>(0,o.show)(p.noMinvalueKw),sequence_option_no_maxvalue:p=>(0,o.show)(p.noMaxvalueKw),sequence_option_cache:p=>(0,o.show)([p.cacheKw,p.value]),sequence_option_cycle:p=>(0,o.show)(p.cycleKw),sequence_option_no_cycle:p=>(0,o.show)(p.noCycleKw),sequence_option_owned_by:p=>(0,o.show)([p.ownedByKw,p.owner]),alter_sequence_stmt:p=>(0,o.show)([p.alterKw,p.sequenceKw,p.ifExistsKw,p.sequence,p.actions]),drop_sequence_stmt:p=>(0,o.show)([p.dropKw,p.sequenceKw,p.ifExistsKw,p.sequences,p.behaviorKw])},mm}var Tm={},Tk;function Ggi(){if(Tk)return Tm;Tk=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.typeMap=void 0;const o=xi();return Tm.typeMap={create_type_stmt:p=>(0,o.show)([p.createTypeKw,p.name,p.definition]),composite_type_definition:p=>(0,o.show)([p.asKw,p.columns]),enum_type_definition:p=>(0,o.show)([p.asEnumKw,p.values]),alter_type_stmt:p=>(0,o.show)([p.alterTypeKw,p.name,p.actions]),drop_type_stmt:p=>(0,o.show)([p.dropTypeKw,p.ifExistsKw,p.types,p.behaviorKw])},Tm}var vm={},vk;function kgi(){if(vk)return vm;vk=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.transactionMap=void 0;const o=xi();return vm.transactionMap={start_transaction_stmt:p=>(0,o.show)([p.startKw,p.behaviorKw,p.transactionKw,p.modes]),commit_transaction_stmt:p=>(0,o.show)([p.commitKw,p.transactionKw,p.chain]),rollback_transaction_stmt:p=>(0,o.show)([p.rollbackKw,p.transactionKw,p.savepoint,p.chain]),rollback_to_savepoint:p=>(0,o.show)([p.toKw,p.savepointKw,p.savepoint]),savepoint_stmt:p=>(0,o.show)([p.savepointKw,p.savepoint]),release_savepoint_stmt:p=>(0,o.show)([p.releaseKw,p.savepointKw,p.savepoint]),transaction_chain_clause:p=>(0,o.show)([p.andChainKw]),transaction_no_chain_clause:p=>(0,o.show)([p.andNoChainKw]),transaction_mode_deferrable:p=>(0,o.show)([p.deferrableKw]),transaction_mode_not_deferrable:p=>(0,o.show)([p.notDeferrableKw]),transaction_mode_read_write:p=>(0,o.show)([p.readWriteKw]),transaction_mode_read_only:p=>(0,o.show)([p.readOnlyKw]),transaction_mode_isolation_level:p=>(0,o.show)([p.isolationLevelKw,p.levelKw])},vm}var Em={},Ek;function jgi(){if(Ek)return Em;Ek=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.triggerMap=void 0;const o=xi();return Em.triggerMap={create_trigger_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.kind,p.triggerKw,p.ifNotExistsKw,p.name,p.timeKw,p.event,p.target,p.clauses,p.body]),trigger_event:p=>(0,o.show)([p.eventKw,p.ofKw,p.columns]),trigger_target:p=>(0,o.show)([p.onKw,p.table]),for_each_clause:p=>(0,o.show)([p.forEachKw,p.itemKw]),when_clause:p=>(0,o.show)([p.whenKw,p.expr]),from_referenced_table_clause:p=>(0,o.show)([p.fromKw,p.table]),trigger_timing_clause:p=>(0,o.show)([p.timingKw]),trigger_referencing_clause:p=>(0,o.show)([p.referencingKw,p.transitions]),trigger_transition:p=>(0,o.show)([p.oldOrNewKw,p.rowOrTableKw,p.asKw,p.name]),execute_clause:p=>(0,o.show)([p.executeKw,p.functionKw,p.name,p.args]),alter_trigger_stmt:p=>(0,o.show)([p.alterTriggerKw,p.trigger,p.target,p.action]),drop_trigger_stmt:p=>(0,o.show)([p.dropTriggerKw,p.ifExistsKw,p.trigger,p.target,p.behaviorKw])},Em}var bm={},bk;function Ugi(){if(bk)return bm;bk=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.truncateMap=void 0;const o=xi();return bm.truncateMap={truncate_stmt:p=>(0,o.show)([p.truncateKw,p.tableKw,p.tables,p.restartOrContinueKw,p.behaviorKw])},bm}var Am={},Ak;function Kgi(){if(Ak)return Am;Ak=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.updateMap=void 0;const o=xi();return Am.updateMap={update_stmt:p=>(0,o.show)(p.clauses),update_clause:p=>(0,o.show)([p.updateKw,p.modifiers,p.orAction,p.tables]),set_clause:p=>(0,o.show)([p.setKw,p.assignments]),column_assignment:p=>(0,o.show)([p.column,"=",p.expr])},Am}var gm={},gk;function Fgi(){if(gk)return gm;gk=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.viewMap=void 0;const o=xi();return gm.viewMap={create_view_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.kinds,p.viewKw,p.ifNotExistsKw,p.name,p.columns,p.clauses]),with_check_option_clause:p=>(0,o.show)([p.withKw,p.levelKw,p.checkOptionKw]),as_replica_of_clause:p=>(0,o.show)([p.asReplicaOfKw,p.view]),drop_view_stmt:p=>(0,o.show)([p.dropKw,p.kind,p.viewKw,p.ifExistsKw,p.views,p.behaviorKw]),alter_view_stmt:p=>(0,o.show)([p.alterKw,p.kind,p.viewKw,p.ifExistsKw,p.name,p.columns,p.actions]),refresh_materialized_view_stmt:p=>(0,o.show)([p.refreshMaterializedViewKw,p.concurrentlyKw,p.name,p.clauses])},gm}var Im={},Ik;function Sgi(){if(Ik)return Im;Ik=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.frameMap=void 0;const o=xi();return Im.frameMap={frame_clause:p=>(0,o.show)([p.unitKw,p.extent,p.exclusion]),frame_between:p=>(0,o.show)([p.betweenKw,p.begin,p.andKw,p.end]),frame_bound_current_row:p=>(0,o.show)(p.currentRowKw),frame_bound_preceding:p=>(0,o.show)([p.expr,p.precedingKw]),frame_bound_following:p=>(0,o.show)([p.expr,p.followingKw]),frame_unbounded:p=>(0,o.show)(p.unboundedKw),frame_exclusion:p=>(0,o.show)([p.excludeKw,p.kindKw])},Im}var Rm={},Rk;function qgi(){if(Rk)return Rm;Rk=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.renameTableMap=void 0;const o=xi();return Rm.renameTableMap={rename_table_stmt:p=>(0,o.show)([p.renameKw,p.tableKw,p.actions]),rename_action:p=>(0,o.show)([p.from,p.toKw,p.to])},Rm}var Dm={},Dk;function Zgi(){if(Dk)return Dm;Dk=1,Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.otherClausesMap=void 0;const o=xi();return Dm.otherClausesMap={returning_clause:p=>(0,o.show)([p.returningKw,p.columns]),where_current_of_clause:p=>(0,o.show)([p.whereCurrentOfKw,p.cursor]),cluster_by_clause:p=>(0,o.show)([p.clusterByKw,p.columns])},Dm}var wm={},wk;function Hgi(){if(wk)return wm;wk=1,Object.defineProperty(wm,"__esModule",{value:!0}),wm.bigqueryMap=void 0;const o=xi();return wm.bigqueryMap={bigquery_options:p=>(0,o.show)([p.optionsKw,p.options]),bigquery_option_default_collate:p=>(0,o.show)([p.defaultCollateKw,p.collation]),create_capacity_stmt:p=>(0,o.show)([p.createKw,p.capacityKw,p.name,p.options]),drop_capacity_stmt:p=>(0,o.show)([p.dropKw,p.capacityKw,p.ifExistsKw,p.name]),create_reservation_stmt:p=>(0,o.show)([p.createKw,p.reservationKw,p.name,p.options]),drop_reservation_stmt:p=>(0,o.show)([p.dropKw,p.reservationKw,p.ifExistsKw,p.name]),create_assignment_stmt:p=>(0,o.show)([p.createKw,p.assignmentKw,p.name,p.options]),drop_assignment_stmt:p=>(0,o.show)([p.dropKw,p.assignmentKw,p.ifExistsKw,p.name]),create_row_access_policy_stmt:p=>(0,o.show)([p.createKw,p.orReplaceKw,p.rowAccessPolicyKw,p.ifNotExistsKw,p.name,p.onKw,p.table,p.clauses]),row_access_policy_grant_clause:p=>(0,o.show)([p.grantToKw,p.grantees]),row_access_policy_filter_clause:p=>(0,o.show)([p.filterUsingKw,p.expr]),drop_row_access_policy_stmt:p=>(0,o.show)([p.dropKw,p.allKw,p.rowAccessPolicyKw,p.ifExistsKw,p.name,p.onKw,p.table]),alter_organization_stmt:p=>(0,o.show)([p.alterOrganizationKw,p.actions]),alter_project_stmt:p=>(0,o.show)([p.alterProjectKw,p.name,p.actions]),alter_bi_capacity_stmt:p=>(0,o.show)([p.alterBiCapacityKw,p.name,p.actions]),alter_capacity_stmt:p=>(0,o.show)([p.alterCapacityKw,p.name,p.actions]),alter_reservation_stmt:p=>(0,o.show)([p.alterReservationKw,p.name,p.actions]),assert_stmt:p=>(0,o.show)([p.assertKw,p.expr,p.as]),export_data_stmt:p=>(0,o.show)([p.exportDataKw,p.withConnection,p.options,p.as]),load_data_stmt:p=>(0,o.show)([p.loadDataKw,p.intoKw,p.table,p.columns,p.clauses]),from_files_options:p=>(0,o.show)([p.fromFilesKw,p.options])},wm}var Om={},Ok;function Wgi(){if(Ok)return Om;Ok=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.postgresqlMap=void 0;const o=xi();return Om.postgresqlMap={postgresql_operator_expr:p=>(0,o.show)([p.operatorKw,p.expr]),postgresql_operator:p=>(0,o.show)(p.operator),postgresql_operator_class:p=>(0,o.show)([p.name,p.options]),postgresql_options:p=>(0,o.show)([p.optionsKw,p.options]),postgresql_option_element:p=>(0,o.show)([p.name,p.value]),postgresql_with_options:p=>(0,o.show)([p.withKw,p.options])},Om}var Cm={},Ck;function zgi(){if(Ck)return Cm;Ck=1,Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.sqliteMap=void 0;const o=xi();return Cm.sqliteMap={attach_database_stmt:p=>(0,o.show)([p.attachKw,p.databaseKw,p.file,p.asKw,p.schema]),detach_database_stmt:p=>(0,o.show)([p.detachKw,p.databaseKw,p.schema]),vacuum_stmt:p=>(0,o.show)([p.vacuumKw,p.schema,p.intoKw,p.file]),pragma_stmt:p=>(0,o.show)([p.pragmaKw,p.pragma]),pragma_assignment:p=>(0,o.show)([p.name,"=",p.value]),pragma_func_call:p=>(0,o.show)([p.name,p.args])},Cm}var _m={},_k;function Jgi(){if(_k)return _m;_k=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.mysqlMap=void 0;const o=xi();return _m.mysqlMap={mysql_modifier:p=>(0,o.show)(p.modifierKw)},_m}var dR={};Object.defineProperty(dR,"__esModule",{value:!0});dR.unsupportedGrammarMap=void 0;dR.unsupportedGrammarMap={unsupported_grammar_stmt:o=>o.text};var Vk;function Ygi(){if(Vk)return S0;Vk=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.transformMap=void 0;const o=cgi(),p=fgi(),i=ygi(),n=hgi(),s=mgi(),c=Tgi(),e=vgi(),y=Egi(),m=bgi(),v=Agi(),E=ggi(),b=Igi(),w=Rgi(),V=Dgi(),$=wgi(),B=Ogi(),j=Cgi(),F=_gi(),K=Vgi(),Y=Pgi(),ie=Ngi(),ee=xgi(),de=$gi(),ae=Lgi(),fe=Bgi(),ve=Mgi(),ue=Ggi(),ye=kgi(),Ve=jgi(),_e=Ugi(),xe=Kgi(),Pe=Fgi(),Me=Sgi(),Se=qgi(),je=Zgi(),Ze=Hgi(),Ye=Wgi(),st=zgi(),dt=Jgi(),_t=dR;return S0.transformMap=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n.baseMap),fe.selectMap),Me.frameMap),B.insertMap),xe.updateMap),m.deleteMap),_e.truncateMap),j.mergeMap),c.createTableMap),s.constraintMap),p.alterTableMap),o.alterActionMap),E.dropTableMap),Se.renameTableMap),ae.schemaMap),Pe.viewMap),$.indexMap),Ve.triggerMap),ve.sequenceMap),ue.typeMap),v.domainMap),de.roleMap),F.policyMap),V.functionMap),ie.procedureMap),ee.procClauseMap),i.analyzeMap),b.explainMap),ye.transactionMap),y.dclMap),Y.proceduralLanguageMap),K.preparedStatementsMap),je.otherClausesMap),st.sqliteMap),Ze.bigqueryMap),dt.mysqlMap),Ye.postgresqlMap),w.exprMap),e.dataTypeMap),_t.unsupportedGrammarMap),S0}var Pk;function xi(){if(Pk)return F0;Pk=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.show=void 0;const o=cv,p=Ygi(),i=na;function n(y,m=""){return(0,i.isString)(y)?y:y instanceof Array?y.filter(i.isDefined).map(v=>n(v)).join(m):[s(y.leading),e(y),s(y.trailing)].filter(i.isDefined).join("")}F0.show=n;const s=y=>{if(y)return y.map(c).join("")},c=y=>y.text,e=(0,o.cstTransformer)(p.transformMap);return F0}var uR={};Object.defineProperty(uR,"__esModule",{value:!0});uR.validDialectNames=void 0;uR.validDialectNames={sqlite:!0,mysql:!0,mariadb:!0,bigquery:!0,postgresql:!0};(function(o){var p=Pr&&Pr.__createBinding||(Object.create?function(E,b,w,V){V===void 0&&(V=w);var $=Object.getOwnPropertyDescriptor(b,w);(!$||("get"in $?!b.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return b[w]}}),Object.defineProperty(E,V,$)}:function(E,b,w,V){V===void 0&&(V=w),E[V]=b[w]}),i=Pr&&Pr.__exportStar||function(E,b){for(var w in E)w!=="default"&&!Object.prototype.hasOwnProperty.call(b,w)&&p(b,E,w)};Object.defineProperty(o,"__esModule",{value:!0}),o.show=o.parse=o.FormattedSyntaxError=void 0,i(xLe,o),i(I2e,o),i(cv,o),i(R2e,o);var n=zm;Object.defineProperty(o,"FormattedSyntaxError",{enumerable:!0,get:function(){return n.FormattedSyntaxError}});const s=Py,c=xi(),e=uR,y=zm;function m(E,b){if(!b||!b.dialect)throw new Error("No SQL dialect specified.");if(!e.validDialectNames[b.dialect])throw new Error(`Unsupported dialect name: "${b.dialect}"`);try{return(0,s.parse)(E,b)}catch(w){throw w instanceof s.PeggySyntaxError?new y.FormattedSyntaxError(w,E,b.filename):w}}o.parse=m;function v(E){return(0,c.show)(E)}o.show=v})(Vy);const Xgi=Wa(Vy),Qgi=u5t({__proto__:null,default:Xgi},[Vy]);function _2e(o){if(!o)return!1;const p=o.owner;return o.selectedColumns.some(s=>p.duplicateColumnNames.includes(s.as))}var gA=(o=>(o.SearchStatement="search-statement",o.NestedSearchStatement="nested-search-statement",o.DataSource="data-source",o.ColumnRef="column-ref",o.ValueRef="value-ref",o.LiteralValue="search-statement-literal-value",o.WhereStatement="where-statement",o.AggregationStatement="aggregation-statement",o.SortStatement="sort-statement",o.AllColumnsSelector="all-columns-selector",o))(gA||{}),Ty=(o=>(o.Inner="inner",o.Left="left",o.Right="right",o.Full="full",o.Cross="cross",o.Self="self",o.Natural="natural",o))(Ty||{});class zb{constructor(p){I(this,"owner");I(this,"dataSource",null);I(this,"joinType","inner");I(this,"on",null);I(this,"as",null);this.owner=p}get type(){return"aggregation-statement"}get id(){var p;return this.type+"--"+((p=this.dataSource)==null?void 0:p.id)}get columns(){var p;return(((p=this.dataSource)==null?void 0:p.columns)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=this.dataSource,n.as=i.as,n})}get isValid(){const p=this.joinType!=="cross"?!!this.on:!0;return!!this.dataSource&&!!this.as&&p}get selections(){var p;return(((p=this.dataSource)==null?void 0:p.selections)||[]).map(i=>{if(i.type==="column-ref"){const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n}else if(i.type==="all-columns-selector"){const n=new Ny(this.owner);return n.parent=i.parent,n}return i})}get selectedColumns(){var p;return(((p=this.dataSource)==null?void 0:p.selectedColumns)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n})}get primaryKeys(){var p;return(((p=this.dataSource)==null?void 0:p.primaryKeys)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n})}get primaryKey(){var i;const p=((i=this.dataSource)==null?void 0:i.primaryKey)||null;if(p){const n=new Fi(this.owner);return n.source=p,n.parent=p.parent,n.as=p.as,n}return null}setDataSource(p){this.dataSource=p}removeDataSource(){this.dataSource=null}editDataSource(p){this.dataSource=p}}class gd{constructor(p){I(this,"owner");I(this,"inputMap",null);I(this,"_id",x.UUID.uuid());this.owner=p}get id(){var p;return this.type+"--"+((p=this.inputMap)==null?void 0:p.id)+"--"+this._id}get type(){return"value-ref"}toQuery(){return this.inputMap?`'{{::${this.inputMap.id}}}'`:""}}var Qi=(o=>(o.String="string",o.Number="number",o.Boolean="boolean",o.Null="null",o.Date="date",o))(Qi||{});class Fr{constructor(p){I(this,"owner");I(this,"valueType","string");I(this,"value",null);I(this,"_id",x.UUID.uuid());this.owner=p}get type(){return"search-statement-literal-value"}get id(){return this.type+"--"+this._id}toQuery(){if(this.valueType==="string"){if(typeof this.value=="string")return`'${this.value}'`}else if(this.valueType==="number"){if(typeof this.value=="number")return`${this.value.toString()}`}else if(this.valueType==="boolean"){if(this.value===!0)return"TRUE";if(this.value===!1)return"FALSE"}else if(this.valueType==="null")return"NULL";return this.value?`'${this.value.toString()}'`:"NULL"}}var vc=(o=>(o.Like="like",o.NotLike="not-like",o.In="in",o.Equal="=",o.Between="-",o.BiggerThan=">",o.SmallerThan="<",o.BiggerThanOrEqualTo=">=",o.SmallerThanOrEqualTo="<=",o.NotEqual="!=",o))(vc||{});function V2e(o){switch(o){case"like":return"LIKE";case"not-like":return"NOT LIKE";case"in":return"IN";case"-":return"BETWEEN";default:return o}}class P2e{constructor(p,i){I(this,"owner");I(this,"parent",null);I(this,"and",[]);I(this,"or",[]);I(this,"left",null);I(this,"operator",null);I(this,"right",null);I(this,"_id",x.UUID.uuid());this.owner=p,this.parent=i||null}get type(){return"where-statement"}get isValid(){return!!this.operator&&!!this.left&&!!this.right||this.and.length>0||this.or.length>0}get id(){return this.type+"--"+this._id}removeDataSource(p){var i,n;this.left instanceof Fi&&((i=this.left.parent)==null?void 0:i.id)===(p==null?void 0:p.id)&&(this.left=null,this.remove()),this.right instanceof Fi&&((n=this.right.parent)==null?void 0:n.id)===(p==null?void 0:p.id)&&(this.right=null,this.remove()),this.and.forEach(s=>{s.removeDataSource(p)}),this.or.forEach(s=>{s.removeDataSource(p)}),this.sanitize()}toQuery(){var n,s;let p="";if(!this.isValid)return"";let i=!1;if(this.operator&&this.left&&this.right){let c="";if(this.left instanceof Fi){const y=this.left.as;c=((n=this.left.parent)==null?void 0:n.as)+"."+y}else this.left instanceof gd?c=this.left.toQuery():this.left instanceof Fr&&(c=this.left.toQuery());let e="";if(this.right instanceof Fi){const y=this.right.as;e=((s=this.right.parent)==null?void 0:s.as)+"."+y}else this.right instanceof gd?e=this.right.toQuery():this.right instanceof Fr&&(e=this.right.toQuery());p=`${c} ${V2e(this.operator)} ${e}`}else this.and.length>0&&this.and.forEach((c,e)=>{c.isValid&&(e>0&&i&&(p+=" AND "),c.and.length>0||c.or.length>0?(i=!0,p+=`(${c.toQuery()})`):(i=!0,p+=c.toQuery()))}),this.or.length>0&&(p+=this.and.length>0&&i?" OR ":"",this.or.forEach((c,e)=>{c.isValid&&(e>0&&i&&(p+=" OR "),c.and.length>0||c.or.length>0?(i=!0,p+=`(${c.toQuery()})`):(i=!0,p+=c.toQuery()))}));return p}sanitize(){var n,s;if([...this.and,...this.or].forEach(c=>{c.sanitize()}),[...((n=this.parent)==null?void 0:n.and)||[],...((s=this.parent)==null?void 0:s.or)||[]].length===1){const c=this.parent;c.left=this.left,c.operator=this.operator,c.right=this.right,c.and=this.and,c.or=this.or,this.removeFromParent(),c.sanitize()}}removeFromParent(){const p=this.parent;if((p==null?void 0:p.type)==="where-statement"){const i=p.and.includes(this),n=p.or.includes(this);if(i){const s=p.and.findIndex(c=>c===this);s!==-1&&p.and.splice(s,1)}else if(n){const s=p.or.findIndex(c=>c===this);s!==-1&&p.or.splice(s,1)}}}remove(){var p,i,n,s;if([...((p=this.parent)==null?void 0:p.and)||[],...((i=this.parent)==null?void 0:i.or)||[]].length===2){const c=this.parent;this==null||this.removeFromParent();const e=[...c.and||[],...c.or||[]][0];c.left=e.left,c.operator=e.operator,c.right=e.right,c.and=e.and,c.or=e.or,e==null||e.removeFromParent(),c.sanitize()}else if([...((n=this.parent)==null?void 0:n.and)||[],...((s=this.parent)==null?void 0:s.or)||[]].length===1){const c=this.parent;this==null||this.removeFromParent(),c==null||c.remove()}else this==null||this.removeFromParent()}}class VN{constructor(p){I(this,"owner");I(this,"statement",null);I(this,"as",null);this.owner=p}get type(){return"nested-search-statement"}get id(){var p;return this.type+"--"+(((p=this.statement)==null?void 0:p.id)||"unknown")}get isValid(){return!!this.statement&&!!this.as&&this.statement.isValid}get columns(){var p;return(((p=this.statement)==null?void 0:p.columns)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n})}get mainPersistedEntity(){var p;return((p=this.statement)==null?void 0:p.mainPersistedEntity)||null}get selections(){var p;return(((p=this.statement)==null?void 0:p.selections)||[]).map(i=>{if(i.type==="column-ref"){const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n}else if(i.type==="all-columns-selector"){const n=new Ny(this.owner);return n.parent=i.parent,n}return i})}get selectedColumns(){var p;return(((p=this.statement)==null?void 0:p.selectedColumns)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n})}get primaryKeys(){var p;return(((p=this.statement)==null?void 0:p.primaryKeys)||[]).map(i=>{const n=new Fi(this.owner);return n.source=i,n.parent=i.parent,n.as=i.as,n})}get primaryKey(){var i;const p=((i=this.statement)==null?void 0:i.primaryKey)||null;if(p){const n=new Fi(this.owner);return n.source=p,n.parent=p.parent,n.as=p.as,n}return null}toQuery(){var i;const p=((i=this.statement)==null?void 0:i.toQuery())||"";return p.endsWith(";")?p.substring(0,p.length-1):p}}var hd=(o=>(o.Table="table",o.Query="query",o.Aggregation="aggregation",o))(hd||{});class La{constructor(p){I(this,"owner");I(this,"entity",null);I(this,"query",null);I(this,"aggregation",null);I(this,"sourceType","table");this.owner=p}get id(){var p,i,n;return this.type+"--"+this.sourceType+"--"+(((p=this.entity)==null?void 0:p.id)||((i=this.query)==null?void 0:i.id)||((n=this.aggregation)==null?void 0:n.id)||"unknown")}get type(){return"data-source"}get isValid(){return(!!this.entity||!!this.query||!!this.aggregation)&&!!this.as}get source(){return this.sourceType==="table"?this.entity:this.sourceType==="query"?this.query:this.sourceType==="aggregation"?this.aggregation:null}set as(p){this.sourceType==="query"&&this.source&&(this.source.as=p)}get as(){var p;return this.source&&(((p=this.source)==null?void 0:p.as)||`"${this.source.name?Oc(this.source.name):""}"`)||""}get columns(){var p,i,n;if(this.sourceType==="table")return(this.entity?mn(this.entity):[]).map(c=>{const e=new Fi(this.owner);return e.source=c,e.parent=this,e.as=Hi(c.name),e})||[];if(this.sourceType==="query"){const s=[];return(p=this.query)==null||p.selections.forEach(c=>{var e;if(c.type==="column-ref"){const y=new Fi(this.owner);y.source=c,y.parent=this,y.as=c.as,s.push(y)}else c.type==="all-columns-selector"&&((e=c.parent)==null?void 0:e.type)==="data-source"&&c.parent.columns.forEach(v=>{const E=new Fi(this.owner);E.source=v,E.parent=this,E.as=v.as,s.push(E)})}),s}else if(this.sourceType==="aggregation")return(((n=(i=this.aggregation)==null?void 0:i.dataSource)==null?void 0:n.columns)||[]).map(s=>{const c=new Fi(this.owner);return c.source=s,c.parent=this,c.as=s.as,c});return[]}get selections(){var p,i;return this.sourceType==="table"?this.columns:this.sourceType==="query"?((p=this.query)==null?void 0:p.selections)||[]:this.sourceType==="aggregation"?((i=this.aggregation)==null?void 0:i.selections)||[]:[]}get mainPersistedEntity(){var p,i,n;return this.sourceType==="table"?this.entity:this.sourceType==="query"?((p=this.query)==null?void 0:p.mainPersistedEntity)||null:this.sourceType==="aggregation"&&((n=(i=this.aggregation)==null?void 0:i.dataSource)==null?void 0:n.mainPersistedEntity)||null}get selectedColumns(){const p=[];return this.selections.forEach(i=>{var n;if(i.type==="column-ref")p.push(i);else if(i.type==="all-columns-selector"&&((n=i.parent)==null?void 0:n.type)==="data-source"){const c=i.parent.columns;p.push(...c)}}),p}get primaryKeys(){return this.columns.filter(i=>{var n;return(n=i.property)==null?void 0:n.implements.find(s=>s.id===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id)})}get primaryKey(){const p=this.mainPersistedEntity;if(p){const s=mn(p).find(c=>c.implements.find(e=>e.id===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id));if(s){const c=this.columns.find(e=>e.property===s);if(c)return c}}const i=this.primaryKeys;return i.length>0?i[0]:null}}class Fi{constructor(p){I(this,"owner");I(this,"source",null);I(this,"parent",null);I(this,"_id",x.UUID.uuid());I(this,"_as",null);this.owner=p}set as(p){this._as=p}get as(){var s;const p=(s=this.source)==null?void 0:s.name,i=p?Hi(p):"";return this._as||i}get property(){var p,i;return((p=this.source)==null?void 0:p.type)==="column-ref"?this.source.property:((i=this.source)==null?void 0:i.type)===d.Property?this.source:null}get literalValue(){var p,i;return((p=this.source)==null?void 0:p.type)==="column-ref"?this.source.literalValue:((i=this.source)==null?void 0:i.type)==="search-statement-literal-value"?this.source:null}get type(){return"column-ref"}get id(){var p,i;return this.type+"--"+((p=this.parent)==null?void 0:p.id)+"--"+(((i=this.source)==null?void 0:i.id)||"unknown")}get isValid(){return!!this.source&&!!this.as&&(this.literalValue?!0:!!this.parent)}}class Ny{constructor(p){I(this,"owner");I(this,"parent",null);this.owner=p}get type(){return"all-columns-selector"}get id(){var p;return this.type+"--"+(((p=this.parent)==null?void 0:p.id)||"unknown")}get isValid(){return!!this.parent&&!!this.parent.as}get columns(){var p;return((p=this.parent)==null?void 0:p.columns)||[]}get selectedColumns(){return this.columns||[]}}var N2e=(o=>(o.Ascending="asc",o.Descending="desc",o))(N2e||{});class x2e{constructor(p){I(this,"owner");I(this,"column",null);I(this,"direction","asc");I(this,"index",0);this.owner=p}get type(){return"sort-statement"}get isValid(){return!!this.column&&!!this.column.as&&!!this.direction}}class $2e{constructor(p){I(this,"id","");I(this,"selections",[]);I(this,"from",null);I(this,"aggregations",[]);I(this,"where",null);I(this,"offset",null);I(this,"limit",null);I(this,"asList",!0);I(this,"sorting",[]);I(this,"dataSources",[]);this.id=p,this.offset=new Fr(this),this.offset.value=0,this.offset.valueType="number",this.limit=new Fr(this),this.limit.value=10,this.limit.valueType="number"}get isUntouchedEntity(){var n,s;if(!this.isValid||!this.from||!this.mainPersistedEntity||this.from.sourceType==="query"&&(!this.from.query||!((n=this.from.query.statement)!=null&&n.isUntouchedEntity))||this.validSelections.length===0||this.aggregations.some(c=>c.isValid))return!1;if(this.validSelections.length===1&&this.validSelections[0].type==="all-columns-selector"&&((s=this.validSelections[0].parent)==null?void 0:s.id)===this.from.id)return!0;let p=mn(this.mainPersistedEntity);return!!(this.validSelections.every(c=>{if(c.type!=="column-ref"||!c.property)return!1;const e=p.findIndex(v=>{var E;return v.id===((E=c.property)==null?void 0:E.id)});e!==-1&&p.splice(e,1);const y=Hi(c.property.name),m=c.as;return y===m})&&p.length===0)}get usedDataSources(){const p=[];return this.from&&p.push(this.from),this.aggregations.forEach(i=>{const n=new La(this);n.aggregation=i,n.sourceType="aggregation";const s=this.addDataSource(n);p.push(s)}),p}get type(){return"search-statement"}get mainPersistedEntity(){return this.from&&this.from.sourceType==="table"?this.from.entity:this.from&&this.from.sourceType==="query"&&this.from.query?this.from.query.mainPersistedEntity:null}get mainDatabaseEntity(){const p=this.mainPersistedEntity;return p?q4e(p):null}get validSortings(){return this.sorting.filter(p=>{var i;return p.isValid&&!!((i=p.column)!=null&&i.isValid)&&!this.duplicateColumnNames.includes(p.column.as)})}get selectedColumns(){const p=[];return this.selections.forEach(i=>{if(i.type==="column-ref")p.push(i);else if(i.type==="all-columns-selector"){const n=i.selectedColumns;p.push(...n)}}),p}get validSelections(){return this.selections.filter(p=>{var i,n;return!(!p.isValid||((n=(i=p.parent)==null?void 0:i.source)==null?void 0:n.type)==="aggregation-statement"&&(!this.from||!this.from.isValid)||p.type==="all-columns-selector"&&_2e(p)||p.type==="column-ref"&&this.duplicateColumnNames.includes(p.as))})}get validSelectedColumns(){const p=[];return this.validSelections.forEach(i=>{if(i.type==="column-ref")p.push(i);else if(i.type==="all-columns-selector"){const n=i.selectedColumns;p.push(...n)}}),p}get columns(){const p=[];if(this.selections.forEach(i=>{var n;if(i.type==="column-ref")p.push(i);else if(i.type==="all-columns-selector"&&((n=i.parent)==null?void 0:n.type)==="data-source"){const c=i.parent.columns;p.push(...c)}}),this.from){const i=this.from.columns;p.push(...i)}return p}get isValid(){return!!this.from&&this.from.isValid&&!!this.validSelections.length}get primaryKeys(){return this.selectedColumns.filter(i=>{var n;return(n=i.property)==null?void 0:n.implements.find(s=>s.id===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id)})}get primaryKey(){const p=this.mainPersistedEntity;if(p){const s=mn(p).find(c=>c.implements.find(e=>e.id===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id));if(s){const c=this.selectedColumns.find(e=>e.property===s);if(c)return c}}const i=this.primaryKeys;return i.length>0?i[0]:null}get duplicateColumnNames(){const p=new Set,i=[];return this.selectedColumns.forEach(n=>{p.has(n.as)?i.push(n.as):p.add(n.as)}),i}get isOnlyAllFromSelected(){var p,i;return this.selections.length===1&&this.selections[0].type==="all-columns-selector"&&((p=this.selections[0].parent)==null?void 0:p.id)===((i=this.from)==null?void 0:i.id)}addDataSource(p){const i=this.dataSources.find(n=>n===p||n.id===p.id);return i?(i.sourceType=p.sourceType,i.entity=p.entity,i.query=p.query,i.aggregation=p.aggregation):this.dataSources.push(p),i||p}getDataSource(p){return this.dataSources.find(i=>i.id===p)||null}editDataSource(p){const i=this.dataSources.find(n=>n===p||n.id===p.id);return i&&(i.sourceType=p.sourceType,i.entity=p.entity,i.query=p.query,i.aggregation=p.aggregation),i||null}toQuery(){var i,n,s,c,e,y;if(!this.isValid)return"";let p="SELECT ";if(this.isOnlyAllFromSelected)p+="*";else{let m=!1;this.validSelections.forEach((v,E)=>{var b,w,V;switch(v.type){case"all-columns-selector":{p+=((b=v.parent)==null?void 0:b.as)+".*",m=!0;break}case"column-ref":{const $=((w=v.source)==null?void 0:w.type)==="column-ref"?v.source:v;v.parent&&(p+=v.parent.as+"."),((V=v.source)==null?void 0:V.type)==="search-statement-literal-value"?p+=v.source.toQuery():p+=$.as,p+=" AS "+v.as,m=!0;break}default:{m=!1;break}}m&&E<this.validSelections.length-1&&(p+=", ")})}if(this.from&&this.from.isValid&&(p+=" FROM ",this.from.sourceType==="table"?this.from.entity&&(p+=`"${Oc((i=this.from.entity)==null?void 0:i.name)}"`):(s=(n=this.from)==null?void 0:n.query)!=null&&s.isValid&&(p+=`(${(e=(c=this.from)==null?void 0:c.query)==null?void 0:e.toQuery()}) AS ${((y=this.from)==null?void 0:y.as)||"NestedQuery"}`),this.aggregations.length>0&&this.aggregations.forEach(m=>{var E,b,w,V,$,B,j,F;if(!m.on||!m.on.isValid||!m.dataSource||!m.dataSource.isValid)return;let v="";m.joinType==="inner"?v+="INNER JOIN ":m.joinType==="left"?v+="LEFT JOIN ":m.joinType==="right"?v+="RIGHT JOIN ":m.joinType==="full"?v+="FULL JOIN ":m.joinType==="cross"?v+="CROSS JOIN ":m.joinType==="self"?v+="SELF JOIN ":m.joinType==="natural"&&(v+="NATURAL JOIN "),((E=m.dataSource)==null?void 0:E.sourceType)==="table"?(b=m.dataSource)!=null&&b.entity&&(v+=`"${Oc((V=(w=m.dataSource)==null?void 0:w.entity)==null?void 0:V.name)}"`):v+=`(${(B=($=m.dataSource)==null?void 0:$.query)==null?void 0:B.toQuery()}) AS ${(j=m.dataSource)==null?void 0:j.as}`,v+=m.on?" ON "+((F=m.on)==null?void 0:F.toQuery()):"",p+=" "+v})),this.where&&this.where.isValid&&this.from&&this.from.isValid&&(p+=" WHERE "+this.where.toQuery()),this.validSortings.length>0){const m=this.validSortings.sort((E,b)=>E.index-b.index);let v="";m.forEach(E=>{var b,w,V;v.length>0&&(v+=", "),v+=((w=(b=E.column)==null?void 0:b.parent)==null?void 0:w.as)+"."+((V=E.column)==null?void 0:V.as)+" "+E.direction||"asc"}),v.length>0&&(p+=" ORDER BY "+v)}return this.limit&&(this.limit.type==="search-statement-literal-value"&&this.limit.value>0&&(p+=" LIMIT "+this.limit.value),this.limit.type==="value-ref"&&(p+=` LIMIT ${this.limit.toQuery()}`),this.offset&&(this.offset.type==="search-statement-literal-value"&&this.offset.value>0&&(p+=" OFFSET "+this.offset.value),this.offset.type==="value-ref"&&(p+=` OFFSET ${this.offset.toQuery()}`))),yy(p+";")}calculateAst(){const p=this.toQuery();return p?{ast:Vy.parse(p,{dialect:"sqlite",includeSpaces:!0}),query:p}:{ast:null,query:null}}addAggregation(p){this.aggregations.find(n=>n.id===p.id)||this.aggregations.push(p)}removeAggregation(p){var n;this.aggregations=this.aggregations.filter(s=>s.id!==p.id),this.selections=this.selections.filter(s=>{var c,e;return((e=(c=s.parent)==null?void 0:c.source)==null?void 0:e.id)!==p.id}),this.sorting=this.sorting.filter(s=>{var c,e,y;return((y=(e=(c=s.column)==null?void 0:c.parent)==null?void 0:e.source)==null?void 0:y.id)!==p.id});const i=this.dataSources.find(s=>{var c;return((c=s.source)==null?void 0:c.id)===p.id});i&&((n=this.where)==null||n.removeDataSource(i))}editAggregation(p){const i=this.aggregations.findIndex(n=>n.id===p.id);this.aggregations[i]=p,p.joinType==="cross"&&(this.aggregations[i].on=null)}addSort(p){this.sorting.includes(p)||this.sorting.push(p)}removeSort(p){this.sorting=this.sorting.filter(i=>i!==p),this.selections=this.selections.filter(i=>{var n;return i.id!==((n=p.column)==null?void 0:n.id)})}editSort(p){const i=this.sorting.findIndex(n=>n===p);this.sorting[i]=p}addSelection(p){this.selections.find(n=>n.id===p.id)||this.selections.push(p)}removeSelection(p){this.selections=this.selections.filter(i=>i!==p),this.sorting=this.sorting.filter(i=>{var n;return((n=i.column)==null?void 0:n.id)!==p.id})}editSelection(p){const i=this.selections.findIndex(n=>n===p);i!==-1&&(this.selections[i]=p)}setFrom(p){var i,n,s;if(!(p&&this.from&&this.from.id===p.id)){if(p){if(((i=this.from)==null?void 0:i.id)!==p.id){this.from&&this.where&&((n=this.where)==null||n.removeDataSource(this.from)),this.aggregations.forEach(e=>{var y;this.from&&e.on&&((y=e.on)==null||y.removeDataSource(this.from))});const c=new Ny(this);c.parent=p,this.addSelection(c),this.selections=this.selections.filter(e=>{var y,m;return((y=e.parent)==null?void 0:y.id)!==((m=this.from)==null?void 0:m.id)}),this.sorting=this.sorting.filter(e=>{var y,m,v;return((m=(y=e.column)==null?void 0:y.parent)==null?void 0:m.id)!==((v=this.from)==null?void 0:v.id)})}this.from=p;return}this.from&&((s=this.where)==null||s.removeDataSource(this.from)),this.selections=this.selections.filter(c=>{var e,y;return((e=c.parent)==null?void 0:e.id)!==((y=this.from)==null?void 0:y.id)}),this.sorting=this.sorting.filter(c=>{var e,y,m;return((y=(e=c.column)==null?void 0:e.parent)==null?void 0:y.id)!==((m=this.from)==null?void 0:m.id)}),this.from&&this.aggregations.forEach(c=>{var e;this.from&&c.on&&((e=c.on)==null||e.removeDataSource(this.from))}),this.from=p}}setWhere(p){this.where=p}setLimit(p){this.limit=p}setOffset(p){this.offset=p}setAsList(p){this.asList=p}}const eIi=Object.freeze(Object.defineProperty({__proto__:null,AggregationStatement:zb,AggregationStatementType:Ty,AllColumnsSelector:Ny,ColumnRef:Fi,DataSource:La,DataSourceType:hd,NestedSearchStatement:VN,SearchLiteralValueType:Qi,SearchStatementLiteralValue:Fr,SearchStatementNodeType:gA,SearchStatementState:$2e,SortStatement:x2e,SortStatementDirection:N2e,ValueRef:gd,WhereStatement:P2e,WhereStatementOperator:vc,resolveAreThereConflictingColumnsInSelectAll:_2e,whereStatementOperatorToSQL:V2e},Symbol.toStringTag,{value:"Module"})),L2e=o=>o!==null&&typeof o=="object";function Pt(o){const p=o||"";let i=(p==null?void 0:p.replaceAll('""','"').trim())||"";return p.startsWith('"')&&(i=i.slice(1)),p.endsWith('"')&&(i=i.slice(0,i.length-1)),i}function yy(o){if(!o)return"";let p=o;return p=p.replaceAll('""','"').trim()||"",p.replace(/"{2,}/g,'"').trim()}function B2e(o,p){const n=PN(p).find(e=>Oc(e.name)===o);if(!n)return null;const s={entity:n,tableName:o,columns:[]};return mn(n).forEach(e=>{const y={columnName:Hi(e.name),property:e};s.columns.push(y)}),s}const tIi=["SELECT","FROM","WHERE","INSERT","UPDATE","DELETE","JOIN","CREATE","ALTER","DROP","UNION","ALL","ANY","AND","OR","NOT","NULL","LIKE","IN","IS","AS","ON","GROUP","BY","ORDER","HAVING"];function PN(o){return o.entities.filter(i=>{const n=$R(i)||i;return!!Ly(n).includes(Re.PERSISTED_ENTITY)})}function M2e(o){return o.statements.find(i=>i.type==="select_stmt")||null}function pR(o){return o.clauses.find(p=>p.type==="from_clause")||null}function G2e(o){const p=pR(o);if(!p)return null;let i=null,n="";if(p.expr.type==="paren_expr")i=p.expr.expr;else if(p.expr.type==="join_expr"){const s=p.expr.left;s.type==="paren_expr"?i=s.expr:s.type==="alias"&&s.expr.type==="paren_expr"&&(n=s.alias.text,i=s.expr.expr)}return i?{selectStatement:i,as:n}:null}function NN(o,p){var i;if(o.type==="identifier"){const n=((i=p==null?void 0:p.right)==null?void 0:i.type)==="alias"?p.right.alias.text:Pt(o.text);return{type:"table",name:Pt(o.text),as:n}}else{if(o.type==="alias")return{type:"table",name:o.expr.type==="identifier"?Pt(o.expr.text):"",as:Pt(o.alias.text)};if(o.type==="join_expr")return NN(o.left,o)}return null}function k2e(o){const p=pR(o);return p?NN(p.expr):null}function j2e(o){const p=k2e(o);if(p!=null&&p.name)return p;const i=G2e(o);return i&&i.selectStatement&&Pt(i.as)?{type:"query",subquery:i.selectStatement,as:Pt(i.as)}:null}function xN(o){return o.clauses.find(p=>p.type==="select_clause")}function km(o,p=""){var n;const i=[];return(n=o.columns)==null||n.items.forEach(s=>{if(s.type==="alias"){if(s.expr.type==="member_expr"&&s.expr.object.type==="identifier"&&(p&&Pt(s.expr.object.text)===p||!p)){let c="",e="";if(s.expr.property.type==="identifier"&&(e=Pt(s.expr.property.text)),s.alias.type==="identifier"&&(c=Pt(s.alias.text)),s.expr.property.text===Pt(s.alias.text)||!e||!c)return;i.push({from:e,to:c});return}else if(s.alias.type==="identifier"){let c="",e="";if(s.expr.type==="identifier"&&(e=Pt(s.expr.text)),s.alias.type==="identifier"&&(c=Pt(s.alias.text)),!e||!c)return;i.push({from:e,to:c});return}}else if(s.type==="member_expr"&&s.object.type==="identifier"&&(p&&Pt(s.object.text)===p||!p)){let c="",e="";if(s.property.type==="identifier"&&(e=Pt(s.property.text),c=Pt(s.property.text)),s.property.text===e||!e||!c)return;i.push({from:e,to:c});return}else if(s.type==="identifier"){let c="",e="";if(s.type==="identifier"&&(e=Pt(s.text)),s.type==="identifier"&&(c=Pt(s.text)),!e||!c)return;i.push({from:e,to:c});return}}),i}function U2e(o){var i;return((i=o.columns)==null?void 0:i.items.reduce((n,s)=>{if(s.type==="alias"){const e={name:s.alias.text,source:null};s.expr.type==="member_expr"&&s.expr.object.type==="identifier"&&(e.source=Pt(s.expr.object.text)),n.columns.push(e)}else if(s.type==="member_expr")if(s.property.type==="identifier"){const c={name:Pt(s.property.text),source:null};s.object.type==="identifier"&&(c.source=Pt(s.object.text)),n.columns.push(c)}else s.property.type==="all_columns"&&s.object.type==="identifier"&&n.scopedSelectAll.push(Pt(s.object.text));else if(s.type==="identifier"){const c={name:Pt(s.text),source:null};n.columns.push(c)}else s.type==="all_columns"&&(n.globalSelectAll=!0);return n},{columns:[],globalSelectAll:!1,scopedSelectAll:[]}))||null}function K2e(o){var i;return(((i=o.operator[0])==null?void 0:i.text)||"INNER").toLowerCase()}function F2e(o){if(o.right.type==="identifier")return Pt(o.right.text);if(o.right.type==="alias"){const p=o.right;if(p.expr.type==="identifier")return Pt(p.expr.text);if(p.alias.type==="identifier")return Pt(p.alias.text)}return""}function IA(o){if(!o)return null;let p=null;if(typeof o=="string")p=o;else if(Array.isArray(o)){const[i,n,s,c]=o,e=IA(i);if(e==="="?p=vc.Equal:p=e,n){const y=IA(n);e===vc.Equal&&y==="not"?p=vc.NotEqual:p=y+p}}else if(L2e(o))switch(o.name.toLowerCase()){case"between":{p=vc.Between;break}case"is":{p=vc.Equal;break}case"not":{p="not";break}case"or":case"and":{p=null;break}default:{p=null;break}}return p}function jm(o){if(o.type==="binary_expr"){const p=o.operator;return IA(p)}return null}function Jm(o){if(o.type==="binary_expr"){const p=o.operator;if(L2e(p)&&o.operator.type==="keyword"){const i=o.operator;if(i.name==="AND")return"AND";if(i.name==="OR")return"OR"}}return null}function $N(o,p,i,n,s,c=!1){if(!o||o.type!=="binary_expr"){if(c)debugger;return{ands:[],ors:[]}}const e=[],y=[],m=Jm(o);if(c)debugger;if(m){const v=jm(o.left),E=Jm(o.left);if(c)debugger;if(E){const w=$N(o.left,p,i,n,s,c);if(c)debugger;e.push(...w.ands),y.push(...w.ors)}else if(v){const w=Ro(o.left,i,n,s);if(c)debugger;if(w&&(w.parent=p,e.push(w)),c)debugger}if(c)debugger;const b=o.right;if(b.type==="binary_expr"){const w=Ro(b,i,n,s);w&&(w.parent=p,m==="AND"?e.push(w):m==="OR"&&y.push(w))}else if(b.type==="paren_expr"){const w=Ro(b.expr,i,n,s);w&&(w.parent=p,m==="AND"?e.push(w):m==="OR"&&y.push(w))}}if(c)debugger;return{ands:e,ors:y}}function Ro(o,p,i,n,s=!1){var e,y,m,v,E,b,w,V,$,B,j,F,K,Y,ie,ee;if(!o)return null;const c=new P2e(i);if(s)debugger;if(o.type==="binary_expr"){const de=Jm(o),ae=jm(o);if(s)debugger;const fe=o.left;if(fe.type==="identifier"){const ue=p.find(ye=>Pt(ye.as)===Pt(fe.text));if(ue){c.left=new Fi(i),c.left.source=ue.source,c.left.as=Pt(ue.as);const ye=new La(i);ye.entity=((e=ue.parent)==null?void 0:e.entity)||null,ye.query=((y=ue.parent)==null?void 0:y.query)||null,ye.aggregation=((m=ue.parent)==null?void 0:m.aggregation)||null,ye.sourceType=((v=ue.parent)==null?void 0:v.sourceType)||null;const Ve=i.addDataSource(ye);c.left.parent=Ve,c.operator=ae}}else if(fe.type==="member_expr"){if(s)debugger;const ue=fe.property.type==="identifier"?Pt(fe.property.text):"",ye=p.find(Ve=>Pt(Ve.as)===ue);if(s)debugger;if(ye){c.left=new Fi(i),c.left.source=ye,c.left.as=Pt(ye.as);const Ve=new La(i);Ve.entity=((E=ye.parent)==null?void 0:E.entity)||null,Ve.query=((b=ye.parent)==null?void 0:b.query)||null,Ve.aggregation=((w=ye.parent)==null?void 0:w.aggregation)||null,Ve.sourceType=((V=ye.parent)==null?void 0:V.sourceType)||null;const _e=i.addDataSource(Ve);if(c.left.parent=_e,c.operator=ae,s)debugger}if(s)debugger}else if(fe.type==="number_literal"){const ue=new Fr(i);ue.value=fe.value,ue.valueType=Qi.Number,c.left=ue,c.operator=ae}else if(fe.type==="string_literal")if(fe.value.includes("{{::")){const ye=fe.value.split("{{::")[1].split("}}")[0],Ve=n.get(ye);if(Ve){const _e=new gd(i);_e.inputMap=Ve,c.left=_e,c.operator=ae}}else{const ye=new Fr(i);L(fe.value).isValid()?(ye.value=new Date(fe.value),ye.valueType=Qi.Date):(ye.value=fe.value,ye.valueType=Qi.String),c.left=ye,c.operator=ae}else if(fe.type==="boolean_literal"){const ue=new Fr(i);ue.value=fe.value,ue.valueType=Qi.Boolean,c.left=ue,c.operator=ae}else if(fe.type==="null_literal"){const ue=new Fr(i);ue.value=fe.value,ue.valueType=Qi.Null,c.left=ue,c.operator=ae}else if(fe.type==="binary_expr"){const ue=jm(fe),ye=Jm(fe);if(s)debugger;if(ye){const Ve=$N(fe,c,p,i,n,s);if(s)debugger;c.and.push(...Ve.ands),c.or.push(...Ve.ors)}else if(ue){const Ve=Ro(fe,p,i,n);if(s)debugger;if(Ve&&(Ve.parent=c,c.and.push(Ve)),s)debugger}}const ve=o.right;if(s)debugger;if(ve.type==="identifier"){const ue=p.find(ye=>Pt(ye.as)===Pt(ve.text));if(ue){c.right=new Fi(i),c.right.source=ue,c.right.as=Pt(ue.as);const ye=new La(i);ye.entity=(($=ue.parent)==null?void 0:$.entity)||null,ye.query=((B=ue.parent)==null?void 0:B.query)||null,ye.aggregation=((j=ue.parent)==null?void 0:j.aggregation)||null,ye.sourceType=((F=ue.parent)==null?void 0:F.sourceType)||null;const Ve=i.addDataSource(ye);c.right.parent=Ve}}else if(ve.type==="member_expr"){if(s)debugger;const ue=ve.property.type==="identifier"?Pt(ve.property.text):"",ye=p.find(Ve=>Pt(Ve.as)===ue);if(s)debugger;if(ye){c.right=new Fi(i),c.right.source=ye,c.right.as=Pt(ye.as);const Ve=new La(i);Ve.entity=((K=ye.parent)==null?void 0:K.entity)||null,Ve.query=((Y=ye.parent)==null?void 0:Y.query)||null,Ve.aggregation=((ie=ye.parent)==null?void 0:ie.aggregation)||null,Ve.sourceType=((ee=ye.parent)==null?void 0:ee.sourceType)||null;const _e=i.addDataSource(Ve);if(c.right.parent=_e,s)debugger}if(s)debugger}else if(ve.type==="number_literal"){const ue=new Fr(i);ue.value=ve.value,ue.valueType=Qi.Number,c.right=ue}else if(ve.type==="string_literal")if(ve.value.includes("{{::")){const ye=ve.value.split("{{::")[1].split("}}")[0],Ve=n.get(ye);if(!Ve)return c.right=null,c;const _e=new gd(i);return _e.inputMap=Ve,c.right=_e,c}else{const ye=new Fr(i);L(ve.value).isValid()?(ye.value=new Date(ve.value),ye.valueType=Qi.Date):(ye.value=ve.value,ye.valueType=Qi.String),c.right=ye}else if(ve.type==="boolean_literal"){const ue=new Fr(i);ue.value=ve.value,ue.valueType=Qi.Boolean,c.right=ue}else if(ve.type==="null_literal"){const ue=new Fr(i);ue.value=ve.value,ue.valueType=Qi.Null,c.right=ue}else if(ve.type==="binary_expr"){if(s)debugger;const ue=jm(ve);if(s)debugger;if(ue){const ye=Ro(ve,p,i,n);if(s)debugger;if(ye){if(ye.parent=c,s)debugger;de==="AND"?c.and.push(ye):de==="OR"&&c.or.push(ye)}}if(s)debugger}else if(ve.type==="paren_expr"){if(s)debugger;const ue=Ro(ve.expr,p,i,n);if(s)debugger;if(ue){if(ue.parent=c,s)debugger;de&&(de==="AND"?c.and.push(ue):de==="OR"&&c.or.push(ue))}if(s)debugger}}else if(o.type==="paren_expr"){const de=Ro(o.expr,p,i,n);de&&(de.parent=c)}if(s)debugger;return c}function Jb(o,p,i,n,s=!1){var e;const c=(e=o.specification)==null?void 0:e.expr;if(!c)return null;if(s)debugger;return Ro(c,p,i,n,s)}function LN(o,p,i,n,s,c={onDescribeTable:()=>null},e=!1){var $,B,j,F,K;const y=[];let m=[],v=[];const E=F2e(o);if(!E)return{aggregations:m,columnMappings:v,errors:y};const b=K2e(o),w=xN(p),V=km(w,E);if(e)debugger;if(o.left.type==="join_expr"){const Y=LN(o.left,p,i,n,s,c);m.push(...Y.aggregations),v.push(...Y.columnMappings)}if(e)debugger;if(o.right.type==="alias"){if(e)debugger;if(o.right.expr.type==="paren_expr"&&o.right.expr.expr.type==="select_stmt"){if(e)debugger;const Y=o.right.expr.expr;if(e)debugger;const ie=new VN(n);ie.as=o.right.alias.text||Pt(((B=($=ie.statement)==null?void 0:$.from)==null?void 0:B.as)||"")||null;const ee=Ym(Y,s,null);y.push(...ee.errors),ie.statement=ee.state;const de=new La(n);de.query=ie,de.sourceType=hd.Query;const ae=((j=ee.state)==null?void 0:j.columns.map(ye=>{const Ve=V.find(_e=>_e.from===Pt(ye.as));return Ve?{as:Ve.to,column:{columnName:Pt(ye.as),property:ye.property}}:{as:Pt(ye.as),column:{columnName:Pt(ye.as),property:ye.property}}}))||[];v.push(...ae);const fe=Pt(o.right.alias.text),ve=new zb(n),ue=Jb(o,[...de.columns,...i],n,s);if(ve.joinType=b,Object.values(Ty).includes(b)){const ye=n.addDataSource(de);if(ve.on=ue,ve.dataSource=ye,ve.as=fe,e)debugger;m.push(ve)}}else if(o.right.expr.type==="identifier"){const Y=(F=c.onDescribeTable)==null?void 0:F.call(c,E),ie=new La(n);if(Y){const ee=Y.columns.map(fe=>{const ve=V.find(ue=>ue.from===fe.columnName);return ve?{as:ve.to,column:fe}:{as:fe.columnName,column:fe}});v.push(...ee),ie.entity=Y.entity,ie.sourceType=hd.Table;const de=new zb(n),ae=Jb(o,[...ie.columns,...i],n,s);if(de.joinType=b,Object.values(Ty).includes(b)){de.on=ae;const fe=n.addDataSource(ie);if(de.dataSource=fe,de.as=Pt(o.right.alias.text),e)debugger;m.push(de)}}else y.push({entity:"table",code:"not-found",name:E})}}else if(o.right.type==="identifier"){const Y=(K=c.onDescribeTable)==null?void 0:K.call(c,E),ie=new La(n);if(Y){const ee=Y.columns.map(fe=>{const ve=V.find(ue=>ue.from===fe.columnName);return ve?{as:ve.to,column:fe}:{as:fe.columnName,column:fe}});v.push(...ee),ie.entity=Y.entity,ie.sourceType=hd.Table;const de=new zb(n),ae=Jb(o,[...ie.columns,...i],n,s);if(de.joinType=b,Object.values(Ty).includes(b)){const fe=n.addDataSource(ie);if(de.dataSource=fe,de.on=ae,de.as=Pt(o.right.text),e)debugger;m.push(de)}}else y.push({entity:"table",code:"not-found",name:E})}if(e)debugger;return{aggregations:m,columnMappings:v,errors:y}}function S2e(o,p,i,n,s={onDescribeTable:()=>null}){const c=[],e=pR(o);return e?e.expr.type==="join_expr"?LN(e.expr,o,p,i,n,s):{aggregations:[],columnMappings:[],errors:c}:{aggregations:[],columnMappings:[],errors:c}}function q2e(o,p,i,n=!1){var s;return((s=o.columns)==null?void 0:s.items.reduce((c,e)=>{const y=[...c];if(e.type==="alias"){const m=e.expr;if(m.type==="string_literal")if(m.value.includes("{{::")){const E=m.value.split("{{::")[1].split("}}")[0],b=i.get(E);if(b){const w=new gd(p);w.inputMap=b;const V=new Fi(p);V.source=w,V.as=e.alias.text,y.push(V)}}else{const E=new Fr(p);L(m.value).isValid()?(E.value=new Date(m.value),E.valueType=Qi.Date):(E.value=m.value,E.valueType=Qi.String);const b=new Fi(p);b.source=E,b.as=e.alias.text,y.push(b)}else if(m.type==="number_literal"){const v=new Fr(p);v.value=m.value,v.valueType=Qi.Number;const E=new Fi(p);E.source=v,E.as=e.alias.text,y.push(E)}else if(m.type==="boolean_literal"){const v=new Fr(p);v.value=m.value,v.valueType=Qi.Boolean;const E=new Fi(p);E.source=v,E.as=e.alias.text,y.push(E)}else if(m.type==="null_literal"){const v=new Fr(p);v.value=m.value,v.valueType=Qi.Null;const E=new Fi(p);E.source=v,E.as=e.alias.text,y.push(E)}}else if(e.type==="string_literal")if(e.value.includes("{{::")){const v=e.value.split("{{::")[1].split("}}")[0],E=i.get(v);if(E){const b=new gd(p);b.inputMap=E;const w=new Fi(p);w.source=b,w.as=e.value.toString(),y.push(w)}}else{const v=new Fr(p);L(e.value).isValid()?(v.value=new Date(e.value),v.valueType=Qi.Date):(v.value=e.value,v.valueType=Qi.String);const E=new Fi(p);E.source=v,E.as=e.value.toString(),y.push(E)}else if(e.type==="number_literal"){const m=new Fr(p);m.value=e.value,m.valueType=Qi.Number;const v=new Fi(p);v.source=m,v.as=e.value.toString(),y.push(v)}else if(e.type==="boolean_literal"){const m=new Fr(p);m.value=e.value,m.valueType=Qi.Boolean;const v=new Fi(p);v.source=m,v.as="boolean",y.push(v)}else if(e.type==="null_literal"){const m=new Fr(p);m.value=e.value,m.valueType=Qi.Null;const v=new Fi(p);v.source=m,v.as="empty",y.push(v)}return y},[]))||[]}function Z2e(o){return o.clauses.find(p=>p.type==="where_clause")||null}function H2e(o,p,i,n){const s=Z2e(o);return s?Ro(s.expr,p,i,n):null}function W2e(o){let p=o.clauses.find(i=>i.type==="limit_clause");return p||null}function z2e(o){if(!o)return 0;const p=o.offset;return p?p.value:0}function J2e(o){if(!o)return null;const p=o.count;return p?p.value:null}function Y2e(o){return o.clauses.find(p=>p.type==="order_by_clause")||null}function X2e(o,p,i,n){return o.specifications.items.reduce((c,e)=>{var w,V;let y,m="";((w=e.direction)==null?void 0:w.type)==="sort_direction_asc"?y="asc":((V=e.direction)==null?void 0:V.type)==="sort_direction_desc"?y="desc":y="asc",e.expr.type==="member_expr"?e.expr.property.type==="identifier"&&(m+=Pt(e.expr.property.text)):e.expr.type==="identifier"&&(m=Pt(e.expr.text));const v=new x2e(n),E=n.selections.find($=>{var B,j;if($.type===gA.ColumnRef){if(((B=$.source)==null?void 0:B.type)===d.Property)return $.as===m||Hi(le($.source,$.source.project))===m;if(((j=$.source)==null?void 0:j.type)===gA.ColumnRef)return $.as===m||$.source.as===m}return!1}),b=c.find($=>$.column===E);return E&&!b?(v.direction=y,v.column=E,[...c,v]):c},[])}function Ym(o,p,i=null,n=!1){var ue;const s=[];if(!p)return{state:null,errors:s};const c=new $2e((i==null?void 0:i.id)||x.UUID.uuid());if(PN(p).forEach(ye=>{const Ve=new La(c);Ve.entity=ye,Ve.sourceType=hd.Table,Ve.as=ye.name,c.addDataSource(Ve)}),!o)return{state:c,errors:s};const y=o.type==="select_stmt"?o:M2e(o);if(!y)return{state:c,errors:s};const m=j2e(y);let v=[];if((m==null?void 0:m.type)==="table"){const Ve=p.entities.find(_e=>{if(Wi(_e,Re.PERSISTED_ENTITY)){const xe=Oc(le(_e,p));let Pe=m.name;Pe.startsWith('"')&&(Pe=Pe.slice(1,Pe.length-1)),Pe.startsWith("'")&&(Pe=Pe.slice(1,Pe.length-1));const Me=xe===Pe;return Me&&(m.name=xe),Me}return!1});if(!Ve)s.push({entity:"table",code:"not-found",name:m.name});else{const _e=new La(c);_e.sourceType=hd.Table,_e.entity=Ve,c.from=c.addDataSource(_e)}}else if((m==null?void 0:m.type)==="query"){const ye=new VN(c);ye.as=Pt(m==null?void 0:m.as)||(m==null?void 0:m.name)||"Nested search";const Ve=Ym(m.subquery,p);s.push(...Ve.errors),ye.statement=Ve.state;const _e=new La(c);_e.sourceType=hd.Query,_e.query=ye;const xe=c.addDataSource(_e);c.from=xe}const E=xN(y);if(!E)return{state:c,errors:s};const b=km(E),w=E?km(E,(m==null?void 0:m.name)||""):[],V=E?km(E,Pt(m==null?void 0:m.as)||""):[],$=[...w,...V].filter((ye,Ve,_e)=>_e.findIndex(xe=>xe.to===ye.to)===Ve),B=E?b.filter(ye=>!$.find(Ve=>Ve.to===ye.to)):[],j=U2e(E);if(((j==null?void 0:j.columns.filter(ye=>!b.find(Ve=>Ve.to===ye.name)))||[]).forEach(ye=>{$.push({from:ye.name,to:ye.name})}),j!=null&&j.globalSelectAll&&c.from){const ye=new Ny(c);ye.parent=c.from,c.addSelection(ye)}const K=S2e(y,c.columns,c,p,{onDescribeTable:ye=>B2e(ye,p)});s.push(...K.errors),K.aggregations.length&&K.aggregations.forEach(ye=>{Object.values(Ty).includes(ye.joinType)&&c.addAggregation(ye)});const Y=[...v,...K.columnMappings].filter((ye,Ve,_e)=>_e.findIndex(xe=>Pt(xe.as)===Pt(ye.as))===Ve);$.forEach(ye=>{var xe,Pe,Me,Se,je;const Ve=new Fi(c),_e=(((xe=c.from)==null?void 0:xe.columns)||[]).find(Ze=>Ze.as===ye.from);if(_e){Ve.source=_e,Ve.as=Pt(ye.to);const Ze=new La(c);Ze.entity=(Pe=_e.parent)==null?void 0:Pe.entity,Ze.sourceType=((Me=_e.parent)==null?void 0:Me.sourceType)||null,Ze.query=((Se=_e.parent)==null?void 0:Se.query)||null,Ze.aggregation=((je=_e.parent)==null?void 0:je.aggregation)||null;const Ye=c.addDataSource(Ze);Ve.parent=Ye,c.addSelection(Ve)}}),B.forEach(ye=>{for(let Ve=0;Ve<K.aggregations.length;Ve++){const _e=K.aggregations[Ve];for(let xe=0;xe<_e.columns.length;xe++){const Pe=_e.columns[xe];if(Pt(Pe.as)===ye.from){const Me=new Fi(c);Me.source=Pe,Me.as=Pt(ye.to);const Se=new La(c);Se.sourceType=hd.Aggregation,Se.aggregation=_e;const je=c.addDataSource(Se);Me.parent=je,c.addSelection(Me);return}}}}),q2e(E,c,p,n).forEach(ye=>{c.addSelection(ye)}),j==null||j.scopedSelectAll.forEach(ye=>{const Ve=c.usedDataSources.find(xe=>Pt(xe.as)===ye);if(!Ve)return;const _e=new Ny(c);_e.parent=Ve,c.addSelection(_e)});const ee=H2e(y,c.columns,c,p);c.where=ee;const de=W2e(y),ae=z2e(de),fe=J2e(de),ve=Y2e(y);if(fe!==null)if(typeof fe=="string"&&fe.includes("{{::")){const ye=fe.split("{{::")[1].split("}}")[0],Ve=p.get(ye);if(Ve){const _e=new gd(c);_e.inputMap=Ve,c.limit=_e}}else{const ye=new Fr(c);ye.valueType=Qi.Number,ye.value=fe,c.limit=ye}if((c.limit===null||c.limit===void 0||fe===1)&&(c.asList=((ue=i==null?void 0:i.getDataType(null))==null?void 0:ue.isList)||!1),ae!==null)if(typeof ae=="string"&&ae.includes("{{::")){const ye=ae.split("{{::")[1].split("}}")[0],Ve=p.get(ye);if(Ve){const _e=new gd(c);_e.inputMap=Ve,c.offset=_e}}else{const ye=new Fr(c);ye.valueType=Qi.Number,ye.value=ae,c.offset=ye}return ve&&X2e(ve,y,Y,c).forEach((Ve,_e)=>{Ve.index=_e,c.addSort(Ve)}),{state:c,errors:s}}const iIi=Object.freeze(Object.defineProperty({__proto__:null,FORBIDDEN_SQL_KEYWORDS:tIi,flattenBinaryExprComparisonsToWhereStatements:$N,flattenJoinExprIntoAggregationStatementsSync:LN,fromNameToTableDescription:B2e,fromOrderByClauseToSortStatements:X2e,fromSelectClauseColumnsToColumnMappings:km,fromSelectClauseToLiteralValueSelections:q2e,fromSqlOperatorsExprToComparisonOperator:IA,fromWhereBinaryExprToAndOrOperatorValue:Jm,fromWhereBinaryExprToComparisonOperator:jm,fromWhereExprToWhereStatement:Ro,getAggregationStatementsFromSelectStatementSync:S2e,getFromClauseFromSelectStatement:pR,getJoinOnSpecificationAsWhereStatementFromJoinExpr:Jb,getJoinTableFromJoinClause:F2e,getJoinTypeFromJoinClause:K2e,getLimitClauseFromSelectStatement:W2e,getMainSourceFromSelectStatement:j2e,getMainSourceNameFromFromClauseExpr:NN,getMainSourceNameFromSelectStatement:k2e,getNestedFromSubqueryFromSelectStatement:G2e,getOrderByClauseFromSelectStatement:Y2e,getRawLimitFromLimitClause:J2e,getRawOffetFromLimitClause:z2e,getSelectClauseFromSelectStatement:xN,getSelectStatementFromProgram:M2e,getSelectionsConfigFromSelectClause:U2e,getWhereClauseFromSelectStatement:Z2e,getWhereStatementsFromSelectStatement:H2e,hydrateSearchStatementState:Ym,loadProjectDatasources:PN,sanitizeQuery:yy,sanitizeSQLIdentifierText:Pt},Symbol.toStringTag,{value:"Module"}));function cC(o){switch(o){case Qi.String:return oe.String;case Qi.Number:return oe.Number;case Qi.Boolean:return oe.Boolean;case Qi.Date:return oe.Date;default:return oe.String}}function fC(o,p){switch(o){case Qi.String:return p.get(Q["primitive-entity"].string.id);case Qi.Number:return p.get(Q["primitive-entity"].number.id);case Qi.Boolean:return p.get(Q["primitive-entity"].boolean.id);case Qi.Date:return p.get(Q["primitive-entity"].date.id);default:return p.get(Q["primitive-entity"].string.id)}}function yC(o){return o?o.parent.type===d.DataType:!1}function hC(o,p,i){var v;let n=(v=o.dataType)==null?void 0:v.entity;if(!o.dataType){const E=dr.new(i);E.parent=o.toReference();const b=me(E,o.project);b.setParent(o,i),b.hydrateAncestors(),i==null||i.add(b,H.Added),b.addSelfToProject(i),b.initChildren(i)}if(!n){const E=us.new(i);E.parent=o.dataType.toReference(),E.name=`${le(o,o.project)} output definition`;const b=me(E,o.project);b.setParent(o.dataType,i),b.hydrateAncestors(),i==null||i.add(b,H.Added),b.addSelfToProject(i),b.initChildren(i),n=b}let s=(n.properties||[])[0]||null;if(s)s.name!=="Data"&&s.metaSync({name:"Data",description:"The result of the search statement"},i);else{const E=ja.new(i);E.name="Data",E.description="The result of the search statement",E.index=0,E.parent=n.toReference(),E.required=!0;const b=me(E,o.project);b.hydrateAncestors(),i==null||i.add(b,H.Added),b.addSelfToProject(i),b.initChildren(i),s=b;const w=dr.new(i);w.isList=p.asList,w.asType=!1,w.parent=b.toReference();const V=me(w,o.project);V.hydrateAncestors(),i==null||i.add(V,H.Added),V.addSelfToProject(i),V.initChildren(i)}let c=s.getDataType(null);if(!c){const E=dr.new(i);E.isList=p.asList,E.asType=!1,E.parent=s.toReference();const b=me(E,o.project);b.hydrateAncestors(),i==null||i.add(b,H.Added),i==null||i.add(s,H.Affected),b.addSelfToProject(i),b.initChildren(i),c=b}const e=c.entity;let y=c==null?void 0:c.entity;if(p.isUntouchedEntity&&(!y||y!==p.mainPersistedEntity)&&(c.setEntity(p.mainPersistedEntity,i),y=p.mainPersistedEntity),!p.isUntouchedEntity&&!yC(y)&&(y=null),!y&&(p!=null&&p.from)){const E=us.new(i);E.static=!1,E.abstract=!1,E.name=le(o,o.project)+" output type",E.description="Search statement output",E.parent=c.toReference();const b=me(E,o.project);b.hydrateAncestors(),i==null||i.add(b,H.Added),b.addSelfToProject(i),b.initChildren(i),c.setEntity(b,i),y=b,i==null||i.add(c,H.Updated)}c.isList!==p.asList&&c.metaSync({isList:p.asList},i),!p.isUntouchedEntity&&y&&p.selectedColumns.filter(b=>{var V,$,B,j;const w=y.properties.find(F=>F.name===b.as);if(w){let F=w.getDataType(null);if(F){if(b.literalValue){const K=fC(b.literalValue.valueType,o.project);K&&(F.setEntity(K,i),i==null||i.add(F,H.Updated))}else if(b.property){const K=b.property.getDataType(null);((B=K==null?void 0:K.entity)==null?void 0:B.type)===d.DefinitionEntity?(F.setEntity((K==null?void 0:K.entity)||null,i),i==null||i.add(F,H.Updated)):((j=K==null?void 0:K.entity)==null?void 0:j.type)===d.PrimitiveEntity?(F.setEntity(K.entity,i),i==null||i.add(F,H.Updated)):(F.setEntity(o.project.get(Q["primitive-entity"].untyped.id),i),i==null||i.add(F,H.Updated))}}else{let K=null;if(b.literalValue){const ee=fC(b.literalValue.valueType,o.project);ee&&(K=ee)}else if(b.property){const ee=b.property.getDataType(null);((V=ee==null?void 0:ee.entity)==null?void 0:V.type)===d.DefinitionEntity||(($=ee==null?void 0:ee.entity)==null?void 0:$.type)===d.PrimitiveEntity?K=ee==null?void 0:ee.entity:K=o.project.get(Q["primitive-entity"].untyped.id)}const Y=dr.new(i);Y.isList=p.asList,Y.inferred=!0,Y.asType=!1,Y.parent=w.toReference();const ie=me(Y,o.project);ie.hydrateAncestors(),i==null||i.add(ie,H.Added),ie.addSelfToProject(i),ie.initChildren(i),ie.setEntity(K,i),w.setDataType(ie,i),i==null||i.add(w,H.Affected)}return!1}return!0}).map((b,w)=>{if(b.literalValue){const V=ja.new(i);V.name=b.as,V.description="Property derived from search statement output format",V.index=w,V.parent=y.toReference();const $=me(V,o.project);$.hydrateAncestors(),i==null||i.add($,H.Added),$.addSelfToProject(i),$.initChildren(i),i==null||i.add(y,H.Affected);const B=Yr.new(i);B.name=cC(b.literalValue.valueType),B.value=b.literalValue.value,B.parent=$.toReference();const j=me(B,o.project);j.hydrateAncestors(),i==null||i.add(j,H.Added),j.addSelfToProject(i),j.initChildren(i),$.setDefaultValue(j),i==null||i.add($,H.Affected);const F=dr.new(i);F.parent=$.toReference();const K=me(F,o.project);K.hydrateAncestors(),i==null||i.add(K,H.Added),K.addSelfToProject(i),K.initChildren(i),i==null||i.add($,H.Affected),$.setDataType(K,i);const Y=Yr.new(i);Y.name=cC(b.literalValue.valueType),Y.value=b.literalValue.value,Y.parent=K.toReference();const ie=me(Y,o.project);return ie.hydrateAncestors(),i==null||i.add(ie,H.Added),ie.addSelfToProject(i),ie.initChildren(i),K.setEntity(ie,i),$}else if(b.property){const V=b.property.clone(i,y,x.UUID.uuid());return V.metaSync({index:w,name:b.as},i),V}}),!p.isUntouchedEntity&&y&&y.properties.forEach(E=>{p.selectedColumns.find(w=>w.as===E.name)||E.remove({ignoreUpstream:!1},i)});let m=(o.outputs||[])[0]||null;if(!m){const E=Rl.new(i);E.declaration=s.toJSON(),E.parent=o.toReference();const b=me(E,o.project);b.hydrateAncestors(),i==null||i.add(b,H.Added),b.addSelfToProject(i),b.initChildren(i),m=b,i==null||i.add(o,H.Affected)}(y==null?void 0:y.id)!==(e==null?void 0:e.id)&&yC(e)&&(e==null||e.remove({ignoreUpstream:!1},i)),m&&m.declaration!==s&&(m.setDeclaration(s,i),i==null||i.add(m,H.Updated))}var Q2e=(o=>(o.Parent="search-parent-field",o.DataTypeEntity="search-data-type-entity-field",o.DataType="search-data-type-field",o))(Q2e||{});const vi=class vi extends Ur{constructor(i,n){super(i);I(this,"initialData");I(this,"id");I(this,"name");I(this,"description",null);I(this,"x");I(this,"y");I(this,"query","");I(this,"type",d.Search);I(this,"catchesError",!1);I(this,"writesValues",[]);I(this,"dataType",null);I(this,"successCalls",[]);I(this,"errorCalls",[]);I(this,"inputsDeclarations",[]);I(this,"inputs",[]);I(this,"outputs",[]);I(this,"calledBySuccess",[]);I(this,"calledByError",[]);I(this,"calledByEntry",[]);I(this,"error",null);I(this,"parent");I(this,"errors",[]);I(this,"project");I(this,"state",null);I(this,"detachedDependents",{});I(this,"knownVersions",null);I(this,"activeVersion",!1);I(this,"initialized",!1);I(this,"startedInitialization",!1);this.initialData=i,this.project=n,this.id=i.id,this.x=i.x,this.y=i.y,this.name=i.name,this.query=i.query,this.description=i.description,this.catchesError=i.catchesError||!1,this.onProjectInitialized=this.onProjectInitialized.bind(this),this.onPersistedEntityAdded=this.onPersistedEntityAdded.bind(this),this.onPersistedEntityUpdated=this.onPersistedEntityUpdated.bind(this),this.onPersistedEntityRemoved=this.onPersistedEntityRemoved.bind(this),this.onRelationalDatabaseEntityAdded=this.onRelationalDatabaseEntityAdded.bind(this),this.onRelationalDatabaseEntityUpdated=this.onRelationalDatabaseEntityUpdated.bind(this),this.onRelationalDatabaseEntityRemoved=this.onRelationalDatabaseEntityRemoved.bind(this)}static new(i=null){return{id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.Search,writesValues:[],catchesError:!1,name:"",description:"",inputsDeclarations:[],dataType:null,inputs:[],outputs:[],query:"",error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,n){let s=n;if(i.parent){const E=ne(i.parent);s=n.get(E)}const c=i.calledByEntry.map(E=>{const b=ne(E);return n.get(b)}),e=i.calledBySuccess.map(E=>{const b=ne(E);return n.get(b)}),y=i.calledByError.map(E=>{const b=ne(E);return n.get(b)}),m={id:i.id,version:x.UUID.uuid(),createdAt:L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.Search,writesValues:[],name:i.name,description:i.description,query:i.query,catchesError:i.catchesError||!1,calledByEntry:c,calledBySuccess:e,calledByError:y,dataType:null,errorCalls:[],successCalls:[],inputsDeclarations:[],inputs:[],outputs:[],error:null,x:0,y:0,parent:s},v=me(m,n);return v.setParent(s,null),v}static validateGenerationTarget(i,n){let s=JSON.parse(JSON.stringify(i));const c=[],e=En(s,{parent:{list:!1,types:[...nr,d.Project],optional:!0}},n);return s=e.modifiedData,c.push(...e.errors,...xr(s)),{errors:c,modifiedData:s}}get resultsAsList(){var i;return((i=this.dataType)==null?void 0:i.isList)===!0}queryToState(){const i=Vy.parse(yy(this.query),{dialect:"sqlite",includeSpaces:!0}),n=Ym(i,this.project,this);if(!n.state)throw new Error("Could not hydrate search statement");return n.state}stateToQuery(){var n;const i=((n=this.state)==null?void 0:n.toQuery())||"";return yy(i)}rehydrateQuery(){if(!this.query)return"";const i=yy(this.query),n=Vy.parse(i,{dialect:"sqlite",includeSpaces:!0}),s=Ym(n,this.project,this);return s.state?yy(s.state.toQuery()):""}onProjectInitialized(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-search-received-project-initialized"))){return this.metaSync({query:this.rehydrateQuery()},n),this.state=this.queryToState(),n&&hC(this,this.state,n),n==null||n.attemptAutoclose("on-search-received-project-initialized",this.id),this}onPersistedEntityUpdated(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-updated"))){return this.project.initialized?(this.metaSync({query:this.stateToQuery()},n),n==null||n.attemptAutoclose("on-persisted-entity-updated",this.id),this):(n==null||n.attemptAutoclose("on-persisted-entity-updated",this.id),this)}onPersistedEntityAdded(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-added"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},n),n==null||n.attemptAutoclose("on-persisted-entity-added",this.id),this):(n==null||n.attemptAutoclose("on-persisted-entity-added",this.id),this)}onPersistedEntityRemoved(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-removed"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},n),n==null||n.attemptAutoclose("on-persisted-entity-removed",this.id),this):(n==null||n.attemptAutoclose("on-persisted-entity-removed",this.id),this)}onRelationalDatabaseEntityUpdated(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-updated"))){if(!this.project.initialized)return n==null||n.attemptAutoclose("on-relational-database-entity-updated",this.id),this;const s=this.stateToQuery();return this.metaSync({query:s},n),n==null||n.attemptAutoclose("on-relational-database-entity-updated",this.id),this}onRelationalDatabaseEntityAdded(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-added"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},n),n==null||n.attemptAutoclose("on-relational-database-entity-added",this.id),this):(n==null||n.attemptAutoclose("on-relational-database-entity-added",this.id),this)}onRelationalDatabaseEntityRemoved(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-removed"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},n),n==null||n.attemptAutoclose("on-relational-database-entity-removed",this.id),this):(n==null||n.attemptAutoclose("on-relational-database-entity-removed",this.id),this)}validateGeneratedUpdate(i){const n=[];return i.parent&&n.push(new De({id:`${this.id}--${se.InvalidParentUpdate}`,code:se.InvalidParentUpdate,severity:ce.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
115
115
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
116
- You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`})),{errors:n,modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];if(n==="search-parent-field"){const{updated:v,added:E,removed:b}=this.remove({ignoreUpstream:!1},s);c.push(...v),e.push(...E),y.push(...b)}return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];if(n==="search-parent-field"){const{updated:v,added:E,removed:b}=this.restore({},s);c.push(...v),e.push(...E),y.push(...b)}return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){var i,n,s,c,e,y;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"search-parent-field"}]),(c=(s=(n=this.dataType)==null?void 0:n.entity)==null?void 0:s.unsubscribeDependents)==null||c.call(s,[{entity:this,field:"search-data-type-entity-field"}]),(y=(e=this.dataType)==null?void 0:e.unsubscribeDependents)==null||y.call(e,[{entity:this,field:"search-data-type-field"}]),this.project.off(zt.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}subscribeToDependencies(){var i,n,s,c,e,y;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"search-parent-field"}]),(c=(s=(n=this.dataType)==null?void 0:n.entity)==null?void 0:s.subscribeDependents)==null||c.call(s,[{entity:this,field:"search-data-type-entity-field"}]),(y=(e=this.dataType)==null?void 0:e.subscribeDependents)==null||y.call(e,[{entity:this,field:"search-data-type-field"}]),this.project.on(zt.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=x.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new vi(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.inputsDeclarations=[...this.inputsDeclarations],i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.calledByEntry=[...this.calledByEntry],i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.dataType=this.dataType,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);n.push(this.parent,...y.updated),s.push(...y.added),c.push(...y.removed)}return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new vi(v,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.inputsDeclarations=y.inputsDeclarations,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.calledByEntry=y.calledByEntry,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.dataType=y.dataType,this.parent=y.parent,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this;if(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const s=ne(i.parent),c=this.project.get(s),e=this.parent;if(e&&e.id!==(c==null?void 0:c.id)&&this.removeFromParent(n),c)this.setParent(c,n),this.addSelfToProject(n);else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${s}' that isn't found in the project`)}else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.calledByEntry.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addEntryCaller(e,n),e.addCall(this,n))}),[...this.calledByEntry].forEach(s=>{i.calledByEntry.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.calledBySuccess.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addSuccessCaller(e,n),e.addSuccessCall(this,n))}),[...this.calledBySuccess].forEach(s=>{i.calledBySuccess.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.calledByError.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addErrorCaller(e,n),e.addErrorCall(this,n))}),[...this.calledByError].forEach(s=>{i.calledByError.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.dataType){const s=ne(i.dataType),c=this.project.get(s);c&&this.setDataType(c,n)}else this.setDataType(null,n);return i.inputsDeclarations.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addInputDeclaration(e,n),e.setParent(this,n))}),[...this.inputsDeclarations].forEach(s=>{i.inputs.find(e=>ne(e)===s.id)||(this.removeInputDeclaration(s,n),s.removeFromParent(n))}),i.outputs.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addOutput(e,n),e.setParent(this,n))}),[...this.outputs].forEach(s=>{i.outputs.find(e=>ne(e)===s.id)||(this.removeOutput(s,n),s.removeFromParent(n))}),i.inputs.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addInput(e,n),e.setParent(this,n))}),[...this.inputs].forEach(s=>{i.inputs.find(e=>ne(e)===s.id)||(this.removeInput(s,n),s.removeFromParent(n))}),i.writesValues.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addValueReader(e,n),e.setValueWriter(this,n))}),[...this.writesValues].forEach(s=>{i.writesValues.find(e=>ne(e)===s.id)||(this.removeValueReader(s,n),s.setValueWriter(null,n))}),this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this}hydrateAncestors(){const i=[],n=[],s=[],c=[];if(this.initialData.parent){const e=ne(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addEntryCaller(m,null)}),this.initialData.calledBySuccess.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addSuccessCaller(m,null)}),this.initialData.calledByError.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addErrorCaller(m,null)}),{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AfterAllChildrenInitialized))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[afterAllChildrenInitialized] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:[],added:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];this.initialized=!0;const{updated:y,added:m,removed:v}=this.syncInputMaps(i);if(n.push(...y),s.push(...m),c.push(...v),this.project.initialized){const E=this.rehydrateQuery();this.metaSync({query:E},i),this.state=this.queryToState(),hC(this,this.state,i)}return this.inputs.sort((E,b)=>{var w,V;return(E.index??((w=E.declaration)==null?void 0:w.index))-(b.index??((V=b.declaration)==null?void 0:V.index))}),this.outputs.sort((E,b)=>{var w,V;return(E.index??((w=E.declaration)==null?void 0:w.index))-(b.index??((V=b.declaration)==null?void 0:V.index))}),this.captureVersion(),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const n=[this],s=[],c=[],e=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(y=>{y.addSuccessCaller(this,i),n.push(y)}),this.errorCalls.forEach(y=>{y.addErrorCaller(this,i),n.push(y)}),this.calledByEntry.forEach(y=>{y.addCall(this,i),n.push(y)}),this.calledBySuccess.forEach(y=>{y.addSuccessCall(this,i),n.push(y)}),this.calledByError.forEach(y=>{y.addErrorCall(this,i),n.push(y)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveInput))){const s=this.inputs.findIndex(e=>e.id===i.id);s>-1&&(this.inputs.splice(s,1),n==null||n.add(this,H.Affected));const c=this.inputsDeclarations.findIndex(e=>{var y;return e.id===((y=i.declaration)==null?void 0:y.id)});return c>-1&&(this.inputsDeclarations.splice(c,1),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.RemoveInput,this.id),this}addInput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddInput))){return this.checkCanEdit(this,n)?this.inputs.includes(i)?(n==null||n.attemptAutoclose(_.AddInput,this.id),this):(this.inputs.push(i),n==null||n.add(this,H.Affected),n==null||n.attemptAutoclose(_.AddInput,this.id),this):(J.Logger.warn(`[addInput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddInput,this.id),this)}addInputDeclaration(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(i)?(n==null||n.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(i),n==null||n.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-input-declaration"))){const s=this.inputsDeclarations.findIndex(c=>c.id===i.id);return s>-1&&(this.inputsDeclarations.splice(s,1),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose("remove-input-declaration",this.id),this}addOutput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.checkCanEdit(this,n)?this.outputs.includes(i)?(n==null||n.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),n==null||n.add(this,H.Affected),n==null||n.attemptAutoclose("add-output",this.id),this):(J.Logger.warn(`[addOutput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose("add-output",this.id),this)}removeOutput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[removeOutput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose("remove-output",this.id),this;const s=this.outputs.findIndex(c=>c.id===i.id);return s>-1&&(this.outputs.splice(s,1),n&&(n==null||n.add(this,H.Affected))),n==null||n.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddSuccessCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddSuccessCaller,n)?(this.calledBySuccess.find(c=>c.id===i.id)||(this.calledBySuccess.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddSuccessCaller,this.id),this):this}addErrorCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddErrorCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddErrorCaller,n)?(this.calledByError.find(c=>c.id===i.id)||(this.calledByError.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddErrorCaller,this.id),this):this}addEntryCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddEntryCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddEntryCaller,n)?(this.calledByEntry.find(c=>c.id===i.id)||(this.calledByEntry.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddEntryCaller,this.id),this):this}addErrorCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddErrorCall)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddErrorCall,n)?(this.errorCalls.find(c=>c.id===i.id)||(this.errorCalls.push(i),s&&mt(this,n),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.AddErrorCall,this.id),this):this}addSuccessCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddSuccessCall)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddSuccessCall,n)?(this.successCalls.find(c=>c.id===i.id)||(this.successCalls.push(i),s&&mt(this,n),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.AddSuccessCall,this.id),this):this}removeCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveCall)),s=!1){if(!this.checkCanEditWithCounterpartAndSideEffects(this,i,_.RemoveCall,n))return this;const c=this.successCalls.findIndex(y=>y.id===i.id);c>-1&&(this.successCalls.splice(c,1),n==null||n.add(this,H.Affected));const e=this.errorCalls.findIndex(y=>y.id===i.id);return e>-1&&(this.errorCalls.splice(e,1),n==null||n.add(this,H.Affected)),s&&mt(this,n),n==null||n.attemptAutoclose(_.RemoveCall,this.id),this}removeCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-caller")),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.RemoveCaller,n)?(this.calledBySuccess=this.calledBySuccess.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),this.calledByError=this.calledByError.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),s&&mt(this,n),n==null||n.attemptAutoclose(_.RemoveCaller,this.id),this):this}setError(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetErrorEntity))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setError] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetErrorEntity,this.id),this;const s=this.error;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.error=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetErrorEntity,this.id),this}setParent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetParent))){var s;return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.SetParent,n)?(((s=this.parent)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.parent=i,n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetParent,this.id),this):this}initChildren(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.initialData.dataType&&(this.dataType=me(this.initialData.dataType,this.project),this.dataType.setParent(this,null),this.dataType.initChildren(i)),this.successCalls=this.initialData.successCalls.map(n=>{const s=me(n,this.project);if([d.BreakStatement,d.ContinueStatement].includes(s.type))s.setParent(this.parent.parent,null),s.initChildren(i);else if(s.type===d.ReturnStatement){const c=tn(this,this.project);s.setParent(c,null),s.initChildren(i)}else s.type!==d.InternalCall&&(s.setParent(this.parent,null),s.initChildren(i));return s}),this.errorCalls=this.initialData.errorCalls.map(n=>{const s=me(n,this.project);if(s.addErrorCaller(this,null),[d.BreakStatement,d.ContinueStatement].includes(s.type))s.setParent(this.parent.parent,null),s.initChildren(i);else if(s.type===d.ReturnStatement){const c=tn(this,this.project);s.setParent(c,null),s.initChildren(i)}else s.type!==d.InternalCall&&(s.setParent(this.parent,null),s.initChildren(i));return s}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.inputs=this.initialData.inputs.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.outputs=this.initialData.outputs.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.initialData.error&&(this.error=me(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.x=s.x||e.x,this.y=s.y||e.y,this.name=s.name!==void 0?s.name:e.name,this.description=s.description!==void 0?s.description:e.description,this.catchesError=s.catchesError!==void 0?s.catchesError:this.catchesError,s.query!==void 0&&(this.query=s.query),super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await vi.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await vi.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await vi.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await vi.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await vi.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await vi.repository.APILoadVersion(this.id,n,...s)}removeFromParent(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveFromParent))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.parent.type===d.Project?(this.parent.removeSearch(this),e.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:D(c),updated:D(n),removed:D(s),affected:D(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){var m;if(!this.checkCanDelete(this,n))return J.Logger.warn(`[remove] User is not allowed to delete or edit this ${this.type} entity with id: ${this.id}`),n==null||n.event({id:`${_.RemoveEntity}-${this.id}`,action:_.RemoveEntity,owner:this,errorReason:Ri.ActionOwnerEntityNonDeletable,rootAction:((m=n==null?void 0:n.self)==null?void 0:m.id)===this.id&&(n==null?void 0:n.autoCloseActionName)===_.RemoveEntity}),n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const s=[],c=[],e=[],y=[];if(n!=null&&n.hasRemoved(this.id))return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(c.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},n),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:b,added:w}=v.entity.onDetachedDependencyRemoved(this,v.field,n);s.push(...E),c.push(...b),e.push(...w)}),this.inputs.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.inputsDeclarations.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.outputs.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.error){const{updated:v,removed:E}=this.error.remove({ignoreUpstream:!0},n);s.push(...v),c.push(...E)}if(this.dataType){const{updated:v,removed:E}=this.dataType.remove({ignoreUpstream:!0},n);s.push(...v),c.push(...E)}if(this.successCalls.forEach(v=>{s.push(v),v.removeCaller(this,n)}),this.errorCalls.forEach(v=>{s.push(v),v.removeCaller(this,n)}),!i){const v=this.removeFromParent(n);e.push(...v.added),s.push(...v.updated),c.push(...v.removed),y.push(...v.affected),this.calledBy.forEach(E=>{s.push(E),E.removeCall(this,n)})}return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:D(e),updated:D(s),removed:D(c),affected:D(y),self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:m,removed:v,added:E}=y.entity.onDetachedDependencyRestored(this,y.field,i);s.push(...m),c.push(...v),n.push(...E)}),this.inputsDeclarations.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.inputs.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.outputs.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.error){const{updated:y}=this.error.restore({},i);s.push(...y)}if(this.dataType){const{updated:y}=this.dataType.restore({},i);s.push(...y)}return this.successCalls.forEach(y=>{s.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{s.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{s.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{s.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{s.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:D(n),updated:D(s),removed:D(c),affected:D(e),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(s=>s.toFlat(i)),...this.errorCalls.flatMap(s=>s.toFlat(i)),...this.inputsDeclarations.flatMap(s=>s.toFlat(i)),...this.inputs.flatMap(s=>s.toFlat(i)),...this.outputs.flatMap(s=>s.toFlat(i)),...this.calledBy.flatMap(s=>s.toFlat(i)),...this.error?this.error.toFlat(i):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(s=>s.toFlatIds(i)),...this.errorCalls.flatMap(s=>s.toFlatIds(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatIds(i)),...this.inputs.flatMap(s=>s.toFlatIds(i)),...this.outputs.flatMap(s=>s.toFlatIds(i)),...this.calledBy.flatMap(s=>s.toFlatIds(i)),...this.error?this.error.toFlatIds(i):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,catchesError:this.catchesError}}toJSON(i=new Set){var n,s;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,query:this.query,description:this.description,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((n=this.dataType)==null?void 0:n.toJSON(i))||null,successCalls:this.successCalls.map(c=>c.toJSON(i)),errorCalls:this.errorCalls.map(c=>c.toJSON(i)),calledBySuccess:this.calledBySuccess.map(c=>c.toReference()),calledByError:this.calledByError.map(c=>c.toReference()),calledByEntry:this.calledByEntry.map(c=>c.toReference()),writesValues:this.writesValues.map(c=>c.toJSON(i)),inputsDeclarations:this.inputsDeclarations.map(c=>c.toJSON(i)),inputs:this.inputs.map(c=>c.toJSON(i)),outputs:this.outputs.map(c=>c.toJSON(i)),error:((s=this.error)==null?void 0:s.toJSON(i))||null,parent:this.parent.toReference()})}toJSONClone(i=ct){var s,c,e,y,m,v,E;let n;return(s=i.seenEntityMaps)!=null&&s.has(this.id)?n=i.seenEntityMaps.get(this.id):(n=i.newId||jr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,n)),(c=i.seenEntities)!=null&&c.has(n)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(n),(m=i.seenEntities)==null||m.add(this.id),{id:n,version:x.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.Search,name:this.name,query:this.query,description:this.description,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((v=this.dataType)==null?void 0:v.toJSONClone({...i,newId:null}))||null,writesValues:this.writesValues.map(b=>b.toJSONClone({...i,newId:null})),successCalls:this.successCalls.map(b=>b.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(b=>b.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(b=>b.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(b=>b.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(b=>b.toReference({seenEntityMaps:i.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(b=>b.toJSONClone({...i,newId:null})),inputs:this.inputs.map(b=>b.toJSONClone({...i,newId:null})),outputs:this.outputs.map(b=>b.toJSONClone({...i,newId:null})),error:((E=this.error)==null?void 0:E.toJSONClone({...i,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var s,c;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,description:this.description,query:this.query,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((c=this.dataType)==null?void 0:c.toReference(i))||null,writesValues:this.writesValues.map(e=>e.toReference(i)),inputs:this.inputs.map(e=>e.toReference(i)),inputsDeclarations:this.inputsDeclarations.map(e=>e.toReference(i)),outputs:this.outputs.map(e=>e.toReference(i)),successCalls:this.successCalls.map(e=>e.toReference(i)),errorCalls:this.errorCalls.map(e=>e.toReference(i)),calledBySuccess:this.calledBySuccess.map(e=>e.toReference(i)),calledByError:this.calledByError.map(e=>e.toReference(i)),calledByEntry:this.calledByEntry.map(e=>e.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(s=>s.toFlatJSON(i)),...this.errorCalls.flatMap(s=>s.toFlatJSON(i)),...this.inputs.flatMap(s=>s.toFlatJSON(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatJSON(i)),...this.outputs.flatMap(s=>s.toFlatJSON(i)),...this.calledBy.flatMap(s=>s.toFlatJSON(i)),...this.error?this.error.toFlatJSON(i):[],...this.dataType?this.dataType.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===d.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(n=>n.id),calledBySuccess:this.calledBySuccess.map(n=>n.id),calledByError:this.calledByError.map(n=>n.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(s=>s.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(s=>s.toFlatGenerationTarget(i)),...this.inputs.flatMap(s=>s.toFlatGenerationTarget(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatGenerationTarget(i)),...this.outputs.flatMap(s=>s.toFlatGenerationTarget(i)),...this.error?this.error.toFlatGenerationTarget(i):[],...this.dataType?this.dataType.toFlatGenerationTarget(i):[]])}clearErrors(){var i,n;return this.errors=[],this.inputsDeclarations.forEach(s=>s.clearErrors()),this.inputs.forEach(s=>s.clearErrors()),this.outputs.forEach(s=>s.clearErrors()),this.successCalls.forEach(s=>s.clearErrors()),this.errorCalls.forEach(s=>s.clearErrors()),(i=this.error)==null||i.clearErrors(),(n=this.dataType)==null||n.clearErrors(),this}validate(){return this.errors=NLe(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await PLe(this,{tracker:n}),{success:!0}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(n=>n.getErrors()),...this.inputs.flatMap(n=>n.getErrors()),...this.outputs.flatMap(n=>n.getErrors()),...this.error?this.error.getErrors():[],...this.dataType?this.dataType.getErrors():[]]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.inputsDeclarations)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.inputs)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.outputs)s.push(...await c.getErrorsAsync({tracker:n}));return this.error&&s.push(...await this.error.getErrorsAsync({tracker:n})),this.dataType&&s.push(...await this.dataType.getErrorsAsync({tracker:n})),s}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.CloneEntity)),n=null,s=null,c=!0){var B,j,F;const e=Ir(n,this),y=this.toJSON(),m=s||x.UUID.uuid();y.inputs=[];const v=m.split("-id"),E=v[v.length-1||0]||m;y.id=m,y.version=x.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1,y.deletable=!0,y.editable=!0;const b=Si(y,e);n?b.setParent(n,i):b.setParent(this.parent,null),c&&b.subscribe(),b.initChildren(i),i==null||i.add(b,H.Added);const w=(B=this.inputsDeclarations)==null?void 0:B.map((K,Y)=>K.clone(i,this,E+"-input-declaration-"+Y+"-id",c));b.inputsDeclarations=w;const V=(j=this.inputs)==null?void 0:j.map((K,Y)=>K.clone(i,b,E+"-input-map-"+Y+"-id",c));b.inputs=V;const $=(F=this.outputs)==null?void 0:F.map((K,Y)=>K.clone(i,b,E+"-output-map-"+Y+"-id",c));return b.outputs=$,this.error&&(b.error=this.error.clone(i,b,E+"-error-map-id",c)),this.dataType&&(b.dataType=this.dataType.clone(i,b,E+"-data-type-map-id",c)),i==null||i.attemptAutoclose(_.CloneEntity,this.id),b}syncInputMaps(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-input-maps"))){const n=[],s=[],c=[],e=[];return this.inputsDeclarations.forEach(y=>{if(!this.inputs.find(v=>{var E;return((E=v.declaration)==null?void 0:E.id)===y.id})){const v={dataType:null,id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.InputMap,parentRelationType:null,declaration:y.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,codeName:null,description:null,parent:this.toReference()},E=me(v,this.project);E.setParent(this,i),E.initChildren(i),i==null||i.add(E,H.Added),E.addSelfToProject(i),n.push(this),s.push(E)}}),this.inputs.forEach(y=>{if(y.declaration){if(!this.inputsDeclarations.find(v=>{var E;return v.id===((E=y.declaration)==null?void 0:E.id)})){const{updated:v,removed:E}=y.remove({ignoreUpstream:!1},i);v.push(...v),c.push(...E)}}else{const{updated:m,removed:v}=y.remove({ignoreUpstream:!1},i);n.push(...m),c.push(...v)}}),i==null||i.attemptAutoclose("sync-input-maps",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}getUnusedInputs(){return this.inputs.filter(i=>i.suggestion||!i.readsValue&&!i.defaultValue)}getUnusedOutputs(){return this.outputs.filter(i=>i.suggestion||!i.writesValues.length)}getUsedInputs(){return this.inputs.filter(i=>!i.suggestion&&(i.readsValue||i.defaultValue))}getUsedOutputs(){return this.outputs.filter(i=>!i.suggestion&&i.writesValues.length)}addValueReader(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddValueReader))){var e,y,m;if(!this.checkCanEditFromScopeOwnerWithSideEffects(this,_.AddValueReader,n))return this;const s=i.type===d.InputMap&&i.parent.type===d.VariableInstance&&((e=i.declaration)==null?void 0:e.type)===d.Property&&((y=i.declaration)==null?void 0:y.constant),c=i.type===d.VariableInstance&&((m=i.declaration)==null?void 0:m.constant);return(s||c)&&i?(n==null||n.event({id:`${_.SetValueWriter}-${this.id}--${this.id}`,action:_.SetValueWriter,owner:i,counterpart:this,errorReason:Ri.ValueReadingOverridesConstantVariable,rootAction:!1}),n==null||n.attemptAutoclose(_.AddValueReader,this.id),this):this.writesValues.includes(i)?(n==null||n.attemptAutoclose(_.AddValueReader,this.id),this):(this.writesValues.push(i),n==null||n.add(this,H.Affected),this)}removeValueReader(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveValueReader))){return this.checkCanEditFromScopeOwnerWithSideEffects(this,_.RemoveValueReader,n)?this.writesValues.includes(i)?(this.writesValues=this.writesValues.filter(s=>s.id!==i.id),n==null||n.add(this,H.Affected),this):(n==null||n.attemptAutoclose(_.RemoveValueReader,this.id),this):this}setDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetDataType))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetDataType,this.id),this;const s=this.dataType;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.dataType=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetDataType,this.id),this}removeDataType(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveDataType))){return this.checkCanEdit(this,i)?(this.dataType&&(this.dataType.remove({ignoreUpstream:!0},i),i==null||i.add(this,H.Affected),this.dataType=null),i==null||i.attemptAutoclose(_.RemoveDataType,this.id),this):(J.Logger.warn(`[removeDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveDataType,this.id),this)}getDataType(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"get-data-type"))){return i==null||i.attemptAutoclose("get-data-type",this.id),this.dataType||null}};I(vi,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(vi,"type",d.Search),I(vi,"USER_MANAGED_PARENT_TYPES",[...nr,d.Project]),I(vi,"PARENT_TYPES",[...vi.USER_MANAGED_PARENT_TYPES]),I(vi,"MUTABLE_BASE_PROPERTIES",["name","description","query","catchesError"]),I(vi,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),I(vi,"BASE_PROPERTIES",[...vi.MUTABLE_BASE_PROPERTIES,...vi.INMUTABLE_BASE_PROPERTIES]),I(vi,"MUTABLE_META_PROPERTIES",[...vi.MUTABLE_BASE_PROPERTIES,"x","y"]),I(vi,"INMUTABLE_META_PROPERTIES",[...vi.INMUTABLE_BASE_PROPERTIES]),I(vi,"META_PROPERTIES",[...vi.MUTABLE_META_PROPERTIES,...vi.INMUTABLE_META_PROPERTIES]),I(vi,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),I(vi,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),I(vi,"UPSTREAM_PROPERTIES",[...vi.MUTABLE_UPSTREAM_PROPERTIES,...vi.INMUTABLE_UPSTREAM_PROPERTIES]),I(vi,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputs","error"]),I(vi,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(vi,"DOWNSTREAM_PROPERTIES",[...vi.MUTABLE_DOWNSTREAM_PROPERTIES,...vi.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(vi,"PROPERTIES",[...vi.META_PROPERTIES,...vi.UPSTREAM_PROPERTIES,...vi.DOWNSTREAM_PROPERTIES]);let ku=vi;async function eBe(o,p={}){const i=J.YieldTracker.from(p),n=[],s=Lt(o.errors,n);await i.tick();for(const c of o.functions)await c.validateAsync({tracker:i});for(const c of o.events)await c.validateAsync({tracker:i});return s}function tBe(o){o.functions.forEach(i=>i.validate()),o.events.forEach(i=>i.validate());const p=[];return Lt(o.errors,p)}const rIi=Object.freeze(Object.defineProperty({__proto__:null,validate:tBe,validateAsync:eBe},Symbol.toStringTag,{value:"Module"})),_i=class _i extends Ur{constructor(i,n){super(i);I(this,"initialData");I(this,"id");I(this,"name");I(this,"codeName",null);I(this,"description",null);I(this,"x");I(this,"y");I(this,"type",d.InstalledProject);I(this,"implements");I(this,"functions",[]);I(this,"events",[]);I(this,"parent");I(this,"errors",[]);I(this,"project");I(this,"detachedDependents",{});I(this,"knownVersions",null);I(this,"activeVersion",!1);I(this,"initialized",!1);I(this,"startedInitialization",!1);this.initialData=i,this.project=n,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.implements=i.implements}static new(i=null){return{id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.InstalledProject,name:"",codeName:null,description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,n){const s=n,c={id:i.id,version:x.UUID.uuid(),createdAt:L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,deletable:!0,editable:!0,type:d.InstalledProject,codeName:i.codeName||null,description:i.description||null,functions:[],events:[],implements:{entityId:i.implements,version:x.UUID.uuid(),entityType:d.Project,type:d.GenericReference,id:x.UUID.uuid()},x:0,y:0,parent:s},e=me(c,n);return e.setParent(s,null),e}static validateGenerationTarget(i,n){let s=JSON.parse(JSON.stringify(i));const c=[];return c.push(...xr(s)),{errors:c,modifiedData:s}}validateGeneratedUpdate(i){const n=[];return i.parent&&n.push(new De({id:`${this.id}--${se.InvalidParentUpdate}`,code:se.InvalidParentUpdate,severity:ce.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`})),{errors:n,modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=x.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new _i(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.functions=[...this.functions],i.events=[...this.events],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);n.push(this.parent,...y.updated),s.push(...y.added),c.push(...y.removed)}return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new _i(v,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.functions=y.functions,this.events=y.events,this.parent=y.parent,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this;if(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const e=ne(i.parent),y=this.project.get(e),m=this.parent;if(m&&m.id!==(y==null?void 0:y.id)&&this.removeFromParent(n),y)this.setParent(y,n),this.addSelfToProject(n);else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.functions.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addFunction(m,n)}),this.functions.filter(e=>{const y=ne(e);return!i.functions.find(m=>ne(m)===y)}).forEach(e=>{this.removeFunction(e,n)}),i.events.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addEvent(m,n)}),this.events.filter(e=>{const y=ne(e);return!i.events.find(m=>ne(m)===y)}).forEach(e=>{this.removeEvent(e,n)}),this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this}hydrateAncestors(){const i=[],n=[],s=[],c=[];if(this.initialData.parent){const e=ne(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AfterAllChildrenInitialized))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[afterAllChildrenInitialized] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:[],added:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const n=[this],s=[],c=[],e=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}setParent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetParent))){var s;return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.SetParent,n)?(((s=this.parent)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.parent=i,n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetParent,this.id),this):this}addFunction(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-function"))){return this.functions.find(s=>s.id===i.id)||(this.functions.push(i),i.setParent(this,n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("add-function",this.id),this}removeFunction(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-function"))){const s=this.functions.findIndex(c=>c.id===i.id);return s!==-1&&(this.functions.splice(s,1),i.removeFromParent(n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("remove-function",this.id),this}addEvent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-event"))){return this.events.find(s=>s.id===i.id)||(this.events.push(i),i.setParent(this,n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("add-event",this.id),this}removeEvent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-event"))){const s=this.events.findIndex(c=>c.id===i.id);return s!==-1&&(this.events.splice(s,1),i.removeFromParent(n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("remove-event",this.id),this}initChildren(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.events=this.initialData.events.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.x=s.x||e.x,this.y=s.y||e.y,super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await _i.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await _i.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await _i.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await _i.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await _i.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await _i.repository.APILoadVersion(this.id,n,...s)}removeFromParent(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveFromParent))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.parent.removeInstalledProject(this),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:D(c),updated:D(n),removed:D(s),affected:D(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){var m;if(!this.checkCanDelete(this,n))return J.Logger.warn(`[remove] User is not allowed to delete or edit this ${this.type} entity with id: ${this.id}`),n==null||n.event({id:`${_.RemoveEntity}-${this.id}`,action:_.RemoveEntity,owner:this,errorReason:Ri.ActionOwnerEntityNonDeletable,rootAction:((m=n==null?void 0:n.self)==null?void 0:m.id)===this.id&&(n==null?void 0:n.autoCloseActionName)===_.RemoveEntity}),n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const s=[],c=[],e=[],y=[];if(n!=null&&n.hasRemoved(this.id))return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(c.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},n),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:b,added:w}=v.entity.onDetachedDependencyRemoved(this,v.field,n);s.push(...E),c.push(...b),e.push(...w)}),this.functions.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!1},n);s.push(...E),c.push(...b)}),this.events.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!1},n);s.push(...E),c.push(...b)}),!i){const v=this.removeFromParent(n);e.push(...v.added),s.push(...v.updated),c.push(...v.removed),y.push(...v.affected)}return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:D(y),self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){const n=[],s=[],c=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.entity.onDetachedDependencyRestored(this,y.field,i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),this.functions.forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.restore({},i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),this.events.forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.restore({},i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.functions.flatMap(s=>s.toFlat(i)),...this.events.flatMap(s=>s.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.functions.flatMap(s=>s.toFlatIds(i)),...this.events.flatMap(s=>s.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,x:this.x,y:this.y,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(n=>n.toJSON(i)),events:this.events.map(n=>n.toJSON(i)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(i=ct){var s,c,e,y,m;let n;return(s=i.seenEntityMaps)!=null&&s.has(this.id)?n=i.seenEntityMaps.get(this.id):(n=i.newId||jr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,n)),(c=i.seenEntities)!=null&&c.has(n)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(n),(m=i.seenEntities)==null||m.add(this.id),{id:n,version:x.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(v=>v.toJSONClone({...i,newId:null})),events:this.events.map(v=>v.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps}),x:this.x,y:this.y})}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(c=>c.toReference(i)),events:this.events.map(c=>c.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(s=>s.toFlatJSON(i)),...this.events.flatMap(s=>s.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,implements:(i=this.implements)==null?void 0:i.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(s=>s.toFlatGenerationTarget(i)),...this.events.flatMap(s=>s.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this}validate(){return this.errors=tBe(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await eBe(this,{tracker:n}),{success:!0}}getErrors(){return[...this.errors,...this.functions.flatMap(n=>n.getErrors()),...this.events.flatMap(n=>n.getErrors())]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.functions){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}await n.tick();for(const c of this.events){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}return s}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.CloneEntity)),n=null,s=null,c=!0){var $,B;const e=Ir(n,this),y=this.toJSON(),m=s||x.UUID.uuid();y.functions=[],y.events=[];const v=m.split("-id"),E=v[v.length-1||0]||m;y.id=m,y.version=x.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1,y.deletable=!0,y.editable=!0;const b=Si(y,e);n&&b.setParent(n,i),c&&b.subscribe(),b.initChildren(i),i==null||i.add(b,H.Added);const w=($=this.functions)==null?void 0:$.map((j,F)=>j.clone(i,b,E+"-exported-function-declaration-"+F+"-id",c));b.functions=w;const V=(B=this.events)==null?void 0:B.map((j,F)=>j.clone(i,b,E+"-exported-event-"+F+"-id",c));return b.events=V,i==null||i.attemptAutoclose(_.CloneEntity,this.id),b}};I(_i,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(_i,"type",d.InstalledProject),I(_i,"USER_MANAGED_PARENT_TYPES",[d.Project]),I(_i,"PARENT_TYPES",[..._i.USER_MANAGED_PARENT_TYPES]),I(_i,"MUTABLE_BASE_PROPERTIES",[]),I(_i,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),I(_i,"BASE_PROPERTIES",[..._i.MUTABLE_BASE_PROPERTIES,..._i.INMUTABLE_BASE_PROPERTIES]),I(_i,"MUTABLE_META_PROPERTIES",["x","y"]),I(_i,"INMUTABLE_META_PROPERTIES",[..._i.INMUTABLE_BASE_PROPERTIES]),I(_i,"META_PROPERTIES",[..._i.MUTABLE_META_PROPERTIES,..._i.INMUTABLE_META_PROPERTIES]),I(_i,"MUTABLE_UPSTREAM_PROPERTIES",[]),I(_i,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),I(_i,"UPSTREAM_PROPERTIES",[..._i.MUTABLE_UPSTREAM_PROPERTIES,..._i.INMUTABLE_UPSTREAM_PROPERTIES]),I(_i,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),I(_i,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(_i,"DOWNSTREAM_PROPERTIES",[..._i.MUTABLE_DOWNSTREAM_PROPERTIES,..._i.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(_i,"PROPERTIES",[..._i.META_PROPERTIES,..._i.UPSTREAM_PROPERTIES,..._i.DOWNSTREAM_PROPERTIES]);let ju=_i;async function iBe(o,p={}){var m;const i=J.YieldTracker.from(p),n=ea(o),s=BN(o),c=ta(o),e=[...n,...s,...c],y=Lt(o.errors,e);await i.tick();for(const v of o.inputs)await v.validateAsync({tracker:i});for(const v of o.outputs)await v.validateAsync({tracker:i});return await((m=o.error)==null?void 0:m.validateAsync({tracker:i})),y}function rBe(o){var s;o.inputs.forEach(c=>c.validate()),o.outputs.forEach(c=>c.validate()),(s=o.error)==null||s.validate();const p=ea(o),i=BN(o),n=[...p,...i,...ta(o)];return Lt(o.errors,n)}function BN(o){const p=[],i=UI(o.parent,null),n=i==null?void 0:i.entity;if(!n)p.push(Ot({id:`${o.id}--${Ie.InternalCallParentMissingDataType}`,code:Ie.InternalCallParentMissingDataType,severity:ce.Error,message:`Entity of type "${o.type}" with id "${o.id}", belongs to a variable whose data type entity doesn't contain its declaration method ('${d.FunctionDeclaration}' or '${d.ActionDescriptor}') its id "${o.declaration}".`,entity:o}).error);else if(![d.DefinitionEntity,d.BuiltInBaseEntity,d.PrimitiveEntity].includes(n.type))p.push(Ot({id:`${o.id}--${Ie.InternalCallParentDeclarationEntityInvalidType}`,code:Ie.InternalCallParentDeclarationEntityInvalidType,severity:ce.Error,message:`Entity of type "${o.type}" with id "${o.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
116
+ You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`})),{errors:n,modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];if(n==="search-parent-field"){const{updated:v,added:E,removed:b}=this.remove({ignoreUpstream:!1},s);c.push(...v),e.push(...E),y.push(...b)}return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];if(n==="search-parent-field"){const{updated:v,added:E,removed:b}=this.restore({},s);c.push(...v),e.push(...E),y.push(...b)}return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){var i,n,s,c,e,y;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"search-parent-field"}]),(c=(s=(n=this.dataType)==null?void 0:n.entity)==null?void 0:s.unsubscribeDependents)==null||c.call(s,[{entity:this,field:"search-data-type-entity-field"}]),(y=(e=this.dataType)==null?void 0:e.unsubscribeDependents)==null||y.call(e,[{entity:this,field:"search-data-type-field"}]),this.project.off(zt.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.off(zt.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.off(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}subscribeToDependencies(){var i,n,s,c,e,y;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"search-parent-field"}]),(c=(s=(n=this.dataType)==null?void 0:n.entity)==null?void 0:s.subscribeDependents)==null||c.call(s,[{entity:this,field:"search-data-type-entity-field"}]),(y=(e=this.dataType)==null?void 0:e.subscribeDependents)==null||y.call(e,[{entity:this,field:"search-data-type-field"}]),this.project.on(zt.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.on(zt.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.on(zt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=x.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new vi(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.inputsDeclarations=[...this.inputsDeclarations],i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.calledByEntry=[...this.calledByEntry],i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.dataType=this.dataType,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);n.push(this.parent,...y.updated),s.push(...y.added),c.push(...y.removed)}return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new vi(v,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.inputsDeclarations=y.inputsDeclarations,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.calledByEntry=y.calledByEntry,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.dataType=y.dataType,this.parent=y.parent,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this;if(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const s=ne(i.parent),c=this.project.get(s),e=this.parent;if(e&&e.id!==(c==null?void 0:c.id)&&this.removeFromParent(n),c)this.setParent(c,n),this.addSelfToProject(n);else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${s}' that isn't found in the project`)}else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.calledByEntry.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addEntryCaller(e,n),e.addCall(this,n))}),[...this.calledByEntry].forEach(s=>{i.calledByEntry.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.calledBySuccess.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addSuccessCaller(e,n),e.addSuccessCall(this,n))}),[...this.calledBySuccess].forEach(s=>{i.calledBySuccess.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.calledByError.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addErrorCaller(e,n),e.addErrorCall(this,n))}),[...this.calledByError].forEach(s=>{i.calledByError.find(e=>ne(e)===s.id)||(this.removeCaller(s,n),s.removeCall(this,n))}),i.dataType){const s=ne(i.dataType),c=this.project.get(s);c&&this.setDataType(c,n)}else this.setDataType(null,n);return i.inputsDeclarations.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addInputDeclaration(e,n),e.setParent(this,n))}),[...this.inputsDeclarations].forEach(s=>{i.inputs.find(e=>ne(e)===s.id)||(this.removeInputDeclaration(s,n),s.removeFromParent(n))}),i.outputs.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addOutput(e,n),e.setParent(this,n))}),[...this.outputs].forEach(s=>{i.outputs.find(e=>ne(e)===s.id)||(this.removeOutput(s,n),s.removeFromParent(n))}),i.inputs.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addInput(e,n),e.setParent(this,n))}),[...this.inputs].forEach(s=>{i.inputs.find(e=>ne(e)===s.id)||(this.removeInput(s,n),s.removeFromParent(n))}),i.writesValues.forEach(s=>{const c=ne(s),e=this.project.get(c);e&&(this.addValueReader(e,n),e.setValueWriter(this,n))}),[...this.writesValues].forEach(s=>{i.writesValues.find(e=>ne(e)===s.id)||(this.removeValueReader(s,n),s.setValueWriter(null,n))}),this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this}hydrateAncestors(){const i=[],n=[],s=[],c=[];if(this.initialData.parent){const e=ne(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addEntryCaller(m,null)}),this.initialData.calledBySuccess.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addSuccessCaller(m,null)}),this.initialData.calledByError.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addErrorCaller(m,null)}),{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AfterAllChildrenInitialized))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[afterAllChildrenInitialized] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:[],added:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];this.initialized=!0;const{updated:y,added:m,removed:v}=this.syncInputMaps(i);if(n.push(...y),s.push(...m),c.push(...v),this.project.initialized){const E=this.rehydrateQuery();this.metaSync({query:E},i),this.state=this.queryToState(),hC(this,this.state,i)}return this.inputs.sort((E,b)=>{var w,V;return(E.index??((w=E.declaration)==null?void 0:w.index))-(b.index??((V=b.declaration)==null?void 0:V.index))}),this.outputs.sort((E,b)=>{var w,V;return(E.index??((w=E.declaration)==null?void 0:w.index))-(b.index??((V=b.declaration)==null?void 0:V.index))}),this.captureVersion(),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const n=[this],s=[],c=[],e=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(y=>{y.addSuccessCaller(this,i),n.push(y)}),this.errorCalls.forEach(y=>{y.addErrorCaller(this,i),n.push(y)}),this.calledByEntry.forEach(y=>{y.addCall(this,i),n.push(y)}),this.calledBySuccess.forEach(y=>{y.addSuccessCall(this,i),n.push(y)}),this.calledByError.forEach(y=>{y.addErrorCall(this,i),n.push(y)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveInput))){const s=this.inputs.findIndex(e=>e.id===i.id);s>-1&&(this.inputs.splice(s,1),n==null||n.add(this,H.Affected));const c=this.inputsDeclarations.findIndex(e=>{var y;return e.id===((y=i.declaration)==null?void 0:y.id)});return c>-1&&(this.inputsDeclarations.splice(c,1),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.RemoveInput,this.id),this}addInput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddInput))){return this.checkCanEdit(this,n)?this.inputs.includes(i)?(n==null||n.attemptAutoclose(_.AddInput,this.id),this):(this.inputs.push(i),n==null||n.add(this,H.Affected),n==null||n.attemptAutoclose(_.AddInput,this.id),this):(J.Logger.warn(`[addInput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddInput,this.id),this)}addInputDeclaration(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(i)?(n==null||n.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(i),n==null||n.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-input-declaration"))){const s=this.inputsDeclarations.findIndex(c=>c.id===i.id);return s>-1&&(this.inputsDeclarations.splice(s,1),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose("remove-input-declaration",this.id),this}addOutput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.checkCanEdit(this,n)?this.outputs.includes(i)?(n==null||n.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),n==null||n.add(this,H.Affected),n==null||n.attemptAutoclose("add-output",this.id),this):(J.Logger.warn(`[addOutput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose("add-output",this.id),this)}removeOutput(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[removeOutput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose("remove-output",this.id),this;const s=this.outputs.findIndex(c=>c.id===i.id);return s>-1&&(this.outputs.splice(s,1),n&&(n==null||n.add(this,H.Affected))),n==null||n.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddSuccessCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddSuccessCaller,n)?(this.calledBySuccess.find(c=>c.id===i.id)||(this.calledBySuccess.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddSuccessCaller,this.id),this):this}addErrorCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddErrorCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddErrorCaller,n)?(this.calledByError.find(c=>c.id===i.id)||(this.calledByError.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddErrorCaller,this.id),this):this}addEntryCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddEntryCaller)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddEntryCaller,n)?(this.calledByEntry.find(c=>c.id===i.id)||(this.calledByEntry.push(i),n==null||n.add(this,H.Updated),s&&mt(this,n)),n==null||n.attemptAutoclose(_.AddEntryCaller,this.id),this):this}addErrorCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddErrorCall)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddErrorCall,n)?(this.errorCalls.find(c=>c.id===i.id)||(this.errorCalls.push(i),s&&mt(this,n),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.AddErrorCall,this.id),this):this}addSuccessCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddSuccessCall)),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.AddSuccessCall,n)?(this.successCalls.find(c=>c.id===i.id)||(this.successCalls.push(i),s&&mt(this,n),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.AddSuccessCall,this.id),this):this}removeCall(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveCall)),s=!1){if(!this.checkCanEditWithCounterpartAndSideEffects(this,i,_.RemoveCall,n))return this;const c=this.successCalls.findIndex(y=>y.id===i.id);c>-1&&(this.successCalls.splice(c,1),n==null||n.add(this,H.Affected));const e=this.errorCalls.findIndex(y=>y.id===i.id);return e>-1&&(this.errorCalls.splice(e,1),n==null||n.add(this,H.Affected)),s&&mt(this,n),n==null||n.attemptAutoclose(_.RemoveCall,this.id),this}removeCaller(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-caller")),s=!1){return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.RemoveCaller,n)?(this.calledBySuccess=this.calledBySuccess.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),this.calledByError=this.calledByError.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(c=>c.id!==i.id?!0:(n==null||n.add(this,H.Updated),n==null||n.add(c,H.Affected),!1)),s&&mt(this,n),n==null||n.attemptAutoclose(_.RemoveCaller,this.id),this):this}setError(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetErrorEntity))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setError] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetErrorEntity,this.id),this;const s=this.error;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.error=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetErrorEntity,this.id),this}setParent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetParent))){var s;return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.SetParent,n)?(((s=this.parent)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.parent=i,n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetParent,this.id),this):this}initChildren(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.initialData.dataType&&(this.dataType=me(this.initialData.dataType,this.project),this.dataType.setParent(this,null),this.dataType.initChildren(i)),this.successCalls=this.initialData.successCalls.map(n=>{const s=me(n,this.project);if([d.BreakStatement,d.ContinueStatement].includes(s.type))s.setParent(this.parent.parent,null),s.initChildren(i);else if(s.type===d.ReturnStatement){const c=tn(this,this.project);s.setParent(c,null),s.initChildren(i)}else s.type!==d.InternalCall&&(s.setParent(this.parent,null),s.initChildren(i));return s}),this.errorCalls=this.initialData.errorCalls.map(n=>{const s=me(n,this.project);if(s.addErrorCaller(this,null),[d.BreakStatement,d.ContinueStatement].includes(s.type))s.setParent(this.parent.parent,null),s.initChildren(i);else if(s.type===d.ReturnStatement){const c=tn(this,this.project);s.setParent(c,null),s.initChildren(i)}else s.type!==d.InternalCall&&(s.setParent(this.parent,null),s.initChildren(i));return s}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.inputs=this.initialData.inputs.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.outputs=this.initialData.outputs.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.initialData.error&&(this.error=me(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.x=s.x||e.x,this.y=s.y||e.y,this.name=s.name!==void 0?s.name:e.name,this.description=s.description!==void 0?s.description:e.description,this.catchesError=s.catchesError!==void 0?s.catchesError:this.catchesError,s.query!==void 0&&(this.query=s.query),super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await vi.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await vi.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await vi.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await vi.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await vi.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await vi.repository.APILoadVersion(this.id,n,...s)}removeFromParent(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveFromParent))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.parent.type===d.Project?(this.parent.removeSearch(this),e.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:D(c),updated:D(n),removed:D(s),affected:D(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){var m;if(!this.checkCanDelete(this,n))return J.Logger.warn(`[remove] User is not allowed to delete or edit this ${this.type} entity with id: ${this.id}`),n==null||n.event({id:`${_.RemoveEntity}-${this.id}`,action:_.RemoveEntity,owner:this,errorReason:Ri.ActionOwnerEntityNonDeletable,rootAction:((m=n==null?void 0:n.self)==null?void 0:m.id)===this.id&&(n==null?void 0:n.autoCloseActionName)===_.RemoveEntity}),n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const s=[],c=[],e=[],y=[];if(n!=null&&n.hasRemoved(this.id))return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(c.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},n),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:b,added:w}=v.entity.onDetachedDependencyRemoved(this,v.field,n);s.push(...E),c.push(...b),e.push(...w)}),this.inputs.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.inputsDeclarations.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.outputs.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.error){const{updated:v,removed:E}=this.error.remove({ignoreUpstream:!0},n);s.push(...v),c.push(...E)}if(this.dataType){const{updated:v,removed:E}=this.dataType.remove({ignoreUpstream:!0},n);s.push(...v),c.push(...E)}if(this.successCalls.forEach(v=>{s.push(v),v.removeCaller(this,n)}),this.errorCalls.forEach(v=>{s.push(v),v.removeCaller(this,n)}),!i){const v=this.removeFromParent(n);e.push(...v.added),s.push(...v.updated),c.push(...v.removed),y.push(...v.affected),this.calledBy.forEach(E=>{s.push(E),E.removeCall(this,n)})}return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:D(e),updated:D(s),removed:D(c),affected:D(y),self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:m,removed:v,added:E}=y.entity.onDetachedDependencyRestored(this,y.field,i);s.push(...m),c.push(...v),n.push(...E)}),this.inputsDeclarations.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.inputs.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.outputs.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.error){const{updated:y}=this.error.restore({},i);s.push(...y)}if(this.dataType){const{updated:y}=this.dataType.restore({},i);s.push(...y)}return this.successCalls.forEach(y=>{s.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{s.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{s.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{s.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{s.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:D(n),updated:D(s),removed:D(c),affected:D(e),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(s=>s.toFlat(i)),...this.errorCalls.flatMap(s=>s.toFlat(i)),...this.inputsDeclarations.flatMap(s=>s.toFlat(i)),...this.inputs.flatMap(s=>s.toFlat(i)),...this.outputs.flatMap(s=>s.toFlat(i)),...this.calledBy.flatMap(s=>s.toFlat(i)),...this.error?this.error.toFlat(i):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(s=>s.toFlatIds(i)),...this.errorCalls.flatMap(s=>s.toFlatIds(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatIds(i)),...this.inputs.flatMap(s=>s.toFlatIds(i)),...this.outputs.flatMap(s=>s.toFlatIds(i)),...this.calledBy.flatMap(s=>s.toFlatIds(i)),...this.error?this.error.toFlatIds(i):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,catchesError:this.catchesError}}toJSON(i=new Set){var n,s;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,query:this.query,description:this.description,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((n=this.dataType)==null?void 0:n.toJSON(i))||null,successCalls:this.successCalls.map(c=>c.toJSON(i)),errorCalls:this.errorCalls.map(c=>c.toJSON(i)),calledBySuccess:this.calledBySuccess.map(c=>c.toReference()),calledByError:this.calledByError.map(c=>c.toReference()),calledByEntry:this.calledByEntry.map(c=>c.toReference()),writesValues:this.writesValues.map(c=>c.toJSON(i)),inputsDeclarations:this.inputsDeclarations.map(c=>c.toJSON(i)),inputs:this.inputs.map(c=>c.toJSON(i)),outputs:this.outputs.map(c=>c.toJSON(i)),error:((s=this.error)==null?void 0:s.toJSON(i))||null,parent:this.parent.toReference()})}toJSONClone(i=ct){var c,e,y,m,v,E,b;let n;if((c=i.seenEntityMaps)!=null&&c.has(this.id)?n=i.seenEntityMaps.get(this.id):(n=i.newId||jr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,n)),(e=i.seenEntities)!=null&&e.has(n)||(y=i.seenEntities)!=null&&y.has(this.id))return this.toReference({seenEntityMaps:i.seenEntityMaps});(m=i.seenEntities)==null||m.add(n),(v=i.seenEntities)==null||v.add(this.id);let s=this.query;return i.seenEntityMaps&&i.seenEntityMaps.forEach((w,V)=>{const $=new RegExp(`{{::${V}}}`,"g");s=s.replace($,`{{::${w}}}`)}),{id:n,version:x.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.Search,name:this.name,query:this.query,description:this.description,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((E=this.dataType)==null?void 0:E.toJSONClone({...i,newId:null}))||null,writesValues:this.writesValues.map(w=>w.toJSONClone({...i,newId:null})),successCalls:this.successCalls.map(w=>w.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(w=>w.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(w=>w.toJSONClone({...i,newId:null})),inputs:this.inputs.map(w=>w.toJSONClone({...i,newId:null})),outputs:this.outputs.map(w=>w.toJSONClone({...i,newId:null})),error:((b=this.error)==null?void 0:b.toJSONClone({...i,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})}}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var c,e;let n=this.id;(c=i.seenEntityMaps)!=null&&c.has(this.id)&&(n=i.seenEntityMaps.get(this.id));let s=this.query;return i.seenEntityMaps&&i.seenEntityMaps.forEach((y,m)=>{const v=new RegExp(`{{::${m}}}`,"g");s=s.replace(v,`{{::${y}}}`)}),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,description:this.description,query:s,catchesError:this.catchesError,x:this.x,y:this.y,dataType:((e=this.dataType)==null?void 0:e.toReference(i))||null,writesValues:this.writesValues.map(y=>y.toReference(i)),inputs:this.inputs.map(y=>y.toReference(i)),inputsDeclarations:this.inputsDeclarations.map(y=>y.toReference(i)),outputs:this.outputs.map(y=>y.toReference(i)),successCalls:this.successCalls.map(y=>y.toReference(i)),errorCalls:this.errorCalls.map(y=>y.toReference(i)),calledBySuccess:this.calledBySuccess.map(y=>y.toReference(i)),calledByError:this.calledByError.map(y=>y.toReference(i)),calledByEntry:this.calledByEntry.map(y=>y.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(s=>s.toFlatJSON(i)),...this.errorCalls.flatMap(s=>s.toFlatJSON(i)),...this.inputs.flatMap(s=>s.toFlatJSON(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatJSON(i)),...this.outputs.flatMap(s=>s.toFlatJSON(i)),...this.calledBy.flatMap(s=>s.toFlatJSON(i)),...this.error?this.error.toFlatJSON(i):[],...this.dataType?this.dataType.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===d.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(n=>n.id),calledBySuccess:this.calledBySuccess.map(n=>n.id),calledByError:this.calledByError.map(n=>n.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(s=>s.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(s=>s.toFlatGenerationTarget(i)),...this.inputs.flatMap(s=>s.toFlatGenerationTarget(i)),...this.inputsDeclarations.flatMap(s=>s.toFlatGenerationTarget(i)),...this.outputs.flatMap(s=>s.toFlatGenerationTarget(i)),...this.error?this.error.toFlatGenerationTarget(i):[],...this.dataType?this.dataType.toFlatGenerationTarget(i):[]])}clearErrors(){var i,n;return this.errors=[],this.inputsDeclarations.forEach(s=>s.clearErrors()),this.inputs.forEach(s=>s.clearErrors()),this.outputs.forEach(s=>s.clearErrors()),this.successCalls.forEach(s=>s.clearErrors()),this.errorCalls.forEach(s=>s.clearErrors()),(i=this.error)==null||i.clearErrors(),(n=this.dataType)==null||n.clearErrors(),this}validate(){return this.errors=NLe(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await PLe(this,{tracker:n}),{success:!0}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(n=>n.getErrors()),...this.inputs.flatMap(n=>n.getErrors()),...this.outputs.flatMap(n=>n.getErrors()),...this.error?this.error.getErrors():[],...this.dataType?this.dataType.getErrors():[]]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.inputsDeclarations)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.inputs)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.outputs)s.push(...await c.getErrorsAsync({tracker:n}));return this.error&&s.push(...await this.error.getErrorsAsync({tracker:n})),this.dataType&&s.push(...await this.dataType.getErrorsAsync({tracker:n})),s}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.CloneEntity)),n=null,s=null,c=!0){var B,j,F;const e=Ir(n,this),y=this.toJSON(),m=s||x.UUID.uuid();y.inputs=[];const v=m.split("-id"),E=v[v.length-1||0]||m;y.id=m,y.version=x.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1,y.deletable=!0,y.editable=!0;const b=Si(y,e);n?b.setParent(n,i):b.setParent(this.parent,null),c&&b.subscribe(),b.initChildren(i),i==null||i.add(b,H.Added);const w=(B=this.inputsDeclarations)==null?void 0:B.map((K,Y)=>K.clone(i,this,E+"-input-declaration-"+Y+"-id",c));b.inputsDeclarations=w;const V=(j=this.inputs)==null?void 0:j.map((K,Y)=>K.clone(i,b,E+"-input-map-"+Y+"-id",c));b.inputs=V;const $=(F=this.outputs)==null?void 0:F.map((K,Y)=>K.clone(i,b,E+"-output-map-"+Y+"-id",c));return b.outputs=$,this.error&&(b.error=this.error.clone(i,b,E+"-error-map-id",c)),this.dataType&&(b.dataType=this.dataType.clone(i,b,E+"-data-type-map-id",c)),i==null||i.attemptAutoclose(_.CloneEntity,this.id),b}syncInputMaps(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-input-maps"))){const n=[],s=[],c=[],e=[];return this.inputsDeclarations.forEach(y=>{if(!this.inputs.find(v=>{var E;return((E=v.declaration)==null?void 0:E.id)===y.id})){const v={dataType:null,id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.InputMap,parentRelationType:null,declaration:y.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,codeName:null,description:null,parent:this.toReference()},E=me(v,this.project);E.setParent(this,i),E.initChildren(i),i==null||i.add(E,H.Added),E.addSelfToProject(i),n.push(this),s.push(E)}}),this.inputs.forEach(y=>{if(y.declaration){if(!this.inputsDeclarations.find(v=>{var E;return v.id===((E=y.declaration)==null?void 0:E.id)})){const{updated:v,removed:E}=y.remove({ignoreUpstream:!1},i);v.push(...v),c.push(...E)}}else{const{updated:m,removed:v}=y.remove({ignoreUpstream:!1},i);n.push(...m),c.push(...v)}}),i==null||i.attemptAutoclose("sync-input-maps",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}getUnusedInputs(){return this.inputs.filter(i=>i.suggestion||!i.readsValue&&!i.defaultValue)}getUnusedOutputs(){return this.outputs.filter(i=>i.suggestion||!i.writesValues.length)}getUsedInputs(){return this.inputs.filter(i=>!i.suggestion&&(i.readsValue||i.defaultValue))}getUsedOutputs(){return this.outputs.filter(i=>!i.suggestion&&i.writesValues.length)}addValueReader(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddValueReader))){var e,y,m;if(!this.checkCanEditFromScopeOwnerWithSideEffects(this,_.AddValueReader,n))return this;const s=i.type===d.InputMap&&i.parent.type===d.VariableInstance&&((e=i.declaration)==null?void 0:e.type)===d.Property&&((y=i.declaration)==null?void 0:y.constant),c=i.type===d.VariableInstance&&((m=i.declaration)==null?void 0:m.constant);return(s||c)&&i?(n==null||n.event({id:`${_.SetValueWriter}-${this.id}--${this.id}`,action:_.SetValueWriter,owner:i,counterpart:this,errorReason:Ri.ValueReadingOverridesConstantVariable,rootAction:!1}),n==null||n.attemptAutoclose(_.AddValueReader,this.id),this):this.writesValues.includes(i)?(n==null||n.attemptAutoclose(_.AddValueReader,this.id),this):(this.writesValues.push(i),n==null||n.add(this,H.Affected),this)}removeValueReader(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveValueReader))){return this.checkCanEditFromScopeOwnerWithSideEffects(this,_.RemoveValueReader,n)?this.writesValues.includes(i)?(this.writesValues=this.writesValues.filter(s=>s.id!==i.id),n==null||n.add(this,H.Affected),this):(n==null||n.attemptAutoclose(_.RemoveValueReader,this.id),this):this}setDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetDataType))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetDataType,this.id),this;const s=this.dataType;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.dataType=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetDataType,this.id),this}removeDataType(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveDataType))){return this.checkCanEdit(this,i)?(this.dataType&&(this.dataType.remove({ignoreUpstream:!0},i),i==null||i.add(this,H.Affected),this.dataType=null),i==null||i.attemptAutoclose(_.RemoveDataType,this.id),this):(J.Logger.warn(`[removeDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveDataType,this.id),this)}getDataType(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"get-data-type"))){return i==null||i.attemptAutoclose("get-data-type",this.id),this.dataType||null}};I(vi,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(vi,"type",d.Search),I(vi,"USER_MANAGED_PARENT_TYPES",[...nr,d.Project]),I(vi,"PARENT_TYPES",[...vi.USER_MANAGED_PARENT_TYPES]),I(vi,"MUTABLE_BASE_PROPERTIES",["name","description","query","catchesError"]),I(vi,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),I(vi,"BASE_PROPERTIES",[...vi.MUTABLE_BASE_PROPERTIES,...vi.INMUTABLE_BASE_PROPERTIES]),I(vi,"MUTABLE_META_PROPERTIES",[...vi.MUTABLE_BASE_PROPERTIES,"x","y"]),I(vi,"INMUTABLE_META_PROPERTIES",[...vi.INMUTABLE_BASE_PROPERTIES]),I(vi,"META_PROPERTIES",[...vi.MUTABLE_META_PROPERTIES,...vi.INMUTABLE_META_PROPERTIES]),I(vi,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),I(vi,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),I(vi,"UPSTREAM_PROPERTIES",[...vi.MUTABLE_UPSTREAM_PROPERTIES,...vi.INMUTABLE_UPSTREAM_PROPERTIES]),I(vi,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputs","error"]),I(vi,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(vi,"DOWNSTREAM_PROPERTIES",[...vi.MUTABLE_DOWNSTREAM_PROPERTIES,...vi.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(vi,"PROPERTIES",[...vi.META_PROPERTIES,...vi.UPSTREAM_PROPERTIES,...vi.DOWNSTREAM_PROPERTIES]);let ku=vi;async function eBe(o,p={}){const i=J.YieldTracker.from(p),n=[],s=Lt(o.errors,n);await i.tick();for(const c of o.functions)await c.validateAsync({tracker:i});for(const c of o.events)await c.validateAsync({tracker:i});return s}function tBe(o){o.functions.forEach(i=>i.validate()),o.events.forEach(i=>i.validate());const p=[];return Lt(o.errors,p)}const rIi=Object.freeze(Object.defineProperty({__proto__:null,validate:tBe,validateAsync:eBe},Symbol.toStringTag,{value:"Module"})),_i=class _i extends Ur{constructor(i,n){super(i);I(this,"initialData");I(this,"id");I(this,"name");I(this,"codeName",null);I(this,"description",null);I(this,"x");I(this,"y");I(this,"type",d.InstalledProject);I(this,"implements");I(this,"functions",[]);I(this,"events",[]);I(this,"parent");I(this,"errors",[]);I(this,"project");I(this,"detachedDependents",{});I(this,"knownVersions",null);I(this,"activeVersion",!1);I(this,"initialized",!1);I(this,"startedInitialization",!1);this.initialData=i,this.project=n,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.implements=i.implements}static new(i=null){return{id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.InstalledProject,name:"",codeName:null,description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,n){const s=n,c={id:i.id,version:x.UUID.uuid(),createdAt:L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,deletable:!0,editable:!0,type:d.InstalledProject,codeName:i.codeName||null,description:i.description||null,functions:[],events:[],implements:{entityId:i.implements,version:x.UUID.uuid(),entityType:d.Project,type:d.GenericReference,id:x.UUID.uuid()},x:0,y:0,parent:s},e=me(c,n);return e.setParent(s,null),e}static validateGenerationTarget(i,n){let s=JSON.parse(JSON.stringify(i));const c=[];return c.push(...xr(s)),{errors:c,modifiedData:s}}validateGeneratedUpdate(i){const n=[];return i.parent&&n.push(new De({id:`${this.id}--${se.InvalidParentUpdate}`,code:se.InvalidParentUpdate,severity:ce.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`})),{errors:n,modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=x.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new _i(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.functions=[...this.functions],i.events=[...this.events],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);n.push(this.parent,...y.updated),s.push(...y.added),c.push(...y.removed)}return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new _i(v,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.functions=y.functions,this.events=y.events,this.parent=y.parent,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this;if(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const e=ne(i.parent),y=this.project.get(e),m=this.parent;if(m&&m.id!==(y==null?void 0:y.id)&&this.removeFromParent(n),y)this.setParent(y,n),this.addSelfToProject(n);else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.functions.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addFunction(m,n)}),this.functions.filter(e=>{const y=ne(e);return!i.functions.find(m=>ne(m)===y)}).forEach(e=>{this.removeFunction(e,n)}),i.events.forEach(e=>{const y=ne(e),m=this.project.get(y);m&&this.addEvent(m,n)}),this.events.filter(e=>{const y=ne(e);return!i.events.find(m=>ne(m)===y)}).forEach(e=>{this.removeEvent(e,n)}),this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this}hydrateAncestors(){const i=[],n=[],s=[],c=[];if(this.initialData.parent){const e=ne(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AfterAllChildrenInitialized))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[afterAllChildrenInitialized] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:[],added:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const n=[this],s=[],c=[],e=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}setParent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetParent))){var s;return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.SetParent,n)?(((s=this.parent)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.parent=i,n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetParent,this.id),this):this}addFunction(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-function"))){return this.functions.find(s=>s.id===i.id)||(this.functions.push(i),i.setParent(this,n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("add-function",this.id),this}removeFunction(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-function"))){const s=this.functions.findIndex(c=>c.id===i.id);return s!==-1&&(this.functions.splice(s,1),i.removeFromParent(n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("remove-function",this.id),this}addEvent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-event"))){return this.events.find(s=>s.id===i.id)||(this.events.push(i),i.setParent(this,n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("add-event",this.id),this}removeEvent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-event"))){const s=this.events.findIndex(c=>c.id===i.id);return s!==-1&&(this.events.splice(s,1),i.removeFromParent(n),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("remove-event",this.id),this}initChildren(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.events=this.initialData.events.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.x=s.x||e.x,this.y=s.y||e.y,super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await _i.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await _i.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await _i.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await _i.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await _i.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await _i.repository.APILoadVersion(this.id,n,...s)}removeFromParent(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveFromParent))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return this.parent.removeInstalledProject(this),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:D(c),updated:D(n),removed:D(s),affected:D(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){var m;if(!this.checkCanDelete(this,n))return J.Logger.warn(`[remove] User is not allowed to delete or edit this ${this.type} entity with id: ${this.id}`),n==null||n.event({id:`${_.RemoveEntity}-${this.id}`,action:_.RemoveEntity,owner:this,errorReason:Ri.ActionOwnerEntityNonDeletable,rootAction:((m=n==null?void 0:n.self)==null?void 0:m.id)===this.id&&(n==null?void 0:n.autoCloseActionName)===_.RemoveEntity}),n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const s=[],c=[],e=[],y=[];if(n!=null&&n.hasRemoved(this.id))return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(c.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},n),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:b,added:w}=v.entity.onDetachedDependencyRemoved(this,v.field,n);s.push(...E),c.push(...b),e.push(...w)}),this.functions.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!1},n);s.push(...E),c.push(...b)}),this.events.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!1},n);s.push(...E),c.push(...b)}),!i){const v=this.removeFromParent(n);e.push(...v.added),s.push(...v.updated),c.push(...v.removed),y.push(...v.affected)}return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:D(y),self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){const n=[],s=[],c=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.entity.onDetachedDependencyRestored(this,y.field,i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),this.functions.forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.restore({},i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),this.events.forEach(y=>{const{updated:m,removed:v,added:E,affected:b}=y.restore({},i);n.push(...m),s.push(...v),c.push(...E),e.push(...b)}),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.functions.flatMap(s=>s.toFlat(i)),...this.events.flatMap(s=>s.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.functions.flatMap(s=>s.toFlatIds(i)),...this.events.flatMap(s=>s.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,x:this.x,y:this.y,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(n=>n.toJSON(i)),events:this.events.map(n=>n.toJSON(i)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(i=ct){var s,c,e,y,m;let n;return(s=i.seenEntityMaps)!=null&&s.has(this.id)?n=i.seenEntityMaps.get(this.id):(n=i.newId||jr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,n)),(c=i.seenEntities)!=null&&c.has(n)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(n),(m=i.seenEntities)==null||m.add(this.id),{id:n,version:x.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(v=>v.toJSONClone({...i,newId:null})),events:this.events.map(v=>v.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps}),x:this.x,y:this.y})}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(c=>c.toReference(i)),events:this.events.map(c=>c.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(s=>s.toFlatJSON(i)),...this.events.flatMap(s=>s.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,implements:(i=this.implements)==null?void 0:i.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(s=>s.toFlatGenerationTarget(i)),...this.events.flatMap(s=>s.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this}validate(){return this.errors=tBe(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await eBe(this,{tracker:n}),{success:!0}}getErrors(){return[...this.errors,...this.functions.flatMap(n=>n.getErrors()),...this.events.flatMap(n=>n.getErrors())]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.functions){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}await n.tick();for(const c of this.events){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}return s}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.CloneEntity)),n=null,s=null,c=!0){var $,B;const e=Ir(n,this),y=this.toJSON(),m=s||x.UUID.uuid();y.functions=[],y.events=[];const v=m.split("-id"),E=v[v.length-1||0]||m;y.id=m,y.version=x.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1,y.deletable=!0,y.editable=!0;const b=Si(y,e);n&&b.setParent(n,i),c&&b.subscribe(),b.initChildren(i),i==null||i.add(b,H.Added);const w=($=this.functions)==null?void 0:$.map((j,F)=>j.clone(i,b,E+"-exported-function-declaration-"+F+"-id",c));b.functions=w;const V=(B=this.events)==null?void 0:B.map((j,F)=>j.clone(i,b,E+"-exported-event-"+F+"-id",c));return b.events=V,i==null||i.attemptAutoclose(_.CloneEntity,this.id),b}};I(_i,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(_i,"type",d.InstalledProject),I(_i,"USER_MANAGED_PARENT_TYPES",[d.Project]),I(_i,"PARENT_TYPES",[..._i.USER_MANAGED_PARENT_TYPES]),I(_i,"MUTABLE_BASE_PROPERTIES",[]),I(_i,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),I(_i,"BASE_PROPERTIES",[..._i.MUTABLE_BASE_PROPERTIES,..._i.INMUTABLE_BASE_PROPERTIES]),I(_i,"MUTABLE_META_PROPERTIES",["x","y"]),I(_i,"INMUTABLE_META_PROPERTIES",[..._i.INMUTABLE_BASE_PROPERTIES]),I(_i,"META_PROPERTIES",[..._i.MUTABLE_META_PROPERTIES,..._i.INMUTABLE_META_PROPERTIES]),I(_i,"MUTABLE_UPSTREAM_PROPERTIES",[]),I(_i,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),I(_i,"UPSTREAM_PROPERTIES",[..._i.MUTABLE_UPSTREAM_PROPERTIES,..._i.INMUTABLE_UPSTREAM_PROPERTIES]),I(_i,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),I(_i,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(_i,"DOWNSTREAM_PROPERTIES",[..._i.MUTABLE_DOWNSTREAM_PROPERTIES,..._i.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(_i,"PROPERTIES",[..._i.META_PROPERTIES,..._i.UPSTREAM_PROPERTIES,..._i.DOWNSTREAM_PROPERTIES]);let ju=_i;async function iBe(o,p={}){var m;const i=J.YieldTracker.from(p),n=ea(o),s=BN(o),c=ta(o),e=[...n,...s,...c],y=Lt(o.errors,e);await i.tick();for(const v of o.inputs)await v.validateAsync({tracker:i});for(const v of o.outputs)await v.validateAsync({tracker:i});return await((m=o.error)==null?void 0:m.validateAsync({tracker:i})),y}function rBe(o){var s;o.inputs.forEach(c=>c.validate()),o.outputs.forEach(c=>c.validate()),(s=o.error)==null||s.validate();const p=ea(o),i=BN(o),n=[...p,...i,...ta(o)];return Lt(o.errors,n)}function BN(o){const p=[],i=UI(o.parent,null),n=i==null?void 0:i.entity;if(!n)p.push(Ot({id:`${o.id}--${Ie.InternalCallParentMissingDataType}`,code:Ie.InternalCallParentMissingDataType,severity:ce.Error,message:`Entity of type "${o.type}" with id "${o.id}", belongs to a variable whose data type entity doesn't contain its declaration method ('${d.FunctionDeclaration}' or '${d.ActionDescriptor}') its id "${o.declaration}".`,entity:o}).error);else if(![d.DefinitionEntity,d.BuiltInBaseEntity,d.PrimitiveEntity].includes(n.type))p.push(Ot({id:`${o.id}--${Ie.InternalCallParentDeclarationEntityInvalidType}`,code:Ie.InternalCallParentDeclarationEntityInvalidType,severity:ce.Error,message:`Entity of type "${o.type}" with id "${o.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
117
117
  This variable's data-type has an 'entity' field that references an entity with id '${n.id}' and of type '${n.type}'.`,entity:o}).error);else{const s=pf(n),c=[];[d.DefinitionEntity].includes(n.type)&&c.push(...n.getAllInteractiveMethods());let e="";if(s?n.methods.length?e=`
118
118
  All '${d.FunctionDeclaration}' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
119
119
  - ${n.methods.map(m=>m.id).join(`
@@ -386,7 +386,7 @@ ${RA}`})),{errors:n,modifiedData:i}}onProjectInitialized(i,n=this.project.addCha
386
386
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
387
387
  ${Io({describe_entity:v.entity.id})}
388
388
  Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`}))}return{errors:c,modifiedData:s}}get interactive(){return this.implements.length?this.implements.every(i=>i.interactive):!0}get allMethods(){return D([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return D([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){var s;const i=((s=this.extends)==null?void 0:s.type)===d.DefinitionEntity?this.extends.allMethods:[],n=[...i].filter(c=>!i.some(e=>{var y,m;return e.id!==c.id&&(((y=e.implements)==null?void 0:y.id)===c.id||((m=e.extends)==null?void 0:m.id)===c.id)}));return D([...n,...this.implements.flatMap(c=>{const e=c.type===d.DefinitionEntity?[...c.allMethods]:[];return[...e].filter(m=>!e.some(v=>{var E,b;return v.id!==m.id&&(((E=v.implements)==null?void 0:E.id)===m.id||((b=v.extends)==null?void 0:b.id)===m.id)}))})])}get allBasePropertiesFromOriginalParents(){var c;const i=((c=this.extends)==null?void 0:c.allProperties)||[],n=[...i].filter(e=>!i.some(y=>{var m;return y.id!==e.id&&(!!y.implements.find(v=>v.id===e.id)||((m=y.extends)==null?void 0:m.id)===e.id)}));return D([...n,...this.implements.flatMap(e=>{const y=[...e.allProperties];return[...y].filter(v=>!y.some(E=>{var b;return E.id!==v.id&&(!!E.implements.find(w=>w.id===v.id)||((b=E.extends)==null?void 0:b.id)===v.id)}))})])}get allBasePropertiesFromExtendedAndImplementedEntities(){var c,e;const i=[...((c=this.extends)==null?void 0:c.ownDeclaredProperties)||[],...((e=this.extends)==null?void 0:e.allBasePropertiesFromExtendedAndImplementedEntities)||[]].filter(y=>!y.abstract),n=[...i].filter(y=>!i.some(m=>{var v;return m.id!==y.id&&(!!m.implements.find(E=>E.id===y.id)||((v=m.extends)==null?void 0:v.id)===y.id)})),s=this.implements.reduce((y,m)=>{const v=m.implementedPropertiesFromOriginalParents,E=[...m.ownDeclaredProperties].filter(V=>!V.abstract),b=[...v,...E,...y];return[...b].filter(V=>!!!b.find(B=>{var j;return!!B.implements.find(F=>F.id===V.id)||((j=B.extends)==null?void 0:j.id)===V.id}))},[]);return D([...n,...s])}get allBaseMethodsFromExtendedAndImplementedEntities(){return D([...(this.extends?[this.extends]:[]).reduce((i,n)=>n.type!==d.DefinitionEntity?[]:[...[...n.ownDeclaredMethods,...n.allBaseMethodsFromExtendedAndImplementedEntities].filter(c=>c.type!==d.ActionDescriptor),...i],[]),...this.implements.reduce((i,n)=>n.type!==d.DefinitionEntity?n.abstractMethods:[...[...n.ownDeclaredMethods,...n.allBaseMethodsFromExtendedAndImplementedEntities].filter(c=>c.type!==d.ActionDescriptor),...i],[])])}get extendedPropertiesFromOriginalParents(){var s,c;const i=[...((s=this.extends)==null?void 0:s.ownDeclaredProperties)||[],...((c=this.extends)==null?void 0:c.extendedPropertiesFromOriginalParents)||[]].filter(e=>!e.abstract),n=[...i].filter(e=>!i.some(y=>{var m;return y.id!==e.id&&(!!y.implements.find(v=>v.id===e.id)||((m=y.extends)==null?void 0:m.id)===e.id)}));return D(n)}get implementedPropertiesFromOriginalParents(){return D([...(this.extends?[this.extends]:[]).reduce((i,n)=>{const s=n.implementedPropertiesFromOriginalParents,c=[...n.ownDeclaredProperties].filter(m=>!!m.abstract),e=[...s,...c,...i];return[...e].filter(m=>!!!e.find(E=>{var b;return((b=E.extends)==null?void 0:b.id)===m.id||!!E.implements.find(w=>w.id===m.id)}))},[]),...this.implements.reduce((i,n)=>{const s=n.implementedPropertiesFromOriginalParents,c=[...n.ownDeclaredProperties].filter(m=>!!m.abstract),e=[...s,...c,...i];return[...e].filter(m=>!!!e.find(E=>{var b;return!!E.implements.find(w=>w.id===m.id)||((b=E.extends)==null?void 0:b.id)===m.id}))},[])].filter(i=>!!i.abstract))}get extendedMethodsFromOriginalParents(){return D((this.extends?[this.extends]:[]).reduce((i,n)=>{if(n.type!==d.DefinitionEntity)return[];const s=[...n.ownDeclaredMethods,...n.extendedMethodsFromOriginalParents].filter(c=>c.type!==d.ActionDescriptor);return[...i,...s]},[]))}get implementedMethodsFromOriginalParents(){return D([...(this.extends?[this.extends]:[]).reduce((i,n)=>{const s=n.type===d.DefinitionEntity?n.methods:[],c=[...n.abstractMethods].filter(e=>!s.find(y=>y.name===e.name));return[...s,...c,...i]},[]),...this.implements.reduce((i,n)=>[...n.abstractMethods,...i],[])].filter(i=>i.type===d.ActionDescriptor))}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(n=>!n.isExtendedProperty)}get extendedMethods(){return this.methods.filter(i=>i.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}validateGeneratedUpdate(i){const n=[];return i.parent&&n.push(new De({id:`${this.id}--${se.InvalidParentUpdate}`,code:se.InvalidParentUpdate,severity:ce.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`})),{errors:n,modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];return n==="implements"&&(this.removeImplementation(i,s),c.push(this)),n==="extends"&&(this.setExtension(null,s),c.push(this)),{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];return n==="implements"&&(this.addImplementation(i,s),c.push(this)),n==="extends"&&(this.setExtension(i,s),c.push(this)),{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){return this.implements.forEach(i=>{Zn.includes(i.type)||i.unsubscribeDependents([{entity:this,field:"implements"}])}),this.extends&&(Zn.includes(this.extends.type)||this.extends.unsubscribeDependents([{entity:this,field:"extends"}])),this}subscribeToDependencies(){return this.implements.forEach(i=>{Zn.includes(i.type)||i.subscribeDependents([{entity:this,field:"implements"}])}),this.extends&&(Zn.includes(this.extends.type)||this.extends.subscribeDependents([{entity:this,field:"extends"}])),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=x.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new Ii(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.properties=[...this.properties],i.methods=[...this.methods],i.abstractMethods=[...this.abstractMethods],i.extends=this.extends,i.implements=[...this.implements],i.allPropertiesImplement=this.allPropertiesImplement,i.additionalPropertiesDataType=this.additionalPropertiesDataType,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);n.push(this.parent,...y.updated),s.push(...y.added),c.push(...y.removed)}return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Ii(v,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.properties=[...y.properties],this.methods=[...y.methods],this.abstractMethods=[...y.abstractMethods],this.extends=y.extends,this.implements=[...y.implements],this.allPropertiesImplement=y.allPropertiesImplement,this.additionalPropertiesDataType=y.additionalPropertiesDataType,this.parent=y.parent,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this;if(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const y=ne(i.parent),m=this.project.get(y),v=this.parent;if(v&&v.id!==(m==null?void 0:m.id)&&this.removeFromParent(n),m)this.setParent(m,n),this.addSelfToProject(n);else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${y}' that isn't found in the project`)}else throw n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.extends){const y=ne(i.extends),m=this.project.get(y);m&&this.setExtension(m,n)}else this.setExtension(null,n);if(i.implements.forEach(y=>{const m=ne(y),v=this.project.get(m);if(v)this.addImplementation(v,n);else throw new Error(`${Sr(this.type)} with id '${this.id}' has a 'implements' reference "${m}" which is missing in the project`)}),this.implements.filter(y=>{const m=ne(y);return!i.implements.find(v=>ne(v)===m)}).forEach(y=>{this.removeImplementation(y,n)}),i.methods.forEach(y=>{const m=ne(y),v=this.project.get(m);v&&this.addMethod(v,n)}),this.methods.filter(y=>{const m=ne(y);return!i.methods.find(v=>ne(v)===m)}).forEach(y=>{this.removeMethod(y,n)}),i.properties.forEach(y=>{const m=ne(y),v=this.project.get(m);v&&this.addProperty(v,n)}),this.properties.filter(y=>{const m=ne(y);return!i.properties.find(v=>ne(v)===m)}).forEach(y=>{this.removeProperty(y,n)}),i.allPropertiesImplement){const y=ne(i.allPropertiesImplement),m=this.project.get(y);m&&this.setAllPropertiesImplement(m,n)}else this.setAllPropertiesImplement(null,n);if(i.additionalPropertiesDataType){const y=ne(i.additionalPropertiesDataType),m=this.project.get(y);m&&this.setAdditionalPropertiesDataType(m,n)}else this.setAdditionalPropertiesDataType(null,n);return this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this}hydrateAncestors(){const i=[],n=[],s=[],c=[];if(this.initialData.parent){const e=ne(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.extends){const e=ne(this.initialData.extends),y=this.project.get(e);y&&(this.setExtension(y,null),y.type!==d.BuiltInBaseEntity&&i.push(y))}return this.initialData.implements.forEach(e=>{const y=ne(e),m=this.project.get(y);if(m)this.addImplementation(m,null),m.type!==d.BuiltInBaseEntity&&i.push(m);else throw new Error(`${Sr(this.type)} with id '${this.id}' has a 'implements' reference "${y}" which is missing in the project`)}),{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AfterAllChildrenInitialized))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[afterAllChildrenInitialized] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:[],added:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];this.initialized=!0;const{updated:y,added:m,removed:v,affected:E}=this.syncImplementationProperties(i);n.push(...y),s.push(...m),c.push(...v),e.push(...E);const{updated:b,added:w,removed:V,affected:$}=this.addExtendedProperties(i);n.push(...b),s.push(...w),c.push(...V),e.push(...$);const{updated:B,added:j,removed:F}=this.removeUnrecognizedProperties(i);n.push(...B),s.push(...j),c.push(...F);const{updated:K,added:Y,removed:ie,affected:ee}=this.syncImplementationMethods(i);n.push(...K),s.push(...Y),c.push(...ie),e.push(...ee);const{updated:de,added:ae,removed:fe,affected:ve}=this.addExtendedMethods(i);n.push(...de),s.push(...ae),c.push(...fe),e.push(...ve);const{updated:ue,added:ye,removed:Ve}=this.removeUnrecognizedMethods(i);n.push(...ue),s.push(...ye),c.push(...Ve),this.addSuggestions(),this.properties.sort((xe,Pe)=>xe.index-Pe.index);const _e=this.project.getDefinitionEntities(new Set([this.id]));if(_e.some(xe=>xe.id!==this.id&&xe.name.toLowerCase()===this.name.toLowerCase())){const xe=KI(this.name,_e);this.metaSync({name:xe},i)}return this.captureVersion(),i==null||i.attemptAutoclose(_.AfterAllChildrenInitialized,this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const n=[this],s=[],c=[],e=[];if(this.parent.type===d.DataType){const y=this.parent;y.entity=this,n.push(y)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}setParent(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetParent))){var s;return this.checkCanEditWithCounterpartAndSideEffects(this,i,_.SetParent,n)?(((s=this.parent)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.parent=i,n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetParent,this.id),this):this}setExtension(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetExtension))){var s;return this.checkCanEdit(this,n)?(((s=this.extends)==null?void 0:s.id)!==(i==null?void 0:i.id)&&(this.extends=i,this.subscribeToDependencies(),n&&(n==null||n.add(this,H.Updated))),n==null||n.attemptAutoclose(_.SetExtension,this.id),this):(J.Logger.warn(`[setExtension] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetExtension,this.id),this)}addImplementation(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddImplementation))){return this.checkCanEdit(this,n)?(this.implements.includes(i)||(this.implements.push(i),this.subscribeToDependencies(),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.AddImplementation,this.id),this):(J.Logger.warn(`[addImplementation] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddImplementation,this.id),this)}removeImplementation(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveImplementation))){return this.checkCanEdit(this,n)?(this.implements.includes(i)&&(this.implements=this.implements.filter(s=>s.id!==i.id),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.RemoveImplementation,this.id),this):(J.Logger.warn(`[removeImplementation] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.RemoveImplementation,this.id),this)}removeProperty(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveProperty))){return this.checkCanEdit(this,n)?(this.properties.includes(i)&&(this.properties=this.properties.filter(s=>s.id!==i.id),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.RemoveProperty,this.id),this):(J.Logger.warn(`[removeProperty] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.RemoveProperty,this.id),this)}addMethod(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddMethod))){return this.checkCanEdit(this,n)?(this.methods.includes(i)||(this.methods.push(i),this.suggestedMethods=this.suggestedMethods.filter(s=>s.name!==i.name),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.AddMethod,this.id),this):(J.Logger.warn(`[addMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddMethod,this.id),this)}removeMethod(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveMethod))){return this.checkCanEdit(this,n)?(this.methods.includes(i)&&(this.methods=this.methods.filter(s=>s.id!==i.id),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.RemoveMethod,this.id),this):(J.Logger.warn(`[removeMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.RemoveMethod,this.id),this)}addProperty(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddProperty))){return this.checkCanEdit(this,n)?(this.properties.includes(i)||(this.properties.push(i),this.suggestedProperties=this.suggestedProperties.filter(s=>s.name!==i.name),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.AddProperty,this.id),this):(J.Logger.warn(`[addProperty] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddProperty,this.id),this)}addSuggestedProperty(i){return this.suggestedProperties.includes(i)||this.suggestedProperties.push(i),this}addSuggestedMethod(i){return this.suggestedMethods.includes(i)||this.suggestedMethods.push(i),this}removeSuggestedProperty(i){return this.suggestedProperties=this.suggestedProperties.filter(n=>n.id!==i.id),this}removeSuggestedMethod(i){return this.suggestedMethods=this.suggestedMethods.filter(n=>n.id!==i.id),this}addAbstractMethod(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.AddAbstractMethod))){return this.checkCanEdit(this,n)?(this.abstractMethods.includes(i)||(this.abstractMethods.push(i),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.AddAbstractMethod,this.id),this):(J.Logger.warn(`[addAbstractMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.AddAbstractMethod,this.id),this)}removeAbstractMethod(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveAbstractMethod))){return this.checkCanEdit(this,n)?(this.abstractMethods.includes(i)&&(this.abstractMethods=this.abstractMethods.filter(s=>s.id!==i.id),n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose(_.RemoveAbstractMethod,this.id),this):(J.Logger.warn(`[removeAbstractMethod] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.RemoveAbstractMethod,this.id),this)}initChildren(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.properties=this.initialData.properties.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.methods=this.initialData.methods.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.abstractMethods=this.initialData.abstractMethods.map(n=>{const s=me(n,this.project);return s.setParent(this,null),s.initChildren(i),s}),this.initialData.extends&&(this.extends=me(this.initialData.extends,this.project)),this.implements=this.initialData.implements.map(n=>me(n,this.project)),this.initialData.allPropertiesImplement){const n=me(this.initialData.allPropertiesImplement,this.project);n.setParent(this,null),n.initChildren(null),this.setAllPropertiesImplement(n,i)}if(this.initialData.additionalPropertiesDataType){const n=me(this.initialData.additionalPropertiesDataType,this.project);n.setParent(this,null),n.initChildren(null),this.setAdditionalPropertiesDataType(n,i)}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}removeUnrecognizedProperties(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-properties"))){const n=[],s=[],c=[],e=[];let y=[...this.properties];y=y.filter(b=>b.parent.id===this.id),y=y.filter(b=>!b.isExtendedProperty);const m=this.implementedPropertiesFromOriginalParents,v=this.getAllPropertiesImplements();return y.filter(b=>this.interactive&&!b.implements.length?!1:!b.implements.find(V=>!!m.find($=>$.id===V.id)||!!v.find($=>$.id===V.id))).forEach(b=>{const w=b.remove({ignoreUpstream:!1},i);c.push(...w.removed),n.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}removeUnrecognizedMethods(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-methods"))){const n=[],s=[],c=[],e=[];let y=[...this.methods];y=y.filter(v=>v.parent.id===this.id),y=y.filter(v=>!v.isExtendedMethod);const m=this.implementedMethodsFromOriginalParents;return y=y.filter(v=>this.interactive&&!v.implements?!1:!m.find(E=>{var b;return E.id===((b=v.implements)==null?void 0:b.id)})),y.forEach(v=>{const E=v.remove({ignoreUpstream:!1},i);c.push(...E.removed),n.push(...E.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}syncImplementationMethods(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-methods"))){const n=[],s=[],c=[],e=[],y=this.methods,m=this.implementedMethodsFromOriginalParents,v=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...y];return m.filter(b=>!v.find(V=>{var $;return(($=V.implements)==null?void 0:$.id)===b.id})).forEach(b=>{if(this.methods.find(B=>{var j;return((j=B.implements)==null?void 0:j.id)===b.id}))return;const V=this.methods.find(B=>{var ie,ee;if(B.name===b.name&&!B.implements)return!0;const j=Wi(this,Re.CRON_JOB),F=Wi(this,Re.HTTP_ENDPOINT),K=((ie=B.implements)==null?void 0:ie.id)===Q["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,Y=((ee=B.implements)==null?void 0:ee.id)===Q["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(j&&!Y&&!F&&K||F&&!K&&!j&&Y)});if(V&&V.type===d.FunctionDeclaration){V.setImplements(b,i),V.metaSync({name:b.name},i),i==null||i.add(V,H.Updated),i==null||i.add(this,H.Updated);return}const $=b.implementAsFunctionDeclaration(i,this);s.push($),i==null||i.add($,H.Added),this.addMethod($,i)}),this.methods.sort((b,w)=>b.index-w.index).forEach(b=>{b.afterAllChildrenInitialized(i)}),i==null||i.attemptAutoclose("sync-implementation-methods",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}syncImplementationProperties(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-properties"))){const n=[],s=[],c=[],e=[],y=this.properties,m=this.implementedPropertiesFromOriginalParents.filter(E=>!this.allBasePropertiesFromExtendedAndImplementedEntities.find(w=>!!w.implements.find(V=>V.id===E.id))),v=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...y];return m.forEach(E=>{const b=v.find(B=>!!B.implements.find(j=>j.id===E.id));if(b){const{updated:B,added:j,removed:F,affected:K}=b.syncWithImplementation(i);n.push(...B),s.push(...j),c.push(...F),e.push(...K);return}if(this.properties.find(B=>!!B.implements.find(j=>j.id===E.id)))return;const V=this.properties.find(B=>B.name===E.name&&!!B.abstract&&!B.implements);if(V){V.addImplementation(E,i),V.metaSync({abstract:!1},i),V.afterAllChildrenInitialized(i);return}const $=E.implement(this,i,x.UUID.uuid());s.push($),i==null||i.add($,H.Added)}),this.properties.find(E=>{var b;return E.id===((b=this.allPropertiesImplement)==null?void 0:b.id)})&&this.removeAllPropertiesImplement(i),i==null||i.attemptAutoclose("sync-implementation-properties",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addExtendedMethods(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-extended-methods"))){const n=[],s=[],c=[],e=[],y=this.methods,v=this.extendedMethodsFromOriginalParents.filter(b=>b.type===d.FunctionDeclaration),E=new Set(y.filter(b=>{var w;return!!((w=b.extends)!=null&&w.id)}).map(b=>b.extends.id));return v.forEach(b=>{if(E.has(b.id))return;E.add(b.id);const w=b.clone(i,this,x.UUID.uuid());w.setExtends(b,i),w.initChildren(i),s.push(w),i==null||i.add(w,H.Added),this.addMethod(w,i)}),i==null||i.attemptAutoclose("add-extended-methods",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addExtendedProperties(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"add-extended-properties"))){const n=[],s=[],c=[],e=[],y=this.properties,m=this.extendedPropertiesFromOriginalParents,v=m.filter(b=>m.find(V=>!!V.implements.find($=>$.id===b.id))?!1:!b.abstract),E=new Set(y.filter(b=>{var w;return!!((w=b.extends)!=null&&w.id)}).map(b=>b.extends.id));return v.forEach(b=>{if(E.has(b.id))return;E.add(b.id);const w=b.clone(i,this,x.UUID.uuid());w.setExtends(b,i),w.initChildren(i),s.push(w),i==null||i.add(w,H.Added),this.addProperty(w,i)}),[...this.properties].forEach(b=>{if(b.extends)return;if(v.find(V=>V.name===b.name&&V.implements.every($=>!!b.implements.find(B=>B.id===$.id)))){const V=b.remove({ignoreUpstream:!1},i);c.push(...V.removed),n.push(...V.updated)}}),this.properties.forEach(b=>{const w=b.afterAllChildrenInitialized(i);n.push(...w.updated),e.push(...w.affected),s.push(...w.added),c.push(...w.removed)}),i==null||i.attemptAutoclose("add-extended-properties",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSuggestions(){return this.implements.forEach(i=>{GMe(this,i).forEach(c=>{const e=c.toJSON();e.id=`_suggestion--parent--${this.id}--${c.id}`;const y=me(e,this.project);y.suggestion=!0,y.setParent(this,null),y.initChildren(null),this.addSuggestedProperty(y)}),kMe(this,i).forEach(c=>{const e=`_suggestion--parent--${this.id}--${c.id}`,y=c.implementAsFunctionDeclaration(null,this,e),m=me(y,this.project);if(m.suggestion=!0,m.setParent(this,null),m.initChildren(null),this.methods=this.methods.filter(v=>v.id!==e),m.inputs.forEach(v=>{v.suggestion=!0}),m.returnStatements.length){const v=m.returnStatements[0];v.suggestion=!0,v.outputs.forEach(E=>{E.suggestion=!0})}this.addSuggestedMethod(m)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this.project.subscribedDefinitionEntities.add(this.id),this}unsubscribe(){return this.project.unsubscribeInstance(this),this.project.subscribedDefinitionEntities.delete(this.id),this}metaSync(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.name=s.name!==void 0?s.name:e.name,this.codeName=s.codeName!==void 0?s.codeName:e.codeName,this.description=s.description!==void 0?s.description:e.description,this.x=s.x||e.x,this.y=s.y||e.y,this.static=s.static!==void 0?s.static:this.static,this.abstract=s.abstract!==void 0?s.abstract:this.abstract,this.additionalProperties=s.additionalProperties!==void 0?s.additionalProperties:e.additionalProperties,super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await Ii.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await Ii.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await Ii.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await Ii.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await Ii.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await Ii.repository.APILoadVersion(this.id,n,...s)}removeFromParent(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveFromParent))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[removeFromParent] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];if(this.parent.type===d.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===d.DataType&&this.parent.entity&&this.parent.entity.id===this.id){const y=this.parent.setEntity(null,i);n.push(y)}return i==null||i.attemptAutoclose(_.RemoveFromParent,this.id),{added:D(c),updated:D(n),removed:D(s),affected:D(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){var m;if(!this.checkCanDelete(this,n))return J.Logger.warn(`[remove] User is not allowed to delete or edit this ${this.type} entity with id: ${this.id}`),n==null||n.event({id:`${_.RemoveEntity}-${this.id}`,action:_.RemoveEntity,owner:this,errorReason:Ri.ActionOwnerEntityNonDeletable,rootAction:((m=n==null?void 0:n.self)==null?void 0:m.id)===this.id&&(n==null?void 0:n.autoCloseActionName)===_.RemoveEntity}),n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const s=[],c=[],e=[],y=[];if(n!=null&&n.hasRemoved(this.id))return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(c.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},n),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:b,added:w}=v.entity.onDetachedDependencyRemoved(this,v.field,n);s.push(...E),c.push(...b),e.push(...w)}),this.properties.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.methods.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.abstractMethods.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.suggestedProperties.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),this.suggestedMethods.forEach(v=>{const{updated:E,removed:b}=v.remove({ignoreUpstream:!0},n);s.push(...E),c.push(...b)}),!i){const v=this.removeFromParent(n);e.push(...v.added),s.push(...v.updated),c.push(...v.removed),y.push(...v.affected)}return n==null||n.attemptAutoclose(_.RemoveEntity,this.id),{added:D(e),updated:D(s),removed:D(c),affected:D(y),self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){if(!this.checkCanEdit(this,i))return J.Logger.warn(`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this};const n=[],s=[],c=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:m,removed:v,added:E}=y.entity.onDetachedDependencyRestored(this,y.field,i);s.push(...m),c.push(...v),n.push(...E)}),this.properties.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.methods.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.abstractMethods.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.suggestedProperties.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),this.suggestedMethods.forEach(y=>{const{updated:m}=y.restore({},i);s.push(...m)}),i==null||i.attemptAutoclose(_.RestoreEntity,this.id),{added:D(n),updated:D(s),removed:D(c),affected:D(e),self:this})}toFlat(i=new Set){var s;return i.has(this.id)?[]:(i.add(this.id),[this,...((s=this.extends)==null?void 0:s.toFlat(i))||[],...this.implements.flatMap(c=>c.toFlat(i)),...this.properties.flatMap(c=>c.toFlat(i)),...this.methods.flatMap(c=>c.toFlat(i)),...this.abstractMethods.flatMap(c=>c.toFlat(i)),...this.parent.toFlat(i)])}toFlatIds(i=new Set){var s;return i.has(this.id)?[]:(i.add(this.id),[this.id,...((s=this.extends)==null?void 0:s.toFlatIds(i))||[],...this.implements.flatMap(c=>c.toFlatIds(i)),...this.properties.flatMap(c=>c.toFlatIds(i)),...this.methods.flatMap(c=>c.toFlatIds(i)),...this.abstractMethods.flatMap(c=>c.toFlatIds(i)),...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,editable:this.editable,deletable:this.deletable,additionalProperties:this.additionalProperties,name:this.name}}toJSON(i=new Set){var n,s,c;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,additionalProperties:this.additionalProperties,allPropertiesImplement:((n=this.allPropertiesImplement)==null?void 0:n.toJSON(i))||null,additionalPropertiesDataType:((s=this.additionalPropertiesDataType)==null?void 0:s.toJSON(i))||null,properties:this.properties.map(e=>e.toJSON(i)),methods:this.methods.map(e=>e.toJSON(i)),abstractMethods:this.abstractMethods.map(e=>e.toJSON(i)),implements:this.implements.map(e=>e.toJSON(i)),extends:((c=this.extends)==null?void 0:c.toJSON(i))||null,parent:this.parent.toReference()})}toJSONClone(i=ct){var s,c,e,y,m,v,E,b,w,V;let n;return(s=i.seenEntityMaps)!=null&&s.has(this.id)?n=i.seenEntityMaps.get(this.id):(n=i.newId||jr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,n)),(c=i.seenEntities)!=null&&c.has(n)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(n),(m=i.seenEntities)==null||m.add(this.id),{id:n,version:x.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,additionalProperties:this.additionalProperties,allPropertiesImplement:((v=this.allPropertiesImplement)==null?void 0:v.toJSONClone(i))||null,additionalPropertiesDataType:((E=this.additionalPropertiesDataType)==null?void 0:E.toJSONClone(i))||null,properties:this.properties.map($=>$.toJSONClone({...i,newId:null})),methods:this.methods.map($=>$.toJSONClone({...i,newId:null})),abstractMethods:this.abstractMethods.map($=>$.toJSONClone({...i,newId:null})),implements:this.implements.map($=>$.type===d.BuiltInBaseEntity?$.toJSON(i.seenEntities):$.toJSONClone({...i,newId:null})),extends:((b=this.extends)==null?void 0:b.type)===d.BuiltInBaseEntity?(w=this.extends)==null?void 0:w.toJSON(i.seenEntities):(V=this.extends)==null?void 0:V.toJSONClone({...i,newId:null}),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var s,c,e,y;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,editable:this.editable,deletable:this.deletable,x:this.x,y:this.y,static:this.static,abstract:this.abstract,additionalProperties:this.additionalProperties,allPropertiesImplement:((c=this.allPropertiesImplement)==null?void 0:c.toReference(i))||null,additionalPropertiesDataType:((e=this.additionalPropertiesDataType)==null?void 0:e.toReference(i))||null,properties:this.properties.map(m=>m.toReference(i)),methods:this.methods.map(m=>m.toReference(i)),abstractMethods:this.abstractMethods.map(m=>m.toReference(i)),implements:this.implements.map(m=>m.toReference(i)),extends:((y=this.extends)==null?void 0:y.toReference(i))||null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){var s,c,e;return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(y=>y.toFlatJSON(i)),...this.methods.flatMap(y=>y.toFlatJSON(i)),...this.abstractMethods.flatMap(y=>y.toFlatJSON(i)),...this.implements.flatMap(y=>y.toFlatJSON(i)),...((s=this.extends)==null?void 0:s.toFlatJSON(i))||[],...this.parent.toFlatJSON(i),...((c=this.additionalPropertiesDataType)==null?void 0:c.toFlatJSON(i))||[],...((e=this.allPropertiesImplement)==null?void 0:e.toFlatJSON(i))||[]])}toGenerationTarget(){var n;const i=this.parent.type===d.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:(n=this.extends)==null?void 0:n.id,additionalProperties:this.additionalProperties,implements:this.implements.map(s=>s.id),parent:i}}toFlatGenerationTarget(i=new Set){var s,c,e;return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(y=>y.toFlatGenerationTarget(i)),...this.methods.flatMap(y=>y.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(y=>y.toFlatGenerationTarget(i)),...this.implements.filter(y=>y.type===d.DefinitionEntity).flatMap(y=>y.toFlatGenerationTarget(i)),...((s=this.extends)==null?void 0:s.toFlatGenerationTarget(i))||[],...this.parent.toFlatGenerationTarget(i),...((c=this.additionalPropertiesDataType)==null?void 0:c.toFlatGenerationTarget(i))||[],...((e=this.allPropertiesImplement)==null?void 0:e.toFlatGenerationTarget(i))||[]])}clearErrors(){var i,n;return this.errors=[],this.properties.forEach(s=>s.clearErrors()),this.methods.forEach(s=>s.clearErrors()),this.abstractMethods.forEach(s=>s.clearErrors()),(i=this.additionalPropertiesDataType)==null||i.clearErrors(),(n=this.allPropertiesImplement)==null||n.clearErrors(),this}validate(){return this.errors=MMe(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await BMe(this,{tracker:n}),{success:!0}}getErrors(){var n,s;return[...this.errors,...this.properties.flatMap(c=>c.getErrors()),...this.methods.flatMap(c=>c.getErrors()),...this.abstractMethods.flatMap(c=>c.getErrors()),...((n=this.additionalPropertiesDataType)==null?void 0:n.getErrors())||[],...((s=this.allPropertiesImplement)==null?void 0:s.getErrors())||[]]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.properties)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.methods)s.push(...await c.getErrorsAsync({tracker:n}));for(const c of this.abstractMethods)s.push(...await c.getErrorsAsync({tracker:n}));return this.additionalPropertiesDataType&&s.push(...await this.additionalPropertiesDataType.getErrorsAsync({tracker:n})),this.allPropertiesImplement&&s.push(...await this.allPropertiesImplement.getErrorsAsync({tracker:n})),s}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.CloneEntity)),n=null,s=null,c=!0){var j,F,K;const e=Ir(n,this),y=this.toJSON(),m=s||x.UUID.uuid(),v=n||this.parent;y.properties=[],y.methods=[],y.abstractMethods=[];const E=m.split("-id"),b=E[E.length-1||0]||m;y.id=m,y.version=x.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1,y.editable=!0,y.deletable=!0,y.parent=v.toReference();const w=Si(y,e);w.hydrateAncestors(),w.setParent(v,i),c&&(w.subscribe(),w.addSelfToProject(i)),w.initChildren(i),i==null||i.add(w,H.Added);const V=(j=this.properties)==null?void 0:j.map(Y=>this.project.diggestedBuiltInBaseEntitiesIds.has(Y.id)?e.getBuiltIn(Y.id):Y.clone(i,w,x.UUID.uuid(),c));w.properties=V;const $=(F=this.methods)==null?void 0:F.map((Y,ie)=>this.project.diggestedBuiltInBaseEntitiesIds.has(Y.id)?e.getBuiltIn(Y.id):Y.clone(i,w,b+"-method-"+ie+"-id",c));w.methods=$;const B=(K=this.abstractMethods)==null?void 0:K.map((Y,ie)=>this.project.diggestedBuiltInBaseEntitiesIds.has(Y.id)?e.getBuiltIn(Y.id):Y.clone(i,w,b+"-abstract-method-"+ie+"-id",c));if(w.abstractMethods=B,this.additionalPropertiesDataType)if(this.project.diggestedBuiltInBaseEntitiesIds.has(this.additionalPropertiesDataType.id))w.setAdditionalPropertiesDataType(this.project.getBuiltIn(this.additionalPropertiesDataType.id),i);else{const Y=this.additionalPropertiesDataType.clone(i,w,x.UUID.uuid(),c);w.setAdditionalPropertiesDataType(Y,i)}if(this.allPropertiesImplement)if(this.project.diggestedBuiltInBaseEntitiesIds.has(this.allPropertiesImplement.id))w.setAllPropertiesImplement(this.project.getBuiltIn(this.allPropertiesImplement.id),i);else{const Y=this.allPropertiesImplement.clone(i,w,x.UUID.uuid(),c);w.setAllPropertiesImplement(Y,i)}return i==null||i.attemptAutoclose(_.CloneEntity,this.id),w}getFunctionDeclaration(i){return this.methods.find(n=>n.id===i)}implement(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"implement-definition-entity")),s){const c=qI(this,i,n,s);return n==null||n.attemptAutoclose("implement-definition-entity",this.id),c}getAllPropertiesImplements(){var n;const i=[];return this.allPropertiesImplement&&i.push(this.allPropertiesImplement),i.push(...((n=this.extends)==null?void 0:n.getAllPropertiesImplements())||[],...this.implements.flatMap(s=>s.getAllPropertiesImplements())),i}getAllInteractiveMethods(){var e;const i=this.implements.filter(y=>y.type===d.DefinitionEntity||y.type===d.BuiltInBaseEntity&&y.interactive),n=((e=this.extends)==null?void 0:e.getAllInteractiveMethods())||[],s=i.flatMap(y=>y.getAllInteractiveMethods());return D([...this.methods,...n,...s])}inferFromInputs(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const s=[],c=[],e=[],y=[];if(this.parent.type!==d.DataType||!this.parent.inferred)return n==null||n.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const m=[];i.forEach(b=>{m.find(V=>le(V,this.project)===le(b,this.project))||m.push(b)});const v=this.properties.filter(b=>!b.dataType);m.forEach(b=>{var K,Y,ie;const w=v.find(ee=>le(ee,this.project)===le(b,this.project));if(!w)return;const $=Hn(b.parent).getMasterInputWithValueWritterFromAllInstances(b),B=Td($,n),j=B==null?void 0:B.clone(n,w,x.UUID.uuid(),!0);j&&((K=w.dataType)==null||K.merge(j,n),j.id!==((Y=w.dataType)==null?void 0:Y.id)&&j.remove({ignoreUpstream:!1},n),w.dataType&&(w.dataType.metaSync({inferred:!0,like:!0},n),w.setDataType(w.dataType,n),n==null||n.add(w,H.Affected)));let F=null;if(b.declaration&&w.id!==((ie=b.declaration)==null?void 0:ie.id)&&(F=b.declaration),b.setDeclaration(w,n),n==null||n.add(b,H.Updated),F){const{updated:ee,removed:de}=F.remove({ignoreUpstream:!1},n);c.push(...ee),e.push(...de)}});const E=[];return m.forEach(b=>{if(!b.declaration){E.push(b);return}}),E.length===0?(n==null||n.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(E.forEach(b=>{var ie,ee,de,ae;const w=this.properties.find(fe=>le(fe,this.project)===le(b,this.project));if(w){if(b.setDeclaration(w,n),!w.getDataType(n)){const ve=Hn(b.parent).getMasterInputWithValueWritterFromAllInstances(b),ue=Td(ve),ye=ue==null?void 0:ue.clone(n,w,x.UUID.uuid(),!0);ye&&((ie=w.dataType)==null||ie.merge(ye,n),ye.id!==((ee=w.dataType)==null?void 0:ee.id)&&ye.remove({ignoreUpstream:!1},n),w.dataType&&(w.dataType.metaSync({inferred:!0,like:!0},n),w.setDataType(w.dataType,n),n==null||n.add(w,H.Affected)))}return}const V=le(b,this.project),$=b.codeName||Ic(b,this.project)||wo(Hi(V)),B=ja.new(n);B.parent=this.toReference(),B.index=b.index,B.name=V,B.codeName=$,B.description=b.description;const j=me(B,this.project);j.hydrateAncestors(),n==null||n.add(j,H.Added),j.setParent(this,n),j.initChildren(n);const K=Hn(b.parent).getMasterInputWithValueWritterFromAllInstances(b),Y=Td(K);if(Y)if(this.project.diggestedBuiltInBaseEntitiesIds.has(Y.id))j.setDataType(Y,n),n==null||n.add(j,H.Affected);else{const fe=Y==null?void 0:Y.clone(n,j,x.UUID.uuid(),!0);fe&&((de=j.dataType)==null||de.merge(fe,n),fe.id!==((ae=j.dataType)==null?void 0:ae.id)&&fe.remove({ignoreUpstream:!1},n),j.dataType&&(j.dataType.metaSync({inferred:!0,like:!0},n),j.setDataType(j.dataType,n),n==null||n.add(j,H.Affected)))}return this.addProperty(j,n),b.setDeclaration(j,n),n==null||n.add(b,H.Updated),j}),n==null||n.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:D(s),updated:D(c),removed:D(e),affected:D(y),self:this})}getRawDefaultValue(){const i={};return this.properties.forEach(n=>{var e;if(!$A(n))return;const s=le(n,this.project),c=n.codeName||Ic(n,this.project)||wo(Hi(s));i[c]=((e=n.getDefaultValue())==null?void 0:e.value)||null}),i}getActiveRawDefaultValue(){const i={};return this.properties.forEach(n=>{var y;if(!$A(n))return;const s=le(n,this.project),c=n.codeName||Ic(n,this.project)||wo(Hi(s)),e=(y=this.project.requestActiveDynamicValue(n,!0))==null?void 0:y.value;i[c]=(e==null?void 0:e.value)||null}),i}setAdditionalPropertiesDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetAdditionalPropertiesDataType))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setAdditionalPropertiesDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetAdditionalPropertiesDataType,this.id),this;const s=this.additionalPropertiesDataType;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.additionalPropertiesDataType=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetAdditionalPropertiesDataType,this.id),this}removeAdditionalPropertiesDataType(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveAllPropertiesImplement))){return this.checkCanEdit(this,i)?(this.additionalPropertiesDataType&&(this.additionalPropertiesDataType.remove({ignoreUpstream:!0},i),i==null||i.add(this,H.Affected),this.additionalPropertiesDataType=null),i==null||i.attemptAutoclose(_.RemoveAllPropertiesImplement,this.id),this):(J.Logger.warn(`[removeAdditionalPropertiesDataType] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveAllPropertiesImplement,this.id),this)}setAllPropertiesImplement(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.SetAllPropertiesImplement))){if(!this.checkCanEdit(this,n))return J.Logger.warn(`[setAllPropertiesImplement] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.SetAllPropertiesImplement,this.id),this;const s=this.allPropertiesImplement;return(s==null?void 0:s.id)!==(i==null?void 0:i.id)&&(s==null||s.remove({ignoreUpstream:!0},n),this.allPropertiesImplement=i,this.subscribeToDependencies(),n==null||n.add(this,H.Affected)),n==null||n.attemptAutoclose(_.SetAllPropertiesImplement,this.id),this}removeAllPropertiesImplement(i=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,_.RemoveAllPropertiesImplement))){return this.checkCanEdit(this,i)?(this.allPropertiesImplement&&(this.properties.find(n=>{var s;return n.id===((s=this.allPropertiesImplement)==null?void 0:s.id)})||this.allPropertiesImplement.remove({ignoreUpstream:!0},i),i==null||i.add(this,H.Affected),this.allPropertiesImplement=null),i==null||i.attemptAutoclose(_.RemoveAllPropertiesImplement,this.id),this):(J.Logger.warn(`[removeAllPropertiesImplement] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),i==null||i.attemptAutoclose(_.RemoveAllPropertiesImplement,this.id),this)}};I(Ii,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(Ii,"type",d.DefinitionEntity),I(Ii,"USER_MANAGED_PARENT_TYPES",[d.Project,d.DataType]),I(Ii,"PARENT_TYPES",[...Ii.USER_MANAGED_PARENT_TYPES]),I(Ii,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","static","abstract","additionalProperties"]),I(Ii,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),I(Ii,"BASE_PROPERTIES",[...Ii.MUTABLE_BASE_PROPERTIES,...Ii.INMUTABLE_BASE_PROPERTIES]),I(Ii,"MUTABLE_META_PROPERTIES",[...Ii.MUTABLE_BASE_PROPERTIES,"x","y"]),I(Ii,"INMUTABLE_META_PROPERTIES",[...Ii.INMUTABLE_BASE_PROPERTIES]),I(Ii,"META_PROPERTIES",[...Ii.MUTABLE_META_PROPERTIES,...Ii.INMUTABLE_META_PROPERTIES]),I(Ii,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),I(Ii,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),I(Ii,"UPSTREAM_PROPERTIES",[...Ii.MUTABLE_UPSTREAM_PROPERTIES,...Ii.INMUTABLE_UPSTREAM_PROPERTIES]),I(Ii,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods","allPropertiesImplement","additionalPropertiesDataType"]),I(Ii,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(Ii,"DOWNSTREAM_PROPERTIES",[...Ii.MUTABLE_DOWNSTREAM_PROPERTIES,...Ii.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(Ii,"PROPERTIES",[...Ii.META_PROPERTIES,...Ii.UPSTREAM_PROPERTIES,...Ii.DOWNSTREAM_PROPERTIES]);let us=Ii;async function p1i(o,p={}){const i=J.YieldTracker.from(p),n=[],s=Lt(o.errors,n);return await i.tick(),s}function c1i(o){const p=[];return Lt(o.errors,p)}const GA=class GA extends BP{constructor(i,n){super(i);I(this,"initialData");I(this,"id");I(this,"name");I(this,"description",null);I(this,"type",d.PrimitiveEntity);I(this,"static");I(this,"abstract");I(this,"properties",[]);I(this,"methods",[]);I(this,"abstractMethods",[]);I(this,"extends",null);I(this,"errors",[]);I(this,"project");this.initialData=i,this.project=n,this.id=i.id,this.name=i.name,this.static=i.static,this.abstract=i.abstract,this.properties=this.initialData.properties.map(s=>{const c=me(s,this.project);return c.setParent(this,null),c.initChildren(null),c}),this.methods=this.initialData.methods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.abstractMethods=this.initialData.abstractMethods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.initialData.extends&&(this.extends=me(this.initialData.extends,this.project))}get allMethods(){return D([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return D([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){var s;const i=((s=this.extends)==null?void 0:s.allMethods)||[],n=[...i].filter(c=>!i.some(e=>e.id!==c.id));return D(n)}get allBasePropertiesFromOriginalParents(){var s;const i=((s=this.extends)==null?void 0:s.allProperties)||[],n=[...i].filter(c=>!i.some(e=>{var y;return e.id!==c.id&&(e.implements.find(m=>m.id===c.id)||((y=e.extends)==null?void 0:y.id)===c.id)}));return D(n)}get allBasePropertiesFromExtendedAndImplementedEntities(){var s,c;const i=[...((s=this.extends)==null?void 0:s.ownDeclaredProperties)||[],...((c=this.extends)==null?void 0:c.allBasePropertiesFromExtendedAndImplementedEntities)||[]].filter(e=>!e.abstract),n=[...i].filter(e=>!i.some(y=>{var m;return y.id!==e.id&&(y.implements.find(v=>v.id===e.id)||((m=y.extends)==null?void 0:m.id)===e.id)}));return D(n)}get extendedPropertiesFromOriginalParents(){var s,c;const i=[...((s=this.extends)==null?void 0:s.ownDeclaredProperties)||[],...((c=this.extends)==null?void 0:c.extendedPropertiesFromOriginalParents)||[]].filter(e=>!e.abstract),n=[...i].filter(e=>!i.some(y=>{var m;return y.id!==e.id&&(y.implements.find(v=>v.id===e.id)||((m=y.extends)==null?void 0:m.id)===e.id)}));return D(n)}get implementedPropertiesFromOriginalParents(){return D([...(this.extends?[this.extends]:[]).reduce((i,n)=>{const s=n.implementedPropertiesFromOriginalParents,c=[...n.ownDeclaredProperties].filter(m=>!!m.abstract),e=[...s,...c,...i];return[...e].filter(m=>!!!e.find(E=>{var b;return((b=E.extends)==null?void 0:b.id)===m.id||E.implements.find(w=>w.id===m.id)}))},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return[...this.methods]}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeBuiltInInstance(this),this}unsubscribe(){return this.project.unsubscribeBuiltInInstance(this),this}async APILoad(i=ke,...n){return await GA.repository.APILoad(this.id,...n),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(s=>s.toFlat(i)),...this.methods.flatMap(s=>s.toFlat(i)),...this.abstractMethods.flatMap(s=>s.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(s=>s.toFlatIds(i)),...this.methods.flatMap(s=>s.toFlatIds(i)),...this.abstractMethods.flatMap(s=>s.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(i=new Set){var n;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(s=>s.toJSON(i)),methods:this.methods.map(s=>s.toJSON(i)),abstractMethods:this.abstractMethods.map(s=>s.toJSON(i)),extends:((n=this.extends)==null?void 0:n.toJSON(i))||null})}toReference(i=ct){return{id:this.id+"--"+x.UUID.uuid()+"--ref",type:d.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var n;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(s=>s.toReference()),methods:this.methods.map(s=>s.toReference()),abstractMethods:this.abstractMethods.map(s=>s.toReference()),extends:((n=this.extends)==null?void 0:n.toReference())||null}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(s=>s.toFlatJSON(i)),...this.methods.flatMap(s=>s.toFlatJSON(i)),...this.abstractMethods.flatMap(s=>s.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:(i=this.extends)==null?void 0:i.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(s=>s.toFlatGenerationTarget(i)),...this.methods.flatMap(s=>s.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(s=>s.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){return this.errors=c1i(this),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return this.errors=await p1i(this,{tracker:n}),{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(n=>n.getErrors()),...this.methods.flatMap(n=>n.getErrors()),...this.abstractMethods.flatMap(n=>n.getErrors())]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(const c of this.properties){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}for(const c of this.methods){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}for(const c of this.abstractMethods){const e=await c.getErrorsAsync({tracker:n});s.push(...e)}return s}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const i=[];return i.push(...this.methods),!this.extends||this.extends.type===d.BuiltInBaseEntity&&this.extends.interactive||this.extends.type===d.PrimitiveEntity?i:(this.extends instanceof No&&i.push(...this.extends.getAllInteractiveMethods()),D(i))}};I(GA,"repository",{APILoad:async(i,...n)=>null});let ma=GA;function Si(o,p){if(!o)throw new Error("Entity is null");const i=p.get(o.id);switch(o.type){case d.LiteralValue:return i||new Yr(o,p);case d.DefinitionEntity:return i||new us(o,p);case d.PrimitiveEntity:return i||new ma(o,p);case d.FunctionDeclaration:return i||new Po(o,p);case d.GlobalEvent:return i||new $u(o,p);case d.DataType:return i||new dr(o,p);case d.Property:return i||new ja(o,p);case d.FunctionCall:return i||new Nu(o,p);case d.Condition:return i||new Bu(o,p);case d.Operation:return i||new xu(o,p);case d.VariableDeclaration:return i||new Gu(o,p);case d.VariableInstance:return i||new Mu(o,p);case d.OutputMap:return i||new Rl(o,p);case d.ArgumentDeclaration:return i||new ba(o,p);case d.InputMap:return i||new ds(o,p);case d.Project:return i||new x(o);case d.InstalledProject:return i||new ju(o,p);case d.ActionDescriptor:return i||new Bi(o,p);case d.ReturnStatement:return i||new Ad(o,p);case d.Loop:return i||new Lu(o,p);case d.Search:return i||new ku(o,p);case d.ValueDescriptor:return i||new Id(o,p);case d.BuiltInBaseEntity:return i||new No(o,p);case d.InternalCall:return i||new Uu(o,p);case d.ContinueStatement:return i||new Fu(o,p);case d.BreakStatement:return i||new Ku(o,p);case d.GenericReference:return p.get(o.entityId);default:throw new Error("Invalid entity type: "+o.type)}}function me(o,p){if(!o)throw new Error("Entity is null");const i=Si(o,p);return i.subscribe(),i}function f1i(o,p){if(!o)throw new Error("Entity is null");switch(o.type){case d.LiteralValue:return Yr.fromGenerationTarget(o,p);case d.DefinitionEntity:return us.fromGenerationTarget(o,p);case d.FunctionDeclaration:return Po.fromGenerationTarget(o,p);case d.GlobalEvent:return $u.fromGenerationTarget(o,p);case d.DataType:return dr.fromGenerationTarget(o,p);case d.Property:return ja.fromGenerationTarget(o,p);case d.FunctionCall:return Nu.fromGenerationTarget(o,p);case d.Condition:return Bu.fromGenerationTarget(o,p);case d.Operation:return xu.fromGenerationTarget(o,p);case d.VariableDeclaration:return Gu.fromGenerationTarget(o,p);case d.VariableInstance:return Mu.fromGenerationTarget(o,p);case d.OutputMap:return Rl.fromGenerationTarget(o,p);case d.ArgumentDeclaration:return ba.fromGenerationTarget(o,p);case d.InputMap:return ds.fromGenerationTarget(o,p);case d.InstalledProject:return ju.fromGenerationTarget(o,p);case d.ReturnStatement:return Ad.fromGenerationTarget(o,p);case d.Loop:return Lu.fromGenerationTarget(o,p);case d.Search:return ku.fromGenerationTarget(o,p);case d.ActionDescriptor:return Bi.fromGenerationTarget(o,p);case d.ValueDescriptor:return Id.fromGenerationTarget(o,p);case d.InternalCall:return Uu.fromGenerationTarget(o,p);case d.ContinueStatement:return Fu.fromGenerationTarget(o,p);case d.BreakStatement:return Ku.fromGenerationTarget(o,p);default:throw new Error("Invalid entity type: "+o.type)}}const ct={seenEntityMaps:new Map,seenEntities:new Set,timestamp:L().toISOString()};class SMe{constructor(){I(this,"initialData")}}const ke={cascade:!1},qMe={APILoad:async(o,...p)=>null},y1i={APICreate:async(o,...p)=>o,APIUpdate:async(o,...p)=>o,APIDelete:async(o,...p)=>o,APIClone:async(o,...p)=>{},APILoadVersion:async(o,p,...i)=>null,...qMe};class h1i{}class ZMe extends SMe{}class m1i extends ZMe{}class T1i{}class v1i{}class E1i{}class ex{}class b1i extends ex{}class A1i extends ex{}class g1i{}class of{static initReadsValue(p){if(p.initialData.readsValue&&p.initialData.readsValue.type!==d.GenericReference)p.readsValue=me(p.initialData.readsValue,p.project);else if(p.initialData.readsValue&&p.initialData.readsValue.type===d.GenericReference){const i=ia(p.initialData.readsValue,p.project);i&&(p.readsValue=i)}if(p.readsValue){if(Gt.includes(p.readsValue.type)){let i=p.parent;!nr.includes(i.type)&&i.type!==d.Project&&(i=i.parent);const n=p.type===d.InputMap&&p.parent.type===d.Loop;n&&(i=p.parent.parent),p.readsValue.setParent(i,null),p.readsValue.initChildren(null),i&&i.type!==d.Project&&!n&&i.detachedChildren.includes(p)?i.replaceDetachedChild(p,p.readsValue):i&&i.type!==d.Project&&!n&&i.subscribeDetachedChild(p.readsValue)}p.readsValue.addValueReader(p,null)}return p.readsValue}}class Pv{static initWritesValues(p,i){const n=p.initialData.writesValues.reduce((c,e)=>{if(e.type===d.GenericReference||p.writesValues.some(m=>m.id===e.id))return c;const y=me(e,p.project);return y.setValueWriter(p,null),Gt.includes(y.type)&&(y.setParent(i,null),y.initChildren(null)),[...c,y]},[]),s=[...p.writesValues];return p.writesValues=D([...s,...n]),p.writesValues}}class I1i{}var zt=(o=>(o.PROJECT_INITIALIZED="project-initialized",o.BEFORE_CHANGE_SET_CLOSE_BEFORE_SIDE_EFFECTS="before-change-set-close-before-side-effects",o.BEFORE_CHANGE_SET_CLOSE_AFTER_SIDE_EFFECTS="before-change-set-close-after-side-effects",o.CHANGE_SET_CLOSED_BEFORE_PERSIST="change-set-closed-before-persist",o.CHANGE_SET_PERSISTED="change-set-persisted",o.BEFORE_CHANGE_SET_PERSIST="before-change-set-persist",o.EXPLICIT_DEFINITION_ENTITY_ADDED="explicit-definition-entity-added",o.EXPLICIT_DEFINITION_ENTITY_REMOVED="explicit-definition-entity-removed",o.EXPLICIT_DEFINITION_ENTITY_UPDATED="explicit-definition-entity-updated",o.PERSISTED_DEFINITION_ENTITY_ADDED="persisted-definition-entity-added",o.PERSISTED_DEFINITION_ENTITY_REMOVED="persisted-definition-entity-removed",o.PERSISTED_DEFINITION_ENTITY_UPDATED="persisted-definition-entity-updated",o.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED="relational-database-definition-entity-added",o.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED="relational-database-definition-entity-removed",o.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED="relational-database-definition-entity-updated",o))(zt||{});const tx={...fN,events:new J.Events("def-proj-static-p-ctx-events")},HMe={requestActiveDynamicValue:(o,p=!1)=>null,...tx},Ct=class Ct extends Ur{constructor(i,n={...HMe,events:new J.Events("def-proj-inst-p-ctx-events")}){super(i);I(this,"initialData");I(this,"id");I(this,"type",d.Project);I(this,"name",null);I(this,"description",null);I(this,"x");I(this,"y");I(this,"entities",[]);I(this,"projects",[]);I(this,"functions",[]);I(this,"events",[]);I(this,"variableDeclarations",[]);I(this,"variableInstances",[]);I(this,"conditions",[]);I(this,"operations",[]);I(this,"functionCalls",[]);I(this,"loops",[]);I(this,"searches",[]);I(this,"primitives",[]);I(this,"builtInBaseEntities",[]);I(this,"operationDeclarations",[]);I(this,"globalEventActionDescriptors",[]);I(this,"loopDeclarations",[]);I(this,"loopDeclarationsBodies",[]);I(this,"conditionDeclarations",[]);I(this,"valueDescriptors",[]);I(this,"dataTypes",[]);I(this,"project");I(this,"instances",{});I(this,"builtInInstances",{});I(this,"deletedInstances",{});I(this,"subscribedDefinitionEntities",new Set);I(this,"errors",[]);I(this,"references",[]);I(this,"history",[]);I(this,"undoableStackValueIndex",-1);I(this,"detachedDependents",{});I(this,"knownVersions",null);I(this,"activeVersion",!1);I(this,"initialized",!1);I(this,"startedInitialization",!1);I(this,"diggestedBuiltInBaseEntitiesIds",new Set);I(this,"rejectParallelCS",!1);I(this,"onPersistChangeSetSequentiallyCallback",null);I(this,"onPersistChangeSetInParallelCallback",null);I(this,"onAddChangeSetCallback",null);I(this,"onDiscardChangeSetCallback",null);if(this.parentContext=n,this.initialData=i,this.id=i.id,this.name=i.name,this.description=i.description,this.x=0,this.y=0,this.instances[this.id]=this,!Ct.UUID)throw new Error("UUID module is already initialized. Please inject a valid UUID module.")}static get UUID(){var i;return(i=this.parentContext.requestExtension("uuid"))==null?void 0:i.module}static new(i=null){return{id:Ct.UUID.uuid(),version:Ct.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||Ct.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(i,n){let s=JSON.parse(JSON.stringify(i));const c=[];return c.push(...xr(s)),{errors:c,modifiedData:s}}get off(){return this.parentContext.events.off}get on(){return this.parentContext.events.on}get emit(){return this.parentContext.events.emit}get emitAsync(){return this.parentContext.events.emitAsync}get emitAsyncAll(){return this.parentContext.events.emitAsyncAll}get emitAsyncAllSettled(){return this.parentContext.events.emitAsyncAllSettled}get emitAsyncSequentially(){return this.parentContext.events.emitAsyncSequentially}get emitAsyncSequentiallyAll(){return this.parentContext.events.emitAsyncSequentiallyAll}get emitAsyncSequentiallyAllSettled(){return this.parentContext.events.emitAsyncSequentiallyAllSettled}async closePersistChangeSetsSequentially(){J.Logger.log("[ProjectState.closePersistChangeSetsSequentially] called");const i=this.history.find(n=>n.dirty&&!n.open&&!n.submitting);i&&(J.Logger.log(`[ProjectState.closePersistChangeSetsSequentially] closing pending change-set ${i.id} - ${i.autoCloseActionName}`),await this.persistChangeSetSequentially(i))}async onPersistChangeSetSequentially(i){this.onPersistChangeSetSequentiallyCallback=i,J.Logger.log("[ProjectState.onPersistChangeSetSequentially] onPersistChangeSetSequentiallyCallback has been set. Checking for pending change-sets."),await this.closePersistChangeSetsSequentially()}offPersistChangeSetSequentially(){this.onPersistChangeSetSequentiallyCallback=null}async onPersistChangeSetInParallel(i){this.onPersistChangeSetInParallelCallback=i,J.Logger.log("[ProjectState.onPersistChangeSetInParallel] onPersistChangeSetInParallelCallback has been set. Checking for pending change-sets.");for(const n of this.history)this.persistChangeSetInParallel(n),await new Promise(s=>setTimeout(s,27))}offPersistChangeSetInParallel(){this.onPersistChangeSetInParallelCallback=null}onAddChangeSet(i){this.onAddChangeSetCallback=i}offAddChangeSet(){this.onAddChangeSetCallback=null}onDiscardChangeSet(i){this.onDiscardChangeSetCallback=i}offDiscardChangeSet(){this.onDiscardChangeSetCallback=null}async persistChangeSetSequentially(i){if(J.Logger.log(`[ProjectState.persistChangeSetSequentially] called for change-set ${i.id} - ${i.autoCloseActionName}`),!i.dirty||i.open||i.submitting){J.Logger.log(`[ProjectState.persistChangeSetSequentially] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`);return}const n=this.history.findIndex(e=>e.id===i.id),s=this.history.slice(0,n),c=s[s.length-1];if(c!=null&&c.dirty){J.Logger.log(`[ProjectState.persistChangeSetSequentially] lastBeforeSelf is dirty: ${c.id} - ${c.autoCloseActionName}, closing it first.`);return}this.onPersistChangeSetSequentiallyCallback&&(J.Logger.log(`[ProjectState.persistChangeSetSequentially] invoking onPersistChangeSetSequentiallyCallback for change-set ${i.id} - ${i.autoCloseActionName}`),this.emit("before-change-set-persist",i),i.submitting=!0,(await this.onPersistChangeSetSequentiallyCallback(i)).success&&(i.dirty=!1,this.emit("change-set-persisted",i),J.Logger.log(`[ProjectState.persistChangeSetSequentially] change-set ${i.id} - ${i.autoCloseActionName} closed successfully, checking for pending change-sets to close.`),this.closePersistChangeSetsSequentially()))}async persistChangeSetInParallel(i){if(J.Logger.log(`[ProjectState.persistChangeSetInParallel] called for change-set ${i.id} - ${i.autoCloseActionName}`),!i.dirty||i.open||i.submitting){J.Logger.log(`[ProjectState.persistChangeSetInParallel] change-set ${i.id} - ${i.autoCloseActionName} is not dirty, or is open, or is already being submitted, skipping.`);return}this.onPersistChangeSetInParallelCallback&&(J.Logger.log(`[ProjectState.persistChangeSetInParallel] invoking onPersistChangeSetInParallelCallback for change-set ${i.id} - ${i.autoCloseActionName}`),this.emit("before-change-set-persist",i),i.submitting=!0,(await this.onPersistChangeSetInParallelCallback(i)).success&&(i.dirty=!1,this.emit("change-set-persisted",i)))}toLatestChangeSet(i,n,s,c=!1,e="here-this"){if(!this.history.length)return new Z(this,i,n,s,c,e);const y=this.history[this.history.length-1];return y.open?y:this.addChangeSet(new Z(this,i,n,s,c,e))}addChangeSet(i){var s,c;if(!this.history.length)return this.undoableStackValueIndex=zO(this.undoableStackValueIndex,this.history,i),(s=this.onAddChangeSetCallback)==null||s.call(this,i,this.undoableStackValueIndex),i;const n=this.history.find(e=>e.id===(i==null?void 0:i.id));if(n)return n;if(this.rejectParallelCS){const e=this.history.find(y=>y.open);if(e)throw J.Logger.warn("Previous still open: ",e),J.Logger.warn("New change set: ",i),new Error(`There is already an open change-set with id '${e.id}'${e.autoCloseActionName?` auto-close: ${e.autoCloseActionName}`:""}${e.self?` root: ${e.self.type} ${le(e.self,this)}`:""}.`)}return this.undoableStackValueIndex=zO(this.undoableStackValueIndex,this.history,i),(c=this.onAddChangeSetCallback)==null||c.call(this,i,this.undoableStackValueIndex),i}discardChangeSet(i){var s;J.Logger.log(`[ProjectState.discardChangeSet] called for change-set ${i.id} - ${i.autoCloseActionName}`);const n=this.history.findIndex(c=>c.id===(i==null?void 0:i.id));return n!==-1&&(this.history.splice(n,1),J.Logger.log(`[ProjectState.discardChangeSet] Removed change-set ${i.id} - ${i.autoCloseActionName} from history.`),this.undoableStackValueIndex=this.undoableStackValueIndex-1,(s=this.onDiscardChangeSetCallback)==null||s.call(this,i),i==null||i.teardown()),this}validateGeneratedUpdate(i){return{errors:[],modifiedData:i}}subscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]||(this.detachedDependents[n.entity.id]=n)}),this}unsubscribeDependents(i){return i.forEach(n=>{this.detachedDependents[n.entity.id]&&delete this.detachedDependents[n.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const n=[],s=[],c=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const m=y.entity.afterAllChildrenInitialized(i);n.push(...m.updated),s.push(...m.added),c.push(...m.removed),e.push(...m.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}onDetachedDependencyRemoved(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}onDetachedDependencyRestored(i,n,s){const c=[],e=[],y=[],m=[];return{updated:D(c),added:D(e),removed:D(y),affected:D(m),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=Ct.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var n;const i=((n=this.knownVersions)==null?void 0:n.get(this.version))||new Ct(this);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.entities=[...this.entities],i.projects=[...this.projects],i.functions=[...this.functions],i.events=[...this.events],i.variableDeclarations=[...this.variableDeclarations],i.variableInstances=[...this.variableInstances],i.conditions=[...this.conditions],i.operations=[...this.operations],i.functionCalls=[...this.functionCalls],i.loops=[...this.loops],i.searches=[...this.searches],this}recursiveCaptureUpstreamVersions(i){const n=[],s=[],c=[],e=[];return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}async restoreVersion(i){var m;const n=[],s=[],c=[],e=[];if(this.version===i)return{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this};if(!this.knownVersions){const v=new Map;for(const[E,b]of this.knownVersions||new Map){if(v.set(E,b),b.activeVersion=!1,b.knownVersions)for(const[w,V]of b.knownVersions)v.set(w,V);b.knownVersions=null}}let y=(m=this.knownVersions)==null?void 0:m.get(i);if(!y){const v=await this.APILoadVersion({},i);if(!v)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Ct(v)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.entities=y.entities,this.projects=y.projects,this.functions=y.functions,this.events=y.events,this.variableDeclarations=y.variableDeclarations,this.variableInstances=y.variableInstances,this.conditions=y.conditions,this.operations=y.operations,this.functionCalls=y.functionCalls,this.loops=y.loops,this.searches=y.searches,{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}updateWithShallowTransfer(i,n=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,_.UpdateWithShallowTransfer))){return this.checkCanEdit(this,n)?(this.metaSync(i,n),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.captureVersion(),this.subscribeToDependencies(),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this):(J.Logger.warn(`[updateWithShallowTransfer] User is not allowed to edit this ${this.type} entity with id: ${this.id}`),n==null||n.attemptAutoclose(_.UpdateWithShallowTransfer,this.id),this)}hydrateAncestors(){const i=[],n=[],s=[],c=[];return{updated:D(i),added:D(n),removed:D(s),affected:D(c),self:this}}afterAllChildrenInitialized(i=null){const n=[],s=[],c=[],e=[];return this.initialized||(this.initialized=!0,this.emit("project-initialized",this,i)),this.validate(),this.captureVersion(),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}addSelfToProject(i){const n=[],s=[],c=[],e=[];return this.subscribe(),this.subscribeToDependencies(),{updated:D(n),added:D(s),removed:D(c),affected:D(e),self:this}}get instancesList(){return Object.values(this.instances)}get builtInInstancesList(){return Object.values(this.builtInInstances)}isOperationDeclaration(i){return this.operationDeclarations.includes(i)}isGlobalEventActionDescriptor(i){return this.globalEventActionDescriptors.includes(i)}isLoopDeclaration(i){return this.loopDeclarations.includes(i)}isConditionDeclaration(i){return this.conditionDeclarations.includes(i)}initChildren(i=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.projects=this.initialData.projects.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.variableDeclarations=this.initialData.variableDeclarations.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.variableInstances=this.initialData.variableInstances.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.conditions=this.initialData.conditions.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.operations=this.initialData.operations.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.functions=this.initialData.functions.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.events=this.initialData.events.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.functionCalls=this.initialData.functionCalls.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.loops=this.initialData.loops.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.searches=this.initialData.searches.map(n=>{const s=me(n,this);return s.setParent(this,null),s.initChildren(i),s}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribeInstance(i){return(!this.instances[i.id]||this.instances[i.id]!==i)&&(this.instances[i.id]=i),this}subscribeDeletedInstance(i){return(!this.deletedInstances[i.id]||this.deletedInstances[i.id]!==i)&&(this.deletedInstances[i.id]=i),this}subscribeBuiltInInstance(i){return(!this.builtInInstances[i.id]||this.builtInInstances[i.id]!==i)&&(this.builtInInstances[i.id]=i),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(i){return delete this.instances[i.id],this}unsubscribeDeletedInstance(i){return delete this.deletedInstances[i.id],this}unsubscribeBuiltInInstance(i){return delete this.builtInInstances[i.id],this}findSubscribedBuiltInInstance(i){return this.builtInInstances[i.id]||null}get(i){return this.instances[i]||this.builtInInstances[i]||null}getDeleted(i){return this.deletedInstances[i]||null}getManaged(i){return this.getBuiltIn(i)?null:this.instances[i]||null}getBuiltIn(i){return this.builtInInstances[i]||null}findSubscribedInstanceFromReference(i){return this.instances[i.entityId]||null}findSubscribedBuiltInInstanceFromReference(i){return this.builtInInstances[i.entityId]||null}metaSync(i,n=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const s=Lr(this,i,n),c=$r(this,s),e=this.toMeta();return this.name=s.name!==void 0?s.name:e.name,this.description=s.description!==void 0?s.description:e.description,this.x=s.x||e.x,this.y=s.y||e.y,super.baseMetaSync(s,this,n),s.deleted===!0&&!e.deleted?n==null||n.add(this,H.Removed):s.deleted===!1&&e.deleted?n==null||n.add(this,H.Added):c&&(n==null||n.add(this,H.Updated)),n==null||n.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ke,...n){return await Ct.repository.APILoad(this.id,...n),this}async APICreate(i=ke,...n){return await Ct.repository.APICreate(this.toShallowJSON(),...n),this}async APIUpdate(i=ke,...n){return await Ct.repository.APIUpdate(this.toShallowJSON(),...n),this}async APIDelete(i=ke,...n){return await Ct.repository.APIDelete(this.toShallowJSON(),...n),this}async APIClone(i=ke,...n){return await Ct.repository.APIClone(this.id,...n),this}async APILoadVersion(i=ke,n,...s){return await Ct.repository.APILoadVersion(this.id,n,...s)}remove({ignoreUpstream:i}={ignoreUpstream:!1},n=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,_.RemoveEntity))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},i=this.project.addChangeSet(new Z(this.project,Ct.sessionAuthor,L().toISOString(),this,!0,_.RestoreEntity))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const i=new Set;return[...this.primitives.flatMap(n=>n.toFlatIds(i)),...this.builtInBaseEntities.flatMap(n=>n.toFlatIds(i)),...this.operationDeclarations.flatMap(n=>n.toFlatIds(i)),...this.globalEventActionDescriptors.flatMap(n=>n.toFlatIds(i)),...this.loopDeclarations.flatMap(n=>n.toFlatIds(i)),...this.conditionDeclarations.flatMap(n=>n.toFlatIds(i)),...this.valueDescriptors.flatMap(n=>n.toFlatIds(i)),...this.dataTypes.flatMap(n=>n.toFlatIds(i))]}getAllBuiltIn(){const i=new Set;return[...this.primitives.flatMap(n=>n.toFlat(i)),...this.builtInBaseEntities.flatMap(n=>n.toFlat(i)),...this.operationDeclarations.flatMap(n=>n.toFlat(i)),...this.globalEventActionDescriptors.flatMap(n=>n.toFlat(i)),...this.loopDeclarations.flatMap(n=>n.toFlat(i)),...this.conditionDeclarations.flatMap(n=>n.toFlat(i)),...this.valueDescriptors.flatMap(n=>n.toFlat(i)),...this.dataTypes.flatMap(n=>n.toFlat(i))]}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.entities.flatMap(s=>s.toFlat(i)),...this.functions.flatMap(s=>s.toFlat(i)),...this.events.flatMap(s=>s.toFlat(i)),...this.projects.flatMap(s=>s.toFlat(i)),...this.variableDeclarations.flatMap(s=>s.toFlat(i)),...this.variableInstances.flatMap(s=>s.toFlat(i)),...this.conditions.flatMap(s=>s.toFlat(i)),...this.operations.flatMap(s=>s.toFlat(i)),...this.functionCalls.flatMap(s=>s.toFlat(i)),...this.loops.flatMap(s=>s.toFlat(i)),...this.searches.flatMap(s=>s.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.entities.flatMap(s=>s.toFlatIds(i)),...this.functions.flatMap(s=>s.toFlatIds(i)),...this.events.flatMap(s=>s.toFlatIds(i)),...this.projects.flatMap(s=>s.toFlatIds(i)),...this.variableDeclarations.flatMap(s=>s.toFlatIds(i)),...this.variableInstances.flatMap(s=>s.toFlatIds(i)),...this.conditions.flatMap(s=>s.toFlatIds(i)),...this.operations.flatMap(s=>s.toFlatIds(i)),...this.functionCalls.flatMap(s=>s.toFlatIds(i)),...this.loops.flatMap(s=>s.toFlatIds(i)),...this.searches.flatMap(s=>s.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,description:this.description,entities:this.entities.map(n=>n.toJSON(i)),variableDeclarations:this.variableDeclarations.map(n=>n.toJSON(i)),variableInstances:this.variableInstances.map(n=>n.toJSON(i)),conditions:this.conditions.map(n=>n.toJSON(i)),operations:this.operations.map(n=>n.toJSON(i)),loops:this.loops.map(n=>n.toJSON(i)),searches:this.searches.map(n=>n.toJSON(i)),functions:this.functions.map(n=>n.toJSON(i)),events:this.events.map(n=>n.toJSON(i)),projects:this.projects.map(n=>n.toJSON(i)),functionCalls:this.functionCalls.map(n=>n.toJSON(i))})}toJSONClone(i={uuidStrategy:"uuid"}){const n=new Map,s=new Set,c=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(e=>{if(c.includes(e)){n.set(e,e);return}n.set(e,Ct.UUID.uuid())}),s.add(this.id),{id:n.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),projects:this.projects.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),variableDeclarations:this.variableDeclarations.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),variableInstances:this.variableInstances.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),conditions:this.conditions.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),operations:this.operations.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),functions:this.functions.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),events:this.events.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),functionCalls:this.functionCalls.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),loops:this.loops.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null})),searches:this.searches.map(e=>e.toJSONClone({...i,seenEntityMaps:n,seenEntities:s,newId:null}))}}toReference(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n+"--"+Ct.UUID.uuid()+"--ref",type:d.GenericReference,entityId:n,version:this.version,entityType:this.type}}toShallowJSON(i=ct){var s;let n=this.id;return(s=i.seenEntityMaps)!=null&&s.has(this.id)&&(n=i.seenEntityMaps.get(this.id)),{id:n,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,editable:this.editable,deletable:this.deletable,name:this.name,description:this.description,entities:this.entities.map(c=>c.toReference(i)),functions:this.functions.map(c=>c.toReference(i)),events:this.events.map(c=>c.toReference(i)),projects:this.projects.map(c=>c.toReference(i)),variableDeclarations:this.variableDeclarations.map(c=>c.toReference(i)),variableInstances:this.variableInstances.map(c=>c.toReference(i)),conditions:this.conditions.map(c=>c.toReference(i)),operations:this.operations.map(c=>c.toReference(i)),functionCalls:this.functionCalls.map(c=>c.toReference(i)),loops:this.loops.map(c=>c.toReference(i)),searches:this.searches.map(c=>c.toReference(i))}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(s=>s.toFlatJSON(i)),...this.functions.flatMap(s=>s.toFlatJSON(i)),...this.events.flatMap(s=>s.toFlatJSON(i)),...this.projects.flatMap(s=>s.toFlatJSON(i)),...this.variableDeclarations.flatMap(s=>s.toFlatJSON(i)),...this.variableInstances.flatMap(s=>s.toFlatJSON(i)),...this.conditions.flatMap(s=>s.toFlatJSON(i)),...this.operations.flatMap(s=>s.toFlatJSON(i)),...this.functionCalls.flatMap(s=>s.toFlatJSON(i)),...this.loops.flatMap(s=>s.toFlatJSON(i)),...this.searches.flatMap(s=>s.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[...this.entities.flatMap(s=>s.toFlatGenerationTarget(i)),...this.functions.flatMap(s=>s.toFlatGenerationTarget(i)),...this.events.flatMap(s=>s.toFlatGenerationTarget(i)),...this.projects.flatMap(s=>s.toFlatGenerationTarget(i)),...this.variableDeclarations.flatMap(s=>s.toFlatGenerationTarget(i)),...this.variableInstances.flatMap(s=>s.toFlatGenerationTarget(i)),...this.conditions.flatMap(s=>s.toFlatGenerationTarget(i)),...this.operations.flatMap(s=>s.toFlatGenerationTarget(i)),...this.functionCalls.flatMap(s=>s.toFlatGenerationTarget(i)),...this.loops.flatMap(s=>s.toFlatGenerationTarget(i)),...this.searches.flatMap(s=>s.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.entities.forEach(i=>i.clearErrors()),this.projects.forEach(i=>i.clearErrors()),this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this.variableDeclarations.forEach(i=>i.clearErrors()),this.variableInstances.forEach(i=>i.clearErrors()),this.conditions.forEach(i=>i.clearErrors()),this.operations.forEach(i=>i.clearErrors()),this.functionCalls.forEach(i=>i.clearErrors()),this.loops.forEach(i=>i.clearErrors()),this.searches.forEach(i=>i.clearErrors()),this}validate(){return this.validateChildren(),nv([...this.errors]),{success:!0}}async validateAsync(i={}){const n=J.YieldTracker.from(i);return await this.validateChildrenAsync({tracker:n}),await _we([...this.errors]),{success:!0}}validateChildren(){this.entities.forEach(i=>i.validate()),this.projects.forEach(i=>i.validate()),this.functions.forEach(i=>i.validate()),this.events.forEach(i=>i.validate()),this.variableDeclarations.forEach(i=>i.validate()),this.variableInstances.forEach(i=>i.validate()),this.conditions.forEach(i=>i.validate()),this.operations.forEach(i=>i.validate()),this.functionCalls.forEach(i=>i.validate()),this.loops.forEach(i=>i.validate()),this.searches.forEach(i=>i.validate())}async validateChildrenAsync(i={}){const n=J.YieldTracker.from(i);for(let s=0;s<this.entities.length;s++)await this.entities[s].validateAsync({tracker:n});for(let s=0;s<this.projects.length;s++)await this.projects[s].validateAsync({tracker:n});for(let s=0;s<this.functions.length;s++)await this.functions[s].validateAsync({tracker:n});for(let s=0;s<this.events.length;s++)await this.events[s].validateAsync({tracker:n});for(let s=0;s<this.variableDeclarations.length;s++)await this.variableDeclarations[s].validateAsync({tracker:n});for(let s=0;s<this.variableInstances.length;s++)await this.variableInstances[s].validateAsync({tracker:n});for(let s=0;s<this.conditions.length;s++)await this.conditions[s].validateAsync({tracker:n});for(let s=0;s<this.operations.length;s++)await this.operations[s].validateAsync({tracker:n});for(let s=0;s<this.functionCalls.length;s++)await this.functionCalls[s].validateAsync({tracker:n});for(let s=0;s<this.loops.length;s++)await this.loops[s].validateAsync({tracker:n});for(let s=0;s<this.searches.length;s++)await this.searches[s].validateAsync({tracker:n})}getErrors(){return[...this.errors,...this.entities.flatMap(n=>n.getErrors()),...this.projects.flatMap(n=>n.getErrors()),...this.functions.flatMap(n=>n.getErrors()),...this.events.flatMap(n=>n.getErrors()),...this.variableDeclarations.flatMap(n=>n.getErrors()),...this.variableInstances.flatMap(n=>n.getErrors()),...this.conditions.flatMap(n=>n.getErrors()),...this.operations.flatMap(n=>n.getErrors()),...this.functionCalls.flatMap(n=>n.getErrors()),...this.loops.flatMap(n=>n.getErrors()),...this.searches.flatMap(n=>n.getErrors())]}async getErrorsAsync(i={}){const n=J.YieldTracker.from(i),s=[...this.errors];await n.tick();for(let c=0;c<this.entities.length;c++){const e=await this.entities[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.projects.length;c++){const e=await this.projects[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.functions.length;c++){const e=await this.functions[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.events.length;c++){const e=await this.events[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.variableDeclarations.length;c++){const e=await this.variableDeclarations[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.variableInstances.length;c++){const e=await this.variableInstances[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.conditions.length;c++){const e=await this.conditions[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.operations.length;c++){const e=await this.operations[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.functionCalls.length;c++){const e=await this.functionCalls[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.loops.length;c++){const e=await this.loops[c].getErrorsAsync({tracker:n});s.push(...e)}for(let c=0;c<this.searches.length;c++){const e=await this.searches[c].getErrorsAsync({tracker:n});s.push(...e)}return s}getShallowErrors(){return this.errors}clone(){return this}addDefinitionEntity(i){return this.entities.includes(i)||this.entities.push(i),i}addFunctionDeclaration(i){return this.functions.includes(i)||this.functions.push(i),i}addFunctionCall(i){return this.functionCalls.includes(i)||this.functionCalls.push(i),i}addVariableDeclaration(i){return this.variableDeclarations.includes(i)||this.variableDeclarations.push(i),i}addVariableInstance(i){return this.variableInstances.includes(i)||this.variableInstances.push(i),i}addInstalledProject(i){return this.projects.includes(i)||this.projects.push(i),this}addGlobalEvent(i){return this.events.includes(i)||this.events.push(i),this}addCondition(i){return this.conditions.includes(i)||this.conditions.push(i),this}addOperation(i){return this.operations.includes(i)||this.operations.push(i),this}addLoop(i){return this.loops.includes(i)||this.loops.push(i),this}addSearch(i){return this.searches.includes(i)||this.searches.push(i),this}removeDefinitionEntity(i){const n=this.entities.findIndex(s=>s.id===i.id);if(n>-1){const s=this.entities[n];return this.entities.splice(n,1),s}return null}removeCondition(i){const n=this.conditions.findIndex(s=>s.id===i.id);if(n>-1){const s=this.conditions[n];return this.conditions.splice(n,1),s}return null}removeOperation(i){const n=this.operations.findIndex(s=>s.id===i.id);if(n>-1){const s=this.operations[n];return this.operations.splice(n,1),s}return null}removeLoop(i){const n=this.loops.findIndex(s=>s.id===i.id);if(n>-1){const s=this.loops[n];return this.loops.splice(n,1),s}return null}removeSearch(i){const n=this.searches.findIndex(s=>s.id===i.id);if(n>-1){const s=this.searches[n];return this.searches.splice(n,1),s}return null}removeFunctionCall(i){const n=this.functionCalls.findIndex(s=>s.id===i.id);if(n>-1){const s=this.functionCalls[n];return this.functionCalls.splice(n,1),s}return null}removeVariableInstance(i){const n=this.variableInstances.findIndex(s=>s.id===i.id);if(n>-1){const s=this.variableInstances[n];return this.variableInstances.splice(n,1),s}return null}removeVariableDeclaration(i){const n=this.variableDeclarations.findIndex(s=>s.id===i.id);if(n>-1){const s=this.variableDeclarations[n];return this.variableDeclarations.splice(n,1),s}return null}removeFunctionDeclaration(i){const n=this.functions.findIndex(s=>s.id===i.id);if(n>-1){const s=this.functions[n];return this.functions.splice(n,1),s}return null}removeInstalledProject(i){const n=this.projects.findIndex(s=>s.id===i.id);if(n>-1){const s=this.projects[n];return this.projects.splice(n,1),s}return null}removeGlobalEvent(i){const n=this.events.findIndex(s=>s.id===i.id);if(n>-1){const s=this.events[n];return this.events.splice(n,1),s}return null}removeTopLevelVariableDeclaration(i){if(i.type!==d.VariableDeclaration)return null;const n=this.variableDeclarations.findIndex(s=>s.id===i.id);if(n>-1){const s=this.variableDeclarations[n];return this.variableDeclarations.splice(n,1),s}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(n=>n.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.ReturnStatement||e.type===d.ContinueStatement||e.type===d.BreakStatement)]},[])]}getFunctionDeclaration(i){return this.functions.find(n=>n.id===i)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Condition)]},[]),...this.functionCalls.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Condition)]},[]),...this.operations.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Condition)]},[]),...this.loops.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Condition)]},[]),...this.searches.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Operation)]},[]),...this.functionCalls.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Operation)]},[]),...this.conditions.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Operation)]},[]),...this.loops.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Operation)]},[]),...this.searches.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.FunctionCall)]},[]),...this.conditions.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.FunctionCall)]},[]),...this.operations.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.FunctionCall)]},[]),...this.loops.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.FunctionCall)]},[]),...this.searches.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.FunctionCall)]},[])]}getDefinitionEntities(i=new Set){return Array.from(this.subscribedDefinitionEntities).filter(s=>!i.has(s)).map(s=>this.get(s))}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[]),...this.functionCalls.reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[]),...this.conditions.reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[]),...this.operations.reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[]),...this.loops.reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[]),...this.searches.reduce((n,s)=>{const c=Xi(s);return[...n,...c]},[])]}getVariableInstances(){return[...this.variableInstances,...this.entities.reduce((n,s)=>[...n,...s.methods.flatMap(c=>{const y=Rt(c).filter(m=>m.type===d.VariableInstance);return[...n,...y]})],[]),...this.getEntryPoints().reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[]),...this.functionCalls.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[]),...this.conditions.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[]),...this.operations.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[]),...this.loops.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[]),...this.searches.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableInstance);return[...n,...e]},[])]}getVariableDeclarations(){return D([...this.variableDeclarations,...this.entities.reduce((n,s)=>[...n,...s.methods.flatMap(c=>{const y=Rt(c).filter(m=>m.type===d.VariableDeclaration);return[...n,...y]})],[]),...this.getEntryPoints().reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[]),...this.functionCalls.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[]),...this.conditions.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[]),...this.operations.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[]),...this.loops.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[]),...this.searches.reduce((n,s)=>{const e=Xi(s).filter(y=>y.type===d.VariableDeclaration);return[...n,...e]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Loop)]},[]),...this.functionCalls.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Loop)]},[]),...this.conditions.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Loop)]},[]),...this.operations.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Loop)]},[]),...this.searches.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Search)]},[]),...this.functionCalls.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Search)]},[]),...this.conditions.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Search)]},[]),...this.operations.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Search)]},[]),...this.loops.reduce((n,s)=>{const c=Rt(s);return[...n,...c.filter(e=>e.type===d.Search)]},[])]}attachOrphanReferences(){const i=this.getVariableInstances(),n=this.getVariableDeclarations();return i.forEach(s=>{if(!s.declaration){const c=s.initialData,e=c.declaration.entityId||c.declaration.id,y=n.find(m=>m.id===e);y&&s.setDeclaration(y)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(i=>i.name===Re.PERSISTED_ENTITY)||null}requestActiveDynamicValue(i,n=!1){var c,e;const s=(e=(c=this.parentContext).requestActiveDynamicValue)==null?void 0:e.call(c,i,n);if(!s&&jA.includes(i.type)){const y=i.getDefaultValue();return y?{value:y,type:Ne.DefaultValue,inheritanceLink:null,valueOwner:i}:null}return s||null}requestExtension(i){if(this.parentContext.requestExtension){const n=this.parentContext.requestExtension(i);if(n&&!n.module)throw new Error(`Module ${i} is not registered properly.`);return n.module||null}return null}undo(){J.Logger.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex-1,J.Logger.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex+1],n=this.history[this.undoableStackValueIndex];return J.Logger.log("Current change set: ",i==null?void 0:i.toJSON()),J.Logger.log("Change set to restore: ",n==null?void 0:n.toJSON()),HO(i||"initial",n||"initial",this)}redo(){J.Logger.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex+1,J.Logger.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex-1],n=this.history[this.undoableStackValueIndex];return J.Logger.log("Current change set: ",i==null?void 0:i.toJSON()),J.Logger.log("Change set to restore: ",n.toJSON()),HO(i||"initial",n||"initial",this)}applyExternalChangeSet(i){const n=i.payload,s=this.addChangeSet(new Z(this,i.userAuthor,i.emittedAt,this));s.ignoreNonEditable=!0,s.ignoreNonDeletable=!0;const c=n.updated[this.id];if(!c)throw new Error("Project root not found in change set transfer. Cannot apply changes.");const e={...n.added,...n.updated,...n.removed},y=[...Object.keys(n.added),...Object.keys(n.updated),...Object.keys(n.removed)];y.forEach(v=>{var E;if(!e[v]){J.Logger.warn(`Entity '${v}' not found in change set transfer. Cannot apply changes.`);const b=(E=this.get(v))==null?void 0:E.toShallowJSON();throw b?J.Logger.warn("Entity in project: ",b):J.Logger.warn("Entity not in project"),new Error(`Entity '${v}' not found in change set transfer. Cannot apply changes.`)}});const m=new Pn(c,{allBuiltInEntityIds:this.diggestedBuiltInBaseEntitiesIds});return m.flatRecord=e,m.order=y,m.orderEntities(),J.Logger.log("All entities: ",m.order.map((v,E)=>`${E+1}: ${e[v].type} - ${v}`).join(`,
389
- `)),J.Logger.log("Persisting new additions"),m.visit(async(v,E)=>{if(n.added[v.id]){J.Logger.log("Adding: ",v.id);try{const b=me(v,this);if(b.hydrateAncestors(),b.addSelfToProject(s),s.add(b,H.Added),!this.get(v.id))throw new Error(`Entity ${v.id} was not added to the project`)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),J.Logger.log("Persisting updates"),m.visit(async(v,E)=>{if(n.updated[v.id]){J.Logger.log("Updating: ",v.id);try{const b=this.get(v.id);b?(b.updateWithShallowTransfer(v,s),s.add(b,H.Updated)):J.Logger.warn(`Active version of ${v.id} not found when applying external changes`)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),J.Logger.log("Persisting removals"),m.visit(async(v,E)=>{if(n.removed[v.id]){J.Logger.log("Removing: ",v.id);try{const b=this.get(v.id);b&&b.remove({ignoreUpstream:!1},s)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),s.open=!1,s}toBuiltInShallowRecord(){const i={};return Object.values(this.builtInInstances).forEach(n=>{const s=n.toShallowJSON();i[n.id]=s}),i}toShallowRecord(){const i={};return Object.values(this.instances).forEach(n=>{const s=n.toShallowJSON();i[n.id]=s}),i}toFullProjectTransfer(i){const n={shallowErrors:!1,...i},s=new Pn(void 0,{allBuiltInEntityIds:this.diggestedBuiltInBaseEntitiesIds});s.flatRecord=this.instances,s.order=Object.keys(s.flatRecord),s.orderEntities();const c={},e=[];return s.visit(y=>{try{const m=y.toShallowJSON();c[y.id]=m,e.push(y.id)}catch(m){if(J.Logger.error(`[toFullProjectTransfer] Error serializing ${y.type} ${y.id}`,m),!n.shallowErrors)throw m}}),{order:e,size:e.length,record:c}}async toFullProjectTransferAsync(i={}){const n=J.YieldTracker.from(i),s=new Pn(void 0,{allBuiltInEntityIds:this.diggestedBuiltInBaseEntitiesIds});s.flatRecord=this.instances,s.order=Object.keys(s.flatRecord);let c=s.order;if(i.seenEntityMaps){c=[];for(const y of s.order){const m=i.seenEntityMaps.get(y)??y;this.diggestedBuiltInBaseEntitiesIds.has(m)||c.push(m)}}await s.orderEntitiesAsync({tracker:n});const e={};return await s.visitAsync(async y=>{if(this.diggestedBuiltInBaseEntitiesIds.has(y.id))return;const m=y.toShallowJSON({seenEntityMaps:i.seenEntityMaps});i.resetVersionOptions&&(m.version=Ct.UUID.uuid(),m.createdAt=i.resetVersionOptions.commonTimestamp||L().toISOString(),m.author=i.resetVersionOptions.author||Ct.sessionAuthor||"1",m.previousVersion=null),e[m.id]=m,i!=null&&i.onVisit&&await i.onVisit(m)},{tracker:n}),{order:c,size:s.order.length,record:e}}};I(Ct,"parentContext",tx),I(Ct,"sessionAuthor","1"),I(Ct,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(Ct,"type",d.Project),I(Ct,"USER_MANAGED_PARENT_TYPES",[]),I(Ct,"PARENT_TYPES",[...Ct.USER_MANAGED_PARENT_TYPES]),I(Ct,"MUTABLE_BASE_PROPERTIES",["name","description"]),I(Ct,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),I(Ct,"BASE_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,...Ct.INMUTABLE_BASE_PROPERTIES]),I(Ct,"MUTABLE_META_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,"x","y"]),I(Ct,"INMUTABLE_META_PROPERTIES",[...Ct.INMUTABLE_BASE_PROPERTIES]),I(Ct,"META_PROPERTIES",[...Ct.MUTABLE_META_PROPERTIES,...Ct.INMUTABLE_META_PROPERTIES]),I(Ct,"MUTABLE_UPSTREAM_PROPERTIES",[]),I(Ct,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),I(Ct,"UPSTREAM_PROPERTIES",[...Ct.MUTABLE_UPSTREAM_PROPERTIES,...Ct.INMUTABLE_UPSTREAM_PROPERTIES]),I(Ct,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),I(Ct,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(Ct,"DOWNSTREAM_PROPERTIES",[...Ct.MUTABLE_DOWNSTREAM_PROPERTIES,...Ct.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(Ct,"PROPERTIES",[...Ct.META_PROPERTIES,...Ct.UPSTREAM_PROPERTIES,...Ct.DOWNSTREAM_PROPERTIES]);let x=Ct;class R1i extends Bi{constructor(p){super(ZT,p)}}class D1i extends Bi{constructor(i){super(lh,i);I(this,"autoexecutable",!0)}getEntityToMatchInputMap(i){return i.inputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(i){return i.inputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(i){return i.outputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id})||null}getEntityToMatch(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"get-entity-to-match-validate-data"))){var e;const s=((e=this.project.requestActiveDynamicValue(i))==null?void 0:e.value)||null,c=s==null?void 0:s.valueAsTypeSingle;return n==null||n.attemptAutoclose("get-entity-to-match-validate-data",this.id),c}syncOperationInstance(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const s=[],c=[],e=[],y=[],m=this.getEntityToMatchInputMap(i);if(m){const{added:b,updated:w,removed:V,affected:$}=this.syncEntityToMatchInputMapDataType(m,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}const v=this.getDataToValidateInputMap(i);if(v){const{added:b,updated:w,removed:V,affected:$}=this.syncDataToValidateInputMapDataType(v,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}const E=this.getOutputDataOutputMap(i);if(E){const{added:b,updated:w,removed:V,affected:$}=this.syncOutputDataOutputMapDataType(E,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}return n==null||n.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:D(s),added:D(c),removed:D(e),affected:D(y),self:i}}syncEntityToMatchInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var E,b,w,V,$,B,j,F,K,Y,ie,ee,de,ae,fe,ve,ue,ye;const s=[],c=[],e=[],y=[];if(((E=i.declaration)==null?void 0:E.id)!==Q.operation[Ce.Validate].inputs.entityToMatch.id)return n==null||n.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=((b=this.project.requestActiveDynamicValue(i))==null?void 0:b.value)||null,v=m==null?void 0:m.valueAsTypeSingle;if(!i.dataType){const Ve={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,parentRelationType:null,options:((w=i.declaration.dataType)==null?void 0:w.options)||null,implementationChooseOne:((V=i.declaration.dataType)==null?void 0:V.implementationChooseOne)||!1,staticEntities:(($=i.declaration.dataType)==null?void 0:$.staticEntities)??null,interactiveEntities:((B=i.declaration.dataType)==null?void 0:B.interactiveEntities)??null,actionEntities:((j=i.declaration.dataType)==null?void 0:j.actionEntities)??null,index:((F=i.declaration.dataType)==null?void 0:F.index)??null,isList:((K=i.declaration.dataType)==null?void 0:K.isList)||!1,foreignKeyAllowed:((Y=i.declaration.dataType)==null?void 0:Y.foreignKeyAllowed)??null,andChildrenGroup:null,orChildrenGroup:null,foreignKeyRef:null,asType:!0,entity:(v==null?void 0:v.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},_e=me(Ve,i.project);_e.hydrateAncestors(),_e.setParent(i,n),_e.initChildren(n),_e.setEntity(v,n),n==null||n.add(_e,H.Added),s.push(_e),i.setDataType(_e,n)}return(ue=i.dataType)==null||ue.metaSync({inferred:!0,like:!1,asType:!0,options:((ie=i.declaration.dataType)==null?void 0:ie.options)||null,implementationChooseOne:((ee=i.declaration.dataType)==null?void 0:ee.implementationChooseOne)||!1,staticEntities:((de=i.declaration.dataType)==null?void 0:de.staticEntities)??null,interactiveEntities:((ae=i.declaration.dataType)==null?void 0:ae.interactiveEntities)??null,actionEntities:((fe=i.declaration.dataType)==null?void 0:fe.actionEntities)??null,isList:((ve=i.declaration.dataType)==null?void 0:ve.isList)||!1},n),(ye=i.dataType)==null||ye.setEntity(v,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}syncDataToValidateInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var b,w,V;const s=[],c=[],e=[],y=[];if(((b=i.declaration)==null?void 0:b.id)!==Q.operation[Ce.Validate].inputs.dataToValidate.id)return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=this.getEntityToMatchInputMap(i.parent);if(!m)return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(m,n))return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!i.dataType){const $={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,index:null,parentRelationType:null,options:null,implementationChooseOne:!1,foreignKeyAllowed:null,isList:!1,foreignKeyRef:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:i.toReference()},B=me($,i.project);B.setParent(i,n),B.initChildren(n),n==null||n.add(B,H.Added),s.push(B),i.setDataType(B,n)}(w=i.dataType)==null||w.metaSync({inferred:!0,like:!0,asType:!1},n);const E=this.getEntityToMatch(m,n);return(V=i.dataType)==null||V.setEntity(E,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}syncOutputDataOutputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var w,V,$,B;const s=[],c=[],e=[],y=[];if(((w=i.declaration)==null?void 0:w.id)!==Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id)return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=this.getEntityToMatchInputMap(i.parent);if(!m)return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(m,n))return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const E=((V=this.project.requestActiveDynamicValue(m))==null?void 0:V.value)||null,b=(E==null?void 0:E.valueAsTypeSingle)||null;if(!i.dataType){const j={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,parentRelationType:null,options:null,foreignKeyRef:null,implementationChooseOne:!1,foreignKeyAllowed:null,staticEntities:null,interactiveEntities:null,index:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:(b==null?void 0:b.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},F=me(j,i.project);F.hydrateAncestors(),F.setParent(i,n),F.initChildren(n),F.setEntity(b,n),n==null||n.add(F,H.Added),s.push(F),i.setDataType(F,n)}return($=i.dataType)==null||$.metaSync({inferred:!0,like:!0,asType:!1},n),(B=i.dataType)==null||B.setEntity(b,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}inferInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var c,e,y;if(((c=i.declaration)==null?void 0:c.id)===Q.operation[Ce.Validate].inputs.entityToMatch.id){const{added:m,updated:v,removed:E,affected:b}=n?this.syncEntityToMatchInputMapDataType(i,n):{added:[],updated:[],removed:[],affected:[]};return n==null||n.attemptAutoclose("infer-input-map-data-type",this.id),{updated:D(v),added:D(m),removed:D(E),affected:D(b),self:i.dataType}}if(((e=i.declaration)==null?void 0:e.id)===Q.operation[Ce.Validate].inputs.dataToValidate.id){const{added:m,updated:v,removed:E,affected:b}=this.syncDataToValidateInputMapDataType(i,n);return n==null||n.attemptAutoclose("infer-input-map-data-type",this.id),{updated:D(v),added:D(m),removed:D(E),affected:D(b),self:i.dataType}}const s=(y=i.declaration)==null?void 0:y.getDataType(n);if(s&&s.isResolved)return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:s};if(i.readsValue){const m=Td(i.readsValue,n);return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:m}}return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var s;if(((s=i.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id){const{added:c,updated:e,removed:y,affected:m}=this.syncOutputDataOutputMapDataType(i,n);return n==null||n.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:D(e),added:D(c),removed:D(y),affected:D(m),self:i.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class w1i extends Bi{constructor(p){super(h_,p)}}class O1i extends Bi{constructor(p){super(m_,p)}}class C1i extends Bi{constructor(p){super(T_,p)}}class _1i extends Bi{constructor(p){super(Rg,p)}}class V1i extends Bi{constructor(p){super(FA,p)}}class P1i extends Bi{constructor(p){super(lT,p)}}function WMe(o){const p=[new _Oe(o),new OOe(o),new COe(o),new R1i(o),new D1i(o),new _1i(o),new w1i(o),new C1i(o),new O1i(o),new V1i(o),new P1i(o)];return KV.forEach(i=>{p.some(n=>n.id===i.id)||p.push(new Bi(i,o))}),p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.operationDeclarations=p,p}class N1i extends No{constructor(i){super(In,i);I(this,"initialData");I(this,"id",Re.PERSISTED_ENTITY);I(this,"version","1");I(this,"name",Re.PERSISTED_ENTITY);I(this,"description",In.description);I(this,"type",d.BuiltInBaseEntity);I(this,"abstract",In.abstract);I(this,"static",In.static);I(this,"properties",[]);I(this,"methods",[]);I(this,"abstractMethods",[]);I(this,"extends",null);I(this,"errors",[]);I(this,"project");this.initialData=In,this.project=i,this.id=In.id,this.version=In.version,this.name=In.name,this.static=In.static,this.abstract=In.abstract,this.properties=this.initialData.properties.map(s=>{const c=me(s,this.project);return c.setParent(this,null),c.initChildren(null),c}),this.methods=this.initialData.methods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.abstractMethods=this.initialData.abstractMethods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.initialData.extends&&(this.extends=me(this.initialData.extends,this.project));const n=this.properties.find(s=>s.id===Q["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!n)throw new Error("Path property not found in endpoint entity");n._codeNativeValueValidation=(s,c)=>ROe(s,c)}}const x1i=[];function zMe(o){const p=[new IOe(o),new wOe(o),new N1i(o)];return hP.forEach(i=>{!p.some(n=>n.id===i.id)&&!x1i.includes(i.id)&&p.push(new No(i,o))}),p.forEach(i=>{o.subscribeBuiltInInstance(i)}),o.builtInBaseEntities=p,p}function JMe(o){const p=[new ma(pe,o),new ma(lt,o),new ma(we,o),new ma(sa,o),new ma(ht,o),new ma(gt,o),new ma(at,o),new ma(Dl,o),new ma(zi,o)];return p.forEach(i=>{o.subscribeBuiltInInstance(i)}),o.primitives=p,p}function YMe(o){const p=[new Bi(kI,o)];return p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.globalEventActionDescriptors=p,p}function XMe(o){const p=[new Bi(rv,o),new Bi(Qc,o),new Bi(tv,o),new Bi(Vh,o),new Bi(Ph,o),new Bi(bI,o)];p.forEach(n=>{n.initChildren(null),o.subscribeBuiltInInstance(n)}),o.loopDeclarations=p;const i=[new Bi(VI,o),new Bi(iv,o),new Bi(RI,o),new Bi(WV,o),new Bi(YV,o),new Bi(AI,o)];return i.forEach(n=>{n.initChildren(null),o.subscribeBuiltInInstance(n)}),o.loopDeclarationsBodies=i,p}function QMe(o){const p=[new Id(gP,o)];return p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.valueDescriptors=p,p}function eGe(o){const p=[new Bi(TP,o),new Bi(mP,o),new Bi(vP,o),new Bi(EP,o)];return bP.forEach(i=>{p.some(n=>n.id===i.id)||p.push(new Bi(i,o))}),p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.conditionDeclarations=p,p}function Lm(o){return o&&typeof o.then=="function"}function $1i(o,p){const i=new Pn(o[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),n=o.map(c=>c.id),s={};return o.forEach(c=>{s[c.id]=c}),i.order=n,i.flatRecord=s,i.orderEntities(),i.order.map(c=>i.flatRecord[c])}function L1i(o,p){const i=new Pn(Object.values(o)[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),n=Object.keys(o);return i.order=n,i.flatRecord=o,i.orderEntities(),i.order}async function B1i(o,p){const i=J.YieldTracker.from(p),n=new Pn(o[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),s=o.map(e=>e.id),c={};for(const e of o)c[e.id]=e,await i.tick();return n.order=s,n.flatRecord=c,await n.orderEntitiesAsync({tracker:i}),n.order.map(e=>n.flatRecord[e])}async function M1i(o,p){const i=J.YieldTracker.from(p),n=new Pn(Object.values(o)[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),s=Object.keys(o);return n.order=s,n.flatRecord=o,await n.orderEntitiesAsync({tracker:i}),n.order}class Pn{constructor(p,i={}){I(this,"order",[]);I(this,"flatRecord",{});I(this,"allBuiltInEntityIds");I(this,"onGoingVisits",{});I(this,"cachedReferences",{});if(i.allBuiltInEntityIds&&(this.allBuiltInEntityIds=i.allBuiltInEntityIds),!p)return;const n={asyncInitialOrder:!1,...i};n.asyncInitialOrder?this.flattenAsync(p).then(()=>{this.orderEntitiesAsync({...n}).then(()=>{var s;(s=n.onOrdered)==null||s.call(n)})}):(this.flatten(p),this.orderEntities())}flatten(p){this.allBuiltInEntityIds||(this.allBuiltInEntityIds=new Set(VR()));const i=D(Be(p,new Set(this.allBuiltInEntityIds),{ignoreBuiltInBaseEntities:!0,diggestedBuiltInBaseEntitiesIds:this.allBuiltInEntityIds})),n=new Set;for(const s of i)this.flatRecord[s.id]=s,n.add(s.id);this.order=Array.from(n)}async flattenAsync(p,i={}){const n=J.YieldTracker.from(i);this.allBuiltInEntityIds||(this.allBuiltInEntityIds=await PR({tracker:n}));const s=await _u(await Le(p,new Set(this.allBuiltInEntityIds),{ignoreBuiltInBaseEntities:!0,diggestedBuiltInBaseEntitiesIds:this.allBuiltInEntityIds,tracker:n}),{tracker:n}),c=new Set;for(const e of s)this.flatRecord[e.id]=e,c.add(e.id),await n.tick();this.order=Array.from(c)}moveEntityAfterDependencies(p){const i=this.cachedReferences[p.id]||vd(p,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});this.cachedReferences[p.id]=i;const{upstream:n}=i;for(const s of Object.keys(n)){const c=this.order.indexOf(s),e=this.order.indexOf(p.id);if(c>e)return this.order.splice(e,1),this.order.splice(c,0,p.id),!0}return!1}orderEntities(){let p=!1;for(let i=0;i<this.order.length;i++){const n=this.order[i],s=this.flatRecord[n];if(s||J.Logger.warn(`Entity with id ${n} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(s)){p=!0;break}}p&&this.orderEntities()}async orderEntitiesAsync(p={}){let i=!1;const n=J.YieldTracker.from(p);for(let s=0;s<this.order.length;s++){const c=this.order[s],e=this.flatRecord[c];if(e||J.Logger.warn(`Entity with id ${c} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(e)){i=!0;break}await n.tick()}i&&await this.orderEntitiesAsync({tracker:n})}getUpstreamOngoingDependenciesVisits(p,i){const n=this.cachedReferences[p]||vd(this.flatRecord[p],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});this.cachedReferences[p]=n;const{upstream:s}=n,c={};return Object.entries(this.onGoingVisits[i]||{}).forEach(([e,y])=>{Object.keys(s).includes(e)&&(c[e]=y)}),c}getDownstreamOngoingDependenciesVisits(p,i){const n=Object.keys(this.onGoingVisits[i]||{}),s=new Set(n.flatMap(e=>{const y=this.cachedReferences[e]||vd(this.flatRecord[e],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});return this.cachedReferences[e]=y,Object.keys(y.downstream)})),c={};return Array.from(s).forEach(e=>{e===p&&(c[e]=this.onGoingVisits[i][e])}),c}async settlePromises(p,i){const n=Object.values(p);n.length&&await Promise.all(n),Object.keys(p).forEach(s=>{delete this.onGoingVisits[i][s]})}visit(p){const i=this.order;for(const n of i)p(this.flatRecord[n],this.flatRecord);return this}reverseVisit(p){const i=this.order.slice().reverse();for(const n of i)p(this.flatRecord[n],this.flatRecord);return this}async visitAsync(p,i={}){const{parallelise:n}={parallelise:!0,...i},s=J.YieldTracker.from(i),c=this.order;if(!n){for(const y of c){const m=p(this.flatRecord[y],this.flatRecord);Lm(m)&&await m,await s.tick()}return this}const e=Math.random().toString(36).substring(7);this.onGoingVisits[e]={};for(const y of c){const m=this.getUpstreamOngoingDependenciesVisits(y,e);Object.keys(m).length&&await this.settlePromises(m,e);const v=p(this.flatRecord[y],this.flatRecord);Lm(v)&&(this.onGoingVisits[e][y]=v),await s.tick()}return await this.settlePromises(this.onGoingVisits[e],e),this.onGoingVisits[e]={},this}async reverseVisitAsync(p,i={}){const{parallelise:n}={parallelise:!0,...i},s=J.YieldTracker.from(i),c=this.order.slice().reverse();if(!n){for(const y of c){const m=p(this.flatRecord[y],this.flatRecord);Lm(m)&&await m,await s.tick()}return this}const e=Math.random().toString(36).substring(7);this.onGoingVisits[e]={};for(const y of c){const m=this.getDownstreamOngoingDependenciesVisits(y,e);Object.keys(m).length&&await this.settlePromises(m,e);const v=p(this.flatRecord[y],this.flatRecord);Lm(v)&&(this.onGoingVisits[e][y]=v),await s.tick()}return await this.settlePromises(this.onGoingVisits[e],e),this.onGoingVisits[e]={},this}}const gc={},Bb={},Qm={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function tGe(o,p={enrich:!0,shallowErrors:!1},i){const n={enrich:!0,shallowErrors:!1,...p},{enrich:s,shallowErrors:c}=n,e=o.project,y=o.record,m=CR(o.project,{shallowErrors:c},i);m.instances[e.id]=m;const v=new Pn(e,{allBuiltInEntityIds:m.diggestedBuiltInBaseEntitiesIds}),E=new Set;y[e.id]=e,E.add(e.id);const b=L().toISOString();Object.values(y).forEach(V=>{!V||v.allBuiltInEntityIds.has(V.id)||E.add(V.id)}),v.order=Array.from(E),v.flatRecord=y,v.orderEntities();const w=s?m.addChangeSet(new Z(m,x.sessionAuthor,b,m,!0,"project-init-from-fetch-result")):null;return v.visit(V=>{if(V.id===m.id)return;const $=me(V,m);try{$.hydrateAncestors(),$.addSelfToProject(null);const B=vd(V);Object.keys(B.downstream).forEach(j=>{const F=m.get(j);F&&F.hydrateAncestors()})}catch(B){if(c)J.Logger.error("Error hydrating ancestors: ",B);else throw B}}),s?(v.visit(V=>{if(V.id===m.id)return;const $=m.get(V.id);$&&$.afterAllChildrenInitialized(w)}),m.afterAllChildrenInitialized(w)):df(m,b).forEach($=>{$.remove({ignoreUpstream:!0},null)}),m.instancesList.forEach(V=>{V.previousVersion=null}),m.initialized=!0,m.emit(zt.PROJECT_INITIALIZED,m,w),w==null||w.attemptAutoclose("project-init-from-fetch-result",m.id),m}async function G1i(o,p={enrich:!0,shallowErrors:!1,yieldEvery:100},i){const n={enrich:!0,shallowErrors:!1,yieldEvery:100,...p},{enrich:s,shallowErrors:c,yieldEvery:e}=n,y=o.project,m=o.record,v=await _R(o.project,{shallowErrors:c,yieldEvery:e},i);v.instances[y.id]=v;const E=new Pn(void 0,{allBuiltInEntityIds:v.diggestedBuiltInBaseEntitiesIds});await E.flattenAsync(y,{yieldEvery:e}),await E.orderEntitiesAsync({yieldEvery:e});const b=new Set;m[y.id]=y,b.add(y.id);const w=L().toISOString();let V=0;for(const[j,F]of Object.entries(m))!F||E.allBuiltInEntityIds.has(F.id)||(b.add(F.id),++V%e===0&&await J.yieldToEventLoop());E.order=Array.from(b),E.flatRecord=m,await E.orderEntitiesAsync();const $=s?v.addChangeSet(new Z(v,x.sessionAuthor,w,v,!0,"project-init-from-fetch-result")):null;await E.visitAsync(j=>{if(j.id===v.id)return;const F=me(j,v);try{F.hydrateAncestors(),F.addSelfToProject(null);const K=vd(j);Object.keys(K.downstream).forEach(Y=>{const ie=v.get(Y);ie&&ie.hydrateAncestors()})}catch(K){if(c)J.Logger.error("Error hydrating ancestors: ",K);else throw console.log("Error hydrating ancestors: ",K),K}},{yieldEvery:e}),s?(await E.visitAsync(j=>{if(j.id===v.id)return;const F=v.get(j.id);F&&F.afterAllChildrenInitialized($)},{yieldEvery:e}),v.afterAllChildrenInitialized($)):df(v,w).forEach(F=>{F.remove({ignoreUpstream:!0},null)});let B=0;for(const j of v.instancesList)j.previousVersion=null,++B%e===0&&await J.yieldToEventLoop();return v.initialized=!0,v.emit(zt.PROJECT_INITIALIZED,v,$),$==null||$.attemptAutoclose("project-init-from-fetch-result",v.id),v}async function k1i(o,p=Qm){const i={...Qm,...p};if(i.empty)return{data:{project:{id:o.id,deletable:!0,editable:!0,type:d.Project,version:x.UUID.uuid(),createdAt:L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(i.mock){const s={...Yx};return s.id=o.id,{data:{project:s,record:{}}}}return J.Logger.log("Fetching project from external API"),new Promise(async s=>{try{if(i.onFetch){const c=await i.onFetch(o.id);if(c){s({data:c});return}}else s({data:null})}catch(c){J.Logger.error("Error fetching project: ",c),s({data:null})}})}function CR(o,p={shallowErrors:!1},i){const n=new x(o,i);JMe(n),zMe(n),WMe(n),YMe(n),XMe(n),QMe(n),eGe(n);const s=p.allBuiltInIds??new Set([...n.getAllBuiltInIds(),...VR()]);return n.diggestedBuiltInBaseEntitiesIds=s,s.forEach(c=>{if(!n.builtInInstances[c]&&n.instances[c])n.builtInInstances[c]=n.instances[c],delete n.instances[c];else if(!n.builtInInstances[c]&&!p.shallowErrors)throw new Error(`Built in entity was not properly initialized: ${c}`)}),n.instances[n.id]=n,n}async function _R(o,p={shallowErrors:!1},i){const n=J.YieldTracker.from(p),s=new x(o,i);JMe(s),zMe(s),await J.yieldToEventLoop(),WMe(s),await J.yieldToEventLoop(),YMe(s),XMe(s),QMe(s),eGe(s),await J.yieldToEventLoop();const c=p.allBuiltInIds??new Set([...s.getAllBuiltInIds(),...await PR()]);s.diggestedBuiltInBaseEntitiesIds=c;for(const e of c){if(!s.builtInInstances[e]&&s.instances[e])s.builtInInstances[e]=s.instances[e],delete s.instances[e];else if(!s.builtInInstances[e]&&!p.shallowErrors)throw new Error(`Built in entity was not properly initialized: ${e}`);s.instances[e]&&delete s.instances[e],await n.tick()}return s.instances[s.id]=s,s}function df(o,p){return o.instancesList.filter(n=>L(n.createdAt).isAfter(L(p)||!!n.previousVersion))}function j1i(o,{enrich:p,shallowErrors:i,...n}={enrich:!0,shallowErrors:!1},s){var V,$;const c=new Map,e=new Map;Object.keys(o.instances).forEach(B=>{if(o.diggestedBuiltInBaseEntitiesIds.has(B)){c.set(B,B),e.set(B,B);return}const j=o.get(B);if(!yx(j,{...o.instances,...o.builtInInstances}).every(ie=>!o.diggestedBuiltInBaseEntitiesIds.has(ie))){c.set(B,B),e.set(B,B);return}const Y=x.UUID.uuid();c.set(B,Y),e.set(Y,B)});const y=((V=n.resetVersionOptions)==null?void 0:V.commonTimestamp)??L().toISOString(),m=o.toShallowJSON({seenEntityMaps:c});m.previousVersion=null,m.createdAt=y,m.version=x.UUID.uuid(),m.author=(($=n.resetVersionOptions)==null?void 0:$.author)??(x.sessionAuthor||"1");const v=CR(m,{shallowErrors:i,allBuiltInIds:o.diggestedBuiltInBaseEntitiesIds},s);v.instances[v.id]=v;const E=p?v.addChangeSet(new Z(v,x.sessionAuthor,y,v,!0,"project-clone")):null,b=new Pn(o,{allBuiltInEntityIds:o.diggestedBuiltInBaseEntitiesIds}),w=w4e(b.flatRecord,c);return b.visit(B=>{var Y;const j=B.toShallowJSON({seenEntityMaps:c});j.previousVersion=null,j.createdAt=y,j.version=x.UUID.uuid(),j.author=((Y=n.resetVersionOptions)==null?void 0:Y.author)??(x.sessionAuthor||"1");const F=vd(j,w);if(Object.keys(F.upstream).length){let ie=!1;if(Object.keys(F.upstream).forEach(ee=>{if(!ie&&(!v.get(ee)||v.getDeleted(ee))){ie=!0;return}}),ie)return}const K=me(j,v);K.hydrateAncestors(),K.addSelfToProject(E),E==null||E.add(K,H.Added),n.onVisit&&n.onVisit(j)}),p?(b.visit(B=>{if(B.id===v.id)return;const j=v.get(c.get(B.id));j&&j.afterAllChildrenInitialized(E)}),v.afterAllChildrenInitialized(E)):df(v,y).forEach(j=>{j.remove({ignoreUpstream:!0},null)}),v.instancesList.forEach(B=>{B.previousVersion=null}),E==null||E.attemptAutoclose("project-clone",v.id),{project:v,maps:c}}async function U1i(o,{shallowErrors:p,...i}={shallowErrors:!1,yieldEvery:100}){var v,E;const n=J.YieldTracker.from(i),s=new Map,c=new Map;Object.keys(o.instances).forEach(b=>{if(o.diggestedBuiltInBaseEntitiesIds.has(b)){s.set(b,b),c.set(b,b);return}const w=x.UUID.uuid();s.set(b,w),c.set(w,b)});const e=((v=i.resetVersionOptions)==null?void 0:v.commonTimestamp)??L().toISOString(),y=o.toShallowJSON({seenEntityMaps:s});y.previousVersion=null,y.createdAt=e,y.version=x.UUID.uuid(),y.author=((E=i.resetVersionOptions)==null?void 0:E.author)??(x.sessionAuthor||"1");const m=await o.toFullProjectTransferAsync({tracker:n,seenEntityMaps:s,resetVersionOptions:i.resetVersionOptions,onVisit:i.onVisit});return{project:y,record:m.record,order:m.order,maps:s}}async function K1i(o,{enrich:p,shallowErrors:i,...n}={enrich:!0,shallowErrors:!1,yieldEvery:100},s){var $,B;const c=J.YieldTracker.from(n),e=new Map,y=new Map;Object.keys(o.instances).forEach(j=>{if(o.diggestedBuiltInBaseEntitiesIds.has(j)){e.set(j,j),y.set(j,j);return}const F=x.UUID.uuid();e.set(j,F),y.set(F,j)});const m=(($=n.resetVersionOptions)==null?void 0:$.commonTimestamp)??L().toISOString(),v=o.toShallowJSON({seenEntityMaps:e});v.previousVersion=null,v.createdAt=m,v.version=x.UUID.uuid(),v.author=((B=n.resetVersionOptions)==null?void 0:B.author)??(x.sessionAuthor||"1");const E=await _R(v,{shallowErrors:i,tracker:c},s);E.diggestedBuiltInBaseEntitiesIds=o.diggestedBuiltInBaseEntitiesIds,E.instances[E.id]=E;const b=p?E.addChangeSet(new Z(E,x.sessionAuthor,m,E,!0,"project-clone")):null,w=new Pn(void 0,{allBuiltInEntityIds:o.diggestedBuiltInBaseEntitiesIds}),V=await o.toFullProjectTransferAsync({tracker:c,seenEntityMaps:e,resetVersionOptions:n.resetVersionOptions,onVisit:n.onVisit});w.flatRecord=V.record,w.order=V.order,await w.visitAsync(j=>{var ie;if(o.diggestedBuiltInBaseEntitiesIds.has(j.id))return;const F=j;F.previousVersion=null,F.createdAt=m,F.version=x.UUID.uuid(),F.author=((ie=n.resetVersionOptions)==null?void 0:ie.author)??(x.sessionAuthor||"1");const K=vd(F,w.flatRecord);if(Object.keys(K.upstream).length){let ee=!1;if(Object.keys(K.upstream).forEach(de=>{if(!ee&&(!E.get(de)||E.getDeleted(de))){ee=!0;return}}),ee)return}const Y=me(F,E);Y.hydrateAncestors(),Y.addSelfToProject(b),b==null||b.add(Y,H.Added)},{tracker:c}),p?(await w.visitAsync(j=>{if(j.id===E.id||o.diggestedBuiltInBaseEntitiesIds.has(j.id))return;const F=E.get(e.get(j.id));F&&F.afterAllChildrenInitialized(b)},{tracker:c}),E.afterAllChildrenInitialized(b)):df(E,m).forEach(F=>{F.remove({ignoreUpstream:!0},null)});for(const j of E.instancesList)j.previousVersion=null,await c.tick();return b==null||b.attemptAutoclose("project-clone",E.id),{project:E,maps:e}}function iGe(o,{enrich:p,shallowErrors:i}={enrich:!0,shallowErrors:!1},n){const s=CR(o,{shallowErrors:i},n),c=L().toISOString(),e=p?s.addChangeSet(new Z(s,x.sessionAuthor,c,s,!0,"project-init")):null;e&&(e.type=FI.Automatic);const y=new Pn(o,{allBuiltInEntityIds:s.diggestedBuiltInBaseEntitiesIds});return y.visit(m=>{const v=me(m,s);v.hydrateAncestors(),v.addSelfToProject(e)}),p?(y.visit(m=>{if(m.id===s.id)return;const v=s.get(m.id);v&&v.afterAllChildrenInitialized(e)}),s.afterAllChildrenInitialized(e)):(df(s,c).forEach(E=>{E.remove({ignoreUpstream:!0},null)}),new Pn(s,{allBuiltInEntityIds:s.diggestedBuiltInBaseEntitiesIds}).visit(E=>{E.initialized=!0,E.captureVersion()})),s.initialized=!0,s.emit(zt.PROJECT_INITIALIZED,s,e),e==null||e.attemptAutoclose("project-init",s.id),s}async function F1i(o,{enrich:p,shallowErrors:i,yieldEvery:n}={enrich:!0,shallowErrors:!1,yieldEvery:100},s){const c=await _R(o,{shallowErrors:i,yieldEvery:n},s),e=L().toISOString(),y=p?c.addChangeSet(new Z(c,x.sessionAuthor,e,c,!0,"project-init")):null;y&&(y.type=FI.Automatic);const m=new Pn(void 0,{allBuiltInEntityIds:c.diggestedBuiltInBaseEntitiesIds});if(await m.flattenAsync(o,{yieldEvery:n}),await m.orderEntitiesAsync({yieldEvery:n}),await m.visitAsync(v=>{const E=me(v,c);E.hydrateAncestors(),E.addSelfToProject(y)},{yieldEvery:n}),p)await m.visitAsync(v=>{if(v.id===c.id)return;const E=c.get(v.id);E&&E.afterAllChildrenInitialized(y)},{yieldEvery:n}),c.afterAllChildrenInitialized(y);else{df(c,e).forEach(b=>{b.remove({ignoreUpstream:!0},null)});const E=new Pn(void 0,{allBuiltInEntityIds:c.diggestedBuiltInBaseEntitiesIds});await E.flattenAsync(c,{yieldEvery:n}),await E.orderEntitiesAsync({yieldEvery:n}),await E.visitAsync(b=>{b.initialized=!0,b.captureVersion()},{yieldEvery:n})}return c.initialized=!0,c.emit(zt.PROJECT_INITIALIZED,c,y),y==null||y.attemptAutoclose("project-init",c.id),c}async function S1i(o,p=Qm,i){const n={...Qm,...p};if(o.id&&gc[o.id]&&!n.ignoreCache)return gc[o.id];if(o.id&&Bb[o.id]&&!n.ignoreCache)return await Bb[o.id],gc[o.id];const s=k1i(o,n);o.id&&(Bb[o.id]=s);const c=await s;if(c.data){let e;return n.mock?e=iGe(Yx,{enrich:!!n.enrich},i):c.data instanceof x?e=c.data:e=tGe(c.data,{enrich:!!n.enrich},i),gc[o.id]=e,o.id&&delete Bb[o.id],e}return null}function q1i(o){return gc[o.id]&&delete gc[o.id],null}function VR(){const o=new Set;return new Set(IP.flatMap(i=>Be(i,o)).map(i=>i.id))}function eo(o){return[...o.calledByEntry||[],...o.calledByError||[],...o.calledBySuccess||[]].filter(p=>p.type!==d.GenericReference)}function rGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[o,...o.inputs.flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.error?Be(o.error,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function nGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p):[],...o.writesValues.flatMap(n=>Be(n,p,i)),...o.implements.flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function aGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[o,...o.outputs.flatMap(n=>Be(n,p,i)),...o.throws?Be(o.throws,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.readsValue?Be(o.readsValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function sGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[o,...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i)),...o.allPropertiesImplement?Be(o.allPropertiesImplement,p,i):[],...o.additionalPropertiesDataType?Be(o.additionalPropertiesDataType,p,i):[],...o.extends?Be(o.extends,p,i):[]]}function lGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Condition)throw new Error("Entity must be a condition to be flattened");return[o,...(o.andChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.orChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function oGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[o,...o.outputs.flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.throws?Be(o.throws,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function dGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[o,...o.extends?Be(o.extends,p,i):[],...(o.implements||[]).flatMap(n=>Be(n,p,i)),...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i)),...o.allPropertiesImplement?Be(o.allPropertiesImplement,p,i):[],...o.additionalPropertiesDataType?Be(o.additionalPropertiesDataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function uGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DataType)throw new Error("Entity must be a data type to be flattened");return[o,...(o.andChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.orChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...o.entity?Be(o.entity,p,i):[],...o.foreignKeyRef?Be(o.foreignKeyRef,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function pGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function cGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.calls||[]).flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.implements?Be(o.implements,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function fGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.calls||[]).flatMap(n=>Be(n,p,i)),...o.implements?Be(o.implements,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function yGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InputMap)throw new Error("Entity must be an input map to be flattened");return[o,...o.readsValue?Be(o.readsValue,p,i):[],...o.declaration?Be(o.declaration,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function hGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[o,...(o.functions||[]).flatMap(n=>Be(n,p,i)),...(o.events||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function mGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function TGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[o,...o.valueAsTypeSingle?Be(o.valueAsTypeSingle,p,i):[],...o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)?o.valueAsTypeList.flatMap(n=>Be(n,p,i)):[],...o.parent?Be(o.parent,p,i):[]]}function vGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Loop)throw new Error("Entity must be a loop to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.body?Be(o.body,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function EGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Operation)throw new Error("Entity must be an operation to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function bGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.OutputMap)throw new Error("Entity must be an output map to be flattened");return[o,...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.declaration?Be(o.declaration,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function AGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[o,...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i))]}function gGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Project)throw new Error("Entity must be a project to be flattened");return[o,...(o.entities||[]).flatMap(n=>Be(n,p,i)),...(o.functions||[]).flatMap(n=>Be(n,p,i)),...(o.events||[]).flatMap(n=>Be(n,p,i)),...(o.projects||[]).flatMap(n=>Be(n,p,i)),...(o.variableDeclarations||[]).flatMap(n=>Be(n,p,i)),...(o.variableInstances||[]).flatMap(n=>Be(n,p,i)),...(o.operations||[]).flatMap(n=>Be(n,p,i)),...(o.conditions||[]).flatMap(n=>Be(n,p,i)),...(o.functionCalls||[]).flatMap(n=>Be(n,p,i)),...(o.projects||[]).flatMap(n=>Be(n,p,i)),...(o.loops||[]).flatMap(n=>Be(n,p,i)),...(o.searches||[]).flatMap(n=>Be(n,p,i))]}function IGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Property)throw new Error("Entity must be a property to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function RGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[o,...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.throws?Be(o.throws,p,i):[],...o.readsValue?Be(o.readsValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function DGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Search)throw new Error("Entity must be a search to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputsDeclarations||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function wGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function OGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.internalCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function CGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.internalCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.declaration?Be(o.declaration,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function Be(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(!o)throw new Error("Entity must be defined to be flattened");if(o.type===d.GenericReference)return[];const n=i.ignoreBuiltInBaseEntities?i.diggestedBuiltInBaseEntitiesIds??new Set(VR()):new Set;if(i.diggestedBuiltInBaseEntitiesIds=n,i.ignoreBuiltInBaseEntities&&(Zn.includes(o.type)||n.has(o.id)))return[];if(p.has(o.id))return[];switch(o.type){case d.FunctionCall:return pGe(o,p,i);case d.Operation:return EGe(o,p,i);case d.Condition:return lGe(o,p,i);case d.Loop:return vGe(o,p,i);case d.Search:return DGe(o,p,i);case d.GlobalEvent:return fGe(o,p,i);case d.ReturnStatement:return RGe(o,p,i);case d.ContinueStatement:return oGe(o,p,i);case d.BreakStatement:return aGe(o,p,i);case d.VariableDeclaration:return OGe(o,p,i);case d.DefinitionEntity:return dGe(o,p,i);case d.FunctionDeclaration:return cGe(o,p,i);case d.Project:return gGe(o,p,i);case d.ActionDescriptor:return rGe(o,p,i);case d.ArgumentDeclaration:return nGe(o,p,i);case d.ValueDescriptor:return wGe(o,p,i);case d.InputMap:return yGe(o,p,i);case d.OutputMap:return bGe(o,p,i);case d.DataType:return uGe(o,p,i);case d.InstalledProject:return hGe(o,p,i);case d.InternalCall:return mGe(o,p,i);case d.LiteralValue:return TGe(o,p,i);case d.Property:return IGe(o,p,i);case d.VariableInstance:return CGe(o,p,i);case d.BuiltInBaseEntity:return i.ignoreBuiltInBaseEntities?[]:sGe(o,p,i);case d.PrimitiveEntity:return i.ignoreBuiltInBaseEntities?[]:AGe(o,p,i)}return[]}async function PR(o={}){const p=new Set,i=J.YieldTracker.from(o),n=new Set;for(const s of IP){const c=await Le(s,p,{ignoreBuiltInBaseEntities:!1,tracker:i});for(const e of c)n.add(e.id),await i.tick()}return n}function to(o){return[...o.calledByEntry||[],...o.calledByError||[],...o.calledBySuccess||[]].filter(p=>p.type!==d.GenericReference)}async function _Ge(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.inputs)s.push(...await Le(e,p,c));return o.dataType&&s.push(...await Le(o.dataType,p,c)),o.error&&s.push(...await Le(o.error,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function VGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));for(const e of o.writesValues||[])s.push(...await Le(e,p,c));for(const e of o.implements||[])s.push(...await Le(e,p,c));return s}async function PGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BreakStatement)throw new Error("Entity must be a break statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));o.parent&&s.push(...await Le(o.parent,p,c)),o.throws&&s.push(...await Le(o.throws,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return s}async function NGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties||[])s.push(...await Le(e,p,c));for(const e of o.methods||[])s.push(...await Le(e,p,c));for(const e of o.abstractMethods||[])s.push(...await Le(e,p,c));return o.allPropertiesImplement&&s.push(...await Le(o.allPropertiesImplement,p,c)),o.additionalPropertiesDataType&&s.push(...await Le(o.additionalPropertiesDataType,p,c)),o.extends&&s.push(...await Le(o.extends,p,c)),s}async function xGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Condition)throw new Error("Entity must be a condition to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.andChildrenGroup&&Array.isArray(o.andChildrenGroup))for(const y of o.andChildrenGroup)s.push(...await Le(y,p,c));if(o.orChildrenGroup&&Array.isArray(o.orChildrenGroup))for(const y of o.orChildrenGroup)s.push(...await Le(y,p,c));for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function $Ge(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.throws&&s.push(...await Le(o.throws,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),s}async function LGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties)s.push(...await Le(e,p,c));for(const e of o.methods)s.push(...await Le(e,p,c));for(const e of o.abstractMethods)s.push(...await Le(e,p,c));for(const e of o.implements)s.push(...await Le(e,p,c));return o.extends&&s.push(...await Le(o.extends,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),o.additionalPropertiesDataType&&s.push(...await Le(o.additionalPropertiesDataType,p,c)),o.allPropertiesImplement&&s.push(...await Le(o.allPropertiesImplement,p,c)),s}async function BGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DataType)throw new Error("Entity must be a data type to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.foreignKeyRef&&s.push(...await Le(o.foreignKeyRef,p,c)),o.entity&&s.push(...await Le(o.entity,p,c)),o.orChildrenGroup)for(const e of o.orChildrenGroup)s.push(...await Le(e,p,c));if(o.andChildrenGroup)for(const e of o.andChildrenGroup)s.push(...await Le(e,p,c));return s}async function MGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionCall)throw new Error("Entity must be a function call to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function GGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.implements&&s.push(...await Le(o.implements,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));for(const e of o.inputs)s.push(...await Le(e,p,c));for(const e of o.calls)s.push(...await Le(e,p,c));return s}async function kGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.GlobalEvent)throw new Error("Entity must be a global event to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.implements&&s.push(...await Le(o.implements,p,c));for(const e of o.inputs)s.push(...await Le(e,p,c));for(const e of o.calls)s.push(...await Le(e,p,c));return s}async function jGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InputMap)throw new Error("Entity must be an input map to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.declaration&&s.push(...await Le(o.declaration,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),s}async function UGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InstalledProject)throw new Error("Entity must be an installed project to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.functions)s.push(...await Le(e,p,c));for(const e of o.events)s.push(...await Le(e,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function KGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InternalCall)throw new Error("Entity must be an internal call to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function FGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.LiteralValue)throw new Error("Entity must be a literal value to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.valueAsTypeSingle&&s.push(...await Le(o.valueAsTypeSingle,p,c)),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList))for(const e of o.valueAsTypeList)s.push(...await Le(e,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function SGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Loop)throw new Error("Entity must be a loop to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.body&&s.push(...await Le(o.body,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),s}async function qGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Operation)throw new Error("Entity must be an operation to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function ZGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.OutputMap)throw new Error("Entity must be an output map to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.writesValues)s.push(...await Le(e,p,c));return o.declaration&&s.push(...await Le(o.declaration,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function HGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties)s.push(...await Le(e,p,c));for(const e of o.methods)s.push(...await Le(e,p,c));for(const e of o.abstractMethods)s.push(...await Le(e,p,c));return s}async function WGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Project)throw new Error("Entity must be a project to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.entities)s.push(...await Le(e,p,c));for(const e of o.functions)s.push(...await Le(e,p,c));for(const e of o.events)s.push(...await Le(e,p,c));for(const e of o.projects)s.push(...await Le(e,p,c));for(const e of o.variableDeclarations)s.push(...await Le(e,p,c));for(const e of o.variableInstances)s.push(...await Le(e,p,c));for(const e of o.operations)s.push(...await Le(e,p,c));for(const e of o.conditions)s.push(...await Le(e,p,c));for(const e of o.functionCalls)s.push(...await Le(e,p,c));for(const e of o.projects)s.push(...await Le(e,p,c));for(const e of o.loops)s.push(...await Le(e,p,c));for(const e of o.searches)s.push(...await Le(e,p,c));return s}async function zGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Property)throw new Error("Entity must be a property to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function JGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.throws&&s.push(...await Le(o.throws,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function YGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Search)throw new Error("Entity must be a search to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));for(const y of o.inputsDeclarations)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function XGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function QGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));for(const y of o.internalCalls)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function e4e(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));for(const y of o.internalCalls)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.declaration&&s.push(...await Le(o.declaration,p,c)),s}async function Le(o,p=new Set,i={ignoreBuiltInBaseEntities:!1,yieldEvery:100}){const n={...i,ignoreBuiltInBaseEntities:i.ignoreBuiltInBaseEntities??!1};if(!o)throw new Error("Entity must be defined to be flattened");if(o.type===d.GenericReference)return[];const s=J.YieldTracker.from(n);n.tracker=s,n.yieldEvery!==void 0&&delete n.yieldEvery;const c=n.ignoreBuiltInBaseEntities?n.diggestedBuiltInBaseEntitiesIds??new Set(await PR(n)):new Set;if(n.diggestedBuiltInBaseEntitiesIds=c,n.ignoreBuiltInBaseEntities&&(Zn.includes(o.type)||c.has(o.id)))return[];if(p.has(o.id))return[];switch(o.type){case d.FunctionCall:return MGe(o,p,n);case d.Operation:return qGe(o,p,n);case d.Condition:return xGe(o,p,n);case d.Loop:return SGe(o,p,n);case d.Search:return YGe(o,p,n);case d.GlobalEvent:return kGe(o,p,n);case d.ReturnStatement:return JGe(o,p,n);case d.ContinueStatement:return $Ge(o,p,n);case d.BreakStatement:return PGe(o,p,n);case d.VariableDeclaration:return QGe(o,p,n);case d.DefinitionEntity:return LGe(o,p,n);case d.FunctionDeclaration:return GGe(o,p,n);case d.Project:return WGe(o,p,n);case d.ActionDescriptor:return _Ge(o,p,n);case d.ArgumentDeclaration:return VGe(o,p,n);case d.ValueDescriptor:return XGe(o,p,n);case d.InputMap:return jGe(o,p,n);case d.OutputMap:return ZGe(o,p,n);case d.DataType:return BGe(o,p,n);case d.InstalledProject:return UGe(o,p,n);case d.InternalCall:return KGe(o,p,n);case d.LiteralValue:return FGe(o,p,n);case d.Property:return zGe(o,p,n);case d.VariableInstance:return e4e(o,p,n);case d.BuiltInBaseEntity:return n.ignoreBuiltInBaseEntities?[]:NGe(o,p,n);case d.PrimitiveEntity:return n.ignoreBuiltInBaseEntities?[]:HGe(o,p,n)}return[]}function t4e(o){return o==null||o===""}function Z1i(o){return o===null}function Tn(o){return o!=null&&o.valueAsType?!1:t4e(o==null?void 0:o.value)}function $o(o){return o?o.valueAsType===null&&o.value===null:!1}function i4e(o,p){if(o===p||!o&&!p)return!0;if(!o||!p||o.name===oe.EntityTemplate&&p.name!==oe.EntityTemplate||p.name===oe.EntityTemplate&&o.name!==oe.EntityTemplate)return!1;if(o.name===oe.ActionDescriptor&&p.name!==oe.ActionDescriptor||p.name===oe.ActionDescriptor&&o.name!==oe.ActionDescriptor)return!1;if(o.valueAsTypeSingle&&!p.valueAsTypeSingle||p.valueAsTypeSingle&&!o.valueAsTypeSingle)return!1;if(o.valueAsTypeList&&!p.valueAsTypeList||p.valueAsTypeList&&!o.valueAsTypeList)return!1;if(o.valueAsTypeSingle&&p.valueAsTypeSingle){if(o.valueAsTypeSingle.id!==p.valueAsTypeSingle.id)return!1}else if(o.valueAsTypeList&&p.valueAsTypeList){if(o.valueAsTypeList.length!==p.valueAsTypeList.length)return!1;for(let i=0;i<o.valueAsTypeList.length;i++)if(o.valueAsTypeList[i].id!==p.valueAsTypeList[i].id)return!1}else if(!o.valueAsType&&!p.valueAsType&&o.value!==p.value)return!1;return!0}function r4e(o,p,i){if(!i)throw new Error("[checkIsRowTransformerUpToDate] 'lastPublishedEntityVersion' argument is required");if(!p)throw new Error("[checkIsRowTransformerUpToDate] 'entity' argument is required");if(!o)throw new Error("[checkIsRowTransformerUpToDate] 'newestOpenRowTransformer' argument is required");let n=!0;const s=o.methods.find(c=>{var e;return((e=c.implements)==null?void 0:e.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id});if(s?(mn(i).forEach(c=>{const e=s.inputs.find(y=>y.name===c.name);e&&ai(e.getDataType(null),c.getDataType(null)).compatible||(n=!1)}),s.returnStatements.forEach(c=>{!c.dataType||!c.dataType.entity||c.dataType.entity.type!==d.DefinitionEntity?n=!1:Sm(c.dataType.entity,p)||(n=!1)})):n=!1,n===null||n){const c=o.methods.find(e=>{var y;return((y=e.implements)==null?void 0:y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});c?(mn(p).forEach(e=>{const y=c.inputs.find(m=>m.name===e.name);y&&ai(y.getDataType(null),e.getDataType(null)).compatible||(n=!1)}),c.returnStatements.forEach(e=>{!e.dataType||!e.dataType.entity||e.dataType.entity.type!==d.DefinitionEntity?n=!1:Sm(e.dataType.entity,i)||(n=!1)})):n=!1}return{isPreexistingRowTransformerUpToDate:n}}function n4e(o,p,i){const n={changesSinceLastPublication:!1,rowTransformerNeeded:!1,newRowTransformerNeeded:!1,newestOpenRowTransformer:null,newRequiredProperties:[],newNonRequiredProperties:[],deletedProperties:[],lastPublishedEntityVersion:null,updatedEntityVersion:i,propChanges:new Map,isPreexistingRowTransformerUpToDate:null,extendedEntities:[]},c=o.entities.filter(F=>{var ie;if(F.id===i.id)return!1;let K=!1,Y=F;for(;Y;){if(((ie=Y.extends)==null?void 0:ie.id)===i.id){K=!0;break}if(Y.extends&&Y.extends.type===d.DefinitionEntity)Y=Y.extends;else break}return K}).map(F=>n4e(o,p,F));if(!p)return{...n,changesSinceLastPublication:!0,extendedEntities:c};const e=p.get(i.id);if(!e)return{...n,changesSinceLastPublication:!0,extendedEntities:c};const y=p.entities.filter(F=>Wi(F,Re.SQL_ROW_TRANSFORMER)),v=o.entities.filter(F=>{var ee;if(!Wi(F,Re.SQL_ROW_TRANSFORMER)||y.find(de=>de.id===F.id))return!1;const Y=F.properties.find(de=>!!de.implements.find(ae=>Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.properties.definition.id===ae.id));if(!Y)return!1;const ie=(ee=Y.defaultValue)==null?void 0:ee.valueAsType;return ie?ie.id===i.id:!1}).sort((F,K)=>L(F.createdAt).isAfter(L(K.createdAt))?-1:1)[0]||null,E=new Map;let b=!1;const w=mn(i).filter(F=>mn(e).find(ie=>ie.id===F.id)?!1:!Ta(F.getDataType(null))),V=mn(i).filter(F=>mn(e).find(ie=>ie.id===F.id)?!1:!!Ta(F.getDataType(null))),$=mn(e).filter(F=>!mn(i).find(Y=>Y.id===F.id));mn(i).filter(F=>{var ue,ye,Ve,_e,xe,Pe,Me,Se,je,Ze,Ye;const K=mn(e).find(st=>st.id===F.id);let Y=!1;if(!K)return!1;const ie=Dy(F.dataType,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on current property '${F.name}' (${F.id}). 'andChildrenGroup' with more than one child is not supported for SQL column properties.`),ee=Dy(K.dataType,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on last published property '${F.name}' (${F.id}). 'andChildrenGroup' with more than one child is not supported for SQL column properties.`),de=dA(ie,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on current property '${F.name}' (${F.id}). 'orChildrenGroup' with multiple non-null children is not supported for SQL column properties.`),ae=dA(ee,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on last published property '${F.name}' (${F.id}). 'orChildrenGroup' with multiple non-null children is not supported for SQL column properties.`);if(((ue=de==null?void 0:de.foreignKeyRef)==null?void 0:ue.id)!==((ye=ae==null?void 0:ae.foreignKeyRef)==null?void 0:ye.id)){const st=de==null?void 0:de.foreignKeyRef,dt=ae==null?void 0:ae.foreignKeyRef;E.set(F.id,{...E.get(F.id)||{},newForeignKeyRef:st||void 0,oldForeignKeyRef:dt||void 0,property:F,oldProperty:K}),Y=!0,b=!0}else((Ve=de==null?void 0:de.entity)==null?void 0:Ve.id)!==((_e=ae==null?void 0:ae.entity)==null?void 0:_e.id)&&(((xe=de==null?void 0:de.entity)==null?void 0:xe.id)===Q["primitive-entity"].string.id||((Pe=ae==null?void 0:ae.entity)==null?void 0:Pe.id)===Q["primitive-entity"].date.id&&((Me=de==null?void 0:de.entity)==null?void 0:Me.id)===Q["primitive-entity"].number.id?E.set(F.id,{...E.get(F.id)||{},castableDataTypeEntity:{fromId:((Se=ae==null?void 0:ae.entity)==null?void 0:Se.id)||"",toId:((je=de==null?void 0:de.entity)==null?void 0:je.id)||""},property:F,oldProperty:K}):(E.set(F.id,{...E.get(F.id)||{property:F},nonCastableDataTypeEntity:{fromId:((Ze=ae==null?void 0:ae.entity)==null?void 0:Ze.id)||"",toId:((Ye=de==null?void 0:de.entity)==null?void 0:Ye.id)||""},property:F,oldProperty:K}),b=!0),Y=!0);F.name!==(K==null?void 0:K.name)&&(E.set(F.id,{...E.get(F.id)||{},nameChange:{from:(K==null?void 0:K.name)||"",to:F.name},property:F,oldProperty:K}),Y=!0);const fe=Ta(K.getDataType(null)),ve=Ta(F.getDataType(null));return ve!==fe&&(E.set(F.id,{...E.get(F.id)||{},requiredChange:{from:!fe,to:!ve},property:F,oldProperty:K}),ve||(b=!0),Y=!0),Y}),w.length>0&&(b=!0);let B=null;v&&b&&(B=r4e(v,i,e).isPreexistingRowTransformerUpToDate);const j=i.name!==e.name?{from:e.name,to:i.name}:void 0;return{...n,changesSinceLastPublication:E.size>0||!!$.length||!!w.length||!!V.length||b,rowTransformerNeeded:b,newestOpenRowTransformer:v,nameChange:j,newRequiredProperties:w,newNonRequiredProperties:V,deletedProperties:$,lastPublishedEntityVersion:e,propChanges:E,newRowTransformerNeeded:b&&!v,isPreexistingRowTransformerUpToDate:B,extendedEntities:c}}function ix(o,p,i,n,s){if(!o)throw new Error("[addDifferencesToRowTransformer] 'project' argument is required");if(!p)throw new Error("[addDifferencesToRowTransformer] 'transformer' argument is required");if(!i)throw new Error("[addDifferencesToRowTransformer] 'newEntityState' argument is required");if(!n)throw new Error("[addDifferencesToRowTransformer] 'oldEntityState' argument is required");const c=mn(i),e=mn(n);p.afterAllChildrenInitialized(s);const y=p.methods.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id}),m=p.methods.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});if(!y)throw new Error("[addDifferencesToRowTransformer] The 'up' transformer trigger is missing from the parent");if(!m)throw new Error("[addDifferencesToRowTransformer] The 'down' transformer trigger is missing from the parent");e.forEach(v=>{const E=y.inputs.find($=>$.name===v.name),b=v.getDataType(null);let w=E,V;if(E)w.editable=!0;else{const $=ba.new(s);$.parent=y.toReference(),$.name=v.name,$.index=v.index,$.implements=[...v.implements.map(j=>j.toJSON())];const B=me($,o);B.hydrateAncestors(),s.add(B,H.Added),B.addSelfToProject(s),B.initChildren(s),w=B}if(!w.dataType||w.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(w.dataType.id)){const $=dr.new(s);$.parent=w.toReference();const B=me($,o);B.hydrateAncestors(),s.add(B,H.Added),B.addSelfToProject(s),B.initChildren(s),V=B}else V=w.dataType,V.editable=!0;b&&V.merge(v.getDataType(null),s),V.metaSync({editable:!1,deletable:!1},s),w.metaSync({editable:!1,deletable:!1},s)}),[...y.inputs].forEach(v=>{e.find(b=>b.name===v.name)||(v.editable=!0,v.remove({ignoreUpstream:!1},s),v.editable=!1)}),[...y.returnStatements].forEach(v=>{var E,b;if(!v.dataType||v.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(v.dataType.id)){const w=dr.new(s);w.entity=i.toReference(),w.parent=v.toReference();const V=me(w,o);V.hydrateAncestors(),s.add(V,H.Added),V.addSelfToProject(s),V.initChildren(s)}(!((E=v.dataType)!=null&&E.entity)||v.dataType.entity.type!==d.DefinitionEntity||v.dataType.entity.parent.id!==v.dataType.id)&&i.clone(s,v.dataType),DP((b=v.dataType)==null?void 0:b.entity,i,s),v.afterAllChildrenInitialized(s),v.outputs.forEach(w=>{const V=y.inputs.find($=>le(w,o)===le($,o));w.setValueWriter(V,s),V==null||V.addValueReader(w,s)})}),c.forEach(v=>{var B;const E=(B=v.knownVersions)==null?void 0:B.get(v.previousVersion),b=m.inputs.find(j=>j.name===v.name||!!E&&E.name===j.name),w=v.getDataType(null);let V=b,$;if(b)V.editable=!0,V.metaSync({name:v.name,codeName:v.codeName,description:v.description},s);else{const j=ba.new(s);j.parent=m.toReference(),j.name=v.name,j.codeName=v.codeName,j.description=v.description,j.index=v.index,j.implements=[v.toJSON(),...v.implements.map(K=>K.toJSON())];const F=me(j,o);F.hydrateAncestors(),s.add(F,H.Added),F.addSelfToProject(s),F.initChildren(s),V=F}if(V.dataType)$=V.dataType,$.editable=!0,$.merge(V.dataType,s);else{const j=dr.new(s);j.parent=V.toReference();const F=me(j,o);F.hydrateAncestors(),s.add(F,H.Added),F.addSelfToProject(s),F.initChildren(s),$=F}w&&$.merge(v.getDataType(null),s),$.metaSync({editable:!1,deletable:!1},s),V.metaSync({editable:!1,deletable:!1},s)}),[...m.inputs].forEach(v=>{c.find(b=>{var V;if(b.name===v.name)return!0;const w=(V=b.knownVersions)==null?void 0:V.get(b.previousVersion);if(w&&w.name===v.name)return!0})||(v.editable=!0,v.remove({ignoreUpstream:!1},s),v.editable=!1)}),[...m.returnStatements].forEach(v=>{var b,w,V,$;if(!v.dataType||v.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(v.dataType.id)){const B=dr.new(s);B.parent=v.toReference();const j=me(B,o);j.hydrateAncestors(),s.add(j,H.Added),j.addSelfToProject(s),j.initChildren(s)}let E=(b=v.dataType)==null?void 0:b.entity;(!E||(E==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id)&&(J.Logger.log("Cloning old entity state into new project with data-ype as parent: ",(w=v.dataType)==null?void 0:w.id," from new project: ",((V=v.dataType)==null?void 0:V.project.version)===o.version&&(($=v.dataType)==null?void 0:$.project.entities.length)===3),E=n.clone(s,v.dataType)),v.dataType.setEntity(E,s),v.afterAllChildrenInitialized(s),v.outputs.forEach(B=>{const j=m.inputs.find(F=>le(B,o)===le(F,o));B.setValueWriter(j,s),j==null||j.addValueReader(B,s)})})}function a4e(o,p,i,n,s={}){var F;const c=o.getBuiltIn(Re.SQL_ROW_TRANSFORMER),e=KI(le(p,o)+" row transformer",o.entities),y=c.implement(e,n),m=y.ownDeclaredProperties.find(K=>{var Y;return(Y=K.implements)==null?void 0:Y.find(ie=>ie.id===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.properties.definition.id)}),v=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id}),E=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});if(!m||!v||!E)throw new Error("Cannot find definition property on the new row transformer entity");if(m.defaultValue)m.defaultValue.setValueAsTypeSingle(p,n);else{const K=Yr.new(n);K.name=oe.EntityTemplate,K.valueAsTypeSingle=p.toJSON(),K.parent=m.toReference();const Y=me(K,o);Y.hydrateAncestors(),n.add(Y,H.Added),Y.addSelfToProject(n),Y.initChildren(n)}ix(o,y,p,i,n),J.Logger.log("BEFORE - changeSet.listAdded",n.listAdded.map(K=>{var ie,ee,de,ae,fe,ve,ue;const Y=o.get(K.id);return Y?le(Y,o):K.type===d.InputMap?"(not found) "+K.type+" "+K.id+" - declaration: "+((ie=K.declaration)==null?void 0:ie.type)+" "+((ee=K.declaration)==null?void 0:ee.id)+' "'+((de=K.declaration)==null?void 0:de.name)+`"
389
+ `)),J.Logger.log("Persisting new additions"),m.visit(async(v,E)=>{if(n.added[v.id]){J.Logger.log("Adding: ",v.id);try{const b=me(v,this);if(b.hydrateAncestors(),b.addSelfToProject(s),s.add(b,H.Added),!this.get(v.id))throw new Error(`Entity ${v.id} was not added to the project`)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),J.Logger.log("Persisting updates"),m.visit(async(v,E)=>{if(n.updated[v.id]){J.Logger.log("Updating: ",v.id);try{const b=this.get(v.id);b?(b.updateWithShallowTransfer(v,s),s.add(b,H.Updated)):J.Logger.warn(`Active version of ${v.id} not found when applying external changes`)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),J.Logger.log("Persisting removals"),m.visit(async(v,E)=>{if(n.removed[v.id]){J.Logger.log("Removing: ",v.id);try{const b=this.get(v.id);b&&b.remove({ignoreUpstream:!1},s)}catch(b){J.Logger.error("Error: ",b),J.Logger.error("Errored entity: ",v)}}}),s.open=!1,s}toBuiltInShallowRecord(){const i={};return Object.values(this.builtInInstances).forEach(n=>{const s=n.toShallowJSON();i[n.id]=s}),i}toShallowRecord(){const i={};return Object.values(this.instances).forEach(n=>{const s=n.toShallowJSON();i[n.id]=s}),i}toFullProjectTransfer(i){const n={shallowErrors:!1,...i},s=new Pn(void 0,{allBuiltInEntityIds:this.diggestedBuiltInBaseEntitiesIds});s.flatRecord=this.instances,s.order=Object.keys(s.flatRecord),s.orderEntities();const c={},e=[];return s.visit(y=>{try{const m=y.toShallowJSON();c[y.id]=m,e.push(y.id)}catch(m){if(J.Logger.error(`[toFullProjectTransfer] Error serializing ${y.type} ${y.id}`,m),!n.shallowErrors)throw m}}),{order:e,size:e.length,record:c}}async toFullProjectTransferAsync(i={}){const n={shallowErrors:!1,...i},s=J.YieldTracker.from(n),c=new Pn(void 0,{allBuiltInEntityIds:this.diggestedBuiltInBaseEntitiesIds});c.flatRecord=this.instances,c.order=Object.keys(c.flatRecord);const e=[];if(n.seenEntityMaps)for(const m of c.order){const v=n.seenEntityMaps.get(m)??m;this.diggestedBuiltInBaseEntitiesIds.has(v)}await c.orderEntitiesAsync({tracker:s});const y={};return await c.visitAsync(async m=>{try{if(this.diggestedBuiltInBaseEntitiesIds.has(m.id))return;const v=m.toShallowJSON({seenEntityMaps:n.seenEntityMaps});n.resetVersionOptions&&(v.version=Ct.UUID.uuid(),v.createdAt=n.resetVersionOptions.commonTimestamp||L().toISOString(),v.author=n.resetVersionOptions.author||Ct.sessionAuthor||"1",v.previousVersion=null),y[v.id]=v,e.push(v.id),n!=null&&n.onVisit&&await n.onVisit(v)}catch(v){if(J.Logger.error(`[toFullProjectTransferAsync] Error serializing ${m.type} ${m.id}`,v),!n.shallowErrors)throw v}},{tracker:s}),{order:e,size:e.length,record:y}}};I(Ct,"parentContext",tx),I(Ct,"sessionAuthor","1"),I(Ct,"repository",{APICreate:async(i,...n)=>i,APIUpdate:async(i,...n)=>i,APIDelete:async(i,...n)=>i,APIClone:async(i,...n)=>{},APILoad:async(i,...n)=>null,APILoadVersion:async(i,n,...s)=>null}),I(Ct,"type",d.Project),I(Ct,"USER_MANAGED_PARENT_TYPES",[]),I(Ct,"PARENT_TYPES",[...Ct.USER_MANAGED_PARENT_TYPES]),I(Ct,"MUTABLE_BASE_PROPERTIES",["name","description"]),I(Ct,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),I(Ct,"BASE_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,...Ct.INMUTABLE_BASE_PROPERTIES]),I(Ct,"MUTABLE_META_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,"x","y"]),I(Ct,"INMUTABLE_META_PROPERTIES",[...Ct.INMUTABLE_BASE_PROPERTIES]),I(Ct,"META_PROPERTIES",[...Ct.MUTABLE_META_PROPERTIES,...Ct.INMUTABLE_META_PROPERTIES]),I(Ct,"MUTABLE_UPSTREAM_PROPERTIES",[]),I(Ct,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),I(Ct,"UPSTREAM_PROPERTIES",[...Ct.MUTABLE_UPSTREAM_PROPERTIES,...Ct.INMUTABLE_UPSTREAM_PROPERTIES]),I(Ct,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),I(Ct,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),I(Ct,"DOWNSTREAM_PROPERTIES",[...Ct.MUTABLE_DOWNSTREAM_PROPERTIES,...Ct.INMUTABLE_DOWNSTREAM_PROPERTIES]),I(Ct,"PROPERTIES",[...Ct.META_PROPERTIES,...Ct.UPSTREAM_PROPERTIES,...Ct.DOWNSTREAM_PROPERTIES]);let x=Ct;class R1i extends Bi{constructor(p){super(ZT,p)}}class D1i extends Bi{constructor(i){super(lh,i);I(this,"autoexecutable",!0)}getEntityToMatchInputMap(i){return i.inputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(i){return i.inputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(i){return i.outputs.find(n=>{var s;return((s=n.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id})||null}getEntityToMatch(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"get-entity-to-match-validate-data"))){var e;const s=((e=this.project.requestActiveDynamicValue(i))==null?void 0:e.value)||null,c=s==null?void 0:s.valueAsTypeSingle;return n==null||n.attemptAutoclose("get-entity-to-match-validate-data",this.id),c}syncOperationInstance(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const s=[],c=[],e=[],y=[],m=this.getEntityToMatchInputMap(i);if(m){const{added:b,updated:w,removed:V,affected:$}=this.syncEntityToMatchInputMapDataType(m,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}const v=this.getDataToValidateInputMap(i);if(v){const{added:b,updated:w,removed:V,affected:$}=this.syncDataToValidateInputMapDataType(v,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}const E=this.getOutputDataOutputMap(i);if(E){const{added:b,updated:w,removed:V,affected:$}=this.syncOutputDataOutputMapDataType(E,n);s.push(...w),c.push(...b),e.push(...V),y.push(...$)}return n==null||n.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:D(s),added:D(c),removed:D(e),affected:D(y),self:i}}syncEntityToMatchInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var E,b,w,V,$,B,j,F,K,Y,ie,ee,de,ae,fe,ve,ue,ye;const s=[],c=[],e=[],y=[];if(((E=i.declaration)==null?void 0:E.id)!==Q.operation[Ce.Validate].inputs.entityToMatch.id)return n==null||n.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=((b=this.project.requestActiveDynamicValue(i))==null?void 0:b.value)||null,v=m==null?void 0:m.valueAsTypeSingle;if(!i.dataType){const Ve={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,parentRelationType:null,options:((w=i.declaration.dataType)==null?void 0:w.options)||null,implementationChooseOne:((V=i.declaration.dataType)==null?void 0:V.implementationChooseOne)||!1,staticEntities:(($=i.declaration.dataType)==null?void 0:$.staticEntities)??null,interactiveEntities:((B=i.declaration.dataType)==null?void 0:B.interactiveEntities)??null,actionEntities:((j=i.declaration.dataType)==null?void 0:j.actionEntities)??null,index:((F=i.declaration.dataType)==null?void 0:F.index)??null,isList:((K=i.declaration.dataType)==null?void 0:K.isList)||!1,foreignKeyAllowed:((Y=i.declaration.dataType)==null?void 0:Y.foreignKeyAllowed)??null,andChildrenGroup:null,orChildrenGroup:null,foreignKeyRef:null,asType:!0,entity:(v==null?void 0:v.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},_e=me(Ve,i.project);_e.hydrateAncestors(),_e.setParent(i,n),_e.initChildren(n),_e.setEntity(v,n),n==null||n.add(_e,H.Added),s.push(_e),i.setDataType(_e,n)}return(ue=i.dataType)==null||ue.metaSync({inferred:!0,like:!1,asType:!0,options:((ie=i.declaration.dataType)==null?void 0:ie.options)||null,implementationChooseOne:((ee=i.declaration.dataType)==null?void 0:ee.implementationChooseOne)||!1,staticEntities:((de=i.declaration.dataType)==null?void 0:de.staticEntities)??null,interactiveEntities:((ae=i.declaration.dataType)==null?void 0:ae.interactiveEntities)??null,actionEntities:((fe=i.declaration.dataType)==null?void 0:fe.actionEntities)??null,isList:((ve=i.declaration.dataType)==null?void 0:ve.isList)||!1},n),(ye=i.dataType)==null||ye.setEntity(v,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}syncDataToValidateInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var b,w,V;const s=[],c=[],e=[],y=[];if(((b=i.declaration)==null?void 0:b.id)!==Q.operation[Ce.Validate].inputs.dataToValidate.id)return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=this.getEntityToMatchInputMap(i.parent);if(!m)return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(m,n))return n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!i.dataType){const $={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,index:null,parentRelationType:null,options:null,implementationChooseOne:!1,foreignKeyAllowed:null,isList:!1,foreignKeyRef:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:i.toReference()},B=me($,i.project);B.setParent(i,n),B.initChildren(n),n==null||n.add(B,H.Added),s.push(B),i.setDataType(B,n)}(w=i.dataType)==null||w.metaSync({inferred:!0,like:!0,asType:!1},n);const E=this.getEntityToMatch(m,n);return(V=i.dataType)==null||V.setEntity(E,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}syncOutputDataOutputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var w,V,$,B;const s=[],c=[],e=[],y=[];if(((w=i.declaration)==null?void 0:w.id)!==Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id)return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const m=this.getEntityToMatchInputMap(i.parent);if(!m)return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(m,n))return n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const E=((V=this.project.requestActiveDynamicValue(m))==null?void 0:V.value)||null,b=(E==null?void 0:E.valueAsTypeSingle)||null;if(!i.dataType){const j={id:x.UUID.uuid(),version:x.UUID.uuid(),createdAt:(n==null?void 0:n.timestamp)||new Date().toISOString(),author:(n==null?void 0:n.author)||x.sessionAuthor,previousVersion:null,deleted:!1,deletable:!0,editable:!0,type:d.DataType,parentRelationType:null,options:null,foreignKeyRef:null,implementationChooseOne:!1,foreignKeyAllowed:null,staticEntities:null,interactiveEntities:null,index:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:(b==null?void 0:b.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},F=me(j,i.project);F.hydrateAncestors(),F.setParent(i,n),F.initChildren(n),F.setEntity(b,n),n==null||n.add(F,H.Added),s.push(F),i.setDataType(F,n)}return($=i.dataType)==null||$.metaSync({inferred:!0,like:!0,asType:!1},n),(B=i.dataType)==null||B.setEntity(b,n),i.dataType&&c.push(i.dataType),n==null||n.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:D(c),added:D(s),removed:D(e),affected:D(y),self:i.dataType}}inferInputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var c,e,y;if(((c=i.declaration)==null?void 0:c.id)===Q.operation[Ce.Validate].inputs.entityToMatch.id){const{added:m,updated:v,removed:E,affected:b}=n?this.syncEntityToMatchInputMapDataType(i,n):{added:[],updated:[],removed:[],affected:[]};return n==null||n.attemptAutoclose("infer-input-map-data-type",this.id),{updated:D(v),added:D(m),removed:D(E),affected:D(b),self:i.dataType}}if(((e=i.declaration)==null?void 0:e.id)===Q.operation[Ce.Validate].inputs.dataToValidate.id){const{added:m,updated:v,removed:E,affected:b}=this.syncDataToValidateInputMapDataType(i,n);return n==null||n.attemptAutoclose("infer-input-map-data-type",this.id),{updated:D(v),added:D(m),removed:D(E),affected:D(b),self:i.dataType}}const s=(y=i.declaration)==null?void 0:y.getDataType(n);if(s&&s.isResolved)return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:s};if(i.readsValue){const m=Td(i.readsValue,n);return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:m}}return n==null||n.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(i,n=this.project.addChangeSet(new Z(this.project,x.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var s;if(((s=i.declaration)==null?void 0:s.id)===Q.operation[Ce.Validate].dataType.entity.properties.outputEntity.id){const{added:c,updated:e,removed:y,affected:m}=this.syncOutputDataOutputMapDataType(i,n);return n==null||n.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:D(e),added:D(c),removed:D(y),affected:D(m),self:i.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class w1i extends Bi{constructor(p){super(h_,p)}}class O1i extends Bi{constructor(p){super(m_,p)}}class C1i extends Bi{constructor(p){super(T_,p)}}class _1i extends Bi{constructor(p){super(Rg,p)}}class V1i extends Bi{constructor(p){super(FA,p)}}class P1i extends Bi{constructor(p){super(lT,p)}}function WMe(o){const p=[new _Oe(o),new OOe(o),new COe(o),new R1i(o),new D1i(o),new _1i(o),new w1i(o),new C1i(o),new O1i(o),new V1i(o),new P1i(o)];return KV.forEach(i=>{p.some(n=>n.id===i.id)||p.push(new Bi(i,o))}),p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.operationDeclarations=p,p}class N1i extends No{constructor(i){super(In,i);I(this,"initialData");I(this,"id",Re.PERSISTED_ENTITY);I(this,"version","1");I(this,"name",Re.PERSISTED_ENTITY);I(this,"description",In.description);I(this,"type",d.BuiltInBaseEntity);I(this,"abstract",In.abstract);I(this,"static",In.static);I(this,"properties",[]);I(this,"methods",[]);I(this,"abstractMethods",[]);I(this,"extends",null);I(this,"errors",[]);I(this,"project");this.initialData=In,this.project=i,this.id=In.id,this.version=In.version,this.name=In.name,this.static=In.static,this.abstract=In.abstract,this.properties=this.initialData.properties.map(s=>{const c=me(s,this.project);return c.setParent(this,null),c.initChildren(null),c}),this.methods=this.initialData.methods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.abstractMethods=this.initialData.abstractMethods.map(s=>{const c=me(s,this.project);return c.parent=this,c}),this.initialData.extends&&(this.extends=me(this.initialData.extends,this.project));const n=this.properties.find(s=>s.id===Q["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!n)throw new Error("Path property not found in endpoint entity");n._codeNativeValueValidation=(s,c)=>ROe(s,c)}}const x1i=[];function zMe(o){const p=[new IOe(o),new wOe(o),new N1i(o)];return hP.forEach(i=>{!p.some(n=>n.id===i.id)&&!x1i.includes(i.id)&&p.push(new No(i,o))}),p.forEach(i=>{o.subscribeBuiltInInstance(i)}),o.builtInBaseEntities=p,p}function JMe(o){const p=[new ma(pe,o),new ma(lt,o),new ma(we,o),new ma(sa,o),new ma(ht,o),new ma(gt,o),new ma(at,o),new ma(Dl,o),new ma(zi,o)];return p.forEach(i=>{o.subscribeBuiltInInstance(i)}),o.primitives=p,p}function YMe(o){const p=[new Bi(kI,o)];return p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.globalEventActionDescriptors=p,p}function XMe(o){const p=[new Bi(rv,o),new Bi(Qc,o),new Bi(tv,o),new Bi(Vh,o),new Bi(Ph,o),new Bi(bI,o)];p.forEach(n=>{n.initChildren(null),o.subscribeBuiltInInstance(n)}),o.loopDeclarations=p;const i=[new Bi(VI,o),new Bi(iv,o),new Bi(RI,o),new Bi(WV,o),new Bi(YV,o),new Bi(AI,o)];return i.forEach(n=>{n.initChildren(null),o.subscribeBuiltInInstance(n)}),o.loopDeclarationsBodies=i,p}function QMe(o){const p=[new Id(gP,o)];return p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.valueDescriptors=p,p}function eGe(o){const p=[new Bi(TP,o),new Bi(mP,o),new Bi(vP,o),new Bi(EP,o)];return bP.forEach(i=>{p.some(n=>n.id===i.id)||p.push(new Bi(i,o))}),p.forEach(i=>{i.initChildren(null),o.subscribeBuiltInInstance(i)}),o.conditionDeclarations=p,p}function Lm(o){return o&&typeof o.then=="function"}function $1i(o,p){const i=new Pn(o[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),n=o.map(c=>c.id),s={};return o.forEach(c=>{s[c.id]=c}),i.order=n,i.flatRecord=s,i.orderEntities(),i.order.map(c=>i.flatRecord[c])}function L1i(o,p){const i=new Pn(Object.values(o)[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),n=Object.keys(o);return i.order=n,i.flatRecord=o,i.orderEntities(),i.order}async function B1i(o,p){const i=J.YieldTracker.from(p),n=new Pn(o[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),s=o.map(e=>e.id),c={};for(const e of o)c[e.id]=e,await i.tick();return n.order=s,n.flatRecord=c,await n.orderEntitiesAsync({tracker:i}),n.order.map(e=>n.flatRecord[e])}async function M1i(o,p){const i=J.YieldTracker.from(p),n=new Pn(Object.values(o)[0],{allBuiltInEntityIds:p.allBuiltInEntityIds}),s=Object.keys(o);return n.order=s,n.flatRecord=o,await n.orderEntitiesAsync({tracker:i}),n.order}class Pn{constructor(p,i={}){I(this,"order",[]);I(this,"flatRecord",{});I(this,"allBuiltInEntityIds");I(this,"onGoingVisits",{});I(this,"cachedReferences",{});if(i.allBuiltInEntityIds&&(this.allBuiltInEntityIds=i.allBuiltInEntityIds),!p)return;const n={asyncInitialOrder:!1,...i};n.asyncInitialOrder?this.flattenAsync(p).then(()=>{this.orderEntitiesAsync({...n}).then(()=>{var s;(s=n.onOrdered)==null||s.call(n)})}):(this.flatten(p),this.orderEntities())}flatten(p){this.allBuiltInEntityIds||(this.allBuiltInEntityIds=new Set(VR()));const i=D(Be(p,new Set(this.allBuiltInEntityIds),{ignoreBuiltInBaseEntities:!0,diggestedBuiltInBaseEntitiesIds:this.allBuiltInEntityIds})),n=new Set;for(const s of i)this.flatRecord[s.id]=s,n.add(s.id);this.order=Array.from(n)}async flattenAsync(p,i={}){const n=J.YieldTracker.from(i);this.allBuiltInEntityIds||(this.allBuiltInEntityIds=await PR({tracker:n}));const s=await _u(await Le(p,new Set(this.allBuiltInEntityIds),{ignoreBuiltInBaseEntities:!0,diggestedBuiltInBaseEntitiesIds:this.allBuiltInEntityIds,tracker:n}),{tracker:n}),c=new Set;for(const e of s)this.flatRecord[e.id]=e,c.add(e.id),await n.tick();this.order=Array.from(c)}moveEntityAfterDependencies(p){const i=this.cachedReferences[p.id]||vd(p,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});this.cachedReferences[p.id]=i;const{upstream:n}=i;for(const s of Object.keys(n)){const c=this.order.indexOf(s),e=this.order.indexOf(p.id);if(c>e)return this.order.splice(e,1),this.order.splice(c,0,p.id),!0}return!1}orderEntities(){let p=!1;for(let i=0;i<this.order.length;i++){const n=this.order[i],s=this.flatRecord[n];if(s||J.Logger.warn(`Entity with id ${n} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(s)){p=!0;break}}p&&this.orderEntities()}async orderEntitiesAsync(p={}){let i=!1;const n=J.YieldTracker.from(p);for(let s=0;s<this.order.length;s++){const c=this.order[s],e=this.flatRecord[c];if(e||J.Logger.warn(`Entity with id ${c} not found in flatRecord. Skipping...`),this.moveEntityAfterDependencies(e)){i=!0;break}await n.tick()}i&&await this.orderEntitiesAsync({tracker:n})}getUpstreamOngoingDependenciesVisits(p,i){const n=this.cachedReferences[p]||vd(this.flatRecord[p],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});this.cachedReferences[p]=n;const{upstream:s}=n,c={};return Object.entries(this.onGoingVisits[i]||{}).forEach(([e,y])=>{Object.keys(s).includes(e)&&(c[e]=y)}),c}getDownstreamOngoingDependenciesVisits(p,i){const n=Object.keys(this.onGoingVisits[i]||{}),s=new Set(n.flatMap(e=>{const y=this.cachedReferences[e]||vd(this.flatRecord[e],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});return this.cachedReferences[e]=y,Object.keys(y.downstream)})),c={};return Array.from(s).forEach(e=>{e===p&&(c[e]=this.onGoingVisits[i][e])}),c}async settlePromises(p,i){const n=Object.values(p);n.length&&await Promise.all(n),Object.keys(p).forEach(s=>{delete this.onGoingVisits[i][s]})}visit(p){const i=this.order;for(const n of i)p(this.flatRecord[n],this.flatRecord);return this}reverseVisit(p){const i=this.order.slice().reverse();for(const n of i)p(this.flatRecord[n],this.flatRecord);return this}async visitAsync(p,i={}){const{parallelise:n}={parallelise:!0,...i},s=J.YieldTracker.from(i),c=this.order;if(!n){for(const y of c){const m=p(this.flatRecord[y],this.flatRecord);Lm(m)&&await m,await s.tick()}return this}const e=Math.random().toString(36).substring(7);this.onGoingVisits[e]={};for(const y of c){const m=this.getUpstreamOngoingDependenciesVisits(y,e);Object.keys(m).length&&await this.settlePromises(m,e);const v=p(this.flatRecord[y],this.flatRecord);Lm(v)&&(this.onGoingVisits[e][y]=v),await s.tick()}return await this.settlePromises(this.onGoingVisits[e],e),this.onGoingVisits[e]={},this}async reverseVisitAsync(p,i={}){const{parallelise:n}={parallelise:!0,...i},s=J.YieldTracker.from(i),c=this.order.slice().reverse();if(!n){for(const y of c){const m=p(this.flatRecord[y],this.flatRecord);Lm(m)&&await m,await s.tick()}return this}const e=Math.random().toString(36).substring(7);this.onGoingVisits[e]={};for(const y of c){const m=this.getDownstreamOngoingDependenciesVisits(y,e);Object.keys(m).length&&await this.settlePromises(m,e);const v=p(this.flatRecord[y],this.flatRecord);Lm(v)&&(this.onGoingVisits[e][y]=v),await s.tick()}return await this.settlePromises(this.onGoingVisits[e],e),this.onGoingVisits[e]={},this}}const gc={},Bb={},Qm={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function tGe(o,p={enrich:!0,shallowErrors:!1},i){const n={enrich:!0,shallowErrors:!1,...p},{enrich:s,shallowErrors:c}=n,e=o.project,y=o.record,m=CR(o.project,{shallowErrors:c},i);m.instances[e.id]=m;const v=new Pn(e,{allBuiltInEntityIds:m.diggestedBuiltInBaseEntitiesIds}),E=new Set;y[e.id]=e,E.add(e.id);const b=L().toISOString();Object.values(y).forEach(V=>{!V||v.allBuiltInEntityIds.has(V.id)||E.add(V.id)}),v.order=Array.from(E),v.flatRecord=y,v.orderEntities();const w=s?m.addChangeSet(new Z(m,x.sessionAuthor,b,m,!0,"project-init-from-fetch-result")):null;return v.visit(V=>{if(V.id===m.id)return;const $=me(V,m);try{$.hydrateAncestors(),$.addSelfToProject(null);const B=vd(V);Object.keys(B.downstream).forEach(j=>{const F=m.get(j);F&&F.hydrateAncestors()})}catch(B){if(c)J.Logger.error("Error hydrating ancestors: ",B);else throw B}}),s?(v.visit(V=>{if(V.id===m.id)return;const $=m.get(V.id);$&&$.afterAllChildrenInitialized(w)}),m.afterAllChildrenInitialized(w)):df(m,b).forEach($=>{$.remove({ignoreUpstream:!0},null)}),m.instancesList.forEach(V=>{V.previousVersion=null}),m.initialized=!0,m.emit(zt.PROJECT_INITIALIZED,m,w),w==null||w.attemptAutoclose("project-init-from-fetch-result",m.id),m}async function G1i(o,p={enrich:!0,shallowErrors:!1,yieldEvery:100},i){const n={enrich:!0,shallowErrors:!1,yieldEvery:100,...p},{enrich:s,shallowErrors:c,yieldEvery:e}=n,y=o.project,m=o.record,v=await _R(o.project,{shallowErrors:c,yieldEvery:e},i);v.instances[y.id]=v;const E=new Pn(void 0,{allBuiltInEntityIds:v.diggestedBuiltInBaseEntitiesIds});await E.flattenAsync(y,{yieldEvery:e}),await E.orderEntitiesAsync({yieldEvery:e});const b=new Set;m[y.id]=y,b.add(y.id);const w=L().toISOString();let V=0;for(const[j,F]of Object.entries(m))!F||E.allBuiltInEntityIds.has(F.id)||(b.add(F.id),++V%e===0&&await J.yieldToEventLoop());E.order=Array.from(b),E.flatRecord=m,await E.orderEntitiesAsync();const $=s?v.addChangeSet(new Z(v,x.sessionAuthor,w,v,!0,"project-init-from-fetch-result")):null;await E.visitAsync(j=>{if(j.id===v.id)return;const F=me(j,v);try{F.hydrateAncestors(),F.addSelfToProject(null);const K=vd(j);Object.keys(K.downstream).forEach(Y=>{const ie=v.get(Y);ie&&ie.hydrateAncestors()})}catch(K){if(c)J.Logger.error("Error hydrating ancestors: ",K);else throw console.log("Error hydrating ancestors: ",K),K}},{yieldEvery:e}),s?(await E.visitAsync(j=>{if(j.id===v.id)return;const F=v.get(j.id);F&&F.afterAllChildrenInitialized($)},{yieldEvery:e}),v.afterAllChildrenInitialized($)):df(v,w).forEach(F=>{F.remove({ignoreUpstream:!0},null)});let B=0;for(const j of v.instancesList)j.previousVersion=null,++B%e===0&&await J.yieldToEventLoop();return v.initialized=!0,v.emit(zt.PROJECT_INITIALIZED,v,$),$==null||$.attemptAutoclose("project-init-from-fetch-result",v.id),v}async function k1i(o,p=Qm){const i={...Qm,...p};if(i.empty)return{data:{project:{id:o.id,deletable:!0,editable:!0,type:d.Project,version:x.UUID.uuid(),createdAt:L().toISOString(),author:x.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(i.mock){const s={...Yx};return s.id=o.id,{data:{project:s,record:{}}}}return J.Logger.log("Fetching project from external API"),new Promise(async s=>{try{if(i.onFetch){const c=await i.onFetch(o.id);if(c){s({data:c});return}}else s({data:null})}catch(c){J.Logger.error("Error fetching project: ",c),s({data:null})}})}function CR(o,p={shallowErrors:!1},i){const n=new x(o,i);JMe(n),zMe(n),WMe(n),YMe(n),XMe(n),QMe(n),eGe(n);const s=p.allBuiltInIds??new Set([...n.getAllBuiltInIds(),...VR()]);return n.diggestedBuiltInBaseEntitiesIds=s,s.forEach(c=>{if(!n.builtInInstances[c]&&n.instances[c])n.builtInInstances[c]=n.instances[c],delete n.instances[c];else if(!n.builtInInstances[c]&&!p.shallowErrors)throw new Error(`Built in entity was not properly initialized: ${c}`)}),n.instances[n.id]=n,n}async function _R(o,p={shallowErrors:!1},i){const n=J.YieldTracker.from(p),s=new x(o,i);JMe(s),zMe(s),await J.yieldToEventLoop(),WMe(s),await J.yieldToEventLoop(),YMe(s),XMe(s),QMe(s),eGe(s),await J.yieldToEventLoop();const c=p.allBuiltInIds??new Set([...s.getAllBuiltInIds(),...await PR()]);s.diggestedBuiltInBaseEntitiesIds=c;for(const e of c){if(!s.builtInInstances[e]&&s.instances[e])s.builtInInstances[e]=s.instances[e],delete s.instances[e];else if(!s.builtInInstances[e]&&!p.shallowErrors)throw new Error(`Built in entity was not properly initialized: ${e}`);s.instances[e]&&delete s.instances[e],await n.tick()}return s.instances[s.id]=s,s}function df(o,p){return o.instancesList.filter(n=>L(n.createdAt).isAfter(L(p)||!!n.previousVersion))}function j1i(o,{enrich:p,shallowErrors:i,...n}={enrich:!0,shallowErrors:!1},s){var V,$;const c=new Map,e=new Map;Object.keys(o.instances).forEach(B=>{if(o.diggestedBuiltInBaseEntitiesIds.has(B)){c.set(B,B),e.set(B,B);return}const j=o.get(B);if(!yx(j,{...o.instances,...o.builtInInstances}).every(ie=>!o.diggestedBuiltInBaseEntitiesIds.has(ie))){c.set(B,B),e.set(B,B);return}const Y=x.UUID.uuid();c.set(B,Y),e.set(Y,B)});const y=((V=n.resetVersionOptions)==null?void 0:V.commonTimestamp)??L().toISOString(),m=o.toShallowJSON({seenEntityMaps:c});m.previousVersion=null,m.createdAt=y,m.version=x.UUID.uuid(),m.author=(($=n.resetVersionOptions)==null?void 0:$.author)??(x.sessionAuthor||"1");const v=CR(m,{shallowErrors:i,allBuiltInIds:o.diggestedBuiltInBaseEntitiesIds},s);v.instances[v.id]=v;const E=p?v.addChangeSet(new Z(v,x.sessionAuthor,y,v,!0,"project-clone")):null,b=new Pn(o,{allBuiltInEntityIds:o.diggestedBuiltInBaseEntitiesIds}),w=w4e(b.flatRecord,c);return b.visit(B=>{var Y;const j=B.toShallowJSON({seenEntityMaps:c});j.previousVersion=null,j.createdAt=y,j.version=x.UUID.uuid(),j.author=((Y=n.resetVersionOptions)==null?void 0:Y.author)??(x.sessionAuthor||"1");const F=vd(j,w);if(Object.keys(F.upstream).length){let ie=!1;if(Object.keys(F.upstream).forEach(ee=>{if(!ie&&(!v.get(ee)||v.getDeleted(ee))){ie=!0;return}}),ie)return}const K=me(j,v);K.hydrateAncestors(),K.addSelfToProject(E),E==null||E.add(K,H.Added),n.onVisit&&n.onVisit(j)}),p?(b.visit(B=>{if(B.id===v.id)return;const j=v.get(c.get(B.id));j&&j.afterAllChildrenInitialized(E)}),v.afterAllChildrenInitialized(E)):df(v,y).forEach(j=>{j.remove({ignoreUpstream:!0},null)}),v.instancesList.forEach(B=>{B.previousVersion=null}),E==null||E.attemptAutoclose("project-clone",v.id),{project:v,maps:c}}async function U1i(o,{shallowErrors:p,...i}={shallowErrors:!1,yieldEvery:100}){var v,E;const n=J.YieldTracker.from(i),s=new Map,c=new Map;Object.keys(o.instances).forEach(b=>{if(o.diggestedBuiltInBaseEntitiesIds.has(b)){s.set(b,b),c.set(b,b);return}const w=x.UUID.uuid();s.set(b,w),c.set(w,b)});const e=((v=i.resetVersionOptions)==null?void 0:v.commonTimestamp)??L().toISOString(),y=o.toShallowJSON({seenEntityMaps:s});y.previousVersion=null,y.createdAt=e,y.version=x.UUID.uuid(),y.author=((E=i.resetVersionOptions)==null?void 0:E.author)??(x.sessionAuthor||"1");const m=await o.toFullProjectTransferAsync({tracker:n,seenEntityMaps:s,resetVersionOptions:i.resetVersionOptions,onVisit:i.onVisit});return{project:y,record:m.record,order:m.order,maps:s}}async function K1i(o,{enrich:p,shallowErrors:i,...n}={enrich:!0,shallowErrors:!1,yieldEvery:100},s){var $,B;const c=J.YieldTracker.from(n),e=new Map,y=new Map;Object.keys(o.instances).forEach(j=>{if(o.diggestedBuiltInBaseEntitiesIds.has(j)){e.set(j,j),y.set(j,j);return}const F=x.UUID.uuid();e.set(j,F),y.set(F,j)});const m=(($=n.resetVersionOptions)==null?void 0:$.commonTimestamp)??L().toISOString(),v=o.toShallowJSON({seenEntityMaps:e});v.previousVersion=null,v.createdAt=m,v.version=x.UUID.uuid(),v.author=((B=n.resetVersionOptions)==null?void 0:B.author)??(x.sessionAuthor||"1");const E=await _R(v,{shallowErrors:i,tracker:c},s);E.diggestedBuiltInBaseEntitiesIds=o.diggestedBuiltInBaseEntitiesIds,E.instances[E.id]=E;const b=p?E.addChangeSet(new Z(E,x.sessionAuthor,m,E,!0,"project-clone")):null,w=new Pn(void 0,{allBuiltInEntityIds:o.diggestedBuiltInBaseEntitiesIds}),V=await o.toFullProjectTransferAsync({tracker:c,seenEntityMaps:e,resetVersionOptions:n.resetVersionOptions,onVisit:n.onVisit});w.flatRecord=V.record,w.order=V.order,await w.visitAsync(j=>{var ie;if(o.diggestedBuiltInBaseEntitiesIds.has(j.id))return;const F=j;F.previousVersion=null,F.createdAt=m,F.version=x.UUID.uuid(),F.author=((ie=n.resetVersionOptions)==null?void 0:ie.author)??(x.sessionAuthor||"1");const K=vd(F,w.flatRecord);if(Object.keys(K.upstream).length){let ee=!1;if(Object.keys(K.upstream).forEach(de=>{if(!ee&&(!E.get(de)||E.getDeleted(de))){ee=!0;return}}),ee)return}const Y=me(F,E);Y.hydrateAncestors(),Y.addSelfToProject(b),b==null||b.add(Y,H.Added)},{tracker:c}),p?(await w.visitAsync(j=>{if(j.id===E.id||o.diggestedBuiltInBaseEntitiesIds.has(j.id))return;const F=E.get(e.get(j.id));F&&F.afterAllChildrenInitialized(b)},{tracker:c}),E.afterAllChildrenInitialized(b)):df(E,m).forEach(F=>{F.remove({ignoreUpstream:!0},null)});for(const j of E.instancesList)j.previousVersion=null,await c.tick();return b==null||b.attemptAutoclose("project-clone",E.id),{project:E,maps:e}}function iGe(o,{enrich:p,shallowErrors:i}={enrich:!0,shallowErrors:!1},n){const s=CR(o,{shallowErrors:i},n),c=L().toISOString(),e=p?s.addChangeSet(new Z(s,x.sessionAuthor,c,s,!0,"project-init")):null;e&&(e.type=FI.Automatic);const y=new Pn(o,{allBuiltInEntityIds:s.diggestedBuiltInBaseEntitiesIds});return y.visit(m=>{const v=me(m,s);v.hydrateAncestors(),v.addSelfToProject(e)}),p?(y.visit(m=>{if(m.id===s.id)return;const v=s.get(m.id);v&&v.afterAllChildrenInitialized(e)}),s.afterAllChildrenInitialized(e)):(df(s,c).forEach(E=>{E.remove({ignoreUpstream:!0},null)}),new Pn(s,{allBuiltInEntityIds:s.diggestedBuiltInBaseEntitiesIds}).visit(E=>{E.initialized=!0,E.captureVersion()})),s.initialized=!0,s.emit(zt.PROJECT_INITIALIZED,s,e),e==null||e.attemptAutoclose("project-init",s.id),s}async function F1i(o,{enrich:p,shallowErrors:i,yieldEvery:n}={enrich:!0,shallowErrors:!1,yieldEvery:100},s){const c=await _R(o,{shallowErrors:i,yieldEvery:n},s),e=L().toISOString(),y=p?c.addChangeSet(new Z(c,x.sessionAuthor,e,c,!0,"project-init")):null;y&&(y.type=FI.Automatic);const m=new Pn(void 0,{allBuiltInEntityIds:c.diggestedBuiltInBaseEntitiesIds});if(await m.flattenAsync(o,{yieldEvery:n}),await m.orderEntitiesAsync({yieldEvery:n}),await m.visitAsync(v=>{const E=me(v,c);E.hydrateAncestors(),E.addSelfToProject(y)},{yieldEvery:n}),p)await m.visitAsync(v=>{if(v.id===c.id)return;const E=c.get(v.id);E&&E.afterAllChildrenInitialized(y)},{yieldEvery:n}),c.afterAllChildrenInitialized(y);else{df(c,e).forEach(b=>{b.remove({ignoreUpstream:!0},null)});const E=new Pn(void 0,{allBuiltInEntityIds:c.diggestedBuiltInBaseEntitiesIds});await E.flattenAsync(c,{yieldEvery:n}),await E.orderEntitiesAsync({yieldEvery:n}),await E.visitAsync(b=>{b.initialized=!0,b.captureVersion()},{yieldEvery:n})}return c.initialized=!0,c.emit(zt.PROJECT_INITIALIZED,c,y),y==null||y.attemptAutoclose("project-init",c.id),c}async function S1i(o,p=Qm,i){const n={...Qm,...p};if(o.id&&gc[o.id]&&!n.ignoreCache)return gc[o.id];if(o.id&&Bb[o.id]&&!n.ignoreCache)return await Bb[o.id],gc[o.id];const s=k1i(o,n);o.id&&(Bb[o.id]=s);const c=await s;if(c.data){let e;return n.mock?e=iGe(Yx,{enrich:!!n.enrich},i):c.data instanceof x?e=c.data:e=tGe(c.data,{enrich:!!n.enrich},i),gc[o.id]=e,o.id&&delete Bb[o.id],e}return null}function q1i(o){return gc[o.id]&&delete gc[o.id],null}function VR(){const o=new Set;return new Set(IP.flatMap(i=>Be(i,o)).map(i=>i.id))}function eo(o){return[...o.calledByEntry||[],...o.calledByError||[],...o.calledBySuccess||[]].filter(p=>p.type!==d.GenericReference)}function rGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[o,...o.inputs.flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.error?Be(o.error,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function nGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p):[],...o.writesValues.flatMap(n=>Be(n,p,i)),...o.implements.flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function aGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[o,...o.outputs.flatMap(n=>Be(n,p,i)),...o.throws?Be(o.throws,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.readsValue?Be(o.readsValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function sGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[o,...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i)),...o.allPropertiesImplement?Be(o.allPropertiesImplement,p,i):[],...o.additionalPropertiesDataType?Be(o.additionalPropertiesDataType,p,i):[],...o.extends?Be(o.extends,p,i):[]]}function lGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Condition)throw new Error("Entity must be a condition to be flattened");return[o,...(o.andChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.orChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function oGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[o,...o.outputs.flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.throws?Be(o.throws,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function dGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[o,...o.extends?Be(o.extends,p,i):[],...(o.implements||[]).flatMap(n=>Be(n,p,i)),...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i)),...o.allPropertiesImplement?Be(o.allPropertiesImplement,p,i):[],...o.additionalPropertiesDataType?Be(o.additionalPropertiesDataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function uGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DataType)throw new Error("Entity must be a data type to be flattened");return[o,...(o.andChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...(o.orChildrenGroup||[]).flatMap(n=>Be(n,p,i)),...o.entity?Be(o.entity,p,i):[],...o.foreignKeyRef?Be(o.foreignKeyRef,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function pGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function cGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.calls||[]).flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.implements?Be(o.implements,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function fGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.calls||[]).flatMap(n=>Be(n,p,i)),...o.implements?Be(o.implements,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function yGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InputMap)throw new Error("Entity must be an input map to be flattened");return[o,...o.readsValue?Be(o.readsValue,p,i):[],...o.declaration?Be(o.declaration,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function hGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[o,...(o.functions||[]).flatMap(n=>Be(n,p,i)),...(o.events||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function mGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function TGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[o,...o.valueAsTypeSingle?Be(o.valueAsTypeSingle,p,i):[],...o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)?o.valueAsTypeList.flatMap(n=>Be(n,p,i)):[],...o.parent?Be(o.parent,p,i):[]]}function vGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Loop)throw new Error("Entity must be a loop to be flattened");return[o,...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.body?Be(o.body,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function EGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Operation)throw new Error("Entity must be an operation to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function bGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.OutputMap)throw new Error("Entity must be an output map to be flattened");return[o,...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.declaration?Be(o.declaration,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function AGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[o,...(o.properties||[]).flatMap(n=>Be(n,p,i)),...(o.methods||[]).flatMap(n=>Be(n,p,i)),...(o.abstractMethods||[]).flatMap(n=>Be(n,p,i))]}function gGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Project)throw new Error("Entity must be a project to be flattened");return[o,...(o.entities||[]).flatMap(n=>Be(n,p,i)),...(o.functions||[]).flatMap(n=>Be(n,p,i)),...(o.events||[]).flatMap(n=>Be(n,p,i)),...(o.projects||[]).flatMap(n=>Be(n,p,i)),...(o.variableDeclarations||[]).flatMap(n=>Be(n,p,i)),...(o.variableInstances||[]).flatMap(n=>Be(n,p,i)),...(o.operations||[]).flatMap(n=>Be(n,p,i)),...(o.conditions||[]).flatMap(n=>Be(n,p,i)),...(o.functionCalls||[]).flatMap(n=>Be(n,p,i)),...(o.projects||[]).flatMap(n=>Be(n,p,i)),...(o.loops||[]).flatMap(n=>Be(n,p,i)),...(o.searches||[]).flatMap(n=>Be(n,p,i))]}function IGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Property)throw new Error("Entity must be a property to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function RGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[o,...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.throws?Be(o.throws,p,i):[],...o.readsValue?Be(o.readsValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function DGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Search)throw new Error("Entity must be a search to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputsDeclarations||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...o.error?Be(o.error,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.parent?Be(o.parent,p,i):[]]}function wGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[o,...o.defaultValue?Be(o.defaultValue,p,i):[],...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function OGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.internalCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.dataType?Be(o.dataType,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function CGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[o,...(o.successCalls||[]).flatMap(n=>Be(n,p,i)),...(o.errorCalls||[]).flatMap(n=>Be(n,p,i)),...(o.inputs||[]).flatMap(n=>Be(n,p,i)),...(o.outputs||[]).flatMap(n=>Be(n,p,i)),...(o.internalCalls||[]).flatMap(n=>Be(n,p,i)),...(o.writesValues||[]).flatMap(n=>Be(n,p,i)),...o.readsValue?Be(o.readsValue,p,i):[],...o.defaultValue?Be(o.defaultValue,p,i):[],...(eo(o)||[]).flatMap(n=>Be(n,p,i)),...o.declaration?Be(o.declaration,p,i):[],...o.parent?Be(o.parent,p,i):[]]}function Be(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(!o)throw new Error("Entity must be defined to be flattened");if(o.type===d.GenericReference)return[];const n=i.ignoreBuiltInBaseEntities?i.diggestedBuiltInBaseEntitiesIds??new Set(VR()):new Set;if(i.diggestedBuiltInBaseEntitiesIds=n,i.ignoreBuiltInBaseEntities&&(Zn.includes(o.type)||n.has(o.id)))return[];if(p.has(o.id))return[];switch(o.type){case d.FunctionCall:return pGe(o,p,i);case d.Operation:return EGe(o,p,i);case d.Condition:return lGe(o,p,i);case d.Loop:return vGe(o,p,i);case d.Search:return DGe(o,p,i);case d.GlobalEvent:return fGe(o,p,i);case d.ReturnStatement:return RGe(o,p,i);case d.ContinueStatement:return oGe(o,p,i);case d.BreakStatement:return aGe(o,p,i);case d.VariableDeclaration:return OGe(o,p,i);case d.DefinitionEntity:return dGe(o,p,i);case d.FunctionDeclaration:return cGe(o,p,i);case d.Project:return gGe(o,p,i);case d.ActionDescriptor:return rGe(o,p,i);case d.ArgumentDeclaration:return nGe(o,p,i);case d.ValueDescriptor:return wGe(o,p,i);case d.InputMap:return yGe(o,p,i);case d.OutputMap:return bGe(o,p,i);case d.DataType:return uGe(o,p,i);case d.InstalledProject:return hGe(o,p,i);case d.InternalCall:return mGe(o,p,i);case d.LiteralValue:return TGe(o,p,i);case d.Property:return IGe(o,p,i);case d.VariableInstance:return CGe(o,p,i);case d.BuiltInBaseEntity:return i.ignoreBuiltInBaseEntities?[]:sGe(o,p,i);case d.PrimitiveEntity:return i.ignoreBuiltInBaseEntities?[]:AGe(o,p,i)}return[]}async function PR(o={}){const p=new Set,i=J.YieldTracker.from(o),n=new Set;for(const s of IP){const c=await Le(s,p,{ignoreBuiltInBaseEntities:!1,tracker:i});for(const e of c)n.add(e.id),await i.tick()}return n}function to(o){return[...o.calledByEntry||[],...o.calledByError||[],...o.calledBySuccess||[]].filter(p=>p.type!==d.GenericReference)}async function _Ge(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.inputs)s.push(...await Le(e,p,c));return o.dataType&&s.push(...await Le(o.dataType,p,c)),o.error&&s.push(...await Le(o.error,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function VGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));for(const e of o.writesValues||[])s.push(...await Le(e,p,c));for(const e of o.implements||[])s.push(...await Le(e,p,c));return s}async function PGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BreakStatement)throw new Error("Entity must be a break statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));o.parent&&s.push(...await Le(o.parent,p,c)),o.throws&&s.push(...await Le(o.throws,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return s}async function NGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties||[])s.push(...await Le(e,p,c));for(const e of o.methods||[])s.push(...await Le(e,p,c));for(const e of o.abstractMethods||[])s.push(...await Le(e,p,c));return o.allPropertiesImplement&&s.push(...await Le(o.allPropertiesImplement,p,c)),o.additionalPropertiesDataType&&s.push(...await Le(o.additionalPropertiesDataType,p,c)),o.extends&&s.push(...await Le(o.extends,p,c)),s}async function xGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Condition)throw new Error("Entity must be a condition to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.andChildrenGroup&&Array.isArray(o.andChildrenGroup))for(const y of o.andChildrenGroup)s.push(...await Le(y,p,c));if(o.orChildrenGroup&&Array.isArray(o.orChildrenGroup))for(const y of o.orChildrenGroup)s.push(...await Le(y,p,c));for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function $Ge(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.throws&&s.push(...await Le(o.throws,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),s}async function LGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties)s.push(...await Le(e,p,c));for(const e of o.methods)s.push(...await Le(e,p,c));for(const e of o.abstractMethods)s.push(...await Le(e,p,c));for(const e of o.implements)s.push(...await Le(e,p,c));return o.extends&&s.push(...await Le(o.extends,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),o.additionalPropertiesDataType&&s.push(...await Le(o.additionalPropertiesDataType,p,c)),o.allPropertiesImplement&&s.push(...await Le(o.allPropertiesImplement,p,c)),s}async function BGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.DataType)throw new Error("Entity must be a data type to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.foreignKeyRef&&s.push(...await Le(o.foreignKeyRef,p,c)),o.entity&&s.push(...await Le(o.entity,p,c)),o.orChildrenGroup)for(const e of o.orChildrenGroup)s.push(...await Le(e,p,c));if(o.andChildrenGroup)for(const e of o.andChildrenGroup)s.push(...await Le(e,p,c));return s}async function MGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionCall)throw new Error("Entity must be a function call to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function GGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.implements&&s.push(...await Le(o.implements,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));for(const e of o.inputs)s.push(...await Le(e,p,c));for(const e of o.calls)s.push(...await Le(e,p,c));return s}async function kGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.GlobalEvent)throw new Error("Entity must be a global event to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.implements&&s.push(...await Le(o.implements,p,c));for(const e of o.inputs)s.push(...await Le(e,p,c));for(const e of o.calls)s.push(...await Le(e,p,c));return s}async function jGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InputMap)throw new Error("Entity must be an input map to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.parent&&s.push(...await Le(o.parent,p,c)),o.declaration&&s.push(...await Le(o.declaration,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),s}async function UGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InstalledProject)throw new Error("Entity must be an installed project to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.functions)s.push(...await Le(e,p,c));for(const e of o.events)s.push(...await Le(e,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function KGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.InternalCall)throw new Error("Entity must be an internal call to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function FGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.LiteralValue)throw new Error("Entity must be a literal value to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};if(delete c.yieldEvery,o.valueAsTypeSingle&&s.push(...await Le(o.valueAsTypeSingle,p,c)),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList))for(const e of o.valueAsTypeList)s.push(...await Le(e,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function SGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Loop)throw new Error("Entity must be a loop to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.body&&s.push(...await Le(o.body,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),s}async function qGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Operation)throw new Error("Entity must be an operation to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function ZGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.OutputMap)throw new Error("Entity must be an output map to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.writesValues)s.push(...await Le(e,p,c));return o.declaration&&s.push(...await Le(o.declaration,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function HGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.properties)s.push(...await Le(e,p,c));for(const e of o.methods)s.push(...await Le(e,p,c));for(const e of o.abstractMethods)s.push(...await Le(e,p,c));return s}async function WGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Project)throw new Error("Entity must be a project to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const e of o.entities)s.push(...await Le(e,p,c));for(const e of o.functions)s.push(...await Le(e,p,c));for(const e of o.events)s.push(...await Le(e,p,c));for(const e of o.projects)s.push(...await Le(e,p,c));for(const e of o.variableDeclarations)s.push(...await Le(e,p,c));for(const e of o.variableInstances)s.push(...await Le(e,p,c));for(const e of o.operations)s.push(...await Le(e,p,c));for(const e of o.conditions)s.push(...await Le(e,p,c));for(const e of o.functionCalls)s.push(...await Le(e,p,c));for(const e of o.projects)s.push(...await Le(e,p,c));for(const e of o.loops)s.push(...await Le(e,p,c));for(const e of o.searches)s.push(...await Le(e,p,c));return s}async function zGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Property)throw new Error("Entity must be a property to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function JGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.outputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.throws&&s.push(...await Le(o.throws,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function YGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.Search)throw new Error("Entity must be a search to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c));for(const y of o.inputsDeclarations)s.push(...await Le(y,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function XGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};return delete c.yieldEvery,o.defaultValue&&s.push(...await Le(o.defaultValue,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.parent&&s.push(...await Le(o.parent,p,c)),s}async function QGe(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.dataType&&s.push(...await Le(o.dataType,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));for(const y of o.internalCalls)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),s}async function e4e(o,p=new Set,i={ignoreBuiltInBaseEntities:!1}){if(p.has(o.id))return[];if(p.add(o.id),o.type!==d.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");const n=J.YieldTracker.from(i),s=[o];await n.tick();const c={...i,tracker:n};delete c.yieldEvery;for(const y of o.inputs)s.push(...await Le(y,p,c));for(const y of o.outputs)s.push(...await Le(y,p,c));o.error&&s.push(...await Le(o.error,p,c)),o.readsValue&&s.push(...await Le(o.readsValue,p,c)),o.defaultValue&&s.push(...await Le(o.defaultValue,p,c));const e=to(o);for(const y of e)s.push(...await Le(y,p,c));for(const y of o.successCalls)s.push(...await Le(y,p,c));for(const y of o.errorCalls)s.push(...await Le(y,p,c));for(const y of o.writesValues)s.push(...await Le(y,p,c));for(const y of o.internalCalls)s.push(...await Le(y,p,c));return o.parent&&s.push(...await Le(o.parent,p,c)),o.declaration&&s.push(...await Le(o.declaration,p,c)),s}async function Le(o,p=new Set,i={ignoreBuiltInBaseEntities:!1,yieldEvery:100}){const n={...i,ignoreBuiltInBaseEntities:i.ignoreBuiltInBaseEntities??!1};if(!o)throw new Error("Entity must be defined to be flattened");if(o.type===d.GenericReference)return[];const s=J.YieldTracker.from(n);n.tracker=s,n.yieldEvery!==void 0&&delete n.yieldEvery;const c=n.ignoreBuiltInBaseEntities?n.diggestedBuiltInBaseEntitiesIds??new Set(await PR(n)):new Set;if(n.diggestedBuiltInBaseEntitiesIds=c,n.ignoreBuiltInBaseEntities&&(Zn.includes(o.type)||c.has(o.id)))return[];if(p.has(o.id))return[];switch(o.type){case d.FunctionCall:return MGe(o,p,n);case d.Operation:return qGe(o,p,n);case d.Condition:return xGe(o,p,n);case d.Loop:return SGe(o,p,n);case d.Search:return YGe(o,p,n);case d.GlobalEvent:return kGe(o,p,n);case d.ReturnStatement:return JGe(o,p,n);case d.ContinueStatement:return $Ge(o,p,n);case d.BreakStatement:return PGe(o,p,n);case d.VariableDeclaration:return QGe(o,p,n);case d.DefinitionEntity:return LGe(o,p,n);case d.FunctionDeclaration:return GGe(o,p,n);case d.Project:return WGe(o,p,n);case d.ActionDescriptor:return _Ge(o,p,n);case d.ArgumentDeclaration:return VGe(o,p,n);case d.ValueDescriptor:return XGe(o,p,n);case d.InputMap:return jGe(o,p,n);case d.OutputMap:return ZGe(o,p,n);case d.DataType:return BGe(o,p,n);case d.InstalledProject:return UGe(o,p,n);case d.InternalCall:return KGe(o,p,n);case d.LiteralValue:return FGe(o,p,n);case d.Property:return zGe(o,p,n);case d.VariableInstance:return e4e(o,p,n);case d.BuiltInBaseEntity:return n.ignoreBuiltInBaseEntities?[]:NGe(o,p,n);case d.PrimitiveEntity:return n.ignoreBuiltInBaseEntities?[]:HGe(o,p,n)}return[]}function t4e(o){return o==null||o===""}function Z1i(o){return o===null}function Tn(o){return o!=null&&o.valueAsType?!1:t4e(o==null?void 0:o.value)}function $o(o){return o?o.valueAsType===null&&o.value===null:!1}function i4e(o,p){if(o===p||!o&&!p)return!0;if(!o||!p||o.name===oe.EntityTemplate&&p.name!==oe.EntityTemplate||p.name===oe.EntityTemplate&&o.name!==oe.EntityTemplate)return!1;if(o.name===oe.ActionDescriptor&&p.name!==oe.ActionDescriptor||p.name===oe.ActionDescriptor&&o.name!==oe.ActionDescriptor)return!1;if(o.valueAsTypeSingle&&!p.valueAsTypeSingle||p.valueAsTypeSingle&&!o.valueAsTypeSingle)return!1;if(o.valueAsTypeList&&!p.valueAsTypeList||p.valueAsTypeList&&!o.valueAsTypeList)return!1;if(o.valueAsTypeSingle&&p.valueAsTypeSingle){if(o.valueAsTypeSingle.id!==p.valueAsTypeSingle.id)return!1}else if(o.valueAsTypeList&&p.valueAsTypeList){if(o.valueAsTypeList.length!==p.valueAsTypeList.length)return!1;for(let i=0;i<o.valueAsTypeList.length;i++)if(o.valueAsTypeList[i].id!==p.valueAsTypeList[i].id)return!1}else if(!o.valueAsType&&!p.valueAsType&&o.value!==p.value)return!1;return!0}function r4e(o,p,i){if(!i)throw new Error("[checkIsRowTransformerUpToDate] 'lastPublishedEntityVersion' argument is required");if(!p)throw new Error("[checkIsRowTransformerUpToDate] 'entity' argument is required");if(!o)throw new Error("[checkIsRowTransformerUpToDate] 'newestOpenRowTransformer' argument is required");let n=!0;const s=o.methods.find(c=>{var e;return((e=c.implements)==null?void 0:e.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id});if(s?(mn(i).forEach(c=>{const e=s.inputs.find(y=>y.name===c.name);e&&ai(e.getDataType(null),c.getDataType(null)).compatible||(n=!1)}),s.returnStatements.forEach(c=>{!c.dataType||!c.dataType.entity||c.dataType.entity.type!==d.DefinitionEntity?n=!1:Sm(c.dataType.entity,p)||(n=!1)})):n=!1,n===null||n){const c=o.methods.find(e=>{var y;return((y=e.implements)==null?void 0:y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});c?(mn(p).forEach(e=>{const y=c.inputs.find(m=>m.name===e.name);y&&ai(y.getDataType(null),e.getDataType(null)).compatible||(n=!1)}),c.returnStatements.forEach(e=>{!e.dataType||!e.dataType.entity||e.dataType.entity.type!==d.DefinitionEntity?n=!1:Sm(e.dataType.entity,i)||(n=!1)})):n=!1}return{isPreexistingRowTransformerUpToDate:n}}function n4e(o,p,i){const n={changesSinceLastPublication:!1,rowTransformerNeeded:!1,newRowTransformerNeeded:!1,newestOpenRowTransformer:null,newRequiredProperties:[],newNonRequiredProperties:[],deletedProperties:[],lastPublishedEntityVersion:null,updatedEntityVersion:i,propChanges:new Map,isPreexistingRowTransformerUpToDate:null,extendedEntities:[]},c=o.entities.filter(F=>{var ie;if(F.id===i.id)return!1;let K=!1,Y=F;for(;Y;){if(((ie=Y.extends)==null?void 0:ie.id)===i.id){K=!0;break}if(Y.extends&&Y.extends.type===d.DefinitionEntity)Y=Y.extends;else break}return K}).map(F=>n4e(o,p,F));if(!p)return{...n,changesSinceLastPublication:!0,extendedEntities:c};const e=p.get(i.id);if(!e)return{...n,changesSinceLastPublication:!0,extendedEntities:c};const y=p.entities.filter(F=>Wi(F,Re.SQL_ROW_TRANSFORMER)),v=o.entities.filter(F=>{var ee;if(!Wi(F,Re.SQL_ROW_TRANSFORMER)||y.find(de=>de.id===F.id))return!1;const Y=F.properties.find(de=>!!de.implements.find(ae=>Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.properties.definition.id===ae.id));if(!Y)return!1;const ie=(ee=Y.defaultValue)==null?void 0:ee.valueAsType;return ie?ie.id===i.id:!1}).sort((F,K)=>L(F.createdAt).isAfter(L(K.createdAt))?-1:1)[0]||null,E=new Map;let b=!1;const w=mn(i).filter(F=>mn(e).find(ie=>ie.id===F.id)?!1:!Ta(F.getDataType(null))),V=mn(i).filter(F=>mn(e).find(ie=>ie.id===F.id)?!1:!!Ta(F.getDataType(null))),$=mn(e).filter(F=>!mn(i).find(Y=>Y.id===F.id));mn(i).filter(F=>{var ue,ye,Ve,_e,xe,Pe,Me,Se,je,Ze,Ye;const K=mn(e).find(st=>st.id===F.id);let Y=!1;if(!K)return!1;const ie=Dy(F.dataType,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on current property '${F.name}' (${F.id}). 'andChildrenGroup' with more than one child is not supported for SQL column properties.`),ee=Dy(K.dataType,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on last published property '${F.name}' (${F.id}). 'andChildrenGroup' with more than one child is not supported for SQL column properties.`),de=dA(ie,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on current property '${F.name}' (${F.id}). 'orChildrenGroup' with multiple non-null children is not supported for SQL column properties.`),ae=dA(ee,!0,`[resolveSQLMigrationsDiffs] Unsupported data-type structure on last published property '${F.name}' (${F.id}). 'orChildrenGroup' with multiple non-null children is not supported for SQL column properties.`);if(((ue=de==null?void 0:de.foreignKeyRef)==null?void 0:ue.id)!==((ye=ae==null?void 0:ae.foreignKeyRef)==null?void 0:ye.id)){const st=de==null?void 0:de.foreignKeyRef,dt=ae==null?void 0:ae.foreignKeyRef;E.set(F.id,{...E.get(F.id)||{},newForeignKeyRef:st||void 0,oldForeignKeyRef:dt||void 0,property:F,oldProperty:K}),Y=!0,b=!0}else((Ve=de==null?void 0:de.entity)==null?void 0:Ve.id)!==((_e=ae==null?void 0:ae.entity)==null?void 0:_e.id)&&(((xe=de==null?void 0:de.entity)==null?void 0:xe.id)===Q["primitive-entity"].string.id||((Pe=ae==null?void 0:ae.entity)==null?void 0:Pe.id)===Q["primitive-entity"].date.id&&((Me=de==null?void 0:de.entity)==null?void 0:Me.id)===Q["primitive-entity"].number.id?E.set(F.id,{...E.get(F.id)||{},castableDataTypeEntity:{fromId:((Se=ae==null?void 0:ae.entity)==null?void 0:Se.id)||"",toId:((je=de==null?void 0:de.entity)==null?void 0:je.id)||""},property:F,oldProperty:K}):(E.set(F.id,{...E.get(F.id)||{property:F},nonCastableDataTypeEntity:{fromId:((Ze=ae==null?void 0:ae.entity)==null?void 0:Ze.id)||"",toId:((Ye=de==null?void 0:de.entity)==null?void 0:Ye.id)||""},property:F,oldProperty:K}),b=!0),Y=!0);F.name!==(K==null?void 0:K.name)&&(E.set(F.id,{...E.get(F.id)||{},nameChange:{from:(K==null?void 0:K.name)||"",to:F.name},property:F,oldProperty:K}),Y=!0);const fe=Ta(K.getDataType(null)),ve=Ta(F.getDataType(null));return ve!==fe&&(E.set(F.id,{...E.get(F.id)||{},requiredChange:{from:!fe,to:!ve},property:F,oldProperty:K}),ve||(b=!0),Y=!0),Y}),w.length>0&&(b=!0);let B=null;v&&b&&(B=r4e(v,i,e).isPreexistingRowTransformerUpToDate);const j=i.name!==e.name?{from:e.name,to:i.name}:void 0;return{...n,changesSinceLastPublication:E.size>0||!!$.length||!!w.length||!!V.length||b,rowTransformerNeeded:b,newestOpenRowTransformer:v,nameChange:j,newRequiredProperties:w,newNonRequiredProperties:V,deletedProperties:$,lastPublishedEntityVersion:e,propChanges:E,newRowTransformerNeeded:b&&!v,isPreexistingRowTransformerUpToDate:B,extendedEntities:c}}function ix(o,p,i,n,s){if(!o)throw new Error("[addDifferencesToRowTransformer] 'project' argument is required");if(!p)throw new Error("[addDifferencesToRowTransformer] 'transformer' argument is required");if(!i)throw new Error("[addDifferencesToRowTransformer] 'newEntityState' argument is required");if(!n)throw new Error("[addDifferencesToRowTransformer] 'oldEntityState' argument is required");const c=mn(i),e=mn(n);p.afterAllChildrenInitialized(s);const y=p.methods.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id}),m=p.methods.find(v=>{var E;return((E=v.implements)==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});if(!y)throw new Error("[addDifferencesToRowTransformer] The 'up' transformer trigger is missing from the parent");if(!m)throw new Error("[addDifferencesToRowTransformer] The 'down' transformer trigger is missing from the parent");e.forEach(v=>{const E=y.inputs.find($=>$.name===v.name),b=v.getDataType(null);let w=E,V;if(E)w.editable=!0;else{const $=ba.new(s);$.parent=y.toReference(),$.name=v.name,$.index=v.index,$.implements=[...v.implements.map(j=>j.toJSON())];const B=me($,o);B.hydrateAncestors(),s.add(B,H.Added),B.addSelfToProject(s),B.initChildren(s),w=B}if(!w.dataType||w.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(w.dataType.id)){const $=dr.new(s);$.parent=w.toReference();const B=me($,o);B.hydrateAncestors(),s.add(B,H.Added),B.addSelfToProject(s),B.initChildren(s),V=B}else V=w.dataType,V.editable=!0;b&&V.merge(v.getDataType(null),s),V.metaSync({editable:!1,deletable:!1},s),w.metaSync({editable:!1,deletable:!1},s)}),[...y.inputs].forEach(v=>{e.find(b=>b.name===v.name)||(v.editable=!0,v.remove({ignoreUpstream:!1},s),v.editable=!1)}),[...y.returnStatements].forEach(v=>{var E,b;if(!v.dataType||v.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(v.dataType.id)){const w=dr.new(s);w.entity=i.toReference(),w.parent=v.toReference();const V=me(w,o);V.hydrateAncestors(),s.add(V,H.Added),V.addSelfToProject(s),V.initChildren(s)}(!((E=v.dataType)!=null&&E.entity)||v.dataType.entity.type!==d.DefinitionEntity||v.dataType.entity.parent.id!==v.dataType.id)&&i.clone(s,v.dataType),DP((b=v.dataType)==null?void 0:b.entity,i,s),v.afterAllChildrenInitialized(s),v.outputs.forEach(w=>{const V=y.inputs.find($=>le(w,o)===le($,o));w.setValueWriter(V,s),V==null||V.addValueReader(w,s)})}),c.forEach(v=>{var B;const E=(B=v.knownVersions)==null?void 0:B.get(v.previousVersion),b=m.inputs.find(j=>j.name===v.name||!!E&&E.name===j.name),w=v.getDataType(null);let V=b,$;if(b)V.editable=!0,V.metaSync({name:v.name,codeName:v.codeName,description:v.description},s);else{const j=ba.new(s);j.parent=m.toReference(),j.name=v.name,j.codeName=v.codeName,j.description=v.description,j.index=v.index,j.implements=[v.toJSON(),...v.implements.map(K=>K.toJSON())];const F=me(j,o);F.hydrateAncestors(),s.add(F,H.Added),F.addSelfToProject(s),F.initChildren(s),V=F}if(V.dataType)$=V.dataType,$.editable=!0,$.merge(V.dataType,s);else{const j=dr.new(s);j.parent=V.toReference();const F=me(j,o);F.hydrateAncestors(),s.add(F,H.Added),F.addSelfToProject(s),F.initChildren(s),$=F}w&&$.merge(v.getDataType(null),s),$.metaSync({editable:!1,deletable:!1},s),V.metaSync({editable:!1,deletable:!1},s)}),[...m.inputs].forEach(v=>{c.find(b=>{var V;if(b.name===v.name)return!0;const w=(V=b.knownVersions)==null?void 0:V.get(b.previousVersion);if(w&&w.name===v.name)return!0})||(v.editable=!0,v.remove({ignoreUpstream:!1},s),v.editable=!1)}),[...m.returnStatements].forEach(v=>{var b,w,V,$;if(!v.dataType||v.dataType&&o.diggestedBuiltInBaseEntitiesIds.has(v.dataType.id)){const B=dr.new(s);B.parent=v.toReference();const j=me(B,o);j.hydrateAncestors(),s.add(j,H.Added),j.addSelfToProject(s),j.initChildren(s)}let E=(b=v.dataType)==null?void 0:b.entity;(!E||(E==null?void 0:E.id)===Q["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id)&&(J.Logger.log("Cloning old entity state into new project with data-ype as parent: ",(w=v.dataType)==null?void 0:w.id," from new project: ",((V=v.dataType)==null?void 0:V.project.version)===o.version&&(($=v.dataType)==null?void 0:$.project.entities.length)===3),E=n.clone(s,v.dataType)),v.dataType.setEntity(E,s),v.afterAllChildrenInitialized(s),v.outputs.forEach(B=>{const j=m.inputs.find(F=>le(B,o)===le(F,o));B.setValueWriter(j,s),j==null||j.addValueReader(B,s)})})}function a4e(o,p,i,n,s={}){var F;const c=o.getBuiltIn(Re.SQL_ROW_TRANSFORMER),e=KI(le(p,o)+" row transformer",o.entities),y=c.implement(e,n),m=y.ownDeclaredProperties.find(K=>{var Y;return(Y=K.implements)==null?void 0:Y.find(ie=>ie.id===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.properties.definition.id)}),v=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id}),E=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});if(!m||!v||!E)throw new Error("Cannot find definition property on the new row transformer entity");if(m.defaultValue)m.defaultValue.setValueAsTypeSingle(p,n);else{const K=Yr.new(n);K.name=oe.EntityTemplate,K.valueAsTypeSingle=p.toJSON(),K.parent=m.toReference();const Y=me(K,o);Y.hydrateAncestors(),n.add(Y,H.Added),Y.addSelfToProject(n),Y.initChildren(n)}ix(o,y,p,i,n),J.Logger.log("BEFORE - changeSet.listAdded",n.listAdded.map(K=>{var ie,ee,de,ae,fe,ve,ue;const Y=o.get(K.id);return Y?le(Y,o):K.type===d.InputMap?"(not found) "+K.type+" "+K.id+" - declaration: "+((ie=K.declaration)==null?void 0:ie.type)+" "+((ee=K.declaration)==null?void 0:ee.id)+' "'+((de=K.declaration)==null?void 0:de.name)+`"
390
390
  parent: `+((fe=(ae=K.parent)==null?void 0:ae.parent)==null?void 0:fe.id)+" - "+((ue=(ve=K.parent)==null?void 0:ve.parent)==null?void 0:ue.name):"(not found) "+K.type+" "+K.id})),J.Logger.log("AFTER - changeSet.listAdded",n.listAdded.map(K=>{var ie,ee,de,ae,fe,ve,ue;const Y=o.get(K.id);return Y?Y.type+' "'+le(Y,o)+'" ('+Y.id+")":K.type===d.InputMap?"(not found) "+K.type+" ("+K.id+") - declaration: "+((ie=K.declaration)==null?void 0:ie.type)+" ("+((ee=K.declaration)==null?void 0:ee.id)+') "'+((de=K.declaration)==null?void 0:de.name)+`"
391
391
  parent: "`+((fe=(ae=K.parent)==null?void 0:ae.parent)==null?void 0:fe.name)+'" ('+((ue=(ve=K.parent)==null?void 0:ve.parent)==null?void 0:ue.id)+")":"(not found) "+K.type+" "+K.id})),J.Logger.log("-----------------"),J.Logger.log("Old properties: ",mn(i).map(K=>K.name+" ("+K.id+")")),J.Logger.log("New properties: ",mn(p).map(K=>K.name+" ("+K.id+")"));const b=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.up.id}),w=y.methods.find(K=>{var Y;return((Y=K.implements)==null?void 0:Y.id)===Q["built-in-base-entity"].BUILT_IN_SQL_ROW_TRANSFORMER_ENTITY.methods.down.id});J.Logger.log(`
392
392
  Up inputs: `,b==null?void 0:b.inputs.map(K=>K.name+" ("+K.id+")")),J.Logger.log("Up method return statements:",b==null?void 0:b.returnStatements[0].outputs.map(K=>le(K,o)+" ("+K.id+")")),J.Logger.log(`